You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24368 lines
765 KiB

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.59e for csoap 1.1.0.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9. ## --------------------- ##
  10. ## M4sh Initialization. ##
  11. ## --------------------- ##
  12. # Be Bourne compatible
  13. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  14. emulate sh
  15. NULLCMD=:
  16. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  17. # is contrary to our usage. Disable this feature.
  18. alias -g '${1+"$@"}'='"$@"'
  19. setopt NO_GLOB_SUBST
  20. else
  21. case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
  22. fi
  23. BIN_SH=xpg4; export BIN_SH # for Tru64
  24. DUALCASE=1; export DUALCASE # for MKS sh
  25. # PATH needs CR
  26. # Avoid depending upon Character Ranges.
  27. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  28. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  29. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  30. as_cr_digits='0123456789'
  31. as_cr_alnum=$as_cr_Letters$as_cr_digits
  32. # The user is always right.
  33. if test "${PATH_SEPARATOR+set}" != set; then
  34. echo "#! /bin/sh" >conf$$.sh
  35. echo "exit 0" >>conf$$.sh
  36. chmod +x conf$$.sh
  37. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  38. PATH_SEPARATOR=';'
  39. else
  40. PATH_SEPARATOR=:
  41. fi
  42. rm -f conf$$.sh
  43. fi
  44. # Support unset when possible.
  45. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  46. as_unset=unset
  47. else
  48. as_unset=false
  49. fi
  50. # IFS
  51. # We need space, tab and new line, in precisely that order. Quoting is
  52. # there to prevent editors from complaining about space-tab.
  53. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  54. # splitting by setting IFS to empty value.)
  55. as_nl='
  56. '
  57. IFS=" "" $as_nl"
  58. # Find who we are. Look in the path if we contain no directory separator.
  59. case $0 in
  60. *[\\/]* ) as_myself=$0 ;;
  61. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  62. for as_dir in $PATH
  63. do
  64. IFS=$as_save_IFS
  65. test -z "$as_dir" && as_dir=.
  66. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  67. done
  68. IFS=$as_save_IFS
  69. ;;
  70. esac
  71. # We did not find ourselves, most probably we were run as `sh COMMAND'
  72. # in which case we are not to be found in the path.
  73. if test "x$as_myself" = x; then
  74. as_myself=$0
  75. fi
  76. if test ! -f "$as_myself"; then
  77. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  78. { (exit 1); exit 1; }
  79. fi
  80. # Work around bugs in pre-3.0 UWIN ksh.
  81. for as_var in ENV MAIL MAILPATH
  82. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  83. done
  84. PS1='$ '
  85. PS2='> '
  86. PS4='+ '
  87. # NLS nuisances.
  88. for as_var in \
  89. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  90. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  91. LC_TELEPHONE LC_TIME
  92. do
  93. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  94. eval $as_var=C; export $as_var
  95. else
  96. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  97. fi
  98. done
  99. # Required to use basename.
  100. if expr a : '\(a\)' >/dev/null 2>&1 &&
  101. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  102. as_expr=expr
  103. else
  104. as_expr=false
  105. fi
  106. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  107. as_basename=basename
  108. else
  109. as_basename=false
  110. fi
  111. # Name of the executable.
  112. as_me=`$as_basename -- "$0" ||
  113. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  114. X"$0" : 'X\(//\)$' \| \
  115. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  116. echo X/"$0" |
  117. sed '/^.*\/\([^/][^/]*\)\/*$/{
  118. s//\1/
  119. q
  120. }
  121. /^X\/\(\/\/\)$/{
  122. s//\1/
  123. q
  124. }
  125. /^X\/\(\/\).*/{
  126. s//\1/
  127. q
  128. }
  129. s/.*/./; q'`
  130. # CDPATH.
  131. $as_unset CDPATH
  132. if test "x$CONFIG_SHELL" = x; then
  133. if (eval ":") 2>/dev/null; then
  134. as_have_required=yes
  135. else
  136. as_have_required=no
  137. fi
  138. if test $as_have_required = yes && (eval ":
  139. (as_func_return () {
  140. (exit \$1)
  141. }
  142. as_func_success () {
  143. as_func_return 0
  144. }
  145. as_func_failure () {
  146. as_func_return 1
  147. }
  148. as_func_ret_success () {
  149. return 0
  150. }
  151. as_func_ret_failure () {
  152. return 1
  153. }
  154. exitcode=0
  155. if as_func_success; then
  156. :
  157. else
  158. exitcode=1
  159. echo as_func_success failed.
  160. fi
  161. if as_func_failure; then
  162. exitcode=1
  163. echo as_func_failure succeeded.
  164. fi
  165. if as_func_ret_success; then
  166. :
  167. else
  168. exitcode=1
  169. echo as_func_ret_success failed.
  170. fi
  171. if as_func_ret_failure; then
  172. exitcode=1
  173. echo as_func_ret_failure succeeded.
  174. fi
  175. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  176. :
  177. else
  178. exitcode=1
  179. echo positional parameters were not saved.
  180. fi
  181. test \$exitcode = 0) || { (exit 1); exit 1; }
  182. (
  183. as_lineno_1=\$LINENO
  184. as_lineno_2=\$LINENO
  185. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  186. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  187. ") 2> /dev/null; then
  188. :
  189. else
  190. as_candidate_shells=
  191. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  192. for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  193. do
  194. IFS=$as_save_IFS
  195. test -z "$as_dir" && as_dir=.
  196. case $as_dir in
  197. /*)
  198. for as_base in sh bash ksh sh5; do
  199. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  200. done;;
  201. esac
  202. done
  203. IFS=$as_save_IFS
  204. for as_shell in $as_candidate_shells $SHELL; do
  205. # Try only shells which exist, to save several forks.
  206. if test -f "$as_shell" &&
  207. { ("$as_shell") 2> /dev/null <<\_ASEOF
  208. # Be Bourne compatible
  209. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  210. emulate sh
  211. NULLCMD=:
  212. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  213. # is contrary to our usage. Disable this feature.
  214. alias -g '${1+"$@"}'='"$@"'
  215. setopt NO_GLOB_SUBST
  216. else
  217. case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
  218. fi
  219. BIN_SH=xpg4; export BIN_SH # for Tru64
  220. DUALCASE=1; export DUALCASE # for MKS sh
  221. :
  222. _ASEOF
  223. }; then
  224. CONFIG_SHELL=$as_shell
  225. as_have_required=yes
  226. if { "$as_shell" 2> /dev/null <<\_ASEOF
  227. # Be Bourne compatible
  228. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  229. emulate sh
  230. NULLCMD=:
  231. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  232. # is contrary to our usage. Disable this feature.
  233. alias -g '${1+"$@"}'='"$@"'
  234. setopt NO_GLOB_SUBST
  235. else
  236. case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
  237. fi
  238. BIN_SH=xpg4; export BIN_SH # for Tru64
  239. DUALCASE=1; export DUALCASE # for MKS sh
  240. :
  241. (as_func_return () {
  242. (exit $1)
  243. }
  244. as_func_success () {
  245. as_func_return 0
  246. }
  247. as_func_failure () {
  248. as_func_return 1
  249. }
  250. as_func_ret_success () {
  251. return 0
  252. }
  253. as_func_ret_failure () {
  254. return 1
  255. }
  256. exitcode=0
  257. if as_func_success; then
  258. :
  259. else
  260. exitcode=1
  261. echo as_func_success failed.
  262. fi
  263. if as_func_failure; then
  264. exitcode=1
  265. echo as_func_failure succeeded.
  266. fi
  267. if as_func_ret_success; then
  268. :
  269. else
  270. exitcode=1
  271. echo as_func_ret_success failed.
  272. fi
  273. if as_func_ret_failure; then
  274. exitcode=1
  275. echo as_func_ret_failure succeeded.
  276. fi
  277. if ( set x; as_func_ret_success y && test x = "$1" ); then
  278. :
  279. else
  280. exitcode=1
  281. echo positional parameters were not saved.
  282. fi
  283. test $exitcode = 0) || { (exit 1); exit 1; }
  284. (
  285. as_lineno_1=$LINENO
  286. as_lineno_2=$LINENO
  287. test "x$as_lineno_1" != "x$as_lineno_2" &&
  288. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  289. _ASEOF
  290. }; then
  291. break
  292. fi
  293. fi
  294. done
  295. if test "x$CONFIG_SHELL" != x; then
  296. for as_var in BASH_ENV ENV
  297. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  298. done
  299. export CONFIG_SHELL
  300. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  301. fi
  302. if test $as_have_required = no; then
  303. echo This script requires a shell more modern than all the
  304. echo shells that I found on your system. Please install a
  305. echo modern shell, or manually run the script under such a
  306. echo shell if you do have one.
  307. { (exit 1); exit 1; }
  308. fi
  309. fi
  310. fi
  311. (eval "as_func_return () {
  312. (exit \$1)
  313. }
  314. as_func_success () {
  315. as_func_return 0
  316. }
  317. as_func_failure () {
  318. as_func_return 1
  319. }
  320. as_func_ret_success () {
  321. return 0
  322. }
  323. as_func_ret_failure () {
  324. return 1
  325. }
  326. exitcode=0
  327. if as_func_success; then
  328. :
  329. else
  330. exitcode=1
  331. echo as_func_success failed.
  332. fi
  333. if as_func_failure; then
  334. exitcode=1
  335. echo as_func_failure succeeded.
  336. fi
  337. if as_func_ret_success; then
  338. :
  339. else
  340. exitcode=1
  341. echo as_func_ret_success failed.
  342. fi
  343. if as_func_ret_failure; then
  344. exitcode=1
  345. echo as_func_ret_failure succeeded.
  346. fi
  347. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  348. :
  349. else
  350. exitcode=1
  351. echo positional parameters were not saved.
  352. fi
  353. test \$exitcode = 0") || {
  354. echo No shell found that supports shell functions.
  355. echo Please tell autoconf@gnu.org about your system,
  356. echo including any error possibly output before this
  357. echo message
  358. }
  359. as_lineno_1=$LINENO
  360. as_lineno_2=$LINENO
  361. test "x$as_lineno_1" != "x$as_lineno_2" &&
  362. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  363. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  364. # uniformly replaced by the line number. The first 'sed' inserts a
  365. # line-number line after each line using $LINENO; the second 'sed'
  366. # does the real work. The second script uses 'N' to pair each
  367. # line-number line with the line containing $LINENO, and appends
  368. # trailing '-' during substitution so that $LINENO is not a special
  369. # case at line end.
  370. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  371. # scripts with optimization help from Paolo Bonzini. Blame Lee
  372. # E. McMahon (1931-1989) for sed's syntax. :-)
  373. sed -n '
  374. p
  375. /[$]LINENO/=
  376. ' <$as_myself |
  377. sed '
  378. s/[$]LINENO.*/&-/
  379. t lineno
  380. b
  381. :lineno
  382. N
  383. :loop
  384. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  385. t loop
  386. s/-\n.*//
  387. ' >$as_me.lineno &&
  388. chmod +x "$as_me.lineno" ||
  389. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  390. { (exit 1); exit 1; }; }
  391. # Don't try to exec as it changes $[0], causing all sort of problems
  392. # (the dirname of $[0] is not the place where we might find the
  393. # original and so on. Autoconf is especially sensitive to this).
  394. . "./$as_me.lineno"
  395. # Exit status is that of the last command.
  396. exit
  397. }
  398. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  399. as_dirname=dirname
  400. else
  401. as_dirname=false
  402. fi
  403. ECHO_C= ECHO_N= ECHO_T=
  404. case `echo -n x` in
  405. -n*)
  406. case `echo 'x\c'` in
  407. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  408. *) ECHO_C='\c';;
  409. esac;;
  410. *)
  411. ECHO_N='-n';;
  412. esac
  413. if expr a : '\(a\)' >/dev/null 2>&1 &&
  414. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  415. as_expr=expr
  416. else
  417. as_expr=false
  418. fi
  419. rm -f conf$$ conf$$.exe conf$$.file
  420. if test -d conf$$.dir; then
  421. rm -f conf$$.dir/conf$$.file
  422. else
  423. rm -f conf$$.dir
  424. mkdir conf$$.dir
  425. fi
  426. echo >conf$$.file
  427. if ln -s conf$$.file conf$$ 2>/dev/null; then
  428. as_ln_s='ln -s'
  429. # ... but there are two gotchas:
  430. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  431. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  432. # In both cases, we have to default to `cp -p'.
  433. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  434. as_ln_s='cp -p'
  435. elif ln conf$$.file conf$$ 2>/dev/null; then
  436. as_ln_s=ln
  437. else
  438. as_ln_s='cp -p'
  439. fi
  440. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  441. rmdir conf$$.dir 2>/dev/null
  442. if mkdir -p . 2>/dev/null; then
  443. as_mkdir_p=:
  444. else
  445. test -d ./-p && rmdir ./-p
  446. as_mkdir_p=false
  447. fi
  448. # Find out whether ``test -x'' works. Don't use a zero-byte file, as
  449. # systems may use methods other than mode bits to determine executability.
  450. cat >conf$$.file <<_ASEOF
  451. #! /bin/sh
  452. exit 0
  453. _ASEOF
  454. chmod +x conf$$.file
  455. if test -x conf$$.file >/dev/null 2>&1; then
  456. as_executable_p="test -x"
  457. else
  458. as_executable_p=:
  459. fi
  460. rm -f conf$$.file
  461. # Sed expression to map a string onto a valid CPP name.
  462. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  463. # Sed expression to map a string onto a valid variable name.
  464. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  465. # Check that we are running under the correct shell.
  466. SHELL=${CONFIG_SHELL-/bin/sh}
  467. case X$ECHO in
  468. X*--fallback-echo)
  469. # Remove one level of quotation (which was required for Make).
  470. ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  471. ;;
  472. esac
  473. echo=${ECHO-echo}
  474. if test "X$1" = X--no-reexec; then
  475. # Discard the --no-reexec flag, and continue.
  476. shift
  477. elif test "X$1" = X--fallback-echo; then
  478. # Avoid inline document here, it may be left over
  479. :
  480. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  481. # Yippee, $echo works!
  482. :
  483. else
  484. # Restart under the correct shell.
  485. exec $SHELL "$0" --no-reexec ${1+"$@"}
  486. fi
  487. if test "X$1" = X--fallback-echo; then
  488. # used as fallback echo
  489. shift
  490. cat <<EOF
  491. $*
  492. EOF
  493. exit 0
  494. fi
  495. # The HP-UX ksh and POSIX shell print the target directory to stdout
  496. # if CDPATH is set.
  497. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  498. if test -z "$ECHO"; then
  499. if test "X${echo_test_string+set}" != Xset; then
  500. # find a string as large as possible, as long as the shell can cope with it
  501. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  502. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  503. if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  504. echo_test_string=`eval $cmd` &&
  505. (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  506. then
  507. break
  508. fi
  509. done
  510. fi
  511. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  512. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  513. test "X$echo_testing_string" = "X$echo_test_string"; then
  514. :
  515. else
  516. # The Solaris, AIX, and Digital Unix default echo programs unquote
  517. # backslashes. This makes it impossible to quote backslashes using
  518. # echo "$something" | sed 's/\\/\\\\/g'
  519. #
  520. # So, first we look for a working echo in the user's PATH.
  521. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  522. for dir in $PATH /usr/ucb; do
  523. IFS="$lt_save_ifs"
  524. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  525. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  526. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  527. test "X$echo_testing_string" = "X$echo_test_string"; then
  528. echo="$dir/echo"
  529. break
  530. fi
  531. done
  532. IFS="$lt_save_ifs"
  533. if test "X$echo" = Xecho; then
  534. # We didn't find a better echo, so look for alternatives.
  535. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  536. echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  537. test "X$echo_testing_string" = "X$echo_test_string"; then
  538. # This shell has a builtin print -r that does the trick.
  539. echo='print -r'
  540. elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  541. test "X$CONFIG_SHELL" != X/bin/ksh; then
  542. # If we have ksh, try running configure again with it.
  543. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  544. export ORIGINAL_CONFIG_SHELL
  545. CONFIG_SHELL=/bin/ksh
  546. export CONFIG_SHELL
  547. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  548. else
  549. # Try using printf.
  550. echo='printf %s\n'
  551. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  552. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  553. test "X$echo_testing_string" = "X$echo_test_string"; then
  554. # Cool, printf works
  555. :
  556. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  557. test "X$echo_testing_string" = 'X\t' &&
  558. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  559. test "X$echo_testing_string" = "X$echo_test_string"; then
  560. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  561. export CONFIG_SHELL
  562. SHELL="$CONFIG_SHELL"
  563. export SHELL
  564. echo="$CONFIG_SHELL $0 --fallback-echo"
  565. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  566. test "X$echo_testing_string" = 'X\t' &&
  567. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  568. test "X$echo_testing_string" = "X$echo_test_string"; then
  569. echo="$CONFIG_SHELL $0 --fallback-echo"
  570. else
  571. # maybe with a smaller string...
  572. prev=:
  573. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  574. if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  575. then
  576. break
  577. fi
  578. prev="$cmd"
  579. done
  580. if test "$prev" != 'sed 50q "$0"'; then
  581. echo_test_string=`eval $prev`
  582. export echo_test_string
  583. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  584. else
  585. # Oops. We lost completely, so just stick with echo.
  586. echo=echo
  587. fi
  588. fi
  589. fi
  590. fi
  591. fi
  592. fi
  593. # Copy echo and quote the copy suitably for passing to libtool from
  594. # the Makefile, instead of quoting the original, which is used later.
  595. ECHO=$echo
  596. if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  597. ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  598. fi
  599. tagnames=${tagnames+${tagnames},}CXX
  600. tagnames=${tagnames+${tagnames},}F77
  601. exec 7<&0 </dev/null 6>&1
  602. # Name of the host.
  603. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  604. # so uname gets run too.
  605. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  606. #
  607. # Initializations.
  608. #
  609. ac_default_prefix=/usr/local
  610. ac_clean_files=
  611. ac_config_libobj_dir=.
  612. LIBOBJS=
  613. cross_compiling=no
  614. subdirs=
  615. MFLAGS=
  616. MAKEFLAGS=
  617. SHELL=${CONFIG_SHELL-/bin/sh}
  618. # Identity of this package.
  619. PACKAGE_NAME='csoap'
  620. PACKAGE_TARNAME='csoap'
  621. PACKAGE_VERSION='1.1.0'
  622. PACKAGE_STRING='csoap 1.1.0'
  623. PACKAGE_BUGREPORT=''
  624. ac_unique_file="nanohttp/nanohttp-server.c"
  625. ac_unique_file="libcsoap/soap-server.c"
  626. # Factoring default headers for most tests.
  627. ac_includes_default="\
  628. #include <stdio.h>
  629. #if HAVE_SYS_TYPES_H
  630. # include <sys/types.h>
  631. #endif
  632. #if HAVE_SYS_STAT_H
  633. # include <sys/stat.h>
  634. #endif
  635. #if STDC_HEADERS
  636. # include <stdlib.h>
  637. # include <stddef.h>
  638. #else
  639. # if HAVE_STDLIB_H
  640. # include <stdlib.h>
  641. # endif
  642. #endif
  643. #if HAVE_STRING_H
  644. # if !STDC_HEADERS && HAVE_MEMORY_H
  645. # include <memory.h>
  646. # endif
  647. # include <string.h>
  648. #endif
  649. #if HAVE_STRINGS_H
  650. # include <strings.h>
  651. #endif
  652. #if HAVE_INTTYPES_H
  653. # include <inttypes.h>
  654. #endif
  655. #if HAVE_STDINT_H
  656. # include <stdint.h>
  657. #endif
  658. #if HAVE_UNISTD_H
  659. # include <unistd.h>
  660. #endif"
  661. ac_subst_vars='SHELL
  662. PATH_SEPARATOR
  663. PACKAGE_NAME
  664. PACKAGE_TARNAME
  665. PACKAGE_VERSION
  666. PACKAGE_STRING
  667. PACKAGE_BUGREPORT
  668. exec_prefix
  669. prefix
  670. program_transform_name
  671. bindir
  672. sbindir
  673. libexecdir
  674. datarootdir
  675. datadir
  676. sysconfdir
  677. sharedstatedir
  678. localstatedir
  679. includedir
  680. oldincludedir
  681. docdir
  682. infodir
  683. htmldir
  684. dvidir
  685. pdfdir
  686. psdir
  687. libdir
  688. localedir
  689. mandir
  690. DEFS
  691. ECHO_C
  692. ECHO_N
  693. ECHO_T
  694. LIBS
  695. build_alias
  696. host_alias
  697. target_alias
  698. INSTALL_PROGRAM
  699. INSTALL_SCRIPT
  700. INSTALL_DATA
  701. CYGPATH_W
  702. PACKAGE
  703. VERSION
  704. ACLOCAL
  705. AUTOCONF
  706. AUTOMAKE
  707. AUTOHEADER
  708. MAKEINFO
  709. install_sh
  710. STRIP
  711. INSTALL_STRIP_PROGRAM
  712. mkdir_p
  713. AWK
  714. SET_MAKE
  715. am__leading_dot
  716. AMTAR
  717. am__tar
  718. am__untar
  719. CC
  720. CFLAGS
  721. LDFLAGS
  722. CPPFLAGS
  723. ac_ct_CC
  724. EXEEXT
  725. OBJEXT
  726. DEPDIR
  727. am__include
  728. am__quote
  729. AMDEP_TRUE
  730. AMDEP_FALSE
  731. AMDEPBACKSLASH
  732. CCDEPMODE
  733. am__fastdepCC_TRUE
  734. am__fastdepCC_FALSE
  735. build
  736. build_cpu
  737. build_vendor
  738. build_os
  739. host
  740. host_cpu
  741. host_vendor
  742. host_os
  743. GREP
  744. EGREP
  745. LN_S
  746. ECHO
  747. AR
  748. RANLIB
  749. CPP
  750. CXX
  751. CXXFLAGS
  752. ac_ct_CXX
  753. CXXDEPMODE
  754. am__fastdepCXX_TRUE
  755. am__fastdepCXX_FALSE
  756. CXXCPP
  757. F77
  758. FFLAGS
  759. ac_ct_F77
  760. LIBTOOL
  761. csoap_major
  762. csoap_minor
  763. csoap_patch
  764. csoap_release
  765. csoap_version
  766. nanohttp_release
  767. nanohttp_version
  768. LIBOBJS
  769. acx_pthread_config
  770. PTHREAD_CC
  771. PTHREAD_LIBS
  772. PTHREAD_CFLAGS
  773. LIBSOCKET
  774. LIBNSL
  775. XML2_CONFIG
  776. XML_CPPFLAGS
  777. XML_LIBS
  778. LTLIBOBJS'
  779. ac_subst_files=''
  780. ac_precious_vars='build_alias
  781. host_alias
  782. target_alias
  783. CC
  784. CFLAGS
  785. LDFLAGS
  786. CPPFLAGS
  787. CPP
  788. CXX
  789. CXXFLAGS
  790. CCC
  791. CXXCPP
  792. F77
  793. FFLAGS'
  794. # Initialize some variables set by options.
  795. ac_init_help=
  796. ac_init_version=false
  797. # The variables have the same names as the options, with
  798. # dashes changed to underlines.
  799. cache_file=/dev/null
  800. exec_prefix=NONE
  801. no_create=
  802. no_recursion=
  803. prefix=NONE
  804. program_prefix=NONE
  805. program_suffix=NONE
  806. program_transform_name=s,x,x,
  807. silent=
  808. site=
  809. srcdir=
  810. verbose=
  811. x_includes=NONE
  812. x_libraries=NONE
  813. # Installation directory options.
  814. # These are left unexpanded so users can "make install exec_prefix=/foo"
  815. # and all the variables that are supposed to be based on exec_prefix
  816. # by default will actually change.
  817. # Use braces instead of parens because sh, perl, etc. also accept them.
  818. # (The list follows the same order as the GNU Coding Standards.)
  819. bindir='${exec_prefix}/bin'
  820. sbindir='${exec_prefix}/sbin'
  821. libexecdir='${exec_prefix}/libexec'
  822. datarootdir='${prefix}/share'
  823. datadir='${datarootdir}'
  824. sysconfdir='${prefix}/etc'
  825. sharedstatedir='${prefix}/com'
  826. localstatedir='${prefix}/var'
  827. includedir='${prefix}/include'
  828. oldincludedir='/usr/include'
  829. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  830. infodir='${datarootdir}/info'
  831. htmldir='${docdir}'
  832. dvidir='${docdir}'
  833. pdfdir='${docdir}'
  834. psdir='${docdir}'
  835. libdir='${exec_prefix}/lib'
  836. localedir='${datarootdir}/locale'
  837. mandir='${datarootdir}/man'
  838. ac_prev=
  839. ac_dashdash=
  840. for ac_option
  841. do
  842. # If the previous option needs an argument, assign it.
  843. if test -n "$ac_prev"; then
  844. eval $ac_prev=\$ac_option
  845. ac_prev=
  846. continue
  847. fi
  848. case $ac_option in
  849. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  850. *) ac_optarg=yes ;;
  851. esac
  852. # Accept the important Cygnus configure options, so we can diagnose typos.
  853. case $ac_dashdash$ac_option in
  854. --)
  855. ac_dashdash=yes ;;
  856. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  857. ac_prev=bindir ;;
  858. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  859. bindir=$ac_optarg ;;
  860. -build | --build | --buil | --bui | --bu)
  861. ac_prev=build_alias ;;
  862. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  863. build_alias=$ac_optarg ;;
  864. -cache-file | --cache-file | --cache-fil | --cache-fi \
  865. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  866. ac_prev=cache_file ;;
  867. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  868. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  869. cache_file=$ac_optarg ;;
  870. --config-cache | -C)
  871. cache_file=config.cache ;;
  872. -datadir | --datadir | --datadi | --datad)
  873. ac_prev=datadir ;;
  874. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  875. datadir=$ac_optarg ;;
  876. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  877. | --dataroo | --dataro | --datar)
  878. ac_prev=datarootdir ;;
  879. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  880. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  881. datarootdir=$ac_optarg ;;
  882. -disable-* | --disable-*)
  883. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  884. # Reject names that are not valid shell variable names.
  885. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  886. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  887. { (exit 1); exit 1; }; }
  888. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  889. eval enable_$ac_feature=no ;;
  890. -docdir | --docdir | --docdi | --doc | --do)
  891. ac_prev=docdir ;;
  892. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  893. docdir=$ac_optarg ;;
  894. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  895. ac_prev=dvidir ;;
  896. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  897. dvidir=$ac_optarg ;;
  898. -enable-* | --enable-*)
  899. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  900. # Reject names that are not valid shell variable names.
  901. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  902. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  903. { (exit 1); exit 1; }; }
  904. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  905. eval enable_$ac_feature=\$ac_optarg ;;
  906. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  907. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  908. | --exec | --exe | --ex)
  909. ac_prev=exec_prefix ;;
  910. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  911. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  912. | --exec=* | --exe=* | --ex=*)
  913. exec_prefix=$ac_optarg ;;
  914. -gas | --gas | --ga | --g)
  915. # Obsolete; use --with-gas.
  916. with_gas=yes ;;
  917. -help | --help | --hel | --he | -h)
  918. ac_init_help=long ;;
  919. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  920. ac_init_help=recursive ;;
  921. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  922. ac_init_help=short ;;
  923. -host | --host | --hos | --ho)
  924. ac_prev=host_alias ;;
  925. -host=* | --host=* | --hos=* | --ho=*)
  926. host_alias=$ac_optarg ;;
  927. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  928. ac_prev=htmldir ;;
  929. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  930. | --ht=*)
  931. htmldir=$ac_optarg ;;
  932. -includedir | --includedir | --includedi | --included | --include \
  933. | --includ | --inclu | --incl | --inc)
  934. ac_prev=includedir ;;
  935. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  936. | --includ=* | --inclu=* | --incl=* | --inc=*)
  937. includedir=$ac_optarg ;;
  938. -infodir | --infodir | --infodi | --infod | --info | --inf)
  939. ac_prev=infodir ;;
  940. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  941. infodir=$ac_optarg ;;
  942. -libdir | --libdir | --libdi | --libd)
  943. ac_prev=libdir ;;
  944. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  945. libdir=$ac_optarg ;;
  946. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  947. | --libexe | --libex | --libe)
  948. ac_prev=libexecdir ;;
  949. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  950. | --libexe=* | --libex=* | --libe=*)
  951. libexecdir=$ac_optarg ;;
  952. -localedir | --localedir | --localedi | --localed | --locale)
  953. ac_prev=localedir ;;
  954. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  955. localedir=$ac_optarg ;;
  956. -localstatedir | --localstatedir | --localstatedi | --localstated \
  957. | --localstate | --localstat | --localsta | --localst | --locals)
  958. ac_prev=localstatedir ;;
  959. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  960. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  961. localstatedir=$ac_optarg ;;
  962. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  963. ac_prev=mandir ;;
  964. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  965. mandir=$ac_optarg ;;
  966. -nfp | --nfp | --nf)
  967. # Obsolete; use --without-fp.
  968. with_fp=no ;;
  969. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  970. | --no-cr | --no-c | -n)
  971. no_create=yes ;;
  972. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  973. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  974. no_recursion=yes ;;
  975. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  976. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  977. | --oldin | --oldi | --old | --ol | --o)
  978. ac_prev=oldincludedir ;;
  979. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  980. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  981. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  982. oldincludedir=$ac_optarg ;;
  983. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  984. ac_prev=prefix ;;
  985. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  986. prefix=$ac_optarg ;;
  987. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  988. | --program-pre | --program-pr | --program-p)
  989. ac_prev=program_prefix ;;
  990. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  991. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  992. program_prefix=$ac_optarg ;;
  993. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  994. | --program-suf | --program-su | --program-s)
  995. ac_prev=program_suffix ;;
  996. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  997. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  998. program_suffix=$ac_optarg ;;
  999. -program-transform-name | --program-transform-name \
  1000. | --program-transform-nam | --program-transform-na \
  1001. | --program-transform-n | --program-transform- \
  1002. | --program-transform | --program-transfor \
  1003. | --program-transfo | --program-transf \
  1004. | --program-trans | --program-tran \
  1005. | --progr-tra | --program-tr | --program-t)
  1006. ac_prev=program_transform_name ;;
  1007. -program-transform-name=* | --program-transform-name=* \
  1008. | --program-transform-nam=* | --program-transform-na=* \
  1009. | --program-transform-n=* | --program-transform-=* \
  1010. | --program-transform=* | --program-transfor=* \
  1011. | --program-transfo=* | --program-transf=* \
  1012. | --program-trans=* | --program-tran=* \
  1013. | --progr-tra=* | --program-tr=* | --program-t=*)
  1014. program_transform_name=$ac_optarg ;;
  1015. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1016. ac_prev=pdfdir ;;
  1017. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1018. pdfdir=$ac_optarg ;;
  1019. -psdir | --psdir | --psdi | --psd | --ps)
  1020. ac_prev=psdir ;;
  1021. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1022. psdir=$ac_optarg ;;
  1023. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1024. | -silent | --silent | --silen | --sile | --sil)
  1025. silent=yes ;;
  1026. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1027. ac_prev=sbindir ;;
  1028. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1029. | --sbi=* | --sb=*)
  1030. sbindir=$ac_optarg ;;
  1031. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1032. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1033. | --sharedst | --shareds | --shared | --share | --shar \
  1034. | --sha | --sh)
  1035. ac_prev=sharedstatedir ;;
  1036. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1037. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1038. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1039. | --sha=* | --sh=*)
  1040. sharedstatedir=$ac_optarg ;;
  1041. -site | --site | --sit)
  1042. ac_prev=site ;;
  1043. -site=* | --site=* | --sit=*)
  1044. site=$ac_optarg ;;
  1045. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1046. ac_prev=srcdir ;;
  1047. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1048. srcdir=$ac_optarg ;;
  1049. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1050. | --syscon | --sysco | --sysc | --sys | --sy)
  1051. ac_prev=sysconfdir ;;
  1052. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1053. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1054. sysconfdir=$ac_optarg ;;
  1055. -target | --target | --targe | --targ | --tar | --ta | --t)
  1056. ac_prev=target_alias ;;
  1057. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1058. target_alias=$ac_optarg ;;
  1059. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1060. verbose=yes ;;
  1061. -version | --version | --versio | --versi | --vers | -V)
  1062. ac_init_version=: ;;
  1063. -with-* | --with-*)
  1064. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1065. # Reject names that are not valid shell variable names.
  1066. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  1067. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1068. { (exit 1); exit 1; }; }
  1069. ac_package=`echo $ac_package| sed 's/-/_/g'`
  1070. eval with_$ac_package=\$ac_optarg ;;
  1071. -without-* | --without-*)
  1072. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1073. # Reject names that are not valid shell variable names.
  1074. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  1075. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1076. { (exit 1); exit 1; }; }
  1077. ac_package=`echo $ac_package | sed 's/-/_/g'`
  1078. eval with_$ac_package=no ;;
  1079. --x)
  1080. # Obsolete; use --with-x.
  1081. with_x=yes ;;
  1082. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1083. | --x-incl | --x-inc | --x-in | --x-i)
  1084. ac_prev=x_includes ;;
  1085. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1086. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1087. x_includes=$ac_optarg ;;
  1088. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1089. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1090. ac_prev=x_libraries ;;
  1091. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1092. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1093. x_libraries=$ac_optarg ;;
  1094. -*) { echo "$as_me: error: unrecognized option: $ac_option
  1095. Try \`$0 --help' for more information." >&2
  1096. { (exit 1); exit 1; }; }
  1097. ;;
  1098. *=*)
  1099. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1100. # Reject names that are not valid shell variable names.
  1101. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1102. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1103. { (exit 1); exit 1; }; }
  1104. eval $ac_envvar=\$ac_optarg
  1105. export $ac_envvar ;;
  1106. *)
  1107. # FIXME: should be removed in autoconf 3.0.
  1108. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1109. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1110. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1111. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1112. ;;
  1113. esac
  1114. done
  1115. if test -n "$ac_prev"; then
  1116. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1117. { echo "$as_me: error: missing argument to $ac_option" >&2
  1118. { (exit 1); exit 1; }; }
  1119. fi
  1120. # Be sure to have absolute directory names.
  1121. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1122. datadir sysconfdir sharedstatedir localstatedir includedir \
  1123. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1124. libdir localedir mandir
  1125. do
  1126. eval ac_val=\$$ac_var
  1127. case $ac_val in
  1128. [\\/$]* | ?:[\\/]* ) continue;;
  1129. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1130. esac
  1131. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1132. { (exit 1); exit 1; }; }
  1133. done
  1134. # There might be people who depend on the old broken behavior: `$host'
  1135. # used to hold the argument of --host etc.
  1136. # FIXME: To remove some day.
  1137. build=$build_alias
  1138. host=$host_alias
  1139. target=$target_alias
  1140. # FIXME: To remove some day.
  1141. if test "x$host_alias" != x; then
  1142. if test "x$build_alias" = x; then
  1143. cross_compiling=maybe
  1144. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1145. If a cross compiler is detected then cross compile mode will be used." >&2
  1146. elif test "x$build_alias" != "x$host_alias"; then
  1147. cross_compiling=yes
  1148. fi
  1149. fi
  1150. ac_tool_prefix=
  1151. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1152. test "$silent" = yes && exec 6>/dev/null
  1153. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1154. ac_ls_di=`ls -di .` &&
  1155. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1156. { echo "$as_me: error: Working directory cannot be determined" >&2
  1157. { (exit 1); exit 1; }; }
  1158. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1159. { echo "$as_me: error: pwd does not report name of working directory" >&2
  1160. { (exit 1); exit 1; }; }
  1161. # Find the source files, if location was not specified.
  1162. if test -z "$srcdir"; then
  1163. ac_srcdir_defaulted=yes
  1164. # Try the directory containing this script, then the parent directory.
  1165. ac_confdir=`$as_dirname -- "$0" ||
  1166. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1167. X"$0" : 'X\(//\)[^/]' \| \
  1168. X"$0" : 'X\(//\)$' \| \
  1169. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1170. echo X"$0" |
  1171. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1172. s//\1/
  1173. q
  1174. }
  1175. /^X\(\/\/\)[^/].*/{
  1176. s//\1/
  1177. q
  1178. }
  1179. /^X\(\/\/\)$/{
  1180. s//\1/
  1181. q
  1182. }
  1183. /^X\(\/\).*/{
  1184. s//\1/
  1185. q
  1186. }
  1187. s/.*/./; q'`
  1188. srcdir=$ac_confdir
  1189. if test ! -r "$srcdir/$ac_unique_file"; then
  1190. srcdir=..
  1191. fi
  1192. else
  1193. ac_srcdir_defaulted=no
  1194. fi
  1195. if test ! -r "$srcdir/$ac_unique_file"; then
  1196. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1197. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1198. { (exit 1); exit 1; }; }
  1199. fi
  1200. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1201. ac_abs_confdir=`(
  1202. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1203. { (exit 1); exit 1; }; }
  1204. pwd)`
  1205. # When building in place, set srcdir=.
  1206. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1207. srcdir=.
  1208. fi
  1209. # Remove unnecessary trailing slashes from srcdir.
  1210. # Double slashes in file names in object file debugging info
  1211. # mess up M-x gdb in Emacs.
  1212. case $srcdir in
  1213. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1214. esac
  1215. for ac_var in $ac_precious_vars; do
  1216. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1217. eval ac_env_${ac_var}_value=\$${ac_var}
  1218. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1219. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1220. done
  1221. #
  1222. # Report the --help message.
  1223. #
  1224. if test "$ac_init_help" = "long"; then
  1225. # Omit some internal or obsolete options to make the list less imposing.
  1226. # This message is too long to be a string in the A/UX 3.1 sh.
  1227. cat <<_ACEOF
  1228. \`configure' configures csoap 1.1.0 to adapt to many kinds of systems.
  1229. Usage: $0 [OPTION]... [VAR=VALUE]...
  1230. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1231. VAR=VALUE. See below for descriptions of some of the useful variables.
  1232. Defaults for the options are specified in brackets.
  1233. Configuration:
  1234. -h, --help display this help and exit
  1235. --help=short display options specific to this package
  1236. --help=recursive display the short help of all the included packages
  1237. -V, --version display version information and exit
  1238. -q, --quiet, --silent do not print \`checking...' messages
  1239. --cache-file=FILE cache test results in FILE [disabled]
  1240. -C, --config-cache alias for \`--cache-file=config.cache'
  1241. -n, --no-create do not create output files
  1242. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1243. Installation directories:
  1244. --prefix=PREFIX install architecture-independent files in PREFIX
  1245. [$ac_default_prefix]
  1246. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1247. [PREFIX]
  1248. By default, \`make install' will install all the files in
  1249. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1250. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1251. for instance \`--prefix=\$HOME'.
  1252. For better control, use the options below.
  1253. Fine tuning of the installation directories:
  1254. --bindir=DIR user executables [EPREFIX/bin]
  1255. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1256. --libexecdir=DIR program executables [EPREFIX/libexec]
  1257. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1258. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1259. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1260. --libdir=DIR object code libraries [EPREFIX/lib]
  1261. --includedir=DIR C header files [PREFIX/include]
  1262. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1263. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1264. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1265. --infodir=DIR info documentation [DATAROOTDIR/info]
  1266. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1267. --mandir=DIR man documentation [DATAROOTDIR/man]
  1268. --docdir=DIR documentation root [DATAROOTDIR/doc/csoap]
  1269. --htmldir=DIR html documentation [DOCDIR]
  1270. --dvidir=DIR dvi documentation [DOCDIR]
  1271. --pdfdir=DIR pdf documentation [DOCDIR]
  1272. --psdir=DIR ps documentation [DOCDIR]
  1273. _ACEOF
  1274. cat <<\_ACEOF
  1275. Program names:
  1276. --program-prefix=PREFIX prepend PREFIX to installed program names
  1277. --program-suffix=SUFFIX append SUFFIX to installed program names
  1278. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1279. System types:
  1280. --build=BUILD configure for building on BUILD [guessed]
  1281. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1282. _ACEOF
  1283. fi
  1284. if test -n "$ac_init_help"; then
  1285. case $ac_init_help in
  1286. short | recursive ) echo "Configuration of csoap 1.1.0:";;
  1287. esac
  1288. cat <<\_ACEOF
  1289. Optional Features:
  1290. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1291. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1292. --disable-dependency-tracking speeds up one-time build
  1293. --enable-dependency-tracking do not reject slow dependency extractors
  1294. --enable-shared[=PKGS] build shared libraries [default=yes]
  1295. --enable-static[=PKGS] build static libraries [default=yes]
  1296. --enable-fast-install[=PKGS]
  1297. optimize for fast installation [default=yes]
  1298. --disable-libtool-lock avoid locking (might break parallel builds)
  1299. --disable-xmltest Do not try to compile and run a test LIBXML program
  1300. Optional Packages:
  1301. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1302. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1303. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1304. --with-pic try to use only PIC/non-PIC objects [default=use
  1305. both]
  1306. --with-tags[=TAGS] include additional configurations [automatic]
  1307. --with-xml-prefix=PFX Prefix where libxml is installed (optional)
  1308. --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
  1309. --with-ssl=PFX will check PFX for ssl library
  1310. --with-ssl will check /usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr for ssl library
  1311. Some influential environment variables:
  1312. CC C compiler command
  1313. CFLAGS C compiler flags
  1314. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1315. nonstandard directory <lib dir>
  1316. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1317. you have headers in a nonstandard directory <include dir>
  1318. CPP C preprocessor
  1319. CXX C++ compiler command
  1320. CXXFLAGS C++ compiler flags
  1321. CXXCPP C++ preprocessor
  1322. F77 Fortran 77 compiler command
  1323. FFLAGS Fortran 77 compiler flags
  1324. Use these variables to override the choices made by `configure' or to help
  1325. it to find libraries and programs with nonstandard names/locations.
  1326. _ACEOF
  1327. ac_status=$?
  1328. fi
  1329. if test "$ac_init_help" = "recursive"; then
  1330. # If there are subdirs, report their specific --help.
  1331. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1332. test -d "$ac_dir" || continue
  1333. ac_builddir=.
  1334. case "$ac_dir" in
  1335. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1336. *)
  1337. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1338. # A ".." for each directory in $ac_dir_suffix.
  1339. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1340. case $ac_top_builddir_sub in
  1341. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1342. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1343. esac ;;
  1344. esac
  1345. ac_abs_top_builddir=$ac_pwd
  1346. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1347. # for backward compatibility:
  1348. ac_top_builddir=$ac_top_build_prefix
  1349. case $srcdir in
  1350. .) # We are building in place.
  1351. ac_srcdir=.
  1352. ac_top_srcdir=$ac_top_builddir_sub
  1353. ac_abs_top_srcdir=$ac_pwd ;;
  1354. [\\/]* | ?:[\\/]* ) # Absolute name.
  1355. ac_srcdir=$srcdir$ac_dir_suffix;
  1356. ac_top_srcdir=$srcdir
  1357. ac_abs_top_srcdir=$srcdir ;;
  1358. *) # Relative name.
  1359. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1360. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1361. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1362. esac
  1363. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1364. cd "$ac_dir" || { ac_status=$?; continue; }
  1365. # Check for guested configure.
  1366. if test -f "$ac_srcdir/configure.gnu"; then
  1367. echo &&
  1368. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1369. elif test -f "$ac_srcdir/configure"; then
  1370. echo &&
  1371. $SHELL "$ac_srcdir/configure" --help=recursive
  1372. else
  1373. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1374. fi || ac_status=$?
  1375. cd "$ac_pwd" || { ac_status=$?; break; }
  1376. done
  1377. fi
  1378. test -n "$ac_init_help" && exit $ac_status
  1379. if $ac_init_version; then
  1380. cat <<\_ACEOF
  1381. csoap configure 1.1.0
  1382. generated by GNU Autoconf 2.59e
  1383. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1384. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1385. This configure script is free software; the Free Software Foundation
  1386. gives unlimited permission to copy, distribute and modify it.
  1387. _ACEOF
  1388. exit
  1389. fi
  1390. cat >config.log <<_ACEOF
  1391. This file contains any messages produced by compilers while
  1392. running configure, to aid debugging if configure makes a mistake.
  1393. It was created by csoap $as_me 1.1.0, which was
  1394. generated by GNU Autoconf 2.59e. Invocation command line was
  1395. $ $0 $@
  1396. _ACEOF
  1397. exec 5>>config.log
  1398. {
  1399. cat <<_ASUNAME
  1400. ## --------- ##
  1401. ## Platform. ##
  1402. ## --------- ##
  1403. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1404. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1405. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1406. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1407. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1408. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1409. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1410. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1411. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1412. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1413. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1414. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1415. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1416. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1417. _ASUNAME
  1418. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1419. for as_dir in $PATH
  1420. do
  1421. IFS=$as_save_IFS
  1422. test -z "$as_dir" && as_dir=.
  1423. echo "PATH: $as_dir"
  1424. done
  1425. IFS=$as_save_IFS
  1426. } >&5
  1427. cat >&5 <<_ACEOF
  1428. ## ----------- ##
  1429. ## Core tests. ##
  1430. ## ----------- ##
  1431. _ACEOF
  1432. # Keep a trace of the command line.
  1433. # Strip out --no-create and --no-recursion so they do not pile up.
  1434. # Strip out --silent because we don't want to record it for future runs.
  1435. # Also quote any args containing shell meta-characters.
  1436. # Make two passes to allow for proper duplicate-argument suppression.
  1437. ac_configure_args=
  1438. ac_configure_args0=
  1439. ac_configure_args1=
  1440. ac_must_keep_next=false
  1441. for ac_pass in 1 2
  1442. do
  1443. for ac_arg
  1444. do
  1445. case $ac_arg in
  1446. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1447. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1448. | -silent | --silent | --silen | --sile | --sil)
  1449. continue ;;
  1450. *\'*)
  1451. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1452. esac
  1453. case $ac_pass in
  1454. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1455. 2)
  1456. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1457. if test $ac_must_keep_next = true; then
  1458. ac_must_keep_next=false # Got value, back to normal.
  1459. else
  1460. case $ac_arg in
  1461. *=* | --config-cache | -C | -disable-* | --disable-* \
  1462. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1463. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1464. | -with-* | --with-* | -without-* | --without-* | --x)
  1465. case "$ac_configure_args0 " in
  1466. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1467. esac
  1468. ;;
  1469. -* ) ac_must_keep_next=true ;;
  1470. esac
  1471. fi
  1472. ac_configure_args="$ac_configure_args '$ac_arg'"
  1473. ;;
  1474. esac
  1475. done
  1476. done
  1477. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1478. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1479. # When interrupted or exit'd, cleanup temporary files, and complete
  1480. # config.log. We remove comments because anyway the quotes in there
  1481. # would cause problems or look ugly.
  1482. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1483. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1484. trap 'exit_status=$?
  1485. # Save into config.log some information that might help in debugging.
  1486. {
  1487. echo
  1488. cat <<\_ASBOX
  1489. ## ---------------- ##
  1490. ## Cache variables. ##
  1491. ## ---------------- ##
  1492. _ASBOX
  1493. echo
  1494. # The following way of writing the cache mishandles newlines in values,
  1495. (
  1496. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1497. eval ac_val=\$$ac_var
  1498. case $ac_val in #(
  1499. *${as_nl}*)
  1500. case $ac_var in #(
  1501. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1502. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1503. esac
  1504. case $ac_var in #(
  1505. _ | IFS | as_nl) ;; #(
  1506. *) $as_unset $ac_var ;;
  1507. esac ;;
  1508. esac
  1509. done
  1510. (set) 2>&1 |
  1511. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1512. *${as_nl}ac_space=\ *)
  1513. sed -n \
  1514. "s/'\''/'\''\\\\'\'''\''/g;
  1515. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1516. ;; #(
  1517. *)
  1518. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1519. ;;
  1520. esac |
  1521. sort
  1522. )
  1523. echo
  1524. cat <<\_ASBOX
  1525. ## ----------------- ##
  1526. ## Output variables. ##
  1527. ## ----------------- ##
  1528. _ASBOX
  1529. echo
  1530. for ac_var in $ac_subst_vars
  1531. do
  1532. eval ac_val=\$$ac_var
  1533. case $ac_val in
  1534. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1535. esac
  1536. echo "$ac_var='\''$ac_val'\''"
  1537. done | sort
  1538. echo
  1539. if test -n "$ac_subst_files"; then
  1540. cat <<\_ASBOX
  1541. ## ------------------- ##
  1542. ## File substitutions. ##
  1543. ## ------------------- ##
  1544. _ASBOX
  1545. echo
  1546. for ac_var in $ac_subst_files
  1547. do
  1548. eval ac_val=\$$ac_var
  1549. case $ac_val in
  1550. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1551. esac
  1552. echo "$ac_var='\''$ac_val'\''"
  1553. done | sort
  1554. echo
  1555. fi
  1556. if test -s confdefs.h; then
  1557. cat <<\_ASBOX
  1558. ## ----------- ##
  1559. ## confdefs.h. ##
  1560. ## ----------- ##
  1561. _ASBOX
  1562. echo
  1563. cat confdefs.h
  1564. echo
  1565. fi
  1566. test "$ac_signal" != 0 &&
  1567. echo "$as_me: caught signal $ac_signal"
  1568. echo "$as_me: exit $exit_status"
  1569. } >&5
  1570. rm -f core *.core core.conftest.* &&
  1571. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1572. exit $exit_status
  1573. ' 0
  1574. for ac_signal in 1 2 13 15; do
  1575. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1576. done
  1577. ac_signal=0
  1578. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1579. rm -f -r conftest* confdefs.h
  1580. # Predefined preprocessor variables.
  1581. cat >>confdefs.h <<_ACEOF
  1582. #define PACKAGE_NAME "$PACKAGE_NAME"
  1583. _ACEOF
  1584. cat >>confdefs.h <<_ACEOF
  1585. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1586. _ACEOF
  1587. cat >>confdefs.h <<_ACEOF
  1588. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1589. _ACEOF
  1590. cat >>confdefs.h <<_ACEOF
  1591. #define PACKAGE_STRING "$PACKAGE_STRING"
  1592. _ACEOF
  1593. cat >>confdefs.h <<_ACEOF
  1594. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1595. _ACEOF
  1596. # Let the site file select an alternate cache file if it wants to.
  1597. # Prefer explicitly selected file to automatically selected ones.
  1598. if test -n "$CONFIG_SITE"; then
  1599. set x "$CONFIG_SITE"
  1600. elif test "x$prefix" != xNONE; then
  1601. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1602. else
  1603. set x "$ac_default_prefix/share/config.site" \
  1604. "$ac_default_prefix/etc/config.site"
  1605. fi
  1606. shift
  1607. for ac_site_file
  1608. do
  1609. if test -r "$ac_site_file"; then
  1610. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1611. echo "$as_me: loading site script $ac_site_file" >&6;}
  1612. sed 's/^/| /' "$ac_site_file" >&5
  1613. . "$ac_site_file"
  1614. fi
  1615. done
  1616. if test -r "$cache_file"; then
  1617. # Some versions of bash will fail to source /dev/null (special
  1618. # files actually), so we avoid doing that.
  1619. if test -f "$cache_file"; then
  1620. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1621. echo "$as_me: loading cache $cache_file" >&6;}
  1622. case $cache_file in
  1623. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1624. *) . "./$cache_file";;
  1625. esac
  1626. fi
  1627. else
  1628. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1629. echo "$as_me: creating cache $cache_file" >&6;}
  1630. >$cache_file
  1631. fi
  1632. # Check that the precious variables saved in the cache have kept the same
  1633. # value.
  1634. ac_cache_corrupted=false
  1635. for ac_var in $ac_precious_vars; do
  1636. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1637. eval ac_new_set=\$ac_env_${ac_var}_set
  1638. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1639. eval ac_new_val=\$ac_env_${ac_var}_value
  1640. case $ac_old_set,$ac_new_set in
  1641. set,)
  1642. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1643. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1644. ac_cache_corrupted=: ;;
  1645. ,set)
  1646. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1647. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1648. ac_cache_corrupted=: ;;
  1649. ,);;
  1650. *)
  1651. if test "x$ac_old_val" != "x$ac_new_val"; then
  1652. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1653. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1654. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1655. echo "$as_me: former value: $ac_old_val" >&2;}
  1656. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1657. echo "$as_me: current value: $ac_new_val" >&2;}
  1658. ac_cache_corrupted=:
  1659. fi;;
  1660. esac
  1661. # Pass precious variables to config.status.
  1662. if test "$ac_new_set" = set; then
  1663. case $ac_new_val in
  1664. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1665. *) ac_arg=$ac_var=$ac_new_val ;;
  1666. esac
  1667. case " $ac_configure_args " in
  1668. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1669. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1670. esac
  1671. fi
  1672. done
  1673. if $ac_cache_corrupted; then
  1674. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1675. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1676. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1677. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1678. { (exit 1); exit 1; }; }
  1679. fi
  1680. ac_ext=c
  1681. ac_cpp='$CPP $CPPFLAGS'
  1682. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1683. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1684. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1685. am__api_version="1.9"
  1686. ac_aux_dir=
  1687. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1688. if test -f "$ac_dir/install-sh"; then
  1689. ac_aux_dir=$ac_dir
  1690. ac_install_sh="$ac_aux_dir/install-sh -c"
  1691. break
  1692. elif test -f "$ac_dir/install.sh"; then
  1693. ac_aux_dir=$ac_dir
  1694. ac_install_sh="$ac_aux_dir/install.sh -c"
  1695. break
  1696. elif test -f "$ac_dir/shtool"; then
  1697. ac_aux_dir=$ac_dir
  1698. ac_install_sh="$ac_aux_dir/shtool install -c"
  1699. break
  1700. fi
  1701. done
  1702. if test -z "$ac_aux_dir"; then
  1703. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1704. echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1705. { (exit 1); exit 1; }; }
  1706. fi
  1707. # These three variables are undocumented and unsupported,
  1708. # and are intended to be withdrawn in a future Autoconf release.
  1709. # They can cause serious problems if a builder's source tree is in a directory
  1710. # whose full name contains unusual characters.
  1711. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1712. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1713. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1714. # Find a good install program. We prefer a C program (faster),
  1715. # so one script is as good as another. But avoid the broken or
  1716. # incompatible versions:
  1717. # SysV /etc/install, /usr/sbin/install
  1718. # SunOS /usr/etc/install
  1719. # IRIX /sbin/install
  1720. # AIX /bin/install
  1721. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1722. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1723. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1724. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1725. # OS/2's system install, which has a completely different semantic
  1726. # ./install, which can be erroneously created by make from ./install.sh.
  1727. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1728. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1729. if test -z "$INSTALL"; then
  1730. if test "${ac_cv_path_install+set}" = set; then
  1731. echo $ECHO_N "(cached) $ECHO_C" >&6
  1732. else
  1733. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1734. for as_dir in $PATH
  1735. do
  1736. IFS=$as_save_IFS
  1737. test -z "$as_dir" && as_dir=.
  1738. # Account for people who put trailing slashes in PATH elements.
  1739. case $as_dir/ in
  1740. ./ | .// | /cC/* | \
  1741. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1742. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1743. /usr/ucb/* ) ;;
  1744. *)
  1745. # OSF1 and SCO ODT 3.0 have their own names for install.
  1746. # Don't use installbsd from OSF since it installs stuff as root
  1747. # by default.
  1748. for ac_prog in ginstall scoinst install; do
  1749. for ac_exec_ext in '' $ac_executable_extensions; do
  1750. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1751. if test $ac_prog = install &&
  1752. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1753. # AIX install. It has an incompatible calling convention.
  1754. :
  1755. elif test $ac_prog = install &&
  1756. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1757. # program-specific install script used by HP pwplus--don't use.
  1758. :
  1759. else
  1760. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1761. break 3
  1762. fi
  1763. fi
  1764. done
  1765. done
  1766. ;;
  1767. esac
  1768. done
  1769. IFS=$as_save_IFS
  1770. fi
  1771. if test "${ac_cv_path_install+set}" = set; then
  1772. INSTALL=$ac_cv_path_install
  1773. else
  1774. # As a last resort, use the slow shell script. Don't cache a
  1775. # value for INSTALL within a source directory, because that will
  1776. # break other packages using the cache if that directory is
  1777. # removed, or if the value is a relative name.
  1778. INSTALL=$ac_install_sh
  1779. fi
  1780. fi
  1781. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  1782. echo "${ECHO_T}$INSTALL" >&6; }
  1783. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1784. # It thinks the first close brace ends the variable substitution.
  1785. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1786. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1787. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1788. { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1789. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  1790. # Just in case
  1791. sleep 1
  1792. echo timestamp > conftest.file
  1793. # Do `set' in a subshell so we don't clobber the current shell's
  1794. # arguments. Must try -L first in case configure is actually a
  1795. # symlink; some systems play weird games with the mod time of symlinks
  1796. # (eg FreeBSD returns the mod time of the symlink's containing
  1797. # directory).
  1798. if (
  1799. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1800. if test "$*" = "X"; then
  1801. # -L didn't work.
  1802. set X `ls -t $srcdir/configure conftest.file`
  1803. fi
  1804. rm -f conftest.file
  1805. if test "$*" != "X $srcdir/configure conftest.file" \
  1806. && test "$*" != "X conftest.file $srcdir/configure"; then
  1807. # If neither matched, then we have a broken ls. This can happen
  1808. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1809. # broken ls alias from the environment. This has actually
  1810. # happened. Such a system could not be considered "sane".
  1811. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1812. alias in your environment" >&5
  1813. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1814. alias in your environment" >&2;}
  1815. { (exit 1); exit 1; }; }
  1816. fi
  1817. test "$2" = conftest.file
  1818. )
  1819. then
  1820. # Ok.
  1821. :
  1822. else
  1823. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1824. Check your system clock" >&5
  1825. echo "$as_me: error: newly created file is older than distributed files!
  1826. Check your system clock" >&2;}
  1827. { (exit 1); exit 1; }; }
  1828. fi
  1829. { echo "$as_me:$LINENO: result: yes" >&5
  1830. echo "${ECHO_T}yes" >&6; }
  1831. test "$program_prefix" != NONE &&
  1832. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1833. # Use a double $ so make ignores it.
  1834. test "$program_suffix" != NONE &&
  1835. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1836. # Double any \ or $. echo might interpret backslashes.
  1837. # By default was `s,x,x', remove it if useless.
  1838. cat <<\_ACEOF >conftest.sed
  1839. s/[\\$]/&&/g;s/;s,x,x,$//
  1840. _ACEOF
  1841. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1842. rm -f conftest.sed
  1843. # expand $ac_aux_dir to an absolute path
  1844. am_aux_dir=`cd $ac_aux_dir && pwd`
  1845. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1846. # Use eval to expand $SHELL
  1847. if eval "$MISSING --run true"; then
  1848. am_missing_run="$MISSING --run "
  1849. else
  1850. am_missing_run=
  1851. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1852. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1853. fi
  1854. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  1855. # We used to keeping the `.' as first argument, in order to
  1856. # allow $(mkdir_p) to be used without argument. As in
  1857. # $(mkdir_p) $(somedir)
  1858. # where $(somedir) is conditionally defined. However this is wrong
  1859. # for two reasons:
  1860. # 1. if the package is installed by a user who cannot write `.'
  1861. # make install will fail,
  1862. # 2. the above comment should most certainly read
  1863. # $(mkdir_p) $(DESTDIR)$(somedir)
  1864. # so it does not work when $(somedir) is undefined and
  1865. # $(DESTDIR) is not.
  1866. # To support the latter case, we have to write
  1867. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  1868. # so the `.' trick is pointless.
  1869. mkdir_p='mkdir -p --'
  1870. else
  1871. # On NextStep and OpenStep, the `mkdir' command does not
  1872. # recognize any option. It will interpret all options as
  1873. # directories to create, and then abort because `.' already
  1874. # exists.
  1875. for d in ./-p ./--version;
  1876. do
  1877. test -d $d && rmdir $d
  1878. done
  1879. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  1880. if test -f "$ac_aux_dir/mkinstalldirs"; then
  1881. mkdir_p='$(mkinstalldirs)'
  1882. else
  1883. mkdir_p='$(install_sh) -d'
  1884. fi
  1885. fi
  1886. for ac_prog in gawk mawk nawk awk
  1887. do
  1888. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1889. set dummy $ac_prog; ac_word=$2
  1890. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1891. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1892. if test "${ac_cv_prog_AWK+set}" = set; then
  1893. echo $ECHO_N "(cached) $ECHO_C" >&6
  1894. else
  1895. if test -n "$AWK"; then
  1896. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1897. else
  1898. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1899. for as_dir in $PATH
  1900. do
  1901. IFS=$as_save_IFS
  1902. test -z "$as_dir" && as_dir=.
  1903. for ac_exec_ext in '' $ac_executable_extensions; do
  1904. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  1905. ac_cv_prog_AWK="$ac_prog"
  1906. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1907. break 2
  1908. fi
  1909. done
  1910. done
  1911. IFS=$as_save_IFS
  1912. fi
  1913. fi
  1914. AWK=$ac_cv_prog_AWK
  1915. if test -n "$AWK"; then
  1916. { echo "$as_me:$LINENO: result: $AWK" >&5
  1917. echo "${ECHO_T}$AWK" >&6; }
  1918. else
  1919. { echo "$as_me:$LINENO: result: no" >&5
  1920. echo "${ECHO_T}no" >&6; }
  1921. fi
  1922. test -n "$AWK" && break
  1923. done
  1924. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1925. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  1926. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/^a-zA-Z0-9_/_/g'`
  1927. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  1928. echo $ECHO_N "(cached) $ECHO_C" >&6
  1929. else
  1930. cat >conftest.make <<\_ACEOF
  1931. SHELL = /bin/sh
  1932. all:
  1933. @echo '@@@%%%=$(MAKE)=@@@%%%'
  1934. _ACEOF
  1935. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1936. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  1937. *@@@%%%=?*=@@@%%%*)
  1938. eval ac_cv_prog_make_${ac_make}_set=yes;;
  1939. *)
  1940. eval ac_cv_prog_make_${ac_make}_set=no;;
  1941. esac
  1942. rm -f conftest.make
  1943. fi
  1944. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  1945. { echo "$as_me:$LINENO: result: yes" >&5
  1946. echo "${ECHO_T}yes" >&6; }
  1947. SET_MAKE=
  1948. else
  1949. { echo "$as_me:$LINENO: result: no" >&5
  1950. echo "${ECHO_T}no" >&6; }
  1951. SET_MAKE="MAKE=${MAKE-make}"
  1952. fi
  1953. rm -rf .tst 2>/dev/null
  1954. mkdir .tst 2>/dev/null
  1955. if test -d .tst; then
  1956. am__leading_dot=.
  1957. else
  1958. am__leading_dot=_
  1959. fi
  1960. rmdir .tst 2>/dev/null
  1961. # test to see if srcdir already configured
  1962. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  1963. test -f $srcdir/config.status; then
  1964. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1965. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1966. { (exit 1); exit 1; }; }
  1967. fi
  1968. # test whether we have cygpath
  1969. if test -z "$CYGPATH_W"; then
  1970. if (cygpath --version) >/dev/null 2>/dev/null; then
  1971. CYGPATH_W='cygpath -w'
  1972. else
  1973. CYGPATH_W=echo
  1974. fi
  1975. fi
  1976. # Define the identity of the package.
  1977. PACKAGE='csoap'
  1978. VERSION='1.1.0'
  1979. cat >>confdefs.h <<_ACEOF
  1980. #define PACKAGE "$PACKAGE"
  1981. _ACEOF
  1982. cat >>confdefs.h <<_ACEOF
  1983. #define VERSION "$VERSION"
  1984. _ACEOF
  1985. # Some tools Automake needs.
  1986. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  1987. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  1988. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  1989. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  1990. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  1991. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  1992. # Installed binaries are usually stripped using `strip' when the user
  1993. # run `make install-strip'. However `strip' might not be the right
  1994. # tool to use in cross-compilation environments, therefore Automake
  1995. # will honor the `STRIP' environment variable to overrule this program.
  1996. if test "$cross_compiling" != no; then
  1997. if test -n "$ac_tool_prefix"; then
  1998. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  1999. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2000. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2001. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2002. if test "${ac_cv_prog_STRIP+set}" = set; then
  2003. echo $ECHO_N "(cached) $ECHO_C" >&6
  2004. else
  2005. if test -n "$STRIP"; then
  2006. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2007. else
  2008. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2009. for as_dir in $PATH
  2010. do
  2011. IFS=$as_save_IFS
  2012. test -z "$as_dir" && as_dir=.
  2013. for ac_exec_ext in '' $ac_executable_extensions; do
  2014. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  2015. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2016. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2017. break 2
  2018. fi
  2019. done
  2020. done
  2021. IFS=$as_save_IFS
  2022. fi
  2023. fi
  2024. STRIP=$ac_cv_prog_STRIP
  2025. if test -n "$STRIP"; then
  2026. { echo "$as_me:$LINENO: result: $STRIP" >&5
  2027. echo "${ECHO_T}$STRIP" >&6; }
  2028. else
  2029. { echo "$as_me:$LINENO: result: no" >&5
  2030. echo "${ECHO_T}no" >&6; }
  2031. fi
  2032. fi
  2033. if test -z "$ac_cv_prog_STRIP"; then
  2034. ac_ct_STRIP=$STRIP
  2035. # Extract the first word of "strip", so it can be a program name with args.
  2036. set dummy strip; ac_word=$2
  2037. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2038. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2039. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2040. echo $ECHO_N "(cached) $ECHO_C" >&6
  2041. else
  2042. if test -n "$ac_ct_STRIP"; then
  2043. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2044. else
  2045. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2046. for as_dir in $PATH
  2047. do
  2048. IFS=$as_save_IFS
  2049. test -z "$as_dir" && as_dir=.
  2050. for ac_exec_ext in '' $ac_executable_extensions; do
  2051. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  2052. ac_cv_prog_ac_ct_STRIP="strip"
  2053. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2054. break 2
  2055. fi
  2056. done
  2057. done
  2058. IFS=$as_save_IFS
  2059. fi
  2060. fi
  2061. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2062. if test -n "$ac_ct_STRIP"; then
  2063. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2064. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2065. else
  2066. { echo "$as_me:$LINENO: result: no" >&5
  2067. echo "${ECHO_T}no" >&6; }
  2068. fi
  2069. if test "x$ac_ct_STRIP" = x; then
  2070. STRIP=":"
  2071. else
  2072. case $cross_compiling:$ac_tool_warned in
  2073. yes:)
  2074. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2075. whose name does not start with the host triplet. If you think this
  2076. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2077. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2078. whose name does not start with the host triplet. If you think this
  2079. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2080. ac_tool_warned=yes ;;
  2081. esac
  2082. STRIP=$ac_ct_STRIP
  2083. fi
  2084. else
  2085. STRIP="$ac_cv_prog_STRIP"
  2086. fi
  2087. fi
  2088. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  2089. # We need awk for the "check" target. The system "awk" is bad on
  2090. # some platforms.
  2091. # Always define AMTAR for backward compatibility.
  2092. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2093. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2094. ac_config_headers="$ac_config_headers config.h"
  2095. ac_ext=c
  2096. ac_cpp='$CPP $CPPFLAGS'
  2097. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2098. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2099. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2100. ac_ext=c
  2101. ac_cpp='$CPP $CPPFLAGS'
  2102. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2103. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2104. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2105. if test -n "$ac_tool_prefix"; then
  2106. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2107. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2108. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2109. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2110. if test "${ac_cv_prog_CC+set}" = set; then
  2111. echo $ECHO_N "(cached) $ECHO_C" >&6
  2112. else
  2113. if test -n "$CC"; then
  2114. ac_cv_prog_CC="$CC" # Let the user override the test.
  2115. else
  2116. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2117. for as_dir in $PATH
  2118. do
  2119. IFS=$as_save_IFS
  2120. test -z "$as_dir" && as_dir=.
  2121. for ac_exec_ext in '' $ac_executable_extensions; do
  2122. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  2123. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2124. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2125. break 2
  2126. fi
  2127. done
  2128. done
  2129. IFS=$as_save_IFS
  2130. fi
  2131. fi
  2132. CC=$ac_cv_prog_CC
  2133. if test -n "$CC"; then
  2134. { echo "$as_me:$LINENO: result: $CC" >&5
  2135. echo "${ECHO_T}$CC" >&6; }
  2136. else
  2137. { echo "$as_me:$LINENO: result: no" >&5
  2138. echo "${ECHO_T}no" >&6; }
  2139. fi
  2140. fi
  2141. if test -z "$ac_cv_prog_CC"; then
  2142. ac_ct_CC=$CC
  2143. # Extract the first word of "gcc", so it can be a program name with args.
  2144. set dummy gcc; ac_word=$2
  2145. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2146. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2147. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2148. echo $ECHO_N "(cached) $ECHO_C" >&6
  2149. else
  2150. if test -n "$ac_ct_CC"; then
  2151. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2152. else
  2153. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2154. for as_dir in $PATH
  2155. do
  2156. IFS=$as_save_IFS
  2157. test -z "$as_dir" && as_dir=.
  2158. for ac_exec_ext in '' $ac_executable_extensions; do
  2159. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  2160. ac_cv_prog_ac_ct_CC="gcc"
  2161. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2162. break 2
  2163. fi
  2164. done
  2165. done
  2166. IFS=$as_save_IFS
  2167. fi
  2168. fi
  2169. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2170. if test -n "$ac_ct_CC"; then
  2171. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2172. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2173. else
  2174. { echo "$as_me:$LINENO: result: no" >&5
  2175. echo "${ECHO_T}no" >&6; }
  2176. fi
  2177. if test "x$ac_ct_CC" = x; then
  2178. CC=""
  2179. else
  2180. case $cross_compiling:$ac_tool_warned in
  2181. yes:)
  2182. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2183. whose name does not start with the host triplet. If you think this
  2184. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2185. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2186. whose name does not start with the host triplet. If you think this
  2187. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2188. ac_tool_warned=yes ;;
  2189. esac
  2190. CC=$ac_ct_CC
  2191. fi
  2192. else
  2193. CC="$ac_cv_prog_CC"
  2194. fi
  2195. if test -z "$CC"; then
  2196. if test -n "$ac_tool_prefix"; then
  2197. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2198. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2199. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2200. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2201. if test "${ac_cv_prog_CC+set}" = set; then
  2202. echo $ECHO_N "(cached) $ECHO_C" >&6
  2203. else
  2204. if test -n "$CC"; then
  2205. ac_cv_prog_CC="$CC" # Let the user override the test.
  2206. else
  2207. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2208. for as_dir in $PATH
  2209. do
  2210. IFS=$as_save_IFS
  2211. test -z "$as_dir" && as_dir=.
  2212. for ac_exec_ext in '' $ac_executable_extensions; do
  2213. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  2214. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2215. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2216. break 2
  2217. fi
  2218. done
  2219. done
  2220. IFS=$as_save_IFS
  2221. fi
  2222. fi
  2223. CC=$ac_cv_prog_CC
  2224. if test -n "$CC"; then
  2225. { echo "$as_me:$LINENO: result: $CC" >&5
  2226. echo "${ECHO_T}$CC" >&6; }
  2227. else
  2228. { echo "$as_me:$LINENO: result: no" >&5
  2229. echo "${ECHO_T}no" >&6; }
  2230. fi
  2231. fi
  2232. fi
  2233. if test -z "$CC"; then
  2234. # Extract the first word of "cc", so it can be a program name with args.
  2235. set dummy cc; ac_word=$2
  2236. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2237. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2238. if test "${ac_cv_prog_CC+set}" = set; then
  2239. echo $ECHO_N "(cached) $ECHO_C" >&6
  2240. else
  2241. if test -n "$CC"; then
  2242. ac_cv_prog_CC="$CC" # Let the user override the test.
  2243. else
  2244. ac_prog_rejected=no
  2245. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2246. for as_dir in $PATH
  2247. do
  2248. IFS=$as_save_IFS
  2249. test -z "$as_dir" && as_dir=.
  2250. for ac_exec_ext in '' $ac_executable_extensions; do
  2251. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  2252. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2253. ac_prog_rejected=yes
  2254. continue
  2255. fi
  2256. ac_cv_prog_CC="cc"
  2257. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2258. break 2
  2259. fi
  2260. done
  2261. done
  2262. IFS=$as_save_IFS
  2263. if test $ac_prog_rejected = yes; then
  2264. # We found a bogon in the path, so make sure we never use it.
  2265. set dummy $ac_cv_prog_CC
  2266. shift
  2267. if test $# != 0; then
  2268. # We chose a different compiler from the bogus one.
  2269. # However, it has the same basename, so the bogon will be chosen
  2270. # first if we set CC to just the basename; use the full file name.
  2271. shift
  2272. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2273. fi
  2274. fi
  2275. fi
  2276. fi
  2277. CC=$ac_cv_prog_CC
  2278. if test -n "$CC"; then
  2279. { echo "$as_me:$LINENO: result: $CC" >&5
  2280. echo "${ECHO_T}$CC" >&6; }
  2281. else
  2282. { echo "$as_me:$LINENO: result: no" >&5
  2283. echo "${ECHO_T}no" >&6; }
  2284. fi
  2285. fi
  2286. if test -z "$CC"; then
  2287. if test -n "$ac_tool_prefix"; then
  2288. for ac_prog in cl.exe
  2289. do
  2290. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2291. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2292. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2293. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2294. if test "${ac_cv_prog_CC+set}" = set; then
  2295. echo $ECHO_N "(cached) $ECHO_C" >&6
  2296. else
  2297. if test -n "$CC"; then
  2298. ac_cv_prog_CC="$CC" # Let the user override the test.
  2299. else
  2300. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2301. for as_dir in $PATH
  2302. do
  2303. IFS=$as_save_IFS
  2304. test -z "$as_dir" && as_dir=.
  2305. for ac_exec_ext in '' $ac_executable_extensions; do
  2306. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  2307. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2308. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2309. break 2
  2310. fi
  2311. done
  2312. done
  2313. IFS=$as_save_IFS
  2314. fi
  2315. fi
  2316. CC=$ac_cv_prog_CC
  2317. if test -n "$CC"; then
  2318. { echo "$as_me:$LINENO: result: $CC" >&5
  2319. echo "${ECHO_T}$CC" >&6; }
  2320. else
  2321. { echo "$as_me:$LINENO: result: no" >&5
  2322. echo "${ECHO_T}no" >&6; }
  2323. fi
  2324. test -n "$CC" && break
  2325. done
  2326. fi
  2327. if test -z "$CC"; then
  2328. ac_ct_CC=$CC
  2329. for ac_prog in cl.exe
  2330. do
  2331. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2332. set dummy $ac_prog; ac_word=$2
  2333. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2334. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2335. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2336. echo $ECHO_N "(cached) $ECHO_C" >&6
  2337. else
  2338. if test -n "$ac_ct_CC"; then
  2339. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2340. else
  2341. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2342. for as_dir in $PATH
  2343. do
  2344. IFS=$as_save_IFS
  2345. test -z "$as_dir" && as_dir=.
  2346. for ac_exec_ext in '' $ac_executable_extensions; do
  2347. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  2348. ac_cv_prog_ac_ct_CC="$ac_prog"
  2349. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2350. break 2
  2351. fi
  2352. done
  2353. done
  2354. IFS=$as_save_IFS
  2355. fi
  2356. fi
  2357. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2358. if test -n "$ac_ct_CC"; then
  2359. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2360. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2361. else
  2362. { echo "$as_me:$LINENO: result: no" >&5
  2363. echo "${ECHO_T}no" >&6; }
  2364. fi
  2365. test -n "$ac_ct_CC" && break
  2366. done
  2367. if test "x$ac_ct_CC" = x; then
  2368. CC=""
  2369. else
  2370. case $cross_compiling:$ac_tool_warned in
  2371. yes:)
  2372. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2373. whose name does not start with the host triplet. If you think this
  2374. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2375. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2376. whose name does not start with the host triplet. If you think this
  2377. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2378. ac_tool_warned=yes ;;
  2379. esac
  2380. CC=$ac_ct_CC
  2381. fi
  2382. fi
  2383. fi
  2384. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2385. See \`config.log' for more details." >&5
  2386. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2387. See \`config.log' for more details." >&2;}
  2388. { (exit 1); exit 1; }; }
  2389. # Provide some information about the compiler.
  2390. echo "$as_me:$LINENO: checking for C compiler version" >&5
  2391. ac_compiler=`set X $ac_compile; echo $2`
  2392. { (ac_try="$ac_compiler --version >&5"
  2393. case "(($ac_try" in
  2394. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2395. *) ac_try_echo=$ac_try;;
  2396. esac
  2397. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2398. (eval "$ac_compiler --version >&5") 2>&5
  2399. ac_status=$?
  2400. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2401. (exit $ac_status); }
  2402. { (ac_try="$ac_compiler -v >&5"
  2403. case "(($ac_try" in
  2404. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2405. *) ac_try_echo=$ac_try;;
  2406. esac
  2407. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2408. (eval "$ac_compiler -v >&5") 2>&5
  2409. ac_status=$?
  2410. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2411. (exit $ac_status); }
  2412. { (ac_try="$ac_compiler -V >&5"
  2413. case "(($ac_try" in
  2414. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2415. *) ac_try_echo=$ac_try;;
  2416. esac
  2417. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2418. (eval "$ac_compiler -V >&5") 2>&5
  2419. ac_status=$?
  2420. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2421. (exit $ac_status); }
  2422. cat >conftest.$ac_ext <<_ACEOF
  2423. /* confdefs.h. */
  2424. _ACEOF
  2425. cat confdefs.h >>conftest.$ac_ext
  2426. cat >>conftest.$ac_ext <<_ACEOF
  2427. /* end confdefs.h. */
  2428. int
  2429. main ()
  2430. {
  2431. ;
  2432. return 0;
  2433. }
  2434. _ACEOF
  2435. ac_clean_files_save=$ac_clean_files
  2436. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2437. # Try to create an executable without -o first, disregard a.out.
  2438. # It will help us diagnose broken compilers, and finding out an intuition
  2439. # of exeext.
  2440. { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2441. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  2442. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2443. #
  2444. # List of possible output files, starting from the most likely.
  2445. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2446. # only as a last resort. b.out is created by i960 compilers.
  2447. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2448. #
  2449. # The IRIX 6 linker writes into existing files which may not be
  2450. # executable, retaining their permissions. Remove them first so a
  2451. # subsequent execution test works.
  2452. ac_rmfiles=
  2453. for ac_file in $ac_files
  2454. do
  2455. case $ac_file in
  2456. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2457. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2458. esac
  2459. done
  2460. rm -f $ac_rmfiles
  2461. if { (ac_try="$ac_link_default"
  2462. case "(($ac_try" in
  2463. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2464. *) ac_try_echo=$ac_try;;
  2465. esac
  2466. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2467. (eval "$ac_link_default") 2>&5
  2468. ac_status=$?
  2469. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2470. (exit $ac_status); }; then
  2471. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2472. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2473. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2474. # so that the user can short-circuit this test for compilers unknown to
  2475. # Autoconf.
  2476. for ac_file in $ac_files
  2477. do
  2478. test -f "$ac_file" || continue
  2479. case $ac_file in
  2480. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2481. ;;
  2482. [ab].out )
  2483. # We found the default executable, but exeext='' is most
  2484. # certainly right.
  2485. break;;
  2486. *.* )
  2487. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2488. then :; else
  2489. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2490. fi
  2491. # We set ac_cv_exeext here because the later test for it is not
  2492. # safe: cross compilers may not add the suffix if given an `-o'
  2493. # argument, so we may need to know it at that point already.
  2494. # Even if this section looks crufty: it has the advantage of
  2495. # actually working.
  2496. break;;
  2497. * )
  2498. break;;
  2499. esac
  2500. done
  2501. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2502. else
  2503. echo "$as_me: failed program was:" >&5
  2504. sed 's/^/| /' conftest.$ac_ext >&5
  2505. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2506. See \`config.log' for more details." >&5
  2507. echo "$as_me: error: C compiler cannot create executables
  2508. See \`config.log' for more details." >&2;}
  2509. { (exit 77); exit 77; }; }
  2510. fi
  2511. ac_exeext=$ac_cv_exeext
  2512. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2513. echo "${ECHO_T}$ac_file" >&6; }
  2514. # Check that the compiler produces executables we can run. If not, either
  2515. # the compiler is broken, or we cross compile.
  2516. { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2517. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  2518. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2519. # If not cross compiling, check that we can run a simple program.
  2520. if test "$cross_compiling" != yes; then
  2521. if { ac_try='./$ac_file'
  2522. { (case "(($ac_try" in
  2523. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2524. *) ac_try_echo=$ac_try;;
  2525. esac
  2526. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2527. (eval "$ac_try") 2>&5
  2528. ac_status=$?
  2529. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2530. (exit $ac_status); }; }; then
  2531. cross_compiling=no
  2532. else
  2533. if test "$cross_compiling" = maybe; then
  2534. cross_compiling=yes
  2535. else
  2536. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2537. If you meant to cross compile, use \`--host'.
  2538. See \`config.log' for more details." >&5
  2539. echo "$as_me: error: cannot run C compiled programs.
  2540. If you meant to cross compile, use \`--host'.
  2541. See \`config.log' for more details." >&2;}
  2542. { (exit 1); exit 1; }; }
  2543. fi
  2544. fi
  2545. fi
  2546. { echo "$as_me:$LINENO: result: yes" >&5
  2547. echo "${ECHO_T}yes" >&6; }
  2548. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2549. ac_clean_files=$ac_clean_files_save
  2550. # Check that the compiler produces executables we can run. If not, either
  2551. # the compiler is broken, or we cross compile.
  2552. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2553. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2554. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2555. echo "${ECHO_T}$cross_compiling" >&6; }
  2556. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2557. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2558. if { (ac_try="$ac_link"
  2559. case "(($ac_try" in
  2560. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2561. *) ac_try_echo=$ac_try;;
  2562. esac
  2563. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2564. (eval "$ac_link") 2>&5
  2565. ac_status=$?
  2566. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2567. (exit $ac_status); }; then
  2568. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2569. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2570. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2571. # `rm'.
  2572. for ac_file in conftest.exe conftest conftest.*; do
  2573. test -f "$ac_file" || continue
  2574. case $ac_file in
  2575. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2576. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2577. break;;
  2578. * ) break;;
  2579. esac
  2580. done
  2581. else
  2582. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2583. See \`config.log' for more details." >&5
  2584. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2585. See \`config.log' for more details." >&2;}
  2586. { (exit 1); exit 1; }; }
  2587. fi
  2588. rm -f conftest$ac_cv_exeext
  2589. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2590. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2591. rm -f conftest.$ac_ext
  2592. EXEEXT=$ac_cv_exeext
  2593. ac_exeext=$EXEEXT
  2594. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2595. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2596. if test "${ac_cv_objext+set}" = set; then
  2597. echo $ECHO_N "(cached) $ECHO_C" >&6
  2598. else
  2599. cat >conftest.$ac_ext <<_ACEOF
  2600. /* confdefs.h. */
  2601. _ACEOF
  2602. cat confdefs.h >>conftest.$ac_ext
  2603. cat >>conftest.$ac_ext <<_ACEOF
  2604. /* end confdefs.h. */
  2605. int
  2606. main ()
  2607. {
  2608. ;
  2609. return 0;
  2610. }
  2611. _ACEOF
  2612. rm -f conftest.o conftest.obj
  2613. if { (ac_try="$ac_compile"
  2614. case "(($ac_try" in
  2615. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2616. *) ac_try_echo=$ac_try;;
  2617. esac
  2618. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2619. (eval "$ac_compile") 2>&5
  2620. ac_status=$?
  2621. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2622. (exit $ac_status); }; then
  2623. for ac_file in conftest.o conftest.obj conftest.*; do
  2624. test -f "$ac_file" || continue;
  2625. case $ac_file in
  2626. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2627. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2628. break;;
  2629. esac
  2630. done
  2631. else
  2632. echo "$as_me: failed program was:" >&5
  2633. sed 's/^/| /' conftest.$ac_ext >&5
  2634. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2635. See \`config.log' for more details." >&5
  2636. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2637. See \`config.log' for more details." >&2;}
  2638. { (exit 1); exit 1; }; }
  2639. fi
  2640. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2641. fi
  2642. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2643. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2644. OBJEXT=$ac_cv_objext
  2645. ac_objext=$OBJEXT
  2646. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2647. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  2648. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2649. echo $ECHO_N "(cached) $ECHO_C" >&6
  2650. else
  2651. cat >conftest.$ac_ext <<_ACEOF
  2652. /* confdefs.h. */
  2653. _ACEOF
  2654. cat confdefs.h >>conftest.$ac_ext
  2655. cat >>conftest.$ac_ext <<_ACEOF
  2656. /* end confdefs.h. */
  2657. int
  2658. main ()
  2659. {
  2660. #ifndef __GNUC__
  2661. choke me
  2662. #endif
  2663. ;
  2664. return 0;
  2665. }
  2666. _ACEOF
  2667. rm -f conftest.$ac_objext
  2668. if { (ac_try="$ac_compile"
  2669. case "(($ac_try" in
  2670. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2671. *) ac_try_echo=$ac_try;;
  2672. esac
  2673. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2674. (eval "$ac_compile") 2>conftest.er1
  2675. ac_status=$?
  2676. grep -v '^ *+' conftest.er1 >conftest.err
  2677. rm -f conftest.er1
  2678. cat conftest.err >&5
  2679. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2680. (exit $ac_status); } &&
  2681. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2682. { (case "(($ac_try" in
  2683. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2684. *) ac_try_echo=$ac_try;;
  2685. esac
  2686. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2687. (eval "$ac_try") 2>&5
  2688. ac_status=$?
  2689. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2690. (exit $ac_status); }; } &&
  2691. { ac_try='test -s conftest.$ac_objext'
  2692. { (case "(($ac_try" in
  2693. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2694. *) ac_try_echo=$ac_try;;
  2695. esac
  2696. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2697. (eval "$ac_try") 2>&5
  2698. ac_status=$?
  2699. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2700. (exit $ac_status); }; }; then
  2701. ac_compiler_gnu=yes
  2702. else
  2703. echo "$as_me: failed program was:" >&5
  2704. sed 's/^/| /' conftest.$ac_ext >&5
  2705. ac_compiler_gnu=no
  2706. fi
  2707. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2708. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2709. fi
  2710. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2711. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  2712. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2713. ac_test_CFLAGS=${CFLAGS+set}
  2714. ac_save_CFLAGS=$CFLAGS
  2715. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2716. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  2717. if test "${ac_cv_prog_cc_g+set}" = set; then
  2718. echo $ECHO_N "(cached) $ECHO_C" >&6
  2719. else
  2720. ac_save_c_werror_flag=$ac_c_werror_flag
  2721. ac_c_werror_flag=yes
  2722. ac_cv_prog_cc_g=no
  2723. CFLAGS="-g"
  2724. cat >conftest.$ac_ext <<_ACEOF
  2725. /* confdefs.h. */
  2726. _ACEOF
  2727. cat confdefs.h >>conftest.$ac_ext
  2728. cat >>conftest.$ac_ext <<_ACEOF
  2729. /* end confdefs.h. */
  2730. int
  2731. main ()
  2732. {
  2733. ;
  2734. return 0;
  2735. }
  2736. _ACEOF
  2737. rm -f conftest.$ac_objext
  2738. if { (ac_try="$ac_compile"
  2739. case "(($ac_try" in
  2740. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2741. *) ac_try_echo=$ac_try;;
  2742. esac
  2743. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2744. (eval "$ac_compile") 2>conftest.er1
  2745. ac_status=$?
  2746. grep -v '^ *+' conftest.er1 >conftest.err
  2747. rm -f conftest.er1
  2748. cat conftest.err >&5
  2749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2750. (exit $ac_status); } &&
  2751. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2752. { (case "(($ac_try" in
  2753. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2754. *) ac_try_echo=$ac_try;;
  2755. esac
  2756. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2757. (eval "$ac_try") 2>&5
  2758. ac_status=$?
  2759. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2760. (exit $ac_status); }; } &&
  2761. { ac_try='test -s conftest.$ac_objext'
  2762. { (case "(($ac_try" in
  2763. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2764. *) ac_try_echo=$ac_try;;
  2765. esac
  2766. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2767. (eval "$ac_try") 2>&5
  2768. ac_status=$?
  2769. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2770. (exit $ac_status); }; }; then
  2771. ac_cv_prog_cc_g=yes
  2772. else
  2773. echo "$as_me: failed program was:" >&5
  2774. sed 's/^/| /' conftest.$ac_ext >&5
  2775. CFLAGS=""
  2776. cat >conftest.$ac_ext <<_ACEOF
  2777. /* confdefs.h. */
  2778. _ACEOF
  2779. cat confdefs.h >>conftest.$ac_ext
  2780. cat >>conftest.$ac_ext <<_ACEOF
  2781. /* end confdefs.h. */
  2782. int
  2783. main ()
  2784. {
  2785. ;
  2786. return 0;
  2787. }
  2788. _ACEOF
  2789. rm -f conftest.$ac_objext
  2790. if { (ac_try="$ac_compile"
  2791. case "(($ac_try" in
  2792. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2793. *) ac_try_echo=$ac_try;;
  2794. esac
  2795. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2796. (eval "$ac_compile") 2>conftest.er1
  2797. ac_status=$?
  2798. grep -v '^ *+' conftest.er1 >conftest.err
  2799. rm -f conftest.er1
  2800. cat conftest.err >&5
  2801. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2802. (exit $ac_status); } &&
  2803. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2804. { (case "(($ac_try" in
  2805. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2806. *) ac_try_echo=$ac_try;;
  2807. esac
  2808. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2809. (eval "$ac_try") 2>&5
  2810. ac_status=$?
  2811. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2812. (exit $ac_status); }; } &&
  2813. { ac_try='test -s conftest.$ac_objext'
  2814. { (case "(($ac_try" in
  2815. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2816. *) ac_try_echo=$ac_try;;
  2817. esac
  2818. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2819. (eval "$ac_try") 2>&5
  2820. ac_status=$?
  2821. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2822. (exit $ac_status); }; }; then
  2823. :
  2824. else
  2825. echo "$as_me: failed program was:" >&5
  2826. sed 's/^/| /' conftest.$ac_ext >&5
  2827. ac_c_werror_flag=$ac_save_c_werror_flag
  2828. CFLAGS="-g"
  2829. cat >conftest.$ac_ext <<_ACEOF
  2830. /* confdefs.h. */
  2831. _ACEOF
  2832. cat confdefs.h >>conftest.$ac_ext
  2833. cat >>conftest.$ac_ext <<_ACEOF
  2834. /* end confdefs.h. */
  2835. int
  2836. main ()
  2837. {
  2838. ;
  2839. return 0;
  2840. }
  2841. _ACEOF
  2842. rm -f conftest.$ac_objext
  2843. if { (ac_try="$ac_compile"
  2844. case "(($ac_try" in
  2845. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2846. *) ac_try_echo=$ac_try;;
  2847. esac
  2848. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2849. (eval "$ac_compile") 2>conftest.er1
  2850. ac_status=$?
  2851. grep -v '^ *+' conftest.er1 >conftest.err
  2852. rm -f conftest.er1
  2853. cat conftest.err >&5
  2854. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2855. (exit $ac_status); } &&
  2856. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2857. { (case "(($ac_try" in
  2858. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2859. *) ac_try_echo=$ac_try;;
  2860. esac
  2861. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2862. (eval "$ac_try") 2>&5
  2863. ac_status=$?
  2864. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2865. (exit $ac_status); }; } &&
  2866. { ac_try='test -s conftest.$ac_objext'
  2867. { (case "(($ac_try" in
  2868. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2869. *) ac_try_echo=$ac_try;;
  2870. esac
  2871. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2872. (eval "$ac_try") 2>&5
  2873. ac_status=$?
  2874. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2875. (exit $ac_status); }; }; then
  2876. ac_cv_prog_cc_g=yes
  2877. else
  2878. echo "$as_me: failed program was:" >&5
  2879. sed 's/^/| /' conftest.$ac_ext >&5
  2880. fi
  2881. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2882. fi
  2883. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2884. fi
  2885. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2886. ac_c_werror_flag=$ac_save_c_werror_flag
  2887. fi
  2888. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2889. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  2890. if test "$ac_test_CFLAGS" = set; then
  2891. CFLAGS=$ac_save_CFLAGS
  2892. elif test $ac_cv_prog_cc_g = yes; then
  2893. if test "$GCC" = yes; then
  2894. CFLAGS="-g -O2"
  2895. else
  2896. CFLAGS="-g"
  2897. fi
  2898. else
  2899. if test "$GCC" = yes; then
  2900. CFLAGS="-O2"
  2901. else
  2902. CFLAGS=
  2903. fi
  2904. fi
  2905. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  2906. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  2907. if test "${ac_cv_prog_cc_c89+set}" = set; then
  2908. echo $ECHO_N "(cached) $ECHO_C" >&6
  2909. else
  2910. ac_cv_prog_cc_c89=no
  2911. ac_save_CC=$CC
  2912. cat >conftest.$ac_ext <<_ACEOF
  2913. /* confdefs.h. */
  2914. _ACEOF
  2915. cat confdefs.h >>conftest.$ac_ext
  2916. cat >>conftest.$ac_ext <<_ACEOF
  2917. /* end confdefs.h. */
  2918. #include <stdarg.h>
  2919. #include <stdio.h>
  2920. #include <sys/types.h>
  2921. #include <sys/stat.h>
  2922. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2923. struct buf { int x; };
  2924. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2925. static char *e (p, i)
  2926. char **p;
  2927. int i;
  2928. {
  2929. return p[i];
  2930. }
  2931. static char *f (char * (*g) (char **, int), char **p, ...)
  2932. {
  2933. char *s;
  2934. va_list v;
  2935. va_start (v,p);
  2936. s = g (p, va_arg (v,int));
  2937. va_end (v);
  2938. return s;
  2939. }
  2940. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2941. function prototypes and stuff, but not '\xHH' hex character constants.
  2942. These don't provoke an error unfortunately, instead are silently treated
  2943. as 'x'. The following induces an error, until -std is added to get
  2944. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2945. array size at least. It's necessary to write '\x00'==0 to get something
  2946. that's true only with -std. */
  2947. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2948. int test (int i, double x);
  2949. struct s1 {int (*f) (int a);};
  2950. struct s2 {int (*f) (double a);};
  2951. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2952. int argc;
  2953. char **argv;
  2954. int
  2955. main ()
  2956. {
  2957. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2958. ;
  2959. return 0;
  2960. }
  2961. _ACEOF
  2962. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2963. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2964. do
  2965. CC="$ac_save_CC $ac_arg"
  2966. rm -f conftest.$ac_objext
  2967. if { (ac_try="$ac_compile"
  2968. case "(($ac_try" in
  2969. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2970. *) ac_try_echo=$ac_try;;
  2971. esac
  2972. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2973. (eval "$ac_compile") 2>conftest.er1
  2974. ac_status=$?
  2975. grep -v '^ *+' conftest.er1 >conftest.err
  2976. rm -f conftest.er1
  2977. cat conftest.err >&5
  2978. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2979. (exit $ac_status); } &&
  2980. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2981. { (case "(($ac_try" in
  2982. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2983. *) ac_try_echo=$ac_try;;
  2984. esac
  2985. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2986. (eval "$ac_try") 2>&5
  2987. ac_status=$?
  2988. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2989. (exit $ac_status); }; } &&
  2990. { ac_try='test -s conftest.$ac_objext'
  2991. { (case "(($ac_try" in
  2992. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2993. *) ac_try_echo=$ac_try;;
  2994. esac
  2995. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2996. (eval "$ac_try") 2>&5
  2997. ac_status=$?
  2998. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2999. (exit $ac_status); }; }; then
  3000. ac_cv_prog_cc_c89=$ac_arg
  3001. else
  3002. echo "$as_me: failed program was:" >&5
  3003. sed 's/^/| /' conftest.$ac_ext >&5
  3004. fi
  3005. rm -f conftest.err conftest.$ac_objext
  3006. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3007. done
  3008. rm -f conftest.$ac_ext
  3009. CC=$ac_save_CC
  3010. fi
  3011. # AC_CACHE_VAL
  3012. case "x$ac_cv_prog_cc_c89" in
  3013. x)
  3014. { echo "$as_me:$LINENO: result: none needed" >&5
  3015. echo "${ECHO_T}none needed" >&6; } ;;
  3016. xno)
  3017. { echo "$as_me:$LINENO: result: unsupported" >&5
  3018. echo "${ECHO_T}unsupported" >&6; } ;;
  3019. *)
  3020. CC="$CC $ac_cv_prog_cc_c89"
  3021. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3022. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3023. esac
  3024. ac_ext=c
  3025. ac_cpp='$CPP $CPPFLAGS'
  3026. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3027. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3028. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3029. DEPDIR="${am__leading_dot}deps"
  3030. ac_config_commands="$ac_config_commands depfiles"
  3031. am_make=${MAKE-make}
  3032. cat > confinc << 'END'
  3033. am__doit:
  3034. @echo done
  3035. .PHONY: am__doit
  3036. END
  3037. # If we don't find an include directive, just comment out the code.
  3038. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  3039. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  3040. am__include="#"
  3041. am__quote=
  3042. _am_result=none
  3043. # First try GNU make style include.
  3044. echo "include confinc" > confmf
  3045. # We grep out `Entering directory' and `Leaving directory'
  3046. # messages which can occur if `w' ends up in MAKEFLAGS.
  3047. # In particular we don't look at `^make:' because GNU make might
  3048. # be invoked under some other name (usually "gmake"), in which
  3049. # case it prints its new name instead of `make'.
  3050. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  3051. am__include=include
  3052. am__quote=
  3053. _am_result=GNU
  3054. fi
  3055. # Now try BSD make style include.
  3056. if test "$am__include" = "#"; then
  3057. echo '.include "confinc"' > confmf
  3058. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  3059. am__include=.include
  3060. am__quote="\""
  3061. _am_result=BSD
  3062. fi
  3063. fi
  3064. { echo "$as_me:$LINENO: result: $_am_result" >&5
  3065. echo "${ECHO_T}$_am_result" >&6; }
  3066. rm -f confinc confmf
  3067. # Check whether --enable-dependency-tracking was given.
  3068. if test "${enable_dependency_tracking+set}" = set; then
  3069. enableval=$enable_dependency_tracking;
  3070. fi
  3071. if test "x$enable_dependency_tracking" != xno; then
  3072. am_depcomp="$ac_aux_dir/depcomp"
  3073. AMDEPBACKSLASH='\'
  3074. fi
  3075. if test "x$enable_dependency_tracking" != xno; then
  3076. AMDEP_TRUE=
  3077. AMDEP_FALSE='#'
  3078. else
  3079. AMDEP_TRUE='#'
  3080. AMDEP_FALSE=
  3081. fi
  3082. depcc="$CC" am_compiler_list=
  3083. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3084. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3085. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3086. echo $ECHO_N "(cached) $ECHO_C" >&6
  3087. else
  3088. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3089. # We make a subdir and do the tests there. Otherwise we can end up
  3090. # making bogus files that we don't know about and never remove. For
  3091. # instance it was reported that on HP-UX the gcc test will end up
  3092. # making a dummy file named `D' -- because `-MD' means `put the output
  3093. # in D'.
  3094. mkdir conftest.dir
  3095. # Copy depcomp to subdir because otherwise we won't find it if we're
  3096. # using a relative directory.
  3097. cp "$am_depcomp" conftest.dir
  3098. cd conftest.dir
  3099. # We will build objects and dependencies in a subdirectory because
  3100. # it helps to detect inapplicable dependency modes. For instance
  3101. # both Tru64's cc and ICC support -MD to output dependencies as a
  3102. # side effect of compilation, but ICC will put the dependencies in
  3103. # the current directory while Tru64 will put them in the object
  3104. # directory.
  3105. mkdir sub
  3106. am_cv_CC_dependencies_compiler_type=none
  3107. if test "$am_compiler_list" = ""; then
  3108. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3109. fi
  3110. for depmode in $am_compiler_list; do
  3111. # Setup a source with many dependencies, because some compilers
  3112. # like to wrap large dependency lists on column 80 (with \), and
  3113. # we should not choose a depcomp mode which is confused by this.
  3114. #
  3115. # We need to recreate these files for each test, as the compiler may
  3116. # overwrite some of them when testing with obscure command lines.
  3117. # This happens at least with the AIX C compiler.
  3118. : > sub/conftest.c
  3119. for i in 1 2 3 4 5 6; do
  3120. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3121. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3122. # Solaris 8's {/usr,}/bin/sh.
  3123. touch sub/conftst$i.h
  3124. done
  3125. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3126. case $depmode in
  3127. nosideeffect)
  3128. # after this tag, mechanisms are not by side-effect, so they'll
  3129. # only be used when explicitly requested
  3130. if test "x$enable_dependency_tracking" = xyes; then
  3131. continue
  3132. else
  3133. break
  3134. fi
  3135. ;;
  3136. none) break ;;
  3137. esac
  3138. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3139. # mode. It turns out that the SunPro C++ compiler does not properly
  3140. # handle `-M -o', and we need to detect this.
  3141. if depmode=$depmode \
  3142. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3143. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3144. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3145. >/dev/null 2>conftest.err &&
  3146. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3147. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3148. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3149. # icc doesn't choke on unknown options, it will just issue warnings
  3150. # or remarks (even with -Werror). So we grep stderr for any message
  3151. # that says an option was ignored or not supported.
  3152. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3153. # icc: Command line warning: ignoring option '-M'; no argument required
  3154. # The diagnosis changed in icc 8.0:
  3155. # icc: Command line remark: option '-MP' not supported
  3156. if (grep 'ignoring option' conftest.err ||
  3157. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3158. am_cv_CC_dependencies_compiler_type=$depmode
  3159. break
  3160. fi
  3161. fi
  3162. done
  3163. cd ..
  3164. rm -rf conftest.dir
  3165. else
  3166. am_cv_CC_dependencies_compiler_type=none
  3167. fi
  3168. fi
  3169. { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3170. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3171. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3172. if
  3173. test "x$enable_dependency_tracking" != xno \
  3174. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3175. am__fastdepCC_TRUE=
  3176. am__fastdepCC_FALSE='#'
  3177. else
  3178. am__fastdepCC_TRUE='#'
  3179. am__fastdepCC_FALSE=
  3180. fi
  3181. for ac_prog in gawk mawk nawk awk
  3182. do
  3183. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3184. set dummy $ac_prog; ac_word=$2
  3185. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3186. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3187. if test "${ac_cv_prog_AWK+set}" = set; then
  3188. echo $ECHO_N "(cached) $ECHO_C" >&6
  3189. else
  3190. if test -n "$AWK"; then
  3191. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3192. else
  3193. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3194. for as_dir in $PATH
  3195. do
  3196. IFS=$as_save_IFS
  3197. test -z "$as_dir" && as_dir=.
  3198. for ac_exec_ext in '' $ac_executable_extensions; do
  3199. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  3200. ac_cv_prog_AWK="$ac_prog"
  3201. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3202. break 2
  3203. fi
  3204. done
  3205. done
  3206. IFS=$as_save_IFS
  3207. fi
  3208. fi
  3209. AWK=$ac_cv_prog_AWK
  3210. if test -n "$AWK"; then
  3211. { echo "$as_me:$LINENO: result: $AWK" >&5
  3212. echo "${ECHO_T}$AWK" >&6; }
  3213. else
  3214. { echo "$as_me:$LINENO: result: no" >&5
  3215. echo "${ECHO_T}no" >&6; }
  3216. fi
  3217. test -n "$AWK" && break
  3218. done
  3219. # Find a good install program. We prefer a C program (faster),
  3220. # so one script is as good as another. But avoid the broken or
  3221. # incompatible versions:
  3222. # SysV /etc/install, /usr/sbin/install
  3223. # SunOS /usr/etc/install
  3224. # IRIX /sbin/install
  3225. # AIX /bin/install
  3226. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3227. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3228. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3229. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3230. # OS/2's system install, which has a completely different semantic
  3231. # ./install, which can be erroneously created by make from ./install.sh.
  3232. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  3233. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  3234. if test -z "$INSTALL"; then
  3235. if test "${ac_cv_path_install+set}" = set; then
  3236. echo $ECHO_N "(cached) $ECHO_C" >&6
  3237. else
  3238. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3239. for as_dir in $PATH
  3240. do
  3241. IFS=$as_save_IFS
  3242. test -z "$as_dir" && as_dir=.
  3243. # Account for people who put trailing slashes in PATH elements.
  3244. case $as_dir/ in
  3245. ./ | .// | /cC/* | \
  3246. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3247. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  3248. /usr/ucb/* ) ;;
  3249. *)
  3250. # OSF1 and SCO ODT 3.0 have their own names for install.
  3251. # Don't use installbsd from OSF since it installs stuff as root
  3252. # by default.
  3253. for ac_prog in ginstall scoinst install; do
  3254. for ac_exec_ext in '' $ac_executable_extensions; do
  3255. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
  3256. if test $ac_prog = install &&
  3257. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3258. # AIX install. It has an incompatible calling convention.
  3259. :
  3260. elif test $ac_prog = install &&
  3261. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3262. # program-specific install script used by HP pwplus--don't use.
  3263. :
  3264. else
  3265. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3266. break 3
  3267. fi
  3268. fi
  3269. done
  3270. done
  3271. ;;
  3272. esac
  3273. done
  3274. IFS=$as_save_IFS
  3275. fi
  3276. if test "${ac_cv_path_install+set}" = set; then
  3277. INSTALL=$ac_cv_path_install
  3278. else
  3279. # As a last resort, use the slow shell script. Don't cache a
  3280. # value for INSTALL within a source directory, because that will
  3281. # break other packages using the cache if that directory is
  3282. # removed, or if the value is a relative name.
  3283. INSTALL=$ac_install_sh
  3284. fi
  3285. fi
  3286. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  3287. echo "${ECHO_T}$INSTALL" >&6; }
  3288. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3289. # It thinks the first close brace ends the variable substitution.
  3290. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3291. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3292. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3293. # Check whether --enable-shared was given.
  3294. if test "${enable_shared+set}" = set; then
  3295. enableval=$enable_shared; p=${PACKAGE-default}
  3296. case $enableval in
  3297. yes) enable_shared=yes ;;
  3298. no) enable_shared=no ;;
  3299. *)
  3300. enable_shared=no
  3301. # Look at the argument we got. We use all the common list separators.
  3302. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3303. for pkg in $enableval; do
  3304. IFS="$lt_save_ifs"
  3305. if test "X$pkg" = "X$p"; then
  3306. enable_shared=yes
  3307. fi
  3308. done
  3309. IFS="$lt_save_ifs"
  3310. ;;
  3311. esac
  3312. else
  3313. enable_shared=yes
  3314. fi
  3315. # Check whether --enable-static was given.
  3316. if test "${enable_static+set}" = set; then
  3317. enableval=$enable_static; p=${PACKAGE-default}
  3318. case $enableval in
  3319. yes) enable_static=yes ;;
  3320. no) enable_static=no ;;
  3321. *)
  3322. enable_static=no
  3323. # Look at the argument we got. We use all the common list separators.
  3324. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3325. for pkg in $enableval; do
  3326. IFS="$lt_save_ifs"
  3327. if test "X$pkg" = "X$p"; then
  3328. enable_static=yes
  3329. fi
  3330. done
  3331. IFS="$lt_save_ifs"
  3332. ;;
  3333. esac
  3334. else
  3335. enable_static=yes
  3336. fi
  3337. # Check whether --enable-fast-install was given.
  3338. if test "${enable_fast_install+set}" = set; then
  3339. enableval=$enable_fast_install; p=${PACKAGE-default}
  3340. case $enableval in
  3341. yes) enable_fast_install=yes ;;
  3342. no) enable_fast_install=no ;;
  3343. *)
  3344. enable_fast_install=no
  3345. # Look at the argument we got. We use all the common list separators.
  3346. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3347. for pkg in $enableval; do
  3348. IFS="$lt_save_ifs"
  3349. if test "X$pkg" = "X$p"; then
  3350. enable_fast_install=yes
  3351. fi
  3352. done
  3353. IFS="$lt_save_ifs"
  3354. ;;
  3355. esac
  3356. else
  3357. enable_fast_install=yes
  3358. fi
  3359. # Make sure we can run config.sub.
  3360. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3361. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  3362. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  3363. { (exit 1); exit 1; }; }
  3364. { echo "$as_me:$LINENO: checking build system type" >&5
  3365. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  3366. if test "${ac_cv_build+set}" = set; then
  3367. echo $ECHO_N "(cached) $ECHO_C" >&6
  3368. else
  3369. ac_build_alias=$build_alias
  3370. test "x$ac_build_alias" = x &&
  3371. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3372. test "x$ac_build_alias" = x &&
  3373. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  3374. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  3375. { (exit 1); exit 1; }; }
  3376. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3377. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  3378. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  3379. { (exit 1); exit 1; }; }
  3380. fi
  3381. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  3382. echo "${ECHO_T}$ac_cv_build" >&6; }
  3383. case $ac_cv_build in
  3384. *-*-*) ;;
  3385. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  3386. echo "$as_me: error: invalid value of canonical build" >&2;}
  3387. { (exit 1); exit 1; }; };;
  3388. esac
  3389. build=$ac_cv_build
  3390. ac_save_IFS=$IFS; IFS='-'
  3391. set x $ac_cv_build
  3392. shift
  3393. build_cpu=$1
  3394. build_vendor=$2
  3395. shift; shift
  3396. # Remember, the first character of IFS is used to create $*,
  3397. # except with old shells:
  3398. build_os=$*
  3399. IFS=$ac_save_IFS
  3400. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3401. { echo "$as_me:$LINENO: checking host system type" >&5
  3402. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  3403. if test "${ac_cv_host+set}" = set; then
  3404. echo $ECHO_N "(cached) $ECHO_C" >&6
  3405. else
  3406. if test "x$host_alias" = x; then
  3407. ac_cv_host=$ac_cv_build
  3408. else
  3409. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3410. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  3411. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  3412. { (exit 1); exit 1; }; }
  3413. fi
  3414. fi
  3415. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  3416. echo "${ECHO_T}$ac_cv_host" >&6; }
  3417. case $ac_cv_host in
  3418. *-*-*) ;;
  3419. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  3420. echo "$as_me: error: invalid value of canonical host" >&2;}
  3421. { (exit 1); exit 1; }; };;
  3422. esac
  3423. host=$ac_cv_host
  3424. ac_save_IFS=$IFS; IFS='-'
  3425. set x $ac_cv_host
  3426. shift
  3427. host_cpu=$1
  3428. host_vendor=$2
  3429. shift; shift
  3430. # Remember, the first character of IFS is used to create $*,
  3431. # except with old shells:
  3432. host_os=$*
  3433. IFS=$ac_save_IFS
  3434. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3435. { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  3436. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
  3437. if test "${lt_cv_path_SED+set}" = set; then
  3438. echo $ECHO_N "(cached) $ECHO_C" >&6
  3439. else
  3440. # Loop through the user's path and test for sed and gsed.
  3441. # Then use that list of sed's as ones to test for truncation.
  3442. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3443. for as_dir in $PATH
  3444. do
  3445. IFS=$as_save_IFS
  3446. test -z "$as_dir" && as_dir=.
  3447. for lt_ac_prog in sed gsed; do
  3448. for ac_exec_ext in '' $ac_executable_extensions; do
  3449. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  3450. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  3451. fi
  3452. done
  3453. done
  3454. done
  3455. lt_ac_max=0
  3456. lt_ac_count=0
  3457. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  3458. # along with /bin/sed that truncates output.
  3459. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  3460. test ! -f $lt_ac_sed && continue
  3461. cat /dev/null > conftest.in
  3462. lt_ac_count=0
  3463. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  3464. # Check for GNU sed and select it if it is found.
  3465. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  3466. lt_cv_path_SED=$lt_ac_sed
  3467. break
  3468. fi
  3469. while true; do
  3470. cat conftest.in conftest.in >conftest.tmp
  3471. mv conftest.tmp conftest.in
  3472. cp conftest.in conftest.nl
  3473. echo >>conftest.nl
  3474. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  3475. cmp -s conftest.out conftest.nl || break
  3476. # 10000 chars as input seems more than enough
  3477. test $lt_ac_count -gt 10 && break
  3478. lt_ac_count=`expr $lt_ac_count + 1`
  3479. if test $lt_ac_count -gt $lt_ac_max; then
  3480. lt_ac_max=$lt_ac_count
  3481. lt_cv_path_SED=$lt_ac_sed
  3482. fi
  3483. done
  3484. done
  3485. fi
  3486. SED=$lt_cv_path_SED
  3487. { echo "$as_me:$LINENO: result: $SED" >&5
  3488. echo "${ECHO_T}$SED" >&6; }
  3489. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  3490. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  3491. if test "${ac_cv_path_GREP+set}" = set; then
  3492. echo $ECHO_N "(cached) $ECHO_C" >&6
  3493. else
  3494. # Extract the first word of "grep ggrep" to use in msg output
  3495. if test -z "$GREP"; then
  3496. set dummy grep ggrep; ac_prog_name=$2
  3497. if test "${ac_cv_path_GREP+set}" = set; then
  3498. echo $ECHO_N "(cached) $ECHO_C" >&6
  3499. else
  3500. ac_path_GREP_found=false
  3501. # Loop through the user's path and test for each of PROGNAME-LIST
  3502. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3503. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3504. do
  3505. IFS=$as_save_IFS
  3506. test -z "$as_dir" && as_dir=.
  3507. for ac_prog in grep ggrep; do
  3508. for ac_exec_ext in '' $ac_executable_extensions; do
  3509. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3510. { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
  3511. # Check for GNU ac_path_GREP and select it if it is found.
  3512. # Check for GNU $ac_path_GREP
  3513. case `"$ac_path_GREP" --version 2>&1` in
  3514. *GNU*)
  3515. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3516. *)
  3517. ac_count=0
  3518. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3519. while :
  3520. do
  3521. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3522. mv "conftest.tmp" "conftest.in"
  3523. cp "conftest.in" "conftest.nl"
  3524. echo 'GREP' >> "conftest.nl"
  3525. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3526. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3527. ac_count=`expr $ac_count + 1`
  3528. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3529. # Best one so far, save it but keep looking for a better one
  3530. ac_cv_path_GREP="$ac_path_GREP"
  3531. ac_path_GREP_max=$ac_count
  3532. fi
  3533. # 10*(2^10) chars as input seems more than enough
  3534. test $ac_count -gt 10 && break
  3535. done
  3536. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3537. esac
  3538. $ac_path_GREP_found && break 3
  3539. done
  3540. done
  3541. done
  3542. IFS=$as_save_IFS
  3543. fi
  3544. GREP="$ac_cv_path_GREP"
  3545. if test -z "$GREP"; then
  3546. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3547. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3548. { (exit 1); exit 1; }; }
  3549. fi
  3550. else
  3551. ac_cv_path_GREP=$GREP
  3552. fi
  3553. fi
  3554. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  3555. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  3556. GREP="$ac_cv_path_GREP"
  3557. { echo "$as_me:$LINENO: checking for egrep" >&5
  3558. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  3559. if test "${ac_cv_path_EGREP+set}" = set; then
  3560. echo $ECHO_N "(cached) $ECHO_C" >&6
  3561. else
  3562. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3563. then ac_cv_path_EGREP="$GREP -E"
  3564. else
  3565. # Extract the first word of "egrep" to use in msg output
  3566. if test -z "$EGREP"; then
  3567. set dummy egrep; ac_prog_name=$2
  3568. if test "${ac_cv_path_EGREP+set}" = set; then
  3569. echo $ECHO_N "(cached) $ECHO_C" >&6
  3570. else
  3571. ac_path_EGREP_found=false
  3572. # Loop through the user's path and test for each of PROGNAME-LIST
  3573. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3574. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3575. do
  3576. IFS=$as_save_IFS
  3577. test -z "$as_dir" && as_dir=.
  3578. for ac_prog in egrep; do
  3579. for ac_exec_ext in '' $ac_executable_extensions; do
  3580. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3581. { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
  3582. # Check for GNU ac_path_EGREP and select it if it is found.
  3583. # Check for GNU $ac_path_EGREP
  3584. case `"$ac_path_EGREP" --version 2>&1` in
  3585. *GNU*)
  3586. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3587. *)
  3588. ac_count=0
  3589. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3590. while :
  3591. do
  3592. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3593. mv "conftest.tmp" "conftest.in"
  3594. cp "conftest.in" "conftest.nl"
  3595. echo 'EGREP' >> "conftest.nl"
  3596. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3597. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3598. ac_count=`expr $ac_count + 1`
  3599. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3600. # Best one so far, save it but keep looking for a better one
  3601. ac_cv_path_EGREP="$ac_path_EGREP"
  3602. ac_path_EGREP_max=$ac_count
  3603. fi
  3604. # 10*(2^10) chars as input seems more than enough
  3605. test $ac_count -gt 10 && break
  3606. done
  3607. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3608. esac
  3609. $ac_path_EGREP_found && break 3
  3610. done
  3611. done
  3612. done
  3613. IFS=$as_save_IFS
  3614. fi
  3615. EGREP="$ac_cv_path_EGREP"
  3616. if test -z "$EGREP"; then
  3617. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3618. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3619. { (exit 1); exit 1; }; }
  3620. fi
  3621. else
  3622. ac_cv_path_EGREP=$EGREP
  3623. fi
  3624. fi
  3625. fi
  3626. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  3627. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  3628. EGREP="$ac_cv_path_EGREP"
  3629. # Check whether --with-gnu-ld was given.
  3630. if test "${with_gnu_ld+set}" = set; then
  3631. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3632. else
  3633. with_gnu_ld=no
  3634. fi
  3635. ac_prog=ld
  3636. if test "$GCC" = yes; then
  3637. # Check if gcc -print-prog-name=ld gives a path.
  3638. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  3639. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  3640. case $host in
  3641. *-*-mingw*)
  3642. # gcc leaves a trailing carriage return which upsets mingw
  3643. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3644. *)
  3645. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3646. esac
  3647. case $ac_prog in
  3648. # Accept absolute paths.
  3649. [\\/]* | ?:[\\/]*)
  3650. re_direlt='/[^/][^/]*/\.\./'
  3651. # Canonicalize the pathname of ld
  3652. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  3653. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  3654. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  3655. done
  3656. test -z "$LD" && LD="$ac_prog"
  3657. ;;
  3658. "")
  3659. # If it fails, then pretend we aren't using GCC.
  3660. ac_prog=ld
  3661. ;;
  3662. *)
  3663. # If it is relative, then search for the first ld in PATH.
  3664. with_gnu_ld=unknown
  3665. ;;
  3666. esac
  3667. elif test "$with_gnu_ld" = yes; then
  3668. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  3669. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  3670. else
  3671. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  3672. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  3673. fi
  3674. if test "${lt_cv_path_LD+set}" = set; then
  3675. echo $ECHO_N "(cached) $ECHO_C" >&6
  3676. else
  3677. if test -z "$LD"; then
  3678. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3679. for ac_dir in $PATH; do
  3680. IFS="$lt_save_ifs"
  3681. test -z "$ac_dir" && ac_dir=.
  3682. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3683. lt_cv_path_LD="$ac_dir/$ac_prog"
  3684. # Check to see if the program is GNU ld. I'd rather use --version,
  3685. # but apparently some variants of GNU ld only accept -v.
  3686. # Break only if it was the GNU/non-GNU ld that we prefer.
  3687. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3688. *GNU* | *'with BFD'*)
  3689. test "$with_gnu_ld" != no && break
  3690. ;;
  3691. *)
  3692. test "$with_gnu_ld" != yes && break
  3693. ;;
  3694. esac
  3695. fi
  3696. done
  3697. IFS="$lt_save_ifs"
  3698. else
  3699. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3700. fi
  3701. fi
  3702. LD="$lt_cv_path_LD"
  3703. if test -n "$LD"; then
  3704. { echo "$as_me:$LINENO: result: $LD" >&5
  3705. echo "${ECHO_T}$LD" >&6; }
  3706. else
  3707. { echo "$as_me:$LINENO: result: no" >&5
  3708. echo "${ECHO_T}no" >&6; }
  3709. fi
  3710. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  3711. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  3712. { (exit 1); exit 1; }; }
  3713. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  3714. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  3715. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  3716. echo $ECHO_N "(cached) $ECHO_C" >&6
  3717. else
  3718. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3719. case `$LD -v 2>&1 </dev/null` in
  3720. *GNU* | *'with BFD'*)
  3721. lt_cv_prog_gnu_ld=yes
  3722. ;;
  3723. *)
  3724. lt_cv_prog_gnu_ld=no
  3725. ;;
  3726. esac
  3727. fi
  3728. { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  3729. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  3730. with_gnu_ld=$lt_cv_prog_gnu_ld
  3731. { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  3732. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
  3733. if test "${lt_cv_ld_reload_flag+set}" = set; then
  3734. echo $ECHO_N "(cached) $ECHO_C" >&6
  3735. else
  3736. lt_cv_ld_reload_flag='-r'
  3737. fi
  3738. { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  3739. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
  3740. reload_flag=$lt_cv_ld_reload_flag
  3741. case $reload_flag in
  3742. "" | " "*) ;;
  3743. *) reload_flag=" $reload_flag" ;;
  3744. esac
  3745. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3746. case $host_os in
  3747. darwin*)
  3748. if test "$GCC" = yes; then
  3749. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  3750. else
  3751. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3752. fi
  3753. ;;
  3754. esac
  3755. { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  3756. echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
  3757. if test "${lt_cv_path_NM+set}" = set; then
  3758. echo $ECHO_N "(cached) $ECHO_C" >&6
  3759. else
  3760. if test -n "$NM"; then
  3761. # Let the user override the test.
  3762. lt_cv_path_NM="$NM"
  3763. else
  3764. lt_nm_to_check="${ac_tool_prefix}nm"
  3765. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3766. lt_nm_to_check="$lt_nm_to_check nm"
  3767. fi
  3768. for lt_tmp_nm in $lt_nm_to_check; do
  3769. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3770. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3771. IFS="$lt_save_ifs"
  3772. test -z "$ac_dir" && ac_dir=.
  3773. tmp_nm="$ac_dir/$lt_tmp_nm"
  3774. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3775. # Check to see if the nm accepts a BSD-compat flag.
  3776. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3777. # nm: unknown option "B" ignored
  3778. # Tru64's nm complains that /dev/null is an invalid object file
  3779. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3780. */dev/null* | *'Invalid file or object type'*)
  3781. lt_cv_path_NM="$tmp_nm -B"
  3782. break
  3783. ;;
  3784. *)
  3785. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3786. */dev/null*)
  3787. lt_cv_path_NM="$tmp_nm -p"
  3788. break
  3789. ;;
  3790. *)
  3791. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3792. continue # so that we can try to find one that supports BSD flags
  3793. ;;
  3794. esac
  3795. ;;
  3796. esac
  3797. fi
  3798. done
  3799. IFS="$lt_save_ifs"
  3800. done
  3801. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  3802. fi
  3803. fi
  3804. { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  3805. echo "${ECHO_T}$lt_cv_path_NM" >&6; }
  3806. NM="$lt_cv_path_NM"
  3807. { echo "$as_me:$LINENO: checking whether ln -s works" >&5
  3808. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
  3809. LN_S=$as_ln_s
  3810. if test "$LN_S" = "ln -s"; then
  3811. { echo "$as_me:$LINENO: result: yes" >&5
  3812. echo "${ECHO_T}yes" >&6; }
  3813. else
  3814. { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  3815. echo "${ECHO_T}no, using $LN_S" >&6; }
  3816. fi
  3817. { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  3818. echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
  3819. if test "${lt_cv_deplibs_check_method+set}" = set; then
  3820. echo $ECHO_N "(cached) $ECHO_C" >&6
  3821. else
  3822. lt_cv_file_magic_cmd='$MAGIC_CMD'
  3823. lt_cv_file_magic_test_file=
  3824. lt_cv_deplibs_check_method='unknown'
  3825. # Need to set the preceding variable on all platforms that support
  3826. # interlibrary dependencies.
  3827. # 'none' -- dependencies not supported.
  3828. # `unknown' -- same as none, but documents that we really don't know.
  3829. # 'pass_all' -- all dependencies passed with no checks.
  3830. # 'test_compile' -- check by making test program.
  3831. # 'file_magic [[regex]]' -- check by looking for files in library path
  3832. # which responds to the $file_magic_cmd with a given extended regex.
  3833. # If you have `file' or equivalent on your system and you're not sure
  3834. # whether `pass_all' will *always* work, you probably want this one.
  3835. case $host_os in
  3836. aix4* | aix5*)
  3837. lt_cv_deplibs_check_method=pass_all
  3838. ;;
  3839. beos*)
  3840. lt_cv_deplibs_check_method=pass_all
  3841. ;;
  3842. bsdi[45]*)
  3843. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  3844. lt_cv_file_magic_cmd='/usr/bin/file -L'
  3845. lt_cv_file_magic_test_file=/shlib/libc.so
  3846. ;;
  3847. cygwin*)
  3848. # func_win32_libid is a shell function defined in ltmain.sh
  3849. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3850. lt_cv_file_magic_cmd='func_win32_libid'
  3851. ;;
  3852. mingw* | pw32*)
  3853. # Base MSYS/MinGW do not provide the 'file' command needed by
  3854. # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  3855. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  3856. lt_cv_file_magic_cmd='$OBJDUMP -f'
  3857. ;;
  3858. darwin* | rhapsody*)
  3859. lt_cv_deplibs_check_method=pass_all
  3860. ;;
  3861. freebsd* | dragonfly*)
  3862. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3863. case $host_cpu in
  3864. i*86 )
  3865. # Not sure whether the presence of OpenBSD here was a mistake.
  3866. # Let's accept both of them until this is cleared up.
  3867. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  3868. lt_cv_file_magic_cmd=/usr/bin/file
  3869. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3870. ;;
  3871. esac
  3872. else
  3873. lt_cv_deplibs_check_method=pass_all
  3874. fi
  3875. ;;
  3876. gnu*)
  3877. lt_cv_deplibs_check_method=pass_all
  3878. ;;
  3879. hpux10.20* | hpux11*)
  3880. lt_cv_file_magic_cmd=/usr/bin/file
  3881. case $host_cpu in
  3882. ia64*)
  3883. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  3884. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  3885. ;;
  3886. hppa*64*)
  3887. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
  3888. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  3889. ;;
  3890. *)
  3891. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  3892. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  3893. ;;
  3894. esac
  3895. ;;
  3896. interix3*)
  3897. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  3898. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  3899. ;;
  3900. irix5* | irix6* | nonstopux*)
  3901. case $LD in
  3902. *-32|*"-32 ") libmagic=32-bit;;
  3903. *-n32|*"-n32 ") libmagic=N32;;
  3904. *-64|*"-64 ") libmagic=64-bit;;
  3905. *) libmagic=never-match;;
  3906. esac
  3907. lt_cv_deplibs_check_method=pass_all
  3908. ;;
  3909. # This must be Linux ELF.
  3910. linux* | k*bsd*-gnu)
  3911. lt_cv_deplibs_check_method=pass_all
  3912. ;;
  3913. netbsd* | netbsdelf*-gnu)
  3914. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3915. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  3916. else
  3917. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  3918. fi
  3919. ;;
  3920. newos6*)
  3921. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  3922. lt_cv_file_magic_cmd=/usr/bin/file
  3923. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  3924. ;;
  3925. nto-qnx*)
  3926. lt_cv_deplibs_check_method=unknown
  3927. ;;
  3928. openbsd*)
  3929. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3930. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  3931. else
  3932. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  3933. fi
  3934. ;;
  3935. osf3* | osf4* | osf5*)
  3936. lt_cv_deplibs_check_method=pass_all
  3937. ;;
  3938. solaris*)
  3939. lt_cv_deplibs_check_method=pass_all
  3940. ;;
  3941. sysv4 | sysv4.3*)
  3942. case $host_vendor in
  3943. motorola)
  3944. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
  3945. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  3946. ;;
  3947. ncr)
  3948. lt_cv_deplibs_check_method=pass_all
  3949. ;;
  3950. sequent)
  3951. lt_cv_file_magic_cmd='/bin/file'
  3952. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  3953. ;;
  3954. sni)
  3955. lt_cv_file_magic_cmd='/bin/file'
  3956. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  3957. lt_cv_file_magic_test_file=/lib/libc.so
  3958. ;;
  3959. siemens)
  3960. lt_cv_deplibs_check_method=pass_all
  3961. ;;
  3962. pc)
  3963. lt_cv_deplibs_check_method=pass_all
  3964. ;;
  3965. esac
  3966. ;;
  3967. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3968. lt_cv_deplibs_check_method=pass_all
  3969. ;;
  3970. esac
  3971. fi
  3972. { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  3973. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
  3974. file_magic_cmd=$lt_cv_file_magic_cmd
  3975. deplibs_check_method=$lt_cv_deplibs_check_method
  3976. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3977. # If no C compiler was specified, use CC.
  3978. LTCC=${LTCC-"$CC"}
  3979. # If no C compiler flags were specified, use CFLAGS.
  3980. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  3981. # Allow CC to be a program name with arguments.
  3982. compiler=$CC
  3983. # Check whether --enable-libtool-lock was given.
  3984. if test "${enable_libtool_lock+set}" = set; then
  3985. enableval=$enable_libtool_lock;
  3986. fi
  3987. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  3988. # Some flags need to be propagated to the compiler or linker for good
  3989. # libtool support.
  3990. case $host in
  3991. ia64-*-hpux*)
  3992. # Find out which ABI we are using.
  3993. echo 'int i;' > conftest.$ac_ext
  3994. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3995. (eval $ac_compile) 2>&5
  3996. ac_status=$?
  3997. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3998. (exit $ac_status); }; then
  3999. case `/usr/bin/file conftest.$ac_objext` in
  4000. *ELF-32*)
  4001. HPUX_IA64_MODE="32"
  4002. ;;
  4003. *ELF-64*)
  4004. HPUX_IA64_MODE="64"
  4005. ;;
  4006. esac
  4007. fi
  4008. rm -rf conftest*
  4009. ;;
  4010. *-*-irix6*)
  4011. # Find out which ABI we are using.
  4012. echo '#line 4497 "configure"' > conftest.$ac_ext
  4013. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4014. (eval $ac_compile) 2>&5
  4015. ac_status=$?
  4016. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4017. (exit $ac_status); }; then
  4018. if test "$lt_cv_prog_gnu_ld" = yes; then
  4019. case `/usr/bin/file conftest.$ac_objext` in
  4020. *32-bit*)
  4021. LD="${LD-ld} -melf32bsmip"
  4022. ;;
  4023. *N32*)
  4024. LD="${LD-ld} -melf32bmipn32"
  4025. ;;
  4026. *64-bit*)
  4027. LD="${LD-ld} -melf64bmip"
  4028. ;;
  4029. esac
  4030. else
  4031. case `/usr/bin/file conftest.$ac_objext` in
  4032. *32-bit*)
  4033. LD="${LD-ld} -32"
  4034. ;;
  4035. *N32*)
  4036. LD="${LD-ld} -n32"
  4037. ;;
  4038. *64-bit*)
  4039. LD="${LD-ld} -64"
  4040. ;;
  4041. esac
  4042. fi
  4043. fi
  4044. rm -rf conftest*
  4045. ;;
  4046. x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  4047. # Find out which ABI we are using.
  4048. echo 'int i;' > conftest.$ac_ext
  4049. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4050. (eval $ac_compile) 2>&5
  4051. ac_status=$?
  4052. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4053. (exit $ac_status); }; then
  4054. case `/usr/bin/file conftest.o` in
  4055. *32-bit*)
  4056. case $host in
  4057. x86_64-*linux*)
  4058. LD="${LD-ld} -m elf_i386"
  4059. ;;
  4060. ppc64-*linux*|powerpc64-*linux*)
  4061. LD="${LD-ld} -m elf32ppclinux"
  4062. ;;
  4063. s390x-*linux*)
  4064. LD="${LD-ld} -m elf_s390"
  4065. ;;
  4066. sparc64-*linux*)
  4067. LD="${LD-ld} -m elf32_sparc"
  4068. ;;
  4069. esac
  4070. ;;
  4071. *64-bit*)
  4072. case $host in
  4073. x86_64-*linux*)
  4074. LD="${LD-ld} -m elf_x86_64"
  4075. ;;
  4076. ppc*-*linux*|powerpc*-*linux*)
  4077. LD="${LD-ld} -m elf64ppc"
  4078. ;;
  4079. s390*-*linux*)
  4080. LD="${LD-ld} -m elf64_s390"
  4081. ;;
  4082. sparc*-*linux*)
  4083. LD="${LD-ld} -m elf64_sparc"
  4084. ;;
  4085. esac
  4086. ;;
  4087. esac
  4088. fi
  4089. rm -rf conftest*
  4090. ;;
  4091. *-*-sco3.2v5*)
  4092. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  4093. SAVE_CFLAGS="$CFLAGS"
  4094. CFLAGS="$CFLAGS -belf"
  4095. { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  4096. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
  4097. if test "${lt_cv_cc_needs_belf+set}" = set; then
  4098. echo $ECHO_N "(cached) $ECHO_C" >&6
  4099. else
  4100. ac_ext=c
  4101. ac_cpp='$CPP $CPPFLAGS'
  4102. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4103. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4104. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4105. cat >conftest.$ac_ext <<_ACEOF
  4106. /* confdefs.h. */
  4107. _ACEOF
  4108. cat confdefs.h >>conftest.$ac_ext
  4109. cat >>conftest.$ac_ext <<_ACEOF
  4110. /* end confdefs.h. */
  4111. int
  4112. main ()
  4113. {
  4114. ;
  4115. return 0;
  4116. }
  4117. _ACEOF
  4118. rm -f conftest.$ac_objext conftest$ac_exeext
  4119. if { (ac_try="$ac_link"
  4120. case "(($ac_try" in
  4121. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4122. *) ac_try_echo=$ac_try;;
  4123. esac
  4124. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4125. (eval "$ac_link") 2>conftest.er1
  4126. ac_status=$?
  4127. grep -v '^ *+' conftest.er1 >conftest.err
  4128. rm -f conftest.er1
  4129. cat conftest.err >&5
  4130. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4131. (exit $ac_status); } &&
  4132. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4133. { (case "(($ac_try" in
  4134. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4135. *) ac_try_echo=$ac_try;;
  4136. esac
  4137. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4138. (eval "$ac_try") 2>&5
  4139. ac_status=$?
  4140. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4141. (exit $ac_status); }; } &&
  4142. { ac_try='test -s conftest$ac_exeext'
  4143. { (case "(($ac_try" in
  4144. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4145. *) ac_try_echo=$ac_try;;
  4146. esac
  4147. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4148. (eval "$ac_try") 2>&5
  4149. ac_status=$?
  4150. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4151. (exit $ac_status); }; }; then
  4152. lt_cv_cc_needs_belf=yes
  4153. else
  4154. echo "$as_me: failed program was:" >&5
  4155. sed 's/^/| /' conftest.$ac_ext >&5
  4156. lt_cv_cc_needs_belf=no
  4157. fi
  4158. rm -f conftest.err conftest.$ac_objext \
  4159. conftest$ac_exeext conftest.$ac_ext
  4160. ac_ext=c
  4161. ac_cpp='$CPP $CPPFLAGS'
  4162. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4163. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4164. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4165. fi
  4166. { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  4167. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
  4168. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  4169. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  4170. CFLAGS="$SAVE_CFLAGS"
  4171. fi
  4172. ;;
  4173. sparc*-*solaris*)
  4174. # Find out which ABI we are using.
  4175. echo 'int i;' > conftest.$ac_ext
  4176. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4177. (eval $ac_compile) 2>&5
  4178. ac_status=$?
  4179. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4180. (exit $ac_status); }; then
  4181. case `/usr/bin/file conftest.o` in
  4182. *64-bit*)
  4183. case $lt_cv_prog_gnu_ld in
  4184. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  4185. *) LD="${LD-ld} -64" ;;
  4186. esac
  4187. ;;
  4188. esac
  4189. fi
  4190. rm -rf conftest*
  4191. ;;
  4192. esac
  4193. need_locks="$enable_libtool_lock"
  4194. ac_ext=c
  4195. ac_cpp='$CPP $CPPFLAGS'
  4196. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4197. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4198. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4199. { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  4200. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  4201. # On Suns, sometimes $CPP names a directory.
  4202. if test -n "$CPP" && test -d "$CPP"; then
  4203. CPP=
  4204. fi
  4205. if test -z "$CPP"; then
  4206. if test "${ac_cv_prog_CPP+set}" = set; then
  4207. echo $ECHO_N "(cached) $ECHO_C" >&6
  4208. else
  4209. # Double quotes because CPP needs to be expanded
  4210. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4211. do
  4212. ac_preproc_ok=false
  4213. for ac_c_preproc_warn_flag in '' yes
  4214. do
  4215. # Use a header file that comes with gcc, so configuring glibc
  4216. # with a fresh cross-compiler works.
  4217. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4218. # <limits.h> exists even on freestanding compilers.
  4219. # On the NeXT, cc -E runs the code through the compiler's parser,
  4220. # not just through cpp. "Syntax error" is here to catch this case.
  4221. cat >conftest.$ac_ext <<_ACEOF
  4222. /* confdefs.h. */
  4223. _ACEOF
  4224. cat confdefs.h >>conftest.$ac_ext
  4225. cat >>conftest.$ac_ext <<_ACEOF
  4226. /* end confdefs.h. */
  4227. #ifdef __STDC__
  4228. # include <limits.h>
  4229. #else
  4230. # include <assert.h>
  4231. #endif
  4232. Syntax error
  4233. _ACEOF
  4234. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4235. case "(($ac_try" in
  4236. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4237. *) ac_try_echo=$ac_try;;
  4238. esac
  4239. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4240. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4241. ac_status=$?
  4242. grep -v '^ *+' conftest.er1 >conftest.err
  4243. rm -f conftest.er1
  4244. cat conftest.err >&5
  4245. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4246. (exit $ac_status); } >/dev/null; then
  4247. if test -s conftest.err; then
  4248. ac_cpp_err=$ac_c_preproc_warn_flag
  4249. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4250. else
  4251. ac_cpp_err=
  4252. fi
  4253. else
  4254. ac_cpp_err=yes
  4255. fi
  4256. if test -z "$ac_cpp_err"; then
  4257. :
  4258. else
  4259. echo "$as_me: failed program was:" >&5
  4260. sed 's/^/| /' conftest.$ac_ext >&5
  4261. # Broken: fails on valid input.
  4262. continue
  4263. fi
  4264. rm -f conftest.err conftest.$ac_ext
  4265. # OK, works on sane cases. Now check whether nonexistent headers
  4266. # can be detected and how.
  4267. cat >conftest.$ac_ext <<_ACEOF
  4268. /* confdefs.h. */
  4269. _ACEOF
  4270. cat confdefs.h >>conftest.$ac_ext
  4271. cat >>conftest.$ac_ext <<_ACEOF
  4272. /* end confdefs.h. */
  4273. #include <ac_nonexistent.h>
  4274. _ACEOF
  4275. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4276. case "(($ac_try" in
  4277. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4278. *) ac_try_echo=$ac_try;;
  4279. esac
  4280. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4281. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4282. ac_status=$?
  4283. grep -v '^ *+' conftest.er1 >conftest.err
  4284. rm -f conftest.er1
  4285. cat conftest.err >&5
  4286. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4287. (exit $ac_status); } >/dev/null; then
  4288. if test -s conftest.err; then
  4289. ac_cpp_err=$ac_c_preproc_warn_flag
  4290. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4291. else
  4292. ac_cpp_err=
  4293. fi
  4294. else
  4295. ac_cpp_err=yes
  4296. fi
  4297. if test -z "$ac_cpp_err"; then
  4298. # Broken: success on invalid input.
  4299. continue
  4300. else
  4301. echo "$as_me: failed program was:" >&5
  4302. sed 's/^/| /' conftest.$ac_ext >&5
  4303. # Passes both tests.
  4304. ac_preproc_ok=:
  4305. break
  4306. fi
  4307. rm -f conftest.err conftest.$ac_ext
  4308. done
  4309. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4310. rm -f conftest.err conftest.$ac_ext
  4311. if $ac_preproc_ok; then
  4312. break
  4313. fi
  4314. done
  4315. ac_cv_prog_CPP=$CPP
  4316. fi
  4317. CPP=$ac_cv_prog_CPP
  4318. else
  4319. ac_cv_prog_CPP=$CPP
  4320. fi
  4321. { echo "$as_me:$LINENO: result: $CPP" >&5
  4322. echo "${ECHO_T}$CPP" >&6; }
  4323. ac_preproc_ok=false
  4324. for ac_c_preproc_warn_flag in '' yes
  4325. do
  4326. # Use a header file that comes with gcc, so configuring glibc
  4327. # with a fresh cross-compiler works.
  4328. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4329. # <limits.h> exists even on freestanding compilers.
  4330. # On the NeXT, cc -E runs the code through the compiler's parser,
  4331. # not just through cpp. "Syntax error" is here to catch this case.
  4332. cat >conftest.$ac_ext <<_ACEOF
  4333. /* confdefs.h. */
  4334. _ACEOF
  4335. cat confdefs.h >>conftest.$ac_ext
  4336. cat >>conftest.$ac_ext <<_ACEOF
  4337. /* end confdefs.h. */
  4338. #ifdef __STDC__
  4339. # include <limits.h>
  4340. #else
  4341. # include <assert.h>
  4342. #endif
  4343. Syntax error
  4344. _ACEOF
  4345. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4346. case "(($ac_try" in
  4347. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4348. *) ac_try_echo=$ac_try;;
  4349. esac
  4350. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4351. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4352. ac_status=$?
  4353. grep -v '^ *+' conftest.er1 >conftest.err
  4354. rm -f conftest.er1
  4355. cat conftest.err >&5
  4356. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4357. (exit $ac_status); } >/dev/null; then
  4358. if test -s conftest.err; then
  4359. ac_cpp_err=$ac_c_preproc_warn_flag
  4360. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4361. else
  4362. ac_cpp_err=
  4363. fi
  4364. else
  4365. ac_cpp_err=yes
  4366. fi
  4367. if test -z "$ac_cpp_err"; then
  4368. :
  4369. else
  4370. echo "$as_me: failed program was:" >&5
  4371. sed 's/^/| /' conftest.$ac_ext >&5
  4372. # Broken: fails on valid input.
  4373. continue
  4374. fi
  4375. rm -f conftest.err conftest.$ac_ext
  4376. # OK, works on sane cases. Now check whether nonexistent headers
  4377. # can be detected and how.
  4378. cat >conftest.$ac_ext <<_ACEOF
  4379. /* confdefs.h. */
  4380. _ACEOF
  4381. cat confdefs.h >>conftest.$ac_ext
  4382. cat >>conftest.$ac_ext <<_ACEOF
  4383. /* end confdefs.h. */
  4384. #include <ac_nonexistent.h>
  4385. _ACEOF
  4386. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4387. case "(($ac_try" in
  4388. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4389. *) ac_try_echo=$ac_try;;
  4390. esac
  4391. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4392. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4393. ac_status=$?
  4394. grep -v '^ *+' conftest.er1 >conftest.err
  4395. rm -f conftest.er1
  4396. cat conftest.err >&5
  4397. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4398. (exit $ac_status); } >/dev/null; then
  4399. if test -s conftest.err; then
  4400. ac_cpp_err=$ac_c_preproc_warn_flag
  4401. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4402. else
  4403. ac_cpp_err=
  4404. fi
  4405. else
  4406. ac_cpp_err=yes
  4407. fi
  4408. if test -z "$ac_cpp_err"; then
  4409. # Broken: success on invalid input.
  4410. continue
  4411. else
  4412. echo "$as_me: failed program was:" >&5
  4413. sed 's/^/| /' conftest.$ac_ext >&5
  4414. # Passes both tests.
  4415. ac_preproc_ok=:
  4416. break
  4417. fi
  4418. rm -f conftest.err conftest.$ac_ext
  4419. done
  4420. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4421. rm -f conftest.err conftest.$ac_ext
  4422. if $ac_preproc_ok; then
  4423. :
  4424. else
  4425. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  4426. See \`config.log' for more details." >&5
  4427. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  4428. See \`config.log' for more details." >&2;}
  4429. { (exit 1); exit 1; }; }
  4430. fi
  4431. ac_ext=c
  4432. ac_cpp='$CPP $CPPFLAGS'
  4433. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4434. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4435. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4436. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4437. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  4438. if test "${ac_cv_header_stdc+set}" = set; then
  4439. echo $ECHO_N "(cached) $ECHO_C" >&6
  4440. else
  4441. cat >conftest.$ac_ext <<_ACEOF
  4442. /* confdefs.h. */
  4443. _ACEOF
  4444. cat confdefs.h >>conftest.$ac_ext
  4445. cat >>conftest.$ac_ext <<_ACEOF
  4446. /* end confdefs.h. */
  4447. #include <stdlib.h>
  4448. #include <stdarg.h>
  4449. #include <string.h>
  4450. #include <float.h>
  4451. int
  4452. main ()
  4453. {
  4454. ;
  4455. return 0;
  4456. }
  4457. _ACEOF
  4458. rm -f conftest.$ac_objext
  4459. if { (ac_try="$ac_compile"
  4460. case "(($ac_try" in
  4461. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4462. *) ac_try_echo=$ac_try;;
  4463. esac
  4464. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4465. (eval "$ac_compile") 2>conftest.er1
  4466. ac_status=$?
  4467. grep -v '^ *+' conftest.er1 >conftest.err
  4468. rm -f conftest.er1
  4469. cat conftest.err >&5
  4470. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4471. (exit $ac_status); } &&
  4472. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4473. { (case "(($ac_try" in
  4474. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4475. *) ac_try_echo=$ac_try;;
  4476. esac
  4477. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4478. (eval "$ac_try") 2>&5
  4479. ac_status=$?
  4480. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4481. (exit $ac_status); }; } &&
  4482. { ac_try='test -s conftest.$ac_objext'
  4483. { (case "(($ac_try" in
  4484. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4485. *) ac_try_echo=$ac_try;;
  4486. esac
  4487. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4488. (eval "$ac_try") 2>&5
  4489. ac_status=$?
  4490. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4491. (exit $ac_status); }; }; then
  4492. ac_cv_header_stdc=yes
  4493. else
  4494. echo "$as_me: failed program was:" >&5
  4495. sed 's/^/| /' conftest.$ac_ext >&5
  4496. ac_cv_header_stdc=no
  4497. fi
  4498. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4499. if test $ac_cv_header_stdc = yes; then
  4500. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4501. cat >conftest.$ac_ext <<_ACEOF
  4502. /* confdefs.h. */
  4503. _ACEOF
  4504. cat confdefs.h >>conftest.$ac_ext
  4505. cat >>conftest.$ac_ext <<_ACEOF
  4506. /* end confdefs.h. */
  4507. #include <string.h>
  4508. _ACEOF
  4509. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4510. $EGREP "memchr" >/dev/null 2>&1; then
  4511. :
  4512. else
  4513. ac_cv_header_stdc=no
  4514. fi
  4515. rm -f conftest*
  4516. fi
  4517. if test $ac_cv_header_stdc = yes; then
  4518. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4519. cat >conftest.$ac_ext <<_ACEOF
  4520. /* confdefs.h. */
  4521. _ACEOF
  4522. cat confdefs.h >>conftest.$ac_ext
  4523. cat >>conftest.$ac_ext <<_ACEOF
  4524. /* end confdefs.h. */
  4525. #include <stdlib.h>
  4526. _ACEOF
  4527. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4528. $EGREP "free" >/dev/null 2>&1; then
  4529. :
  4530. else
  4531. ac_cv_header_stdc=no
  4532. fi
  4533. rm -f conftest*
  4534. fi
  4535. if test $ac_cv_header_stdc = yes; then
  4536. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4537. if test "$cross_compiling" = yes; then
  4538. :
  4539. else
  4540. cat >conftest.$ac_ext <<_ACEOF
  4541. /* confdefs.h. */
  4542. _ACEOF
  4543. cat confdefs.h >>conftest.$ac_ext
  4544. cat >>conftest.$ac_ext <<_ACEOF
  4545. /* end confdefs.h. */
  4546. #include <ctype.h>
  4547. #include <stdlib.h>
  4548. #if ((' ' & 0x0FF) == 0x020)
  4549. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4550. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4551. #else
  4552. # define ISLOWER(c) \
  4553. (('a' <= (c) && (c) <= 'i') \
  4554. || ('j' <= (c) && (c) <= 'r') \
  4555. || ('s' <= (c) && (c) <= 'z'))
  4556. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4557. #endif
  4558. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4559. int
  4560. main ()
  4561. {
  4562. int i;
  4563. for (i = 0; i < 256; i++)
  4564. if (XOR (islower (i), ISLOWER (i))
  4565. || toupper (i) != TOUPPER (i))
  4566. return 2;
  4567. return 0;
  4568. }
  4569. _ACEOF
  4570. rm -f conftest$ac_exeext
  4571. if { (ac_try="$ac_link"
  4572. case "(($ac_try" in
  4573. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4574. *) ac_try_echo=$ac_try;;
  4575. esac
  4576. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4577. (eval "$ac_link") 2>&5
  4578. ac_status=$?
  4579. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4580. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4581. { (case "(($ac_try" in
  4582. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4583. *) ac_try_echo=$ac_try;;
  4584. esac
  4585. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4586. (eval "$ac_try") 2>&5
  4587. ac_status=$?
  4588. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4589. (exit $ac_status); }; }; then
  4590. :
  4591. else
  4592. echo "$as_me: program exited with status $ac_status" >&5
  4593. echo "$as_me: failed program was:" >&5
  4594. sed 's/^/| /' conftest.$ac_ext >&5
  4595. ( exit $ac_status )
  4596. ac_cv_header_stdc=no
  4597. fi
  4598. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4599. fi
  4600. fi
  4601. fi
  4602. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4603. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  4604. if test $ac_cv_header_stdc = yes; then
  4605. cat >>confdefs.h <<\_ACEOF
  4606. #define STDC_HEADERS 1
  4607. _ACEOF
  4608. fi
  4609. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4610. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4611. inttypes.h stdint.h unistd.h
  4612. do
  4613. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4614. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4615. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4616. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4617. echo $ECHO_N "(cached) $ECHO_C" >&6
  4618. else
  4619. cat >conftest.$ac_ext <<_ACEOF
  4620. /* confdefs.h. */
  4621. _ACEOF
  4622. cat confdefs.h >>conftest.$ac_ext
  4623. cat >>conftest.$ac_ext <<_ACEOF
  4624. /* end confdefs.h. */
  4625. $ac_includes_default
  4626. #include <$ac_header>
  4627. _ACEOF
  4628. rm -f conftest.$ac_objext
  4629. if { (ac_try="$ac_compile"
  4630. case "(($ac_try" in
  4631. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4632. *) ac_try_echo=$ac_try;;
  4633. esac
  4634. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4635. (eval "$ac_compile") 2>conftest.er1
  4636. ac_status=$?
  4637. grep -v '^ *+' conftest.er1 >conftest.err
  4638. rm -f conftest.er1
  4639. cat conftest.err >&5
  4640. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4641. (exit $ac_status); } &&
  4642. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4643. { (case "(($ac_try" in
  4644. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4645. *) ac_try_echo=$ac_try;;
  4646. esac
  4647. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4648. (eval "$ac_try") 2>&5
  4649. ac_status=$?
  4650. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4651. (exit $ac_status); }; } &&
  4652. { ac_try='test -s conftest.$ac_objext'
  4653. { (case "(($ac_try" in
  4654. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4655. *) ac_try_echo=$ac_try;;
  4656. esac
  4657. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4658. (eval "$ac_try") 2>&5
  4659. ac_status=$?
  4660. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4661. (exit $ac_status); }; }; then
  4662. eval "$as_ac_Header=yes"
  4663. else
  4664. echo "$as_me: failed program was:" >&5
  4665. sed 's/^/| /' conftest.$ac_ext >&5
  4666. eval "$as_ac_Header=no"
  4667. fi
  4668. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4669. fi
  4670. ac_res=`eval echo '${'$as_ac_Header'}'`
  4671. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4672. echo "${ECHO_T}$ac_res" >&6; }
  4673. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4674. cat >>confdefs.h <<_ACEOF
  4675. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4676. _ACEOF
  4677. fi
  4678. done
  4679. for ac_header in dlfcn.h
  4680. do
  4681. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4682. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4683. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4684. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4685. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4686. echo $ECHO_N "(cached) $ECHO_C" >&6
  4687. fi
  4688. ac_res=`eval echo '${'$as_ac_Header'}'`
  4689. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4690. echo "${ECHO_T}$ac_res" >&6; }
  4691. else
  4692. # Is the header compilable?
  4693. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4694. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  4695. cat >conftest.$ac_ext <<_ACEOF
  4696. /* confdefs.h. */
  4697. _ACEOF
  4698. cat confdefs.h >>conftest.$ac_ext
  4699. cat >>conftest.$ac_ext <<_ACEOF
  4700. /* end confdefs.h. */
  4701. $ac_includes_default
  4702. #include <$ac_header>
  4703. _ACEOF
  4704. rm -f conftest.$ac_objext
  4705. if { (ac_try="$ac_compile"
  4706. case "(($ac_try" in
  4707. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4708. *) ac_try_echo=$ac_try;;
  4709. esac
  4710. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4711. (eval "$ac_compile") 2>conftest.er1
  4712. ac_status=$?
  4713. grep -v '^ *+' conftest.er1 >conftest.err
  4714. rm -f conftest.er1
  4715. cat conftest.err >&5
  4716. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4717. (exit $ac_status); } &&
  4718. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4719. { (case "(($ac_try" in
  4720. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4721. *) ac_try_echo=$ac_try;;
  4722. esac
  4723. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4724. (eval "$ac_try") 2>&5
  4725. ac_status=$?
  4726. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4727. (exit $ac_status); }; } &&
  4728. { ac_try='test -s conftest.$ac_objext'
  4729. { (case "(($ac_try" in
  4730. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4731. *) ac_try_echo=$ac_try;;
  4732. esac
  4733. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4734. (eval "$ac_try") 2>&5
  4735. ac_status=$?
  4736. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4737. (exit $ac_status); }; }; then
  4738. ac_header_compiler=yes
  4739. else
  4740. echo "$as_me: failed program was:" >&5
  4741. sed 's/^/| /' conftest.$ac_ext >&5
  4742. ac_header_compiler=no
  4743. fi
  4744. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4745. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4746. echo "${ECHO_T}$ac_header_compiler" >&6; }
  4747. # Is the header present?
  4748. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4749. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  4750. cat >conftest.$ac_ext <<_ACEOF
  4751. /* confdefs.h. */
  4752. _ACEOF
  4753. cat confdefs.h >>conftest.$ac_ext
  4754. cat >>conftest.$ac_ext <<_ACEOF
  4755. /* end confdefs.h. */
  4756. #include <$ac_header>
  4757. _ACEOF
  4758. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4759. case "(($ac_try" in
  4760. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4761. *) ac_try_echo=$ac_try;;
  4762. esac
  4763. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4764. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4765. ac_status=$?
  4766. grep -v '^ *+' conftest.er1 >conftest.err
  4767. rm -f conftest.er1
  4768. cat conftest.err >&5
  4769. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4770. (exit $ac_status); } >/dev/null; then
  4771. if test -s conftest.err; then
  4772. ac_cpp_err=$ac_c_preproc_warn_flag
  4773. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4774. else
  4775. ac_cpp_err=
  4776. fi
  4777. else
  4778. ac_cpp_err=yes
  4779. fi
  4780. if test -z "$ac_cpp_err"; then
  4781. ac_header_preproc=yes
  4782. else
  4783. echo "$as_me: failed program was:" >&5
  4784. sed 's/^/| /' conftest.$ac_ext >&5
  4785. ac_header_preproc=no
  4786. fi
  4787. rm -f conftest.err conftest.$ac_ext
  4788. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4789. echo "${ECHO_T}$ac_header_preproc" >&6; }
  4790. # So? What about this header?
  4791. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4792. yes:no: )
  4793. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4794. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4795. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4796. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4797. ac_header_preproc=yes
  4798. ;;
  4799. no:yes:* )
  4800. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4801. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4802. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4803. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4804. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4805. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4806. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4807. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4808. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4809. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4810. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4811. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4812. ;;
  4813. esac
  4814. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4815. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4816. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4817. echo $ECHO_N "(cached) $ECHO_C" >&6
  4818. else
  4819. eval "$as_ac_Header=\$ac_header_preproc"
  4820. fi
  4821. ac_res=`eval echo '${'$as_ac_Header'}'`
  4822. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4823. echo "${ECHO_T}$ac_res" >&6; }
  4824. fi
  4825. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4826. cat >>confdefs.h <<_ACEOF
  4827. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4828. _ACEOF
  4829. fi
  4830. done
  4831. ac_ext=cpp
  4832. ac_cpp='$CXXCPP $CPPFLAGS'
  4833. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4834. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4835. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4836. if test -z "$CXX"; then
  4837. if test -n "$CCC"; then
  4838. CXX=$CCC
  4839. else
  4840. if test -n "$ac_tool_prefix"; then
  4841. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4842. do
  4843. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4844. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4845. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4846. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4847. if test "${ac_cv_prog_CXX+set}" = set; then
  4848. echo $ECHO_N "(cached) $ECHO_C" >&6
  4849. else
  4850. if test -n "$CXX"; then
  4851. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4852. else
  4853. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4854. for as_dir in $PATH
  4855. do
  4856. IFS=$as_save_IFS
  4857. test -z "$as_dir" && as_dir=.
  4858. for ac_exec_ext in '' $ac_executable_extensions; do
  4859. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  4860. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4861. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4862. break 2
  4863. fi
  4864. done
  4865. done
  4866. IFS=$as_save_IFS
  4867. fi
  4868. fi
  4869. CXX=$ac_cv_prog_CXX
  4870. if test -n "$CXX"; then
  4871. { echo "$as_me:$LINENO: result: $CXX" >&5
  4872. echo "${ECHO_T}$CXX" >&6; }
  4873. else
  4874. { echo "$as_me:$LINENO: result: no" >&5
  4875. echo "${ECHO_T}no" >&6; }
  4876. fi
  4877. test -n "$CXX" && break
  4878. done
  4879. fi
  4880. if test -z "$CXX"; then
  4881. ac_ct_CXX=$CXX
  4882. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4883. do
  4884. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4885. set dummy $ac_prog; ac_word=$2
  4886. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4887. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4888. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  4889. echo $ECHO_N "(cached) $ECHO_C" >&6
  4890. else
  4891. if test -n "$ac_ct_CXX"; then
  4892. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4893. else
  4894. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4895. for as_dir in $PATH
  4896. do
  4897. IFS=$as_save_IFS
  4898. test -z "$as_dir" && as_dir=.
  4899. for ac_exec_ext in '' $ac_executable_extensions; do
  4900. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  4901. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4902. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4903. break 2
  4904. fi
  4905. done
  4906. done
  4907. IFS=$as_save_IFS
  4908. fi
  4909. fi
  4910. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4911. if test -n "$ac_ct_CXX"; then
  4912. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  4913. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  4914. else
  4915. { echo "$as_me:$LINENO: result: no" >&5
  4916. echo "${ECHO_T}no" >&6; }
  4917. fi
  4918. test -n "$ac_ct_CXX" && break
  4919. done
  4920. if test "x$ac_ct_CXX" = x; then
  4921. CXX="g++"
  4922. else
  4923. case $cross_compiling:$ac_tool_warned in
  4924. yes:)
  4925. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4926. whose name does not start with the host triplet. If you think this
  4927. configuration is useful to you, please write to autoconf@gnu.org." >&5
  4928. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4929. whose name does not start with the host triplet. If you think this
  4930. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4931. ac_tool_warned=yes ;;
  4932. esac
  4933. CXX=$ac_ct_CXX
  4934. fi
  4935. fi
  4936. fi
  4937. fi
  4938. # Provide some information about the compiler.
  4939. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  4940. ac_compiler=`set X $ac_compile; echo $2`
  4941. { (ac_try="$ac_compiler --version >&5"
  4942. case "(($ac_try" in
  4943. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4944. *) ac_try_echo=$ac_try;;
  4945. esac
  4946. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4947. (eval "$ac_compiler --version >&5") 2>&5
  4948. ac_status=$?
  4949. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4950. (exit $ac_status); }
  4951. { (ac_try="$ac_compiler -v >&5"
  4952. case "(($ac_try" in
  4953. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4954. *) ac_try_echo=$ac_try;;
  4955. esac
  4956. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4957. (eval "$ac_compiler -v >&5") 2>&5
  4958. ac_status=$?
  4959. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4960. (exit $ac_status); }
  4961. { (ac_try="$ac_compiler -V >&5"
  4962. case "(($ac_try" in
  4963. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4964. *) ac_try_echo=$ac_try;;
  4965. esac
  4966. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4967. (eval "$ac_compiler -V >&5") 2>&5
  4968. ac_status=$?
  4969. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4970. (exit $ac_status); }
  4971. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  4972. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  4973. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  4974. echo $ECHO_N "(cached) $ECHO_C" >&6
  4975. else
  4976. cat >conftest.$ac_ext <<_ACEOF
  4977. /* confdefs.h. */
  4978. _ACEOF
  4979. cat confdefs.h >>conftest.$ac_ext
  4980. cat >>conftest.$ac_ext <<_ACEOF
  4981. /* end confdefs.h. */
  4982. int
  4983. main ()
  4984. {
  4985. #ifndef __GNUC__
  4986. choke me
  4987. #endif
  4988. ;
  4989. return 0;
  4990. }
  4991. _ACEOF
  4992. rm -f conftest.$ac_objext
  4993. if { (ac_try="$ac_compile"
  4994. case "(($ac_try" in
  4995. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4996. *) ac_try_echo=$ac_try;;
  4997. esac
  4998. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4999. (eval "$ac_compile") 2>conftest.er1
  5000. ac_status=$?
  5001. grep -v '^ *+' conftest.er1 >conftest.err
  5002. rm -f conftest.er1
  5003. cat conftest.err >&5
  5004. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5005. (exit $ac_status); } &&
  5006. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5007. { (case "(($ac_try" in
  5008. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5009. *) ac_try_echo=$ac_try;;
  5010. esac
  5011. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5012. (eval "$ac_try") 2>&5
  5013. ac_status=$?
  5014. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5015. (exit $ac_status); }; } &&
  5016. { ac_try='test -s conftest.$ac_objext'
  5017. { (case "(($ac_try" in
  5018. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5019. *) ac_try_echo=$ac_try;;
  5020. esac
  5021. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5022. (eval "$ac_try") 2>&5
  5023. ac_status=$?
  5024. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5025. (exit $ac_status); }; }; then
  5026. ac_compiler_gnu=yes
  5027. else
  5028. echo "$as_me: failed program was:" >&5
  5029. sed 's/^/| /' conftest.$ac_ext >&5
  5030. ac_compiler_gnu=no
  5031. fi
  5032. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5033. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  5034. fi
  5035. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  5036. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  5037. GXX=`test $ac_compiler_gnu = yes && echo yes`
  5038. ac_test_CXXFLAGS=${CXXFLAGS+set}
  5039. ac_save_CXXFLAGS=$CXXFLAGS
  5040. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  5041. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  5042. if test "${ac_cv_prog_cxx_g+set}" = set; then
  5043. echo $ECHO_N "(cached) $ECHO_C" >&6
  5044. else
  5045. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  5046. ac_cxx_werror_flag=yes
  5047. ac_cv_prog_cxx_g=no
  5048. CXXFLAGS="-g"
  5049. cat >conftest.$ac_ext <<_ACEOF
  5050. /* confdefs.h. */
  5051. _ACEOF
  5052. cat confdefs.h >>conftest.$ac_ext
  5053. cat >>conftest.$ac_ext <<_ACEOF
  5054. /* end confdefs.h. */
  5055. int
  5056. main ()
  5057. {
  5058. ;
  5059. return 0;
  5060. }
  5061. _ACEOF
  5062. rm -f conftest.$ac_objext
  5063. if { (ac_try="$ac_compile"
  5064. case "(($ac_try" in
  5065. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5066. *) ac_try_echo=$ac_try;;
  5067. esac
  5068. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5069. (eval "$ac_compile") 2>conftest.er1
  5070. ac_status=$?
  5071. grep -v '^ *+' conftest.er1 >conftest.err
  5072. rm -f conftest.er1
  5073. cat conftest.err >&5
  5074. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5075. (exit $ac_status); } &&
  5076. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5077. { (case "(($ac_try" in
  5078. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5079. *) ac_try_echo=$ac_try;;
  5080. esac
  5081. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5082. (eval "$ac_try") 2>&5
  5083. ac_status=$?
  5084. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5085. (exit $ac_status); }; } &&
  5086. { ac_try='test -s conftest.$ac_objext'
  5087. { (case "(($ac_try" in
  5088. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5089. *) ac_try_echo=$ac_try;;
  5090. esac
  5091. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5092. (eval "$ac_try") 2>&5
  5093. ac_status=$?
  5094. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5095. (exit $ac_status); }; }; then
  5096. ac_cv_prog_cxx_g=yes
  5097. else
  5098. echo "$as_me: failed program was:" >&5
  5099. sed 's/^/| /' conftest.$ac_ext >&5
  5100. CXXFLAGS=""
  5101. cat >conftest.$ac_ext <<_ACEOF
  5102. /* confdefs.h. */
  5103. _ACEOF
  5104. cat confdefs.h >>conftest.$ac_ext
  5105. cat >>conftest.$ac_ext <<_ACEOF
  5106. /* end confdefs.h. */
  5107. int
  5108. main ()
  5109. {
  5110. ;
  5111. return 0;
  5112. }
  5113. _ACEOF
  5114. rm -f conftest.$ac_objext
  5115. if { (ac_try="$ac_compile"
  5116. case "(($ac_try" in
  5117. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5118. *) ac_try_echo=$ac_try;;
  5119. esac
  5120. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5121. (eval "$ac_compile") 2>conftest.er1
  5122. ac_status=$?
  5123. grep -v '^ *+' conftest.er1 >conftest.err
  5124. rm -f conftest.er1
  5125. cat conftest.err >&5
  5126. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5127. (exit $ac_status); } &&
  5128. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5129. { (case "(($ac_try" in
  5130. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5131. *) ac_try_echo=$ac_try;;
  5132. esac
  5133. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5134. (eval "$ac_try") 2>&5
  5135. ac_status=$?
  5136. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5137. (exit $ac_status); }; } &&
  5138. { ac_try='test -s conftest.$ac_objext'
  5139. { (case "(($ac_try" in
  5140. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5141. *) ac_try_echo=$ac_try;;
  5142. esac
  5143. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5144. (eval "$ac_try") 2>&5
  5145. ac_status=$?
  5146. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5147. (exit $ac_status); }; }; then
  5148. :
  5149. else
  5150. echo "$as_me: failed program was:" >&5
  5151. sed 's/^/| /' conftest.$ac_ext >&5
  5152. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5153. CXXFLAGS="-g"
  5154. cat >conftest.$ac_ext <<_ACEOF
  5155. /* confdefs.h. */
  5156. _ACEOF
  5157. cat confdefs.h >>conftest.$ac_ext
  5158. cat >>conftest.$ac_ext <<_ACEOF
  5159. /* end confdefs.h. */
  5160. int
  5161. main ()
  5162. {
  5163. ;
  5164. return 0;
  5165. }
  5166. _ACEOF
  5167. rm -f conftest.$ac_objext
  5168. if { (ac_try="$ac_compile"
  5169. case "(($ac_try" in
  5170. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5171. *) ac_try_echo=$ac_try;;
  5172. esac
  5173. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5174. (eval "$ac_compile") 2>conftest.er1
  5175. ac_status=$?
  5176. grep -v '^ *+' conftest.er1 >conftest.err
  5177. rm -f conftest.er1
  5178. cat conftest.err >&5
  5179. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5180. (exit $ac_status); } &&
  5181. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5182. { (case "(($ac_try" in
  5183. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5184. *) ac_try_echo=$ac_try;;
  5185. esac
  5186. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5187. (eval "$ac_try") 2>&5
  5188. ac_status=$?
  5189. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5190. (exit $ac_status); }; } &&
  5191. { ac_try='test -s conftest.$ac_objext'
  5192. { (case "(($ac_try" in
  5193. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5194. *) ac_try_echo=$ac_try;;
  5195. esac
  5196. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5197. (eval "$ac_try") 2>&5
  5198. ac_status=$?
  5199. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5200. (exit $ac_status); }; }; then
  5201. ac_cv_prog_cxx_g=yes
  5202. else
  5203. echo "$as_me: failed program was:" >&5
  5204. sed 's/^/| /' conftest.$ac_ext >&5
  5205. fi
  5206. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5207. fi
  5208. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5209. fi
  5210. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5211. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5212. fi
  5213. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  5214. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  5215. if test "$ac_test_CXXFLAGS" = set; then
  5216. CXXFLAGS=$ac_save_CXXFLAGS
  5217. elif test $ac_cv_prog_cxx_g = yes; then
  5218. if test "$GXX" = yes; then
  5219. CXXFLAGS="-g -O2"
  5220. else
  5221. CXXFLAGS="-g"
  5222. fi
  5223. else
  5224. if test "$GXX" = yes; then
  5225. CXXFLAGS="-O2"
  5226. else
  5227. CXXFLAGS=
  5228. fi
  5229. fi
  5230. ac_ext=cpp
  5231. ac_cpp='$CXXCPP $CPPFLAGS'
  5232. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5233. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5234. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5235. depcc="$CXX" am_compiler_list=
  5236. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  5237. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  5238. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  5239. echo $ECHO_N "(cached) $ECHO_C" >&6
  5240. else
  5241. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5242. # We make a subdir and do the tests there. Otherwise we can end up
  5243. # making bogus files that we don't know about and never remove. For
  5244. # instance it was reported that on HP-UX the gcc test will end up
  5245. # making a dummy file named `D' -- because `-MD' means `put the output
  5246. # in D'.
  5247. mkdir conftest.dir
  5248. # Copy depcomp to subdir because otherwise we won't find it if we're
  5249. # using a relative directory.
  5250. cp "$am_depcomp" conftest.dir
  5251. cd conftest.dir
  5252. # We will build objects and dependencies in a subdirectory because
  5253. # it helps to detect inapplicable dependency modes. For instance
  5254. # both Tru64's cc and ICC support -MD to output dependencies as a
  5255. # side effect of compilation, but ICC will put the dependencies in
  5256. # the current directory while Tru64 will put them in the object
  5257. # directory.
  5258. mkdir sub
  5259. am_cv_CXX_dependencies_compiler_type=none
  5260. if test "$am_compiler_list" = ""; then
  5261. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5262. fi
  5263. for depmode in $am_compiler_list; do
  5264. # Setup a source with many dependencies, because some compilers
  5265. # like to wrap large dependency lists on column 80 (with \), and
  5266. # we should not choose a depcomp mode which is confused by this.
  5267. #
  5268. # We need to recreate these files for each test, as the compiler may
  5269. # overwrite some of them when testing with obscure command lines.
  5270. # This happens at least with the AIX C compiler.
  5271. : > sub/conftest.c
  5272. for i in 1 2 3 4 5 6; do
  5273. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5274. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  5275. # Solaris 8's {/usr,}/bin/sh.
  5276. touch sub/conftst$i.h
  5277. done
  5278. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5279. case $depmode in
  5280. nosideeffect)
  5281. # after this tag, mechanisms are not by side-effect, so they'll
  5282. # only be used when explicitly requested
  5283. if test "x$enable_dependency_tracking" = xyes; then
  5284. continue
  5285. else
  5286. break
  5287. fi
  5288. ;;
  5289. none) break ;;
  5290. esac
  5291. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  5292. # mode. It turns out that the SunPro C++ compiler does not properly
  5293. # handle `-M -o', and we need to detect this.
  5294. if depmode=$depmode \
  5295. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  5296. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5297. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  5298. >/dev/null 2>conftest.err &&
  5299. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5300. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  5301. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5302. # icc doesn't choke on unknown options, it will just issue warnings
  5303. # or remarks (even with -Werror). So we grep stderr for any message
  5304. # that says an option was ignored or not supported.
  5305. # When given -MP, icc 7.0 and 7.1 complain thusly:
  5306. # icc: Command line warning: ignoring option '-M'; no argument required
  5307. # The diagnosis changed in icc 8.0:
  5308. # icc: Command line remark: option '-MP' not supported
  5309. if (grep 'ignoring option' conftest.err ||
  5310. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5311. am_cv_CXX_dependencies_compiler_type=$depmode
  5312. break
  5313. fi
  5314. fi
  5315. done
  5316. cd ..
  5317. rm -rf conftest.dir
  5318. else
  5319. am_cv_CXX_dependencies_compiler_type=none
  5320. fi
  5321. fi
  5322. { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  5323. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  5324. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  5325. if
  5326. test "x$enable_dependency_tracking" != xno \
  5327. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  5328. am__fastdepCXX_TRUE=
  5329. am__fastdepCXX_FALSE='#'
  5330. else
  5331. am__fastdepCXX_TRUE='#'
  5332. am__fastdepCXX_FALSE=
  5333. fi
  5334. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  5335. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  5336. (test "X$CXX" != "Xg++"))) ; then
  5337. ac_ext=cpp
  5338. ac_cpp='$CXXCPP $CPPFLAGS'
  5339. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5340. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5341. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5342. { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  5343. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  5344. if test -z "$CXXCPP"; then
  5345. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  5346. echo $ECHO_N "(cached) $ECHO_C" >&6
  5347. else
  5348. # Double quotes because CXXCPP needs to be expanded
  5349. for CXXCPP in "$CXX -E" "/lib/cpp"
  5350. do
  5351. ac_preproc_ok=false
  5352. for ac_cxx_preproc_warn_flag in '' yes
  5353. do
  5354. # Use a header file that comes with gcc, so configuring glibc
  5355. # with a fresh cross-compiler works.
  5356. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5357. # <limits.h> exists even on freestanding compilers.
  5358. # On the NeXT, cc -E runs the code through the compiler's parser,
  5359. # not just through cpp. "Syntax error" is here to catch this case.
  5360. cat >conftest.$ac_ext <<_ACEOF
  5361. /* confdefs.h. */
  5362. _ACEOF
  5363. cat confdefs.h >>conftest.$ac_ext
  5364. cat >>conftest.$ac_ext <<_ACEOF
  5365. /* end confdefs.h. */
  5366. #ifdef __STDC__
  5367. # include <limits.h>
  5368. #else
  5369. # include <assert.h>
  5370. #endif
  5371. Syntax error
  5372. _ACEOF
  5373. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5374. case "(($ac_try" in
  5375. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5376. *) ac_try_echo=$ac_try;;
  5377. esac
  5378. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5379. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5380. ac_status=$?
  5381. grep -v '^ *+' conftest.er1 >conftest.err
  5382. rm -f conftest.er1
  5383. cat conftest.err >&5
  5384. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5385. (exit $ac_status); } >/dev/null; then
  5386. if test -s conftest.err; then
  5387. ac_cpp_err=$ac_cxx_preproc_warn_flag
  5388. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  5389. else
  5390. ac_cpp_err=
  5391. fi
  5392. else
  5393. ac_cpp_err=yes
  5394. fi
  5395. if test -z "$ac_cpp_err"; then
  5396. :
  5397. else
  5398. echo "$as_me: failed program was:" >&5
  5399. sed 's/^/| /' conftest.$ac_ext >&5
  5400. # Broken: fails on valid input.
  5401. continue
  5402. fi
  5403. rm -f conftest.err conftest.$ac_ext
  5404. # OK, works on sane cases. Now check whether nonexistent headers
  5405. # can be detected and how.
  5406. cat >conftest.$ac_ext <<_ACEOF
  5407. /* confdefs.h. */
  5408. _ACEOF
  5409. cat confdefs.h >>conftest.$ac_ext
  5410. cat >>conftest.$ac_ext <<_ACEOF
  5411. /* end confdefs.h. */
  5412. #include <ac_nonexistent.h>
  5413. _ACEOF
  5414. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5415. case "(($ac_try" in
  5416. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5417. *) ac_try_echo=$ac_try;;
  5418. esac
  5419. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5420. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5421. ac_status=$?
  5422. grep -v '^ *+' conftest.er1 >conftest.err
  5423. rm -f conftest.er1
  5424. cat conftest.err >&5
  5425. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5426. (exit $ac_status); } >/dev/null; then
  5427. if test -s conftest.err; then
  5428. ac_cpp_err=$ac_cxx_preproc_warn_flag
  5429. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  5430. else
  5431. ac_cpp_err=
  5432. fi
  5433. else
  5434. ac_cpp_err=yes
  5435. fi
  5436. if test -z "$ac_cpp_err"; then
  5437. # Broken: success on invalid input.
  5438. continue
  5439. else
  5440. echo "$as_me: failed program was:" >&5
  5441. sed 's/^/| /' conftest.$ac_ext >&5
  5442. # Passes both tests.
  5443. ac_preproc_ok=:
  5444. break
  5445. fi
  5446. rm -f conftest.err conftest.$ac_ext
  5447. done
  5448. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5449. rm -f conftest.err conftest.$ac_ext
  5450. if $ac_preproc_ok; then
  5451. break
  5452. fi
  5453. done
  5454. ac_cv_prog_CXXCPP=$CXXCPP
  5455. fi
  5456. CXXCPP=$ac_cv_prog_CXXCPP
  5457. else
  5458. ac_cv_prog_CXXCPP=$CXXCPP
  5459. fi
  5460. { echo "$as_me:$LINENO: result: $CXXCPP" >&5
  5461. echo "${ECHO_T}$CXXCPP" >&6; }
  5462. ac_preproc_ok=false
  5463. for ac_cxx_preproc_warn_flag in '' yes
  5464. do
  5465. # Use a header file that comes with gcc, so configuring glibc
  5466. # with a fresh cross-compiler works.
  5467. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5468. # <limits.h> exists even on freestanding compilers.
  5469. # On the NeXT, cc -E runs the code through the compiler's parser,
  5470. # not just through cpp. "Syntax error" is here to catch this case.
  5471. cat >conftest.$ac_ext <<_ACEOF
  5472. /* confdefs.h. */
  5473. _ACEOF
  5474. cat confdefs.h >>conftest.$ac_ext
  5475. cat >>conftest.$ac_ext <<_ACEOF
  5476. /* end confdefs.h. */
  5477. #ifdef __STDC__
  5478. # include <limits.h>
  5479. #else
  5480. # include <assert.h>
  5481. #endif
  5482. Syntax error
  5483. _ACEOF
  5484. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5485. case "(($ac_try" in
  5486. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5487. *) ac_try_echo=$ac_try;;
  5488. esac
  5489. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5490. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5491. ac_status=$?
  5492. grep -v '^ *+' conftest.er1 >conftest.err
  5493. rm -f conftest.er1
  5494. cat conftest.err >&5
  5495. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5496. (exit $ac_status); } >/dev/null; then
  5497. if test -s conftest.err; then
  5498. ac_cpp_err=$ac_cxx_preproc_warn_flag
  5499. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  5500. else
  5501. ac_cpp_err=
  5502. fi
  5503. else
  5504. ac_cpp_err=yes
  5505. fi
  5506. if test -z "$ac_cpp_err"; then
  5507. :
  5508. else
  5509. echo "$as_me: failed program was:" >&5
  5510. sed 's/^/| /' conftest.$ac_ext >&5
  5511. # Broken: fails on valid input.
  5512. continue
  5513. fi
  5514. rm -f conftest.err conftest.$ac_ext
  5515. # OK, works on sane cases. Now check whether nonexistent headers
  5516. # can be detected and how.
  5517. cat >conftest.$ac_ext <<_ACEOF
  5518. /* confdefs.h. */
  5519. _ACEOF
  5520. cat confdefs.h >>conftest.$ac_ext
  5521. cat >>conftest.$ac_ext <<_ACEOF
  5522. /* end confdefs.h. */
  5523. #include <ac_nonexistent.h>
  5524. _ACEOF
  5525. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5526. case "(($ac_try" in
  5527. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5528. *) ac_try_echo=$ac_try;;
  5529. esac
  5530. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5531. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5532. ac_status=$?
  5533. grep -v '^ *+' conftest.er1 >conftest.err
  5534. rm -f conftest.er1
  5535. cat conftest.err >&5
  5536. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5537. (exit $ac_status); } >/dev/null; then
  5538. if test -s conftest.err; then
  5539. ac_cpp_err=$ac_cxx_preproc_warn_flag
  5540. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  5541. else
  5542. ac_cpp_err=
  5543. fi
  5544. else
  5545. ac_cpp_err=yes
  5546. fi
  5547. if test -z "$ac_cpp_err"; then
  5548. # Broken: success on invalid input.
  5549. continue
  5550. else
  5551. echo "$as_me: failed program was:" >&5
  5552. sed 's/^/| /' conftest.$ac_ext >&5
  5553. # Passes both tests.
  5554. ac_preproc_ok=:
  5555. break
  5556. fi
  5557. rm -f conftest.err conftest.$ac_ext
  5558. done
  5559. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5560. rm -f conftest.err conftest.$ac_ext
  5561. if $ac_preproc_ok; then
  5562. :
  5563. else
  5564. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  5565. See \`config.log' for more details." >&5
  5566. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  5567. See \`config.log' for more details." >&2;}
  5568. { (exit 1); exit 1; }; }
  5569. fi
  5570. ac_ext=cpp
  5571. ac_cpp='$CXXCPP $CPPFLAGS'
  5572. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5573. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5574. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5575. fi
  5576. ac_ext=f
  5577. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  5578. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5579. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  5580. if test -n "$ac_tool_prefix"; then
  5581. for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
  5582. do
  5583. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5584. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5585. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5586. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5587. if test "${ac_cv_prog_F77+set}" = set; then
  5588. echo $ECHO_N "(cached) $ECHO_C" >&6
  5589. else
  5590. if test -n "$F77"; then
  5591. ac_cv_prog_F77="$F77" # Let the user override the test.
  5592. else
  5593. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5594. for as_dir in $PATH
  5595. do
  5596. IFS=$as_save_IFS
  5597. test -z "$as_dir" && as_dir=.
  5598. for ac_exec_ext in '' $ac_executable_extensions; do
  5599. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  5600. ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  5601. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5602. break 2
  5603. fi
  5604. done
  5605. done
  5606. IFS=$as_save_IFS
  5607. fi
  5608. fi
  5609. F77=$ac_cv_prog_F77
  5610. if test -n "$F77"; then
  5611. { echo "$as_me:$LINENO: result: $F77" >&5
  5612. echo "${ECHO_T}$F77" >&6; }
  5613. else
  5614. { echo "$as_me:$LINENO: result: no" >&5
  5615. echo "${ECHO_T}no" >&6; }
  5616. fi
  5617. test -n "$F77" && break
  5618. done
  5619. fi
  5620. if test -z "$F77"; then
  5621. ac_ct_F77=$F77
  5622. for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
  5623. do
  5624. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5625. set dummy $ac_prog; ac_word=$2
  5626. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5627. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5628. if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  5629. echo $ECHO_N "(cached) $ECHO_C" >&6
  5630. else
  5631. if test -n "$ac_ct_F77"; then
  5632. ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  5633. else
  5634. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5635. for as_dir in $PATH
  5636. do
  5637. IFS=$as_save_IFS
  5638. test -z "$as_dir" && as_dir=.
  5639. for ac_exec_ext in '' $ac_executable_extensions; do
  5640. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  5641. ac_cv_prog_ac_ct_F77="$ac_prog"
  5642. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5643. break 2
  5644. fi
  5645. done
  5646. done
  5647. IFS=$as_save_IFS
  5648. fi
  5649. fi
  5650. ac_ct_F77=$ac_cv_prog_ac_ct_F77
  5651. if test -n "$ac_ct_F77"; then
  5652. { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  5653. echo "${ECHO_T}$ac_ct_F77" >&6; }
  5654. else
  5655. { echo "$as_me:$LINENO: result: no" >&5
  5656. echo "${ECHO_T}no" >&6; }
  5657. fi
  5658. test -n "$ac_ct_F77" && break
  5659. done
  5660. if test "x$ac_ct_F77" = x; then
  5661. F77=""
  5662. else
  5663. case $cross_compiling:$ac_tool_warned in
  5664. yes:)
  5665. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5666. whose name does not start with the host triplet. If you think this
  5667. configuration is useful to you, please write to autoconf@gnu.org." >&5
  5668. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5669. whose name does not start with the host triplet. If you think this
  5670. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5671. ac_tool_warned=yes ;;
  5672. esac
  5673. F77=$ac_ct_F77
  5674. fi
  5675. fi
  5676. # Provide some information about the compiler.
  5677. echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
  5678. ac_compiler=`set X $ac_compile; echo $2`
  5679. { (ac_try="$ac_compiler --version >&5"
  5680. case "(($ac_try" in
  5681. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5682. *) ac_try_echo=$ac_try;;
  5683. esac
  5684. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5685. (eval "$ac_compiler --version >&5") 2>&5
  5686. ac_status=$?
  5687. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5688. (exit $ac_status); }
  5689. { (ac_try="$ac_compiler -v >&5"
  5690. case "(($ac_try" in
  5691. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5692. *) ac_try_echo=$ac_try;;
  5693. esac
  5694. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5695. (eval "$ac_compiler -v >&5") 2>&5
  5696. ac_status=$?
  5697. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5698. (exit $ac_status); }
  5699. { (ac_try="$ac_compiler -V >&5"
  5700. case "(($ac_try" in
  5701. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5702. *) ac_try_echo=$ac_try;;
  5703. esac
  5704. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5705. (eval "$ac_compiler -V >&5") 2>&5
  5706. ac_status=$?
  5707. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5708. (exit $ac_status); }
  5709. rm -f a.out
  5710. # If we don't use `.F' as extension, the preprocessor is not run on the
  5711. # input file. (Note that this only needs to work for GNU compilers.)
  5712. ac_save_ext=$ac_ext
  5713. ac_ext=F
  5714. { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  5715. echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
  5716. if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  5717. echo $ECHO_N "(cached) $ECHO_C" >&6
  5718. else
  5719. cat >conftest.$ac_ext <<_ACEOF
  5720. program main
  5721. #ifndef __GNUC__
  5722. choke me
  5723. #endif
  5724. end
  5725. _ACEOF
  5726. rm -f conftest.$ac_objext
  5727. if { (ac_try="$ac_compile"
  5728. case "(($ac_try" in
  5729. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5730. *) ac_try_echo=$ac_try;;
  5731. esac
  5732. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5733. (eval "$ac_compile") 2>conftest.er1
  5734. ac_status=$?
  5735. grep -v '^ *+' conftest.er1 >conftest.err
  5736. rm -f conftest.er1
  5737. cat conftest.err >&5
  5738. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5739. (exit $ac_status); } &&
  5740. { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  5741. { (case "(($ac_try" in
  5742. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5743. *) ac_try_echo=$ac_try;;
  5744. esac
  5745. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5746. (eval "$ac_try") 2>&5
  5747. ac_status=$?
  5748. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5749. (exit $ac_status); }; } &&
  5750. { ac_try='test -s conftest.$ac_objext'
  5751. { (case "(($ac_try" in
  5752. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5753. *) ac_try_echo=$ac_try;;
  5754. esac
  5755. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5756. (eval "$ac_try") 2>&5
  5757. ac_status=$?
  5758. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5759. (exit $ac_status); }; }; then
  5760. ac_compiler_gnu=yes
  5761. else
  5762. echo "$as_me: failed program was:" >&5
  5763. sed 's/^/| /' conftest.$ac_ext >&5
  5764. ac_compiler_gnu=no
  5765. fi
  5766. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5767. ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  5768. fi
  5769. { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  5770. echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
  5771. ac_ext=$ac_save_ext
  5772. ac_test_FFLAGS=${FFLAGS+set}
  5773. ac_save_FFLAGS=$FFLAGS
  5774. FFLAGS=
  5775. { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  5776. echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
  5777. if test "${ac_cv_prog_f77_g+set}" = set; then
  5778. echo $ECHO_N "(cached) $ECHO_C" >&6
  5779. else
  5780. FFLAGS=-g
  5781. cat >conftest.$ac_ext <<_ACEOF
  5782. program main
  5783. end
  5784. _ACEOF
  5785. rm -f conftest.$ac_objext
  5786. if { (ac_try="$ac_compile"
  5787. case "(($ac_try" in
  5788. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5789. *) ac_try_echo=$ac_try;;
  5790. esac
  5791. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5792. (eval "$ac_compile") 2>conftest.er1
  5793. ac_status=$?
  5794. grep -v '^ *+' conftest.er1 >conftest.err
  5795. rm -f conftest.er1
  5796. cat conftest.err >&5
  5797. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5798. (exit $ac_status); } &&
  5799. { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  5800. { (case "(($ac_try" in
  5801. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5802. *) ac_try_echo=$ac_try;;
  5803. esac
  5804. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5805. (eval "$ac_try") 2>&5
  5806. ac_status=$?
  5807. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5808. (exit $ac_status); }; } &&
  5809. { ac_try='test -s conftest.$ac_objext'
  5810. { (case "(($ac_try" in
  5811. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5812. *) ac_try_echo=$ac_try;;
  5813. esac
  5814. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5815. (eval "$ac_try") 2>&5
  5816. ac_status=$?
  5817. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5818. (exit $ac_status); }; }; then
  5819. ac_cv_prog_f77_g=yes
  5820. else
  5821. echo "$as_me: failed program was:" >&5
  5822. sed 's/^/| /' conftest.$ac_ext >&5
  5823. ac_cv_prog_f77_g=no
  5824. fi
  5825. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5826. fi
  5827. { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  5828. echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
  5829. if test "$ac_test_FFLAGS" = set; then
  5830. FFLAGS=$ac_save_FFLAGS
  5831. elif test $ac_cv_prog_f77_g = yes; then
  5832. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5833. FFLAGS="-g -O2"
  5834. else
  5835. FFLAGS="-g"
  5836. fi
  5837. else
  5838. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5839. FFLAGS="-O2"
  5840. else
  5841. FFLAGS=
  5842. fi
  5843. fi
  5844. G77=`test $ac_compiler_gnu = yes && echo yes`
  5845. ac_ext=c
  5846. ac_cpp='$CPP $CPPFLAGS'
  5847. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5848. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5849. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5850. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  5851. # find the maximum length of command line arguments
  5852. { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  5853. echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
  5854. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  5855. echo $ECHO_N "(cached) $ECHO_C" >&6
  5856. else
  5857. i=0
  5858. teststring="ABCD"
  5859. case $build_os in
  5860. msdosdjgpp*)
  5861. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5862. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5863. # during glob expansion). Even if it were fixed, the result of this
  5864. # check would be larger than it should be.
  5865. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5866. ;;
  5867. gnu*)
  5868. # Under GNU Hurd, this test is not required because there is
  5869. # no limit to the length of command line arguments.
  5870. # Libtool will interpret -1 as no limit whatsoever
  5871. lt_cv_sys_max_cmd_len=-1;
  5872. ;;
  5873. cygwin* | mingw*)
  5874. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5875. # about 5 minutes as the teststring grows exponentially.
  5876. # Worse, since 9x/ME are not pre-emptively multitasking,
  5877. # you end up with a "frozen" computer, even though with patience
  5878. # the test eventually succeeds (with a max line length of 256k).
  5879. # Instead, let's just punt: use the minimum linelength reported by
  5880. # all of the supported platforms: 8192 (on NT/2K/XP).
  5881. lt_cv_sys_max_cmd_len=8192;
  5882. ;;
  5883. amigaos*)
  5884. # On AmigaOS with pdksh, this test takes hours, literally.
  5885. # So we just punt and use a minimum line length of 8192.
  5886. lt_cv_sys_max_cmd_len=8192;
  5887. ;;
  5888. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5889. # This has been around since 386BSD, at least. Likely further.
  5890. if test -x /sbin/sysctl; then
  5891. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5892. elif test -x /usr/sbin/sysctl; then
  5893. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5894. else
  5895. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5896. fi
  5897. # And add a safety zone
  5898. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5899. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5900. ;;
  5901. interix*)
  5902. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5903. lt_cv_sys_max_cmd_len=196608
  5904. ;;
  5905. osf*)
  5906. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5907. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5908. # nice to cause kernel panics so lets avoid the loop below.
  5909. # First set a reasonable default.
  5910. lt_cv_sys_max_cmd_len=16384
  5911. #
  5912. if test -x /sbin/sysconfig; then
  5913. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5914. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5915. esac
  5916. fi
  5917. ;;
  5918. sco3.2v5*)
  5919. lt_cv_sys_max_cmd_len=102400
  5920. ;;
  5921. sysv5* | sco5v6* | sysv4.2uw2*)
  5922. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5923. if test -n "$kargmax"; then
  5924. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5925. else
  5926. lt_cv_sys_max_cmd_len=32768
  5927. fi
  5928. ;;
  5929. *)
  5930. # If test is not a shell built-in, we'll probably end up computing a
  5931. # maximum length that is only half of the actual maximum length, but
  5932. # we can't tell.
  5933. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5934. while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  5935. = "XX$teststring") >/dev/null 2>&1 &&
  5936. new_result=`expr "X$teststring" : ".*" 2>&1` &&
  5937. lt_cv_sys_max_cmd_len=$new_result &&
  5938. test $i != 17 # 1/2 MB should be enough
  5939. do
  5940. i=`expr $i + 1`
  5941. teststring=$teststring$teststring
  5942. done
  5943. teststring=
  5944. # Add a significant safety factor because C++ compilers can tack on massive
  5945. # amounts of additional arguments before passing them to the linker.
  5946. # It appears as though 1/2 is a usable value.
  5947. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5948. ;;
  5949. esac
  5950. fi
  5951. if test -n $lt_cv_sys_max_cmd_len ; then
  5952. { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  5953. echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
  5954. else
  5955. { echo "$as_me:$LINENO: result: none" >&5
  5956. echo "${ECHO_T}none" >&6; }
  5957. fi
  5958. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5959. { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  5960. echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
  5961. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  5962. echo $ECHO_N "(cached) $ECHO_C" >&6
  5963. else
  5964. # These are sane defaults that work on at least a few old systems.
  5965. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5966. # Character class describing NM global symbol codes.
  5967. symcode='[BCDEGRST]'
  5968. # Regexp to match symbols that can be accessed directly from C.
  5969. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5970. # Transform an extracted symbol line into a proper C declaration
  5971. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  5972. # Transform an extracted symbol line into symbol name and symbol address
  5973. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  5974. # Define system-specific variables.
  5975. case $host_os in
  5976. aix*)
  5977. symcode='[BCDT]'
  5978. ;;
  5979. cygwin* | mingw* | pw32*)
  5980. symcode='[ABCDGISTW]'
  5981. ;;
  5982. hpux*) # Its linker distinguishes data from code symbols
  5983. if test "$host_cpu" = ia64; then
  5984. symcode='[ABCDEGRST]'
  5985. fi
  5986. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5987. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  5988. ;;
  5989. linux* | k*bsd*-gnu)
  5990. if test "$host_cpu" = ia64; then
  5991. symcode='[ABCDGIRSTW]'
  5992. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5993. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  5994. fi
  5995. ;;
  5996. irix* | nonstopux*)
  5997. symcode='[BCDEGRST]'
  5998. ;;
  5999. osf*)
  6000. symcode='[BCDEGQRST]'
  6001. ;;
  6002. solaris*)
  6003. symcode='[BDRT]'
  6004. ;;
  6005. sco3.2v5*)
  6006. symcode='[DT]'
  6007. ;;
  6008. sysv4.2uw2*)
  6009. symcode='[DT]'
  6010. ;;
  6011. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6012. symcode='[ABDT]'
  6013. ;;
  6014. sysv4)
  6015. symcode='[DFNSTU]'
  6016. ;;
  6017. esac
  6018. # Handle CRLF in mingw tool chain
  6019. opt_cr=
  6020. case $build_os in
  6021. mingw*)
  6022. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6023. ;;
  6024. esac
  6025. # If we're using GNU nm, then use its standard symbol codes.
  6026. case `$NM -V 2>&1` in
  6027. *GNU* | *'with BFD'*)
  6028. symcode='[ABCDGIRSTW]' ;;
  6029. esac
  6030. # Try without a prefix undercore, then with it.
  6031. for ac_symprfx in "" "_"; do
  6032. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6033. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6034. # Write the raw and C identifiers.
  6035. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6036. # Check to see that the pipe works correctly.
  6037. pipe_works=no
  6038. rm -f conftest*
  6039. cat > conftest.$ac_ext <<EOF
  6040. #ifdef __cplusplus
  6041. extern "C" {
  6042. #endif
  6043. char nm_test_var;
  6044. void nm_test_func(){}
  6045. #ifdef __cplusplus
  6046. }
  6047. #endif
  6048. int main(){nm_test_var='a';nm_test_func();return(0);}
  6049. EOF
  6050. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6051. (eval $ac_compile) 2>&5
  6052. ac_status=$?
  6053. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6054. (exit $ac_status); }; then
  6055. # Now try to grab the symbols.
  6056. nlist=conftest.nm
  6057. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  6058. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  6059. ac_status=$?
  6060. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6061. (exit $ac_status); } && test -s "$nlist"; then
  6062. # Try sorting and uniquifying the output.
  6063. if sort "$nlist" | uniq > "$nlist"T; then
  6064. mv -f "$nlist"T "$nlist"
  6065. else
  6066. rm -f "$nlist"T
  6067. fi
  6068. # Make sure that we snagged all the symbols we need.
  6069. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  6070. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  6071. cat <<EOF > conftest.$ac_ext
  6072. #ifdef __cplusplus
  6073. extern "C" {
  6074. #endif
  6075. EOF
  6076. # Now generate the symbol file.
  6077. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  6078. cat <<EOF >> conftest.$ac_ext
  6079. #if defined (__STDC__) && __STDC__
  6080. # define lt_ptr_t void *
  6081. #else
  6082. # define lt_ptr_t char *
  6083. # define const
  6084. #endif
  6085. /* The mapping between symbol names and symbols. */
  6086. const struct {
  6087. const char *name;
  6088. lt_ptr_t address;
  6089. }
  6090. lt_preloaded_symbols[] =
  6091. {
  6092. EOF
  6093. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  6094. cat <<\EOF >> conftest.$ac_ext
  6095. {0, (lt_ptr_t) 0}
  6096. };
  6097. #ifdef __cplusplus
  6098. }
  6099. #endif
  6100. EOF
  6101. # Now try linking the two files.
  6102. mv conftest.$ac_objext conftstm.$ac_objext
  6103. lt_save_LIBS="$LIBS"
  6104. lt_save_CFLAGS="$CFLAGS"
  6105. LIBS="conftstm.$ac_objext"
  6106. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6107. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6108. (eval $ac_link) 2>&5
  6109. ac_status=$?
  6110. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6111. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  6112. pipe_works=yes
  6113. fi
  6114. LIBS="$lt_save_LIBS"
  6115. CFLAGS="$lt_save_CFLAGS"
  6116. else
  6117. echo "cannot find nm_test_func in $nlist" >&5
  6118. fi
  6119. else
  6120. echo "cannot find nm_test_var in $nlist" >&5
  6121. fi
  6122. else
  6123. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6124. fi
  6125. else
  6126. echo "$progname: failed program was:" >&5
  6127. cat conftest.$ac_ext >&5
  6128. fi
  6129. rm -f conftest* conftst*
  6130. # Do not use the global_symbol_pipe unless it works.
  6131. if test "$pipe_works" = yes; then
  6132. break
  6133. else
  6134. lt_cv_sys_global_symbol_pipe=
  6135. fi
  6136. done
  6137. fi
  6138. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6139. lt_cv_sys_global_symbol_to_cdecl=
  6140. fi
  6141. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6142. { echo "$as_me:$LINENO: result: failed" >&5
  6143. echo "${ECHO_T}failed" >&6; }
  6144. else
  6145. { echo "$as_me:$LINENO: result: ok" >&5
  6146. echo "${ECHO_T}ok" >&6; }
  6147. fi
  6148. { echo "$as_me:$LINENO: checking for objdir" >&5
  6149. echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
  6150. if test "${lt_cv_objdir+set}" = set; then
  6151. echo $ECHO_N "(cached) $ECHO_C" >&6
  6152. else
  6153. rm -f .libs 2>/dev/null
  6154. mkdir .libs 2>/dev/null
  6155. if test -d .libs; then
  6156. lt_cv_objdir=.libs
  6157. else
  6158. # MS-DOS does not allow filenames that begin with a dot.
  6159. lt_cv_objdir=_libs
  6160. fi
  6161. rmdir .libs 2>/dev/null
  6162. fi
  6163. { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  6164. echo "${ECHO_T}$lt_cv_objdir" >&6; }
  6165. objdir=$lt_cv_objdir
  6166. case $host_os in
  6167. aix3*)
  6168. # AIX sometimes has problems with the GCC collect2 program. For some
  6169. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6170. # vanish in a puff of smoke.
  6171. if test "X${COLLECT_NAMES+set}" != Xset; then
  6172. COLLECT_NAMES=
  6173. export COLLECT_NAMES
  6174. fi
  6175. ;;
  6176. esac
  6177. # Sed substitution that helps us do robust quoting. It backslashifies
  6178. # metacharacters that are still active within double-quoted strings.
  6179. Xsed='sed -e 1s/^X//'
  6180. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  6181. # Same as above, but do not quote variable references.
  6182. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  6183. # Sed substitution to delay expansion of an escaped shell variable in a
  6184. # double_quote_subst'ed string.
  6185. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  6186. # Sed substitution to avoid accidental globbing in evaled expressions
  6187. no_glob_subst='s/\*/\\\*/g'
  6188. # Constants:
  6189. rm="rm -f"
  6190. # Global variables:
  6191. default_ofile=libtool
  6192. can_build_shared=yes
  6193. # All known linkers require a `.a' archive for static linking (except MSVC,
  6194. # which needs '.lib').
  6195. libext=a
  6196. ltmain="$ac_aux_dir/ltmain.sh"
  6197. ofile="$default_ofile"
  6198. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6199. if test -n "$ac_tool_prefix"; then
  6200. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  6201. set dummy ${ac_tool_prefix}ar; ac_word=$2
  6202. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6203. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6204. if test "${ac_cv_prog_AR+set}" = set; then
  6205. echo $ECHO_N "(cached) $ECHO_C" >&6
  6206. else
  6207. if test -n "$AR"; then
  6208. ac_cv_prog_AR="$AR" # Let the user override the test.
  6209. else
  6210. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6211. for as_dir in $PATH
  6212. do
  6213. IFS=$as_save_IFS
  6214. test -z "$as_dir" && as_dir=.
  6215. for ac_exec_ext in '' $ac_executable_extensions; do
  6216. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  6217. ac_cv_prog_AR="${ac_tool_prefix}ar"
  6218. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6219. break 2
  6220. fi
  6221. done
  6222. done
  6223. IFS=$as_save_IFS
  6224. fi
  6225. fi
  6226. AR=$ac_cv_prog_AR
  6227. if test -n "$AR"; then
  6228. { echo "$as_me:$LINENO: result: $AR" >&5
  6229. echo "${ECHO_T}$AR" >&6; }
  6230. else
  6231. { echo "$as_me:$LINENO: result: no" >&5
  6232. echo "${ECHO_T}no" >&6; }
  6233. fi
  6234. fi
  6235. if test -z "$ac_cv_prog_AR"; then
  6236. ac_ct_AR=$AR
  6237. # Extract the first word of "ar", so it can be a program name with args.
  6238. set dummy ar; ac_word=$2
  6239. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6240. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6241. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  6242. echo $ECHO_N "(cached) $ECHO_C" >&6
  6243. else
  6244. if test -n "$ac_ct_AR"; then
  6245. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6246. else
  6247. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6248. for as_dir in $PATH
  6249. do
  6250. IFS=$as_save_IFS
  6251. test -z "$as_dir" && as_dir=.
  6252. for ac_exec_ext in '' $ac_executable_extensions; do
  6253. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  6254. ac_cv_prog_ac_ct_AR="ar"
  6255. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6256. break 2
  6257. fi
  6258. done
  6259. done
  6260. IFS=$as_save_IFS
  6261. fi
  6262. fi
  6263. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6264. if test -n "$ac_ct_AR"; then
  6265. { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  6266. echo "${ECHO_T}$ac_ct_AR" >&6; }
  6267. else
  6268. { echo "$as_me:$LINENO: result: no" >&5
  6269. echo "${ECHO_T}no" >&6; }
  6270. fi
  6271. if test "x$ac_ct_AR" = x; then
  6272. AR="false"
  6273. else
  6274. case $cross_compiling:$ac_tool_warned in
  6275. yes:)
  6276. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6277. whose name does not start with the host triplet. If you think this
  6278. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6279. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6280. whose name does not start with the host triplet. If you think this
  6281. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6282. ac_tool_warned=yes ;;
  6283. esac
  6284. AR=$ac_ct_AR
  6285. fi
  6286. else
  6287. AR="$ac_cv_prog_AR"
  6288. fi
  6289. if test -n "$ac_tool_prefix"; then
  6290. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6291. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6292. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6293. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6294. if test "${ac_cv_prog_RANLIB+set}" = set; then
  6295. echo $ECHO_N "(cached) $ECHO_C" >&6
  6296. else
  6297. if test -n "$RANLIB"; then
  6298. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6299. else
  6300. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6301. for as_dir in $PATH
  6302. do
  6303. IFS=$as_save_IFS
  6304. test -z "$as_dir" && as_dir=.
  6305. for ac_exec_ext in '' $ac_executable_extensions; do
  6306. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  6307. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6308. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6309. break 2
  6310. fi
  6311. done
  6312. done
  6313. IFS=$as_save_IFS
  6314. fi
  6315. fi
  6316. RANLIB=$ac_cv_prog_RANLIB
  6317. if test -n "$RANLIB"; then
  6318. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  6319. echo "${ECHO_T}$RANLIB" >&6; }
  6320. else
  6321. { echo "$as_me:$LINENO: result: no" >&5
  6322. echo "${ECHO_T}no" >&6; }
  6323. fi
  6324. fi
  6325. if test -z "$ac_cv_prog_RANLIB"; then
  6326. ac_ct_RANLIB=$RANLIB
  6327. # Extract the first word of "ranlib", so it can be a program name with args.
  6328. set dummy ranlib; ac_word=$2
  6329. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6330. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6331. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  6332. echo $ECHO_N "(cached) $ECHO_C" >&6
  6333. else
  6334. if test -n "$ac_ct_RANLIB"; then
  6335. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6336. else
  6337. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6338. for as_dir in $PATH
  6339. do
  6340. IFS=$as_save_IFS
  6341. test -z "$as_dir" && as_dir=.
  6342. for ac_exec_ext in '' $ac_executable_extensions; do
  6343. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  6344. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6345. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6346. break 2
  6347. fi
  6348. done
  6349. done
  6350. IFS=$as_save_IFS
  6351. fi
  6352. fi
  6353. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6354. if test -n "$ac_ct_RANLIB"; then
  6355. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  6356. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  6357. else
  6358. { echo "$as_me:$LINENO: result: no" >&5
  6359. echo "${ECHO_T}no" >&6; }
  6360. fi
  6361. if test "x$ac_ct_RANLIB" = x; then
  6362. RANLIB=":"
  6363. else
  6364. case $cross_compiling:$ac_tool_warned in
  6365. yes:)
  6366. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6367. whose name does not start with the host triplet. If you think this
  6368. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6369. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6370. whose name does not start with the host triplet. If you think this
  6371. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6372. ac_tool_warned=yes ;;
  6373. esac
  6374. RANLIB=$ac_ct_RANLIB
  6375. fi
  6376. else
  6377. RANLIB="$ac_cv_prog_RANLIB"
  6378. fi
  6379. if test -n "$ac_tool_prefix"; then
  6380. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6381. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6382. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6383. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6384. if test "${ac_cv_prog_STRIP+set}" = set; then
  6385. echo $ECHO_N "(cached) $ECHO_C" >&6
  6386. else
  6387. if test -n "$STRIP"; then
  6388. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6389. else
  6390. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6391. for as_dir in $PATH
  6392. do
  6393. IFS=$as_save_IFS
  6394. test -z "$as_dir" && as_dir=.
  6395. for ac_exec_ext in '' $ac_executable_extensions; do
  6396. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  6397. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6398. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6399. break 2
  6400. fi
  6401. done
  6402. done
  6403. IFS=$as_save_IFS
  6404. fi
  6405. fi
  6406. STRIP=$ac_cv_prog_STRIP
  6407. if test -n "$STRIP"; then
  6408. { echo "$as_me:$LINENO: result: $STRIP" >&5
  6409. echo "${ECHO_T}$STRIP" >&6; }
  6410. else
  6411. { echo "$as_me:$LINENO: result: no" >&5
  6412. echo "${ECHO_T}no" >&6; }
  6413. fi
  6414. fi
  6415. if test -z "$ac_cv_prog_STRIP"; then
  6416. ac_ct_STRIP=$STRIP
  6417. # Extract the first word of "strip", so it can be a program name with args.
  6418. set dummy strip; ac_word=$2
  6419. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6420. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6421. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  6422. echo $ECHO_N "(cached) $ECHO_C" >&6
  6423. else
  6424. if test -n "$ac_ct_STRIP"; then
  6425. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6426. else
  6427. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6428. for as_dir in $PATH
  6429. do
  6430. IFS=$as_save_IFS
  6431. test -z "$as_dir" && as_dir=.
  6432. for ac_exec_ext in '' $ac_executable_extensions; do
  6433. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  6434. ac_cv_prog_ac_ct_STRIP="strip"
  6435. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6436. break 2
  6437. fi
  6438. done
  6439. done
  6440. IFS=$as_save_IFS
  6441. fi
  6442. fi
  6443. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6444. if test -n "$ac_ct_STRIP"; then
  6445. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  6446. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  6447. else
  6448. { echo "$as_me:$LINENO: result: no" >&5
  6449. echo "${ECHO_T}no" >&6; }
  6450. fi
  6451. if test "x$ac_ct_STRIP" = x; then
  6452. STRIP=":"
  6453. else
  6454. case $cross_compiling:$ac_tool_warned in
  6455. yes:)
  6456. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6457. whose name does not start with the host triplet. If you think this
  6458. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6459. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6460. whose name does not start with the host triplet. If you think this
  6461. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6462. ac_tool_warned=yes ;;
  6463. esac
  6464. STRIP=$ac_ct_STRIP
  6465. fi
  6466. else
  6467. STRIP="$ac_cv_prog_STRIP"
  6468. fi
  6469. old_CC="$CC"
  6470. old_CFLAGS="$CFLAGS"
  6471. # Set sane defaults for various variables
  6472. test -z "$AR" && AR=ar
  6473. test -z "$AR_FLAGS" && AR_FLAGS=cru
  6474. test -z "$AS" && AS=as
  6475. test -z "$CC" && CC=cc
  6476. test -z "$LTCC" && LTCC=$CC
  6477. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6478. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6479. test -z "$LD" && LD=ld
  6480. test -z "$LN_S" && LN_S="ln -s"
  6481. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6482. test -z "$NM" && NM=nm
  6483. test -z "$SED" && SED=sed
  6484. test -z "$OBJDUMP" && OBJDUMP=objdump
  6485. test -z "$RANLIB" && RANLIB=:
  6486. test -z "$STRIP" && STRIP=:
  6487. test -z "$ac_objext" && ac_objext=o
  6488. # Determine commands to create old-style static archives.
  6489. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  6490. old_postinstall_cmds='chmod 644 $oldlib'
  6491. old_postuninstall_cmds=
  6492. if test -n "$RANLIB"; then
  6493. case $host_os in
  6494. openbsd*)
  6495. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  6496. ;;
  6497. *)
  6498. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  6499. ;;
  6500. esac
  6501. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  6502. fi
  6503. for cc_temp in $compiler""; do
  6504. case $cc_temp in
  6505. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6506. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6507. \-*) ;;
  6508. *) break;;
  6509. esac
  6510. done
  6511. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6512. # Only perform the check for file, if the check method requires it
  6513. case $deplibs_check_method in
  6514. file_magic*)
  6515. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6516. { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  6517. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
  6518. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6519. echo $ECHO_N "(cached) $ECHO_C" >&6
  6520. else
  6521. case $MAGIC_CMD in
  6522. [\\/*] | ?:[\\/]*)
  6523. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6524. ;;
  6525. *)
  6526. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6527. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6528. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6529. for ac_dir in $ac_dummy; do
  6530. IFS="$lt_save_ifs"
  6531. test -z "$ac_dir" && ac_dir=.
  6532. if test -f $ac_dir/${ac_tool_prefix}file; then
  6533. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6534. if test -n "$file_magic_test_file"; then
  6535. case $deplibs_check_method in
  6536. "file_magic "*)
  6537. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6538. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6539. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6540. $EGREP "$file_magic_regex" > /dev/null; then
  6541. :
  6542. else
  6543. cat <<EOF 1>&2
  6544. *** Warning: the command libtool uses to detect shared libraries,
  6545. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6546. *** The result is that libtool may fail to recognize shared libraries
  6547. *** as such. This will affect the creation of libtool libraries that
  6548. *** depend on shared libraries, but programs linked with such libtool
  6549. *** libraries will work regardless of this problem. Nevertheless, you
  6550. *** may want to report the problem to your system manager and/or to
  6551. *** bug-libtool@gnu.org
  6552. EOF
  6553. fi ;;
  6554. esac
  6555. fi
  6556. break
  6557. fi
  6558. done
  6559. IFS="$lt_save_ifs"
  6560. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6561. ;;
  6562. esac
  6563. fi
  6564. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6565. if test -n "$MAGIC_CMD"; then
  6566. { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6567. echo "${ECHO_T}$MAGIC_CMD" >&6; }
  6568. else
  6569. { echo "$as_me:$LINENO: result: no" >&5
  6570. echo "${ECHO_T}no" >&6; }
  6571. fi
  6572. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6573. if test -n "$ac_tool_prefix"; then
  6574. { echo "$as_me:$LINENO: checking for file" >&5
  6575. echo $ECHO_N "checking for file... $ECHO_C" >&6; }
  6576. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6577. echo $ECHO_N "(cached) $ECHO_C" >&6
  6578. else
  6579. case $MAGIC_CMD in
  6580. [\\/*] | ?:[\\/]*)
  6581. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6582. ;;
  6583. *)
  6584. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6585. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6586. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6587. for ac_dir in $ac_dummy; do
  6588. IFS="$lt_save_ifs"
  6589. test -z "$ac_dir" && ac_dir=.
  6590. if test -f $ac_dir/file; then
  6591. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6592. if test -n "$file_magic_test_file"; then
  6593. case $deplibs_check_method in
  6594. "file_magic "*)
  6595. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6596. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6597. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6598. $EGREP "$file_magic_regex" > /dev/null; then
  6599. :
  6600. else
  6601. cat <<EOF 1>&2
  6602. *** Warning: the command libtool uses to detect shared libraries,
  6603. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6604. *** The result is that libtool may fail to recognize shared libraries
  6605. *** as such. This will affect the creation of libtool libraries that
  6606. *** depend on shared libraries, but programs linked with such libtool
  6607. *** libraries will work regardless of this problem. Nevertheless, you
  6608. *** may want to report the problem to your system manager and/or to
  6609. *** bug-libtool@gnu.org
  6610. EOF
  6611. fi ;;
  6612. esac
  6613. fi
  6614. break
  6615. fi
  6616. done
  6617. IFS="$lt_save_ifs"
  6618. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6619. ;;
  6620. esac
  6621. fi
  6622. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6623. if test -n "$MAGIC_CMD"; then
  6624. { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6625. echo "${ECHO_T}$MAGIC_CMD" >&6; }
  6626. else
  6627. { echo "$as_me:$LINENO: result: no" >&5
  6628. echo "${ECHO_T}no" >&6; }
  6629. fi
  6630. else
  6631. MAGIC_CMD=:
  6632. fi
  6633. fi
  6634. fi
  6635. ;;
  6636. esac
  6637. enable_dlopen=no
  6638. enable_win32_dll=no
  6639. # Check whether --enable-libtool-lock was given.
  6640. if test "${enable_libtool_lock+set}" = set; then
  6641. enableval=$enable_libtool_lock;
  6642. fi
  6643. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6644. # Check whether --with-pic was given.
  6645. if test "${with_pic+set}" = set; then
  6646. withval=$with_pic; pic_mode="$withval"
  6647. else
  6648. pic_mode=default
  6649. fi
  6650. test -z "$pic_mode" && pic_mode=default
  6651. # Use C for the default configuration in the libtool script
  6652. tagname=
  6653. lt_save_CC="$CC"
  6654. ac_ext=c
  6655. ac_cpp='$CPP $CPPFLAGS'
  6656. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6657. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6658. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6659. # Source file extension for C test sources.
  6660. ac_ext=c
  6661. # Object file extension for compiled C test sources.
  6662. objext=o
  6663. objext=$objext
  6664. # Code to be used in simple compile tests
  6665. lt_simple_compile_test_code="int some_variable = 0;\n"
  6666. # Code to be used in simple link tests
  6667. lt_simple_link_test_code='int main(){return(0);}\n'
  6668. # If no C compiler was specified, use CC.
  6669. LTCC=${LTCC-"$CC"}
  6670. # If no C compiler flags were specified, use CFLAGS.
  6671. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6672. # Allow CC to be a program name with arguments.
  6673. compiler=$CC
  6674. # save warnings/boilerplate of simple test code
  6675. ac_outfile=conftest.$ac_objext
  6676. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  6677. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6678. _lt_compiler_boilerplate=`cat conftest.err`
  6679. $rm conftest*
  6680. ac_outfile=conftest.$ac_objext
  6681. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  6682. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6683. _lt_linker_boilerplate=`cat conftest.err`
  6684. $rm conftest*
  6685. lt_prog_compiler_no_builtin_flag=
  6686. if test "$GCC" = yes; then
  6687. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  6688. { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6689. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  6690. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  6691. echo $ECHO_N "(cached) $ECHO_C" >&6
  6692. else
  6693. lt_cv_prog_compiler_rtti_exceptions=no
  6694. ac_outfile=conftest.$ac_objext
  6695. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6696. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6697. # Insert the option either (1) after the last *FLAGS variable, or
  6698. # (2) before a word containing "conftest.", or (3) at the end.
  6699. # Note that $ac_compile itself does not contain backslashes and begins
  6700. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6701. # The option is referenced via a variable to avoid confusing sed.
  6702. lt_compile=`echo "$ac_compile" | $SED \
  6703. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6704. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6705. -e 's:$: $lt_compiler_flag:'`
  6706. (eval echo "\"\$as_me:7456: $lt_compile\"" >&5)
  6707. (eval "$lt_compile" 2>conftest.err)
  6708. ac_status=$?
  6709. cat conftest.err >&5
  6710. echo "$as_me:7460: \$? = $ac_status" >&5
  6711. if (exit $ac_status) && test -s "$ac_outfile"; then
  6712. # The compiler can only warn and ignore the option if not recognized
  6713. # So say no if there are warnings other than the usual output.
  6714. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6715. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6716. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6717. lt_cv_prog_compiler_rtti_exceptions=yes
  6718. fi
  6719. fi
  6720. $rm conftest*
  6721. fi
  6722. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6723. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6724. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6725. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6726. else
  6727. :
  6728. fi
  6729. fi
  6730. lt_prog_compiler_wl=
  6731. lt_prog_compiler_pic=
  6732. lt_prog_compiler_static=
  6733. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  6734. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  6735. if test "$GCC" = yes; then
  6736. lt_prog_compiler_wl='-Wl,'
  6737. lt_prog_compiler_static='-static'
  6738. case $host_os in
  6739. aix*)
  6740. # All AIX code is PIC.
  6741. if test "$host_cpu" = ia64; then
  6742. # AIX 5 now supports IA64 processor
  6743. lt_prog_compiler_static='-Bstatic'
  6744. fi
  6745. ;;
  6746. amigaos*)
  6747. # FIXME: we need at least 68020 code to build shared libraries, but
  6748. # adding the `-m68020' flag to GCC prevents building anything better,
  6749. # like `-m68040'.
  6750. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6751. ;;
  6752. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6753. # PIC is the default for these OSes.
  6754. ;;
  6755. mingw* | pw32* | os2*)
  6756. # This hack is so that the source file can tell whether it is being
  6757. # built for inclusion in a dll (and should export symbols for example).
  6758. lt_prog_compiler_pic='-DDLL_EXPORT'
  6759. ;;
  6760. darwin* | rhapsody*)
  6761. # PIC is the default on this platform
  6762. # Common symbols not allowed in MH_DYLIB files
  6763. lt_prog_compiler_pic='-fno-common'
  6764. ;;
  6765. interix3*)
  6766. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6767. # Instead, we relocate shared libraries at runtime.
  6768. ;;
  6769. msdosdjgpp*)
  6770. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6771. # on systems that don't support them.
  6772. lt_prog_compiler_can_build_shared=no
  6773. enable_shared=no
  6774. ;;
  6775. sysv4*MP*)
  6776. if test -d /usr/nec; then
  6777. lt_prog_compiler_pic=-Kconform_pic
  6778. fi
  6779. ;;
  6780. hpux*)
  6781. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6782. # not for PA HP-UX.
  6783. case $host_cpu in
  6784. hppa*64*|ia64*)
  6785. # +Z the default
  6786. ;;
  6787. *)
  6788. lt_prog_compiler_pic='-fPIC'
  6789. ;;
  6790. esac
  6791. ;;
  6792. *)
  6793. lt_prog_compiler_pic='-fPIC'
  6794. ;;
  6795. esac
  6796. else
  6797. # PORTME Check for flag to pass linker flags through the system compiler.
  6798. case $host_os in
  6799. aix*)
  6800. lt_prog_compiler_wl='-Wl,'
  6801. if test "$host_cpu" = ia64; then
  6802. # AIX 5 now supports IA64 processor
  6803. lt_prog_compiler_static='-Bstatic'
  6804. else
  6805. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6806. fi
  6807. ;;
  6808. darwin*)
  6809. # PIC is the default on this platform
  6810. # Common symbols not allowed in MH_DYLIB files
  6811. case $cc_basename in
  6812. xlc*)
  6813. lt_prog_compiler_pic='-qnocommon'
  6814. lt_prog_compiler_wl='-Wl,'
  6815. ;;
  6816. esac
  6817. ;;
  6818. mingw* | pw32* | os2*)
  6819. # This hack is so that the source file can tell whether it is being
  6820. # built for inclusion in a dll (and should export symbols for example).
  6821. lt_prog_compiler_pic='-DDLL_EXPORT'
  6822. ;;
  6823. hpux9* | hpux10* | hpux11*)
  6824. lt_prog_compiler_wl='-Wl,'
  6825. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6826. # not for PA HP-UX.
  6827. case $host_cpu in
  6828. hppa*64*|ia64*)
  6829. # +Z the default
  6830. ;;
  6831. *)
  6832. lt_prog_compiler_pic='+Z'
  6833. ;;
  6834. esac
  6835. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6836. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6837. ;;
  6838. irix5* | irix6* | nonstopux*)
  6839. lt_prog_compiler_wl='-Wl,'
  6840. # PIC (with -KPIC) is the default.
  6841. lt_prog_compiler_static='-non_shared'
  6842. ;;
  6843. newsos6)
  6844. lt_prog_compiler_pic='-KPIC'
  6845. lt_prog_compiler_static='-Bstatic'
  6846. ;;
  6847. linux* | k*bsd*-gnu)
  6848. case $cc_basename in
  6849. icc* | ecc*)
  6850. lt_prog_compiler_wl='-Wl,'
  6851. lt_prog_compiler_pic='-KPIC'
  6852. lt_prog_compiler_static='-static'
  6853. ;;
  6854. pgcc* | pgf77* | pgf90* | pgf95*)
  6855. # Portland Group compilers (*not* the Pentium gcc compiler,
  6856. # which looks to be a dead project)
  6857. lt_prog_compiler_wl='-Wl,'
  6858. lt_prog_compiler_pic='-fpic'
  6859. lt_prog_compiler_static='-Bstatic'
  6860. ;;
  6861. ccc*)
  6862. lt_prog_compiler_wl='-Wl,'
  6863. # All Alpha code is PIC.
  6864. lt_prog_compiler_static='-non_shared'
  6865. ;;
  6866. esac
  6867. ;;
  6868. osf3* | osf4* | osf5*)
  6869. lt_prog_compiler_wl='-Wl,'
  6870. # All OSF/1 code is PIC.
  6871. lt_prog_compiler_static='-non_shared'
  6872. ;;
  6873. solaris*)
  6874. lt_prog_compiler_pic='-KPIC'
  6875. lt_prog_compiler_static='-Bstatic'
  6876. case $cc_basename in
  6877. f77* | f90* | f95*)
  6878. lt_prog_compiler_wl='-Qoption ld ';;
  6879. *)
  6880. lt_prog_compiler_wl='-Wl,';;
  6881. esac
  6882. ;;
  6883. sunos4*)
  6884. lt_prog_compiler_wl='-Qoption ld '
  6885. lt_prog_compiler_pic='-PIC'
  6886. lt_prog_compiler_static='-Bstatic'
  6887. ;;
  6888. sysv4 | sysv4.2uw2* | sysv4.3*)
  6889. lt_prog_compiler_wl='-Wl,'
  6890. lt_prog_compiler_pic='-KPIC'
  6891. lt_prog_compiler_static='-Bstatic'
  6892. ;;
  6893. sysv4*MP*)
  6894. if test -d /usr/nec ;then
  6895. lt_prog_compiler_pic='-Kconform_pic'
  6896. lt_prog_compiler_static='-Bstatic'
  6897. fi
  6898. ;;
  6899. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6900. lt_prog_compiler_wl='-Wl,'
  6901. lt_prog_compiler_pic='-KPIC'
  6902. lt_prog_compiler_static='-Bstatic'
  6903. ;;
  6904. unicos*)
  6905. lt_prog_compiler_wl='-Wl,'
  6906. lt_prog_compiler_can_build_shared=no
  6907. ;;
  6908. uts4*)
  6909. lt_prog_compiler_pic='-pic'
  6910. lt_prog_compiler_static='-Bstatic'
  6911. ;;
  6912. *)
  6913. lt_prog_compiler_can_build_shared=no
  6914. ;;
  6915. esac
  6916. fi
  6917. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  6918. echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
  6919. #
  6920. # Check to make sure the PIC flag actually works.
  6921. #
  6922. if test -n "$lt_prog_compiler_pic"; then
  6923. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6924. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
  6925. if test "${lt_prog_compiler_pic_works+set}" = set; then
  6926. echo $ECHO_N "(cached) $ECHO_C" >&6
  6927. else
  6928. lt_prog_compiler_pic_works=no
  6929. ac_outfile=conftest.$ac_objext
  6930. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6931. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  6932. # Insert the option either (1) after the last *FLAGS variable, or
  6933. # (2) before a word containing "conftest.", or (3) at the end.
  6934. # Note that $ac_compile itself does not contain backslashes and begins
  6935. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6936. # The option is referenced via a variable to avoid confusing sed.
  6937. lt_compile=`echo "$ac_compile" | $SED \
  6938. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6939. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6940. -e 's:$: $lt_compiler_flag:'`
  6941. (eval echo "\"\$as_me:7724: $lt_compile\"" >&5)
  6942. (eval "$lt_compile" 2>conftest.err)
  6943. ac_status=$?
  6944. cat conftest.err >&5
  6945. echo "$as_me:7728: \$? = $ac_status" >&5
  6946. if (exit $ac_status) && test -s "$ac_outfile"; then
  6947. # The compiler can only warn and ignore the option if not recognized
  6948. # So say no if there are warnings other than the usual output.
  6949. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6950. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6951. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6952. lt_prog_compiler_pic_works=yes
  6953. fi
  6954. fi
  6955. $rm conftest*
  6956. fi
  6957. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  6958. echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
  6959. if test x"$lt_prog_compiler_pic_works" = xyes; then
  6960. case $lt_prog_compiler_pic in
  6961. "" | " "*) ;;
  6962. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  6963. esac
  6964. else
  6965. lt_prog_compiler_pic=
  6966. lt_prog_compiler_can_build_shared=no
  6967. fi
  6968. fi
  6969. case $host_os in
  6970. # For platforms which do not support PIC, -DPIC is meaningless:
  6971. *djgpp*)
  6972. lt_prog_compiler_pic=
  6973. ;;
  6974. *)
  6975. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6976. ;;
  6977. esac
  6978. #
  6979. # Check to make sure the static flag actually works.
  6980. #
  6981. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  6982. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  6983. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  6984. if test "${lt_prog_compiler_static_works+set}" = set; then
  6985. echo $ECHO_N "(cached) $ECHO_C" >&6
  6986. else
  6987. lt_prog_compiler_static_works=no
  6988. save_LDFLAGS="$LDFLAGS"
  6989. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  6990. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  6991. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  6992. # The linker can only warn and ignore the option if not recognized
  6993. # So say no if there are warnings
  6994. if test -s conftest.err; then
  6995. # Append any errors to the config.log.
  6996. cat conftest.err 1>&5
  6997. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  6998. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6999. if diff conftest.exp conftest.er2 >/dev/null; then
  7000. lt_prog_compiler_static_works=yes
  7001. fi
  7002. else
  7003. lt_prog_compiler_static_works=yes
  7004. fi
  7005. fi
  7006. $rm conftest*
  7007. LDFLAGS="$save_LDFLAGS"
  7008. fi
  7009. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  7010. echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
  7011. if test x"$lt_prog_compiler_static_works" = xyes; then
  7012. :
  7013. else
  7014. lt_prog_compiler_static=
  7015. fi
  7016. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  7017. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  7018. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  7019. echo $ECHO_N "(cached) $ECHO_C" >&6
  7020. else
  7021. lt_cv_prog_compiler_c_o=no
  7022. $rm -r conftest 2>/dev/null
  7023. mkdir conftest
  7024. cd conftest
  7025. mkdir out
  7026. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  7027. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7028. # Insert the option either (1) after the last *FLAGS variable, or
  7029. # (2) before a word containing "conftest.", or (3) at the end.
  7030. # Note that $ac_compile itself does not contain backslashes and begins
  7031. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7032. lt_compile=`echo "$ac_compile" | $SED \
  7033. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7034. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7035. -e 's:$: $lt_compiler_flag:'`
  7036. (eval echo "\"\$as_me:7828: $lt_compile\"" >&5)
  7037. (eval "$lt_compile" 2>out/conftest.err)
  7038. ac_status=$?
  7039. cat out/conftest.err >&5
  7040. echo "$as_me:7832: \$? = $ac_status" >&5
  7041. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7042. then
  7043. # The compiler can only warn and ignore the option if not recognized
  7044. # So say no if there are warnings
  7045. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7046. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7047. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7048. lt_cv_prog_compiler_c_o=yes
  7049. fi
  7050. fi
  7051. chmod u+w . 2>&5
  7052. $rm conftest*
  7053. # SGI C++ compiler will create directory out/ii_files/ for
  7054. # template instantiation
  7055. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  7056. $rm out/* && rmdir out
  7057. cd ..
  7058. rmdir conftest
  7059. $rm conftest*
  7060. fi
  7061. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  7062. echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
  7063. hard_links="nottested"
  7064. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7065. # do not overwrite the value of need_locks provided by the user
  7066. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  7067. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  7068. hard_links=yes
  7069. $rm conftest*
  7070. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7071. touch conftest.a
  7072. ln conftest.a conftest.b 2>&5 || hard_links=no
  7073. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7074. { echo "$as_me:$LINENO: result: $hard_links" >&5
  7075. echo "${ECHO_T}$hard_links" >&6; }
  7076. if test "$hard_links" = no; then
  7077. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7078. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7079. need_locks=warn
  7080. fi
  7081. else
  7082. need_locks=no
  7083. fi
  7084. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7085. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  7086. runpath_var=
  7087. allow_undefined_flag=
  7088. enable_shared_with_static_runtimes=no
  7089. archive_cmds=
  7090. archive_expsym_cmds=
  7091. old_archive_From_new_cmds=
  7092. old_archive_from_expsyms_cmds=
  7093. export_dynamic_flag_spec=
  7094. whole_archive_flag_spec=
  7095. thread_safe_flag_spec=
  7096. hardcode_libdir_flag_spec=
  7097. hardcode_libdir_flag_spec_ld=
  7098. hardcode_libdir_separator=
  7099. hardcode_direct=no
  7100. hardcode_minus_L=no
  7101. hardcode_shlibpath_var=unsupported
  7102. link_all_deplibs=unknown
  7103. hardcode_automatic=no
  7104. module_cmds=
  7105. module_expsym_cmds=
  7106. always_export_symbols=no
  7107. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7108. # include_expsyms should be a list of space-separated symbols to be *always*
  7109. # included in the symbol list
  7110. include_expsyms=
  7111. # exclude_expsyms can be an extended regexp of symbols to exclude
  7112. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7113. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7114. # as well as any symbol that contains `d'.
  7115. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  7116. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7117. # platforms (ab)use it in PIC code, but their linkers get confused if
  7118. # the symbol is explicitly referenced. Since portable code cannot
  7119. # rely on this symbol name, it's probably fine to never include it in
  7120. # preloaded symbol tables.
  7121. extract_expsyms_cmds=
  7122. # Just being paranoid about ensuring that cc_basename is set.
  7123. for cc_temp in $compiler""; do
  7124. case $cc_temp in
  7125. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7126. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7127. \-*) ;;
  7128. *) break;;
  7129. esac
  7130. done
  7131. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  7132. case $host_os in
  7133. cygwin* | mingw* | pw32*)
  7134. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7135. # When not using gcc, we currently assume that we are using
  7136. # Microsoft Visual C++.
  7137. if test "$GCC" != yes; then
  7138. with_gnu_ld=no
  7139. fi
  7140. ;;
  7141. interix*)
  7142. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7143. with_gnu_ld=yes
  7144. ;;
  7145. openbsd*)
  7146. with_gnu_ld=no
  7147. ;;
  7148. esac
  7149. ld_shlibs=yes
  7150. if test "$with_gnu_ld" = yes; then
  7151. # If archive_cmds runs LD, not CC, wlarc should be empty
  7152. wlarc='${wl}'
  7153. # Set some defaults for GNU ld with shared library support. These
  7154. # are reset later if shared libraries are not supported. Putting them
  7155. # here allows them to be overridden if necessary.
  7156. runpath_var=LD_RUN_PATH
  7157. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  7158. export_dynamic_flag_spec='${wl}--export-dynamic'
  7159. # ancient GNU ld didn't support --whole-archive et. al.
  7160. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  7161. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7162. else
  7163. whole_archive_flag_spec=
  7164. fi
  7165. supports_anon_versioning=no
  7166. case `$LD -v 2>/dev/null` in
  7167. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7168. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7169. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7170. *\ 2.11.*) ;; # other 2.11 versions
  7171. *) supports_anon_versioning=yes ;;
  7172. esac
  7173. # See if GNU ld supports shared libraries.
  7174. case $host_os in
  7175. aix3* | aix4* | aix5*)
  7176. # On AIX/PPC, the GNU linker is very broken
  7177. if test "$host_cpu" != ia64; then
  7178. ld_shlibs=no
  7179. cat <<EOF 1>&2
  7180. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  7181. *** to be unable to reliably create shared libraries on AIX.
  7182. *** Therefore, libtool is disabling shared libraries support. If you
  7183. *** really care for shared libraries, you may want to modify your PATH
  7184. *** so that a non-GNU linker is found, and then restart.
  7185. EOF
  7186. fi
  7187. ;;
  7188. amigaos*)
  7189. archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  7190. hardcode_libdir_flag_spec='-L$libdir'
  7191. hardcode_minus_L=yes
  7192. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  7193. # that the semantics of dynamic libraries on AmigaOS, at least up
  7194. # to version 4, is to share data among multiple programs linked
  7195. # with the same dynamic library. Since this doesn't match the
  7196. # behavior of shared libraries on other platforms, we can't use
  7197. # them.
  7198. ld_shlibs=no
  7199. ;;
  7200. beos*)
  7201. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7202. allow_undefined_flag=unsupported
  7203. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7204. # support --undefined. This deserves some investigation. FIXME
  7205. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7206. else
  7207. ld_shlibs=no
  7208. fi
  7209. ;;
  7210. cygwin* | mingw* | pw32*)
  7211. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7212. # as there is no search path for DLLs.
  7213. hardcode_libdir_flag_spec='-L$libdir'
  7214. allow_undefined_flag=unsupported
  7215. always_export_symbols=no
  7216. enable_shared_with_static_runtimes=yes
  7217. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  7218. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  7219. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7220. # If the export-symbols file already is a .def file (1st line
  7221. # is EXPORTS), use it as is; otherwise, prepend...
  7222. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7223. cp $export_symbols $output_objdir/$soname.def;
  7224. else
  7225. echo EXPORTS > $output_objdir/$soname.def;
  7226. cat $export_symbols >> $output_objdir/$soname.def;
  7227. fi~
  7228. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7229. else
  7230. ld_shlibs=no
  7231. fi
  7232. ;;
  7233. interix3*)
  7234. hardcode_direct=no
  7235. hardcode_shlibpath_var=no
  7236. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7237. export_dynamic_flag_spec='${wl}-E'
  7238. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7239. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7240. # default) and relocated if they conflict, which is a slow very memory
  7241. # consuming and fragmenting process. To avoid this, we pick a random,
  7242. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7243. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7244. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7245. archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7246. ;;
  7247. linux* | k*bsd*-gnu)
  7248. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7249. tmp_addflag=
  7250. case $cc_basename,$host_cpu in
  7251. pgcc*) # Portland Group C compiler
  7252. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  7253. tmp_addflag=' $pic_flag'
  7254. ;;
  7255. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  7256. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  7257. tmp_addflag=' $pic_flag -Mnomain' ;;
  7258. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7259. tmp_addflag=' -i_dynamic' ;;
  7260. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7261. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7262. ifc* | ifort*) # Intel Fortran compiler
  7263. tmp_addflag=' -nofor_main' ;;
  7264. esac
  7265. archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7266. if test $supports_anon_versioning = yes; then
  7267. archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  7268. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7269. $echo "local: *; };" >> $output_objdir/$libname.ver~
  7270. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7271. fi
  7272. link_all_deplibs=no
  7273. else
  7274. ld_shlibs=no
  7275. fi
  7276. ;;
  7277. netbsd* | netbsdelf*-gnu)
  7278. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7279. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7280. wlarc=
  7281. else
  7282. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7283. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7284. fi
  7285. ;;
  7286. solaris*)
  7287. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  7288. ld_shlibs=no
  7289. cat <<EOF 1>&2
  7290. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7291. *** create shared libraries on Solaris systems. Therefore, libtool
  7292. *** is disabling shared libraries support. We urge you to upgrade GNU
  7293. *** binutils to release 2.9.1 or newer. Another option is to modify
  7294. *** your PATH or compiler configuration so that the native linker is
  7295. *** used, and then restart.
  7296. EOF
  7297. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7298. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7299. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7300. else
  7301. ld_shlibs=no
  7302. fi
  7303. ;;
  7304. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7305. case `$LD -v 2>&1` in
  7306. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7307. ld_shlibs=no
  7308. cat <<_LT_EOF 1>&2
  7309. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7310. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7311. *** is disabling shared libraries support. We urge you to upgrade GNU
  7312. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7313. *** your PATH or compiler configuration so that the native linker is
  7314. *** used, and then restart.
  7315. _LT_EOF
  7316. ;;
  7317. *)
  7318. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7319. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  7320. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  7321. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  7322. else
  7323. ld_shlibs=no
  7324. fi
  7325. ;;
  7326. esac
  7327. ;;
  7328. sunos4*)
  7329. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7330. wlarc=
  7331. hardcode_direct=yes
  7332. hardcode_shlibpath_var=no
  7333. ;;
  7334. *)
  7335. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7336. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7337. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7338. else
  7339. ld_shlibs=no
  7340. fi
  7341. ;;
  7342. esac
  7343. if test "$ld_shlibs" = no; then
  7344. runpath_var=
  7345. hardcode_libdir_flag_spec=
  7346. export_dynamic_flag_spec=
  7347. whole_archive_flag_spec=
  7348. fi
  7349. else
  7350. # PORTME fill in a description of your system's linker (not GNU ld)
  7351. case $host_os in
  7352. aix3*)
  7353. allow_undefined_flag=unsupported
  7354. always_export_symbols=yes
  7355. archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  7356. # Note: this linker hardcodes the directories in LIBPATH if there
  7357. # are no directories specified by -L.
  7358. hardcode_minus_L=yes
  7359. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7360. # Neither direct hardcoding nor static linking is supported with a
  7361. # broken collect2.
  7362. hardcode_direct=unsupported
  7363. fi
  7364. ;;
  7365. aix4* | aix5*)
  7366. if test "$host_cpu" = ia64; then
  7367. # On IA64, the linker does run time linking by default, so we don't
  7368. # have to do anything special.
  7369. aix_use_runtimelinking=no
  7370. exp_sym_flag='-Bexport'
  7371. no_entry_flag=""
  7372. else
  7373. # If we're using GNU nm, then we don't want the "-C" option.
  7374. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7375. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  7376. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  7377. else
  7378. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  7379. fi
  7380. aix_use_runtimelinking=no
  7381. # Test if we are trying to use run time linking or normal
  7382. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7383. # need to do runtime linking.
  7384. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  7385. for ld_flag in $LDFLAGS; do
  7386. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7387. aix_use_runtimelinking=yes
  7388. break
  7389. fi
  7390. done
  7391. ;;
  7392. esac
  7393. exp_sym_flag='-bexport'
  7394. no_entry_flag='-bnoentry'
  7395. fi
  7396. # When large executables or shared objects are built, AIX ld can
  7397. # have problems creating the table of contents. If linking a library
  7398. # or program results in "error TOC overflow" add -mminimal-toc to
  7399. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7400. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7401. archive_cmds=''
  7402. hardcode_direct=yes
  7403. hardcode_libdir_separator=':'
  7404. link_all_deplibs=yes
  7405. if test "$GCC" = yes; then
  7406. case $host_os in aix4.[012]|aix4.[012].*)
  7407. # We only want to do this on AIX 4.2 and lower, the check
  7408. # below for broken collect2 doesn't work under 4.3+
  7409. collect2name=`${CC} -print-prog-name=collect2`
  7410. if test -f "$collect2name" && \
  7411. strings "$collect2name" | grep resolve_lib_name >/dev/null
  7412. then
  7413. # We have reworked collect2
  7414. hardcode_direct=yes
  7415. else
  7416. # We have old collect2
  7417. hardcode_direct=unsupported
  7418. # It fails to find uninstalled libraries when the uninstalled
  7419. # path is not listed in the libpath. Setting hardcode_minus_L
  7420. # to unsupported forces relinking
  7421. hardcode_minus_L=yes
  7422. hardcode_libdir_flag_spec='-L$libdir'
  7423. hardcode_libdir_separator=
  7424. fi
  7425. ;;
  7426. esac
  7427. shared_flag='-shared'
  7428. if test "$aix_use_runtimelinking" = yes; then
  7429. shared_flag="$shared_flag "'${wl}-G'
  7430. fi
  7431. else
  7432. # not using gcc
  7433. if test "$host_cpu" = ia64; then
  7434. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7435. # chokes on -Wl,-G. The following line is correct:
  7436. shared_flag='-G'
  7437. else
  7438. if test "$aix_use_runtimelinking" = yes; then
  7439. shared_flag='${wl}-G'
  7440. else
  7441. shared_flag='${wl}-bM:SRE'
  7442. fi
  7443. fi
  7444. fi
  7445. # It seems that -bexpall does not export symbols beginning with
  7446. # underscore (_), so it is better to generate a list of symbols to export.
  7447. always_export_symbols=yes
  7448. if test "$aix_use_runtimelinking" = yes; then
  7449. # Warning - without using the other runtime loading flags (-brtl),
  7450. # -berok will link without error, but may produce a broken library.
  7451. allow_undefined_flag='-berok'
  7452. # Determine the default libpath from the value encoded in an empty executable.
  7453. cat >conftest.$ac_ext <<_ACEOF
  7454. /* confdefs.h. */
  7455. _ACEOF
  7456. cat confdefs.h >>conftest.$ac_ext
  7457. cat >>conftest.$ac_ext <<_ACEOF
  7458. /* end confdefs.h. */
  7459. int
  7460. main ()
  7461. {
  7462. ;
  7463. return 0;
  7464. }
  7465. _ACEOF
  7466. rm -f conftest.$ac_objext conftest$ac_exeext
  7467. if { (ac_try="$ac_link"
  7468. case "(($ac_try" in
  7469. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7470. *) ac_try_echo=$ac_try;;
  7471. esac
  7472. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7473. (eval "$ac_link") 2>conftest.er1
  7474. ac_status=$?
  7475. grep -v '^ *+' conftest.er1 >conftest.err
  7476. rm -f conftest.er1
  7477. cat conftest.err >&5
  7478. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7479. (exit $ac_status); } &&
  7480. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7481. { (case "(($ac_try" in
  7482. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7483. *) ac_try_echo=$ac_try;;
  7484. esac
  7485. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7486. (eval "$ac_try") 2>&5
  7487. ac_status=$?
  7488. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7489. (exit $ac_status); }; } &&
  7490. { ac_try='test -s conftest$ac_exeext'
  7491. { (case "(($ac_try" in
  7492. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7493. *) ac_try_echo=$ac_try;;
  7494. esac
  7495. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7496. (eval "$ac_try") 2>&5
  7497. ac_status=$?
  7498. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7499. (exit $ac_status); }; }; then
  7500. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  7501. }'`
  7502. # Check for a 64-bit object if we didn't find anything.
  7503. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  7504. }'`; fi
  7505. else
  7506. echo "$as_me: failed program was:" >&5
  7507. sed 's/^/| /' conftest.$ac_ext >&5
  7508. fi
  7509. rm -f conftest.err conftest.$ac_objext \
  7510. conftest$ac_exeext conftest.$ac_ext
  7511. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7512. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7513. archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  7514. else
  7515. if test "$host_cpu" = ia64; then
  7516. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7517. allow_undefined_flag="-z nodefs"
  7518. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  7519. else
  7520. # Determine the default libpath from the value encoded in an empty executable.
  7521. cat >conftest.$ac_ext <<_ACEOF
  7522. /* confdefs.h. */
  7523. _ACEOF
  7524. cat confdefs.h >>conftest.$ac_ext
  7525. cat >>conftest.$ac_ext <<_ACEOF
  7526. /* end confdefs.h. */
  7527. int
  7528. main ()
  7529. {
  7530. ;
  7531. return 0;
  7532. }
  7533. _ACEOF
  7534. rm -f conftest.$ac_objext conftest$ac_exeext
  7535. if { (ac_try="$ac_link"
  7536. case "(($ac_try" in
  7537. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7538. *) ac_try_echo=$ac_try;;
  7539. esac
  7540. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7541. (eval "$ac_link") 2>conftest.er1
  7542. ac_status=$?
  7543. grep -v '^ *+' conftest.er1 >conftest.err
  7544. rm -f conftest.er1
  7545. cat conftest.err >&5
  7546. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7547. (exit $ac_status); } &&
  7548. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7549. { (case "(($ac_try" in
  7550. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7551. *) ac_try_echo=$ac_try;;
  7552. esac
  7553. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7554. (eval "$ac_try") 2>&5
  7555. ac_status=$?
  7556. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7557. (exit $ac_status); }; } &&
  7558. { ac_try='test -s conftest$ac_exeext'
  7559. { (case "(($ac_try" in
  7560. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7561. *) ac_try_echo=$ac_try;;
  7562. esac
  7563. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7564. (eval "$ac_try") 2>&5
  7565. ac_status=$?
  7566. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7567. (exit $ac_status); }; }; then
  7568. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  7569. }'`
  7570. # Check for a 64-bit object if we didn't find anything.
  7571. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  7572. }'`; fi
  7573. else
  7574. echo "$as_me: failed program was:" >&5
  7575. sed 's/^/| /' conftest.$ac_ext >&5
  7576. fi
  7577. rm -f conftest.err conftest.$ac_objext \
  7578. conftest$ac_exeext conftest.$ac_ext
  7579. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7580. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7581. # Warning - without using the other run time loading flags,
  7582. # -berok will link without error, but may produce a broken library.
  7583. no_undefined_flag=' ${wl}-bernotok'
  7584. allow_undefined_flag=' ${wl}-berok'
  7585. # Exported symbols can be pulled into shared objects from archives
  7586. whole_archive_flag_spec='$convenience'
  7587. archive_cmds_need_lc=yes
  7588. # This is similar to how AIX traditionally builds its shared libraries.
  7589. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  7590. fi
  7591. fi
  7592. ;;
  7593. amigaos*)
  7594. archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  7595. hardcode_libdir_flag_spec='-L$libdir'
  7596. hardcode_minus_L=yes
  7597. # see comment about different semantics on the GNU ld section
  7598. ld_shlibs=no
  7599. ;;
  7600. bsdi[45]*)
  7601. export_dynamic_flag_spec=-rdynamic
  7602. ;;
  7603. cygwin* | mingw* | pw32*)
  7604. # When not using gcc, we currently assume that we are using
  7605. # Microsoft Visual C++.
  7606. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7607. # no search path for DLLs.
  7608. hardcode_libdir_flag_spec=' '
  7609. allow_undefined_flag=unsupported
  7610. # Tell ltmain to make .lib files, not .a files.
  7611. libext=lib
  7612. # Tell ltmain to make .dll files, not .so files.
  7613. shrext_cmds=".dll"
  7614. # FIXME: Setting linknames here is a bad hack.
  7615. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  7616. # The linker will automatically build a .lib file if we build a DLL.
  7617. old_archive_From_new_cmds='true'
  7618. # FIXME: Should let the user specify the lib program.
  7619. old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  7620. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7621. enable_shared_with_static_runtimes=yes
  7622. ;;
  7623. darwin* | rhapsody*)
  7624. case $host_os in
  7625. rhapsody* | darwin1.[012])
  7626. allow_undefined_flag='${wl}-undefined ${wl}suppress'
  7627. ;;
  7628. *) # Darwin 1.3 on
  7629. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  7630. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  7631. else
  7632. case ${MACOSX_DEPLOYMENT_TARGET} in
  7633. 10.[012])
  7634. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  7635. ;;
  7636. 10.*)
  7637. allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  7638. ;;
  7639. esac
  7640. fi
  7641. ;;
  7642. esac
  7643. archive_cmds_need_lc=no
  7644. hardcode_direct=no
  7645. hardcode_automatic=yes
  7646. hardcode_shlibpath_var=unsupported
  7647. whole_archive_flag_spec=''
  7648. link_all_deplibs=yes
  7649. if test "$GCC" = yes ; then
  7650. output_verbose_link_cmd='echo'
  7651. archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  7652. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  7653. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  7654. archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7655. module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7656. else
  7657. case $cc_basename in
  7658. xlc*)
  7659. output_verbose_link_cmd='echo'
  7660. archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  7661. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  7662. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  7663. archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7664. module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7665. ;;
  7666. *)
  7667. ld_shlibs=no
  7668. ;;
  7669. esac
  7670. fi
  7671. ;;
  7672. dgux*)
  7673. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7674. hardcode_libdir_flag_spec='-L$libdir'
  7675. hardcode_shlibpath_var=no
  7676. ;;
  7677. freebsd1*)
  7678. ld_shlibs=no
  7679. ;;
  7680. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7681. # support. Future versions do this automatically, but an explicit c++rt0.o
  7682. # does not break anything, and helps significantly (at the cost of a little
  7683. # extra space).
  7684. freebsd2.2*)
  7685. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7686. hardcode_libdir_flag_spec='-R$libdir'
  7687. hardcode_direct=yes
  7688. hardcode_shlibpath_var=no
  7689. ;;
  7690. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7691. freebsd2*)
  7692. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7693. hardcode_direct=yes
  7694. hardcode_minus_L=yes
  7695. hardcode_shlibpath_var=no
  7696. ;;
  7697. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7698. freebsd* | dragonfly*)
  7699. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7700. hardcode_libdir_flag_spec='-R$libdir'
  7701. hardcode_direct=yes
  7702. hardcode_shlibpath_var=no
  7703. ;;
  7704. hpux9*)
  7705. if test "$GCC" = yes; then
  7706. archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  7707. else
  7708. archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  7709. fi
  7710. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7711. hardcode_libdir_separator=:
  7712. hardcode_direct=yes
  7713. # hardcode_minus_L: Not really in the search PATH,
  7714. # but as the default location of the library.
  7715. hardcode_minus_L=yes
  7716. export_dynamic_flag_spec='${wl}-E'
  7717. ;;
  7718. hpux10*)
  7719. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7720. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7721. else
  7722. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7723. fi
  7724. if test "$with_gnu_ld" = no; then
  7725. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7726. hardcode_libdir_separator=:
  7727. hardcode_direct=yes
  7728. export_dynamic_flag_spec='${wl}-E'
  7729. # hardcode_minus_L: Not really in the search PATH,
  7730. # but as the default location of the library.
  7731. hardcode_minus_L=yes
  7732. fi
  7733. ;;
  7734. hpux11*)
  7735. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7736. case $host_cpu in
  7737. hppa*64*)
  7738. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7739. ;;
  7740. ia64*)
  7741. archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7742. ;;
  7743. *)
  7744. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7745. ;;
  7746. esac
  7747. else
  7748. case $host_cpu in
  7749. hppa*64*)
  7750. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7751. ;;
  7752. ia64*)
  7753. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7754. ;;
  7755. *)
  7756. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7757. ;;
  7758. esac
  7759. fi
  7760. if test "$with_gnu_ld" = no; then
  7761. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7762. hardcode_libdir_separator=:
  7763. case $host_cpu in
  7764. hppa*64*|ia64*)
  7765. hardcode_libdir_flag_spec_ld='+b $libdir'
  7766. hardcode_direct=no
  7767. hardcode_shlibpath_var=no
  7768. ;;
  7769. *)
  7770. hardcode_direct=yes
  7771. export_dynamic_flag_spec='${wl}-E'
  7772. # hardcode_minus_L: Not really in the search PATH,
  7773. # but as the default location of the library.
  7774. hardcode_minus_L=yes
  7775. ;;
  7776. esac
  7777. fi
  7778. ;;
  7779. irix5* | irix6* | nonstopux*)
  7780. if test "$GCC" = yes; then
  7781. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7782. else
  7783. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  7784. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7785. fi
  7786. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7787. hardcode_libdir_separator=:
  7788. link_all_deplibs=yes
  7789. ;;
  7790. netbsd* | netbsdelf*-gnu)
  7791. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7792. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7793. else
  7794. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7795. fi
  7796. hardcode_libdir_flag_spec='-R$libdir'
  7797. hardcode_direct=yes
  7798. hardcode_shlibpath_var=no
  7799. ;;
  7800. newsos6)
  7801. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7802. hardcode_direct=yes
  7803. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7804. hardcode_libdir_separator=:
  7805. hardcode_shlibpath_var=no
  7806. ;;
  7807. openbsd*)
  7808. hardcode_direct=yes
  7809. hardcode_shlibpath_var=no
  7810. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7811. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7812. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7813. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7814. export_dynamic_flag_spec='${wl}-E'
  7815. else
  7816. case $host_os in
  7817. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  7818. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7819. hardcode_libdir_flag_spec='-R$libdir'
  7820. ;;
  7821. *)
  7822. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7823. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7824. ;;
  7825. esac
  7826. fi
  7827. ;;
  7828. os2*)
  7829. hardcode_libdir_flag_spec='-L$libdir'
  7830. hardcode_minus_L=yes
  7831. allow_undefined_flag=unsupported
  7832. archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  7833. old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  7834. ;;
  7835. osf3*)
  7836. if test "$GCC" = yes; then
  7837. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7838. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7839. else
  7840. allow_undefined_flag=' -expect_unresolved \*'
  7841. archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  7842. fi
  7843. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7844. hardcode_libdir_separator=:
  7845. ;;
  7846. osf4* | osf5*) # as osf3* with the addition of -msym flag
  7847. if test "$GCC" = yes; then
  7848. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7849. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7850. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7851. else
  7852. allow_undefined_flag=' -expect_unresolved \*'
  7853. archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  7854. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  7855. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  7856. # Both c and cxx compiler support -rpath directly
  7857. hardcode_libdir_flag_spec='-rpath $libdir'
  7858. fi
  7859. hardcode_libdir_separator=:
  7860. ;;
  7861. solaris*)
  7862. no_undefined_flag=' -z text'
  7863. if test "$GCC" = yes; then
  7864. wlarc='${wl}'
  7865. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7866. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7867. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  7868. else
  7869. wlarc=''
  7870. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7871. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7872. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  7873. fi
  7874. hardcode_libdir_flag_spec='-R$libdir'
  7875. hardcode_shlibpath_var=no
  7876. case $host_os in
  7877. solaris2.[0-5] | solaris2.[0-5].*) ;;
  7878. *)
  7879. # The compiler driver will combine linker options so we
  7880. # cannot just pass the convience library names through
  7881. # without $wl, iff we do not link with $LD.
  7882. # Luckily, gcc supports the same syntax we need for Sun Studio.
  7883. # Supported since Solaris 2.6 (maybe 2.5.1?)
  7884. case $wlarc in
  7885. '')
  7886. whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  7887. *)
  7888. whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  7889. esac ;;
  7890. esac
  7891. link_all_deplibs=yes
  7892. ;;
  7893. sunos4*)
  7894. if test "x$host_vendor" = xsequent; then
  7895. # Use $CC to link under sequent, because it throws in some extra .o
  7896. # files that make .init and .fini sections work.
  7897. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7898. else
  7899. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7900. fi
  7901. hardcode_libdir_flag_spec='-L$libdir'
  7902. hardcode_direct=yes
  7903. hardcode_minus_L=yes
  7904. hardcode_shlibpath_var=no
  7905. ;;
  7906. sysv4)
  7907. case $host_vendor in
  7908. sni)
  7909. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7910. hardcode_direct=yes # is this really true???
  7911. ;;
  7912. siemens)
  7913. ## LD is ld it makes a PLAMLIB
  7914. ## CC just makes a GrossModule.
  7915. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7916. reload_cmds='$CC -r -o $output$reload_objs'
  7917. hardcode_direct=no
  7918. ;;
  7919. motorola)
  7920. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7921. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  7922. ;;
  7923. esac
  7924. runpath_var='LD_RUN_PATH'
  7925. hardcode_shlibpath_var=no
  7926. ;;
  7927. sysv4.3*)
  7928. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7929. hardcode_shlibpath_var=no
  7930. export_dynamic_flag_spec='-Bexport'
  7931. ;;
  7932. sysv4*MP*)
  7933. if test -d /usr/nec; then
  7934. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7935. hardcode_shlibpath_var=no
  7936. runpath_var=LD_RUN_PATH
  7937. hardcode_runpath_var=yes
  7938. ld_shlibs=yes
  7939. fi
  7940. ;;
  7941. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  7942. no_undefined_flag='${wl}-z,text'
  7943. archive_cmds_need_lc=no
  7944. hardcode_shlibpath_var=no
  7945. runpath_var='LD_RUN_PATH'
  7946. if test "$GCC" = yes; then
  7947. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7948. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7949. else
  7950. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7951. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7952. fi
  7953. ;;
  7954. sysv5* | sco3.2v5* | sco5v6*)
  7955. # Note: We can NOT use -z defs as we might desire, because we do not
  7956. # link with -lc, and that would cause any symbols used from libc to
  7957. # always be unresolved, which means just about no library would
  7958. # ever link correctly. If we're not using GNU ld we use -z text
  7959. # though, which does catch some bad symbols but isn't as heavy-handed
  7960. # as -z defs.
  7961. no_undefined_flag='${wl}-z,text'
  7962. allow_undefined_flag='${wl}-z,nodefs'
  7963. archive_cmds_need_lc=no
  7964. hardcode_shlibpath_var=no
  7965. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  7966. hardcode_libdir_separator=':'
  7967. link_all_deplibs=yes
  7968. export_dynamic_flag_spec='${wl}-Bexport'
  7969. runpath_var='LD_RUN_PATH'
  7970. if test "$GCC" = yes; then
  7971. archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7972. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7973. else
  7974. archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7975. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7976. fi
  7977. ;;
  7978. uts4*)
  7979. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7980. hardcode_libdir_flag_spec='-L$libdir'
  7981. hardcode_shlibpath_var=no
  7982. ;;
  7983. *)
  7984. ld_shlibs=no
  7985. ;;
  7986. esac
  7987. fi
  7988. { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  7989. echo "${ECHO_T}$ld_shlibs" >&6; }
  7990. test "$ld_shlibs" = no && can_build_shared=no
  7991. #
  7992. # Do we need to explicitly link libc?
  7993. #
  7994. case "x$archive_cmds_need_lc" in
  7995. x|xyes)
  7996. # Assume -lc should be added
  7997. archive_cmds_need_lc=yes
  7998. if test "$enable_shared" = yes && test "$GCC" = yes; then
  7999. case $archive_cmds in
  8000. *'~'*)
  8001. # FIXME: we may have to deal with multi-command sequences.
  8002. ;;
  8003. '$CC '*)
  8004. # Test whether the compiler implicitly links with -lc since on some
  8005. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8006. # to ld, don't add -lc before -lgcc.
  8007. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  8008. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  8009. $rm conftest*
  8010. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  8011. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8012. (eval $ac_compile) 2>&5
  8013. ac_status=$?
  8014. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8015. (exit $ac_status); } 2>conftest.err; then
  8016. soname=conftest
  8017. lib=conftest
  8018. libobjs=conftest.$ac_objext
  8019. deplibs=
  8020. wl=$lt_prog_compiler_wl
  8021. pic_flag=$lt_prog_compiler_pic
  8022. compiler_flags=-v
  8023. linker_flags=-v
  8024. verstring=
  8025. output_objdir=.
  8026. libname=conftest
  8027. lt_save_allow_undefined_flag=$allow_undefined_flag
  8028. allow_undefined_flag=
  8029. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  8030. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8031. ac_status=$?
  8032. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8033. (exit $ac_status); }
  8034. then
  8035. archive_cmds_need_lc=no
  8036. else
  8037. archive_cmds_need_lc=yes
  8038. fi
  8039. allow_undefined_flag=$lt_save_allow_undefined_flag
  8040. else
  8041. cat conftest.err 1>&5
  8042. fi
  8043. $rm conftest*
  8044. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  8045. echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
  8046. ;;
  8047. esac
  8048. fi
  8049. ;;
  8050. esac
  8051. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  8052. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  8053. library_names_spec=
  8054. libname_spec='lib$name'
  8055. soname_spec=
  8056. shrext_cmds=".so"
  8057. postinstall_cmds=
  8058. postuninstall_cmds=
  8059. finish_cmds=
  8060. finish_eval=
  8061. shlibpath_var=
  8062. shlibpath_overrides_runpath=unknown
  8063. version_type=none
  8064. dynamic_linker="$host_os ld.so"
  8065. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8066. if test "$GCC" = yes; then
  8067. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8068. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  8069. # if the path contains ";" then we assume it to be the separator
  8070. # otherwise default to the standard path separator (i.e. ":") - it is
  8071. # assumed that no part of a normal pathname contains ";" but that should
  8072. # okay in the real world where ";" in dirpaths is itself problematic.
  8073. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8074. else
  8075. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8076. fi
  8077. else
  8078. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8079. fi
  8080. need_lib_prefix=unknown
  8081. hardcode_into_libs=no
  8082. # when you set need_version to no, make sure it does not cause -set_version
  8083. # flags to be left without arguments
  8084. need_version=unknown
  8085. case $host_os in
  8086. aix3*)
  8087. version_type=linux
  8088. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8089. shlibpath_var=LIBPATH
  8090. # AIX 3 has no versioning support, so we append a major version to the name.
  8091. soname_spec='${libname}${release}${shared_ext}$major'
  8092. ;;
  8093. aix4* | aix5*)
  8094. version_type=linux
  8095. need_lib_prefix=no
  8096. need_version=no
  8097. hardcode_into_libs=yes
  8098. if test "$host_cpu" = ia64; then
  8099. # AIX 5 supports IA64
  8100. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8101. shlibpath_var=LD_LIBRARY_PATH
  8102. else
  8103. # With GCC up to 2.95.x, collect2 would create an import file
  8104. # for dependence libraries. The import file would start with
  8105. # the line `#! .'. This would cause the generated library to
  8106. # depend on `.', always an invalid library. This was fixed in
  8107. # development snapshots of GCC prior to 3.0.
  8108. case $host_os in
  8109. aix4 | aix4.[01] | aix4.[01].*)
  8110. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8111. echo ' yes '
  8112. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  8113. :
  8114. else
  8115. can_build_shared=no
  8116. fi
  8117. ;;
  8118. esac
  8119. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8120. # soname into executable. Probably we can add versioning support to
  8121. # collect2, so additional links can be useful in future.
  8122. if test "$aix_use_runtimelinking" = yes; then
  8123. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8124. # instead of lib<name>.a to let people know that these are not
  8125. # typical AIX shared libraries.
  8126. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8127. else
  8128. # We preserve .a as extension for shared libraries through AIX4.2
  8129. # and later when we are not doing run time linking.
  8130. library_names_spec='${libname}${release}.a $libname.a'
  8131. soname_spec='${libname}${release}${shared_ext}$major'
  8132. fi
  8133. shlibpath_var=LIBPATH
  8134. fi
  8135. ;;
  8136. amigaos*)
  8137. library_names_spec='$libname.ixlibrary $libname.a'
  8138. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8139. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  8140. ;;
  8141. beos*)
  8142. library_names_spec='${libname}${shared_ext}'
  8143. dynamic_linker="$host_os ld.so"
  8144. shlibpath_var=LIBRARY_PATH
  8145. ;;
  8146. bsdi[45]*)
  8147. version_type=linux
  8148. need_version=no
  8149. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8150. soname_spec='${libname}${release}${shared_ext}$major'
  8151. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8152. shlibpath_var=LD_LIBRARY_PATH
  8153. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8154. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8155. # the default ld.so.conf also contains /usr/contrib/lib and
  8156. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8157. # libtool to hard-code these into programs
  8158. ;;
  8159. cygwin* | mingw* | pw32*)
  8160. version_type=windows
  8161. shrext_cmds=".dll"
  8162. need_version=no
  8163. need_lib_prefix=no
  8164. case $GCC,$host_os in
  8165. yes,cygwin* | yes,mingw* | yes,pw32*)
  8166. library_names_spec='$libname.dll.a'
  8167. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8168. postinstall_cmds='base_file=`basename \${file}`~
  8169. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  8170. dldir=$destdir/`dirname \$dlpath`~
  8171. test -d \$dldir || mkdir -p \$dldir~
  8172. $install_prog $dir/$dlname \$dldir/$dlname~
  8173. chmod a+x \$dldir/$dlname'
  8174. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8175. dlpath=$dir/\$dldll~
  8176. $rm \$dlpath'
  8177. shlibpath_overrides_runpath=yes
  8178. case $host_os in
  8179. cygwin*)
  8180. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8181. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8182. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  8183. ;;
  8184. mingw*)
  8185. # MinGW DLLs use traditional 'lib' prefix
  8186. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8187. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8188. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  8189. # It is most probably a Windows format PATH printed by
  8190. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  8191. # path with ; separators, and with drive letters. We can handle the
  8192. # drive letters (cygwin fileutils understands them), so leave them,
  8193. # especially as we might pass files found there to a mingw objdump,
  8194. # which wouldn't understand a cygwinified path. Ahh.
  8195. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8196. else
  8197. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8198. fi
  8199. ;;
  8200. pw32*)
  8201. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8202. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8203. ;;
  8204. esac
  8205. ;;
  8206. *)
  8207. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8208. ;;
  8209. esac
  8210. dynamic_linker='Win32 ld.exe'
  8211. # FIXME: first we should search . and the directory the executable is in
  8212. shlibpath_var=PATH
  8213. ;;
  8214. darwin* | rhapsody*)
  8215. dynamic_linker="$host_os dyld"
  8216. version_type=darwin
  8217. need_lib_prefix=no
  8218. need_version=no
  8219. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8220. soname_spec='${libname}${release}${major}$shared_ext'
  8221. shlibpath_overrides_runpath=yes
  8222. shlibpath_var=DYLD_LIBRARY_PATH
  8223. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8224. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  8225. if test "$GCC" = yes; then
  8226. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  8227. else
  8228. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  8229. fi
  8230. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8231. ;;
  8232. dgux*)
  8233. version_type=linux
  8234. need_lib_prefix=no
  8235. need_version=no
  8236. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8237. soname_spec='${libname}${release}${shared_ext}$major'
  8238. shlibpath_var=LD_LIBRARY_PATH
  8239. ;;
  8240. freebsd1*)
  8241. dynamic_linker=no
  8242. ;;
  8243. freebsd* | dragonfly*)
  8244. # DragonFly does not have aout. When/if they implement a new
  8245. # versioning mechanism, adjust this.
  8246. if test -x /usr/bin/objformat; then
  8247. objformat=`/usr/bin/objformat`
  8248. else
  8249. case $host_os in
  8250. freebsd[123]*) objformat=aout ;;
  8251. *) objformat=elf ;;
  8252. esac
  8253. fi
  8254. version_type=freebsd-$objformat
  8255. case $version_type in
  8256. freebsd-elf*)
  8257. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8258. need_version=no
  8259. need_lib_prefix=no
  8260. ;;
  8261. freebsd-*)
  8262. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8263. need_version=yes
  8264. ;;
  8265. esac
  8266. shlibpath_var=LD_LIBRARY_PATH
  8267. case $host_os in
  8268. freebsd2*)
  8269. shlibpath_overrides_runpath=yes
  8270. ;;
  8271. freebsd3.[01]* | freebsdelf3.[01]*)
  8272. shlibpath_overrides_runpath=yes
  8273. hardcode_into_libs=yes
  8274. ;;
  8275. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8276. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8277. shlibpath_overrides_runpath=no
  8278. hardcode_into_libs=yes
  8279. ;;
  8280. freebsd*) # from 4.6 on
  8281. shlibpath_overrides_runpath=yes
  8282. hardcode_into_libs=yes
  8283. ;;
  8284. esac
  8285. ;;
  8286. gnu*)
  8287. version_type=linux
  8288. need_lib_prefix=no
  8289. need_version=no
  8290. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8291. soname_spec='${libname}${release}${shared_ext}$major'
  8292. shlibpath_var=LD_LIBRARY_PATH
  8293. hardcode_into_libs=yes
  8294. ;;
  8295. hpux9* | hpux10* | hpux11*)
  8296. # Give a soname corresponding to the major version so that dld.sl refuses to
  8297. # link against other versions.
  8298. version_type=sunos
  8299. need_lib_prefix=no
  8300. need_version=no
  8301. case $host_cpu in
  8302. ia64*)
  8303. shrext_cmds='.so'
  8304. hardcode_into_libs=yes
  8305. dynamic_linker="$host_os dld.so"
  8306. shlibpath_var=LD_LIBRARY_PATH
  8307. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8308. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8309. soname_spec='${libname}${release}${shared_ext}$major'
  8310. if test "X$HPUX_IA64_MODE" = X32; then
  8311. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8312. else
  8313. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8314. fi
  8315. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8316. ;;
  8317. hppa*64*)
  8318. shrext_cmds='.sl'
  8319. hardcode_into_libs=yes
  8320. dynamic_linker="$host_os dld.sl"
  8321. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8322. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8323. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8324. soname_spec='${libname}${release}${shared_ext}$major'
  8325. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8326. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8327. ;;
  8328. *)
  8329. shrext_cmds='.sl'
  8330. dynamic_linker="$host_os dld.sl"
  8331. shlibpath_var=SHLIB_PATH
  8332. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8333. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8334. soname_spec='${libname}${release}${shared_ext}$major'
  8335. ;;
  8336. esac
  8337. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  8338. postinstall_cmds='chmod 555 $lib'
  8339. ;;
  8340. interix3*)
  8341. version_type=linux
  8342. need_lib_prefix=no
  8343. need_version=no
  8344. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8345. soname_spec='${libname}${release}${shared_ext}$major'
  8346. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8347. shlibpath_var=LD_LIBRARY_PATH
  8348. shlibpath_overrides_runpath=no
  8349. hardcode_into_libs=yes
  8350. ;;
  8351. irix5* | irix6* | nonstopux*)
  8352. case $host_os in
  8353. nonstopux*) version_type=nonstopux ;;
  8354. *)
  8355. if test "$lt_cv_prog_gnu_ld" = yes; then
  8356. version_type=linux
  8357. else
  8358. version_type=irix
  8359. fi ;;
  8360. esac
  8361. need_lib_prefix=no
  8362. need_version=no
  8363. soname_spec='${libname}${release}${shared_ext}$major'
  8364. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8365. case $host_os in
  8366. irix5* | nonstopux*)
  8367. libsuff= shlibsuff=
  8368. ;;
  8369. *)
  8370. case $LD in # libtool.m4 will add one of these switches to LD
  8371. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8372. libsuff= shlibsuff= libmagic=32-bit;;
  8373. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8374. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8375. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8376. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8377. *) libsuff= shlibsuff= libmagic=never-match;;
  8378. esac
  8379. ;;
  8380. esac
  8381. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8382. shlibpath_overrides_runpath=no
  8383. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8384. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8385. hardcode_into_libs=yes
  8386. ;;
  8387. # No shared lib support for Linux oldld, aout, or coff.
  8388. linux*oldld* | linux*aout* | linux*coff*)
  8389. dynamic_linker=no
  8390. ;;
  8391. # This must be Linux ELF.
  8392. linux* | k*bsd*-gnu)
  8393. version_type=linux
  8394. need_lib_prefix=no
  8395. need_version=no
  8396. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8397. soname_spec='${libname}${release}${shared_ext}$major'
  8398. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8399. shlibpath_var=LD_LIBRARY_PATH
  8400. shlibpath_overrides_runpath=no
  8401. # This implies no fast_install, which is unacceptable.
  8402. # Some rework will be needed to allow for fast_install
  8403. # before this can be enabled.
  8404. hardcode_into_libs=yes
  8405. # Append ld.so.conf contents to the search path
  8406. if test -f /etc/ld.so.conf; then
  8407. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  8408. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8409. fi
  8410. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8411. # powerpc, because MkLinux only supported shared libraries with the
  8412. # GNU dynamic linker. Since this was broken with cross compilers,
  8413. # most powerpc-linux boxes support dynamic linking these days and
  8414. # people can always --disable-shared, the test was removed, and we
  8415. # assume the GNU/Linux dynamic linker is in use.
  8416. dynamic_linker='GNU/Linux ld.so'
  8417. ;;
  8418. netbsdelf*-gnu)
  8419. version_type=linux
  8420. need_lib_prefix=no
  8421. need_version=no
  8422. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8423. soname_spec='${libname}${release}${shared_ext}$major'
  8424. shlibpath_var=LD_LIBRARY_PATH
  8425. shlibpath_overrides_runpath=no
  8426. hardcode_into_libs=yes
  8427. dynamic_linker='NetBSD ld.elf_so'
  8428. ;;
  8429. netbsd*)
  8430. version_type=sunos
  8431. need_lib_prefix=no
  8432. need_version=no
  8433. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  8434. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8435. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8436. dynamic_linker='NetBSD (a.out) ld.so'
  8437. else
  8438. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8439. soname_spec='${libname}${release}${shared_ext}$major'
  8440. dynamic_linker='NetBSD ld.elf_so'
  8441. fi
  8442. shlibpath_var=LD_LIBRARY_PATH
  8443. shlibpath_overrides_runpath=yes
  8444. hardcode_into_libs=yes
  8445. ;;
  8446. newsos6)
  8447. version_type=linux
  8448. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8449. shlibpath_var=LD_LIBRARY_PATH
  8450. shlibpath_overrides_runpath=yes
  8451. ;;
  8452. nto-qnx*)
  8453. version_type=linux
  8454. need_lib_prefix=no
  8455. need_version=no
  8456. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8457. soname_spec='${libname}${release}${shared_ext}$major'
  8458. shlibpath_var=LD_LIBRARY_PATH
  8459. shlibpath_overrides_runpath=yes
  8460. ;;
  8461. openbsd*)
  8462. version_type=sunos
  8463. sys_lib_dlsearch_path_spec="/usr/lib"
  8464. need_lib_prefix=no
  8465. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8466. case $host_os in
  8467. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8468. *) need_version=no ;;
  8469. esac
  8470. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8471. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8472. shlibpath_var=LD_LIBRARY_PATH
  8473. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8474. case $host_os in
  8475. openbsd2.[89] | openbsd2.[89].*)
  8476. shlibpath_overrides_runpath=no
  8477. ;;
  8478. *)
  8479. shlibpath_overrides_runpath=yes
  8480. ;;
  8481. esac
  8482. else
  8483. shlibpath_overrides_runpath=yes
  8484. fi
  8485. ;;
  8486. os2*)
  8487. libname_spec='$name'
  8488. shrext_cmds=".dll"
  8489. need_lib_prefix=no
  8490. library_names_spec='$libname${shared_ext} $libname.a'
  8491. dynamic_linker='OS/2 ld.exe'
  8492. shlibpath_var=LIBPATH
  8493. ;;
  8494. osf3* | osf4* | osf5*)
  8495. version_type=osf
  8496. need_lib_prefix=no
  8497. need_version=no
  8498. soname_spec='${libname}${release}${shared_ext}$major'
  8499. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8500. shlibpath_var=LD_LIBRARY_PATH
  8501. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8502. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8503. ;;
  8504. solaris*)
  8505. version_type=linux
  8506. need_lib_prefix=no
  8507. need_version=no
  8508. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8509. soname_spec='${libname}${release}${shared_ext}$major'
  8510. shlibpath_var=LD_LIBRARY_PATH
  8511. shlibpath_overrides_runpath=yes
  8512. hardcode_into_libs=yes
  8513. # ldd complains unless libraries are executable
  8514. postinstall_cmds='chmod +x $lib'
  8515. ;;
  8516. sunos4*)
  8517. version_type=sunos
  8518. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8519. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8520. shlibpath_var=LD_LIBRARY_PATH
  8521. shlibpath_overrides_runpath=yes
  8522. if test "$with_gnu_ld" = yes; then
  8523. need_lib_prefix=no
  8524. fi
  8525. need_version=yes
  8526. ;;
  8527. sysv4 | sysv4.3*)
  8528. version_type=linux
  8529. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8530. soname_spec='${libname}${release}${shared_ext}$major'
  8531. shlibpath_var=LD_LIBRARY_PATH
  8532. case $host_vendor in
  8533. sni)
  8534. shlibpath_overrides_runpath=no
  8535. need_lib_prefix=no
  8536. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8537. runpath_var=LD_RUN_PATH
  8538. ;;
  8539. siemens)
  8540. need_lib_prefix=no
  8541. ;;
  8542. motorola)
  8543. need_lib_prefix=no
  8544. need_version=no
  8545. shlibpath_overrides_runpath=no
  8546. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8547. ;;
  8548. esac
  8549. ;;
  8550. sysv4*MP*)
  8551. if test -d /usr/nec ;then
  8552. version_type=linux
  8553. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8554. soname_spec='$libname${shared_ext}.$major'
  8555. shlibpath_var=LD_LIBRARY_PATH
  8556. fi
  8557. ;;
  8558. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8559. version_type=freebsd-elf
  8560. need_lib_prefix=no
  8561. need_version=no
  8562. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8563. soname_spec='${libname}${release}${shared_ext}$major'
  8564. shlibpath_var=LD_LIBRARY_PATH
  8565. hardcode_into_libs=yes
  8566. if test "$with_gnu_ld" = yes; then
  8567. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8568. shlibpath_overrides_runpath=no
  8569. else
  8570. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8571. shlibpath_overrides_runpath=yes
  8572. case $host_os in
  8573. sco3.2v5*)
  8574. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8575. ;;
  8576. esac
  8577. fi
  8578. sys_lib_dlsearch_path_spec='/usr/lib'
  8579. ;;
  8580. uts4*)
  8581. version_type=linux
  8582. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8583. soname_spec='${libname}${release}${shared_ext}$major'
  8584. shlibpath_var=LD_LIBRARY_PATH
  8585. ;;
  8586. *)
  8587. dynamic_linker=no
  8588. ;;
  8589. esac
  8590. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  8591. echo "${ECHO_T}$dynamic_linker" >&6; }
  8592. test "$dynamic_linker" = no && can_build_shared=no
  8593. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8594. if test "$GCC" = yes; then
  8595. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8596. fi
  8597. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  8598. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  8599. hardcode_action=
  8600. if test -n "$hardcode_libdir_flag_spec" || \
  8601. test -n "$runpath_var" || \
  8602. test "X$hardcode_automatic" = "Xyes" ; then
  8603. # We can hardcode non-existant directories.
  8604. if test "$hardcode_direct" != no &&
  8605. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8606. # have to relink, otherwise we might link with an installed library
  8607. # when we should be linking with a yet-to-be-installed one
  8608. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8609. test "$hardcode_minus_L" != no; then
  8610. # Linking always hardcodes the temporary library directory.
  8611. hardcode_action=relink
  8612. else
  8613. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8614. hardcode_action=immediate
  8615. fi
  8616. else
  8617. # We cannot hardcode anything, or else we can only hardcode existing
  8618. # directories.
  8619. hardcode_action=unsupported
  8620. fi
  8621. { echo "$as_me:$LINENO: result: $hardcode_action" >&5
  8622. echo "${ECHO_T}$hardcode_action" >&6; }
  8623. if test "$hardcode_action" = relink; then
  8624. # Fast installation is not supported
  8625. enable_fast_install=no
  8626. elif test "$shlibpath_overrides_runpath" = yes ||
  8627. test "$enable_shared" = no; then
  8628. # Fast installation is not necessary
  8629. enable_fast_install=needless
  8630. fi
  8631. striplib=
  8632. old_striplib=
  8633. { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  8634. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  8635. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  8636. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  8637. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  8638. { echo "$as_me:$LINENO: result: yes" >&5
  8639. echo "${ECHO_T}yes" >&6; }
  8640. else
  8641. # FIXME - insert some real tests, host_os isn't really good enough
  8642. case $host_os in
  8643. darwin*)
  8644. if test -n "$STRIP" ; then
  8645. striplib="$STRIP -x"
  8646. { echo "$as_me:$LINENO: result: yes" >&5
  8647. echo "${ECHO_T}yes" >&6; }
  8648. else
  8649. { echo "$as_me:$LINENO: result: no" >&5
  8650. echo "${ECHO_T}no" >&6; }
  8651. fi
  8652. ;;
  8653. *)
  8654. { echo "$as_me:$LINENO: result: no" >&5
  8655. echo "${ECHO_T}no" >&6; }
  8656. ;;
  8657. esac
  8658. fi
  8659. if test "x$enable_dlopen" != xyes; then
  8660. enable_dlopen=unknown
  8661. enable_dlopen_self=unknown
  8662. enable_dlopen_self_static=unknown
  8663. else
  8664. lt_cv_dlopen=no
  8665. lt_cv_dlopen_libs=
  8666. case $host_os in
  8667. beos*)
  8668. lt_cv_dlopen="load_add_on"
  8669. lt_cv_dlopen_libs=
  8670. lt_cv_dlopen_self=yes
  8671. ;;
  8672. mingw* | pw32*)
  8673. lt_cv_dlopen="LoadLibrary"
  8674. lt_cv_dlopen_libs=
  8675. ;;
  8676. cygwin*)
  8677. lt_cv_dlopen="dlopen"
  8678. lt_cv_dlopen_libs=
  8679. ;;
  8680. darwin*)
  8681. # if libdl is installed we need to link against it
  8682. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8683. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  8684. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8685. echo $ECHO_N "(cached) $ECHO_C" >&6
  8686. else
  8687. ac_check_lib_save_LIBS=$LIBS
  8688. LIBS="-ldl $LIBS"
  8689. cat >conftest.$ac_ext <<_ACEOF
  8690. /* confdefs.h. */
  8691. _ACEOF
  8692. cat confdefs.h >>conftest.$ac_ext
  8693. cat >>conftest.$ac_ext <<_ACEOF
  8694. /* end confdefs.h. */
  8695. /* Override any GCC internal prototype to avoid an error.
  8696. Use char because int might match the return type of a GCC
  8697. builtin and then its argument prototype would still apply. */
  8698. #ifdef __cplusplus
  8699. extern "C"
  8700. #endif
  8701. char dlopen ();
  8702. int
  8703. main ()
  8704. {
  8705. return dlopen ();
  8706. ;
  8707. return 0;
  8708. }
  8709. _ACEOF
  8710. rm -f conftest.$ac_objext conftest$ac_exeext
  8711. if { (ac_try="$ac_link"
  8712. case "(($ac_try" in
  8713. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8714. *) ac_try_echo=$ac_try;;
  8715. esac
  8716. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8717. (eval "$ac_link") 2>conftest.er1
  8718. ac_status=$?
  8719. grep -v '^ *+' conftest.er1 >conftest.err
  8720. rm -f conftest.er1
  8721. cat conftest.err >&5
  8722. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8723. (exit $ac_status); } &&
  8724. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8725. { (case "(($ac_try" in
  8726. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8727. *) ac_try_echo=$ac_try;;
  8728. esac
  8729. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8730. (eval "$ac_try") 2>&5
  8731. ac_status=$?
  8732. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8733. (exit $ac_status); }; } &&
  8734. { ac_try='test -s conftest$ac_exeext'
  8735. { (case "(($ac_try" in
  8736. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8737. *) ac_try_echo=$ac_try;;
  8738. esac
  8739. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8740. (eval "$ac_try") 2>&5
  8741. ac_status=$?
  8742. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8743. (exit $ac_status); }; }; then
  8744. ac_cv_lib_dl_dlopen=yes
  8745. else
  8746. echo "$as_me: failed program was:" >&5
  8747. sed 's/^/| /' conftest.$ac_ext >&5
  8748. ac_cv_lib_dl_dlopen=no
  8749. fi
  8750. rm -f conftest.err conftest.$ac_objext \
  8751. conftest$ac_exeext conftest.$ac_ext
  8752. LIBS=$ac_check_lib_save_LIBS
  8753. fi
  8754. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8755. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  8756. if test $ac_cv_lib_dl_dlopen = yes; then
  8757. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8758. else
  8759. lt_cv_dlopen="dyld"
  8760. lt_cv_dlopen_libs=
  8761. lt_cv_dlopen_self=yes
  8762. fi
  8763. ;;
  8764. *)
  8765. { echo "$as_me:$LINENO: checking for shl_load" >&5
  8766. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
  8767. if test "${ac_cv_func_shl_load+set}" = set; then
  8768. echo $ECHO_N "(cached) $ECHO_C" >&6
  8769. else
  8770. cat >conftest.$ac_ext <<_ACEOF
  8771. /* confdefs.h. */
  8772. _ACEOF
  8773. cat confdefs.h >>conftest.$ac_ext
  8774. cat >>conftest.$ac_ext <<_ACEOF
  8775. /* end confdefs.h. */
  8776. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  8777. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8778. #define shl_load innocuous_shl_load
  8779. /* System header to define __stub macros and hopefully few prototypes,
  8780. which can conflict with char shl_load (); below.
  8781. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8782. <limits.h> exists even on freestanding compilers. */
  8783. #ifdef __STDC__
  8784. # include <limits.h>
  8785. #else
  8786. # include <assert.h>
  8787. #endif
  8788. #undef shl_load
  8789. /* Override any GCC internal prototype to avoid an error.
  8790. Use char because int might match the return type of a GCC
  8791. builtin and then its argument prototype would still apply. */
  8792. #ifdef __cplusplus
  8793. extern "C"
  8794. #endif
  8795. char shl_load ();
  8796. /* The GNU C library defines this for functions which it implements
  8797. to always fail with ENOSYS. Some functions are actually named
  8798. something starting with __ and the normal name is an alias. */
  8799. #if defined __stub_shl_load || defined __stub___shl_load
  8800. choke me
  8801. #endif
  8802. int
  8803. main ()
  8804. {
  8805. return shl_load ();
  8806. ;
  8807. return 0;
  8808. }
  8809. _ACEOF
  8810. rm -f conftest.$ac_objext conftest$ac_exeext
  8811. if { (ac_try="$ac_link"
  8812. case "(($ac_try" in
  8813. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8814. *) ac_try_echo=$ac_try;;
  8815. esac
  8816. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8817. (eval "$ac_link") 2>conftest.er1
  8818. ac_status=$?
  8819. grep -v '^ *+' conftest.er1 >conftest.err
  8820. rm -f conftest.er1
  8821. cat conftest.err >&5
  8822. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8823. (exit $ac_status); } &&
  8824. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8825. { (case "(($ac_try" in
  8826. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8827. *) ac_try_echo=$ac_try;;
  8828. esac
  8829. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8830. (eval "$ac_try") 2>&5
  8831. ac_status=$?
  8832. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8833. (exit $ac_status); }; } &&
  8834. { ac_try='test -s conftest$ac_exeext'
  8835. { (case "(($ac_try" in
  8836. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8837. *) ac_try_echo=$ac_try;;
  8838. esac
  8839. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8840. (eval "$ac_try") 2>&5
  8841. ac_status=$?
  8842. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8843. (exit $ac_status); }; }; then
  8844. ac_cv_func_shl_load=yes
  8845. else
  8846. echo "$as_me: failed program was:" >&5
  8847. sed 's/^/| /' conftest.$ac_ext >&5
  8848. ac_cv_func_shl_load=no
  8849. fi
  8850. rm -f conftest.err conftest.$ac_objext \
  8851. conftest$ac_exeext conftest.$ac_ext
  8852. fi
  8853. { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  8854. echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
  8855. if test $ac_cv_func_shl_load = yes; then
  8856. lt_cv_dlopen="shl_load"
  8857. else
  8858. { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  8859. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
  8860. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  8861. echo $ECHO_N "(cached) $ECHO_C" >&6
  8862. else
  8863. ac_check_lib_save_LIBS=$LIBS
  8864. LIBS="-ldld $LIBS"
  8865. cat >conftest.$ac_ext <<_ACEOF
  8866. /* confdefs.h. */
  8867. _ACEOF
  8868. cat confdefs.h >>conftest.$ac_ext
  8869. cat >>conftest.$ac_ext <<_ACEOF
  8870. /* end confdefs.h. */
  8871. /* Override any GCC internal prototype to avoid an error.
  8872. Use char because int might match the return type of a GCC
  8873. builtin and then its argument prototype would still apply. */
  8874. #ifdef __cplusplus
  8875. extern "C"
  8876. #endif
  8877. char shl_load ();
  8878. int
  8879. main ()
  8880. {
  8881. return shl_load ();
  8882. ;
  8883. return 0;
  8884. }
  8885. _ACEOF
  8886. rm -f conftest.$ac_objext conftest$ac_exeext
  8887. if { (ac_try="$ac_link"
  8888. case "(($ac_try" in
  8889. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8890. *) ac_try_echo=$ac_try;;
  8891. esac
  8892. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8893. (eval "$ac_link") 2>conftest.er1
  8894. ac_status=$?
  8895. grep -v '^ *+' conftest.er1 >conftest.err
  8896. rm -f conftest.er1
  8897. cat conftest.err >&5
  8898. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8899. (exit $ac_status); } &&
  8900. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8901. { (case "(($ac_try" in
  8902. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8903. *) ac_try_echo=$ac_try;;
  8904. esac
  8905. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8906. (eval "$ac_try") 2>&5
  8907. ac_status=$?
  8908. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8909. (exit $ac_status); }; } &&
  8910. { ac_try='test -s conftest$ac_exeext'
  8911. { (case "(($ac_try" in
  8912. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8913. *) ac_try_echo=$ac_try;;
  8914. esac
  8915. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8916. (eval "$ac_try") 2>&5
  8917. ac_status=$?
  8918. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8919. (exit $ac_status); }; }; then
  8920. ac_cv_lib_dld_shl_load=yes
  8921. else
  8922. echo "$as_me: failed program was:" >&5
  8923. sed 's/^/| /' conftest.$ac_ext >&5
  8924. ac_cv_lib_dld_shl_load=no
  8925. fi
  8926. rm -f conftest.err conftest.$ac_objext \
  8927. conftest$ac_exeext conftest.$ac_ext
  8928. LIBS=$ac_check_lib_save_LIBS
  8929. fi
  8930. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  8931. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
  8932. if test $ac_cv_lib_dld_shl_load = yes; then
  8933. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  8934. else
  8935. { echo "$as_me:$LINENO: checking for dlopen" >&5
  8936. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
  8937. if test "${ac_cv_func_dlopen+set}" = set; then
  8938. echo $ECHO_N "(cached) $ECHO_C" >&6
  8939. else
  8940. cat >conftest.$ac_ext <<_ACEOF
  8941. /* confdefs.h. */
  8942. _ACEOF
  8943. cat confdefs.h >>conftest.$ac_ext
  8944. cat >>conftest.$ac_ext <<_ACEOF
  8945. /* end confdefs.h. */
  8946. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  8947. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8948. #define dlopen innocuous_dlopen
  8949. /* System header to define __stub macros and hopefully few prototypes,
  8950. which can conflict with char dlopen (); below.
  8951. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8952. <limits.h> exists even on freestanding compilers. */
  8953. #ifdef __STDC__
  8954. # include <limits.h>
  8955. #else
  8956. # include <assert.h>
  8957. #endif
  8958. #undef dlopen
  8959. /* Override any GCC internal prototype to avoid an error.
  8960. Use char because int might match the return type of a GCC
  8961. builtin and then its argument prototype would still apply. */
  8962. #ifdef __cplusplus
  8963. extern "C"
  8964. #endif
  8965. char dlopen ();
  8966. /* The GNU C library defines this for functions which it implements
  8967. to always fail with ENOSYS. Some functions are actually named
  8968. something starting with __ and the normal name is an alias. */
  8969. #if defined __stub_dlopen || defined __stub___dlopen
  8970. choke me
  8971. #endif
  8972. int
  8973. main ()
  8974. {
  8975. return dlopen ();
  8976. ;
  8977. return 0;
  8978. }
  8979. _ACEOF
  8980. rm -f conftest.$ac_objext conftest$ac_exeext
  8981. if { (ac_try="$ac_link"
  8982. case "(($ac_try" in
  8983. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8984. *) ac_try_echo=$ac_try;;
  8985. esac
  8986. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8987. (eval "$ac_link") 2>conftest.er1
  8988. ac_status=$?
  8989. grep -v '^ *+' conftest.er1 >conftest.err
  8990. rm -f conftest.er1
  8991. cat conftest.err >&5
  8992. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8993. (exit $ac_status); } &&
  8994. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8995. { (case "(($ac_try" in
  8996. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8997. *) ac_try_echo=$ac_try;;
  8998. esac
  8999. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9000. (eval "$ac_try") 2>&5
  9001. ac_status=$?
  9002. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9003. (exit $ac_status); }; } &&
  9004. { ac_try='test -s conftest$ac_exeext'
  9005. { (case "(($ac_try" in
  9006. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9007. *) ac_try_echo=$ac_try;;
  9008. esac
  9009. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9010. (eval "$ac_try") 2>&5
  9011. ac_status=$?
  9012. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9013. (exit $ac_status); }; }; then
  9014. ac_cv_func_dlopen=yes
  9015. else
  9016. echo "$as_me: failed program was:" >&5
  9017. sed 's/^/| /' conftest.$ac_ext >&5
  9018. ac_cv_func_dlopen=no
  9019. fi
  9020. rm -f conftest.err conftest.$ac_objext \
  9021. conftest$ac_exeext conftest.$ac_ext
  9022. fi
  9023. { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  9024. echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
  9025. if test $ac_cv_func_dlopen = yes; then
  9026. lt_cv_dlopen="dlopen"
  9027. else
  9028. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  9029. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  9030. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  9031. echo $ECHO_N "(cached) $ECHO_C" >&6
  9032. else
  9033. ac_check_lib_save_LIBS=$LIBS
  9034. LIBS="-ldl $LIBS"
  9035. cat >conftest.$ac_ext <<_ACEOF
  9036. /* confdefs.h. */
  9037. _ACEOF
  9038. cat confdefs.h >>conftest.$ac_ext
  9039. cat >>conftest.$ac_ext <<_ACEOF
  9040. /* end confdefs.h. */
  9041. /* Override any GCC internal prototype to avoid an error.
  9042. Use char because int might match the return type of a GCC
  9043. builtin and then its argument prototype would still apply. */
  9044. #ifdef __cplusplus
  9045. extern "C"
  9046. #endif
  9047. char dlopen ();
  9048. int
  9049. main ()
  9050. {
  9051. return dlopen ();
  9052. ;
  9053. return 0;
  9054. }
  9055. _ACEOF
  9056. rm -f conftest.$ac_objext conftest$ac_exeext
  9057. if { (ac_try="$ac_link"
  9058. case "(($ac_try" in
  9059. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9060. *) ac_try_echo=$ac_try;;
  9061. esac
  9062. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9063. (eval "$ac_link") 2>conftest.er1
  9064. ac_status=$?
  9065. grep -v '^ *+' conftest.er1 >conftest.err
  9066. rm -f conftest.er1
  9067. cat conftest.err >&5
  9068. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9069. (exit $ac_status); } &&
  9070. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9071. { (case "(($ac_try" in
  9072. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9073. *) ac_try_echo=$ac_try;;
  9074. esac
  9075. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9076. (eval "$ac_try") 2>&5
  9077. ac_status=$?
  9078. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9079. (exit $ac_status); }; } &&
  9080. { ac_try='test -s conftest$ac_exeext'
  9081. { (case "(($ac_try" in
  9082. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9083. *) ac_try_echo=$ac_try;;
  9084. esac
  9085. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9086. (eval "$ac_try") 2>&5
  9087. ac_status=$?
  9088. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9089. (exit $ac_status); }; }; then
  9090. ac_cv_lib_dl_dlopen=yes
  9091. else
  9092. echo "$as_me: failed program was:" >&5
  9093. sed 's/^/| /' conftest.$ac_ext >&5
  9094. ac_cv_lib_dl_dlopen=no
  9095. fi
  9096. rm -f conftest.err conftest.$ac_objext \
  9097. conftest$ac_exeext conftest.$ac_ext
  9098. LIBS=$ac_check_lib_save_LIBS
  9099. fi
  9100. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  9101. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  9102. if test $ac_cv_lib_dl_dlopen = yes; then
  9103. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9104. else
  9105. { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  9106. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
  9107. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  9108. echo $ECHO_N "(cached) $ECHO_C" >&6
  9109. else
  9110. ac_check_lib_save_LIBS=$LIBS
  9111. LIBS="-lsvld $LIBS"
  9112. cat >conftest.$ac_ext <<_ACEOF
  9113. /* confdefs.h. */
  9114. _ACEOF
  9115. cat confdefs.h >>conftest.$ac_ext
  9116. cat >>conftest.$ac_ext <<_ACEOF
  9117. /* end confdefs.h. */
  9118. /* Override any GCC internal prototype to avoid an error.
  9119. Use char because int might match the return type of a GCC
  9120. builtin and then its argument prototype would still apply. */
  9121. #ifdef __cplusplus
  9122. extern "C"
  9123. #endif
  9124. char dlopen ();
  9125. int
  9126. main ()
  9127. {
  9128. return dlopen ();
  9129. ;
  9130. return 0;
  9131. }
  9132. _ACEOF
  9133. rm -f conftest.$ac_objext conftest$ac_exeext
  9134. if { (ac_try="$ac_link"
  9135. case "(($ac_try" in
  9136. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9137. *) ac_try_echo=$ac_try;;
  9138. esac
  9139. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9140. (eval "$ac_link") 2>conftest.er1
  9141. ac_status=$?
  9142. grep -v '^ *+' conftest.er1 >conftest.err
  9143. rm -f conftest.er1
  9144. cat conftest.err >&5
  9145. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9146. (exit $ac_status); } &&
  9147. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9148. { (case "(($ac_try" in
  9149. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9150. *) ac_try_echo=$ac_try;;
  9151. esac
  9152. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9153. (eval "$ac_try") 2>&5
  9154. ac_status=$?
  9155. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9156. (exit $ac_status); }; } &&
  9157. { ac_try='test -s conftest$ac_exeext'
  9158. { (case "(($ac_try" in
  9159. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9160. *) ac_try_echo=$ac_try;;
  9161. esac
  9162. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9163. (eval "$ac_try") 2>&5
  9164. ac_status=$?
  9165. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9166. (exit $ac_status); }; }; then
  9167. ac_cv_lib_svld_dlopen=yes
  9168. else
  9169. echo "$as_me: failed program was:" >&5
  9170. sed 's/^/| /' conftest.$ac_ext >&5
  9171. ac_cv_lib_svld_dlopen=no
  9172. fi
  9173. rm -f conftest.err conftest.$ac_objext \
  9174. conftest$ac_exeext conftest.$ac_ext
  9175. LIBS=$ac_check_lib_save_LIBS
  9176. fi
  9177. { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  9178. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
  9179. if test $ac_cv_lib_svld_dlopen = yes; then
  9180. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9181. else
  9182. { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  9183. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
  9184. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  9185. echo $ECHO_N "(cached) $ECHO_C" >&6
  9186. else
  9187. ac_check_lib_save_LIBS=$LIBS
  9188. LIBS="-ldld $LIBS"
  9189. cat >conftest.$ac_ext <<_ACEOF
  9190. /* confdefs.h. */
  9191. _ACEOF
  9192. cat confdefs.h >>conftest.$ac_ext
  9193. cat >>conftest.$ac_ext <<_ACEOF
  9194. /* end confdefs.h. */
  9195. /* Override any GCC internal prototype to avoid an error.
  9196. Use char because int might match the return type of a GCC
  9197. builtin and then its argument prototype would still apply. */
  9198. #ifdef __cplusplus
  9199. extern "C"
  9200. #endif
  9201. char dld_link ();
  9202. int
  9203. main ()
  9204. {
  9205. return dld_link ();
  9206. ;
  9207. return 0;
  9208. }
  9209. _ACEOF
  9210. rm -f conftest.$ac_objext conftest$ac_exeext
  9211. if { (ac_try="$ac_link"
  9212. case "(($ac_try" in
  9213. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9214. *) ac_try_echo=$ac_try;;
  9215. esac
  9216. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9217. (eval "$ac_link") 2>conftest.er1
  9218. ac_status=$?
  9219. grep -v '^ *+' conftest.er1 >conftest.err
  9220. rm -f conftest.er1
  9221. cat conftest.err >&5
  9222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9223. (exit $ac_status); } &&
  9224. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9225. { (case "(($ac_try" in
  9226. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9227. *) ac_try_echo=$ac_try;;
  9228. esac
  9229. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9230. (eval "$ac_try") 2>&5
  9231. ac_status=$?
  9232. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9233. (exit $ac_status); }; } &&
  9234. { ac_try='test -s conftest$ac_exeext'
  9235. { (case "(($ac_try" in
  9236. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9237. *) ac_try_echo=$ac_try;;
  9238. esac
  9239. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9240. (eval "$ac_try") 2>&5
  9241. ac_status=$?
  9242. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9243. (exit $ac_status); }; }; then
  9244. ac_cv_lib_dld_dld_link=yes
  9245. else
  9246. echo "$as_me: failed program was:" >&5
  9247. sed 's/^/| /' conftest.$ac_ext >&5
  9248. ac_cv_lib_dld_dld_link=no
  9249. fi
  9250. rm -f conftest.err conftest.$ac_objext \
  9251. conftest$ac_exeext conftest.$ac_ext
  9252. LIBS=$ac_check_lib_save_LIBS
  9253. fi
  9254. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  9255. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
  9256. if test $ac_cv_lib_dld_dld_link = yes; then
  9257. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  9258. fi
  9259. fi
  9260. fi
  9261. fi
  9262. fi
  9263. fi
  9264. ;;
  9265. esac
  9266. if test "x$lt_cv_dlopen" != xno; then
  9267. enable_dlopen=yes
  9268. else
  9269. enable_dlopen=no
  9270. fi
  9271. case $lt_cv_dlopen in
  9272. dlopen)
  9273. save_CPPFLAGS="$CPPFLAGS"
  9274. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9275. save_LDFLAGS="$LDFLAGS"
  9276. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9277. save_LIBS="$LIBS"
  9278. LIBS="$lt_cv_dlopen_libs $LIBS"
  9279. { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  9280. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
  9281. if test "${lt_cv_dlopen_self+set}" = set; then
  9282. echo $ECHO_N "(cached) $ECHO_C" >&6
  9283. else
  9284. if test "$cross_compiling" = yes; then :
  9285. lt_cv_dlopen_self=cross
  9286. else
  9287. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9288. lt_status=$lt_dlunknown
  9289. cat > conftest.$ac_ext <<EOF
  9290. #line 10269 "configure"
  9291. #include "confdefs.h"
  9292. #if HAVE_DLFCN_H
  9293. #include <dlfcn.h>
  9294. #endif
  9295. #include <stdio.h>
  9296. #ifdef RTLD_GLOBAL
  9297. # define LT_DLGLOBAL RTLD_GLOBAL
  9298. #else
  9299. # ifdef DL_GLOBAL
  9300. # define LT_DLGLOBAL DL_GLOBAL
  9301. # else
  9302. # define LT_DLGLOBAL 0
  9303. # endif
  9304. #endif
  9305. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9306. find out it does not work in some platform. */
  9307. #ifndef LT_DLLAZY_OR_NOW
  9308. # ifdef RTLD_LAZY
  9309. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9310. # else
  9311. # ifdef DL_LAZY
  9312. # define LT_DLLAZY_OR_NOW DL_LAZY
  9313. # else
  9314. # ifdef RTLD_NOW
  9315. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9316. # else
  9317. # ifdef DL_NOW
  9318. # define LT_DLLAZY_OR_NOW DL_NOW
  9319. # else
  9320. # define LT_DLLAZY_OR_NOW 0
  9321. # endif
  9322. # endif
  9323. # endif
  9324. # endif
  9325. #endif
  9326. #ifdef __cplusplus
  9327. extern "C" void exit (int);
  9328. #endif
  9329. void fnord() { int i=42;}
  9330. int main ()
  9331. {
  9332. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9333. int status = $lt_dlunknown;
  9334. if (self)
  9335. {
  9336. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9337. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9338. /* dlclose (self); */
  9339. }
  9340. else
  9341. puts (dlerror ());
  9342. exit (status);
  9343. }
  9344. EOF
  9345. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9346. (eval $ac_link) 2>&5
  9347. ac_status=$?
  9348. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9349. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9350. (./conftest; exit; ) >&5 2>/dev/null
  9351. lt_status=$?
  9352. case x$lt_status in
  9353. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9354. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9355. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9356. esac
  9357. else :
  9358. # compilation failed
  9359. lt_cv_dlopen_self=no
  9360. fi
  9361. fi
  9362. rm -fr conftest*
  9363. fi
  9364. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  9365. echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
  9366. if test "x$lt_cv_dlopen_self" = xyes; then
  9367. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9368. { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  9369. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
  9370. if test "${lt_cv_dlopen_self_static+set}" = set; then
  9371. echo $ECHO_N "(cached) $ECHO_C" >&6
  9372. else
  9373. if test "$cross_compiling" = yes; then :
  9374. lt_cv_dlopen_self_static=cross
  9375. else
  9376. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9377. lt_status=$lt_dlunknown
  9378. cat > conftest.$ac_ext <<EOF
  9379. #line 10369 "configure"
  9380. #include "confdefs.h"
  9381. #if HAVE_DLFCN_H
  9382. #include <dlfcn.h>
  9383. #endif
  9384. #include <stdio.h>
  9385. #ifdef RTLD_GLOBAL
  9386. # define LT_DLGLOBAL RTLD_GLOBAL
  9387. #else
  9388. # ifdef DL_GLOBAL
  9389. # define LT_DLGLOBAL DL_GLOBAL
  9390. # else
  9391. # define LT_DLGLOBAL 0
  9392. # endif
  9393. #endif
  9394. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9395. find out it does not work in some platform. */
  9396. #ifndef LT_DLLAZY_OR_NOW
  9397. # ifdef RTLD_LAZY
  9398. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9399. # else
  9400. # ifdef DL_LAZY
  9401. # define LT_DLLAZY_OR_NOW DL_LAZY
  9402. # else
  9403. # ifdef RTLD_NOW
  9404. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9405. # else
  9406. # ifdef DL_NOW
  9407. # define LT_DLLAZY_OR_NOW DL_NOW
  9408. # else
  9409. # define LT_DLLAZY_OR_NOW 0
  9410. # endif
  9411. # endif
  9412. # endif
  9413. # endif
  9414. #endif
  9415. #ifdef __cplusplus
  9416. extern "C" void exit (int);
  9417. #endif
  9418. void fnord() { int i=42;}
  9419. int main ()
  9420. {
  9421. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9422. int status = $lt_dlunknown;
  9423. if (self)
  9424. {
  9425. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9426. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9427. /* dlclose (self); */
  9428. }
  9429. else
  9430. puts (dlerror ());
  9431. exit (status);
  9432. }
  9433. EOF
  9434. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9435. (eval $ac_link) 2>&5
  9436. ac_status=$?
  9437. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9438. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9439. (./conftest; exit; ) >&5 2>/dev/null
  9440. lt_status=$?
  9441. case x$lt_status in
  9442. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9443. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9444. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9445. esac
  9446. else :
  9447. # compilation failed
  9448. lt_cv_dlopen_self_static=no
  9449. fi
  9450. fi
  9451. rm -fr conftest*
  9452. fi
  9453. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  9454. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
  9455. fi
  9456. CPPFLAGS="$save_CPPFLAGS"
  9457. LDFLAGS="$save_LDFLAGS"
  9458. LIBS="$save_LIBS"
  9459. ;;
  9460. esac
  9461. case $lt_cv_dlopen_self in
  9462. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9463. *) enable_dlopen_self=unknown ;;
  9464. esac
  9465. case $lt_cv_dlopen_self_static in
  9466. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9467. *) enable_dlopen_self_static=unknown ;;
  9468. esac
  9469. fi
  9470. # Report which library types will actually be built
  9471. { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  9472. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  9473. { echo "$as_me:$LINENO: result: $can_build_shared" >&5
  9474. echo "${ECHO_T}$can_build_shared" >&6; }
  9475. { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  9476. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  9477. test "$can_build_shared" = "no" && enable_shared=no
  9478. # On AIX, shared libraries and static libraries use the same namespace, and
  9479. # are all built from PIC.
  9480. case $host_os in
  9481. aix3*)
  9482. test "$enable_shared" = yes && enable_static=no
  9483. if test -n "$RANLIB"; then
  9484. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9485. postinstall_cmds='$RANLIB $lib'
  9486. fi
  9487. ;;
  9488. aix4* | aix5*)
  9489. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9490. test "$enable_shared" = yes && enable_static=no
  9491. fi
  9492. ;;
  9493. esac
  9494. { echo "$as_me:$LINENO: result: $enable_shared" >&5
  9495. echo "${ECHO_T}$enable_shared" >&6; }
  9496. { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  9497. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  9498. # Make sure either enable_shared or enable_static is yes.
  9499. test "$enable_shared" = yes || enable_static=yes
  9500. { echo "$as_me:$LINENO: result: $enable_static" >&5
  9501. echo "${ECHO_T}$enable_static" >&6; }
  9502. # The else clause should only fire when bootstrapping the
  9503. # libtool distribution, otherwise you forgot to ship ltmain.sh
  9504. # with your package, and you will get complaints that there are
  9505. # no rules to generate ltmain.sh.
  9506. if test -f "$ltmain"; then
  9507. # See if we are running on zsh, and set the options which allow our commands through
  9508. # without removal of \ escapes.
  9509. if test -n "${ZSH_VERSION+set}" ; then
  9510. setopt NO_GLOB_SUBST
  9511. fi
  9512. # Now quote all the things that may contain metacharacters while being
  9513. # careful not to overquote the AC_SUBSTed values. We take copies of the
  9514. # variables and quote the copies for generation of the libtool script.
  9515. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  9516. SED SHELL STRIP \
  9517. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  9518. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  9519. deplibs_check_method reload_flag reload_cmds need_locks \
  9520. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  9521. lt_cv_sys_global_symbol_to_c_name_address \
  9522. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  9523. old_postinstall_cmds old_postuninstall_cmds \
  9524. compiler \
  9525. CC \
  9526. LD \
  9527. lt_prog_compiler_wl \
  9528. lt_prog_compiler_pic \
  9529. lt_prog_compiler_static \
  9530. lt_prog_compiler_no_builtin_flag \
  9531. export_dynamic_flag_spec \
  9532. thread_safe_flag_spec \
  9533. whole_archive_flag_spec \
  9534. enable_shared_with_static_runtimes \
  9535. old_archive_cmds \
  9536. old_archive_from_new_cmds \
  9537. predep_objects \
  9538. postdep_objects \
  9539. predeps \
  9540. postdeps \
  9541. compiler_lib_search_path \
  9542. archive_cmds \
  9543. archive_expsym_cmds \
  9544. postinstall_cmds \
  9545. postuninstall_cmds \
  9546. old_archive_from_expsyms_cmds \
  9547. allow_undefined_flag \
  9548. no_undefined_flag \
  9549. export_symbols_cmds \
  9550. hardcode_libdir_flag_spec \
  9551. hardcode_libdir_flag_spec_ld \
  9552. hardcode_libdir_separator \
  9553. hardcode_automatic \
  9554. module_cmds \
  9555. module_expsym_cmds \
  9556. lt_cv_prog_compiler_c_o \
  9557. exclude_expsyms \
  9558. include_expsyms; do
  9559. case $var in
  9560. old_archive_cmds | \
  9561. old_archive_from_new_cmds | \
  9562. archive_cmds | \
  9563. archive_expsym_cmds | \
  9564. module_cmds | \
  9565. module_expsym_cmds | \
  9566. old_archive_from_expsyms_cmds | \
  9567. export_symbols_cmds | \
  9568. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  9569. postinstall_cmds | postuninstall_cmds | \
  9570. old_postinstall_cmds | old_postuninstall_cmds | \
  9571. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  9572. # Double-quote double-evaled strings.
  9573. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  9574. ;;
  9575. *)
  9576. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  9577. ;;
  9578. esac
  9579. done
  9580. case $lt_echo in
  9581. *'\$0 --fallback-echo"')
  9582. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  9583. ;;
  9584. esac
  9585. cfgfile="${ofile}T"
  9586. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  9587. $rm -f "$cfgfile"
  9588. { echo "$as_me:$LINENO: creating $ofile" >&5
  9589. echo "$as_me: creating $ofile" >&6;}
  9590. cat <<__EOF__ >> "$cfgfile"
  9591. #! $SHELL
  9592. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  9593. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  9594. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  9595. #
  9596. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  9597. # Free Software Foundation, Inc.
  9598. #
  9599. # This file is part of GNU Libtool:
  9600. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  9601. #
  9602. # This program is free software; you can redistribute it and/or modify
  9603. # it under the terms of the GNU General Public License as published by
  9604. # the Free Software Foundation; either version 2 of the License, or
  9605. # (at your option) any later version.
  9606. #
  9607. # This program is distributed in the hope that it will be useful, but
  9608. # WITHOUT ANY WARRANTY; without even the implied warranty of
  9609. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  9610. # General Public License for more details.
  9611. #
  9612. # You should have received a copy of the GNU General Public License
  9613. # along with this program; if not, write to the Free Software
  9614. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  9615. #
  9616. # As a special exception to the GNU General Public License, if you
  9617. # distribute this file as part of a program that contains a
  9618. # configuration script generated by Autoconf, you may include it under
  9619. # the same distribution terms that you use for the rest of that program.
  9620. # A sed program that does not truncate output.
  9621. SED=$lt_SED
  9622. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  9623. Xsed="$SED -e 1s/^X//"
  9624. # The HP-UX ksh and POSIX shell print the target directory to stdout
  9625. # if CDPATH is set.
  9626. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  9627. # The names of the tagged configurations supported by this script.
  9628. available_tags=
  9629. # ### BEGIN LIBTOOL CONFIG
  9630. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  9631. # Shell to use when invoking shell scripts.
  9632. SHELL=$lt_SHELL
  9633. # Whether or not to build shared libraries.
  9634. build_libtool_libs=$enable_shared
  9635. # Whether or not to build static libraries.
  9636. build_old_libs=$enable_static
  9637. # Whether or not to add -lc for building shared libraries.
  9638. build_libtool_need_lc=$archive_cmds_need_lc
  9639. # Whether or not to disallow shared libs when runtime libs are static
  9640. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  9641. # Whether or not to optimize for fast installation.
  9642. fast_install=$enable_fast_install
  9643. # The host system.
  9644. host_alias=$host_alias
  9645. host=$host
  9646. host_os=$host_os
  9647. # The build system.
  9648. build_alias=$build_alias
  9649. build=$build
  9650. build_os=$build_os
  9651. # An echo program that does not interpret backslashes.
  9652. echo=$lt_echo
  9653. # The archiver.
  9654. AR=$lt_AR
  9655. AR_FLAGS=$lt_AR_FLAGS
  9656. # A C compiler.
  9657. LTCC=$lt_LTCC
  9658. # LTCC compiler flags.
  9659. LTCFLAGS=$lt_LTCFLAGS
  9660. # A language-specific compiler.
  9661. CC=$lt_compiler
  9662. # Is the compiler the GNU C compiler?
  9663. with_gcc=$GCC
  9664. # An ERE matcher.
  9665. EGREP=$lt_EGREP
  9666. # The linker used to build libraries.
  9667. LD=$lt_LD
  9668. # Whether we need hard or soft links.
  9669. LN_S=$lt_LN_S
  9670. # A BSD-compatible nm program.
  9671. NM=$lt_NM
  9672. # A symbol stripping program
  9673. STRIP=$lt_STRIP
  9674. # Used to examine libraries when file_magic_cmd begins "file"
  9675. MAGIC_CMD=$MAGIC_CMD
  9676. # Used on cygwin: DLL creation program.
  9677. DLLTOOL="$DLLTOOL"
  9678. # Used on cygwin: object dumper.
  9679. OBJDUMP="$OBJDUMP"
  9680. # Used on cygwin: assembler.
  9681. AS="$AS"
  9682. # The name of the directory that contains temporary libtool files.
  9683. objdir=$objdir
  9684. # How to create reloadable object files.
  9685. reload_flag=$lt_reload_flag
  9686. reload_cmds=$lt_reload_cmds
  9687. # How to pass a linker flag through the compiler.
  9688. wl=$lt_lt_prog_compiler_wl
  9689. # Object file suffix (normally "o").
  9690. objext="$ac_objext"
  9691. # Old archive suffix (normally "a").
  9692. libext="$libext"
  9693. # Shared library suffix (normally ".so").
  9694. shrext_cmds='$shrext_cmds'
  9695. # Executable file suffix (normally "").
  9696. exeext="$exeext"
  9697. # Additional compiler flags for building library objects.
  9698. pic_flag=$lt_lt_prog_compiler_pic
  9699. pic_mode=$pic_mode
  9700. # What is the maximum length of a command?
  9701. max_cmd_len=$lt_cv_sys_max_cmd_len
  9702. # Does compiler simultaneously support -c and -o options?
  9703. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  9704. # Must we lock files when doing compilation?
  9705. need_locks=$lt_need_locks
  9706. # Do we need the lib prefix for modules?
  9707. need_lib_prefix=$need_lib_prefix
  9708. # Do we need a version for libraries?
  9709. need_version=$need_version
  9710. # Whether dlopen is supported.
  9711. dlopen_support=$enable_dlopen
  9712. # Whether dlopen of programs is supported.
  9713. dlopen_self=$enable_dlopen_self
  9714. # Whether dlopen of statically linked programs is supported.
  9715. dlopen_self_static=$enable_dlopen_self_static
  9716. # Compiler flag to prevent dynamic linking.
  9717. link_static_flag=$lt_lt_prog_compiler_static
  9718. # Compiler flag to turn off builtin functions.
  9719. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  9720. # Compiler flag to allow reflexive dlopens.
  9721. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  9722. # Compiler flag to generate shared objects directly from archives.
  9723. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  9724. # Compiler flag to generate thread-safe objects.
  9725. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  9726. # Library versioning type.
  9727. version_type=$version_type
  9728. # Format of library name prefix.
  9729. libname_spec=$lt_libname_spec
  9730. # List of archive names. First name is the real one, the rest are links.
  9731. # The last name is the one that the linker finds with -lNAME.
  9732. library_names_spec=$lt_library_names_spec
  9733. # The coded name of the library, if different from the real name.
  9734. soname_spec=$lt_soname_spec
  9735. # Commands used to build and install an old-style archive.
  9736. RANLIB=$lt_RANLIB
  9737. old_archive_cmds=$lt_old_archive_cmds
  9738. old_postinstall_cmds=$lt_old_postinstall_cmds
  9739. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  9740. # Create an old-style archive from a shared archive.
  9741. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  9742. # Create a temporary old-style archive to link instead of a shared archive.
  9743. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  9744. # Commands used to build and install a shared archive.
  9745. archive_cmds=$lt_archive_cmds
  9746. archive_expsym_cmds=$lt_archive_expsym_cmds
  9747. postinstall_cmds=$lt_postinstall_cmds
  9748. postuninstall_cmds=$lt_postuninstall_cmds
  9749. # Commands used to build a loadable module (assumed same as above if empty)
  9750. module_cmds=$lt_module_cmds
  9751. module_expsym_cmds=$lt_module_expsym_cmds
  9752. # Commands to strip libraries.
  9753. old_striplib=$lt_old_striplib
  9754. striplib=$lt_striplib
  9755. # Dependencies to place before the objects being linked to create a
  9756. # shared library.
  9757. predep_objects=$lt_predep_objects
  9758. # Dependencies to place after the objects being linked to create a
  9759. # shared library.
  9760. postdep_objects=$lt_postdep_objects
  9761. # Dependencies to place before the objects being linked to create a
  9762. # shared library.
  9763. predeps=$lt_predeps
  9764. # Dependencies to place after the objects being linked to create a
  9765. # shared library.
  9766. postdeps=$lt_postdeps
  9767. # The library search path used internally by the compiler when linking
  9768. # a shared library.
  9769. compiler_lib_search_path=$lt_compiler_lib_search_path
  9770. # Method to check whether dependent libraries are shared objects.
  9771. deplibs_check_method=$lt_deplibs_check_method
  9772. # Command to use when deplibs_check_method == file_magic.
  9773. file_magic_cmd=$lt_file_magic_cmd
  9774. # Flag that allows shared libraries with undefined symbols to be built.
  9775. allow_undefined_flag=$lt_allow_undefined_flag
  9776. # Flag that forces no undefined symbols.
  9777. no_undefined_flag=$lt_no_undefined_flag
  9778. # Commands used to finish a libtool library installation in a directory.
  9779. finish_cmds=$lt_finish_cmds
  9780. # Same as above, but a single script fragment to be evaled but not shown.
  9781. finish_eval=$lt_finish_eval
  9782. # Take the output of nm and produce a listing of raw symbols and C names.
  9783. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  9784. # Transform the output of nm in a proper C declaration
  9785. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  9786. # Transform the output of nm in a C name address pair
  9787. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  9788. # This is the shared library runtime path variable.
  9789. runpath_var=$runpath_var
  9790. # This is the shared library path variable.
  9791. shlibpath_var=$shlibpath_var
  9792. # Is shlibpath searched before the hard-coded library search path?
  9793. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  9794. # How to hardcode a shared library path into an executable.
  9795. hardcode_action=$hardcode_action
  9796. # Whether we should hardcode library paths into libraries.
  9797. hardcode_into_libs=$hardcode_into_libs
  9798. # Flag to hardcode \$libdir into a binary during linking.
  9799. # This must work even if \$libdir does not exist.
  9800. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  9801. # If ld is used when linking, flag to hardcode \$libdir into
  9802. # a binary during linking. This must work even if \$libdir does
  9803. # not exist.
  9804. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  9805. # Whether we need a single -rpath flag with a separated argument.
  9806. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  9807. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  9808. # resulting binary.
  9809. hardcode_direct=$hardcode_direct
  9810. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  9811. # resulting binary.
  9812. hardcode_minus_L=$hardcode_minus_L
  9813. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  9814. # the resulting binary.
  9815. hardcode_shlibpath_var=$hardcode_shlibpath_var
  9816. # Set to yes if building a shared library automatically hardcodes DIR into the library
  9817. # and all subsequent libraries and executables linked against it.
  9818. hardcode_automatic=$hardcode_automatic
  9819. # Variables whose values should be saved in libtool wrapper scripts and
  9820. # restored at relink time.
  9821. variables_saved_for_relink="$variables_saved_for_relink"
  9822. # Whether libtool must link a program against all its dependency libraries.
  9823. link_all_deplibs=$link_all_deplibs
  9824. # Compile-time system search path for libraries
  9825. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  9826. # Run-time system search path for libraries
  9827. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  9828. # Fix the shell variable \$srcfile for the compiler.
  9829. fix_srcfile_path="$fix_srcfile_path"
  9830. # Set to yes if exported symbols are required.
  9831. always_export_symbols=$always_export_symbols
  9832. # The commands to list exported symbols.
  9833. export_symbols_cmds=$lt_export_symbols_cmds
  9834. # The commands to extract the exported symbol list from a shared archive.
  9835. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  9836. # Symbols that should not be listed in the preloaded symbols.
  9837. exclude_expsyms=$lt_exclude_expsyms
  9838. # Symbols that must always be exported.
  9839. include_expsyms=$lt_include_expsyms
  9840. # ### END LIBTOOL CONFIG
  9841. __EOF__
  9842. case $host_os in
  9843. aix3*)
  9844. cat <<\EOF >> "$cfgfile"
  9845. # AIX sometimes has problems with the GCC collect2 program. For some
  9846. # reason, if we set the COLLECT_NAMES environment variable, the problems
  9847. # vanish in a puff of smoke.
  9848. if test "X${COLLECT_NAMES+set}" != Xset; then
  9849. COLLECT_NAMES=
  9850. export COLLECT_NAMES
  9851. fi
  9852. EOF
  9853. ;;
  9854. esac
  9855. # We use sed instead of cat because bash on DJGPP gets confused if
  9856. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  9857. # text mode, it properly converts lines to CR/LF. This bash problem
  9858. # is reportedly fixed, but why not run on old versions too?
  9859. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  9860. mv -f "$cfgfile" "$ofile" || \
  9861. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  9862. chmod +x "$ofile"
  9863. else
  9864. # If there is no Makefile yet, we rely on a make rule to execute
  9865. # `config.status --recheck' to rerun these tests and create the
  9866. # libtool script then.
  9867. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  9868. if test -f "$ltmain_in"; then
  9869. test -f Makefile && make "$ltmain"
  9870. fi
  9871. fi
  9872. ac_ext=c
  9873. ac_cpp='$CPP $CPPFLAGS'
  9874. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9875. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9876. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9877. CC="$lt_save_CC"
  9878. # Check whether --with-tags was given.
  9879. if test "${with_tags+set}" = set; then
  9880. withval=$with_tags; tagnames="$withval"
  9881. fi
  9882. if test -f "$ltmain" && test -n "$tagnames"; then
  9883. if test ! -f "${ofile}"; then
  9884. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  9885. echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  9886. fi
  9887. if test -z "$LTCC"; then
  9888. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  9889. if test -z "$LTCC"; then
  9890. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  9891. echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  9892. else
  9893. { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  9894. echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  9895. fi
  9896. fi
  9897. if test -z "$LTCFLAGS"; then
  9898. eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  9899. fi
  9900. # Extract list of available tagged configurations in $ofile.
  9901. # Note that this assumes the entire list is on one line.
  9902. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  9903. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  9904. for tagname in $tagnames; do
  9905. IFS="$lt_save_ifs"
  9906. # Check whether tagname contains only valid characters
  9907. case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  9908. "") ;;
  9909. *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  9910. echo "$as_me: error: invalid tag name: $tagname" >&2;}
  9911. { (exit 1); exit 1; }; }
  9912. ;;
  9913. esac
  9914. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  9915. then
  9916. { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  9917. echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  9918. { (exit 1); exit 1; }; }
  9919. fi
  9920. # Update the list of available tags.
  9921. if test -n "$tagname"; then
  9922. echo appending configuration tag \"$tagname\" to $ofile
  9923. case $tagname in
  9924. CXX)
  9925. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  9926. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  9927. (test "X$CXX" != "Xg++"))) ; then
  9928. ac_ext=cpp
  9929. ac_cpp='$CXXCPP $CPPFLAGS'
  9930. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9931. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9932. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9933. archive_cmds_need_lc_CXX=no
  9934. allow_undefined_flag_CXX=
  9935. always_export_symbols_CXX=no
  9936. archive_expsym_cmds_CXX=
  9937. export_dynamic_flag_spec_CXX=
  9938. hardcode_direct_CXX=no
  9939. hardcode_libdir_flag_spec_CXX=
  9940. hardcode_libdir_flag_spec_ld_CXX=
  9941. hardcode_libdir_separator_CXX=
  9942. hardcode_minus_L_CXX=no
  9943. hardcode_shlibpath_var_CXX=unsupported
  9944. hardcode_automatic_CXX=no
  9945. module_cmds_CXX=
  9946. module_expsym_cmds_CXX=
  9947. link_all_deplibs_CXX=unknown
  9948. old_archive_cmds_CXX=$old_archive_cmds
  9949. no_undefined_flag_CXX=
  9950. whole_archive_flag_spec_CXX=
  9951. enable_shared_with_static_runtimes_CXX=no
  9952. # Dependencies to place before and after the object being linked:
  9953. predep_objects_CXX=
  9954. postdep_objects_CXX=
  9955. predeps_CXX=
  9956. postdeps_CXX=
  9957. compiler_lib_search_path_CXX=
  9958. # Source file extension for C++ test sources.
  9959. ac_ext=cpp
  9960. # Object file extension for compiled C++ test sources.
  9961. objext=o
  9962. objext_CXX=$objext
  9963. # Code to be used in simple compile tests
  9964. lt_simple_compile_test_code="int some_variable = 0;\n"
  9965. # Code to be used in simple link tests
  9966. lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
  9967. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9968. # If no C compiler was specified, use CC.
  9969. LTCC=${LTCC-"$CC"}
  9970. # If no C compiler flags were specified, use CFLAGS.
  9971. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  9972. # Allow CC to be a program name with arguments.
  9973. compiler=$CC
  9974. # save warnings/boilerplate of simple test code
  9975. ac_outfile=conftest.$ac_objext
  9976. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  9977. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9978. _lt_compiler_boilerplate=`cat conftest.err`
  9979. $rm conftest*
  9980. ac_outfile=conftest.$ac_objext
  9981. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  9982. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9983. _lt_linker_boilerplate=`cat conftest.err`
  9984. $rm conftest*
  9985. # Allow CC to be a program name with arguments.
  9986. lt_save_CC=$CC
  9987. lt_save_LD=$LD
  9988. lt_save_GCC=$GCC
  9989. GCC=$GXX
  9990. lt_save_with_gnu_ld=$with_gnu_ld
  9991. lt_save_path_LD=$lt_cv_path_LD
  9992. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  9993. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  9994. else
  9995. $as_unset lt_cv_prog_gnu_ld
  9996. fi
  9997. if test -n "${lt_cv_path_LDCXX+set}"; then
  9998. lt_cv_path_LD=$lt_cv_path_LDCXX
  9999. else
  10000. $as_unset lt_cv_path_LD
  10001. fi
  10002. test -z "${LDCXX+set}" || LD=$LDCXX
  10003. CC=${CXX-"c++"}
  10004. compiler=$CC
  10005. compiler_CXX=$CC
  10006. for cc_temp in $compiler""; do
  10007. case $cc_temp in
  10008. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10009. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10010. \-*) ;;
  10011. *) break;;
  10012. esac
  10013. done
  10014. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  10015. # We don't want -fno-exception wen compiling C++ code, so set the
  10016. # no_builtin_flag separately
  10017. if test "$GXX" = yes; then
  10018. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10019. else
  10020. lt_prog_compiler_no_builtin_flag_CXX=
  10021. fi
  10022. if test "$GXX" = yes; then
  10023. # Set up default GNU C++ configuration
  10024. # Check whether --with-gnu-ld was given.
  10025. if test "${with_gnu_ld+set}" = set; then
  10026. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10027. else
  10028. with_gnu_ld=no
  10029. fi
  10030. ac_prog=ld
  10031. if test "$GCC" = yes; then
  10032. # Check if gcc -print-prog-name=ld gives a path.
  10033. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  10034. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  10035. case $host in
  10036. *-*-mingw*)
  10037. # gcc leaves a trailing carriage return which upsets mingw
  10038. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10039. *)
  10040. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10041. esac
  10042. case $ac_prog in
  10043. # Accept absolute paths.
  10044. [\\/]* | ?:[\\/]*)
  10045. re_direlt='/[^/][^/]*/\.\./'
  10046. # Canonicalize the pathname of ld
  10047. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  10048. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  10049. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  10050. done
  10051. test -z "$LD" && LD="$ac_prog"
  10052. ;;
  10053. "")
  10054. # If it fails, then pretend we aren't using GCC.
  10055. ac_prog=ld
  10056. ;;
  10057. *)
  10058. # If it is relative, then search for the first ld in PATH.
  10059. with_gnu_ld=unknown
  10060. ;;
  10061. esac
  10062. elif test "$with_gnu_ld" = yes; then
  10063. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  10064. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  10065. else
  10066. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  10067. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  10068. fi
  10069. if test "${lt_cv_path_LD+set}" = set; then
  10070. echo $ECHO_N "(cached) $ECHO_C" >&6
  10071. else
  10072. if test -z "$LD"; then
  10073. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10074. for ac_dir in $PATH; do
  10075. IFS="$lt_save_ifs"
  10076. test -z "$ac_dir" && ac_dir=.
  10077. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10078. lt_cv_path_LD="$ac_dir/$ac_prog"
  10079. # Check to see if the program is GNU ld. I'd rather use --version,
  10080. # but apparently some variants of GNU ld only accept -v.
  10081. # Break only if it was the GNU/non-GNU ld that we prefer.
  10082. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10083. *GNU* | *'with BFD'*)
  10084. test "$with_gnu_ld" != no && break
  10085. ;;
  10086. *)
  10087. test "$with_gnu_ld" != yes && break
  10088. ;;
  10089. esac
  10090. fi
  10091. done
  10092. IFS="$lt_save_ifs"
  10093. else
  10094. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10095. fi
  10096. fi
  10097. LD="$lt_cv_path_LD"
  10098. if test -n "$LD"; then
  10099. { echo "$as_me:$LINENO: result: $LD" >&5
  10100. echo "${ECHO_T}$LD" >&6; }
  10101. else
  10102. { echo "$as_me:$LINENO: result: no" >&5
  10103. echo "${ECHO_T}no" >&6; }
  10104. fi
  10105. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  10106. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  10107. { (exit 1); exit 1; }; }
  10108. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  10109. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  10110. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  10111. echo $ECHO_N "(cached) $ECHO_C" >&6
  10112. else
  10113. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10114. case `$LD -v 2>&1 </dev/null` in
  10115. *GNU* | *'with BFD'*)
  10116. lt_cv_prog_gnu_ld=yes
  10117. ;;
  10118. *)
  10119. lt_cv_prog_gnu_ld=no
  10120. ;;
  10121. esac
  10122. fi
  10123. { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  10124. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  10125. with_gnu_ld=$lt_cv_prog_gnu_ld
  10126. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10127. # archiving commands below assume that GNU ld is being used.
  10128. if test "$with_gnu_ld" = yes; then
  10129. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10130. archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10131. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10132. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10133. # If archive_cmds runs LD, not CC, wlarc should be empty
  10134. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10135. # investigate it a little bit more. (MM)
  10136. wlarc='${wl}'
  10137. # ancient GNU ld didn't support --whole-archive et. al.
  10138. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  10139. grep 'no-whole-archive' > /dev/null; then
  10140. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10141. else
  10142. whole_archive_flag_spec_CXX=
  10143. fi
  10144. else
  10145. with_gnu_ld=no
  10146. wlarc=
  10147. # A generic and very simple default shared library creation
  10148. # command for GNU C++ for the case where it uses the native
  10149. # linker, instead of GNU ld. If possible, this setting should
  10150. # overridden to take advantage of the native linker features on
  10151. # the platform it is being used on.
  10152. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10153. fi
  10154. # Commands to make compiler produce verbose output that lists
  10155. # what "hidden" libraries, object files and flags are used when
  10156. # linking a shared library.
  10157. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10158. else
  10159. GXX=no
  10160. with_gnu_ld=no
  10161. wlarc=
  10162. fi
  10163. # PORTME: fill in a description of your system's C++ link characteristics
  10164. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10165. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  10166. ld_shlibs_CXX=yes
  10167. case $host_os in
  10168. aix3*)
  10169. # FIXME: insert proper C++ library support
  10170. ld_shlibs_CXX=no
  10171. ;;
  10172. aix4* | aix5*)
  10173. if test "$host_cpu" = ia64; then
  10174. # On IA64, the linker does run time linking by default, so we don't
  10175. # have to do anything special.
  10176. aix_use_runtimelinking=no
  10177. exp_sym_flag='-Bexport'
  10178. no_entry_flag=""
  10179. else
  10180. aix_use_runtimelinking=no
  10181. # Test if we are trying to use run time linking or normal
  10182. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10183. # need to do runtime linking.
  10184. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  10185. for ld_flag in $LDFLAGS; do
  10186. case $ld_flag in
  10187. *-brtl*)
  10188. aix_use_runtimelinking=yes
  10189. break
  10190. ;;
  10191. esac
  10192. done
  10193. ;;
  10194. esac
  10195. exp_sym_flag='-bexport'
  10196. no_entry_flag='-bnoentry'
  10197. fi
  10198. # When large executables or shared objects are built, AIX ld can
  10199. # have problems creating the table of contents. If linking a library
  10200. # or program results in "error TOC overflow" add -mminimal-toc to
  10201. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10202. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10203. archive_cmds_CXX=''
  10204. hardcode_direct_CXX=yes
  10205. hardcode_libdir_separator_CXX=':'
  10206. link_all_deplibs_CXX=yes
  10207. if test "$GXX" = yes; then
  10208. case $host_os in aix4.[012]|aix4.[012].*)
  10209. # We only want to do this on AIX 4.2 and lower, the check
  10210. # below for broken collect2 doesn't work under 4.3+
  10211. collect2name=`${CC} -print-prog-name=collect2`
  10212. if test -f "$collect2name" && \
  10213. strings "$collect2name" | grep resolve_lib_name >/dev/null
  10214. then
  10215. # We have reworked collect2
  10216. hardcode_direct_CXX=yes
  10217. else
  10218. # We have old collect2
  10219. hardcode_direct_CXX=unsupported
  10220. # It fails to find uninstalled libraries when the uninstalled
  10221. # path is not listed in the libpath. Setting hardcode_minus_L
  10222. # to unsupported forces relinking
  10223. hardcode_minus_L_CXX=yes
  10224. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10225. hardcode_libdir_separator_CXX=
  10226. fi
  10227. ;;
  10228. esac
  10229. shared_flag='-shared'
  10230. if test "$aix_use_runtimelinking" = yes; then
  10231. shared_flag="$shared_flag "'${wl}-G'
  10232. fi
  10233. else
  10234. # not using gcc
  10235. if test "$host_cpu" = ia64; then
  10236. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10237. # chokes on -Wl,-G. The following line is correct:
  10238. shared_flag='-G'
  10239. else
  10240. if test "$aix_use_runtimelinking" = yes; then
  10241. shared_flag='${wl}-G'
  10242. else
  10243. shared_flag='${wl}-bM:SRE'
  10244. fi
  10245. fi
  10246. fi
  10247. # It seems that -bexpall does not export symbols beginning with
  10248. # underscore (_), so it is better to generate a list of symbols to export.
  10249. always_export_symbols_CXX=yes
  10250. if test "$aix_use_runtimelinking" = yes; then
  10251. # Warning - without using the other runtime loading flags (-brtl),
  10252. # -berok will link without error, but may produce a broken library.
  10253. allow_undefined_flag_CXX='-berok'
  10254. # Determine the default libpath from the value encoded in an empty executable.
  10255. cat >conftest.$ac_ext <<_ACEOF
  10256. /* confdefs.h. */
  10257. _ACEOF
  10258. cat confdefs.h >>conftest.$ac_ext
  10259. cat >>conftest.$ac_ext <<_ACEOF
  10260. /* end confdefs.h. */
  10261. int
  10262. main ()
  10263. {
  10264. ;
  10265. return 0;
  10266. }
  10267. _ACEOF
  10268. rm -f conftest.$ac_objext conftest$ac_exeext
  10269. if { (ac_try="$ac_link"
  10270. case "(($ac_try" in
  10271. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10272. *) ac_try_echo=$ac_try;;
  10273. esac
  10274. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10275. (eval "$ac_link") 2>conftest.er1
  10276. ac_status=$?
  10277. grep -v '^ *+' conftest.er1 >conftest.err
  10278. rm -f conftest.er1
  10279. cat conftest.err >&5
  10280. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10281. (exit $ac_status); } &&
  10282. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  10283. { (case "(($ac_try" in
  10284. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10285. *) ac_try_echo=$ac_try;;
  10286. esac
  10287. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10288. (eval "$ac_try") 2>&5
  10289. ac_status=$?
  10290. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10291. (exit $ac_status); }; } &&
  10292. { ac_try='test -s conftest$ac_exeext'
  10293. { (case "(($ac_try" in
  10294. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10295. *) ac_try_echo=$ac_try;;
  10296. esac
  10297. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10298. (eval "$ac_try") 2>&5
  10299. ac_status=$?
  10300. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10301. (exit $ac_status); }; }; then
  10302. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  10303. }'`
  10304. # Check for a 64-bit object if we didn't find anything.
  10305. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  10306. }'`; fi
  10307. else
  10308. echo "$as_me: failed program was:" >&5
  10309. sed 's/^/| /' conftest.$ac_ext >&5
  10310. fi
  10311. rm -f conftest.err conftest.$ac_objext \
  10312. conftest$ac_exeext conftest.$ac_ext
  10313. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10314. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10315. archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  10316. else
  10317. if test "$host_cpu" = ia64; then
  10318. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10319. allow_undefined_flag_CXX="-z nodefs"
  10320. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  10321. else
  10322. # Determine the default libpath from the value encoded in an empty executable.
  10323. cat >conftest.$ac_ext <<_ACEOF
  10324. /* confdefs.h. */
  10325. _ACEOF
  10326. cat confdefs.h >>conftest.$ac_ext
  10327. cat >>conftest.$ac_ext <<_ACEOF
  10328. /* end confdefs.h. */
  10329. int
  10330. main ()
  10331. {
  10332. ;
  10333. return 0;
  10334. }
  10335. _ACEOF
  10336. rm -f conftest.$ac_objext conftest$ac_exeext
  10337. if { (ac_try="$ac_link"
  10338. case "(($ac_try" in
  10339. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10340. *) ac_try_echo=$ac_try;;
  10341. esac
  10342. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10343. (eval "$ac_link") 2>conftest.er1
  10344. ac_status=$?
  10345. grep -v '^ *+' conftest.er1 >conftest.err
  10346. rm -f conftest.er1
  10347. cat conftest.err >&5
  10348. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10349. (exit $ac_status); } &&
  10350. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  10351. { (case "(($ac_try" in
  10352. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10353. *) ac_try_echo=$ac_try;;
  10354. esac
  10355. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10356. (eval "$ac_try") 2>&5
  10357. ac_status=$?
  10358. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10359. (exit $ac_status); }; } &&
  10360. { ac_try='test -s conftest$ac_exeext'
  10361. { (case "(($ac_try" in
  10362. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10363. *) ac_try_echo=$ac_try;;
  10364. esac
  10365. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10366. (eval "$ac_try") 2>&5
  10367. ac_status=$?
  10368. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10369. (exit $ac_status); }; }; then
  10370. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  10371. }'`
  10372. # Check for a 64-bit object if we didn't find anything.
  10373. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  10374. }'`; fi
  10375. else
  10376. echo "$as_me: failed program was:" >&5
  10377. sed 's/^/| /' conftest.$ac_ext >&5
  10378. fi
  10379. rm -f conftest.err conftest.$ac_objext \
  10380. conftest$ac_exeext conftest.$ac_ext
  10381. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10382. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10383. # Warning - without using the other run time loading flags,
  10384. # -berok will link without error, but may produce a broken library.
  10385. no_undefined_flag_CXX=' ${wl}-bernotok'
  10386. allow_undefined_flag_CXX=' ${wl}-berok'
  10387. # Exported symbols can be pulled into shared objects from archives
  10388. whole_archive_flag_spec_CXX='$convenience'
  10389. archive_cmds_need_lc_CXX=yes
  10390. # This is similar to how AIX traditionally builds its shared libraries.
  10391. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  10392. fi
  10393. fi
  10394. ;;
  10395. beos*)
  10396. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  10397. allow_undefined_flag_CXX=unsupported
  10398. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  10399. # support --undefined. This deserves some investigation. FIXME
  10400. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10401. else
  10402. ld_shlibs_CXX=no
  10403. fi
  10404. ;;
  10405. chorus*)
  10406. case $cc_basename in
  10407. *)
  10408. # FIXME: insert proper C++ library support
  10409. ld_shlibs_CXX=no
  10410. ;;
  10411. esac
  10412. ;;
  10413. cygwin* | mingw* | pw32*)
  10414. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10415. # as there is no search path for DLLs.
  10416. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10417. allow_undefined_flag_CXX=unsupported
  10418. always_export_symbols_CXX=no
  10419. enable_shared_with_static_runtimes_CXX=yes
  10420. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  10421. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  10422. # If the export-symbols file already is a .def file (1st line
  10423. # is EXPORTS), use it as is; otherwise, prepend...
  10424. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10425. cp $export_symbols $output_objdir/$soname.def;
  10426. else
  10427. echo EXPORTS > $output_objdir/$soname.def;
  10428. cat $export_symbols >> $output_objdir/$soname.def;
  10429. fi~
  10430. $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  10431. else
  10432. ld_shlibs_CXX=no
  10433. fi
  10434. ;;
  10435. darwin* | rhapsody*)
  10436. case $host_os in
  10437. rhapsody* | darwin1.[012])
  10438. allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
  10439. ;;
  10440. *) # Darwin 1.3 on
  10441. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  10442. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  10443. else
  10444. case ${MACOSX_DEPLOYMENT_TARGET} in
  10445. 10.[012])
  10446. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  10447. ;;
  10448. 10.*)
  10449. allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
  10450. ;;
  10451. esac
  10452. fi
  10453. ;;
  10454. esac
  10455. archive_cmds_need_lc_CXX=no
  10456. hardcode_direct_CXX=no
  10457. hardcode_automatic_CXX=yes
  10458. hardcode_shlibpath_var_CXX=unsupported
  10459. whole_archive_flag_spec_CXX=''
  10460. link_all_deplibs_CXX=yes
  10461. if test "$GXX" = yes ; then
  10462. lt_int_apple_cc_single_mod=no
  10463. output_verbose_link_cmd='echo'
  10464. if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  10465. lt_int_apple_cc_single_mod=yes
  10466. fi
  10467. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  10468. archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  10469. else
  10470. archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  10471. fi
  10472. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  10473. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  10474. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  10475. archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10476. else
  10477. archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10478. fi
  10479. module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10480. else
  10481. case $cc_basename in
  10482. xlc*)
  10483. output_verbose_link_cmd='echo'
  10484. archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  10485. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  10486. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  10487. archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10488. module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10489. ;;
  10490. *)
  10491. ld_shlibs_CXX=no
  10492. ;;
  10493. esac
  10494. fi
  10495. ;;
  10496. dgux*)
  10497. case $cc_basename in
  10498. ec++*)
  10499. # FIXME: insert proper C++ library support
  10500. ld_shlibs_CXX=no
  10501. ;;
  10502. ghcx*)
  10503. # Green Hills C++ Compiler
  10504. # FIXME: insert proper C++ library support
  10505. ld_shlibs_CXX=no
  10506. ;;
  10507. *)
  10508. # FIXME: insert proper C++ library support
  10509. ld_shlibs_CXX=no
  10510. ;;
  10511. esac
  10512. ;;
  10513. freebsd[12]*)
  10514. # C++ shared libraries reported to be fairly broken before switch to ELF
  10515. ld_shlibs_CXX=no
  10516. ;;
  10517. freebsd-elf*)
  10518. archive_cmds_need_lc_CXX=no
  10519. ;;
  10520. freebsd* | dragonfly*)
  10521. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10522. # conventions
  10523. ld_shlibs_CXX=yes
  10524. ;;
  10525. gnu*)
  10526. ;;
  10527. hpux9*)
  10528. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10529. hardcode_libdir_separator_CXX=:
  10530. export_dynamic_flag_spec_CXX='${wl}-E'
  10531. hardcode_direct_CXX=yes
  10532. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10533. # but as the default
  10534. # location of the library.
  10535. case $cc_basename in
  10536. CC*)
  10537. # FIXME: insert proper C++ library support
  10538. ld_shlibs_CXX=no
  10539. ;;
  10540. aCC*)
  10541. archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  10542. # Commands to make compiler produce verbose output that lists
  10543. # what "hidden" libraries, object files and flags are used when
  10544. # linking a shared library.
  10545. #
  10546. # There doesn't appear to be a way to prevent this compiler from
  10547. # explicitly linking system object files so we need to strip them
  10548. # from the output so that they don't get included in the library
  10549. # dependencies.
  10550. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  10551. ;;
  10552. *)
  10553. if test "$GXX" = yes; then
  10554. archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  10555. else
  10556. # FIXME: insert proper C++ library support
  10557. ld_shlibs_CXX=no
  10558. fi
  10559. ;;
  10560. esac
  10561. ;;
  10562. hpux10*|hpux11*)
  10563. if test $with_gnu_ld = no; then
  10564. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10565. hardcode_libdir_separator_CXX=:
  10566. case $host_cpu in
  10567. hppa*64*|ia64*)
  10568. hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
  10569. ;;
  10570. *)
  10571. export_dynamic_flag_spec_CXX='${wl}-E'
  10572. ;;
  10573. esac
  10574. fi
  10575. case $host_cpu in
  10576. hppa*64*|ia64*)
  10577. hardcode_direct_CXX=no
  10578. hardcode_shlibpath_var_CXX=no
  10579. ;;
  10580. *)
  10581. hardcode_direct_CXX=yes
  10582. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10583. # but as the default
  10584. # location of the library.
  10585. ;;
  10586. esac
  10587. case $cc_basename in
  10588. CC*)
  10589. # FIXME: insert proper C++ library support
  10590. ld_shlibs_CXX=no
  10591. ;;
  10592. aCC*)
  10593. case $host_cpu in
  10594. hppa*64*)
  10595. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10596. ;;
  10597. ia64*)
  10598. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10599. ;;
  10600. *)
  10601. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10602. ;;
  10603. esac
  10604. # Commands to make compiler produce verbose output that lists
  10605. # what "hidden" libraries, object files and flags are used when
  10606. # linking a shared library.
  10607. #
  10608. # There doesn't appear to be a way to prevent this compiler from
  10609. # explicitly linking system object files so we need to strip them
  10610. # from the output so that they don't get included in the library
  10611. # dependencies.
  10612. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  10613. ;;
  10614. *)
  10615. if test "$GXX" = yes; then
  10616. if test $with_gnu_ld = no; then
  10617. case $host_cpu in
  10618. hppa*64*)
  10619. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10620. ;;
  10621. ia64*)
  10622. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10623. ;;
  10624. *)
  10625. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10626. ;;
  10627. esac
  10628. fi
  10629. else
  10630. # FIXME: insert proper C++ library support
  10631. ld_shlibs_CXX=no
  10632. fi
  10633. ;;
  10634. esac
  10635. ;;
  10636. interix3*)
  10637. hardcode_direct_CXX=no
  10638. hardcode_shlibpath_var_CXX=no
  10639. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10640. export_dynamic_flag_spec_CXX='${wl}-E'
  10641. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10642. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10643. # default) and relocated if they conflict, which is a slow very memory
  10644. # consuming and fragmenting process. To avoid this, we pick a random,
  10645. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10646. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10647. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  10648. archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  10649. ;;
  10650. irix5* | irix6*)
  10651. case $cc_basename in
  10652. CC*)
  10653. # SGI C++
  10654. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  10655. # Archives containing C++ object files must be created using
  10656. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10657. # necessary to make sure instantiated templates are included
  10658. # in the archive.
  10659. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10660. ;;
  10661. *)
  10662. if test "$GXX" = yes; then
  10663. if test "$with_gnu_ld" = no; then
  10664. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10665. else
  10666. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
  10667. fi
  10668. fi
  10669. link_all_deplibs_CXX=yes
  10670. ;;
  10671. esac
  10672. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10673. hardcode_libdir_separator_CXX=:
  10674. ;;
  10675. linux* | k*bsd*-gnu)
  10676. case $cc_basename in
  10677. KCC*)
  10678. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10679. # KCC will only create a shared library if the output file
  10680. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10681. # to its proper name (with version) after linking.
  10682. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  10683. archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  10684. # Commands to make compiler produce verbose output that lists
  10685. # what "hidden" libraries, object files and flags are used when
  10686. # linking a shared library.
  10687. #
  10688. # There doesn't appear to be a way to prevent this compiler from
  10689. # explicitly linking system object files so we need to strip them
  10690. # from the output so that they don't get included in the library
  10691. # dependencies.
  10692. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  10693. hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  10694. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10695. # Archives containing C++ object files must be created using
  10696. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10697. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10698. ;;
  10699. icpc*)
  10700. # Intel C++
  10701. with_gnu_ld=yes
  10702. # version 8.0 and above of icpc choke on multiply defined symbols
  10703. # if we add $predep_objects and $postdep_objects, however 7.1 and
  10704. # earlier do not add the objects themselves.
  10705. case `$CC -V 2>&1` in
  10706. *"Version 7."*)
  10707. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10708. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10709. ;;
  10710. *) # Version 8.0 or newer
  10711. tmp_idyn=
  10712. case $host_cpu in
  10713. ia64*) tmp_idyn=' -i_dynamic';;
  10714. esac
  10715. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10716. archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10717. ;;
  10718. esac
  10719. archive_cmds_need_lc_CXX=no
  10720. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10721. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10722. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10723. ;;
  10724. pgCC*)
  10725. # Portland Group C++ compiler
  10726. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10727. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  10728. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10729. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10730. whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  10731. ;;
  10732. cxx*)
  10733. # Compaq C++
  10734. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10735. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  10736. runpath_var=LD_RUN_PATH
  10737. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10738. hardcode_libdir_separator_CXX=:
  10739. # Commands to make compiler produce verbose output that lists
  10740. # what "hidden" libraries, object files and flags are used when
  10741. # linking a shared library.
  10742. #
  10743. # There doesn't appear to be a way to prevent this compiler from
  10744. # explicitly linking system object files so we need to strip them
  10745. # from the output so that they don't get included in the library
  10746. # dependencies.
  10747. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  10748. ;;
  10749. esac
  10750. ;;
  10751. lynxos*)
  10752. # FIXME: insert proper C++ library support
  10753. ld_shlibs_CXX=no
  10754. ;;
  10755. m88k*)
  10756. # FIXME: insert proper C++ library support
  10757. ld_shlibs_CXX=no
  10758. ;;
  10759. mvs*)
  10760. case $cc_basename in
  10761. cxx*)
  10762. # FIXME: insert proper C++ library support
  10763. ld_shlibs_CXX=no
  10764. ;;
  10765. *)
  10766. # FIXME: insert proper C++ library support
  10767. ld_shlibs_CXX=no
  10768. ;;
  10769. esac
  10770. ;;
  10771. netbsd* | netbsdelf*-gnu)
  10772. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  10773. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10774. wlarc=
  10775. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10776. hardcode_direct_CXX=yes
  10777. hardcode_shlibpath_var_CXX=no
  10778. fi
  10779. # Workaround some broken pre-1.5 toolchains
  10780. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10781. ;;
  10782. openbsd2*)
  10783. # C++ shared libraries are fairly broken
  10784. ld_shlibs_CXX=no
  10785. ;;
  10786. openbsd*)
  10787. hardcode_direct_CXX=yes
  10788. hardcode_shlibpath_var_CXX=no
  10789. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10790. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10791. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10792. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  10793. export_dynamic_flag_spec_CXX='${wl}-E'
  10794. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10795. fi
  10796. output_verbose_link_cmd='echo'
  10797. ;;
  10798. osf3*)
  10799. case $cc_basename in
  10800. KCC*)
  10801. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10802. # KCC will only create a shared library if the output file
  10803. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10804. # to its proper name (with version) after linking.
  10805. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  10806. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10807. hardcode_libdir_separator_CXX=:
  10808. # Archives containing C++ object files must be created using
  10809. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10810. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10811. ;;
  10812. RCC*)
  10813. # Rational C++ 2.4.1
  10814. # FIXME: insert proper C++ library support
  10815. ld_shlibs_CXX=no
  10816. ;;
  10817. cxx*)
  10818. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10819. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  10820. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10821. hardcode_libdir_separator_CXX=:
  10822. # Commands to make compiler produce verbose output that lists
  10823. # what "hidden" libraries, object files and flags are used when
  10824. # linking a shared library.
  10825. #
  10826. # There doesn't appear to be a way to prevent this compiler from
  10827. # explicitly linking system object files so we need to strip them
  10828. # from the output so that they don't get included in the library
  10829. # dependencies.
  10830. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  10831. ;;
  10832. *)
  10833. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10834. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10835. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10836. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10837. hardcode_libdir_separator_CXX=:
  10838. # Commands to make compiler produce verbose output that lists
  10839. # what "hidden" libraries, object files and flags are used when
  10840. # linking a shared library.
  10841. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10842. else
  10843. # FIXME: insert proper C++ library support
  10844. ld_shlibs_CXX=no
  10845. fi
  10846. ;;
  10847. esac
  10848. ;;
  10849. osf4* | osf5*)
  10850. case $cc_basename in
  10851. KCC*)
  10852. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10853. # KCC will only create a shared library if the output file
  10854. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10855. # to its proper name (with version) after linking.
  10856. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  10857. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10858. hardcode_libdir_separator_CXX=:
  10859. # Archives containing C++ object files must be created using
  10860. # the KAI C++ compiler.
  10861. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  10862. ;;
  10863. RCC*)
  10864. # Rational C++ 2.4.1
  10865. # FIXME: insert proper C++ library support
  10866. ld_shlibs_CXX=no
  10867. ;;
  10868. cxx*)
  10869. allow_undefined_flag_CXX=' -expect_unresolved \*'
  10870. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  10871. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10872. echo "-hidden">> $lib.exp~
  10873. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
  10874. $rm $lib.exp'
  10875. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10876. hardcode_libdir_separator_CXX=:
  10877. # Commands to make compiler produce verbose output that lists
  10878. # what "hidden" libraries, object files and flags are used when
  10879. # linking a shared library.
  10880. #
  10881. # There doesn't appear to be a way to prevent this compiler from
  10882. # explicitly linking system object files so we need to strip them
  10883. # from the output so that they don't get included in the library
  10884. # dependencies.
  10885. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  10886. ;;
  10887. *)
  10888. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10889. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10890. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10891. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10892. hardcode_libdir_separator_CXX=:
  10893. # Commands to make compiler produce verbose output that lists
  10894. # what "hidden" libraries, object files and flags are used when
  10895. # linking a shared library.
  10896. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10897. else
  10898. # FIXME: insert proper C++ library support
  10899. ld_shlibs_CXX=no
  10900. fi
  10901. ;;
  10902. esac
  10903. ;;
  10904. psos*)
  10905. # FIXME: insert proper C++ library support
  10906. ld_shlibs_CXX=no
  10907. ;;
  10908. sunos4*)
  10909. case $cc_basename in
  10910. CC*)
  10911. # Sun C++ 4.x
  10912. # FIXME: insert proper C++ library support
  10913. ld_shlibs_CXX=no
  10914. ;;
  10915. lcc*)
  10916. # Lucid
  10917. # FIXME: insert proper C++ library support
  10918. ld_shlibs_CXX=no
  10919. ;;
  10920. *)
  10921. # FIXME: insert proper C++ library support
  10922. ld_shlibs_CXX=no
  10923. ;;
  10924. esac
  10925. ;;
  10926. solaris*)
  10927. case $cc_basename in
  10928. CC*)
  10929. # Sun C++ 4.2, 5.x and Centerline C++
  10930. archive_cmds_need_lc_CXX=yes
  10931. no_undefined_flag_CXX=' -zdefs'
  10932. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10933. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10934. $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10935. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10936. hardcode_shlibpath_var_CXX=no
  10937. case $host_os in
  10938. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10939. *)
  10940. # The C++ compiler is used as linker so we must use $wl
  10941. # flag to pass the commands to the underlying system
  10942. # linker. We must also pass each convience library through
  10943. # to the system linker between allextract/defaultextract.
  10944. # The C++ compiler will combine linker options so we
  10945. # cannot just pass the convience library names through
  10946. # without $wl.
  10947. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10948. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
  10949. ;;
  10950. esac
  10951. link_all_deplibs_CXX=yes
  10952. output_verbose_link_cmd='echo'
  10953. # Archives containing C++ object files must be created using
  10954. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10955. # necessary to make sure instantiated templates are included
  10956. # in the archive.
  10957. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10958. ;;
  10959. gcx*)
  10960. # Green Hills C++ Compiler
  10961. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10962. # The C++ compiler must be used to create the archive.
  10963. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10964. ;;
  10965. *)
  10966. # GNU C++ compiler with Solaris linker
  10967. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10968. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  10969. if $CC --version | grep -v '^2\.7' > /dev/null; then
  10970. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10971. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10972. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10973. # Commands to make compiler produce verbose output that lists
  10974. # what "hidden" libraries, object files and flags are used when
  10975. # linking a shared library.
  10976. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10977. else
  10978. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10979. # platform.
  10980. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10981. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10982. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10983. # Commands to make compiler produce verbose output that lists
  10984. # what "hidden" libraries, object files and flags are used when
  10985. # linking a shared library.
  10986. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10987. fi
  10988. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  10989. fi
  10990. ;;
  10991. esac
  10992. ;;
  10993. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10994. no_undefined_flag_CXX='${wl}-z,text'
  10995. archive_cmds_need_lc_CXX=no
  10996. hardcode_shlibpath_var_CXX=no
  10997. runpath_var='LD_RUN_PATH'
  10998. case $cc_basename in
  10999. CC*)
  11000. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11001. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11002. ;;
  11003. *)
  11004. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11005. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11006. ;;
  11007. esac
  11008. ;;
  11009. sysv5* | sco3.2v5* | sco5v6*)
  11010. # Note: We can NOT use -z defs as we might desire, because we do not
  11011. # link with -lc, and that would cause any symbols used from libc to
  11012. # always be unresolved, which means just about no library would
  11013. # ever link correctly. If we're not using GNU ld we use -z text
  11014. # though, which does catch some bad symbols but isn't as heavy-handed
  11015. # as -z defs.
  11016. # For security reasons, it is highly recommended that you always
  11017. # use absolute paths for naming shared libraries, and exclude the
  11018. # DT_RUNPATH tag from executables and libraries. But doing so
  11019. # requires that you compile everything twice, which is a pain.
  11020. # So that behaviour is only enabled if SCOABSPATH is set to a
  11021. # non-empty value in the environment. Most likely only useful for
  11022. # creating official distributions of packages.
  11023. # This is a hack until libtool officially supports absolute path
  11024. # names for shared libraries.
  11025. no_undefined_flag_CXX='${wl}-z,text'
  11026. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11027. archive_cmds_need_lc_CXX=no
  11028. hardcode_shlibpath_var_CXX=no
  11029. hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  11030. hardcode_libdir_separator_CXX=':'
  11031. link_all_deplibs_CXX=yes
  11032. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11033. runpath_var='LD_RUN_PATH'
  11034. case $cc_basename in
  11035. CC*)
  11036. archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11037. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11038. ;;
  11039. *)
  11040. archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11041. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11042. ;;
  11043. esac
  11044. ;;
  11045. tandem*)
  11046. case $cc_basename in
  11047. NCC*)
  11048. # NonStop-UX NCC 3.20
  11049. # FIXME: insert proper C++ library support
  11050. ld_shlibs_CXX=no
  11051. ;;
  11052. *)
  11053. # FIXME: insert proper C++ library support
  11054. ld_shlibs_CXX=no
  11055. ;;
  11056. esac
  11057. ;;
  11058. vxworks*)
  11059. # FIXME: insert proper C++ library support
  11060. ld_shlibs_CXX=no
  11061. ;;
  11062. *)
  11063. # FIXME: insert proper C++ library support
  11064. ld_shlibs_CXX=no
  11065. ;;
  11066. esac
  11067. { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  11068. echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  11069. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11070. GCC_CXX="$GXX"
  11071. LD_CXX="$LD"
  11072. cat > conftest.$ac_ext <<EOF
  11073. class Foo
  11074. {
  11075. public:
  11076. Foo (void) { a = 0; }
  11077. private:
  11078. int a;
  11079. };
  11080. EOF
  11081. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11082. (eval $ac_compile) 2>&5
  11083. ac_status=$?
  11084. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11085. (exit $ac_status); }; then
  11086. # Parse the compiler output and extract the necessary
  11087. # objects, libraries and library flags.
  11088. # Sentinel used to keep track of whether or not we are before
  11089. # the conftest object file.
  11090. pre_test_object_deps_done=no
  11091. # The `*' in the case matches for architectures that use `case' in
  11092. # $output_verbose_cmd can trigger glob expansion during the loop
  11093. # eval without this substitution.
  11094. output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  11095. for p in `eval $output_verbose_link_cmd`; do
  11096. case $p in
  11097. -L* | -R* | -l*)
  11098. # Some compilers place space between "-{L,R}" and the path.
  11099. # Remove the space.
  11100. if test $p = "-L" \
  11101. || test $p = "-R"; then
  11102. prev=$p
  11103. continue
  11104. else
  11105. prev=
  11106. fi
  11107. if test "$pre_test_object_deps_done" = no; then
  11108. case $p in
  11109. -L* | -R*)
  11110. # Internal compiler library paths should come after those
  11111. # provided the user. The postdeps already come after the
  11112. # user supplied libs so there is no need to process them.
  11113. if test -z "$compiler_lib_search_path_CXX"; then
  11114. compiler_lib_search_path_CXX="${prev}${p}"
  11115. else
  11116. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11117. fi
  11118. ;;
  11119. # The "-l" case would never come before the object being
  11120. # linked, so don't bother handling this case.
  11121. esac
  11122. else
  11123. if test -z "$postdeps_CXX"; then
  11124. postdeps_CXX="${prev}${p}"
  11125. else
  11126. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11127. fi
  11128. fi
  11129. ;;
  11130. *.$objext)
  11131. # This assumes that the test object file only shows up
  11132. # once in the compiler output.
  11133. if test "$p" = "conftest.$objext"; then
  11134. pre_test_object_deps_done=yes
  11135. continue
  11136. fi
  11137. if test "$pre_test_object_deps_done" = no; then
  11138. if test -z "$predep_objects_CXX"; then
  11139. predep_objects_CXX="$p"
  11140. else
  11141. predep_objects_CXX="$predep_objects_CXX $p"
  11142. fi
  11143. else
  11144. if test -z "$postdep_objects_CXX"; then
  11145. postdep_objects_CXX="$p"
  11146. else
  11147. postdep_objects_CXX="$postdep_objects_CXX $p"
  11148. fi
  11149. fi
  11150. ;;
  11151. *) ;; # Ignore the rest.
  11152. esac
  11153. done
  11154. # Clean up.
  11155. rm -f a.out a.exe
  11156. else
  11157. echo "libtool.m4: error: problem compiling CXX test program"
  11158. fi
  11159. $rm -f confest.$objext
  11160. # PORTME: override above test on systems where it is broken
  11161. case $host_os in
  11162. interix3*)
  11163. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11164. # hack all around it, let's just trust "g++" to DTRT.
  11165. predep_objects_CXX=
  11166. postdep_objects_CXX=
  11167. postdeps_CXX=
  11168. ;;
  11169. solaris*)
  11170. case $cc_basename in
  11171. CC*)
  11172. # Adding this requires a known-good setup of shared libraries for
  11173. # Sun compiler versions before 5.6, else PIC objects from an old
  11174. # archive will be linked into the output, leading to subtle bugs.
  11175. postdeps_CXX='-lCstd -lCrun'
  11176. ;;
  11177. esac
  11178. ;;
  11179. esac
  11180. case " $postdeps_CXX " in
  11181. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11182. esac
  11183. lt_prog_compiler_wl_CXX=
  11184. lt_prog_compiler_pic_CXX=
  11185. lt_prog_compiler_static_CXX=
  11186. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  11187. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  11188. # C++ specific cases for pic, static, wl, etc.
  11189. if test "$GXX" = yes; then
  11190. lt_prog_compiler_wl_CXX='-Wl,'
  11191. lt_prog_compiler_static_CXX='-static'
  11192. case $host_os in
  11193. aix*)
  11194. # All AIX code is PIC.
  11195. if test "$host_cpu" = ia64; then
  11196. # AIX 5 now supports IA64 processor
  11197. lt_prog_compiler_static_CXX='-Bstatic'
  11198. fi
  11199. ;;
  11200. amigaos*)
  11201. # FIXME: we need at least 68020 code to build shared libraries, but
  11202. # adding the `-m68020' flag to GCC prevents building anything better,
  11203. # like `-m68040'.
  11204. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11205. ;;
  11206. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11207. # PIC is the default for these OSes.
  11208. ;;
  11209. mingw* | os2* | pw32*)
  11210. # This hack is so that the source file can tell whether it is being
  11211. # built for inclusion in a dll (and should export symbols for example).
  11212. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11213. ;;
  11214. darwin* | rhapsody*)
  11215. # PIC is the default on this platform
  11216. # Common symbols not allowed in MH_DYLIB files
  11217. lt_prog_compiler_pic_CXX='-fno-common'
  11218. ;;
  11219. *djgpp*)
  11220. # DJGPP does not support shared libraries at all
  11221. lt_prog_compiler_pic_CXX=
  11222. ;;
  11223. interix3*)
  11224. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11225. # Instead, we relocate shared libraries at runtime.
  11226. ;;
  11227. sysv4*MP*)
  11228. if test -d /usr/nec; then
  11229. lt_prog_compiler_pic_CXX=-Kconform_pic
  11230. fi
  11231. ;;
  11232. hpux*)
  11233. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11234. # not for PA HP-UX.
  11235. case $host_cpu in
  11236. hppa*64*|ia64*)
  11237. ;;
  11238. *)
  11239. lt_prog_compiler_pic_CXX='-fPIC'
  11240. ;;
  11241. esac
  11242. ;;
  11243. *)
  11244. lt_prog_compiler_pic_CXX='-fPIC'
  11245. ;;
  11246. esac
  11247. else
  11248. case $host_os in
  11249. aix4* | aix5*)
  11250. # All AIX code is PIC.
  11251. if test "$host_cpu" = ia64; then
  11252. # AIX 5 now supports IA64 processor
  11253. lt_prog_compiler_static_CXX='-Bstatic'
  11254. else
  11255. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11256. fi
  11257. ;;
  11258. chorus*)
  11259. case $cc_basename in
  11260. cxch68*)
  11261. # Green Hills C++ Compiler
  11262. # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  11263. ;;
  11264. esac
  11265. ;;
  11266. darwin*)
  11267. # PIC is the default on this platform
  11268. # Common symbols not allowed in MH_DYLIB files
  11269. case $cc_basename in
  11270. xlc*)
  11271. lt_prog_compiler_pic_CXX='-qnocommon'
  11272. lt_prog_compiler_wl_CXX='-Wl,'
  11273. ;;
  11274. esac
  11275. ;;
  11276. dgux*)
  11277. case $cc_basename in
  11278. ec++*)
  11279. lt_prog_compiler_pic_CXX='-KPIC'
  11280. ;;
  11281. ghcx*)
  11282. # Green Hills C++ Compiler
  11283. lt_prog_compiler_pic_CXX='-pic'
  11284. ;;
  11285. *)
  11286. ;;
  11287. esac
  11288. ;;
  11289. freebsd* | dragonfly*)
  11290. # FreeBSD uses GNU C++
  11291. ;;
  11292. hpux9* | hpux10* | hpux11*)
  11293. case $cc_basename in
  11294. CC*)
  11295. lt_prog_compiler_wl_CXX='-Wl,'
  11296. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11297. if test "$host_cpu" != ia64; then
  11298. lt_prog_compiler_pic_CXX='+Z'
  11299. fi
  11300. ;;
  11301. aCC*)
  11302. lt_prog_compiler_wl_CXX='-Wl,'
  11303. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11304. case $host_cpu in
  11305. hppa*64*|ia64*)
  11306. # +Z the default
  11307. ;;
  11308. *)
  11309. lt_prog_compiler_pic_CXX='+Z'
  11310. ;;
  11311. esac
  11312. ;;
  11313. *)
  11314. ;;
  11315. esac
  11316. ;;
  11317. interix*)
  11318. # This is c89, which is MS Visual C++ (no shared libs)
  11319. # Anyone wants to do a port?
  11320. ;;
  11321. irix5* | irix6* | nonstopux*)
  11322. case $cc_basename in
  11323. CC*)
  11324. lt_prog_compiler_wl_CXX='-Wl,'
  11325. lt_prog_compiler_static_CXX='-non_shared'
  11326. # CC pic flag -KPIC is the default.
  11327. ;;
  11328. *)
  11329. ;;
  11330. esac
  11331. ;;
  11332. linux* | k*bsd*-gnu)
  11333. case $cc_basename in
  11334. KCC*)
  11335. # KAI C++ Compiler
  11336. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11337. lt_prog_compiler_pic_CXX='-fPIC'
  11338. ;;
  11339. icpc* | ecpc*)
  11340. # Intel C++
  11341. lt_prog_compiler_wl_CXX='-Wl,'
  11342. lt_prog_compiler_pic_CXX='-KPIC'
  11343. lt_prog_compiler_static_CXX='-static'
  11344. ;;
  11345. pgCC*)
  11346. # Portland Group C++ compiler.
  11347. lt_prog_compiler_wl_CXX='-Wl,'
  11348. lt_prog_compiler_pic_CXX='-fpic'
  11349. lt_prog_compiler_static_CXX='-Bstatic'
  11350. ;;
  11351. cxx*)
  11352. # Compaq C++
  11353. # Make sure the PIC flag is empty. It appears that all Alpha
  11354. # Linux and Compaq Tru64 Unix objects are PIC.
  11355. lt_prog_compiler_pic_CXX=
  11356. lt_prog_compiler_static_CXX='-non_shared'
  11357. ;;
  11358. *)
  11359. ;;
  11360. esac
  11361. ;;
  11362. lynxos*)
  11363. ;;
  11364. m88k*)
  11365. ;;
  11366. mvs*)
  11367. case $cc_basename in
  11368. cxx*)
  11369. lt_prog_compiler_pic_CXX='-W c,exportall'
  11370. ;;
  11371. *)
  11372. ;;
  11373. esac
  11374. ;;
  11375. netbsd* | netbsdelf*-gnu)
  11376. ;;
  11377. osf3* | osf4* | osf5*)
  11378. case $cc_basename in
  11379. KCC*)
  11380. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11381. ;;
  11382. RCC*)
  11383. # Rational C++ 2.4.1
  11384. lt_prog_compiler_pic_CXX='-pic'
  11385. ;;
  11386. cxx*)
  11387. # Digital/Compaq C++
  11388. lt_prog_compiler_wl_CXX='-Wl,'
  11389. # Make sure the PIC flag is empty. It appears that all Alpha
  11390. # Linux and Compaq Tru64 Unix objects are PIC.
  11391. lt_prog_compiler_pic_CXX=
  11392. lt_prog_compiler_static_CXX='-non_shared'
  11393. ;;
  11394. *)
  11395. ;;
  11396. esac
  11397. ;;
  11398. psos*)
  11399. ;;
  11400. solaris*)
  11401. case $cc_basename in
  11402. CC*)
  11403. # Sun C++ 4.2, 5.x and Centerline C++
  11404. lt_prog_compiler_pic_CXX='-KPIC'
  11405. lt_prog_compiler_static_CXX='-Bstatic'
  11406. lt_prog_compiler_wl_CXX='-Qoption ld '
  11407. ;;
  11408. gcx*)
  11409. # Green Hills C++ Compiler
  11410. lt_prog_compiler_pic_CXX='-PIC'
  11411. ;;
  11412. *)
  11413. ;;
  11414. esac
  11415. ;;
  11416. sunos4*)
  11417. case $cc_basename in
  11418. CC*)
  11419. # Sun C++ 4.x
  11420. lt_prog_compiler_pic_CXX='-pic'
  11421. lt_prog_compiler_static_CXX='-Bstatic'
  11422. ;;
  11423. lcc*)
  11424. # Lucid
  11425. lt_prog_compiler_pic_CXX='-pic'
  11426. ;;
  11427. *)
  11428. ;;
  11429. esac
  11430. ;;
  11431. tandem*)
  11432. case $cc_basename in
  11433. NCC*)
  11434. # NonStop-UX NCC 3.20
  11435. lt_prog_compiler_pic_CXX='-KPIC'
  11436. ;;
  11437. *)
  11438. ;;
  11439. esac
  11440. ;;
  11441. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11442. case $cc_basename in
  11443. CC*)
  11444. lt_prog_compiler_wl_CXX='-Wl,'
  11445. lt_prog_compiler_pic_CXX='-KPIC'
  11446. lt_prog_compiler_static_CXX='-Bstatic'
  11447. ;;
  11448. esac
  11449. ;;
  11450. vxworks*)
  11451. ;;
  11452. *)
  11453. lt_prog_compiler_can_build_shared_CXX=no
  11454. ;;
  11455. esac
  11456. fi
  11457. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  11458. echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
  11459. #
  11460. # Check to make sure the PIC flag actually works.
  11461. #
  11462. if test -n "$lt_prog_compiler_pic_CXX"; then
  11463. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11464. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
  11465. if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  11466. echo $ECHO_N "(cached) $ECHO_C" >&6
  11467. else
  11468. lt_prog_compiler_pic_works_CXX=no
  11469. ac_outfile=conftest.$ac_objext
  11470. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  11471. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  11472. # Insert the option either (1) after the last *FLAGS variable, or
  11473. # (2) before a word containing "conftest.", or (3) at the end.
  11474. # Note that $ac_compile itself does not contain backslashes and begins
  11475. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11476. # The option is referenced via a variable to avoid confusing sed.
  11477. lt_compile=`echo "$ac_compile" | $SED \
  11478. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11479. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11480. -e 's:$: $lt_compiler_flag:'`
  11481. (eval echo "\"\$as_me:12737: $lt_compile\"" >&5)
  11482. (eval "$lt_compile" 2>conftest.err)
  11483. ac_status=$?
  11484. cat conftest.err >&5
  11485. echo "$as_me:12741: \$? = $ac_status" >&5
  11486. if (exit $ac_status) && test -s "$ac_outfile"; then
  11487. # The compiler can only warn and ignore the option if not recognized
  11488. # So say no if there are warnings other than the usual output.
  11489. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  11490. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11491. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11492. lt_prog_compiler_pic_works_CXX=yes
  11493. fi
  11494. fi
  11495. $rm conftest*
  11496. fi
  11497. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  11498. echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
  11499. if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  11500. case $lt_prog_compiler_pic_CXX in
  11501. "" | " "*) ;;
  11502. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11503. esac
  11504. else
  11505. lt_prog_compiler_pic_CXX=
  11506. lt_prog_compiler_can_build_shared_CXX=no
  11507. fi
  11508. fi
  11509. case $host_os in
  11510. # For platforms which do not support PIC, -DPIC is meaningless:
  11511. *djgpp*)
  11512. lt_prog_compiler_pic_CXX=
  11513. ;;
  11514. *)
  11515. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11516. ;;
  11517. esac
  11518. #
  11519. # Check to make sure the static flag actually works.
  11520. #
  11521. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  11522. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11523. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  11524. if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
  11525. echo $ECHO_N "(cached) $ECHO_C" >&6
  11526. else
  11527. lt_prog_compiler_static_works_CXX=no
  11528. save_LDFLAGS="$LDFLAGS"
  11529. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11530. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  11531. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11532. # The linker can only warn and ignore the option if not recognized
  11533. # So say no if there are warnings
  11534. if test -s conftest.err; then
  11535. # Append any errors to the config.log.
  11536. cat conftest.err 1>&5
  11537. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  11538. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11539. if diff conftest.exp conftest.er2 >/dev/null; then
  11540. lt_prog_compiler_static_works_CXX=yes
  11541. fi
  11542. else
  11543. lt_prog_compiler_static_works_CXX=yes
  11544. fi
  11545. fi
  11546. $rm conftest*
  11547. LDFLAGS="$save_LDFLAGS"
  11548. fi
  11549. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
  11550. echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
  11551. if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
  11552. :
  11553. else
  11554. lt_prog_compiler_static_CXX=
  11555. fi
  11556. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  11557. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  11558. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  11559. echo $ECHO_N "(cached) $ECHO_C" >&6
  11560. else
  11561. lt_cv_prog_compiler_c_o_CXX=no
  11562. $rm -r conftest 2>/dev/null
  11563. mkdir conftest
  11564. cd conftest
  11565. mkdir out
  11566. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  11567. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11568. # Insert the option either (1) after the last *FLAGS variable, or
  11569. # (2) before a word containing "conftest.", or (3) at the end.
  11570. # Note that $ac_compile itself does not contain backslashes and begins
  11571. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11572. lt_compile=`echo "$ac_compile" | $SED \
  11573. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11574. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11575. -e 's:$: $lt_compiler_flag:'`
  11576. (eval echo "\"\$as_me:12841: $lt_compile\"" >&5)
  11577. (eval "$lt_compile" 2>out/conftest.err)
  11578. ac_status=$?
  11579. cat out/conftest.err >&5
  11580. echo "$as_me:12845: \$? = $ac_status" >&5
  11581. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11582. then
  11583. # The compiler can only warn and ignore the option if not recognized
  11584. # So say no if there are warnings
  11585. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11586. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11587. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11588. lt_cv_prog_compiler_c_o_CXX=yes
  11589. fi
  11590. fi
  11591. chmod u+w . 2>&5
  11592. $rm conftest*
  11593. # SGI C++ compiler will create directory out/ii_files/ for
  11594. # template instantiation
  11595. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  11596. $rm out/* && rmdir out
  11597. cd ..
  11598. rmdir conftest
  11599. $rm conftest*
  11600. fi
  11601. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11602. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11603. hard_links="nottested"
  11604. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  11605. # do not overwrite the value of need_locks provided by the user
  11606. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  11607. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  11608. hard_links=yes
  11609. $rm conftest*
  11610. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11611. touch conftest.a
  11612. ln conftest.a conftest.b 2>&5 || hard_links=no
  11613. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11614. { echo "$as_me:$LINENO: result: $hard_links" >&5
  11615. echo "${ECHO_T}$hard_links" >&6; }
  11616. if test "$hard_links" = no; then
  11617. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11618. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11619. need_locks=warn
  11620. fi
  11621. else
  11622. need_locks=no
  11623. fi
  11624. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11625. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  11626. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11627. case $host_os in
  11628. aix4* | aix5*)
  11629. # If we're using GNU nm, then we don't want the "-C" option.
  11630. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11631. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  11632. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  11633. else
  11634. export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  11635. fi
  11636. ;;
  11637. pw32*)
  11638. export_symbols_cmds_CXX="$ltdll_cmds"
  11639. ;;
  11640. cygwin* | mingw*)
  11641. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  11642. ;;
  11643. linux* | k*bsd*-gnu)
  11644. link_all_deplibs_CXX=no
  11645. ;;
  11646. *)
  11647. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11648. ;;
  11649. esac
  11650. { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  11651. echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  11652. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11653. #
  11654. # Do we need to explicitly link libc?
  11655. #
  11656. case "x$archive_cmds_need_lc_CXX" in
  11657. x|xyes)
  11658. # Assume -lc should be added
  11659. archive_cmds_need_lc_CXX=yes
  11660. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11661. case $archive_cmds_CXX in
  11662. *'~'*)
  11663. # FIXME: we may have to deal with multi-command sequences.
  11664. ;;
  11665. '$CC '*)
  11666. # Test whether the compiler implicitly links with -lc since on some
  11667. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11668. # to ld, don't add -lc before -lgcc.
  11669. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  11670. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  11671. $rm conftest*
  11672. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  11673. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11674. (eval $ac_compile) 2>&5
  11675. ac_status=$?
  11676. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11677. (exit $ac_status); } 2>conftest.err; then
  11678. soname=conftest
  11679. lib=conftest
  11680. libobjs=conftest.$ac_objext
  11681. deplibs=
  11682. wl=$lt_prog_compiler_wl_CXX
  11683. pic_flag=$lt_prog_compiler_pic_CXX
  11684. compiler_flags=-v
  11685. linker_flags=-v
  11686. verstring=
  11687. output_objdir=.
  11688. libname=conftest
  11689. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  11690. allow_undefined_flag_CXX=
  11691. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  11692. (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11693. ac_status=$?
  11694. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11695. (exit $ac_status); }
  11696. then
  11697. archive_cmds_need_lc_CXX=no
  11698. else
  11699. archive_cmds_need_lc_CXX=yes
  11700. fi
  11701. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  11702. else
  11703. cat conftest.err 1>&5
  11704. fi
  11705. $rm conftest*
  11706. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  11707. echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
  11708. ;;
  11709. esac
  11710. fi
  11711. ;;
  11712. esac
  11713. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  11714. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  11715. library_names_spec=
  11716. libname_spec='lib$name'
  11717. soname_spec=
  11718. shrext_cmds=".so"
  11719. postinstall_cmds=
  11720. postuninstall_cmds=
  11721. finish_cmds=
  11722. finish_eval=
  11723. shlibpath_var=
  11724. shlibpath_overrides_runpath=unknown
  11725. version_type=none
  11726. dynamic_linker="$host_os ld.so"
  11727. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11728. if test "$GCC" = yes; then
  11729. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  11730. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  11731. # if the path contains ";" then we assume it to be the separator
  11732. # otherwise default to the standard path separator (i.e. ":") - it is
  11733. # assumed that no part of a normal pathname contains ";" but that should
  11734. # okay in the real world where ";" in dirpaths is itself problematic.
  11735. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11736. else
  11737. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11738. fi
  11739. else
  11740. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  11741. fi
  11742. need_lib_prefix=unknown
  11743. hardcode_into_libs=no
  11744. # when you set need_version to no, make sure it does not cause -set_version
  11745. # flags to be left without arguments
  11746. need_version=unknown
  11747. case $host_os in
  11748. aix3*)
  11749. version_type=linux
  11750. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11751. shlibpath_var=LIBPATH
  11752. # AIX 3 has no versioning support, so we append a major version to the name.
  11753. soname_spec='${libname}${release}${shared_ext}$major'
  11754. ;;
  11755. aix4* | aix5*)
  11756. version_type=linux
  11757. need_lib_prefix=no
  11758. need_version=no
  11759. hardcode_into_libs=yes
  11760. if test "$host_cpu" = ia64; then
  11761. # AIX 5 supports IA64
  11762. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11763. shlibpath_var=LD_LIBRARY_PATH
  11764. else
  11765. # With GCC up to 2.95.x, collect2 would create an import file
  11766. # for dependence libraries. The import file would start with
  11767. # the line `#! .'. This would cause the generated library to
  11768. # depend on `.', always an invalid library. This was fixed in
  11769. # development snapshots of GCC prior to 3.0.
  11770. case $host_os in
  11771. aix4 | aix4.[01] | aix4.[01].*)
  11772. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11773. echo ' yes '
  11774. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  11775. :
  11776. else
  11777. can_build_shared=no
  11778. fi
  11779. ;;
  11780. esac
  11781. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11782. # soname into executable. Probably we can add versioning support to
  11783. # collect2, so additional links can be useful in future.
  11784. if test "$aix_use_runtimelinking" = yes; then
  11785. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11786. # instead of lib<name>.a to let people know that these are not
  11787. # typical AIX shared libraries.
  11788. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11789. else
  11790. # We preserve .a as extension for shared libraries through AIX4.2
  11791. # and later when we are not doing run time linking.
  11792. library_names_spec='${libname}${release}.a $libname.a'
  11793. soname_spec='${libname}${release}${shared_ext}$major'
  11794. fi
  11795. shlibpath_var=LIBPATH
  11796. fi
  11797. ;;
  11798. amigaos*)
  11799. library_names_spec='$libname.ixlibrary $libname.a'
  11800. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11801. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  11802. ;;
  11803. beos*)
  11804. library_names_spec='${libname}${shared_ext}'
  11805. dynamic_linker="$host_os ld.so"
  11806. shlibpath_var=LIBRARY_PATH
  11807. ;;
  11808. bsdi[45]*)
  11809. version_type=linux
  11810. need_version=no
  11811. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11812. soname_spec='${libname}${release}${shared_ext}$major'
  11813. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11814. shlibpath_var=LD_LIBRARY_PATH
  11815. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11816. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11817. # the default ld.so.conf also contains /usr/contrib/lib and
  11818. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11819. # libtool to hard-code these into programs
  11820. ;;
  11821. cygwin* | mingw* | pw32*)
  11822. version_type=windows
  11823. shrext_cmds=".dll"
  11824. need_version=no
  11825. need_lib_prefix=no
  11826. case $GCC,$host_os in
  11827. yes,cygwin* | yes,mingw* | yes,pw32*)
  11828. library_names_spec='$libname.dll.a'
  11829. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11830. postinstall_cmds='base_file=`basename \${file}`~
  11831. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  11832. dldir=$destdir/`dirname \$dlpath`~
  11833. test -d \$dldir || mkdir -p \$dldir~
  11834. $install_prog $dir/$dlname \$dldir/$dlname~
  11835. chmod a+x \$dldir/$dlname'
  11836. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11837. dlpath=$dir/\$dldll~
  11838. $rm \$dlpath'
  11839. shlibpath_overrides_runpath=yes
  11840. case $host_os in
  11841. cygwin*)
  11842. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11843. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11844. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  11845. ;;
  11846. mingw*)
  11847. # MinGW DLLs use traditional 'lib' prefix
  11848. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11849. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  11850. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  11851. # It is most probably a Windows format PATH printed by
  11852. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  11853. # path with ; separators, and with drive letters. We can handle the
  11854. # drive letters (cygwin fileutils understands them), so leave them,
  11855. # especially as we might pass files found there to a mingw objdump,
  11856. # which wouldn't understand a cygwinified path. Ahh.
  11857. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11858. else
  11859. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11860. fi
  11861. ;;
  11862. pw32*)
  11863. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11864. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11865. ;;
  11866. esac
  11867. ;;
  11868. *)
  11869. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  11870. ;;
  11871. esac
  11872. dynamic_linker='Win32 ld.exe'
  11873. # FIXME: first we should search . and the directory the executable is in
  11874. shlibpath_var=PATH
  11875. ;;
  11876. darwin* | rhapsody*)
  11877. dynamic_linker="$host_os dyld"
  11878. version_type=darwin
  11879. need_lib_prefix=no
  11880. need_version=no
  11881. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  11882. soname_spec='${libname}${release}${major}$shared_ext'
  11883. shlibpath_overrides_runpath=yes
  11884. shlibpath_var=DYLD_LIBRARY_PATH
  11885. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  11886. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  11887. if test "$GCC" = yes; then
  11888. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  11889. else
  11890. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  11891. fi
  11892. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11893. ;;
  11894. dgux*)
  11895. version_type=linux
  11896. need_lib_prefix=no
  11897. need_version=no
  11898. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  11899. soname_spec='${libname}${release}${shared_ext}$major'
  11900. shlibpath_var=LD_LIBRARY_PATH
  11901. ;;
  11902. freebsd1*)
  11903. dynamic_linker=no
  11904. ;;
  11905. freebsd* | dragonfly*)
  11906. # DragonFly does not have aout. When/if they implement a new
  11907. # versioning mechanism, adjust this.
  11908. if test -x /usr/bin/objformat; then
  11909. objformat=`/usr/bin/objformat`
  11910. else
  11911. case $host_os in
  11912. freebsd[123]*) objformat=aout ;;
  11913. *) objformat=elf ;;
  11914. esac
  11915. fi
  11916. version_type=freebsd-$objformat
  11917. case $version_type in
  11918. freebsd-elf*)
  11919. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11920. need_version=no
  11921. need_lib_prefix=no
  11922. ;;
  11923. freebsd-*)
  11924. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  11925. need_version=yes
  11926. ;;
  11927. esac
  11928. shlibpath_var=LD_LIBRARY_PATH
  11929. case $host_os in
  11930. freebsd2*)
  11931. shlibpath_overrides_runpath=yes
  11932. ;;
  11933. freebsd3.[01]* | freebsdelf3.[01]*)
  11934. shlibpath_overrides_runpath=yes
  11935. hardcode_into_libs=yes
  11936. ;;
  11937. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  11938. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  11939. shlibpath_overrides_runpath=no
  11940. hardcode_into_libs=yes
  11941. ;;
  11942. freebsd*) # from 4.6 on
  11943. shlibpath_overrides_runpath=yes
  11944. hardcode_into_libs=yes
  11945. ;;
  11946. esac
  11947. ;;
  11948. gnu*)
  11949. version_type=linux
  11950. need_lib_prefix=no
  11951. need_version=no
  11952. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  11953. soname_spec='${libname}${release}${shared_ext}$major'
  11954. shlibpath_var=LD_LIBRARY_PATH
  11955. hardcode_into_libs=yes
  11956. ;;
  11957. hpux9* | hpux10* | hpux11*)
  11958. # Give a soname corresponding to the major version so that dld.sl refuses to
  11959. # link against other versions.
  11960. version_type=sunos
  11961. need_lib_prefix=no
  11962. need_version=no
  11963. case $host_cpu in
  11964. ia64*)
  11965. shrext_cmds='.so'
  11966. hardcode_into_libs=yes
  11967. dynamic_linker="$host_os dld.so"
  11968. shlibpath_var=LD_LIBRARY_PATH
  11969. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11970. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11971. soname_spec='${libname}${release}${shared_ext}$major'
  11972. if test "X$HPUX_IA64_MODE" = X32; then
  11973. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11974. else
  11975. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11976. fi
  11977. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11978. ;;
  11979. hppa*64*)
  11980. shrext_cmds='.sl'
  11981. hardcode_into_libs=yes
  11982. dynamic_linker="$host_os dld.sl"
  11983. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  11984. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11985. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11986. soname_spec='${libname}${release}${shared_ext}$major'
  11987. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  11988. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11989. ;;
  11990. *)
  11991. shrext_cmds='.sl'
  11992. dynamic_linker="$host_os dld.sl"
  11993. shlibpath_var=SHLIB_PATH
  11994. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11995. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11996. soname_spec='${libname}${release}${shared_ext}$major'
  11997. ;;
  11998. esac
  11999. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  12000. postinstall_cmds='chmod 555 $lib'
  12001. ;;
  12002. interix3*)
  12003. version_type=linux
  12004. need_lib_prefix=no
  12005. need_version=no
  12006. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12007. soname_spec='${libname}${release}${shared_ext}$major'
  12008. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12009. shlibpath_var=LD_LIBRARY_PATH
  12010. shlibpath_overrides_runpath=no
  12011. hardcode_into_libs=yes
  12012. ;;
  12013. irix5* | irix6* | nonstopux*)
  12014. case $host_os in
  12015. nonstopux*) version_type=nonstopux ;;
  12016. *)
  12017. if test "$lt_cv_prog_gnu_ld" = yes; then
  12018. version_type=linux
  12019. else
  12020. version_type=irix
  12021. fi ;;
  12022. esac
  12023. need_lib_prefix=no
  12024. need_version=no
  12025. soname_spec='${libname}${release}${shared_ext}$major'
  12026. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12027. case $host_os in
  12028. irix5* | nonstopux*)
  12029. libsuff= shlibsuff=
  12030. ;;
  12031. *)
  12032. case $LD in # libtool.m4 will add one of these switches to LD
  12033. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12034. libsuff= shlibsuff= libmagic=32-bit;;
  12035. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12036. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12037. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12038. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12039. *) libsuff= shlibsuff= libmagic=never-match;;
  12040. esac
  12041. ;;
  12042. esac
  12043. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12044. shlibpath_overrides_runpath=no
  12045. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12046. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12047. hardcode_into_libs=yes
  12048. ;;
  12049. # No shared lib support for Linux oldld, aout, or coff.
  12050. linux*oldld* | linux*aout* | linux*coff*)
  12051. dynamic_linker=no
  12052. ;;
  12053. # This must be Linux ELF.
  12054. linux* | k*bsd*-gnu)
  12055. version_type=linux
  12056. need_lib_prefix=no
  12057. need_version=no
  12058. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12059. soname_spec='${libname}${release}${shared_ext}$major'
  12060. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12061. shlibpath_var=LD_LIBRARY_PATH
  12062. shlibpath_overrides_runpath=no
  12063. # This implies no fast_install, which is unacceptable.
  12064. # Some rework will be needed to allow for fast_install
  12065. # before this can be enabled.
  12066. hardcode_into_libs=yes
  12067. # Append ld.so.conf contents to the search path
  12068. if test -f /etc/ld.so.conf; then
  12069. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  12070. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12071. fi
  12072. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12073. # powerpc, because MkLinux only supported shared libraries with the
  12074. # GNU dynamic linker. Since this was broken with cross compilers,
  12075. # most powerpc-linux boxes support dynamic linking these days and
  12076. # people can always --disable-shared, the test was removed, and we
  12077. # assume the GNU/Linux dynamic linker is in use.
  12078. dynamic_linker='GNU/Linux ld.so'
  12079. ;;
  12080. netbsdelf*-gnu)
  12081. version_type=linux
  12082. need_lib_prefix=no
  12083. need_version=no
  12084. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12085. soname_spec='${libname}${release}${shared_ext}$major'
  12086. shlibpath_var=LD_LIBRARY_PATH
  12087. shlibpath_overrides_runpath=no
  12088. hardcode_into_libs=yes
  12089. dynamic_linker='NetBSD ld.elf_so'
  12090. ;;
  12091. netbsd*)
  12092. version_type=sunos
  12093. need_lib_prefix=no
  12094. need_version=no
  12095. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12096. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12097. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12098. dynamic_linker='NetBSD (a.out) ld.so'
  12099. else
  12100. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12101. soname_spec='${libname}${release}${shared_ext}$major'
  12102. dynamic_linker='NetBSD ld.elf_so'
  12103. fi
  12104. shlibpath_var=LD_LIBRARY_PATH
  12105. shlibpath_overrides_runpath=yes
  12106. hardcode_into_libs=yes
  12107. ;;
  12108. newsos6)
  12109. version_type=linux
  12110. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12111. shlibpath_var=LD_LIBRARY_PATH
  12112. shlibpath_overrides_runpath=yes
  12113. ;;
  12114. nto-qnx*)
  12115. version_type=linux
  12116. need_lib_prefix=no
  12117. need_version=no
  12118. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12119. soname_spec='${libname}${release}${shared_ext}$major'
  12120. shlibpath_var=LD_LIBRARY_PATH
  12121. shlibpath_overrides_runpath=yes
  12122. ;;
  12123. openbsd*)
  12124. version_type=sunos
  12125. sys_lib_dlsearch_path_spec="/usr/lib"
  12126. need_lib_prefix=no
  12127. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12128. case $host_os in
  12129. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12130. *) need_version=no ;;
  12131. esac
  12132. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12133. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12134. shlibpath_var=LD_LIBRARY_PATH
  12135. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12136. case $host_os in
  12137. openbsd2.[89] | openbsd2.[89].*)
  12138. shlibpath_overrides_runpath=no
  12139. ;;
  12140. *)
  12141. shlibpath_overrides_runpath=yes
  12142. ;;
  12143. esac
  12144. else
  12145. shlibpath_overrides_runpath=yes
  12146. fi
  12147. ;;
  12148. os2*)
  12149. libname_spec='$name'
  12150. shrext_cmds=".dll"
  12151. need_lib_prefix=no
  12152. library_names_spec='$libname${shared_ext} $libname.a'
  12153. dynamic_linker='OS/2 ld.exe'
  12154. shlibpath_var=LIBPATH
  12155. ;;
  12156. osf3* | osf4* | osf5*)
  12157. version_type=osf
  12158. need_lib_prefix=no
  12159. need_version=no
  12160. soname_spec='${libname}${release}${shared_ext}$major'
  12161. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12162. shlibpath_var=LD_LIBRARY_PATH
  12163. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12164. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12165. ;;
  12166. solaris*)
  12167. version_type=linux
  12168. need_lib_prefix=no
  12169. need_version=no
  12170. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12171. soname_spec='${libname}${release}${shared_ext}$major'
  12172. shlibpath_var=LD_LIBRARY_PATH
  12173. shlibpath_overrides_runpath=yes
  12174. hardcode_into_libs=yes
  12175. # ldd complains unless libraries are executable
  12176. postinstall_cmds='chmod +x $lib'
  12177. ;;
  12178. sunos4*)
  12179. version_type=sunos
  12180. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12181. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12182. shlibpath_var=LD_LIBRARY_PATH
  12183. shlibpath_overrides_runpath=yes
  12184. if test "$with_gnu_ld" = yes; then
  12185. need_lib_prefix=no
  12186. fi
  12187. need_version=yes
  12188. ;;
  12189. sysv4 | sysv4.3*)
  12190. version_type=linux
  12191. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12192. soname_spec='${libname}${release}${shared_ext}$major'
  12193. shlibpath_var=LD_LIBRARY_PATH
  12194. case $host_vendor in
  12195. sni)
  12196. shlibpath_overrides_runpath=no
  12197. need_lib_prefix=no
  12198. export_dynamic_flag_spec='${wl}-Blargedynsym'
  12199. runpath_var=LD_RUN_PATH
  12200. ;;
  12201. siemens)
  12202. need_lib_prefix=no
  12203. ;;
  12204. motorola)
  12205. need_lib_prefix=no
  12206. need_version=no
  12207. shlibpath_overrides_runpath=no
  12208. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12209. ;;
  12210. esac
  12211. ;;
  12212. sysv4*MP*)
  12213. if test -d /usr/nec ;then
  12214. version_type=linux
  12215. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12216. soname_spec='$libname${shared_ext}.$major'
  12217. shlibpath_var=LD_LIBRARY_PATH
  12218. fi
  12219. ;;
  12220. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12221. version_type=freebsd-elf
  12222. need_lib_prefix=no
  12223. need_version=no
  12224. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12225. soname_spec='${libname}${release}${shared_ext}$major'
  12226. shlibpath_var=LD_LIBRARY_PATH
  12227. hardcode_into_libs=yes
  12228. if test "$with_gnu_ld" = yes; then
  12229. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12230. shlibpath_overrides_runpath=no
  12231. else
  12232. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12233. shlibpath_overrides_runpath=yes
  12234. case $host_os in
  12235. sco3.2v5*)
  12236. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12237. ;;
  12238. esac
  12239. fi
  12240. sys_lib_dlsearch_path_spec='/usr/lib'
  12241. ;;
  12242. uts4*)
  12243. version_type=linux
  12244. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12245. soname_spec='${libname}${release}${shared_ext}$major'
  12246. shlibpath_var=LD_LIBRARY_PATH
  12247. ;;
  12248. *)
  12249. dynamic_linker=no
  12250. ;;
  12251. esac
  12252. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  12253. echo "${ECHO_T}$dynamic_linker" >&6; }
  12254. test "$dynamic_linker" = no && can_build_shared=no
  12255. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12256. if test "$GCC" = yes; then
  12257. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12258. fi
  12259. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  12260. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  12261. hardcode_action_CXX=
  12262. if test -n "$hardcode_libdir_flag_spec_CXX" || \
  12263. test -n "$runpath_var_CXX" || \
  12264. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  12265. # We can hardcode non-existant directories.
  12266. if test "$hardcode_direct_CXX" != no &&
  12267. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12268. # have to relink, otherwise we might link with an installed library
  12269. # when we should be linking with a yet-to-be-installed one
  12270. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  12271. test "$hardcode_minus_L_CXX" != no; then
  12272. # Linking always hardcodes the temporary library directory.
  12273. hardcode_action_CXX=relink
  12274. else
  12275. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12276. hardcode_action_CXX=immediate
  12277. fi
  12278. else
  12279. # We cannot hardcode anything, or else we can only hardcode existing
  12280. # directories.
  12281. hardcode_action_CXX=unsupported
  12282. fi
  12283. { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  12284. echo "${ECHO_T}$hardcode_action_CXX" >&6; }
  12285. if test "$hardcode_action_CXX" = relink; then
  12286. # Fast installation is not supported
  12287. enable_fast_install=no
  12288. elif test "$shlibpath_overrides_runpath" = yes ||
  12289. test "$enable_shared" = no; then
  12290. # Fast installation is not necessary
  12291. enable_fast_install=needless
  12292. fi
  12293. # The else clause should only fire when bootstrapping the
  12294. # libtool distribution, otherwise you forgot to ship ltmain.sh
  12295. # with your package, and you will get complaints that there are
  12296. # no rules to generate ltmain.sh.
  12297. if test -f "$ltmain"; then
  12298. # See if we are running on zsh, and set the options which allow our commands through
  12299. # without removal of \ escapes.
  12300. if test -n "${ZSH_VERSION+set}" ; then
  12301. setopt NO_GLOB_SUBST
  12302. fi
  12303. # Now quote all the things that may contain metacharacters while being
  12304. # careful not to overquote the AC_SUBSTed values. We take copies of the
  12305. # variables and quote the copies for generation of the libtool script.
  12306. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  12307. SED SHELL STRIP \
  12308. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  12309. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  12310. deplibs_check_method reload_flag reload_cmds need_locks \
  12311. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  12312. lt_cv_sys_global_symbol_to_c_name_address \
  12313. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  12314. old_postinstall_cmds old_postuninstall_cmds \
  12315. compiler_CXX \
  12316. CC_CXX \
  12317. LD_CXX \
  12318. lt_prog_compiler_wl_CXX \
  12319. lt_prog_compiler_pic_CXX \
  12320. lt_prog_compiler_static_CXX \
  12321. lt_prog_compiler_no_builtin_flag_CXX \
  12322. export_dynamic_flag_spec_CXX \
  12323. thread_safe_flag_spec_CXX \
  12324. whole_archive_flag_spec_CXX \
  12325. enable_shared_with_static_runtimes_CXX \
  12326. old_archive_cmds_CXX \
  12327. old_archive_from_new_cmds_CXX \
  12328. predep_objects_CXX \
  12329. postdep_objects_CXX \
  12330. predeps_CXX \
  12331. postdeps_CXX \
  12332. compiler_lib_search_path_CXX \
  12333. archive_cmds_CXX \
  12334. archive_expsym_cmds_CXX \
  12335. postinstall_cmds_CXX \
  12336. postuninstall_cmds_CXX \
  12337. old_archive_from_expsyms_cmds_CXX \
  12338. allow_undefined_flag_CXX \
  12339. no_undefined_flag_CXX \
  12340. export_symbols_cmds_CXX \
  12341. hardcode_libdir_flag_spec_CXX \
  12342. hardcode_libdir_flag_spec_ld_CXX \
  12343. hardcode_libdir_separator_CXX \
  12344. hardcode_automatic_CXX \
  12345. module_cmds_CXX \
  12346. module_expsym_cmds_CXX \
  12347. lt_cv_prog_compiler_c_o_CXX \
  12348. exclude_expsyms_CXX \
  12349. include_expsyms_CXX; do
  12350. case $var in
  12351. old_archive_cmds_CXX | \
  12352. old_archive_from_new_cmds_CXX | \
  12353. archive_cmds_CXX | \
  12354. archive_expsym_cmds_CXX | \
  12355. module_cmds_CXX | \
  12356. module_expsym_cmds_CXX | \
  12357. old_archive_from_expsyms_cmds_CXX | \
  12358. export_symbols_cmds_CXX | \
  12359. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  12360. postinstall_cmds | postuninstall_cmds | \
  12361. old_postinstall_cmds | old_postuninstall_cmds | \
  12362. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  12363. # Double-quote double-evaled strings.
  12364. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  12365. ;;
  12366. *)
  12367. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  12368. ;;
  12369. esac
  12370. done
  12371. case $lt_echo in
  12372. *'\$0 --fallback-echo"')
  12373. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  12374. ;;
  12375. esac
  12376. cfgfile="$ofile"
  12377. cat <<__EOF__ >> "$cfgfile"
  12378. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  12379. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  12380. # Shell to use when invoking shell scripts.
  12381. SHELL=$lt_SHELL
  12382. # Whether or not to build shared libraries.
  12383. build_libtool_libs=$enable_shared
  12384. # Whether or not to build static libraries.
  12385. build_old_libs=$enable_static
  12386. # Whether or not to add -lc for building shared libraries.
  12387. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  12388. # Whether or not to disallow shared libs when runtime libs are static
  12389. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  12390. # Whether or not to optimize for fast installation.
  12391. fast_install=$enable_fast_install
  12392. # The host system.
  12393. host_alias=$host_alias
  12394. host=$host
  12395. host_os=$host_os
  12396. # The build system.
  12397. build_alias=$build_alias
  12398. build=$build
  12399. build_os=$build_os
  12400. # An echo program that does not interpret backslashes.
  12401. echo=$lt_echo
  12402. # The archiver.
  12403. AR=$lt_AR
  12404. AR_FLAGS=$lt_AR_FLAGS
  12405. # A C compiler.
  12406. LTCC=$lt_LTCC
  12407. # LTCC compiler flags.
  12408. LTCFLAGS=$lt_LTCFLAGS
  12409. # A language-specific compiler.
  12410. CC=$lt_compiler_CXX
  12411. # Is the compiler the GNU C compiler?
  12412. with_gcc=$GCC_CXX
  12413. # An ERE matcher.
  12414. EGREP=$lt_EGREP
  12415. # The linker used to build libraries.
  12416. LD=$lt_LD_CXX
  12417. # Whether we need hard or soft links.
  12418. LN_S=$lt_LN_S
  12419. # A BSD-compatible nm program.
  12420. NM=$lt_NM
  12421. # A symbol stripping program
  12422. STRIP=$lt_STRIP
  12423. # Used to examine libraries when file_magic_cmd begins "file"
  12424. MAGIC_CMD=$MAGIC_CMD
  12425. # Used on cygwin: DLL creation program.
  12426. DLLTOOL="$DLLTOOL"
  12427. # Used on cygwin: object dumper.
  12428. OBJDUMP="$OBJDUMP"
  12429. # Used on cygwin: assembler.
  12430. AS="$AS"
  12431. # The name of the directory that contains temporary libtool files.
  12432. objdir=$objdir
  12433. # How to create reloadable object files.
  12434. reload_flag=$lt_reload_flag
  12435. reload_cmds=$lt_reload_cmds
  12436. # How to pass a linker flag through the compiler.
  12437. wl=$lt_lt_prog_compiler_wl_CXX
  12438. # Object file suffix (normally "o").
  12439. objext="$ac_objext"
  12440. # Old archive suffix (normally "a").
  12441. libext="$libext"
  12442. # Shared library suffix (normally ".so").
  12443. shrext_cmds='$shrext_cmds'
  12444. # Executable file suffix (normally "").
  12445. exeext="$exeext"
  12446. # Additional compiler flags for building library objects.
  12447. pic_flag=$lt_lt_prog_compiler_pic_CXX
  12448. pic_mode=$pic_mode
  12449. # What is the maximum length of a command?
  12450. max_cmd_len=$lt_cv_sys_max_cmd_len
  12451. # Does compiler simultaneously support -c and -o options?
  12452. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  12453. # Must we lock files when doing compilation?
  12454. need_locks=$lt_need_locks
  12455. # Do we need the lib prefix for modules?
  12456. need_lib_prefix=$need_lib_prefix
  12457. # Do we need a version for libraries?
  12458. need_version=$need_version
  12459. # Whether dlopen is supported.
  12460. dlopen_support=$enable_dlopen
  12461. # Whether dlopen of programs is supported.
  12462. dlopen_self=$enable_dlopen_self
  12463. # Whether dlopen of statically linked programs is supported.
  12464. dlopen_self_static=$enable_dlopen_self_static
  12465. # Compiler flag to prevent dynamic linking.
  12466. link_static_flag=$lt_lt_prog_compiler_static_CXX
  12467. # Compiler flag to turn off builtin functions.
  12468. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  12469. # Compiler flag to allow reflexive dlopens.
  12470. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  12471. # Compiler flag to generate shared objects directly from archives.
  12472. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  12473. # Compiler flag to generate thread-safe objects.
  12474. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  12475. # Library versioning type.
  12476. version_type=$version_type
  12477. # Format of library name prefix.
  12478. libname_spec=$lt_libname_spec
  12479. # List of archive names. First name is the real one, the rest are links.
  12480. # The last name is the one that the linker finds with -lNAME.
  12481. library_names_spec=$lt_library_names_spec
  12482. # The coded name of the library, if different from the real name.
  12483. soname_spec=$lt_soname_spec
  12484. # Commands used to build and install an old-style archive.
  12485. RANLIB=$lt_RANLIB
  12486. old_archive_cmds=$lt_old_archive_cmds_CXX
  12487. old_postinstall_cmds=$lt_old_postinstall_cmds
  12488. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12489. # Create an old-style archive from a shared archive.
  12490. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  12491. # Create a temporary old-style archive to link instead of a shared archive.
  12492. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  12493. # Commands used to build and install a shared archive.
  12494. archive_cmds=$lt_archive_cmds_CXX
  12495. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  12496. postinstall_cmds=$lt_postinstall_cmds
  12497. postuninstall_cmds=$lt_postuninstall_cmds
  12498. # Commands used to build a loadable module (assumed same as above if empty)
  12499. module_cmds=$lt_module_cmds_CXX
  12500. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  12501. # Commands to strip libraries.
  12502. old_striplib=$lt_old_striplib
  12503. striplib=$lt_striplib
  12504. # Dependencies to place before the objects being linked to create a
  12505. # shared library.
  12506. predep_objects=$lt_predep_objects_CXX
  12507. # Dependencies to place after the objects being linked to create a
  12508. # shared library.
  12509. postdep_objects=$lt_postdep_objects_CXX
  12510. # Dependencies to place before the objects being linked to create a
  12511. # shared library.
  12512. predeps=$lt_predeps_CXX
  12513. # Dependencies to place after the objects being linked to create a
  12514. # shared library.
  12515. postdeps=$lt_postdeps_CXX
  12516. # The library search path used internally by the compiler when linking
  12517. # a shared library.
  12518. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  12519. # Method to check whether dependent libraries are shared objects.
  12520. deplibs_check_method=$lt_deplibs_check_method
  12521. # Command to use when deplibs_check_method == file_magic.
  12522. file_magic_cmd=$lt_file_magic_cmd
  12523. # Flag that allows shared libraries with undefined symbols to be built.
  12524. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  12525. # Flag that forces no undefined symbols.
  12526. no_undefined_flag=$lt_no_undefined_flag_CXX
  12527. # Commands used to finish a libtool library installation in a directory.
  12528. finish_cmds=$lt_finish_cmds
  12529. # Same as above, but a single script fragment to be evaled but not shown.
  12530. finish_eval=$lt_finish_eval
  12531. # Take the output of nm and produce a listing of raw symbols and C names.
  12532. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12533. # Transform the output of nm in a proper C declaration
  12534. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12535. # Transform the output of nm in a C name address pair
  12536. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12537. # This is the shared library runtime path variable.
  12538. runpath_var=$runpath_var
  12539. # This is the shared library path variable.
  12540. shlibpath_var=$shlibpath_var
  12541. # Is shlibpath searched before the hard-coded library search path?
  12542. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12543. # How to hardcode a shared library path into an executable.
  12544. hardcode_action=$hardcode_action_CXX
  12545. # Whether we should hardcode library paths into libraries.
  12546. hardcode_into_libs=$hardcode_into_libs
  12547. # Flag to hardcode \$libdir into a binary during linking.
  12548. # This must work even if \$libdir does not exist.
  12549. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  12550. # If ld is used when linking, flag to hardcode \$libdir into
  12551. # a binary during linking. This must work even if \$libdir does
  12552. # not exist.
  12553. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  12554. # Whether we need a single -rpath flag with a separated argument.
  12555. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  12556. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  12557. # resulting binary.
  12558. hardcode_direct=$hardcode_direct_CXX
  12559. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  12560. # resulting binary.
  12561. hardcode_minus_L=$hardcode_minus_L_CXX
  12562. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  12563. # the resulting binary.
  12564. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  12565. # Set to yes if building a shared library automatically hardcodes DIR into the library
  12566. # and all subsequent libraries and executables linked against it.
  12567. hardcode_automatic=$hardcode_automatic_CXX
  12568. # Variables whose values should be saved in libtool wrapper scripts and
  12569. # restored at relink time.
  12570. variables_saved_for_relink="$variables_saved_for_relink"
  12571. # Whether libtool must link a program against all its dependency libraries.
  12572. link_all_deplibs=$link_all_deplibs_CXX
  12573. # Compile-time system search path for libraries
  12574. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12575. # Run-time system search path for libraries
  12576. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  12577. # Fix the shell variable \$srcfile for the compiler.
  12578. fix_srcfile_path="$fix_srcfile_path_CXX"
  12579. # Set to yes if exported symbols are required.
  12580. always_export_symbols=$always_export_symbols_CXX
  12581. # The commands to list exported symbols.
  12582. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  12583. # The commands to extract the exported symbol list from a shared archive.
  12584. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12585. # Symbols that should not be listed in the preloaded symbols.
  12586. exclude_expsyms=$lt_exclude_expsyms_CXX
  12587. # Symbols that must always be exported.
  12588. include_expsyms=$lt_include_expsyms_CXX
  12589. # ### END LIBTOOL TAG CONFIG: $tagname
  12590. __EOF__
  12591. else
  12592. # If there is no Makefile yet, we rely on a make rule to execute
  12593. # `config.status --recheck' to rerun these tests and create the
  12594. # libtool script then.
  12595. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  12596. if test -f "$ltmain_in"; then
  12597. test -f Makefile && make "$ltmain"
  12598. fi
  12599. fi
  12600. ac_ext=c
  12601. ac_cpp='$CPP $CPPFLAGS'
  12602. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12603. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12604. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12605. CC=$lt_save_CC
  12606. LDCXX=$LD
  12607. LD=$lt_save_LD
  12608. GCC=$lt_save_GCC
  12609. with_gnu_ldcxx=$with_gnu_ld
  12610. with_gnu_ld=$lt_save_with_gnu_ld
  12611. lt_cv_path_LDCXX=$lt_cv_path_LD
  12612. lt_cv_path_LD=$lt_save_path_LD
  12613. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12614. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12615. else
  12616. tagname=""
  12617. fi
  12618. ;;
  12619. F77)
  12620. if test -n "$F77" && test "X$F77" != "Xno"; then
  12621. ac_ext=f
  12622. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  12623. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12624. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  12625. archive_cmds_need_lc_F77=no
  12626. allow_undefined_flag_F77=
  12627. always_export_symbols_F77=no
  12628. archive_expsym_cmds_F77=
  12629. export_dynamic_flag_spec_F77=
  12630. hardcode_direct_F77=no
  12631. hardcode_libdir_flag_spec_F77=
  12632. hardcode_libdir_flag_spec_ld_F77=
  12633. hardcode_libdir_separator_F77=
  12634. hardcode_minus_L_F77=no
  12635. hardcode_automatic_F77=no
  12636. module_cmds_F77=
  12637. module_expsym_cmds_F77=
  12638. link_all_deplibs_F77=unknown
  12639. old_archive_cmds_F77=$old_archive_cmds
  12640. no_undefined_flag_F77=
  12641. whole_archive_flag_spec_F77=
  12642. enable_shared_with_static_runtimes_F77=no
  12643. # Source file extension for f77 test sources.
  12644. ac_ext=f
  12645. # Object file extension for compiled f77 test sources.
  12646. objext=o
  12647. objext_F77=$objext
  12648. # Code to be used in simple compile tests
  12649. lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  12650. # Code to be used in simple link tests
  12651. lt_simple_link_test_code=" program t\n end\n"
  12652. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12653. # If no C compiler was specified, use CC.
  12654. LTCC=${LTCC-"$CC"}
  12655. # If no C compiler flags were specified, use CFLAGS.
  12656. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12657. # Allow CC to be a program name with arguments.
  12658. compiler=$CC
  12659. # save warnings/boilerplate of simple test code
  12660. ac_outfile=conftest.$ac_objext
  12661. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  12662. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12663. _lt_compiler_boilerplate=`cat conftest.err`
  12664. $rm conftest*
  12665. ac_outfile=conftest.$ac_objext
  12666. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  12667. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12668. _lt_linker_boilerplate=`cat conftest.err`
  12669. $rm conftest*
  12670. # Allow CC to be a program name with arguments.
  12671. lt_save_CC="$CC"
  12672. CC=${F77-"f77"}
  12673. compiler=$CC
  12674. compiler_F77=$CC
  12675. for cc_temp in $compiler""; do
  12676. case $cc_temp in
  12677. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  12678. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  12679. \-*) ;;
  12680. *) break;;
  12681. esac
  12682. done
  12683. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  12684. { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  12685. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  12686. { echo "$as_me:$LINENO: result: $can_build_shared" >&5
  12687. echo "${ECHO_T}$can_build_shared" >&6; }
  12688. { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  12689. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  12690. test "$can_build_shared" = "no" && enable_shared=no
  12691. # On AIX, shared libraries and static libraries use the same namespace, and
  12692. # are all built from PIC.
  12693. case $host_os in
  12694. aix3*)
  12695. test "$enable_shared" = yes && enable_static=no
  12696. if test -n "$RANLIB"; then
  12697. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  12698. postinstall_cmds='$RANLIB $lib'
  12699. fi
  12700. ;;
  12701. aix4* | aix5*)
  12702. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  12703. test "$enable_shared" = yes && enable_static=no
  12704. fi
  12705. ;;
  12706. esac
  12707. { echo "$as_me:$LINENO: result: $enable_shared" >&5
  12708. echo "${ECHO_T}$enable_shared" >&6; }
  12709. { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  12710. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  12711. # Make sure either enable_shared or enable_static is yes.
  12712. test "$enable_shared" = yes || enable_static=yes
  12713. { echo "$as_me:$LINENO: result: $enable_static" >&5
  12714. echo "${ECHO_T}$enable_static" >&6; }
  12715. GCC_F77="$G77"
  12716. LD_F77="$LD"
  12717. lt_prog_compiler_wl_F77=
  12718. lt_prog_compiler_pic_F77=
  12719. lt_prog_compiler_static_F77=
  12720. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  12721. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  12722. if test "$GCC" = yes; then
  12723. lt_prog_compiler_wl_F77='-Wl,'
  12724. lt_prog_compiler_static_F77='-static'
  12725. case $host_os in
  12726. aix*)
  12727. # All AIX code is PIC.
  12728. if test "$host_cpu" = ia64; then
  12729. # AIX 5 now supports IA64 processor
  12730. lt_prog_compiler_static_F77='-Bstatic'
  12731. fi
  12732. ;;
  12733. amigaos*)
  12734. # FIXME: we need at least 68020 code to build shared libraries, but
  12735. # adding the `-m68020' flag to GCC prevents building anything better,
  12736. # like `-m68040'.
  12737. lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  12738. ;;
  12739. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12740. # PIC is the default for these OSes.
  12741. ;;
  12742. mingw* | pw32* | os2*)
  12743. # This hack is so that the source file can tell whether it is being
  12744. # built for inclusion in a dll (and should export symbols for example).
  12745. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  12746. ;;
  12747. darwin* | rhapsody*)
  12748. # PIC is the default on this platform
  12749. # Common symbols not allowed in MH_DYLIB files
  12750. lt_prog_compiler_pic_F77='-fno-common'
  12751. ;;
  12752. interix3*)
  12753. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12754. # Instead, we relocate shared libraries at runtime.
  12755. ;;
  12756. msdosdjgpp*)
  12757. # Just because we use GCC doesn't mean we suddenly get shared libraries
  12758. # on systems that don't support them.
  12759. lt_prog_compiler_can_build_shared_F77=no
  12760. enable_shared=no
  12761. ;;
  12762. sysv4*MP*)
  12763. if test -d /usr/nec; then
  12764. lt_prog_compiler_pic_F77=-Kconform_pic
  12765. fi
  12766. ;;
  12767. hpux*)
  12768. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  12769. # not for PA HP-UX.
  12770. case $host_cpu in
  12771. hppa*64*|ia64*)
  12772. # +Z the default
  12773. ;;
  12774. *)
  12775. lt_prog_compiler_pic_F77='-fPIC'
  12776. ;;
  12777. esac
  12778. ;;
  12779. *)
  12780. lt_prog_compiler_pic_F77='-fPIC'
  12781. ;;
  12782. esac
  12783. else
  12784. # PORTME Check for flag to pass linker flags through the system compiler.
  12785. case $host_os in
  12786. aix*)
  12787. lt_prog_compiler_wl_F77='-Wl,'
  12788. if test "$host_cpu" = ia64; then
  12789. # AIX 5 now supports IA64 processor
  12790. lt_prog_compiler_static_F77='-Bstatic'
  12791. else
  12792. lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  12793. fi
  12794. ;;
  12795. darwin*)
  12796. # PIC is the default on this platform
  12797. # Common symbols not allowed in MH_DYLIB files
  12798. case $cc_basename in
  12799. xlc*)
  12800. lt_prog_compiler_pic_F77='-qnocommon'
  12801. lt_prog_compiler_wl_F77='-Wl,'
  12802. ;;
  12803. esac
  12804. ;;
  12805. mingw* | pw32* | os2*)
  12806. # This hack is so that the source file can tell whether it is being
  12807. # built for inclusion in a dll (and should export symbols for example).
  12808. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  12809. ;;
  12810. hpux9* | hpux10* | hpux11*)
  12811. lt_prog_compiler_wl_F77='-Wl,'
  12812. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  12813. # not for PA HP-UX.
  12814. case $host_cpu in
  12815. hppa*64*|ia64*)
  12816. # +Z the default
  12817. ;;
  12818. *)
  12819. lt_prog_compiler_pic_F77='+Z'
  12820. ;;
  12821. esac
  12822. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  12823. lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  12824. ;;
  12825. irix5* | irix6* | nonstopux*)
  12826. lt_prog_compiler_wl_F77='-Wl,'
  12827. # PIC (with -KPIC) is the default.
  12828. lt_prog_compiler_static_F77='-non_shared'
  12829. ;;
  12830. newsos6)
  12831. lt_prog_compiler_pic_F77='-KPIC'
  12832. lt_prog_compiler_static_F77='-Bstatic'
  12833. ;;
  12834. linux* | k*bsd*-gnu)
  12835. case $cc_basename in
  12836. icc* | ecc*)
  12837. lt_prog_compiler_wl_F77='-Wl,'
  12838. lt_prog_compiler_pic_F77='-KPIC'
  12839. lt_prog_compiler_static_F77='-static'
  12840. ;;
  12841. pgcc* | pgf77* | pgf90* | pgf95*)
  12842. # Portland Group compilers (*not* the Pentium gcc compiler,
  12843. # which looks to be a dead project)
  12844. lt_prog_compiler_wl_F77='-Wl,'
  12845. lt_prog_compiler_pic_F77='-fpic'
  12846. lt_prog_compiler_static_F77='-Bstatic'
  12847. ;;
  12848. ccc*)
  12849. lt_prog_compiler_wl_F77='-Wl,'
  12850. # All Alpha code is PIC.
  12851. lt_prog_compiler_static_F77='-non_shared'
  12852. ;;
  12853. esac
  12854. ;;
  12855. osf3* | osf4* | osf5*)
  12856. lt_prog_compiler_wl_F77='-Wl,'
  12857. # All OSF/1 code is PIC.
  12858. lt_prog_compiler_static_F77='-non_shared'
  12859. ;;
  12860. solaris*)
  12861. lt_prog_compiler_pic_F77='-KPIC'
  12862. lt_prog_compiler_static_F77='-Bstatic'
  12863. case $cc_basename in
  12864. f77* | f90* | f95*)
  12865. lt_prog_compiler_wl_F77='-Qoption ld ';;
  12866. *)
  12867. lt_prog_compiler_wl_F77='-Wl,';;
  12868. esac
  12869. ;;
  12870. sunos4*)
  12871. lt_prog_compiler_wl_F77='-Qoption ld '
  12872. lt_prog_compiler_pic_F77='-PIC'
  12873. lt_prog_compiler_static_F77='-Bstatic'
  12874. ;;
  12875. sysv4 | sysv4.2uw2* | sysv4.3*)
  12876. lt_prog_compiler_wl_F77='-Wl,'
  12877. lt_prog_compiler_pic_F77='-KPIC'
  12878. lt_prog_compiler_static_F77='-Bstatic'
  12879. ;;
  12880. sysv4*MP*)
  12881. if test -d /usr/nec ;then
  12882. lt_prog_compiler_pic_F77='-Kconform_pic'
  12883. lt_prog_compiler_static_F77='-Bstatic'
  12884. fi
  12885. ;;
  12886. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12887. lt_prog_compiler_wl_F77='-Wl,'
  12888. lt_prog_compiler_pic_F77='-KPIC'
  12889. lt_prog_compiler_static_F77='-Bstatic'
  12890. ;;
  12891. unicos*)
  12892. lt_prog_compiler_wl_F77='-Wl,'
  12893. lt_prog_compiler_can_build_shared_F77=no
  12894. ;;
  12895. uts4*)
  12896. lt_prog_compiler_pic_F77='-pic'
  12897. lt_prog_compiler_static_F77='-Bstatic'
  12898. ;;
  12899. *)
  12900. lt_prog_compiler_can_build_shared_F77=no
  12901. ;;
  12902. esac
  12903. fi
  12904. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  12905. echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
  12906. #
  12907. # Check to make sure the PIC flag actually works.
  12908. #
  12909. if test -n "$lt_prog_compiler_pic_F77"; then
  12910. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  12911. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
  12912. if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  12913. echo $ECHO_N "(cached) $ECHO_C" >&6
  12914. else
  12915. lt_prog_compiler_pic_works_F77=no
  12916. ac_outfile=conftest.$ac_objext
  12917. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12918. lt_compiler_flag="$lt_prog_compiler_pic_F77"
  12919. # Insert the option either (1) after the last *FLAGS variable, or
  12920. # (2) before a word containing "conftest.", or (3) at the end.
  12921. # Note that $ac_compile itself does not contain backslashes and begins
  12922. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12923. # The option is referenced via a variable to avoid confusing sed.
  12924. lt_compile=`echo "$ac_compile" | $SED \
  12925. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12926. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12927. -e 's:$: $lt_compiler_flag:'`
  12928. (eval echo "\"\$as_me:14402: $lt_compile\"" >&5)
  12929. (eval "$lt_compile" 2>conftest.err)
  12930. ac_status=$?
  12931. cat conftest.err >&5
  12932. echo "$as_me:14406: \$? = $ac_status" >&5
  12933. if (exit $ac_status) && test -s "$ac_outfile"; then
  12934. # The compiler can only warn and ignore the option if not recognized
  12935. # So say no if there are warnings other than the usual output.
  12936. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  12937. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12938. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12939. lt_prog_compiler_pic_works_F77=yes
  12940. fi
  12941. fi
  12942. $rm conftest*
  12943. fi
  12944. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  12945. echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
  12946. if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  12947. case $lt_prog_compiler_pic_F77 in
  12948. "" | " "*) ;;
  12949. *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  12950. esac
  12951. else
  12952. lt_prog_compiler_pic_F77=
  12953. lt_prog_compiler_can_build_shared_F77=no
  12954. fi
  12955. fi
  12956. case $host_os in
  12957. # For platforms which do not support PIC, -DPIC is meaningless:
  12958. *djgpp*)
  12959. lt_prog_compiler_pic_F77=
  12960. ;;
  12961. *)
  12962. lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  12963. ;;
  12964. esac
  12965. #
  12966. # Check to make sure the static flag actually works.
  12967. #
  12968. wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
  12969. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12970. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  12971. if test "${lt_prog_compiler_static_works_F77+set}" = set; then
  12972. echo $ECHO_N "(cached) $ECHO_C" >&6
  12973. else
  12974. lt_prog_compiler_static_works_F77=no
  12975. save_LDFLAGS="$LDFLAGS"
  12976. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12977. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  12978. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12979. # The linker can only warn and ignore the option if not recognized
  12980. # So say no if there are warnings
  12981. if test -s conftest.err; then
  12982. # Append any errors to the config.log.
  12983. cat conftest.err 1>&5
  12984. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  12985. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12986. if diff conftest.exp conftest.er2 >/dev/null; then
  12987. lt_prog_compiler_static_works_F77=yes
  12988. fi
  12989. else
  12990. lt_prog_compiler_static_works_F77=yes
  12991. fi
  12992. fi
  12993. $rm conftest*
  12994. LDFLAGS="$save_LDFLAGS"
  12995. fi
  12996. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
  12997. echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
  12998. if test x"$lt_prog_compiler_static_works_F77" = xyes; then
  12999. :
  13000. else
  13001. lt_prog_compiler_static_F77=
  13002. fi
  13003. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  13004. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  13005. if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  13006. echo $ECHO_N "(cached) $ECHO_C" >&6
  13007. else
  13008. lt_cv_prog_compiler_c_o_F77=no
  13009. $rm -r conftest 2>/dev/null
  13010. mkdir conftest
  13011. cd conftest
  13012. mkdir out
  13013. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13014. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13015. # Insert the option either (1) after the last *FLAGS variable, or
  13016. # (2) before a word containing "conftest.", or (3) at the end.
  13017. # Note that $ac_compile itself does not contain backslashes and begins
  13018. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13019. lt_compile=`echo "$ac_compile" | $SED \
  13020. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13021. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13022. -e 's:$: $lt_compiler_flag:'`
  13023. (eval echo "\"\$as_me:14506: $lt_compile\"" >&5)
  13024. (eval "$lt_compile" 2>out/conftest.err)
  13025. ac_status=$?
  13026. cat out/conftest.err >&5
  13027. echo "$as_me:14510: \$? = $ac_status" >&5
  13028. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13029. then
  13030. # The compiler can only warn and ignore the option if not recognized
  13031. # So say no if there are warnings
  13032. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  13033. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13034. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13035. lt_cv_prog_compiler_c_o_F77=yes
  13036. fi
  13037. fi
  13038. chmod u+w . 2>&5
  13039. $rm conftest*
  13040. # SGI C++ compiler will create directory out/ii_files/ for
  13041. # template instantiation
  13042. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  13043. $rm out/* && rmdir out
  13044. cd ..
  13045. rmdir conftest
  13046. $rm conftest*
  13047. fi
  13048. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  13049. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
  13050. hard_links="nottested"
  13051. if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  13052. # do not overwrite the value of need_locks provided by the user
  13053. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  13054. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  13055. hard_links=yes
  13056. $rm conftest*
  13057. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13058. touch conftest.a
  13059. ln conftest.a conftest.b 2>&5 || hard_links=no
  13060. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13061. { echo "$as_me:$LINENO: result: $hard_links" >&5
  13062. echo "${ECHO_T}$hard_links" >&6; }
  13063. if test "$hard_links" = no; then
  13064. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  13065. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  13066. need_locks=warn
  13067. fi
  13068. else
  13069. need_locks=no
  13070. fi
  13071. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13072. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  13073. runpath_var=
  13074. allow_undefined_flag_F77=
  13075. enable_shared_with_static_runtimes_F77=no
  13076. archive_cmds_F77=
  13077. archive_expsym_cmds_F77=
  13078. old_archive_From_new_cmds_F77=
  13079. old_archive_from_expsyms_cmds_F77=
  13080. export_dynamic_flag_spec_F77=
  13081. whole_archive_flag_spec_F77=
  13082. thread_safe_flag_spec_F77=
  13083. hardcode_libdir_flag_spec_F77=
  13084. hardcode_libdir_flag_spec_ld_F77=
  13085. hardcode_libdir_separator_F77=
  13086. hardcode_direct_F77=no
  13087. hardcode_minus_L_F77=no
  13088. hardcode_shlibpath_var_F77=unsupported
  13089. link_all_deplibs_F77=unknown
  13090. hardcode_automatic_F77=no
  13091. module_cmds_F77=
  13092. module_expsym_cmds_F77=
  13093. always_export_symbols_F77=no
  13094. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13095. # include_expsyms should be a list of space-separated symbols to be *always*
  13096. # included in the symbol list
  13097. include_expsyms_F77=
  13098. # exclude_expsyms can be an extended regexp of symbols to exclude
  13099. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  13100. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  13101. # as well as any symbol that contains `d'.
  13102. exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  13103. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  13104. # platforms (ab)use it in PIC code, but their linkers get confused if
  13105. # the symbol is explicitly referenced. Since portable code cannot
  13106. # rely on this symbol name, it's probably fine to never include it in
  13107. # preloaded symbol tables.
  13108. extract_expsyms_cmds=
  13109. # Just being paranoid about ensuring that cc_basename is set.
  13110. for cc_temp in $compiler""; do
  13111. case $cc_temp in
  13112. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  13113. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  13114. \-*) ;;
  13115. *) break;;
  13116. esac
  13117. done
  13118. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  13119. case $host_os in
  13120. cygwin* | mingw* | pw32*)
  13121. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  13122. # When not using gcc, we currently assume that we are using
  13123. # Microsoft Visual C++.
  13124. if test "$GCC" != yes; then
  13125. with_gnu_ld=no
  13126. fi
  13127. ;;
  13128. interix*)
  13129. # we just hope/assume this is gcc and not c89 (= MSVC++)
  13130. with_gnu_ld=yes
  13131. ;;
  13132. openbsd*)
  13133. with_gnu_ld=no
  13134. ;;
  13135. esac
  13136. ld_shlibs_F77=yes
  13137. if test "$with_gnu_ld" = yes; then
  13138. # If archive_cmds runs LD, not CC, wlarc should be empty
  13139. wlarc='${wl}'
  13140. # Set some defaults for GNU ld with shared library support. These
  13141. # are reset later if shared libraries are not supported. Putting them
  13142. # here allows them to be overridden if necessary.
  13143. runpath_var=LD_RUN_PATH
  13144. hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  13145. export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  13146. # ancient GNU ld didn't support --whole-archive et. al.
  13147. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  13148. whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  13149. else
  13150. whole_archive_flag_spec_F77=
  13151. fi
  13152. supports_anon_versioning=no
  13153. case `$LD -v 2>/dev/null` in
  13154. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  13155. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  13156. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  13157. *\ 2.11.*) ;; # other 2.11 versions
  13158. *) supports_anon_versioning=yes ;;
  13159. esac
  13160. # See if GNU ld supports shared libraries.
  13161. case $host_os in
  13162. aix3* | aix4* | aix5*)
  13163. # On AIX/PPC, the GNU linker is very broken
  13164. if test "$host_cpu" != ia64; then
  13165. ld_shlibs_F77=no
  13166. cat <<EOF 1>&2
  13167. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  13168. *** to be unable to reliably create shared libraries on AIX.
  13169. *** Therefore, libtool is disabling shared libraries support. If you
  13170. *** really care for shared libraries, you may want to modify your PATH
  13171. *** so that a non-GNU linker is found, and then restart.
  13172. EOF
  13173. fi
  13174. ;;
  13175. amigaos*)
  13176. archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  13177. hardcode_libdir_flag_spec_F77='-L$libdir'
  13178. hardcode_minus_L_F77=yes
  13179. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  13180. # that the semantics of dynamic libraries on AmigaOS, at least up
  13181. # to version 4, is to share data among multiple programs linked
  13182. # with the same dynamic library. Since this doesn't match the
  13183. # behavior of shared libraries on other platforms, we can't use
  13184. # them.
  13185. ld_shlibs_F77=no
  13186. ;;
  13187. beos*)
  13188. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13189. allow_undefined_flag_F77=unsupported
  13190. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  13191. # support --undefined. This deserves some investigation. FIXME
  13192. archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13193. else
  13194. ld_shlibs_F77=no
  13195. fi
  13196. ;;
  13197. cygwin* | mingw* | pw32*)
  13198. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  13199. # as there is no search path for DLLs.
  13200. hardcode_libdir_flag_spec_F77='-L$libdir'
  13201. allow_undefined_flag_F77=unsupported
  13202. always_export_symbols_F77=no
  13203. enable_shared_with_static_runtimes_F77=yes
  13204. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  13205. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  13206. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  13207. # If the export-symbols file already is a .def file (1st line
  13208. # is EXPORTS), use it as is; otherwise, prepend...
  13209. archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  13210. cp $export_symbols $output_objdir/$soname.def;
  13211. else
  13212. echo EXPORTS > $output_objdir/$soname.def;
  13213. cat $export_symbols >> $output_objdir/$soname.def;
  13214. fi~
  13215. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  13216. else
  13217. ld_shlibs_F77=no
  13218. fi
  13219. ;;
  13220. interix3*)
  13221. hardcode_direct_F77=no
  13222. hardcode_shlibpath_var_F77=no
  13223. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  13224. export_dynamic_flag_spec_F77='${wl}-E'
  13225. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13226. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13227. # default) and relocated if they conflict, which is a slow very memory
  13228. # consuming and fragmenting process. To avoid this, we pick a random,
  13229. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13230. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13231. archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  13232. archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  13233. ;;
  13234. linux* | k*bsd*-gnu)
  13235. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13236. tmp_addflag=
  13237. case $cc_basename,$host_cpu in
  13238. pgcc*) # Portland Group C compiler
  13239. whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  13240. tmp_addflag=' $pic_flag'
  13241. ;;
  13242. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  13243. whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  13244. tmp_addflag=' $pic_flag -Mnomain' ;;
  13245. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  13246. tmp_addflag=' -i_dynamic' ;;
  13247. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  13248. tmp_addflag=' -i_dynamic -nofor_main' ;;
  13249. ifc* | ifort*) # Intel Fortran compiler
  13250. tmp_addflag=' -nofor_main' ;;
  13251. esac
  13252. archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13253. if test $supports_anon_versioning = yes; then
  13254. archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  13255. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13256. $echo "local: *; };" >> $output_objdir/$libname.ver~
  13257. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  13258. fi
  13259. link_all_deplibs_F77=no
  13260. else
  13261. ld_shlibs_F77=no
  13262. fi
  13263. ;;
  13264. netbsd* | netbsdelf*-gnu)
  13265. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13266. archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  13267. wlarc=
  13268. else
  13269. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13270. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13271. fi
  13272. ;;
  13273. solaris*)
  13274. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  13275. ld_shlibs_F77=no
  13276. cat <<EOF 1>&2
  13277. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  13278. *** create shared libraries on Solaris systems. Therefore, libtool
  13279. *** is disabling shared libraries support. We urge you to upgrade GNU
  13280. *** binutils to release 2.9.1 or newer. Another option is to modify
  13281. *** your PATH or compiler configuration so that the native linker is
  13282. *** used, and then restart.
  13283. EOF
  13284. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13285. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13286. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13287. else
  13288. ld_shlibs_F77=no
  13289. fi
  13290. ;;
  13291. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  13292. case `$LD -v 2>&1` in
  13293. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  13294. ld_shlibs_F77=no
  13295. cat <<_LT_EOF 1>&2
  13296. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  13297. *** reliably create shared libraries on SCO systems. Therefore, libtool
  13298. *** is disabling shared libraries support. We urge you to upgrade GNU
  13299. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  13300. *** your PATH or compiler configuration so that the native linker is
  13301. *** used, and then restart.
  13302. _LT_EOF
  13303. ;;
  13304. *)
  13305. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13306. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  13307. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  13308. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  13309. else
  13310. ld_shlibs_F77=no
  13311. fi
  13312. ;;
  13313. esac
  13314. ;;
  13315. sunos4*)
  13316. archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13317. wlarc=
  13318. hardcode_direct_F77=yes
  13319. hardcode_shlibpath_var_F77=no
  13320. ;;
  13321. *)
  13322. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13323. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13324. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13325. else
  13326. ld_shlibs_F77=no
  13327. fi
  13328. ;;
  13329. esac
  13330. if test "$ld_shlibs_F77" = no; then
  13331. runpath_var=
  13332. hardcode_libdir_flag_spec_F77=
  13333. export_dynamic_flag_spec_F77=
  13334. whole_archive_flag_spec_F77=
  13335. fi
  13336. else
  13337. # PORTME fill in a description of your system's linker (not GNU ld)
  13338. case $host_os in
  13339. aix3*)
  13340. allow_undefined_flag_F77=unsupported
  13341. always_export_symbols_F77=yes
  13342. archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  13343. # Note: this linker hardcodes the directories in LIBPATH if there
  13344. # are no directories specified by -L.
  13345. hardcode_minus_L_F77=yes
  13346. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  13347. # Neither direct hardcoding nor static linking is supported with a
  13348. # broken collect2.
  13349. hardcode_direct_F77=unsupported
  13350. fi
  13351. ;;
  13352. aix4* | aix5*)
  13353. if test "$host_cpu" = ia64; then
  13354. # On IA64, the linker does run time linking by default, so we don't
  13355. # have to do anything special.
  13356. aix_use_runtimelinking=no
  13357. exp_sym_flag='-Bexport'
  13358. no_entry_flag=""
  13359. else
  13360. # If we're using GNU nm, then we don't want the "-C" option.
  13361. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  13362. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  13363. export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  13364. else
  13365. export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  13366. fi
  13367. aix_use_runtimelinking=no
  13368. # Test if we are trying to use run time linking or normal
  13369. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  13370. # need to do runtime linking.
  13371. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  13372. for ld_flag in $LDFLAGS; do
  13373. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  13374. aix_use_runtimelinking=yes
  13375. break
  13376. fi
  13377. done
  13378. ;;
  13379. esac
  13380. exp_sym_flag='-bexport'
  13381. no_entry_flag='-bnoentry'
  13382. fi
  13383. # When large executables or shared objects are built, AIX ld can
  13384. # have problems creating the table of contents. If linking a library
  13385. # or program results in "error TOC overflow" add -mminimal-toc to
  13386. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  13387. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  13388. archive_cmds_F77=''
  13389. hardcode_direct_F77=yes
  13390. hardcode_libdir_separator_F77=':'
  13391. link_all_deplibs_F77=yes
  13392. if test "$GCC" = yes; then
  13393. case $host_os in aix4.[012]|aix4.[012].*)
  13394. # We only want to do this on AIX 4.2 and lower, the check
  13395. # below for broken collect2 doesn't work under 4.3+
  13396. collect2name=`${CC} -print-prog-name=collect2`
  13397. if test -f "$collect2name" && \
  13398. strings "$collect2name" | grep resolve_lib_name >/dev/null
  13399. then
  13400. # We have reworked collect2
  13401. hardcode_direct_F77=yes
  13402. else
  13403. # We have old collect2
  13404. hardcode_direct_F77=unsupported
  13405. # It fails to find uninstalled libraries when the uninstalled
  13406. # path is not listed in the libpath. Setting hardcode_minus_L
  13407. # to unsupported forces relinking
  13408. hardcode_minus_L_F77=yes
  13409. hardcode_libdir_flag_spec_F77='-L$libdir'
  13410. hardcode_libdir_separator_F77=
  13411. fi
  13412. ;;
  13413. esac
  13414. shared_flag='-shared'
  13415. if test "$aix_use_runtimelinking" = yes; then
  13416. shared_flag="$shared_flag "'${wl}-G'
  13417. fi
  13418. else
  13419. # not using gcc
  13420. if test "$host_cpu" = ia64; then
  13421. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  13422. # chokes on -Wl,-G. The following line is correct:
  13423. shared_flag='-G'
  13424. else
  13425. if test "$aix_use_runtimelinking" = yes; then
  13426. shared_flag='${wl}-G'
  13427. else
  13428. shared_flag='${wl}-bM:SRE'
  13429. fi
  13430. fi
  13431. fi
  13432. # It seems that -bexpall does not export symbols beginning with
  13433. # underscore (_), so it is better to generate a list of symbols to export.
  13434. always_export_symbols_F77=yes
  13435. if test "$aix_use_runtimelinking" = yes; then
  13436. # Warning - without using the other runtime loading flags (-brtl),
  13437. # -berok will link without error, but may produce a broken library.
  13438. allow_undefined_flag_F77='-berok'
  13439. # Determine the default libpath from the value encoded in an empty executable.
  13440. cat >conftest.$ac_ext <<_ACEOF
  13441. program main
  13442. end
  13443. _ACEOF
  13444. rm -f conftest.$ac_objext conftest$ac_exeext
  13445. if { (ac_try="$ac_link"
  13446. case "(($ac_try" in
  13447. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13448. *) ac_try_echo=$ac_try;;
  13449. esac
  13450. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13451. (eval "$ac_link") 2>conftest.er1
  13452. ac_status=$?
  13453. grep -v '^ *+' conftest.er1 >conftest.err
  13454. rm -f conftest.er1
  13455. cat conftest.err >&5
  13456. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13457. (exit $ac_status); } &&
  13458. { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  13459. { (case "(($ac_try" in
  13460. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13461. *) ac_try_echo=$ac_try;;
  13462. esac
  13463. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13464. (eval "$ac_try") 2>&5
  13465. ac_status=$?
  13466. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13467. (exit $ac_status); }; } &&
  13468. { ac_try='test -s conftest$ac_exeext'
  13469. { (case "(($ac_try" in
  13470. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13471. *) ac_try_echo=$ac_try;;
  13472. esac
  13473. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13474. (eval "$ac_try") 2>&5
  13475. ac_status=$?
  13476. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13477. (exit $ac_status); }; }; then
  13478. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  13479. }'`
  13480. # Check for a 64-bit object if we didn't find anything.
  13481. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  13482. }'`; fi
  13483. else
  13484. echo "$as_me: failed program was:" >&5
  13485. sed 's/^/| /' conftest.$ac_ext >&5
  13486. fi
  13487. rm -f conftest.err conftest.$ac_objext \
  13488. conftest$ac_exeext conftest.$ac_ext
  13489. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  13490. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  13491. archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  13492. else
  13493. if test "$host_cpu" = ia64; then
  13494. hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  13495. allow_undefined_flag_F77="-z nodefs"
  13496. archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  13497. else
  13498. # Determine the default libpath from the value encoded in an empty executable.
  13499. cat >conftest.$ac_ext <<_ACEOF
  13500. program main
  13501. end
  13502. _ACEOF
  13503. rm -f conftest.$ac_objext conftest$ac_exeext
  13504. if { (ac_try="$ac_link"
  13505. case "(($ac_try" in
  13506. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13507. *) ac_try_echo=$ac_try;;
  13508. esac
  13509. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13510. (eval "$ac_link") 2>conftest.er1
  13511. ac_status=$?
  13512. grep -v '^ *+' conftest.er1 >conftest.err
  13513. rm -f conftest.er1
  13514. cat conftest.err >&5
  13515. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13516. (exit $ac_status); } &&
  13517. { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  13518. { (case "(($ac_try" in
  13519. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13520. *) ac_try_echo=$ac_try;;
  13521. esac
  13522. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13523. (eval "$ac_try") 2>&5
  13524. ac_status=$?
  13525. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13526. (exit $ac_status); }; } &&
  13527. { ac_try='test -s conftest$ac_exeext'
  13528. { (case "(($ac_try" in
  13529. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13530. *) ac_try_echo=$ac_try;;
  13531. esac
  13532. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13533. (eval "$ac_try") 2>&5
  13534. ac_status=$?
  13535. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13536. (exit $ac_status); }; }; then
  13537. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  13538. }'`
  13539. # Check for a 64-bit object if we didn't find anything.
  13540. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  13541. }'`; fi
  13542. else
  13543. echo "$as_me: failed program was:" >&5
  13544. sed 's/^/| /' conftest.$ac_ext >&5
  13545. fi
  13546. rm -f conftest.err conftest.$ac_objext \
  13547. conftest$ac_exeext conftest.$ac_ext
  13548. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  13549. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  13550. # Warning - without using the other run time loading flags,
  13551. # -berok will link without error, but may produce a broken library.
  13552. no_undefined_flag_F77=' ${wl}-bernotok'
  13553. allow_undefined_flag_F77=' ${wl}-berok'
  13554. # Exported symbols can be pulled into shared objects from archives
  13555. whole_archive_flag_spec_F77='$convenience'
  13556. archive_cmds_need_lc_F77=yes
  13557. # This is similar to how AIX traditionally builds its shared libraries.
  13558. archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  13559. fi
  13560. fi
  13561. ;;
  13562. amigaos*)
  13563. archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  13564. hardcode_libdir_flag_spec_F77='-L$libdir'
  13565. hardcode_minus_L_F77=yes
  13566. # see comment about different semantics on the GNU ld section
  13567. ld_shlibs_F77=no
  13568. ;;
  13569. bsdi[45]*)
  13570. export_dynamic_flag_spec_F77=-rdynamic
  13571. ;;
  13572. cygwin* | mingw* | pw32*)
  13573. # When not using gcc, we currently assume that we are using
  13574. # Microsoft Visual C++.
  13575. # hardcode_libdir_flag_spec is actually meaningless, as there is
  13576. # no search path for DLLs.
  13577. hardcode_libdir_flag_spec_F77=' '
  13578. allow_undefined_flag_F77=unsupported
  13579. # Tell ltmain to make .lib files, not .a files.
  13580. libext=lib
  13581. # Tell ltmain to make .dll files, not .so files.
  13582. shrext_cmds=".dll"
  13583. # FIXME: Setting linknames here is a bad hack.
  13584. archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  13585. # The linker will automatically build a .lib file if we build a DLL.
  13586. old_archive_From_new_cmds_F77='true'
  13587. # FIXME: Should let the user specify the lib program.
  13588. old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
  13589. fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  13590. enable_shared_with_static_runtimes_F77=yes
  13591. ;;
  13592. darwin* | rhapsody*)
  13593. case $host_os in
  13594. rhapsody* | darwin1.[012])
  13595. allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  13596. ;;
  13597. *) # Darwin 1.3 on
  13598. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  13599. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  13600. else
  13601. case ${MACOSX_DEPLOYMENT_TARGET} in
  13602. 10.[012])
  13603. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  13604. ;;
  13605. 10.*)
  13606. allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  13607. ;;
  13608. esac
  13609. fi
  13610. ;;
  13611. esac
  13612. archive_cmds_need_lc_F77=no
  13613. hardcode_direct_F77=no
  13614. hardcode_automatic_F77=yes
  13615. hardcode_shlibpath_var_F77=unsupported
  13616. whole_archive_flag_spec_F77=''
  13617. link_all_deplibs_F77=yes
  13618. if test "$GCC" = yes ; then
  13619. output_verbose_link_cmd='echo'
  13620. archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  13621. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  13622. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  13623. archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  13624. module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  13625. else
  13626. case $cc_basename in
  13627. xlc*)
  13628. output_verbose_link_cmd='echo'
  13629. archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  13630. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  13631. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  13632. archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  13633. module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  13634. ;;
  13635. *)
  13636. ld_shlibs_F77=no
  13637. ;;
  13638. esac
  13639. fi
  13640. ;;
  13641. dgux*)
  13642. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13643. hardcode_libdir_flag_spec_F77='-L$libdir'
  13644. hardcode_shlibpath_var_F77=no
  13645. ;;
  13646. freebsd1*)
  13647. ld_shlibs_F77=no
  13648. ;;
  13649. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  13650. # support. Future versions do this automatically, but an explicit c++rt0.o
  13651. # does not break anything, and helps significantly (at the cost of a little
  13652. # extra space).
  13653. freebsd2.2*)
  13654. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  13655. hardcode_libdir_flag_spec_F77='-R$libdir'
  13656. hardcode_direct_F77=yes
  13657. hardcode_shlibpath_var_F77=no
  13658. ;;
  13659. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  13660. freebsd2*)
  13661. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13662. hardcode_direct_F77=yes
  13663. hardcode_minus_L_F77=yes
  13664. hardcode_shlibpath_var_F77=no
  13665. ;;
  13666. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  13667. freebsd* | dragonfly*)
  13668. archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  13669. hardcode_libdir_flag_spec_F77='-R$libdir'
  13670. hardcode_direct_F77=yes
  13671. hardcode_shlibpath_var_F77=no
  13672. ;;
  13673. hpux9*)
  13674. if test "$GCC" = yes; then
  13675. archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  13676. else
  13677. archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  13678. fi
  13679. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13680. hardcode_libdir_separator_F77=:
  13681. hardcode_direct_F77=yes
  13682. # hardcode_minus_L: Not really in the search PATH,
  13683. # but as the default location of the library.
  13684. hardcode_minus_L_F77=yes
  13685. export_dynamic_flag_spec_F77='${wl}-E'
  13686. ;;
  13687. hpux10*)
  13688. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  13689. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13690. else
  13691. archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  13692. fi
  13693. if test "$with_gnu_ld" = no; then
  13694. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13695. hardcode_libdir_separator_F77=:
  13696. hardcode_direct_F77=yes
  13697. export_dynamic_flag_spec_F77='${wl}-E'
  13698. # hardcode_minus_L: Not really in the search PATH,
  13699. # but as the default location of the library.
  13700. hardcode_minus_L_F77=yes
  13701. fi
  13702. ;;
  13703. hpux11*)
  13704. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  13705. case $host_cpu in
  13706. hppa*64*)
  13707. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13708. ;;
  13709. ia64*)
  13710. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  13711. ;;
  13712. *)
  13713. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13714. ;;
  13715. esac
  13716. else
  13717. case $host_cpu in
  13718. hppa*64*)
  13719. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13720. ;;
  13721. ia64*)
  13722. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  13723. ;;
  13724. *)
  13725. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13726. ;;
  13727. esac
  13728. fi
  13729. if test "$with_gnu_ld" = no; then
  13730. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13731. hardcode_libdir_separator_F77=:
  13732. case $host_cpu in
  13733. hppa*64*|ia64*)
  13734. hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  13735. hardcode_direct_F77=no
  13736. hardcode_shlibpath_var_F77=no
  13737. ;;
  13738. *)
  13739. hardcode_direct_F77=yes
  13740. export_dynamic_flag_spec_F77='${wl}-E'
  13741. # hardcode_minus_L: Not really in the search PATH,
  13742. # but as the default location of the library.
  13743. hardcode_minus_L_F77=yes
  13744. ;;
  13745. esac
  13746. fi
  13747. ;;
  13748. irix5* | irix6* | nonstopux*)
  13749. if test "$GCC" = yes; then
  13750. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  13751. else
  13752. archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  13753. hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  13754. fi
  13755. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13756. hardcode_libdir_separator_F77=:
  13757. link_all_deplibs_F77=yes
  13758. ;;
  13759. netbsd* | netbsdelf*-gnu)
  13760. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13761. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  13762. else
  13763. archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  13764. fi
  13765. hardcode_libdir_flag_spec_F77='-R$libdir'
  13766. hardcode_direct_F77=yes
  13767. hardcode_shlibpath_var_F77=no
  13768. ;;
  13769. newsos6)
  13770. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13771. hardcode_direct_F77=yes
  13772. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13773. hardcode_libdir_separator_F77=:
  13774. hardcode_shlibpath_var_F77=no
  13775. ;;
  13776. openbsd*)
  13777. hardcode_direct_F77=yes
  13778. hardcode_shlibpath_var_F77=no
  13779. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13780. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13781. archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  13782. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  13783. export_dynamic_flag_spec_F77='${wl}-E'
  13784. else
  13785. case $host_os in
  13786. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  13787. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13788. hardcode_libdir_flag_spec_F77='-R$libdir'
  13789. ;;
  13790. *)
  13791. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13792. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  13793. ;;
  13794. esac
  13795. fi
  13796. ;;
  13797. os2*)
  13798. hardcode_libdir_flag_spec_F77='-L$libdir'
  13799. hardcode_minus_L_F77=yes
  13800. allow_undefined_flag_F77=unsupported
  13801. archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  13802. old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  13803. ;;
  13804. osf3*)
  13805. if test "$GCC" = yes; then
  13806. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  13807. archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  13808. else
  13809. allow_undefined_flag_F77=' -expect_unresolved \*'
  13810. archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  13811. fi
  13812. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13813. hardcode_libdir_separator_F77=:
  13814. ;;
  13815. osf4* | osf5*) # as osf3* with the addition of -msym flag
  13816. if test "$GCC" = yes; then
  13817. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  13818. archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  13819. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13820. else
  13821. allow_undefined_flag_F77=' -expect_unresolved \*'
  13822. archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  13823. archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  13824. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  13825. # Both c and cxx compiler support -rpath directly
  13826. hardcode_libdir_flag_spec_F77='-rpath $libdir'
  13827. fi
  13828. hardcode_libdir_separator_F77=:
  13829. ;;
  13830. solaris*)
  13831. no_undefined_flag_F77=' -z text'
  13832. if test "$GCC" = yes; then
  13833. wlarc='${wl}'
  13834. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13835. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13836. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  13837. else
  13838. wlarc=''
  13839. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13840. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13841. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  13842. fi
  13843. hardcode_libdir_flag_spec_F77='-R$libdir'
  13844. hardcode_shlibpath_var_F77=no
  13845. case $host_os in
  13846. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13847. *)
  13848. # The compiler driver will combine linker options so we
  13849. # cannot just pass the convience library names through
  13850. # without $wl, iff we do not link with $LD.
  13851. # Luckily, gcc supports the same syntax we need for Sun Studio.
  13852. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13853. case $wlarc in
  13854. '')
  13855. whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
  13856. *)
  13857. whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  13858. esac ;;
  13859. esac
  13860. link_all_deplibs_F77=yes
  13861. ;;
  13862. sunos4*)
  13863. if test "x$host_vendor" = xsequent; then
  13864. # Use $CC to link under sequent, because it throws in some extra .o
  13865. # files that make .init and .fini sections work.
  13866. archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  13867. else
  13868. archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  13869. fi
  13870. hardcode_libdir_flag_spec_F77='-L$libdir'
  13871. hardcode_direct_F77=yes
  13872. hardcode_minus_L_F77=yes
  13873. hardcode_shlibpath_var_F77=no
  13874. ;;
  13875. sysv4)
  13876. case $host_vendor in
  13877. sni)
  13878. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13879. hardcode_direct_F77=yes # is this really true???
  13880. ;;
  13881. siemens)
  13882. ## LD is ld it makes a PLAMLIB
  13883. ## CC just makes a GrossModule.
  13884. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  13885. reload_cmds_F77='$CC -r -o $output$reload_objs'
  13886. hardcode_direct_F77=no
  13887. ;;
  13888. motorola)
  13889. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13890. hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  13891. ;;
  13892. esac
  13893. runpath_var='LD_RUN_PATH'
  13894. hardcode_shlibpath_var_F77=no
  13895. ;;
  13896. sysv4.3*)
  13897. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13898. hardcode_shlibpath_var_F77=no
  13899. export_dynamic_flag_spec_F77='-Bexport'
  13900. ;;
  13901. sysv4*MP*)
  13902. if test -d /usr/nec; then
  13903. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13904. hardcode_shlibpath_var_F77=no
  13905. runpath_var=LD_RUN_PATH
  13906. hardcode_runpath_var=yes
  13907. ld_shlibs_F77=yes
  13908. fi
  13909. ;;
  13910. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  13911. no_undefined_flag_F77='${wl}-z,text'
  13912. archive_cmds_need_lc_F77=no
  13913. hardcode_shlibpath_var_F77=no
  13914. runpath_var='LD_RUN_PATH'
  13915. if test "$GCC" = yes; then
  13916. archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13917. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13918. else
  13919. archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13920. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13921. fi
  13922. ;;
  13923. sysv5* | sco3.2v5* | sco5v6*)
  13924. # Note: We can NOT use -z defs as we might desire, because we do not
  13925. # link with -lc, and that would cause any symbols used from libc to
  13926. # always be unresolved, which means just about no library would
  13927. # ever link correctly. If we're not using GNU ld we use -z text
  13928. # though, which does catch some bad symbols but isn't as heavy-handed
  13929. # as -z defs.
  13930. no_undefined_flag_F77='${wl}-z,text'
  13931. allow_undefined_flag_F77='${wl}-z,nodefs'
  13932. archive_cmds_need_lc_F77=no
  13933. hardcode_shlibpath_var_F77=no
  13934. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  13935. hardcode_libdir_separator_F77=':'
  13936. link_all_deplibs_F77=yes
  13937. export_dynamic_flag_spec_F77='${wl}-Bexport'
  13938. runpath_var='LD_RUN_PATH'
  13939. if test "$GCC" = yes; then
  13940. archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13941. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13942. else
  13943. archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13944. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13945. fi
  13946. ;;
  13947. uts4*)
  13948. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13949. hardcode_libdir_flag_spec_F77='-L$libdir'
  13950. hardcode_shlibpath_var_F77=no
  13951. ;;
  13952. *)
  13953. ld_shlibs_F77=no
  13954. ;;
  13955. esac
  13956. fi
  13957. { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  13958. echo "${ECHO_T}$ld_shlibs_F77" >&6; }
  13959. test "$ld_shlibs_F77" = no && can_build_shared=no
  13960. #
  13961. # Do we need to explicitly link libc?
  13962. #
  13963. case "x$archive_cmds_need_lc_F77" in
  13964. x|xyes)
  13965. # Assume -lc should be added
  13966. archive_cmds_need_lc_F77=yes
  13967. if test "$enable_shared" = yes && test "$GCC" = yes; then
  13968. case $archive_cmds_F77 in
  13969. *'~'*)
  13970. # FIXME: we may have to deal with multi-command sequences.
  13971. ;;
  13972. '$CC '*)
  13973. # Test whether the compiler implicitly links with -lc since on some
  13974. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13975. # to ld, don't add -lc before -lgcc.
  13976. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  13977. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  13978. $rm conftest*
  13979. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13980. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13981. (eval $ac_compile) 2>&5
  13982. ac_status=$?
  13983. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13984. (exit $ac_status); } 2>conftest.err; then
  13985. soname=conftest
  13986. lib=conftest
  13987. libobjs=conftest.$ac_objext
  13988. deplibs=
  13989. wl=$lt_prog_compiler_wl_F77
  13990. pic_flag=$lt_prog_compiler_pic_F77
  13991. compiler_flags=-v
  13992. linker_flags=-v
  13993. verstring=
  13994. output_objdir=.
  13995. libname=conftest
  13996. lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  13997. allow_undefined_flag_F77=
  13998. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  13999. (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14000. ac_status=$?
  14001. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14002. (exit $ac_status); }
  14003. then
  14004. archive_cmds_need_lc_F77=no
  14005. else
  14006. archive_cmds_need_lc_F77=yes
  14007. fi
  14008. allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  14009. else
  14010. cat conftest.err 1>&5
  14011. fi
  14012. $rm conftest*
  14013. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  14014. echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
  14015. ;;
  14016. esac
  14017. fi
  14018. ;;
  14019. esac
  14020. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  14021. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  14022. library_names_spec=
  14023. libname_spec='lib$name'
  14024. soname_spec=
  14025. shrext_cmds=".so"
  14026. postinstall_cmds=
  14027. postuninstall_cmds=
  14028. finish_cmds=
  14029. finish_eval=
  14030. shlibpath_var=
  14031. shlibpath_overrides_runpath=unknown
  14032. version_type=none
  14033. dynamic_linker="$host_os ld.so"
  14034. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14035. if test "$GCC" = yes; then
  14036. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  14037. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  14038. # if the path contains ";" then we assume it to be the separator
  14039. # otherwise default to the standard path separator (i.e. ":") - it is
  14040. # assumed that no part of a normal pathname contains ";" but that should
  14041. # okay in the real world where ";" in dirpaths is itself problematic.
  14042. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14043. else
  14044. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14045. fi
  14046. else
  14047. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  14048. fi
  14049. need_lib_prefix=unknown
  14050. hardcode_into_libs=no
  14051. # when you set need_version to no, make sure it does not cause -set_version
  14052. # flags to be left without arguments
  14053. need_version=unknown
  14054. case $host_os in
  14055. aix3*)
  14056. version_type=linux
  14057. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  14058. shlibpath_var=LIBPATH
  14059. # AIX 3 has no versioning support, so we append a major version to the name.
  14060. soname_spec='${libname}${release}${shared_ext}$major'
  14061. ;;
  14062. aix4* | aix5*)
  14063. version_type=linux
  14064. need_lib_prefix=no
  14065. need_version=no
  14066. hardcode_into_libs=yes
  14067. if test "$host_cpu" = ia64; then
  14068. # AIX 5 supports IA64
  14069. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  14070. shlibpath_var=LD_LIBRARY_PATH
  14071. else
  14072. # With GCC up to 2.95.x, collect2 would create an import file
  14073. # for dependence libraries. The import file would start with
  14074. # the line `#! .'. This would cause the generated library to
  14075. # depend on `.', always an invalid library. This was fixed in
  14076. # development snapshots of GCC prior to 3.0.
  14077. case $host_os in
  14078. aix4 | aix4.[01] | aix4.[01].*)
  14079. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14080. echo ' yes '
  14081. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  14082. :
  14083. else
  14084. can_build_shared=no
  14085. fi
  14086. ;;
  14087. esac
  14088. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  14089. # soname into executable. Probably we can add versioning support to
  14090. # collect2, so additional links can be useful in future.
  14091. if test "$aix_use_runtimelinking" = yes; then
  14092. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14093. # instead of lib<name>.a to let people know that these are not
  14094. # typical AIX shared libraries.
  14095. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14096. else
  14097. # We preserve .a as extension for shared libraries through AIX4.2
  14098. # and later when we are not doing run time linking.
  14099. library_names_spec='${libname}${release}.a $libname.a'
  14100. soname_spec='${libname}${release}${shared_ext}$major'
  14101. fi
  14102. shlibpath_var=LIBPATH
  14103. fi
  14104. ;;
  14105. amigaos*)
  14106. library_names_spec='$libname.ixlibrary $libname.a'
  14107. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14108. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  14109. ;;
  14110. beos*)
  14111. library_names_spec='${libname}${shared_ext}'
  14112. dynamic_linker="$host_os ld.so"
  14113. shlibpath_var=LIBRARY_PATH
  14114. ;;
  14115. bsdi[45]*)
  14116. version_type=linux
  14117. need_version=no
  14118. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14119. soname_spec='${libname}${release}${shared_ext}$major'
  14120. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14121. shlibpath_var=LD_LIBRARY_PATH
  14122. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14123. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14124. # the default ld.so.conf also contains /usr/contrib/lib and
  14125. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14126. # libtool to hard-code these into programs
  14127. ;;
  14128. cygwin* | mingw* | pw32*)
  14129. version_type=windows
  14130. shrext_cmds=".dll"
  14131. need_version=no
  14132. need_lib_prefix=no
  14133. case $GCC,$host_os in
  14134. yes,cygwin* | yes,mingw* | yes,pw32*)
  14135. library_names_spec='$libname.dll.a'
  14136. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14137. postinstall_cmds='base_file=`basename \${file}`~
  14138. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  14139. dldir=$destdir/`dirname \$dlpath`~
  14140. test -d \$dldir || mkdir -p \$dldir~
  14141. $install_prog $dir/$dlname \$dldir/$dlname~
  14142. chmod a+x \$dldir/$dlname'
  14143. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14144. dlpath=$dir/\$dldll~
  14145. $rm \$dlpath'
  14146. shlibpath_overrides_runpath=yes
  14147. case $host_os in
  14148. cygwin*)
  14149. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14150. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14151. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  14152. ;;
  14153. mingw*)
  14154. # MinGW DLLs use traditional 'lib' prefix
  14155. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14156. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  14157. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  14158. # It is most probably a Windows format PATH printed by
  14159. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  14160. # path with ; separators, and with drive letters. We can handle the
  14161. # drive letters (cygwin fileutils understands them), so leave them,
  14162. # especially as we might pass files found there to a mingw objdump,
  14163. # which wouldn't understand a cygwinified path. Ahh.
  14164. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14165. else
  14166. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14167. fi
  14168. ;;
  14169. pw32*)
  14170. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14171. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14172. ;;
  14173. esac
  14174. ;;
  14175. *)
  14176. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  14177. ;;
  14178. esac
  14179. dynamic_linker='Win32 ld.exe'
  14180. # FIXME: first we should search . and the directory the executable is in
  14181. shlibpath_var=PATH
  14182. ;;
  14183. darwin* | rhapsody*)
  14184. dynamic_linker="$host_os dyld"
  14185. version_type=darwin
  14186. need_lib_prefix=no
  14187. need_version=no
  14188. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  14189. soname_spec='${libname}${release}${major}$shared_ext'
  14190. shlibpath_overrides_runpath=yes
  14191. shlibpath_var=DYLD_LIBRARY_PATH
  14192. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14193. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  14194. if test "$GCC" = yes; then
  14195. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  14196. else
  14197. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  14198. fi
  14199. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14200. ;;
  14201. dgux*)
  14202. version_type=linux
  14203. need_lib_prefix=no
  14204. need_version=no
  14205. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  14206. soname_spec='${libname}${release}${shared_ext}$major'
  14207. shlibpath_var=LD_LIBRARY_PATH
  14208. ;;
  14209. freebsd1*)
  14210. dynamic_linker=no
  14211. ;;
  14212. freebsd* | dragonfly*)
  14213. # DragonFly does not have aout. When/if they implement a new
  14214. # versioning mechanism, adjust this.
  14215. if test -x /usr/bin/objformat; then
  14216. objformat=`/usr/bin/objformat`
  14217. else
  14218. case $host_os in
  14219. freebsd[123]*) objformat=aout ;;
  14220. *) objformat=elf ;;
  14221. esac
  14222. fi
  14223. version_type=freebsd-$objformat
  14224. case $version_type in
  14225. freebsd-elf*)
  14226. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  14227. need_version=no
  14228. need_lib_prefix=no
  14229. ;;
  14230. freebsd-*)
  14231. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  14232. need_version=yes
  14233. ;;
  14234. esac
  14235. shlibpath_var=LD_LIBRARY_PATH
  14236. case $host_os in
  14237. freebsd2*)
  14238. shlibpath_overrides_runpath=yes
  14239. ;;
  14240. freebsd3.[01]* | freebsdelf3.[01]*)
  14241. shlibpath_overrides_runpath=yes
  14242. hardcode_into_libs=yes
  14243. ;;
  14244. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14245. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14246. shlibpath_overrides_runpath=no
  14247. hardcode_into_libs=yes
  14248. ;;
  14249. freebsd*) # from 4.6 on
  14250. shlibpath_overrides_runpath=yes
  14251. hardcode_into_libs=yes
  14252. ;;
  14253. esac
  14254. ;;
  14255. gnu*)
  14256. version_type=linux
  14257. need_lib_prefix=no
  14258. need_version=no
  14259. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  14260. soname_spec='${libname}${release}${shared_ext}$major'
  14261. shlibpath_var=LD_LIBRARY_PATH
  14262. hardcode_into_libs=yes
  14263. ;;
  14264. hpux9* | hpux10* | hpux11*)
  14265. # Give a soname corresponding to the major version so that dld.sl refuses to
  14266. # link against other versions.
  14267. version_type=sunos
  14268. need_lib_prefix=no
  14269. need_version=no
  14270. case $host_cpu in
  14271. ia64*)
  14272. shrext_cmds='.so'
  14273. hardcode_into_libs=yes
  14274. dynamic_linker="$host_os dld.so"
  14275. shlibpath_var=LD_LIBRARY_PATH
  14276. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14277. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14278. soname_spec='${libname}${release}${shared_ext}$major'
  14279. if test "X$HPUX_IA64_MODE" = X32; then
  14280. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14281. else
  14282. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14283. fi
  14284. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14285. ;;
  14286. hppa*64*)
  14287. shrext_cmds='.sl'
  14288. hardcode_into_libs=yes
  14289. dynamic_linker="$host_os dld.sl"
  14290. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14291. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14292. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14293. soname_spec='${libname}${release}${shared_ext}$major'
  14294. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14295. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14296. ;;
  14297. *)
  14298. shrext_cmds='.sl'
  14299. dynamic_linker="$host_os dld.sl"
  14300. shlibpath_var=SHLIB_PATH
  14301. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14302. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14303. soname_spec='${libname}${release}${shared_ext}$major'
  14304. ;;
  14305. esac
  14306. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  14307. postinstall_cmds='chmod 555 $lib'
  14308. ;;
  14309. interix3*)
  14310. version_type=linux
  14311. need_lib_prefix=no
  14312. need_version=no
  14313. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14314. soname_spec='${libname}${release}${shared_ext}$major'
  14315. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14316. shlibpath_var=LD_LIBRARY_PATH
  14317. shlibpath_overrides_runpath=no
  14318. hardcode_into_libs=yes
  14319. ;;
  14320. irix5* | irix6* | nonstopux*)
  14321. case $host_os in
  14322. nonstopux*) version_type=nonstopux ;;
  14323. *)
  14324. if test "$lt_cv_prog_gnu_ld" = yes; then
  14325. version_type=linux
  14326. else
  14327. version_type=irix
  14328. fi ;;
  14329. esac
  14330. need_lib_prefix=no
  14331. need_version=no
  14332. soname_spec='${libname}${release}${shared_ext}$major'
  14333. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  14334. case $host_os in
  14335. irix5* | nonstopux*)
  14336. libsuff= shlibsuff=
  14337. ;;
  14338. *)
  14339. case $LD in # libtool.m4 will add one of these switches to LD
  14340. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14341. libsuff= shlibsuff= libmagic=32-bit;;
  14342. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14343. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14344. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14345. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14346. *) libsuff= shlibsuff= libmagic=never-match;;
  14347. esac
  14348. ;;
  14349. esac
  14350. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14351. shlibpath_overrides_runpath=no
  14352. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  14353. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  14354. hardcode_into_libs=yes
  14355. ;;
  14356. # No shared lib support for Linux oldld, aout, or coff.
  14357. linux*oldld* | linux*aout* | linux*coff*)
  14358. dynamic_linker=no
  14359. ;;
  14360. # This must be Linux ELF.
  14361. linux* | k*bsd*-gnu)
  14362. version_type=linux
  14363. need_lib_prefix=no
  14364. need_version=no
  14365. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14366. soname_spec='${libname}${release}${shared_ext}$major'
  14367. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14368. shlibpath_var=LD_LIBRARY_PATH
  14369. shlibpath_overrides_runpath=no
  14370. # This implies no fast_install, which is unacceptable.
  14371. # Some rework will be needed to allow for fast_install
  14372. # before this can be enabled.
  14373. hardcode_into_libs=yes
  14374. # Append ld.so.conf contents to the search path
  14375. if test -f /etc/ld.so.conf; then
  14376. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  14377. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  14378. fi
  14379. # We used to test for /lib/ld.so.1 and disable shared libraries on
  14380. # powerpc, because MkLinux only supported shared libraries with the
  14381. # GNU dynamic linker. Since this was broken with cross compilers,
  14382. # most powerpc-linux boxes support dynamic linking these days and
  14383. # people can always --disable-shared, the test was removed, and we
  14384. # assume the GNU/Linux dynamic linker is in use.
  14385. dynamic_linker='GNU/Linux ld.so'
  14386. ;;
  14387. netbsdelf*-gnu)
  14388. version_type=linux
  14389. need_lib_prefix=no
  14390. need_version=no
  14391. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14392. soname_spec='${libname}${release}${shared_ext}$major'
  14393. shlibpath_var=LD_LIBRARY_PATH
  14394. shlibpath_overrides_runpath=no
  14395. hardcode_into_libs=yes
  14396. dynamic_linker='NetBSD ld.elf_so'
  14397. ;;
  14398. netbsd*)
  14399. version_type=sunos
  14400. need_lib_prefix=no
  14401. need_version=no
  14402. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14403. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14404. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14405. dynamic_linker='NetBSD (a.out) ld.so'
  14406. else
  14407. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14408. soname_spec='${libname}${release}${shared_ext}$major'
  14409. dynamic_linker='NetBSD ld.elf_so'
  14410. fi
  14411. shlibpath_var=LD_LIBRARY_PATH
  14412. shlibpath_overrides_runpath=yes
  14413. hardcode_into_libs=yes
  14414. ;;
  14415. newsos6)
  14416. version_type=linux
  14417. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14418. shlibpath_var=LD_LIBRARY_PATH
  14419. shlibpath_overrides_runpath=yes
  14420. ;;
  14421. nto-qnx*)
  14422. version_type=linux
  14423. need_lib_prefix=no
  14424. need_version=no
  14425. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14426. soname_spec='${libname}${release}${shared_ext}$major'
  14427. shlibpath_var=LD_LIBRARY_PATH
  14428. shlibpath_overrides_runpath=yes
  14429. ;;
  14430. openbsd*)
  14431. version_type=sunos
  14432. sys_lib_dlsearch_path_spec="/usr/lib"
  14433. need_lib_prefix=no
  14434. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  14435. case $host_os in
  14436. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  14437. *) need_version=no ;;
  14438. esac
  14439. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14440. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14441. shlibpath_var=LD_LIBRARY_PATH
  14442. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  14443. case $host_os in
  14444. openbsd2.[89] | openbsd2.[89].*)
  14445. shlibpath_overrides_runpath=no
  14446. ;;
  14447. *)
  14448. shlibpath_overrides_runpath=yes
  14449. ;;
  14450. esac
  14451. else
  14452. shlibpath_overrides_runpath=yes
  14453. fi
  14454. ;;
  14455. os2*)
  14456. libname_spec='$name'
  14457. shrext_cmds=".dll"
  14458. need_lib_prefix=no
  14459. library_names_spec='$libname${shared_ext} $libname.a'
  14460. dynamic_linker='OS/2 ld.exe'
  14461. shlibpath_var=LIBPATH
  14462. ;;
  14463. osf3* | osf4* | osf5*)
  14464. version_type=osf
  14465. need_lib_prefix=no
  14466. need_version=no
  14467. soname_spec='${libname}${release}${shared_ext}$major'
  14468. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14469. shlibpath_var=LD_LIBRARY_PATH
  14470. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  14471. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  14472. ;;
  14473. solaris*)
  14474. version_type=linux
  14475. need_lib_prefix=no
  14476. need_version=no
  14477. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14478. soname_spec='${libname}${release}${shared_ext}$major'
  14479. shlibpath_var=LD_LIBRARY_PATH
  14480. shlibpath_overrides_runpath=yes
  14481. hardcode_into_libs=yes
  14482. # ldd complains unless libraries are executable
  14483. postinstall_cmds='chmod +x $lib'
  14484. ;;
  14485. sunos4*)
  14486. version_type=sunos
  14487. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14488. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  14489. shlibpath_var=LD_LIBRARY_PATH
  14490. shlibpath_overrides_runpath=yes
  14491. if test "$with_gnu_ld" = yes; then
  14492. need_lib_prefix=no
  14493. fi
  14494. need_version=yes
  14495. ;;
  14496. sysv4 | sysv4.3*)
  14497. version_type=linux
  14498. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14499. soname_spec='${libname}${release}${shared_ext}$major'
  14500. shlibpath_var=LD_LIBRARY_PATH
  14501. case $host_vendor in
  14502. sni)
  14503. shlibpath_overrides_runpath=no
  14504. need_lib_prefix=no
  14505. export_dynamic_flag_spec='${wl}-Blargedynsym'
  14506. runpath_var=LD_RUN_PATH
  14507. ;;
  14508. siemens)
  14509. need_lib_prefix=no
  14510. ;;
  14511. motorola)
  14512. need_lib_prefix=no
  14513. need_version=no
  14514. shlibpath_overrides_runpath=no
  14515. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  14516. ;;
  14517. esac
  14518. ;;
  14519. sysv4*MP*)
  14520. if test -d /usr/nec ;then
  14521. version_type=linux
  14522. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  14523. soname_spec='$libname${shared_ext}.$major'
  14524. shlibpath_var=LD_LIBRARY_PATH
  14525. fi
  14526. ;;
  14527. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  14528. version_type=freebsd-elf
  14529. need_lib_prefix=no
  14530. need_version=no
  14531. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  14532. soname_spec='${libname}${release}${shared_ext}$major'
  14533. shlibpath_var=LD_LIBRARY_PATH
  14534. hardcode_into_libs=yes
  14535. if test "$with_gnu_ld" = yes; then
  14536. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  14537. shlibpath_overrides_runpath=no
  14538. else
  14539. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  14540. shlibpath_overrides_runpath=yes
  14541. case $host_os in
  14542. sco3.2v5*)
  14543. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  14544. ;;
  14545. esac
  14546. fi
  14547. sys_lib_dlsearch_path_spec='/usr/lib'
  14548. ;;
  14549. uts4*)
  14550. version_type=linux
  14551. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14552. soname_spec='${libname}${release}${shared_ext}$major'
  14553. shlibpath_var=LD_LIBRARY_PATH
  14554. ;;
  14555. *)
  14556. dynamic_linker=no
  14557. ;;
  14558. esac
  14559. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  14560. echo "${ECHO_T}$dynamic_linker" >&6; }
  14561. test "$dynamic_linker" = no && can_build_shared=no
  14562. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  14563. if test "$GCC" = yes; then
  14564. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  14565. fi
  14566. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  14567. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  14568. hardcode_action_F77=
  14569. if test -n "$hardcode_libdir_flag_spec_F77" || \
  14570. test -n "$runpath_var_F77" || \
  14571. test "X$hardcode_automatic_F77" = "Xyes" ; then
  14572. # We can hardcode non-existant directories.
  14573. if test "$hardcode_direct_F77" != no &&
  14574. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14575. # have to relink, otherwise we might link with an installed library
  14576. # when we should be linking with a yet-to-be-installed one
  14577. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  14578. test "$hardcode_minus_L_F77" != no; then
  14579. # Linking always hardcodes the temporary library directory.
  14580. hardcode_action_F77=relink
  14581. else
  14582. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14583. hardcode_action_F77=immediate
  14584. fi
  14585. else
  14586. # We cannot hardcode anything, or else we can only hardcode existing
  14587. # directories.
  14588. hardcode_action_F77=unsupported
  14589. fi
  14590. { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  14591. echo "${ECHO_T}$hardcode_action_F77" >&6; }
  14592. if test "$hardcode_action_F77" = relink; then
  14593. # Fast installation is not supported
  14594. enable_fast_install=no
  14595. elif test "$shlibpath_overrides_runpath" = yes ||
  14596. test "$enable_shared" = no; then
  14597. # Fast installation is not necessary
  14598. enable_fast_install=needless
  14599. fi
  14600. # The else clause should only fire when bootstrapping the
  14601. # libtool distribution, otherwise you forgot to ship ltmain.sh
  14602. # with your package, and you will get complaints that there are
  14603. # no rules to generate ltmain.sh.
  14604. if test -f "$ltmain"; then
  14605. # See if we are running on zsh, and set the options which allow our commands through
  14606. # without removal of \ escapes.
  14607. if test -n "${ZSH_VERSION+set}" ; then
  14608. setopt NO_GLOB_SUBST
  14609. fi
  14610. # Now quote all the things that may contain metacharacters while being
  14611. # careful not to overquote the AC_SUBSTed values. We take copies of the
  14612. # variables and quote the copies for generation of the libtool script.
  14613. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  14614. SED SHELL STRIP \
  14615. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  14616. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  14617. deplibs_check_method reload_flag reload_cmds need_locks \
  14618. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  14619. lt_cv_sys_global_symbol_to_c_name_address \
  14620. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  14621. old_postinstall_cmds old_postuninstall_cmds \
  14622. compiler_F77 \
  14623. CC_F77 \
  14624. LD_F77 \
  14625. lt_prog_compiler_wl_F77 \
  14626. lt_prog_compiler_pic_F77 \
  14627. lt_prog_compiler_static_F77 \
  14628. lt_prog_compiler_no_builtin_flag_F77 \
  14629. export_dynamic_flag_spec_F77 \
  14630. thread_safe_flag_spec_F77 \
  14631. whole_archive_flag_spec_F77 \
  14632. enable_shared_with_static_runtimes_F77 \
  14633. old_archive_cmds_F77 \
  14634. old_archive_from_new_cmds_F77 \
  14635. predep_objects_F77 \
  14636. postdep_objects_F77 \
  14637. predeps_F77 \
  14638. postdeps_F77 \
  14639. compiler_lib_search_path_F77 \
  14640. archive_cmds_F77 \
  14641. archive_expsym_cmds_F77 \
  14642. postinstall_cmds_F77 \
  14643. postuninstall_cmds_F77 \
  14644. old_archive_from_expsyms_cmds_F77 \
  14645. allow_undefined_flag_F77 \
  14646. no_undefined_flag_F77 \
  14647. export_symbols_cmds_F77 \
  14648. hardcode_libdir_flag_spec_F77 \
  14649. hardcode_libdir_flag_spec_ld_F77 \
  14650. hardcode_libdir_separator_F77 \
  14651. hardcode_automatic_F77 \
  14652. module_cmds_F77 \
  14653. module_expsym_cmds_F77 \
  14654. lt_cv_prog_compiler_c_o_F77 \
  14655. exclude_expsyms_F77 \
  14656. include_expsyms_F77; do
  14657. case $var in
  14658. old_archive_cmds_F77 | \
  14659. old_archive_from_new_cmds_F77 | \
  14660. archive_cmds_F77 | \
  14661. archive_expsym_cmds_F77 | \
  14662. module_cmds_F77 | \
  14663. module_expsym_cmds_F77 | \
  14664. old_archive_from_expsyms_cmds_F77 | \
  14665. export_symbols_cmds_F77 | \
  14666. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  14667. postinstall_cmds | postuninstall_cmds | \
  14668. old_postinstall_cmds | old_postuninstall_cmds | \
  14669. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  14670. # Double-quote double-evaled strings.
  14671. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  14672. ;;
  14673. *)
  14674. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  14675. ;;
  14676. esac
  14677. done
  14678. case $lt_echo in
  14679. *'\$0 --fallback-echo"')
  14680. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  14681. ;;
  14682. esac
  14683. cfgfile="$ofile"
  14684. cat <<__EOF__ >> "$cfgfile"
  14685. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  14686. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  14687. # Shell to use when invoking shell scripts.
  14688. SHELL=$lt_SHELL
  14689. # Whether or not to build shared libraries.
  14690. build_libtool_libs=$enable_shared
  14691. # Whether or not to build static libraries.
  14692. build_old_libs=$enable_static
  14693. # Whether or not to add -lc for building shared libraries.
  14694. build_libtool_need_lc=$archive_cmds_need_lc_F77
  14695. # Whether or not to disallow shared libs when runtime libs are static
  14696. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  14697. # Whether or not to optimize for fast installation.
  14698. fast_install=$enable_fast_install
  14699. # The host system.
  14700. host_alias=$host_alias
  14701. host=$host
  14702. host_os=$host_os
  14703. # The build system.
  14704. build_alias=$build_alias
  14705. build=$build
  14706. build_os=$build_os
  14707. # An echo program that does not interpret backslashes.
  14708. echo=$lt_echo
  14709. # The archiver.
  14710. AR=$lt_AR
  14711. AR_FLAGS=$lt_AR_FLAGS
  14712. # A C compiler.
  14713. LTCC=$lt_LTCC
  14714. # LTCC compiler flags.
  14715. LTCFLAGS=$lt_LTCFLAGS
  14716. # A language-specific compiler.
  14717. CC=$lt_compiler_F77
  14718. # Is the compiler the GNU C compiler?
  14719. with_gcc=$GCC_F77
  14720. # An ERE matcher.
  14721. EGREP=$lt_EGREP
  14722. # The linker used to build libraries.
  14723. LD=$lt_LD_F77
  14724. # Whether we need hard or soft links.
  14725. LN_S=$lt_LN_S
  14726. # A BSD-compatible nm program.
  14727. NM=$lt_NM
  14728. # A symbol stripping program
  14729. STRIP=$lt_STRIP
  14730. # Used to examine libraries when file_magic_cmd begins "file"
  14731. MAGIC_CMD=$MAGIC_CMD
  14732. # Used on cygwin: DLL creation program.
  14733. DLLTOOL="$DLLTOOL"
  14734. # Used on cygwin: object dumper.
  14735. OBJDUMP="$OBJDUMP"
  14736. # Used on cygwin: assembler.
  14737. AS="$AS"
  14738. # The name of the directory that contains temporary libtool files.
  14739. objdir=$objdir
  14740. # How to create reloadable object files.
  14741. reload_flag=$lt_reload_flag
  14742. reload_cmds=$lt_reload_cmds
  14743. # How to pass a linker flag through the compiler.
  14744. wl=$lt_lt_prog_compiler_wl_F77
  14745. # Object file suffix (normally "o").
  14746. objext="$ac_objext"
  14747. # Old archive suffix (normally "a").
  14748. libext="$libext"
  14749. # Shared library suffix (normally ".so").
  14750. shrext_cmds='$shrext_cmds'
  14751. # Executable file suffix (normally "").
  14752. exeext="$exeext"
  14753. # Additional compiler flags for building library objects.
  14754. pic_flag=$lt_lt_prog_compiler_pic_F77
  14755. pic_mode=$pic_mode
  14756. # What is the maximum length of a command?
  14757. max_cmd_len=$lt_cv_sys_max_cmd_len
  14758. # Does compiler simultaneously support -c and -o options?
  14759. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  14760. # Must we lock files when doing compilation?
  14761. need_locks=$lt_need_locks
  14762. # Do we need the lib prefix for modules?
  14763. need_lib_prefix=$need_lib_prefix
  14764. # Do we need a version for libraries?
  14765. need_version=$need_version
  14766. # Whether dlopen is supported.
  14767. dlopen_support=$enable_dlopen
  14768. # Whether dlopen of programs is supported.
  14769. dlopen_self=$enable_dlopen_self
  14770. # Whether dlopen of statically linked programs is supported.
  14771. dlopen_self_static=$enable_dlopen_self_static
  14772. # Compiler flag to prevent dynamic linking.
  14773. link_static_flag=$lt_lt_prog_compiler_static_F77
  14774. # Compiler flag to turn off builtin functions.
  14775. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  14776. # Compiler flag to allow reflexive dlopens.
  14777. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  14778. # Compiler flag to generate shared objects directly from archives.
  14779. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  14780. # Compiler flag to generate thread-safe objects.
  14781. thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  14782. # Library versioning type.
  14783. version_type=$version_type
  14784. # Format of library name prefix.
  14785. libname_spec=$lt_libname_spec
  14786. # List of archive names. First name is the real one, the rest are links.
  14787. # The last name is the one that the linker finds with -lNAME.
  14788. library_names_spec=$lt_library_names_spec
  14789. # The coded name of the library, if different from the real name.
  14790. soname_spec=$lt_soname_spec
  14791. # Commands used to build and install an old-style archive.
  14792. RANLIB=$lt_RANLIB
  14793. old_archive_cmds=$lt_old_archive_cmds_F77
  14794. old_postinstall_cmds=$lt_old_postinstall_cmds
  14795. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14796. # Create an old-style archive from a shared archive.
  14797. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  14798. # Create a temporary old-style archive to link instead of a shared archive.
  14799. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  14800. # Commands used to build and install a shared archive.
  14801. archive_cmds=$lt_archive_cmds_F77
  14802. archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  14803. postinstall_cmds=$lt_postinstall_cmds
  14804. postuninstall_cmds=$lt_postuninstall_cmds
  14805. # Commands used to build a loadable module (assumed same as above if empty)
  14806. module_cmds=$lt_module_cmds_F77
  14807. module_expsym_cmds=$lt_module_expsym_cmds_F77
  14808. # Commands to strip libraries.
  14809. old_striplib=$lt_old_striplib
  14810. striplib=$lt_striplib
  14811. # Dependencies to place before the objects being linked to create a
  14812. # shared library.
  14813. predep_objects=$lt_predep_objects_F77
  14814. # Dependencies to place after the objects being linked to create a
  14815. # shared library.
  14816. postdep_objects=$lt_postdep_objects_F77
  14817. # Dependencies to place before the objects being linked to create a
  14818. # shared library.
  14819. predeps=$lt_predeps_F77
  14820. # Dependencies to place after the objects being linked to create a
  14821. # shared library.
  14822. postdeps=$lt_postdeps_F77
  14823. # The library search path used internally by the compiler when linking
  14824. # a shared library.
  14825. compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  14826. # Method to check whether dependent libraries are shared objects.
  14827. deplibs_check_method=$lt_deplibs_check_method
  14828. # Command to use when deplibs_check_method == file_magic.
  14829. file_magic_cmd=$lt_file_magic_cmd
  14830. # Flag that allows shared libraries with undefined symbols to be built.
  14831. allow_undefined_flag=$lt_allow_undefined_flag_F77
  14832. # Flag that forces no undefined symbols.
  14833. no_undefined_flag=$lt_no_undefined_flag_F77
  14834. # Commands used to finish a libtool library installation in a directory.
  14835. finish_cmds=$lt_finish_cmds
  14836. # Same as above, but a single script fragment to be evaled but not shown.
  14837. finish_eval=$lt_finish_eval
  14838. # Take the output of nm and produce a listing of raw symbols and C names.
  14839. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14840. # Transform the output of nm in a proper C declaration
  14841. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14842. # Transform the output of nm in a C name address pair
  14843. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14844. # This is the shared library runtime path variable.
  14845. runpath_var=$runpath_var
  14846. # This is the shared library path variable.
  14847. shlibpath_var=$shlibpath_var
  14848. # Is shlibpath searched before the hard-coded library search path?
  14849. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14850. # How to hardcode a shared library path into an executable.
  14851. hardcode_action=$hardcode_action_F77
  14852. # Whether we should hardcode library paths into libraries.
  14853. hardcode_into_libs=$hardcode_into_libs
  14854. # Flag to hardcode \$libdir into a binary during linking.
  14855. # This must work even if \$libdir does not exist.
  14856. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  14857. # If ld is used when linking, flag to hardcode \$libdir into
  14858. # a binary during linking. This must work even if \$libdir does
  14859. # not exist.
  14860. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  14861. # Whether we need a single -rpath flag with a separated argument.
  14862. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  14863. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  14864. # resulting binary.
  14865. hardcode_direct=$hardcode_direct_F77
  14866. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  14867. # resulting binary.
  14868. hardcode_minus_L=$hardcode_minus_L_F77
  14869. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  14870. # the resulting binary.
  14871. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  14872. # Set to yes if building a shared library automatically hardcodes DIR into the library
  14873. # and all subsequent libraries and executables linked against it.
  14874. hardcode_automatic=$hardcode_automatic_F77
  14875. # Variables whose values should be saved in libtool wrapper scripts and
  14876. # restored at relink time.
  14877. variables_saved_for_relink="$variables_saved_for_relink"
  14878. # Whether libtool must link a program against all its dependency libraries.
  14879. link_all_deplibs=$link_all_deplibs_F77
  14880. # Compile-time system search path for libraries
  14881. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  14882. # Run-time system search path for libraries
  14883. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  14884. # Fix the shell variable \$srcfile for the compiler.
  14885. fix_srcfile_path="$fix_srcfile_path_F77"
  14886. # Set to yes if exported symbols are required.
  14887. always_export_symbols=$always_export_symbols_F77
  14888. # The commands to list exported symbols.
  14889. export_symbols_cmds=$lt_export_symbols_cmds_F77
  14890. # The commands to extract the exported symbol list from a shared archive.
  14891. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14892. # Symbols that should not be listed in the preloaded symbols.
  14893. exclude_expsyms=$lt_exclude_expsyms_F77
  14894. # Symbols that must always be exported.
  14895. include_expsyms=$lt_include_expsyms_F77
  14896. # ### END LIBTOOL TAG CONFIG: $tagname
  14897. __EOF__
  14898. else
  14899. # If there is no Makefile yet, we rely on a make rule to execute
  14900. # `config.status --recheck' to rerun these tests and create the
  14901. # libtool script then.
  14902. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  14903. if test -f "$ltmain_in"; then
  14904. test -f Makefile && make "$ltmain"
  14905. fi
  14906. fi
  14907. ac_ext=c
  14908. ac_cpp='$CPP $CPPFLAGS'
  14909. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14910. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14911. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14912. CC="$lt_save_CC"
  14913. else
  14914. tagname=""
  14915. fi
  14916. ;;
  14917. GCJ)
  14918. if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  14919. # Source file extension for Java test sources.
  14920. ac_ext=java
  14921. # Object file extension for compiled Java test sources.
  14922. objext=o
  14923. objext_GCJ=$objext
  14924. # Code to be used in simple compile tests
  14925. lt_simple_compile_test_code="class foo {}\n"
  14926. # Code to be used in simple link tests
  14927. lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
  14928. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  14929. # If no C compiler was specified, use CC.
  14930. LTCC=${LTCC-"$CC"}
  14931. # If no C compiler flags were specified, use CFLAGS.
  14932. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  14933. # Allow CC to be a program name with arguments.
  14934. compiler=$CC
  14935. # save warnings/boilerplate of simple test code
  14936. ac_outfile=conftest.$ac_objext
  14937. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  14938. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  14939. _lt_compiler_boilerplate=`cat conftest.err`
  14940. $rm conftest*
  14941. ac_outfile=conftest.$ac_objext
  14942. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  14943. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  14944. _lt_linker_boilerplate=`cat conftest.err`
  14945. $rm conftest*
  14946. # Allow CC to be a program name with arguments.
  14947. lt_save_CC="$CC"
  14948. CC=${GCJ-"gcj"}
  14949. compiler=$CC
  14950. compiler_GCJ=$CC
  14951. for cc_temp in $compiler""; do
  14952. case $cc_temp in
  14953. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14954. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14955. \-*) ;;
  14956. *) break;;
  14957. esac
  14958. done
  14959. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  14960. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  14961. archive_cmds_need_lc_GCJ=no
  14962. old_archive_cmds_GCJ=$old_archive_cmds
  14963. lt_prog_compiler_no_builtin_flag_GCJ=
  14964. if test "$GCC" = yes; then
  14965. lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  14966. { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  14967. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  14968. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  14969. echo $ECHO_N "(cached) $ECHO_C" >&6
  14970. else
  14971. lt_cv_prog_compiler_rtti_exceptions=no
  14972. ac_outfile=conftest.$ac_objext
  14973. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14974. lt_compiler_flag="-fno-rtti -fno-exceptions"
  14975. # Insert the option either (1) after the last *FLAGS variable, or
  14976. # (2) before a word containing "conftest.", or (3) at the end.
  14977. # Note that $ac_compile itself does not contain backslashes and begins
  14978. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14979. # The option is referenced via a variable to avoid confusing sed.
  14980. lt_compile=`echo "$ac_compile" | $SED \
  14981. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14982. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14983. -e 's:$: $lt_compiler_flag:'`
  14984. (eval echo "\"\$as_me:16725: $lt_compile\"" >&5)
  14985. (eval "$lt_compile" 2>conftest.err)
  14986. ac_status=$?
  14987. cat conftest.err >&5
  14988. echo "$as_me:16729: \$? = $ac_status" >&5
  14989. if (exit $ac_status) && test -s "$ac_outfile"; then
  14990. # The compiler can only warn and ignore the option if not recognized
  14991. # So say no if there are warnings other than the usual output.
  14992. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  14993. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14994. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14995. lt_cv_prog_compiler_rtti_exceptions=yes
  14996. fi
  14997. fi
  14998. $rm conftest*
  14999. fi
  15000. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  15001. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  15002. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  15003. lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  15004. else
  15005. :
  15006. fi
  15007. fi
  15008. lt_prog_compiler_wl_GCJ=
  15009. lt_prog_compiler_pic_GCJ=
  15010. lt_prog_compiler_static_GCJ=
  15011. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  15012. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  15013. if test "$GCC" = yes; then
  15014. lt_prog_compiler_wl_GCJ='-Wl,'
  15015. lt_prog_compiler_static_GCJ='-static'
  15016. case $host_os in
  15017. aix*)
  15018. # All AIX code is PIC.
  15019. if test "$host_cpu" = ia64; then
  15020. # AIX 5 now supports IA64 processor
  15021. lt_prog_compiler_static_GCJ='-Bstatic'
  15022. fi
  15023. ;;
  15024. amigaos*)
  15025. # FIXME: we need at least 68020 code to build shared libraries, but
  15026. # adding the `-m68020' flag to GCC prevents building anything better,
  15027. # like `-m68040'.
  15028. lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  15029. ;;
  15030. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  15031. # PIC is the default for these OSes.
  15032. ;;
  15033. mingw* | pw32* | os2*)
  15034. # This hack is so that the source file can tell whether it is being
  15035. # built for inclusion in a dll (and should export symbols for example).
  15036. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  15037. ;;
  15038. darwin* | rhapsody*)
  15039. # PIC is the default on this platform
  15040. # Common symbols not allowed in MH_DYLIB files
  15041. lt_prog_compiler_pic_GCJ='-fno-common'
  15042. ;;
  15043. interix3*)
  15044. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  15045. # Instead, we relocate shared libraries at runtime.
  15046. ;;
  15047. msdosdjgpp*)
  15048. # Just because we use GCC doesn't mean we suddenly get shared libraries
  15049. # on systems that don't support them.
  15050. lt_prog_compiler_can_build_shared_GCJ=no
  15051. enable_shared=no
  15052. ;;
  15053. sysv4*MP*)
  15054. if test -d /usr/nec; then
  15055. lt_prog_compiler_pic_GCJ=-Kconform_pic
  15056. fi
  15057. ;;
  15058. hpux*)
  15059. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  15060. # not for PA HP-UX.
  15061. case $host_cpu in
  15062. hppa*64*|ia64*)
  15063. # +Z the default
  15064. ;;
  15065. *)
  15066. lt_prog_compiler_pic_GCJ='-fPIC'
  15067. ;;
  15068. esac
  15069. ;;
  15070. *)
  15071. lt_prog_compiler_pic_GCJ='-fPIC'
  15072. ;;
  15073. esac
  15074. else
  15075. # PORTME Check for flag to pass linker flags through the system compiler.
  15076. case $host_os in
  15077. aix*)
  15078. lt_prog_compiler_wl_GCJ='-Wl,'
  15079. if test "$host_cpu" = ia64; then
  15080. # AIX 5 now supports IA64 processor
  15081. lt_prog_compiler_static_GCJ='-Bstatic'
  15082. else
  15083. lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  15084. fi
  15085. ;;
  15086. darwin*)
  15087. # PIC is the default on this platform
  15088. # Common symbols not allowed in MH_DYLIB files
  15089. case $cc_basename in
  15090. xlc*)
  15091. lt_prog_compiler_pic_GCJ='-qnocommon'
  15092. lt_prog_compiler_wl_GCJ='-Wl,'
  15093. ;;
  15094. esac
  15095. ;;
  15096. mingw* | pw32* | os2*)
  15097. # This hack is so that the source file can tell whether it is being
  15098. # built for inclusion in a dll (and should export symbols for example).
  15099. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  15100. ;;
  15101. hpux9* | hpux10* | hpux11*)
  15102. lt_prog_compiler_wl_GCJ='-Wl,'
  15103. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  15104. # not for PA HP-UX.
  15105. case $host_cpu in
  15106. hppa*64*|ia64*)
  15107. # +Z the default
  15108. ;;
  15109. *)
  15110. lt_prog_compiler_pic_GCJ='+Z'
  15111. ;;
  15112. esac
  15113. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  15114. lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  15115. ;;
  15116. irix5* | irix6* | nonstopux*)
  15117. lt_prog_compiler_wl_GCJ='-Wl,'
  15118. # PIC (with -KPIC) is the default.
  15119. lt_prog_compiler_static_GCJ='-non_shared'
  15120. ;;
  15121. newsos6)
  15122. lt_prog_compiler_pic_GCJ='-KPIC'
  15123. lt_prog_compiler_static_GCJ='-Bstatic'
  15124. ;;
  15125. linux* | k*bsd*-gnu)
  15126. case $cc_basename in
  15127. icc* | ecc*)
  15128. lt_prog_compiler_wl_GCJ='-Wl,'
  15129. lt_prog_compiler_pic_GCJ='-KPIC'
  15130. lt_prog_compiler_static_GCJ='-static'
  15131. ;;
  15132. pgcc* | pgf77* | pgf90* | pgf95*)
  15133. # Portland Group compilers (*not* the Pentium gcc compiler,
  15134. # which looks to be a dead project)
  15135. lt_prog_compiler_wl_GCJ='-Wl,'
  15136. lt_prog_compiler_pic_GCJ='-fpic'
  15137. lt_prog_compiler_static_GCJ='-Bstatic'
  15138. ;;
  15139. ccc*)
  15140. lt_prog_compiler_wl_GCJ='-Wl,'
  15141. # All Alpha code is PIC.
  15142. lt_prog_compiler_static_GCJ='-non_shared'
  15143. ;;
  15144. esac
  15145. ;;
  15146. osf3* | osf4* | osf5*)
  15147. lt_prog_compiler_wl_GCJ='-Wl,'
  15148. # All OSF/1 code is PIC.
  15149. lt_prog_compiler_static_GCJ='-non_shared'
  15150. ;;
  15151. solaris*)
  15152. lt_prog_compiler_pic_GCJ='-KPIC'
  15153. lt_prog_compiler_static_GCJ='-Bstatic'
  15154. case $cc_basename in
  15155. f77* | f90* | f95*)
  15156. lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  15157. *)
  15158. lt_prog_compiler_wl_GCJ='-Wl,';;
  15159. esac
  15160. ;;
  15161. sunos4*)
  15162. lt_prog_compiler_wl_GCJ='-Qoption ld '
  15163. lt_prog_compiler_pic_GCJ='-PIC'
  15164. lt_prog_compiler_static_GCJ='-Bstatic'
  15165. ;;
  15166. sysv4 | sysv4.2uw2* | sysv4.3*)
  15167. lt_prog_compiler_wl_GCJ='-Wl,'
  15168. lt_prog_compiler_pic_GCJ='-KPIC'
  15169. lt_prog_compiler_static_GCJ='-Bstatic'
  15170. ;;
  15171. sysv4*MP*)
  15172. if test -d /usr/nec ;then
  15173. lt_prog_compiler_pic_GCJ='-Kconform_pic'
  15174. lt_prog_compiler_static_GCJ='-Bstatic'
  15175. fi
  15176. ;;
  15177. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  15178. lt_prog_compiler_wl_GCJ='-Wl,'
  15179. lt_prog_compiler_pic_GCJ='-KPIC'
  15180. lt_prog_compiler_static_GCJ='-Bstatic'
  15181. ;;
  15182. unicos*)
  15183. lt_prog_compiler_wl_GCJ='-Wl,'
  15184. lt_prog_compiler_can_build_shared_GCJ=no
  15185. ;;
  15186. uts4*)
  15187. lt_prog_compiler_pic_GCJ='-pic'
  15188. lt_prog_compiler_static_GCJ='-Bstatic'
  15189. ;;
  15190. *)
  15191. lt_prog_compiler_can_build_shared_GCJ=no
  15192. ;;
  15193. esac
  15194. fi
  15195. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  15196. echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
  15197. #
  15198. # Check to make sure the PIC flag actually works.
  15199. #
  15200. if test -n "$lt_prog_compiler_pic_GCJ"; then
  15201. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  15202. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
  15203. if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  15204. echo $ECHO_N "(cached) $ECHO_C" >&6
  15205. else
  15206. lt_prog_compiler_pic_works_GCJ=no
  15207. ac_outfile=conftest.$ac_objext
  15208. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  15209. lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  15210. # Insert the option either (1) after the last *FLAGS variable, or
  15211. # (2) before a word containing "conftest.", or (3) at the end.
  15212. # Note that $ac_compile itself does not contain backslashes and begins
  15213. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15214. # The option is referenced via a variable to avoid confusing sed.
  15215. lt_compile=`echo "$ac_compile" | $SED \
  15216. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  15217. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15218. -e 's:$: $lt_compiler_flag:'`
  15219. (eval echo "\"\$as_me:16993: $lt_compile\"" >&5)
  15220. (eval "$lt_compile" 2>conftest.err)
  15221. ac_status=$?
  15222. cat conftest.err >&5
  15223. echo "$as_me:16997: \$? = $ac_status" >&5
  15224. if (exit $ac_status) && test -s "$ac_outfile"; then
  15225. # The compiler can only warn and ignore the option if not recognized
  15226. # So say no if there are warnings other than the usual output.
  15227. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  15228. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  15229. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  15230. lt_prog_compiler_pic_works_GCJ=yes
  15231. fi
  15232. fi
  15233. $rm conftest*
  15234. fi
  15235. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  15236. echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
  15237. if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  15238. case $lt_prog_compiler_pic_GCJ in
  15239. "" | " "*) ;;
  15240. *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  15241. esac
  15242. else
  15243. lt_prog_compiler_pic_GCJ=
  15244. lt_prog_compiler_can_build_shared_GCJ=no
  15245. fi
  15246. fi
  15247. case $host_os in
  15248. # For platforms which do not support PIC, -DPIC is meaningless:
  15249. *djgpp*)
  15250. lt_prog_compiler_pic_GCJ=
  15251. ;;
  15252. *)
  15253. lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  15254. ;;
  15255. esac
  15256. #
  15257. # Check to make sure the static flag actually works.
  15258. #
  15259. wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
  15260. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  15261. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  15262. if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
  15263. echo $ECHO_N "(cached) $ECHO_C" >&6
  15264. else
  15265. lt_prog_compiler_static_works_GCJ=no
  15266. save_LDFLAGS="$LDFLAGS"
  15267. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  15268. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  15269. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  15270. # The linker can only warn and ignore the option if not recognized
  15271. # So say no if there are warnings
  15272. if test -s conftest.err; then
  15273. # Append any errors to the config.log.
  15274. cat conftest.err 1>&5
  15275. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  15276. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  15277. if diff conftest.exp conftest.er2 >/dev/null; then
  15278. lt_prog_compiler_static_works_GCJ=yes
  15279. fi
  15280. else
  15281. lt_prog_compiler_static_works_GCJ=yes
  15282. fi
  15283. fi
  15284. $rm conftest*
  15285. LDFLAGS="$save_LDFLAGS"
  15286. fi
  15287. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
  15288. echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
  15289. if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
  15290. :
  15291. else
  15292. lt_prog_compiler_static_GCJ=
  15293. fi
  15294. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  15295. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  15296. if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  15297. echo $ECHO_N "(cached) $ECHO_C" >&6
  15298. else
  15299. lt_cv_prog_compiler_c_o_GCJ=no
  15300. $rm -r conftest 2>/dev/null
  15301. mkdir conftest
  15302. cd conftest
  15303. mkdir out
  15304. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  15305. lt_compiler_flag="-o out/conftest2.$ac_objext"
  15306. # Insert the option either (1) after the last *FLAGS variable, or
  15307. # (2) before a word containing "conftest.", or (3) at the end.
  15308. # Note that $ac_compile itself does not contain backslashes and begins
  15309. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15310. lt_compile=`echo "$ac_compile" | $SED \
  15311. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  15312. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15313. -e 's:$: $lt_compiler_flag:'`
  15314. (eval echo "\"\$as_me:17097: $lt_compile\"" >&5)
  15315. (eval "$lt_compile" 2>out/conftest.err)
  15316. ac_status=$?
  15317. cat out/conftest.err >&5
  15318. echo "$as_me:17101: \$? = $ac_status" >&5
  15319. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  15320. then
  15321. # The compiler can only warn and ignore the option if not recognized
  15322. # So say no if there are warnings
  15323. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  15324. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  15325. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  15326. lt_cv_prog_compiler_c_o_GCJ=yes
  15327. fi
  15328. fi
  15329. chmod u+w . 2>&5
  15330. $rm conftest*
  15331. # SGI C++ compiler will create directory out/ii_files/ for
  15332. # template instantiation
  15333. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  15334. $rm out/* && rmdir out
  15335. cd ..
  15336. rmdir conftest
  15337. $rm conftest*
  15338. fi
  15339. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  15340. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
  15341. hard_links="nottested"
  15342. if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  15343. # do not overwrite the value of need_locks provided by the user
  15344. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  15345. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  15346. hard_links=yes
  15347. $rm conftest*
  15348. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  15349. touch conftest.a
  15350. ln conftest.a conftest.b 2>&5 || hard_links=no
  15351. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  15352. { echo "$as_me:$LINENO: result: $hard_links" >&5
  15353. echo "${ECHO_T}$hard_links" >&6; }
  15354. if test "$hard_links" = no; then
  15355. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  15356. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  15357. need_locks=warn
  15358. fi
  15359. else
  15360. need_locks=no
  15361. fi
  15362. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  15363. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  15364. runpath_var=
  15365. allow_undefined_flag_GCJ=
  15366. enable_shared_with_static_runtimes_GCJ=no
  15367. archive_cmds_GCJ=
  15368. archive_expsym_cmds_GCJ=
  15369. old_archive_From_new_cmds_GCJ=
  15370. old_archive_from_expsyms_cmds_GCJ=
  15371. export_dynamic_flag_spec_GCJ=
  15372. whole_archive_flag_spec_GCJ=
  15373. thread_safe_flag_spec_GCJ=
  15374. hardcode_libdir_flag_spec_GCJ=
  15375. hardcode_libdir_flag_spec_ld_GCJ=
  15376. hardcode_libdir_separator_GCJ=
  15377. hardcode_direct_GCJ=no
  15378. hardcode_minus_L_GCJ=no
  15379. hardcode_shlibpath_var_GCJ=unsupported
  15380. link_all_deplibs_GCJ=unknown
  15381. hardcode_automatic_GCJ=no
  15382. module_cmds_GCJ=
  15383. module_expsym_cmds_GCJ=
  15384. always_export_symbols_GCJ=no
  15385. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  15386. # include_expsyms should be a list of space-separated symbols to be *always*
  15387. # included in the symbol list
  15388. include_expsyms_GCJ=
  15389. # exclude_expsyms can be an extended regexp of symbols to exclude
  15390. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  15391. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  15392. # as well as any symbol that contains `d'.
  15393. exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  15394. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  15395. # platforms (ab)use it in PIC code, but their linkers get confused if
  15396. # the symbol is explicitly referenced. Since portable code cannot
  15397. # rely on this symbol name, it's probably fine to never include it in
  15398. # preloaded symbol tables.
  15399. extract_expsyms_cmds=
  15400. # Just being paranoid about ensuring that cc_basename is set.
  15401. for cc_temp in $compiler""; do
  15402. case $cc_temp in
  15403. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  15404. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  15405. \-*) ;;
  15406. *) break;;
  15407. esac
  15408. done
  15409. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  15410. case $host_os in
  15411. cygwin* | mingw* | pw32*)
  15412. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  15413. # When not using gcc, we currently assume that we are using
  15414. # Microsoft Visual C++.
  15415. if test "$GCC" != yes; then
  15416. with_gnu_ld=no
  15417. fi
  15418. ;;
  15419. interix*)
  15420. # we just hope/assume this is gcc and not c89 (= MSVC++)
  15421. with_gnu_ld=yes
  15422. ;;
  15423. openbsd*)
  15424. with_gnu_ld=no
  15425. ;;
  15426. esac
  15427. ld_shlibs_GCJ=yes
  15428. if test "$with_gnu_ld" = yes; then
  15429. # If archive_cmds runs LD, not CC, wlarc should be empty
  15430. wlarc='${wl}'
  15431. # Set some defaults for GNU ld with shared library support. These
  15432. # are reset later if shared libraries are not supported. Putting them
  15433. # here allows them to be overridden if necessary.
  15434. runpath_var=LD_RUN_PATH
  15435. hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  15436. export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  15437. # ancient GNU ld didn't support --whole-archive et. al.
  15438. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  15439. whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  15440. else
  15441. whole_archive_flag_spec_GCJ=
  15442. fi
  15443. supports_anon_versioning=no
  15444. case `$LD -v 2>/dev/null` in
  15445. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  15446. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  15447. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  15448. *\ 2.11.*) ;; # other 2.11 versions
  15449. *) supports_anon_versioning=yes ;;
  15450. esac
  15451. # See if GNU ld supports shared libraries.
  15452. case $host_os in
  15453. aix3* | aix4* | aix5*)
  15454. # On AIX/PPC, the GNU linker is very broken
  15455. if test "$host_cpu" != ia64; then
  15456. ld_shlibs_GCJ=no
  15457. cat <<EOF 1>&2
  15458. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  15459. *** to be unable to reliably create shared libraries on AIX.
  15460. *** Therefore, libtool is disabling shared libraries support. If you
  15461. *** really care for shared libraries, you may want to modify your PATH
  15462. *** so that a non-GNU linker is found, and then restart.
  15463. EOF
  15464. fi
  15465. ;;
  15466. amigaos*)
  15467. archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  15468. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15469. hardcode_minus_L_GCJ=yes
  15470. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  15471. # that the semantics of dynamic libraries on AmigaOS, at least up
  15472. # to version 4, is to share data among multiple programs linked
  15473. # with the same dynamic library. Since this doesn't match the
  15474. # behavior of shared libraries on other platforms, we can't use
  15475. # them.
  15476. ld_shlibs_GCJ=no
  15477. ;;
  15478. beos*)
  15479. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15480. allow_undefined_flag_GCJ=unsupported
  15481. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  15482. # support --undefined. This deserves some investigation. FIXME
  15483. archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15484. else
  15485. ld_shlibs_GCJ=no
  15486. fi
  15487. ;;
  15488. cygwin* | mingw* | pw32*)
  15489. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  15490. # as there is no search path for DLLs.
  15491. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15492. allow_undefined_flag_GCJ=unsupported
  15493. always_export_symbols_GCJ=no
  15494. enable_shared_with_static_runtimes_GCJ=yes
  15495. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  15496. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  15497. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  15498. # If the export-symbols file already is a .def file (1st line
  15499. # is EXPORTS), use it as is; otherwise, prepend...
  15500. archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  15501. cp $export_symbols $output_objdir/$soname.def;
  15502. else
  15503. echo EXPORTS > $output_objdir/$soname.def;
  15504. cat $export_symbols >> $output_objdir/$soname.def;
  15505. fi~
  15506. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  15507. else
  15508. ld_shlibs_GCJ=no
  15509. fi
  15510. ;;
  15511. interix3*)
  15512. hardcode_direct_GCJ=no
  15513. hardcode_shlibpath_var_GCJ=no
  15514. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15515. export_dynamic_flag_spec_GCJ='${wl}-E'
  15516. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  15517. # Instead, shared libraries are loaded at an image base (0x10000000 by
  15518. # default) and relocated if they conflict, which is a slow very memory
  15519. # consuming and fragmenting process. To avoid this, we pick a random,
  15520. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  15521. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  15522. archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  15523. archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  15524. ;;
  15525. linux* | k*bsd*-gnu)
  15526. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15527. tmp_addflag=
  15528. case $cc_basename,$host_cpu in
  15529. pgcc*) # Portland Group C compiler
  15530. whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  15531. tmp_addflag=' $pic_flag'
  15532. ;;
  15533. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  15534. whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  15535. tmp_addflag=' $pic_flag -Mnomain' ;;
  15536. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  15537. tmp_addflag=' -i_dynamic' ;;
  15538. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  15539. tmp_addflag=' -i_dynamic -nofor_main' ;;
  15540. ifc* | ifort*) # Intel Fortran compiler
  15541. tmp_addflag=' -nofor_main' ;;
  15542. esac
  15543. archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15544. if test $supports_anon_versioning = yes; then
  15545. archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  15546. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  15547. $echo "local: *; };" >> $output_objdir/$libname.ver~
  15548. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  15549. fi
  15550. link_all_deplibs_GCJ=no
  15551. else
  15552. ld_shlibs_GCJ=no
  15553. fi
  15554. ;;
  15555. netbsd* | netbsdelf*-gnu)
  15556. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15557. archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  15558. wlarc=
  15559. else
  15560. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15561. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15562. fi
  15563. ;;
  15564. solaris*)
  15565. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  15566. ld_shlibs_GCJ=no
  15567. cat <<EOF 1>&2
  15568. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  15569. *** create shared libraries on Solaris systems. Therefore, libtool
  15570. *** is disabling shared libraries support. We urge you to upgrade GNU
  15571. *** binutils to release 2.9.1 or newer. Another option is to modify
  15572. *** your PATH or compiler configuration so that the native linker is
  15573. *** used, and then restart.
  15574. EOF
  15575. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15576. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15577. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15578. else
  15579. ld_shlibs_GCJ=no
  15580. fi
  15581. ;;
  15582. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  15583. case `$LD -v 2>&1` in
  15584. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  15585. ld_shlibs_GCJ=no
  15586. cat <<_LT_EOF 1>&2
  15587. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  15588. *** reliably create shared libraries on SCO systems. Therefore, libtool
  15589. *** is disabling shared libraries support. We urge you to upgrade GNU
  15590. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  15591. *** your PATH or compiler configuration so that the native linker is
  15592. *** used, and then restart.
  15593. _LT_EOF
  15594. ;;
  15595. *)
  15596. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15597. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  15598. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  15599. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  15600. else
  15601. ld_shlibs_GCJ=no
  15602. fi
  15603. ;;
  15604. esac
  15605. ;;
  15606. sunos4*)
  15607. archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15608. wlarc=
  15609. hardcode_direct_GCJ=yes
  15610. hardcode_shlibpath_var_GCJ=no
  15611. ;;
  15612. *)
  15613. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15614. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15615. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15616. else
  15617. ld_shlibs_GCJ=no
  15618. fi
  15619. ;;
  15620. esac
  15621. if test "$ld_shlibs_GCJ" = no; then
  15622. runpath_var=
  15623. hardcode_libdir_flag_spec_GCJ=
  15624. export_dynamic_flag_spec_GCJ=
  15625. whole_archive_flag_spec_GCJ=
  15626. fi
  15627. else
  15628. # PORTME fill in a description of your system's linker (not GNU ld)
  15629. case $host_os in
  15630. aix3*)
  15631. allow_undefined_flag_GCJ=unsupported
  15632. always_export_symbols_GCJ=yes
  15633. archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  15634. # Note: this linker hardcodes the directories in LIBPATH if there
  15635. # are no directories specified by -L.
  15636. hardcode_minus_L_GCJ=yes
  15637. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  15638. # Neither direct hardcoding nor static linking is supported with a
  15639. # broken collect2.
  15640. hardcode_direct_GCJ=unsupported
  15641. fi
  15642. ;;
  15643. aix4* | aix5*)
  15644. if test "$host_cpu" = ia64; then
  15645. # On IA64, the linker does run time linking by default, so we don't
  15646. # have to do anything special.
  15647. aix_use_runtimelinking=no
  15648. exp_sym_flag='-Bexport'
  15649. no_entry_flag=""
  15650. else
  15651. # If we're using GNU nm, then we don't want the "-C" option.
  15652. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  15653. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  15654. export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  15655. else
  15656. export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  15657. fi
  15658. aix_use_runtimelinking=no
  15659. # Test if we are trying to use run time linking or normal
  15660. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  15661. # need to do runtime linking.
  15662. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  15663. for ld_flag in $LDFLAGS; do
  15664. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  15665. aix_use_runtimelinking=yes
  15666. break
  15667. fi
  15668. done
  15669. ;;
  15670. esac
  15671. exp_sym_flag='-bexport'
  15672. no_entry_flag='-bnoentry'
  15673. fi
  15674. # When large executables or shared objects are built, AIX ld can
  15675. # have problems creating the table of contents. If linking a library
  15676. # or program results in "error TOC overflow" add -mminimal-toc to
  15677. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  15678. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  15679. archive_cmds_GCJ=''
  15680. hardcode_direct_GCJ=yes
  15681. hardcode_libdir_separator_GCJ=':'
  15682. link_all_deplibs_GCJ=yes
  15683. if test "$GCC" = yes; then
  15684. case $host_os in aix4.[012]|aix4.[012].*)
  15685. # We only want to do this on AIX 4.2 and lower, the check
  15686. # below for broken collect2 doesn't work under 4.3+
  15687. collect2name=`${CC} -print-prog-name=collect2`
  15688. if test -f "$collect2name" && \
  15689. strings "$collect2name" | grep resolve_lib_name >/dev/null
  15690. then
  15691. # We have reworked collect2
  15692. hardcode_direct_GCJ=yes
  15693. else
  15694. # We have old collect2
  15695. hardcode_direct_GCJ=unsupported
  15696. # It fails to find uninstalled libraries when the uninstalled
  15697. # path is not listed in the libpath. Setting hardcode_minus_L
  15698. # to unsupported forces relinking
  15699. hardcode_minus_L_GCJ=yes
  15700. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15701. hardcode_libdir_separator_GCJ=
  15702. fi
  15703. ;;
  15704. esac
  15705. shared_flag='-shared'
  15706. if test "$aix_use_runtimelinking" = yes; then
  15707. shared_flag="$shared_flag "'${wl}-G'
  15708. fi
  15709. else
  15710. # not using gcc
  15711. if test "$host_cpu" = ia64; then
  15712. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  15713. # chokes on -Wl,-G. The following line is correct:
  15714. shared_flag='-G'
  15715. else
  15716. if test "$aix_use_runtimelinking" = yes; then
  15717. shared_flag='${wl}-G'
  15718. else
  15719. shared_flag='${wl}-bM:SRE'
  15720. fi
  15721. fi
  15722. fi
  15723. # It seems that -bexpall does not export symbols beginning with
  15724. # underscore (_), so it is better to generate a list of symbols to export.
  15725. always_export_symbols_GCJ=yes
  15726. if test "$aix_use_runtimelinking" = yes; then
  15727. # Warning - without using the other runtime loading flags (-brtl),
  15728. # -berok will link without error, but may produce a broken library.
  15729. allow_undefined_flag_GCJ='-berok'
  15730. # Determine the default libpath from the value encoded in an empty executable.
  15731. cat >conftest.$ac_ext <<_ACEOF
  15732. /* confdefs.h. */
  15733. _ACEOF
  15734. cat confdefs.h >>conftest.$ac_ext
  15735. cat >>conftest.$ac_ext <<_ACEOF
  15736. /* end confdefs.h. */
  15737. int
  15738. main ()
  15739. {
  15740. ;
  15741. return 0;
  15742. }
  15743. _ACEOF
  15744. rm -f conftest.$ac_objext conftest$ac_exeext
  15745. if { (ac_try="$ac_link"
  15746. case "(($ac_try" in
  15747. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15748. *) ac_try_echo=$ac_try;;
  15749. esac
  15750. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15751. (eval "$ac_link") 2>conftest.er1
  15752. ac_status=$?
  15753. grep -v '^ *+' conftest.er1 >conftest.err
  15754. rm -f conftest.er1
  15755. cat conftest.err >&5
  15756. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15757. (exit $ac_status); } &&
  15758. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  15759. { (case "(($ac_try" in
  15760. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15761. *) ac_try_echo=$ac_try;;
  15762. esac
  15763. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15764. (eval "$ac_try") 2>&5
  15765. ac_status=$?
  15766. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15767. (exit $ac_status); }; } &&
  15768. { ac_try='test -s conftest$ac_exeext'
  15769. { (case "(($ac_try" in
  15770. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15771. *) ac_try_echo=$ac_try;;
  15772. esac
  15773. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15774. (eval "$ac_try") 2>&5
  15775. ac_status=$?
  15776. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15777. (exit $ac_status); }; }; then
  15778. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  15779. }'`
  15780. # Check for a 64-bit object if we didn't find anything.
  15781. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  15782. }'`; fi
  15783. else
  15784. echo "$as_me: failed program was:" >&5
  15785. sed 's/^/| /' conftest.$ac_ext >&5
  15786. fi
  15787. rm -f conftest.err conftest.$ac_objext \
  15788. conftest$ac_exeext conftest.$ac_ext
  15789. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  15790. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  15791. archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  15792. else
  15793. if test "$host_cpu" = ia64; then
  15794. hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  15795. allow_undefined_flag_GCJ="-z nodefs"
  15796. archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  15797. else
  15798. # Determine the default libpath from the value encoded in an empty executable.
  15799. cat >conftest.$ac_ext <<_ACEOF
  15800. /* confdefs.h. */
  15801. _ACEOF
  15802. cat confdefs.h >>conftest.$ac_ext
  15803. cat >>conftest.$ac_ext <<_ACEOF
  15804. /* end confdefs.h. */
  15805. int
  15806. main ()
  15807. {
  15808. ;
  15809. return 0;
  15810. }
  15811. _ACEOF
  15812. rm -f conftest.$ac_objext conftest$ac_exeext
  15813. if { (ac_try="$ac_link"
  15814. case "(($ac_try" in
  15815. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15816. *) ac_try_echo=$ac_try;;
  15817. esac
  15818. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15819. (eval "$ac_link") 2>conftest.er1
  15820. ac_status=$?
  15821. grep -v '^ *+' conftest.er1 >conftest.err
  15822. rm -f conftest.er1
  15823. cat conftest.err >&5
  15824. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15825. (exit $ac_status); } &&
  15826. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  15827. { (case "(($ac_try" in
  15828. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15829. *) ac_try_echo=$ac_try;;
  15830. esac
  15831. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15832. (eval "$ac_try") 2>&5
  15833. ac_status=$?
  15834. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15835. (exit $ac_status); }; } &&
  15836. { ac_try='test -s conftest$ac_exeext'
  15837. { (case "(($ac_try" in
  15838. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15839. *) ac_try_echo=$ac_try;;
  15840. esac
  15841. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15842. (eval "$ac_try") 2>&5
  15843. ac_status=$?
  15844. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15845. (exit $ac_status); }; }; then
  15846. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  15847. }'`
  15848. # Check for a 64-bit object if we didn't find anything.
  15849. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  15850. }'`; fi
  15851. else
  15852. echo "$as_me: failed program was:" >&5
  15853. sed 's/^/| /' conftest.$ac_ext >&5
  15854. fi
  15855. rm -f conftest.err conftest.$ac_objext \
  15856. conftest$ac_exeext conftest.$ac_ext
  15857. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  15858. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  15859. # Warning - without using the other run time loading flags,
  15860. # -berok will link without error, but may produce a broken library.
  15861. no_undefined_flag_GCJ=' ${wl}-bernotok'
  15862. allow_undefined_flag_GCJ=' ${wl}-berok'
  15863. # Exported symbols can be pulled into shared objects from archives
  15864. whole_archive_flag_spec_GCJ='$convenience'
  15865. archive_cmds_need_lc_GCJ=yes
  15866. # This is similar to how AIX traditionally builds its shared libraries.
  15867. archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  15868. fi
  15869. fi
  15870. ;;
  15871. amigaos*)
  15872. archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  15873. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15874. hardcode_minus_L_GCJ=yes
  15875. # see comment about different semantics on the GNU ld section
  15876. ld_shlibs_GCJ=no
  15877. ;;
  15878. bsdi[45]*)
  15879. export_dynamic_flag_spec_GCJ=-rdynamic
  15880. ;;
  15881. cygwin* | mingw* | pw32*)
  15882. # When not using gcc, we currently assume that we are using
  15883. # Microsoft Visual C++.
  15884. # hardcode_libdir_flag_spec is actually meaningless, as there is
  15885. # no search path for DLLs.
  15886. hardcode_libdir_flag_spec_GCJ=' '
  15887. allow_undefined_flag_GCJ=unsupported
  15888. # Tell ltmain to make .lib files, not .a files.
  15889. libext=lib
  15890. # Tell ltmain to make .dll files, not .so files.
  15891. shrext_cmds=".dll"
  15892. # FIXME: Setting linknames here is a bad hack.
  15893. archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  15894. # The linker will automatically build a .lib file if we build a DLL.
  15895. old_archive_From_new_cmds_GCJ='true'
  15896. # FIXME: Should let the user specify the lib program.
  15897. old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
  15898. fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  15899. enable_shared_with_static_runtimes_GCJ=yes
  15900. ;;
  15901. darwin* | rhapsody*)
  15902. case $host_os in
  15903. rhapsody* | darwin1.[012])
  15904. allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  15905. ;;
  15906. *) # Darwin 1.3 on
  15907. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  15908. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  15909. else
  15910. case ${MACOSX_DEPLOYMENT_TARGET} in
  15911. 10.[012])
  15912. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  15913. ;;
  15914. 10.*)
  15915. allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  15916. ;;
  15917. esac
  15918. fi
  15919. ;;
  15920. esac
  15921. archive_cmds_need_lc_GCJ=no
  15922. hardcode_direct_GCJ=no
  15923. hardcode_automatic_GCJ=yes
  15924. hardcode_shlibpath_var_GCJ=unsupported
  15925. whole_archive_flag_spec_GCJ=''
  15926. link_all_deplibs_GCJ=yes
  15927. if test "$GCC" = yes ; then
  15928. output_verbose_link_cmd='echo'
  15929. archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  15930. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  15931. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  15932. archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  15933. module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  15934. else
  15935. case $cc_basename in
  15936. xlc*)
  15937. output_verbose_link_cmd='echo'
  15938. archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  15939. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  15940. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  15941. archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  15942. module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  15943. ;;
  15944. *)
  15945. ld_shlibs_GCJ=no
  15946. ;;
  15947. esac
  15948. fi
  15949. ;;
  15950. dgux*)
  15951. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15952. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15953. hardcode_shlibpath_var_GCJ=no
  15954. ;;
  15955. freebsd1*)
  15956. ld_shlibs_GCJ=no
  15957. ;;
  15958. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  15959. # support. Future versions do this automatically, but an explicit c++rt0.o
  15960. # does not break anything, and helps significantly (at the cost of a little
  15961. # extra space).
  15962. freebsd2.2*)
  15963. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  15964. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15965. hardcode_direct_GCJ=yes
  15966. hardcode_shlibpath_var_GCJ=no
  15967. ;;
  15968. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  15969. freebsd2*)
  15970. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15971. hardcode_direct_GCJ=yes
  15972. hardcode_minus_L_GCJ=yes
  15973. hardcode_shlibpath_var_GCJ=no
  15974. ;;
  15975. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  15976. freebsd* | dragonfly*)
  15977. archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  15978. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15979. hardcode_direct_GCJ=yes
  15980. hardcode_shlibpath_var_GCJ=no
  15981. ;;
  15982. hpux9*)
  15983. if test "$GCC" = yes; then
  15984. archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  15985. else
  15986. archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  15987. fi
  15988. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15989. hardcode_libdir_separator_GCJ=:
  15990. hardcode_direct_GCJ=yes
  15991. # hardcode_minus_L: Not really in the search PATH,
  15992. # but as the default location of the library.
  15993. hardcode_minus_L_GCJ=yes
  15994. export_dynamic_flag_spec_GCJ='${wl}-E'
  15995. ;;
  15996. hpux10*)
  15997. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  15998. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15999. else
  16000. archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  16001. fi
  16002. if test "$with_gnu_ld" = no; then
  16003. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  16004. hardcode_libdir_separator_GCJ=:
  16005. hardcode_direct_GCJ=yes
  16006. export_dynamic_flag_spec_GCJ='${wl}-E'
  16007. # hardcode_minus_L: Not really in the search PATH,
  16008. # but as the default location of the library.
  16009. hardcode_minus_L_GCJ=yes
  16010. fi
  16011. ;;
  16012. hpux11*)
  16013. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  16014. case $host_cpu in
  16015. hppa*64*)
  16016. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16017. ;;
  16018. ia64*)
  16019. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  16020. ;;
  16021. *)
  16022. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  16023. ;;
  16024. esac
  16025. else
  16026. case $host_cpu in
  16027. hppa*64*)
  16028. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16029. ;;
  16030. ia64*)
  16031. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  16032. ;;
  16033. *)
  16034. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  16035. ;;
  16036. esac
  16037. fi
  16038. if test "$with_gnu_ld" = no; then
  16039. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  16040. hardcode_libdir_separator_GCJ=:
  16041. case $host_cpu in
  16042. hppa*64*|ia64*)
  16043. hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  16044. hardcode_direct_GCJ=no
  16045. hardcode_shlibpath_var_GCJ=no
  16046. ;;
  16047. *)
  16048. hardcode_direct_GCJ=yes
  16049. export_dynamic_flag_spec_GCJ='${wl}-E'
  16050. # hardcode_minus_L: Not really in the search PATH,
  16051. # but as the default location of the library.
  16052. hardcode_minus_L_GCJ=yes
  16053. ;;
  16054. esac
  16055. fi
  16056. ;;
  16057. irix5* | irix6* | nonstopux*)
  16058. if test "$GCC" = yes; then
  16059. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  16060. else
  16061. archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  16062. hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  16063. fi
  16064. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  16065. hardcode_libdir_separator_GCJ=:
  16066. link_all_deplibs_GCJ=yes
  16067. ;;
  16068. netbsd* | netbsdelf*-gnu)
  16069. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  16070. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  16071. else
  16072. archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  16073. fi
  16074. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  16075. hardcode_direct_GCJ=yes
  16076. hardcode_shlibpath_var_GCJ=no
  16077. ;;
  16078. newsos6)
  16079. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16080. hardcode_direct_GCJ=yes
  16081. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  16082. hardcode_libdir_separator_GCJ=:
  16083. hardcode_shlibpath_var_GCJ=no
  16084. ;;
  16085. openbsd*)
  16086. hardcode_direct_GCJ=yes
  16087. hardcode_shlibpath_var_GCJ=no
  16088. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  16089. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  16090. archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  16091. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  16092. export_dynamic_flag_spec_GCJ='${wl}-E'
  16093. else
  16094. case $host_os in
  16095. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  16096. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  16097. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  16098. ;;
  16099. *)
  16100. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  16101. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  16102. ;;
  16103. esac
  16104. fi
  16105. ;;
  16106. os2*)
  16107. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16108. hardcode_minus_L_GCJ=yes
  16109. allow_undefined_flag_GCJ=unsupported
  16110. archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  16111. old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  16112. ;;
  16113. osf3*)
  16114. if test "$GCC" = yes; then
  16115. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  16116. archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  16117. else
  16118. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  16119. archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  16120. fi
  16121. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  16122. hardcode_libdir_separator_GCJ=:
  16123. ;;
  16124. osf4* | osf5*) # as osf3* with the addition of -msym flag
  16125. if test "$GCC" = yes; then
  16126. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  16127. archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  16128. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  16129. else
  16130. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  16131. archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  16132. archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  16133. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  16134. # Both c and cxx compiler support -rpath directly
  16135. hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  16136. fi
  16137. hardcode_libdir_separator_GCJ=:
  16138. ;;
  16139. solaris*)
  16140. no_undefined_flag_GCJ=' -z text'
  16141. if test "$GCC" = yes; then
  16142. wlarc='${wl}'
  16143. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16144. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  16145. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  16146. else
  16147. wlarc=''
  16148. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16149. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  16150. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  16151. fi
  16152. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  16153. hardcode_shlibpath_var_GCJ=no
  16154. case $host_os in
  16155. solaris2.[0-5] | solaris2.[0-5].*) ;;
  16156. *)
  16157. # The compiler driver will combine linker options so we
  16158. # cannot just pass the convience library names through
  16159. # without $wl, iff we do not link with $LD.
  16160. # Luckily, gcc supports the same syntax we need for Sun Studio.
  16161. # Supported since Solaris 2.6 (maybe 2.5.1?)
  16162. case $wlarc in
  16163. '')
  16164. whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
  16165. *)
  16166. whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  16167. esac ;;
  16168. esac
  16169. link_all_deplibs_GCJ=yes
  16170. ;;
  16171. sunos4*)
  16172. if test "x$host_vendor" = xsequent; then
  16173. # Use $CC to link under sequent, because it throws in some extra .o
  16174. # files that make .init and .fini sections work.
  16175. archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  16176. else
  16177. archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  16178. fi
  16179. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16180. hardcode_direct_GCJ=yes
  16181. hardcode_minus_L_GCJ=yes
  16182. hardcode_shlibpath_var_GCJ=no
  16183. ;;
  16184. sysv4)
  16185. case $host_vendor in
  16186. sni)
  16187. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16188. hardcode_direct_GCJ=yes # is this really true???
  16189. ;;
  16190. siemens)
  16191. ## LD is ld it makes a PLAMLIB
  16192. ## CC just makes a GrossModule.
  16193. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  16194. reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  16195. hardcode_direct_GCJ=no
  16196. ;;
  16197. motorola)
  16198. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16199. hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  16200. ;;
  16201. esac
  16202. runpath_var='LD_RUN_PATH'
  16203. hardcode_shlibpath_var_GCJ=no
  16204. ;;
  16205. sysv4.3*)
  16206. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16207. hardcode_shlibpath_var_GCJ=no
  16208. export_dynamic_flag_spec_GCJ='-Bexport'
  16209. ;;
  16210. sysv4*MP*)
  16211. if test -d /usr/nec; then
  16212. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16213. hardcode_shlibpath_var_GCJ=no
  16214. runpath_var=LD_RUN_PATH
  16215. hardcode_runpath_var=yes
  16216. ld_shlibs_GCJ=yes
  16217. fi
  16218. ;;
  16219. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  16220. no_undefined_flag_GCJ='${wl}-z,text'
  16221. archive_cmds_need_lc_GCJ=no
  16222. hardcode_shlibpath_var_GCJ=no
  16223. runpath_var='LD_RUN_PATH'
  16224. if test "$GCC" = yes; then
  16225. archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16226. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16227. else
  16228. archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16229. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16230. fi
  16231. ;;
  16232. sysv5* | sco3.2v5* | sco5v6*)
  16233. # Note: We can NOT use -z defs as we might desire, because we do not
  16234. # link with -lc, and that would cause any symbols used from libc to
  16235. # always be unresolved, which means just about no library would
  16236. # ever link correctly. If we're not using GNU ld we use -z text
  16237. # though, which does catch some bad symbols but isn't as heavy-handed
  16238. # as -z defs.
  16239. no_undefined_flag_GCJ='${wl}-z,text'
  16240. allow_undefined_flag_GCJ='${wl}-z,nodefs'
  16241. archive_cmds_need_lc_GCJ=no
  16242. hardcode_shlibpath_var_GCJ=no
  16243. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  16244. hardcode_libdir_separator_GCJ=':'
  16245. link_all_deplibs_GCJ=yes
  16246. export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  16247. runpath_var='LD_RUN_PATH'
  16248. if test "$GCC" = yes; then
  16249. archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16250. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16251. else
  16252. archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16253. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16254. fi
  16255. ;;
  16256. uts4*)
  16257. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16258. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16259. hardcode_shlibpath_var_GCJ=no
  16260. ;;
  16261. *)
  16262. ld_shlibs_GCJ=no
  16263. ;;
  16264. esac
  16265. fi
  16266. { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  16267. echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
  16268. test "$ld_shlibs_GCJ" = no && can_build_shared=no
  16269. #
  16270. # Do we need to explicitly link libc?
  16271. #
  16272. case "x$archive_cmds_need_lc_GCJ" in
  16273. x|xyes)
  16274. # Assume -lc should be added
  16275. archive_cmds_need_lc_GCJ=yes
  16276. if test "$enable_shared" = yes && test "$GCC" = yes; then
  16277. case $archive_cmds_GCJ in
  16278. *'~'*)
  16279. # FIXME: we may have to deal with multi-command sequences.
  16280. ;;
  16281. '$CC '*)
  16282. # Test whether the compiler implicitly links with -lc since on some
  16283. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  16284. # to ld, don't add -lc before -lgcc.
  16285. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  16286. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  16287. $rm conftest*
  16288. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  16289. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  16290. (eval $ac_compile) 2>&5
  16291. ac_status=$?
  16292. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16293. (exit $ac_status); } 2>conftest.err; then
  16294. soname=conftest
  16295. lib=conftest
  16296. libobjs=conftest.$ac_objext
  16297. deplibs=
  16298. wl=$lt_prog_compiler_wl_GCJ
  16299. pic_flag=$lt_prog_compiler_pic_GCJ
  16300. compiler_flags=-v
  16301. linker_flags=-v
  16302. verstring=
  16303. output_objdir=.
  16304. libname=conftest
  16305. lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  16306. allow_undefined_flag_GCJ=
  16307. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  16308. (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  16309. ac_status=$?
  16310. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16311. (exit $ac_status); }
  16312. then
  16313. archive_cmds_need_lc_GCJ=no
  16314. else
  16315. archive_cmds_need_lc_GCJ=yes
  16316. fi
  16317. allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  16318. else
  16319. cat conftest.err 1>&5
  16320. fi
  16321. $rm conftest*
  16322. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  16323. echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
  16324. ;;
  16325. esac
  16326. fi
  16327. ;;
  16328. esac
  16329. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  16330. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  16331. library_names_spec=
  16332. libname_spec='lib$name'
  16333. soname_spec=
  16334. shrext_cmds=".so"
  16335. postinstall_cmds=
  16336. postuninstall_cmds=
  16337. finish_cmds=
  16338. finish_eval=
  16339. shlibpath_var=
  16340. shlibpath_overrides_runpath=unknown
  16341. version_type=none
  16342. dynamic_linker="$host_os ld.so"
  16343. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  16344. if test "$GCC" = yes; then
  16345. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  16346. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  16347. # if the path contains ";" then we assume it to be the separator
  16348. # otherwise default to the standard path separator (i.e. ":") - it is
  16349. # assumed that no part of a normal pathname contains ";" but that should
  16350. # okay in the real world where ";" in dirpaths is itself problematic.
  16351. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  16352. else
  16353. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  16354. fi
  16355. else
  16356. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  16357. fi
  16358. need_lib_prefix=unknown
  16359. hardcode_into_libs=no
  16360. # when you set need_version to no, make sure it does not cause -set_version
  16361. # flags to be left without arguments
  16362. need_version=unknown
  16363. case $host_os in
  16364. aix3*)
  16365. version_type=linux
  16366. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  16367. shlibpath_var=LIBPATH
  16368. # AIX 3 has no versioning support, so we append a major version to the name.
  16369. soname_spec='${libname}${release}${shared_ext}$major'
  16370. ;;
  16371. aix4* | aix5*)
  16372. version_type=linux
  16373. need_lib_prefix=no
  16374. need_version=no
  16375. hardcode_into_libs=yes
  16376. if test "$host_cpu" = ia64; then
  16377. # AIX 5 supports IA64
  16378. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  16379. shlibpath_var=LD_LIBRARY_PATH
  16380. else
  16381. # With GCC up to 2.95.x, collect2 would create an import file
  16382. # for dependence libraries. The import file would start with
  16383. # the line `#! .'. This would cause the generated library to
  16384. # depend on `.', always an invalid library. This was fixed in
  16385. # development snapshots of GCC prior to 3.0.
  16386. case $host_os in
  16387. aix4 | aix4.[01] | aix4.[01].*)
  16388. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  16389. echo ' yes '
  16390. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  16391. :
  16392. else
  16393. can_build_shared=no
  16394. fi
  16395. ;;
  16396. esac
  16397. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  16398. # soname into executable. Probably we can add versioning support to
  16399. # collect2, so additional links can be useful in future.
  16400. if test "$aix_use_runtimelinking" = yes; then
  16401. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  16402. # instead of lib<name>.a to let people know that these are not
  16403. # typical AIX shared libraries.
  16404. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16405. else
  16406. # We preserve .a as extension for shared libraries through AIX4.2
  16407. # and later when we are not doing run time linking.
  16408. library_names_spec='${libname}${release}.a $libname.a'
  16409. soname_spec='${libname}${release}${shared_ext}$major'
  16410. fi
  16411. shlibpath_var=LIBPATH
  16412. fi
  16413. ;;
  16414. amigaos*)
  16415. library_names_spec='$libname.ixlibrary $libname.a'
  16416. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  16417. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  16418. ;;
  16419. beos*)
  16420. library_names_spec='${libname}${shared_ext}'
  16421. dynamic_linker="$host_os ld.so"
  16422. shlibpath_var=LIBRARY_PATH
  16423. ;;
  16424. bsdi[45]*)
  16425. version_type=linux
  16426. need_version=no
  16427. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16428. soname_spec='${libname}${release}${shared_ext}$major'
  16429. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  16430. shlibpath_var=LD_LIBRARY_PATH
  16431. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  16432. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  16433. # the default ld.so.conf also contains /usr/contrib/lib and
  16434. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  16435. # libtool to hard-code these into programs
  16436. ;;
  16437. cygwin* | mingw* | pw32*)
  16438. version_type=windows
  16439. shrext_cmds=".dll"
  16440. need_version=no
  16441. need_lib_prefix=no
  16442. case $GCC,$host_os in
  16443. yes,cygwin* | yes,mingw* | yes,pw32*)
  16444. library_names_spec='$libname.dll.a'
  16445. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  16446. postinstall_cmds='base_file=`basename \${file}`~
  16447. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  16448. dldir=$destdir/`dirname \$dlpath`~
  16449. test -d \$dldir || mkdir -p \$dldir~
  16450. $install_prog $dir/$dlname \$dldir/$dlname~
  16451. chmod a+x \$dldir/$dlname'
  16452. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  16453. dlpath=$dir/\$dldll~
  16454. $rm \$dlpath'
  16455. shlibpath_overrides_runpath=yes
  16456. case $host_os in
  16457. cygwin*)
  16458. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  16459. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16460. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  16461. ;;
  16462. mingw*)
  16463. # MinGW DLLs use traditional 'lib' prefix
  16464. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16465. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  16466. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  16467. # It is most probably a Windows format PATH printed by
  16468. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  16469. # path with ; separators, and with drive letters. We can handle the
  16470. # drive letters (cygwin fileutils understands them), so leave them,
  16471. # especially as we might pass files found there to a mingw objdump,
  16472. # which wouldn't understand a cygwinified path. Ahh.
  16473. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  16474. else
  16475. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  16476. fi
  16477. ;;
  16478. pw32*)
  16479. # pw32 DLLs use 'pw' prefix rather than 'lib'
  16480. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16481. ;;
  16482. esac
  16483. ;;
  16484. *)
  16485. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  16486. ;;
  16487. esac
  16488. dynamic_linker='Win32 ld.exe'
  16489. # FIXME: first we should search . and the directory the executable is in
  16490. shlibpath_var=PATH
  16491. ;;
  16492. darwin* | rhapsody*)
  16493. dynamic_linker="$host_os dyld"
  16494. version_type=darwin
  16495. need_lib_prefix=no
  16496. need_version=no
  16497. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  16498. soname_spec='${libname}${release}${major}$shared_ext'
  16499. shlibpath_overrides_runpath=yes
  16500. shlibpath_var=DYLD_LIBRARY_PATH
  16501. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  16502. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  16503. if test "$GCC" = yes; then
  16504. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  16505. else
  16506. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  16507. fi
  16508. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  16509. ;;
  16510. dgux*)
  16511. version_type=linux
  16512. need_lib_prefix=no
  16513. need_version=no
  16514. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  16515. soname_spec='${libname}${release}${shared_ext}$major'
  16516. shlibpath_var=LD_LIBRARY_PATH
  16517. ;;
  16518. freebsd1*)
  16519. dynamic_linker=no
  16520. ;;
  16521. freebsd* | dragonfly*)
  16522. # DragonFly does not have aout. When/if they implement a new
  16523. # versioning mechanism, adjust this.
  16524. if test -x /usr/bin/objformat; then
  16525. objformat=`/usr/bin/objformat`
  16526. else
  16527. case $host_os in
  16528. freebsd[123]*) objformat=aout ;;
  16529. *) objformat=elf ;;
  16530. esac
  16531. fi
  16532. version_type=freebsd-$objformat
  16533. case $version_type in
  16534. freebsd-elf*)
  16535. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  16536. need_version=no
  16537. need_lib_prefix=no
  16538. ;;
  16539. freebsd-*)
  16540. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  16541. need_version=yes
  16542. ;;
  16543. esac
  16544. shlibpath_var=LD_LIBRARY_PATH
  16545. case $host_os in
  16546. freebsd2*)
  16547. shlibpath_overrides_runpath=yes
  16548. ;;
  16549. freebsd3.[01]* | freebsdelf3.[01]*)
  16550. shlibpath_overrides_runpath=yes
  16551. hardcode_into_libs=yes
  16552. ;;
  16553. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  16554. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  16555. shlibpath_overrides_runpath=no
  16556. hardcode_into_libs=yes
  16557. ;;
  16558. freebsd*) # from 4.6 on
  16559. shlibpath_overrides_runpath=yes
  16560. hardcode_into_libs=yes
  16561. ;;
  16562. esac
  16563. ;;
  16564. gnu*)
  16565. version_type=linux
  16566. need_lib_prefix=no
  16567. need_version=no
  16568. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  16569. soname_spec='${libname}${release}${shared_ext}$major'
  16570. shlibpath_var=LD_LIBRARY_PATH
  16571. hardcode_into_libs=yes
  16572. ;;
  16573. hpux9* | hpux10* | hpux11*)
  16574. # Give a soname corresponding to the major version so that dld.sl refuses to
  16575. # link against other versions.
  16576. version_type=sunos
  16577. need_lib_prefix=no
  16578. need_version=no
  16579. case $host_cpu in
  16580. ia64*)
  16581. shrext_cmds='.so'
  16582. hardcode_into_libs=yes
  16583. dynamic_linker="$host_os dld.so"
  16584. shlibpath_var=LD_LIBRARY_PATH
  16585. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  16586. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16587. soname_spec='${libname}${release}${shared_ext}$major'
  16588. if test "X$HPUX_IA64_MODE" = X32; then
  16589. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  16590. else
  16591. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  16592. fi
  16593. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16594. ;;
  16595. hppa*64*)
  16596. shrext_cmds='.sl'
  16597. hardcode_into_libs=yes
  16598. dynamic_linker="$host_os dld.sl"
  16599. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  16600. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  16601. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16602. soname_spec='${libname}${release}${shared_ext}$major'
  16603. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  16604. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16605. ;;
  16606. *)
  16607. shrext_cmds='.sl'
  16608. dynamic_linker="$host_os dld.sl"
  16609. shlibpath_var=SHLIB_PATH
  16610. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  16611. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16612. soname_spec='${libname}${release}${shared_ext}$major'
  16613. ;;
  16614. esac
  16615. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  16616. postinstall_cmds='chmod 555 $lib'
  16617. ;;
  16618. interix3*)
  16619. version_type=linux
  16620. need_lib_prefix=no
  16621. need_version=no
  16622. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16623. soname_spec='${libname}${release}${shared_ext}$major'
  16624. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  16625. shlibpath_var=LD_LIBRARY_PATH
  16626. shlibpath_overrides_runpath=no
  16627. hardcode_into_libs=yes
  16628. ;;
  16629. irix5* | irix6* | nonstopux*)
  16630. case $host_os in
  16631. nonstopux*) version_type=nonstopux ;;
  16632. *)
  16633. if test "$lt_cv_prog_gnu_ld" = yes; then
  16634. version_type=linux
  16635. else
  16636. version_type=irix
  16637. fi ;;
  16638. esac
  16639. need_lib_prefix=no
  16640. need_version=no
  16641. soname_spec='${libname}${release}${shared_ext}$major'
  16642. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  16643. case $host_os in
  16644. irix5* | nonstopux*)
  16645. libsuff= shlibsuff=
  16646. ;;
  16647. *)
  16648. case $LD in # libtool.m4 will add one of these switches to LD
  16649. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  16650. libsuff= shlibsuff= libmagic=32-bit;;
  16651. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  16652. libsuff=32 shlibsuff=N32 libmagic=N32;;
  16653. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  16654. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  16655. *) libsuff= shlibsuff= libmagic=never-match;;
  16656. esac
  16657. ;;
  16658. esac
  16659. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  16660. shlibpath_overrides_runpath=no
  16661. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  16662. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  16663. hardcode_into_libs=yes
  16664. ;;
  16665. # No shared lib support for Linux oldld, aout, or coff.
  16666. linux*oldld* | linux*aout* | linux*coff*)
  16667. dynamic_linker=no
  16668. ;;
  16669. # This must be Linux ELF.
  16670. linux* | k*bsd*-gnu)
  16671. version_type=linux
  16672. need_lib_prefix=no
  16673. need_version=no
  16674. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16675. soname_spec='${libname}${release}${shared_ext}$major'
  16676. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  16677. shlibpath_var=LD_LIBRARY_PATH
  16678. shlibpath_overrides_runpath=no
  16679. # This implies no fast_install, which is unacceptable.
  16680. # Some rework will be needed to allow for fast_install
  16681. # before this can be enabled.
  16682. hardcode_into_libs=yes
  16683. # Append ld.so.conf contents to the search path
  16684. if test -f /etc/ld.so.conf; then
  16685. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  16686. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  16687. fi
  16688. # We used to test for /lib/ld.so.1 and disable shared libraries on
  16689. # powerpc, because MkLinux only supported shared libraries with the
  16690. # GNU dynamic linker. Since this was broken with cross compilers,
  16691. # most powerpc-linux boxes support dynamic linking these days and
  16692. # people can always --disable-shared, the test was removed, and we
  16693. # assume the GNU/Linux dynamic linker is in use.
  16694. dynamic_linker='GNU/Linux ld.so'
  16695. ;;
  16696. netbsdelf*-gnu)
  16697. version_type=linux
  16698. need_lib_prefix=no
  16699. need_version=no
  16700. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16701. soname_spec='${libname}${release}${shared_ext}$major'
  16702. shlibpath_var=LD_LIBRARY_PATH
  16703. shlibpath_overrides_runpath=no
  16704. hardcode_into_libs=yes
  16705. dynamic_linker='NetBSD ld.elf_so'
  16706. ;;
  16707. netbsd*)
  16708. version_type=sunos
  16709. need_lib_prefix=no
  16710. need_version=no
  16711. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  16712. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16713. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  16714. dynamic_linker='NetBSD (a.out) ld.so'
  16715. else
  16716. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16717. soname_spec='${libname}${release}${shared_ext}$major'
  16718. dynamic_linker='NetBSD ld.elf_so'
  16719. fi
  16720. shlibpath_var=LD_LIBRARY_PATH
  16721. shlibpath_overrides_runpath=yes
  16722. hardcode_into_libs=yes
  16723. ;;
  16724. newsos6)
  16725. version_type=linux
  16726. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16727. shlibpath_var=LD_LIBRARY_PATH
  16728. shlibpath_overrides_runpath=yes
  16729. ;;
  16730. nto-qnx*)
  16731. version_type=linux
  16732. need_lib_prefix=no
  16733. need_version=no
  16734. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16735. soname_spec='${libname}${release}${shared_ext}$major'
  16736. shlibpath_var=LD_LIBRARY_PATH
  16737. shlibpath_overrides_runpath=yes
  16738. ;;
  16739. openbsd*)
  16740. version_type=sunos
  16741. sys_lib_dlsearch_path_spec="/usr/lib"
  16742. need_lib_prefix=no
  16743. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  16744. case $host_os in
  16745. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  16746. *) need_version=no ;;
  16747. esac
  16748. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16749. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  16750. shlibpath_var=LD_LIBRARY_PATH
  16751. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  16752. case $host_os in
  16753. openbsd2.[89] | openbsd2.[89].*)
  16754. shlibpath_overrides_runpath=no
  16755. ;;
  16756. *)
  16757. shlibpath_overrides_runpath=yes
  16758. ;;
  16759. esac
  16760. else
  16761. shlibpath_overrides_runpath=yes
  16762. fi
  16763. ;;
  16764. os2*)
  16765. libname_spec='$name'
  16766. shrext_cmds=".dll"
  16767. need_lib_prefix=no
  16768. library_names_spec='$libname${shared_ext} $libname.a'
  16769. dynamic_linker='OS/2 ld.exe'
  16770. shlibpath_var=LIBPATH
  16771. ;;
  16772. osf3* | osf4* | osf5*)
  16773. version_type=osf
  16774. need_lib_prefix=no
  16775. need_version=no
  16776. soname_spec='${libname}${release}${shared_ext}$major'
  16777. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16778. shlibpath_var=LD_LIBRARY_PATH
  16779. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  16780. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  16781. ;;
  16782. solaris*)
  16783. version_type=linux
  16784. need_lib_prefix=no
  16785. need_version=no
  16786. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16787. soname_spec='${libname}${release}${shared_ext}$major'
  16788. shlibpath_var=LD_LIBRARY_PATH
  16789. shlibpath_overrides_runpath=yes
  16790. hardcode_into_libs=yes
  16791. # ldd complains unless libraries are executable
  16792. postinstall_cmds='chmod +x $lib'
  16793. ;;
  16794. sunos4*)
  16795. version_type=sunos
  16796. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16797. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  16798. shlibpath_var=LD_LIBRARY_PATH
  16799. shlibpath_overrides_runpath=yes
  16800. if test "$with_gnu_ld" = yes; then
  16801. need_lib_prefix=no
  16802. fi
  16803. need_version=yes
  16804. ;;
  16805. sysv4 | sysv4.3*)
  16806. version_type=linux
  16807. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16808. soname_spec='${libname}${release}${shared_ext}$major'
  16809. shlibpath_var=LD_LIBRARY_PATH
  16810. case $host_vendor in
  16811. sni)
  16812. shlibpath_overrides_runpath=no
  16813. need_lib_prefix=no
  16814. export_dynamic_flag_spec='${wl}-Blargedynsym'
  16815. runpath_var=LD_RUN_PATH
  16816. ;;
  16817. siemens)
  16818. need_lib_prefix=no
  16819. ;;
  16820. motorola)
  16821. need_lib_prefix=no
  16822. need_version=no
  16823. shlibpath_overrides_runpath=no
  16824. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  16825. ;;
  16826. esac
  16827. ;;
  16828. sysv4*MP*)
  16829. if test -d /usr/nec ;then
  16830. version_type=linux
  16831. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  16832. soname_spec='$libname${shared_ext}.$major'
  16833. shlibpath_var=LD_LIBRARY_PATH
  16834. fi
  16835. ;;
  16836. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  16837. version_type=freebsd-elf
  16838. need_lib_prefix=no
  16839. need_version=no
  16840. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  16841. soname_spec='${libname}${release}${shared_ext}$major'
  16842. shlibpath_var=LD_LIBRARY_PATH
  16843. hardcode_into_libs=yes
  16844. if test "$with_gnu_ld" = yes; then
  16845. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  16846. shlibpath_overrides_runpath=no
  16847. else
  16848. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  16849. shlibpath_overrides_runpath=yes
  16850. case $host_os in
  16851. sco3.2v5*)
  16852. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  16853. ;;
  16854. esac
  16855. fi
  16856. sys_lib_dlsearch_path_spec='/usr/lib'
  16857. ;;
  16858. uts4*)
  16859. version_type=linux
  16860. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16861. soname_spec='${libname}${release}${shared_ext}$major'
  16862. shlibpath_var=LD_LIBRARY_PATH
  16863. ;;
  16864. *)
  16865. dynamic_linker=no
  16866. ;;
  16867. esac
  16868. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  16869. echo "${ECHO_T}$dynamic_linker" >&6; }
  16870. test "$dynamic_linker" = no && can_build_shared=no
  16871. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  16872. if test "$GCC" = yes; then
  16873. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  16874. fi
  16875. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  16876. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  16877. hardcode_action_GCJ=
  16878. if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  16879. test -n "$runpath_var_GCJ" || \
  16880. test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  16881. # We can hardcode non-existant directories.
  16882. if test "$hardcode_direct_GCJ" != no &&
  16883. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  16884. # have to relink, otherwise we might link with an installed library
  16885. # when we should be linking with a yet-to-be-installed one
  16886. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  16887. test "$hardcode_minus_L_GCJ" != no; then
  16888. # Linking always hardcodes the temporary library directory.
  16889. hardcode_action_GCJ=relink
  16890. else
  16891. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  16892. hardcode_action_GCJ=immediate
  16893. fi
  16894. else
  16895. # We cannot hardcode anything, or else we can only hardcode existing
  16896. # directories.
  16897. hardcode_action_GCJ=unsupported
  16898. fi
  16899. { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  16900. echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
  16901. if test "$hardcode_action_GCJ" = relink; then
  16902. # Fast installation is not supported
  16903. enable_fast_install=no
  16904. elif test "$shlibpath_overrides_runpath" = yes ||
  16905. test "$enable_shared" = no; then
  16906. # Fast installation is not necessary
  16907. enable_fast_install=needless
  16908. fi
  16909. # The else clause should only fire when bootstrapping the
  16910. # libtool distribution, otherwise you forgot to ship ltmain.sh
  16911. # with your package, and you will get complaints that there are
  16912. # no rules to generate ltmain.sh.
  16913. if test -f "$ltmain"; then
  16914. # See if we are running on zsh, and set the options which allow our commands through
  16915. # without removal of \ escapes.
  16916. if test -n "${ZSH_VERSION+set}" ; then
  16917. setopt NO_GLOB_SUBST
  16918. fi
  16919. # Now quote all the things that may contain metacharacters while being
  16920. # careful not to overquote the AC_SUBSTed values. We take copies of the
  16921. # variables and quote the copies for generation of the libtool script.
  16922. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  16923. SED SHELL STRIP \
  16924. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  16925. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  16926. deplibs_check_method reload_flag reload_cmds need_locks \
  16927. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  16928. lt_cv_sys_global_symbol_to_c_name_address \
  16929. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  16930. old_postinstall_cmds old_postuninstall_cmds \
  16931. compiler_GCJ \
  16932. CC_GCJ \
  16933. LD_GCJ \
  16934. lt_prog_compiler_wl_GCJ \
  16935. lt_prog_compiler_pic_GCJ \
  16936. lt_prog_compiler_static_GCJ \
  16937. lt_prog_compiler_no_builtin_flag_GCJ \
  16938. export_dynamic_flag_spec_GCJ \
  16939. thread_safe_flag_spec_GCJ \
  16940. whole_archive_flag_spec_GCJ \
  16941. enable_shared_with_static_runtimes_GCJ \
  16942. old_archive_cmds_GCJ \
  16943. old_archive_from_new_cmds_GCJ \
  16944. predep_objects_GCJ \
  16945. postdep_objects_GCJ \
  16946. predeps_GCJ \
  16947. postdeps_GCJ \
  16948. compiler_lib_search_path_GCJ \
  16949. archive_cmds_GCJ \
  16950. archive_expsym_cmds_GCJ \
  16951. postinstall_cmds_GCJ \
  16952. postuninstall_cmds_GCJ \
  16953. old_archive_from_expsyms_cmds_GCJ \
  16954. allow_undefined_flag_GCJ \
  16955. no_undefined_flag_GCJ \
  16956. export_symbols_cmds_GCJ \
  16957. hardcode_libdir_flag_spec_GCJ \
  16958. hardcode_libdir_flag_spec_ld_GCJ \
  16959. hardcode_libdir_separator_GCJ \
  16960. hardcode_automatic_GCJ \
  16961. module_cmds_GCJ \
  16962. module_expsym_cmds_GCJ \
  16963. lt_cv_prog_compiler_c_o_GCJ \
  16964. exclude_expsyms_GCJ \
  16965. include_expsyms_GCJ; do
  16966. case $var in
  16967. old_archive_cmds_GCJ | \
  16968. old_archive_from_new_cmds_GCJ | \
  16969. archive_cmds_GCJ | \
  16970. archive_expsym_cmds_GCJ | \
  16971. module_cmds_GCJ | \
  16972. module_expsym_cmds_GCJ | \
  16973. old_archive_from_expsyms_cmds_GCJ | \
  16974. export_symbols_cmds_GCJ | \
  16975. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  16976. postinstall_cmds | postuninstall_cmds | \
  16977. old_postinstall_cmds | old_postuninstall_cmds | \
  16978. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  16979. # Double-quote double-evaled strings.
  16980. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  16981. ;;
  16982. *)
  16983. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  16984. ;;
  16985. esac
  16986. done
  16987. case $lt_echo in
  16988. *'\$0 --fallback-echo"')
  16989. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  16990. ;;
  16991. esac
  16992. cfgfile="$ofile"
  16993. cat <<__EOF__ >> "$cfgfile"
  16994. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  16995. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16996. # Shell to use when invoking shell scripts.
  16997. SHELL=$lt_SHELL
  16998. # Whether or not to build shared libraries.
  16999. build_libtool_libs=$enable_shared
  17000. # Whether or not to build static libraries.
  17001. build_old_libs=$enable_static
  17002. # Whether or not to add -lc for building shared libraries.
  17003. build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  17004. # Whether or not to disallow shared libs when runtime libs are static
  17005. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  17006. # Whether or not to optimize for fast installation.
  17007. fast_install=$enable_fast_install
  17008. # The host system.
  17009. host_alias=$host_alias
  17010. host=$host
  17011. host_os=$host_os
  17012. # The build system.
  17013. build_alias=$build_alias
  17014. build=$build
  17015. build_os=$build_os
  17016. # An echo program that does not interpret backslashes.
  17017. echo=$lt_echo
  17018. # The archiver.
  17019. AR=$lt_AR
  17020. AR_FLAGS=$lt_AR_FLAGS
  17021. # A C compiler.
  17022. LTCC=$lt_LTCC
  17023. # LTCC compiler flags.
  17024. LTCFLAGS=$lt_LTCFLAGS
  17025. # A language-specific compiler.
  17026. CC=$lt_compiler_GCJ
  17027. # Is the compiler the GNU C compiler?
  17028. with_gcc=$GCC_GCJ
  17029. # An ERE matcher.
  17030. EGREP=$lt_EGREP
  17031. # The linker used to build libraries.
  17032. LD=$lt_LD_GCJ
  17033. # Whether we need hard or soft links.
  17034. LN_S=$lt_LN_S
  17035. # A BSD-compatible nm program.
  17036. NM=$lt_NM
  17037. # A symbol stripping program
  17038. STRIP=$lt_STRIP
  17039. # Used to examine libraries when file_magic_cmd begins "file"
  17040. MAGIC_CMD=$MAGIC_CMD
  17041. # Used on cygwin: DLL creation program.
  17042. DLLTOOL="$DLLTOOL"
  17043. # Used on cygwin: object dumper.
  17044. OBJDUMP="$OBJDUMP"
  17045. # Used on cygwin: assembler.
  17046. AS="$AS"
  17047. # The name of the directory that contains temporary libtool files.
  17048. objdir=$objdir
  17049. # How to create reloadable object files.
  17050. reload_flag=$lt_reload_flag
  17051. reload_cmds=$lt_reload_cmds
  17052. # How to pass a linker flag through the compiler.
  17053. wl=$lt_lt_prog_compiler_wl_GCJ
  17054. # Object file suffix (normally "o").
  17055. objext="$ac_objext"
  17056. # Old archive suffix (normally "a").
  17057. libext="$libext"
  17058. # Shared library suffix (normally ".so").
  17059. shrext_cmds='$shrext_cmds'
  17060. # Executable file suffix (normally "").
  17061. exeext="$exeext"
  17062. # Additional compiler flags for building library objects.
  17063. pic_flag=$lt_lt_prog_compiler_pic_GCJ
  17064. pic_mode=$pic_mode
  17065. # What is the maximum length of a command?
  17066. max_cmd_len=$lt_cv_sys_max_cmd_len
  17067. # Does compiler simultaneously support -c and -o options?
  17068. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  17069. # Must we lock files when doing compilation?
  17070. need_locks=$lt_need_locks
  17071. # Do we need the lib prefix for modules?
  17072. need_lib_prefix=$need_lib_prefix
  17073. # Do we need a version for libraries?
  17074. need_version=$need_version
  17075. # Whether dlopen is supported.
  17076. dlopen_support=$enable_dlopen
  17077. # Whether dlopen of programs is supported.
  17078. dlopen_self=$enable_dlopen_self
  17079. # Whether dlopen of statically linked programs is supported.
  17080. dlopen_self_static=$enable_dlopen_self_static
  17081. # Compiler flag to prevent dynamic linking.
  17082. link_static_flag=$lt_lt_prog_compiler_static_GCJ
  17083. # Compiler flag to turn off builtin functions.
  17084. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  17085. # Compiler flag to allow reflexive dlopens.
  17086. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  17087. # Compiler flag to generate shared objects directly from archives.
  17088. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  17089. # Compiler flag to generate thread-safe objects.
  17090. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  17091. # Library versioning type.
  17092. version_type=$version_type
  17093. # Format of library name prefix.
  17094. libname_spec=$lt_libname_spec
  17095. # List of archive names. First name is the real one, the rest are links.
  17096. # The last name is the one that the linker finds with -lNAME.
  17097. library_names_spec=$lt_library_names_spec
  17098. # The coded name of the library, if different from the real name.
  17099. soname_spec=$lt_soname_spec
  17100. # Commands used to build and install an old-style archive.
  17101. RANLIB=$lt_RANLIB
  17102. old_archive_cmds=$lt_old_archive_cmds_GCJ
  17103. old_postinstall_cmds=$lt_old_postinstall_cmds
  17104. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  17105. # Create an old-style archive from a shared archive.
  17106. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  17107. # Create a temporary old-style archive to link instead of a shared archive.
  17108. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  17109. # Commands used to build and install a shared archive.
  17110. archive_cmds=$lt_archive_cmds_GCJ
  17111. archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  17112. postinstall_cmds=$lt_postinstall_cmds
  17113. postuninstall_cmds=$lt_postuninstall_cmds
  17114. # Commands used to build a loadable module (assumed same as above if empty)
  17115. module_cmds=$lt_module_cmds_GCJ
  17116. module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  17117. # Commands to strip libraries.
  17118. old_striplib=$lt_old_striplib
  17119. striplib=$lt_striplib
  17120. # Dependencies to place before the objects being linked to create a
  17121. # shared library.
  17122. predep_objects=$lt_predep_objects_GCJ
  17123. # Dependencies to place after the objects being linked to create a
  17124. # shared library.
  17125. postdep_objects=$lt_postdep_objects_GCJ
  17126. # Dependencies to place before the objects being linked to create a
  17127. # shared library.
  17128. predeps=$lt_predeps_GCJ
  17129. # Dependencies to place after the objects being linked to create a
  17130. # shared library.
  17131. postdeps=$lt_postdeps_GCJ
  17132. # The library search path used internally by the compiler when linking
  17133. # a shared library.
  17134. compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  17135. # Method to check whether dependent libraries are shared objects.
  17136. deplibs_check_method=$lt_deplibs_check_method
  17137. # Command to use when deplibs_check_method == file_magic.
  17138. file_magic_cmd=$lt_file_magic_cmd
  17139. # Flag that allows shared libraries with undefined symbols to be built.
  17140. allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  17141. # Flag that forces no undefined symbols.
  17142. no_undefined_flag=$lt_no_undefined_flag_GCJ
  17143. # Commands used to finish a libtool library installation in a directory.
  17144. finish_cmds=$lt_finish_cmds
  17145. # Same as above, but a single script fragment to be evaled but not shown.
  17146. finish_eval=$lt_finish_eval
  17147. # Take the output of nm and produce a listing of raw symbols and C names.
  17148. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  17149. # Transform the output of nm in a proper C declaration
  17150. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  17151. # Transform the output of nm in a C name address pair
  17152. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  17153. # This is the shared library runtime path variable.
  17154. runpath_var=$runpath_var
  17155. # This is the shared library path variable.
  17156. shlibpath_var=$shlibpath_var
  17157. # Is shlibpath searched before the hard-coded library search path?
  17158. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  17159. # How to hardcode a shared library path into an executable.
  17160. hardcode_action=$hardcode_action_GCJ
  17161. # Whether we should hardcode library paths into libraries.
  17162. hardcode_into_libs=$hardcode_into_libs
  17163. # Flag to hardcode \$libdir into a binary during linking.
  17164. # This must work even if \$libdir does not exist.
  17165. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  17166. # If ld is used when linking, flag to hardcode \$libdir into
  17167. # a binary during linking. This must work even if \$libdir does
  17168. # not exist.
  17169. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  17170. # Whether we need a single -rpath flag with a separated argument.
  17171. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  17172. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  17173. # resulting binary.
  17174. hardcode_direct=$hardcode_direct_GCJ
  17175. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  17176. # resulting binary.
  17177. hardcode_minus_L=$hardcode_minus_L_GCJ
  17178. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  17179. # the resulting binary.
  17180. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  17181. # Set to yes if building a shared library automatically hardcodes DIR into the library
  17182. # and all subsequent libraries and executables linked against it.
  17183. hardcode_automatic=$hardcode_automatic_GCJ
  17184. # Variables whose values should be saved in libtool wrapper scripts and
  17185. # restored at relink time.
  17186. variables_saved_for_relink="$variables_saved_for_relink"
  17187. # Whether libtool must link a program against all its dependency libraries.
  17188. link_all_deplibs=$link_all_deplibs_GCJ
  17189. # Compile-time system search path for libraries
  17190. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  17191. # Run-time system search path for libraries
  17192. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  17193. # Fix the shell variable \$srcfile for the compiler.
  17194. fix_srcfile_path="$fix_srcfile_path_GCJ"
  17195. # Set to yes if exported symbols are required.
  17196. always_export_symbols=$always_export_symbols_GCJ
  17197. # The commands to list exported symbols.
  17198. export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  17199. # The commands to extract the exported symbol list from a shared archive.
  17200. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  17201. # Symbols that should not be listed in the preloaded symbols.
  17202. exclude_expsyms=$lt_exclude_expsyms_GCJ
  17203. # Symbols that must always be exported.
  17204. include_expsyms=$lt_include_expsyms_GCJ
  17205. # ### END LIBTOOL TAG CONFIG: $tagname
  17206. __EOF__
  17207. else
  17208. # If there is no Makefile yet, we rely on a make rule to execute
  17209. # `config.status --recheck' to rerun these tests and create the
  17210. # libtool script then.
  17211. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  17212. if test -f "$ltmain_in"; then
  17213. test -f Makefile && make "$ltmain"
  17214. fi
  17215. fi
  17216. ac_ext=c
  17217. ac_cpp='$CPP $CPPFLAGS'
  17218. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17219. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17220. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17221. CC="$lt_save_CC"
  17222. else
  17223. tagname=""
  17224. fi
  17225. ;;
  17226. RC)
  17227. # Source file extension for RC test sources.
  17228. ac_ext=rc
  17229. # Object file extension for compiled RC test sources.
  17230. objext=o
  17231. objext_RC=$objext
  17232. # Code to be used in simple compile tests
  17233. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  17234. # Code to be used in simple link tests
  17235. lt_simple_link_test_code="$lt_simple_compile_test_code"
  17236. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  17237. # If no C compiler was specified, use CC.
  17238. LTCC=${LTCC-"$CC"}
  17239. # If no C compiler flags were specified, use CFLAGS.
  17240. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  17241. # Allow CC to be a program name with arguments.
  17242. compiler=$CC
  17243. # save warnings/boilerplate of simple test code
  17244. ac_outfile=conftest.$ac_objext
  17245. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  17246. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  17247. _lt_compiler_boilerplate=`cat conftest.err`
  17248. $rm conftest*
  17249. ac_outfile=conftest.$ac_objext
  17250. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  17251. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  17252. _lt_linker_boilerplate=`cat conftest.err`
  17253. $rm conftest*
  17254. # Allow CC to be a program name with arguments.
  17255. lt_save_CC="$CC"
  17256. CC=${RC-"windres"}
  17257. compiler=$CC
  17258. compiler_RC=$CC
  17259. for cc_temp in $compiler""; do
  17260. case $cc_temp in
  17261. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  17262. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  17263. \-*) ;;
  17264. *) break;;
  17265. esac
  17266. done
  17267. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  17268. lt_cv_prog_compiler_c_o_RC=yes
  17269. # The else clause should only fire when bootstrapping the
  17270. # libtool distribution, otherwise you forgot to ship ltmain.sh
  17271. # with your package, and you will get complaints that there are
  17272. # no rules to generate ltmain.sh.
  17273. if test -f "$ltmain"; then
  17274. # See if we are running on zsh, and set the options which allow our commands through
  17275. # without removal of \ escapes.
  17276. if test -n "${ZSH_VERSION+set}" ; then
  17277. setopt NO_GLOB_SUBST
  17278. fi
  17279. # Now quote all the things that may contain metacharacters while being
  17280. # careful not to overquote the AC_SUBSTed values. We take copies of the
  17281. # variables and quote the copies for generation of the libtool script.
  17282. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  17283. SED SHELL STRIP \
  17284. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  17285. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  17286. deplibs_check_method reload_flag reload_cmds need_locks \
  17287. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  17288. lt_cv_sys_global_symbol_to_c_name_address \
  17289. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  17290. old_postinstall_cmds old_postuninstall_cmds \
  17291. compiler_RC \
  17292. CC_RC \
  17293. LD_RC \
  17294. lt_prog_compiler_wl_RC \
  17295. lt_prog_compiler_pic_RC \
  17296. lt_prog_compiler_static_RC \
  17297. lt_prog_compiler_no_builtin_flag_RC \
  17298. export_dynamic_flag_spec_RC \
  17299. thread_safe_flag_spec_RC \
  17300. whole_archive_flag_spec_RC \
  17301. enable_shared_with_static_runtimes_RC \
  17302. old_archive_cmds_RC \
  17303. old_archive_from_new_cmds_RC \
  17304. predep_objects_RC \
  17305. postdep_objects_RC \
  17306. predeps_RC \
  17307. postdeps_RC \
  17308. compiler_lib_search_path_RC \
  17309. archive_cmds_RC \
  17310. archive_expsym_cmds_RC \
  17311. postinstall_cmds_RC \
  17312. postuninstall_cmds_RC \
  17313. old_archive_from_expsyms_cmds_RC \
  17314. allow_undefined_flag_RC \
  17315. no_undefined_flag_RC \
  17316. export_symbols_cmds_RC \
  17317. hardcode_libdir_flag_spec_RC \
  17318. hardcode_libdir_flag_spec_ld_RC \
  17319. hardcode_libdir_separator_RC \
  17320. hardcode_automatic_RC \
  17321. module_cmds_RC \
  17322. module_expsym_cmds_RC \
  17323. lt_cv_prog_compiler_c_o_RC \
  17324. exclude_expsyms_RC \
  17325. include_expsyms_RC; do
  17326. case $var in
  17327. old_archive_cmds_RC | \
  17328. old_archive_from_new_cmds_RC | \
  17329. archive_cmds_RC | \
  17330. archive_expsym_cmds_RC | \
  17331. module_cmds_RC | \
  17332. module_expsym_cmds_RC | \
  17333. old_archive_from_expsyms_cmds_RC | \
  17334. export_symbols_cmds_RC | \
  17335. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  17336. postinstall_cmds | postuninstall_cmds | \
  17337. old_postinstall_cmds | old_postuninstall_cmds | \
  17338. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  17339. # Double-quote double-evaled strings.
  17340. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  17341. ;;
  17342. *)
  17343. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  17344. ;;
  17345. esac
  17346. done
  17347. case $lt_echo in
  17348. *'\$0 --fallback-echo"')
  17349. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  17350. ;;
  17351. esac
  17352. cfgfile="$ofile"
  17353. cat <<__EOF__ >> "$cfgfile"
  17354. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  17355. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  17356. # Shell to use when invoking shell scripts.
  17357. SHELL=$lt_SHELL
  17358. # Whether or not to build shared libraries.
  17359. build_libtool_libs=$enable_shared
  17360. # Whether or not to build static libraries.
  17361. build_old_libs=$enable_static
  17362. # Whether or not to add -lc for building shared libraries.
  17363. build_libtool_need_lc=$archive_cmds_need_lc_RC
  17364. # Whether or not to disallow shared libs when runtime libs are static
  17365. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  17366. # Whether or not to optimize for fast installation.
  17367. fast_install=$enable_fast_install
  17368. # The host system.
  17369. host_alias=$host_alias
  17370. host=$host
  17371. host_os=$host_os
  17372. # The build system.
  17373. build_alias=$build_alias
  17374. build=$build
  17375. build_os=$build_os
  17376. # An echo program that does not interpret backslashes.
  17377. echo=$lt_echo
  17378. # The archiver.
  17379. AR=$lt_AR
  17380. AR_FLAGS=$lt_AR_FLAGS
  17381. # A C compiler.
  17382. LTCC=$lt_LTCC
  17383. # LTCC compiler flags.
  17384. LTCFLAGS=$lt_LTCFLAGS
  17385. # A language-specific compiler.
  17386. CC=$lt_compiler_RC
  17387. # Is the compiler the GNU C compiler?
  17388. with_gcc=$GCC_RC
  17389. # An ERE matcher.
  17390. EGREP=$lt_EGREP
  17391. # The linker used to build libraries.
  17392. LD=$lt_LD_RC
  17393. # Whether we need hard or soft links.
  17394. LN_S=$lt_LN_S
  17395. # A BSD-compatible nm program.
  17396. NM=$lt_NM
  17397. # A symbol stripping program
  17398. STRIP=$lt_STRIP
  17399. # Used to examine libraries when file_magic_cmd begins "file"
  17400. MAGIC_CMD=$MAGIC_CMD
  17401. # Used on cygwin: DLL creation program.
  17402. DLLTOOL="$DLLTOOL"
  17403. # Used on cygwin: object dumper.
  17404. OBJDUMP="$OBJDUMP"
  17405. # Used on cygwin: assembler.
  17406. AS="$AS"
  17407. # The name of the directory that contains temporary libtool files.
  17408. objdir=$objdir
  17409. # How to create reloadable object files.
  17410. reload_flag=$lt_reload_flag
  17411. reload_cmds=$lt_reload_cmds
  17412. # How to pass a linker flag through the compiler.
  17413. wl=$lt_lt_prog_compiler_wl_RC
  17414. # Object file suffix (normally "o").
  17415. objext="$ac_objext"
  17416. # Old archive suffix (normally "a").
  17417. libext="$libext"
  17418. # Shared library suffix (normally ".so").
  17419. shrext_cmds='$shrext_cmds'
  17420. # Executable file suffix (normally "").
  17421. exeext="$exeext"
  17422. # Additional compiler flags for building library objects.
  17423. pic_flag=$lt_lt_prog_compiler_pic_RC
  17424. pic_mode=$pic_mode
  17425. # What is the maximum length of a command?
  17426. max_cmd_len=$lt_cv_sys_max_cmd_len
  17427. # Does compiler simultaneously support -c and -o options?
  17428. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  17429. # Must we lock files when doing compilation?
  17430. need_locks=$lt_need_locks
  17431. # Do we need the lib prefix for modules?
  17432. need_lib_prefix=$need_lib_prefix
  17433. # Do we need a version for libraries?
  17434. need_version=$need_version
  17435. # Whether dlopen is supported.
  17436. dlopen_support=$enable_dlopen
  17437. # Whether dlopen of programs is supported.
  17438. dlopen_self=$enable_dlopen_self
  17439. # Whether dlopen of statically linked programs is supported.
  17440. dlopen_self_static=$enable_dlopen_self_static
  17441. # Compiler flag to prevent dynamic linking.
  17442. link_static_flag=$lt_lt_prog_compiler_static_RC
  17443. # Compiler flag to turn off builtin functions.
  17444. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  17445. # Compiler flag to allow reflexive dlopens.
  17446. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  17447. # Compiler flag to generate shared objects directly from archives.
  17448. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  17449. # Compiler flag to generate thread-safe objects.
  17450. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  17451. # Library versioning type.
  17452. version_type=$version_type
  17453. # Format of library name prefix.
  17454. libname_spec=$lt_libname_spec
  17455. # List of archive names. First name is the real one, the rest are links.
  17456. # The last name is the one that the linker finds with -lNAME.
  17457. library_names_spec=$lt_library_names_spec
  17458. # The coded name of the library, if different from the real name.
  17459. soname_spec=$lt_soname_spec
  17460. # Commands used to build and install an old-style archive.
  17461. RANLIB=$lt_RANLIB
  17462. old_archive_cmds=$lt_old_archive_cmds_RC
  17463. old_postinstall_cmds=$lt_old_postinstall_cmds
  17464. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  17465. # Create an old-style archive from a shared archive.
  17466. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  17467. # Create a temporary old-style archive to link instead of a shared archive.
  17468. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  17469. # Commands used to build and install a shared archive.
  17470. archive_cmds=$lt_archive_cmds_RC
  17471. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  17472. postinstall_cmds=$lt_postinstall_cmds
  17473. postuninstall_cmds=$lt_postuninstall_cmds
  17474. # Commands used to build a loadable module (assumed same as above if empty)
  17475. module_cmds=$lt_module_cmds_RC
  17476. module_expsym_cmds=$lt_module_expsym_cmds_RC
  17477. # Commands to strip libraries.
  17478. old_striplib=$lt_old_striplib
  17479. striplib=$lt_striplib
  17480. # Dependencies to place before the objects being linked to create a
  17481. # shared library.
  17482. predep_objects=$lt_predep_objects_RC
  17483. # Dependencies to place after the objects being linked to create a
  17484. # shared library.
  17485. postdep_objects=$lt_postdep_objects_RC
  17486. # Dependencies to place before the objects being linked to create a
  17487. # shared library.
  17488. predeps=$lt_predeps_RC
  17489. # Dependencies to place after the objects being linked to create a
  17490. # shared library.
  17491. postdeps=$lt_postdeps_RC
  17492. # The library search path used internally by the compiler when linking
  17493. # a shared library.
  17494. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  17495. # Method to check whether dependent libraries are shared objects.
  17496. deplibs_check_method=$lt_deplibs_check_method
  17497. # Command to use when deplibs_check_method == file_magic.
  17498. file_magic_cmd=$lt_file_magic_cmd
  17499. # Flag that allows shared libraries with undefined symbols to be built.
  17500. allow_undefined_flag=$lt_allow_undefined_flag_RC
  17501. # Flag that forces no undefined symbols.
  17502. no_undefined_flag=$lt_no_undefined_flag_RC
  17503. # Commands used to finish a libtool library installation in a directory.
  17504. finish_cmds=$lt_finish_cmds
  17505. # Same as above, but a single script fragment to be evaled but not shown.
  17506. finish_eval=$lt_finish_eval
  17507. # Take the output of nm and produce a listing of raw symbols and C names.
  17508. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  17509. # Transform the output of nm in a proper C declaration
  17510. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  17511. # Transform the output of nm in a C name address pair
  17512. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  17513. # This is the shared library runtime path variable.
  17514. runpath_var=$runpath_var
  17515. # This is the shared library path variable.
  17516. shlibpath_var=$shlibpath_var
  17517. # Is shlibpath searched before the hard-coded library search path?
  17518. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  17519. # How to hardcode a shared library path into an executable.
  17520. hardcode_action=$hardcode_action_RC
  17521. # Whether we should hardcode library paths into libraries.
  17522. hardcode_into_libs=$hardcode_into_libs
  17523. # Flag to hardcode \$libdir into a binary during linking.
  17524. # This must work even if \$libdir does not exist.
  17525. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  17526. # If ld is used when linking, flag to hardcode \$libdir into
  17527. # a binary during linking. This must work even if \$libdir does
  17528. # not exist.
  17529. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  17530. # Whether we need a single -rpath flag with a separated argument.
  17531. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  17532. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  17533. # resulting binary.
  17534. hardcode_direct=$hardcode_direct_RC
  17535. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  17536. # resulting binary.
  17537. hardcode_minus_L=$hardcode_minus_L_RC
  17538. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  17539. # the resulting binary.
  17540. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  17541. # Set to yes if building a shared library automatically hardcodes DIR into the library
  17542. # and all subsequent libraries and executables linked against it.
  17543. hardcode_automatic=$hardcode_automatic_RC
  17544. # Variables whose values should be saved in libtool wrapper scripts and
  17545. # restored at relink time.
  17546. variables_saved_for_relink="$variables_saved_for_relink"
  17547. # Whether libtool must link a program against all its dependency libraries.
  17548. link_all_deplibs=$link_all_deplibs_RC
  17549. # Compile-time system search path for libraries
  17550. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  17551. # Run-time system search path for libraries
  17552. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  17553. # Fix the shell variable \$srcfile for the compiler.
  17554. fix_srcfile_path="$fix_srcfile_path_RC"
  17555. # Set to yes if exported symbols are required.
  17556. always_export_symbols=$always_export_symbols_RC
  17557. # The commands to list exported symbols.
  17558. export_symbols_cmds=$lt_export_symbols_cmds_RC
  17559. # The commands to extract the exported symbol list from a shared archive.
  17560. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  17561. # Symbols that should not be listed in the preloaded symbols.
  17562. exclude_expsyms=$lt_exclude_expsyms_RC
  17563. # Symbols that must always be exported.
  17564. include_expsyms=$lt_include_expsyms_RC
  17565. # ### END LIBTOOL TAG CONFIG: $tagname
  17566. __EOF__
  17567. else
  17568. # If there is no Makefile yet, we rely on a make rule to execute
  17569. # `config.status --recheck' to rerun these tests and create the
  17570. # libtool script then.
  17571. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  17572. if test -f "$ltmain_in"; then
  17573. test -f Makefile && make "$ltmain"
  17574. fi
  17575. fi
  17576. ac_ext=c
  17577. ac_cpp='$CPP $CPPFLAGS'
  17578. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17579. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17580. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17581. CC="$lt_save_CC"
  17582. ;;
  17583. *)
  17584. { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  17585. echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  17586. { (exit 1); exit 1; }; }
  17587. ;;
  17588. esac
  17589. # Append the new tag name to the list of available tags.
  17590. if test -n "$tagname" ; then
  17591. available_tags="$available_tags $tagname"
  17592. fi
  17593. fi
  17594. done
  17595. IFS="$lt_save_ifs"
  17596. # Now substitute the updated list of available tags.
  17597. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  17598. mv "${ofile}T" "$ofile"
  17599. chmod +x "$ofile"
  17600. else
  17601. rm -f "${ofile}T"
  17602. { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  17603. echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  17604. { (exit 1); exit 1; }; }
  17605. fi
  17606. fi
  17607. # This can be used to rebuild libtool when needed
  17608. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  17609. # Always use our own libtool.
  17610. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  17611. # Prevent multiple expansion
  17612. csoap_major=`echo $VERSION | $AWK -F. '{print $1}'`
  17613. csoap_minor=`echo $VERSION | $AWK -F. '{print $2}'`
  17614. csoap_patch=`echo $VERSION | $AWK -F. '{print $3}'`
  17615. csoap_release="$csoap_major.$csoap_minor"
  17616. csoap_version=`expr $csoap_major + $csoap_minor`":$csoap_patch:$csoap_minor"
  17617. nanohttp_release=$csoap_release
  17618. nanohttp_version=$csoap_version
  17619. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  17620. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  17621. if test "${ac_cv_header_stdc+set}" = set; then
  17622. echo $ECHO_N "(cached) $ECHO_C" >&6
  17623. else
  17624. cat >conftest.$ac_ext <<_ACEOF
  17625. /* confdefs.h. */
  17626. _ACEOF
  17627. cat confdefs.h >>conftest.$ac_ext
  17628. cat >>conftest.$ac_ext <<_ACEOF
  17629. /* end confdefs.h. */
  17630. #include <stdlib.h>
  17631. #include <stdarg.h>
  17632. #include <string.h>
  17633. #include <float.h>
  17634. int
  17635. main ()
  17636. {
  17637. ;
  17638. return 0;
  17639. }
  17640. _ACEOF
  17641. rm -f conftest.$ac_objext
  17642. if { (ac_try="$ac_compile"
  17643. case "(($ac_try" in
  17644. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17645. *) ac_try_echo=$ac_try;;
  17646. esac
  17647. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17648. (eval "$ac_compile") 2>conftest.er1
  17649. ac_status=$?
  17650. grep -v '^ *+' conftest.er1 >conftest.err
  17651. rm -f conftest.er1
  17652. cat conftest.err >&5
  17653. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17654. (exit $ac_status); } &&
  17655. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  17656. { (case "(($ac_try" in
  17657. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17658. *) ac_try_echo=$ac_try;;
  17659. esac
  17660. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17661. (eval "$ac_try") 2>&5
  17662. ac_status=$?
  17663. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17664. (exit $ac_status); }; } &&
  17665. { ac_try='test -s conftest.$ac_objext'
  17666. { (case "(($ac_try" in
  17667. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17668. *) ac_try_echo=$ac_try;;
  17669. esac
  17670. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17671. (eval "$ac_try") 2>&5
  17672. ac_status=$?
  17673. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17674. (exit $ac_status); }; }; then
  17675. ac_cv_header_stdc=yes
  17676. else
  17677. echo "$as_me: failed program was:" >&5
  17678. sed 's/^/| /' conftest.$ac_ext >&5
  17679. ac_cv_header_stdc=no
  17680. fi
  17681. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17682. if test $ac_cv_header_stdc = yes; then
  17683. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  17684. cat >conftest.$ac_ext <<_ACEOF
  17685. /* confdefs.h. */
  17686. _ACEOF
  17687. cat confdefs.h >>conftest.$ac_ext
  17688. cat >>conftest.$ac_ext <<_ACEOF
  17689. /* end confdefs.h. */
  17690. #include <string.h>
  17691. _ACEOF
  17692. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17693. $EGREP "memchr" >/dev/null 2>&1; then
  17694. :
  17695. else
  17696. ac_cv_header_stdc=no
  17697. fi
  17698. rm -f conftest*
  17699. fi
  17700. if test $ac_cv_header_stdc = yes; then
  17701. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  17702. cat >conftest.$ac_ext <<_ACEOF
  17703. /* confdefs.h. */
  17704. _ACEOF
  17705. cat confdefs.h >>conftest.$ac_ext
  17706. cat >>conftest.$ac_ext <<_ACEOF
  17707. /* end confdefs.h. */
  17708. #include <stdlib.h>
  17709. _ACEOF
  17710. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17711. $EGREP "free" >/dev/null 2>&1; then
  17712. :
  17713. else
  17714. ac_cv_header_stdc=no
  17715. fi
  17716. rm -f conftest*
  17717. fi
  17718. if test $ac_cv_header_stdc = yes; then
  17719. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  17720. if test "$cross_compiling" = yes; then
  17721. :
  17722. else
  17723. cat >conftest.$ac_ext <<_ACEOF
  17724. /* confdefs.h. */
  17725. _ACEOF
  17726. cat confdefs.h >>conftest.$ac_ext
  17727. cat >>conftest.$ac_ext <<_ACEOF
  17728. /* end confdefs.h. */
  17729. #include <ctype.h>
  17730. #include <stdlib.h>
  17731. #if ((' ' & 0x0FF) == 0x020)
  17732. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  17733. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  17734. #else
  17735. # define ISLOWER(c) \
  17736. (('a' <= (c) && (c) <= 'i') \
  17737. || ('j' <= (c) && (c) <= 'r') \
  17738. || ('s' <= (c) && (c) <= 'z'))
  17739. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  17740. #endif
  17741. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  17742. int
  17743. main ()
  17744. {
  17745. int i;
  17746. for (i = 0; i < 256; i++)
  17747. if (XOR (islower (i), ISLOWER (i))
  17748. || toupper (i) != TOUPPER (i))
  17749. return 2;
  17750. return 0;
  17751. }
  17752. _ACEOF
  17753. rm -f conftest$ac_exeext
  17754. if { (ac_try="$ac_link"
  17755. case "(($ac_try" in
  17756. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17757. *) ac_try_echo=$ac_try;;
  17758. esac
  17759. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17760. (eval "$ac_link") 2>&5
  17761. ac_status=$?
  17762. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17763. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17764. { (case "(($ac_try" in
  17765. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17766. *) ac_try_echo=$ac_try;;
  17767. esac
  17768. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17769. (eval "$ac_try") 2>&5
  17770. ac_status=$?
  17771. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17772. (exit $ac_status); }; }; then
  17773. :
  17774. else
  17775. echo "$as_me: program exited with status $ac_status" >&5
  17776. echo "$as_me: failed program was:" >&5
  17777. sed 's/^/| /' conftest.$ac_ext >&5
  17778. ( exit $ac_status )
  17779. ac_cv_header_stdc=no
  17780. fi
  17781. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17782. fi
  17783. fi
  17784. fi
  17785. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  17786. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  17787. if test $ac_cv_header_stdc = yes; then
  17788. cat >>confdefs.h <<\_ACEOF
  17789. #define STDC_HEADERS 1
  17790. _ACEOF
  17791. fi
  17792. { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  17793. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
  17794. if test "${ac_cv_header_time+set}" = set; then
  17795. echo $ECHO_N "(cached) $ECHO_C" >&6
  17796. else
  17797. cat >conftest.$ac_ext <<_ACEOF
  17798. /* confdefs.h. */
  17799. _ACEOF
  17800. cat confdefs.h >>conftest.$ac_ext
  17801. cat >>conftest.$ac_ext <<_ACEOF
  17802. /* end confdefs.h. */
  17803. #include <sys/types.h>
  17804. #include <sys/time.h>
  17805. #include <time.h>
  17806. int
  17807. main ()
  17808. {
  17809. if ((struct tm *) 0)
  17810. return 0;
  17811. ;
  17812. return 0;
  17813. }
  17814. _ACEOF
  17815. rm -f conftest.$ac_objext
  17816. if { (ac_try="$ac_compile"
  17817. case "(($ac_try" in
  17818. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17819. *) ac_try_echo=$ac_try;;
  17820. esac
  17821. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17822. (eval "$ac_compile") 2>conftest.er1
  17823. ac_status=$?
  17824. grep -v '^ *+' conftest.er1 >conftest.err
  17825. rm -f conftest.er1
  17826. cat conftest.err >&5
  17827. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17828. (exit $ac_status); } &&
  17829. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  17830. { (case "(($ac_try" in
  17831. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17832. *) ac_try_echo=$ac_try;;
  17833. esac
  17834. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17835. (eval "$ac_try") 2>&5
  17836. ac_status=$?
  17837. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17838. (exit $ac_status); }; } &&
  17839. { ac_try='test -s conftest.$ac_objext'
  17840. { (case "(($ac_try" in
  17841. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17842. *) ac_try_echo=$ac_try;;
  17843. esac
  17844. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17845. (eval "$ac_try") 2>&5
  17846. ac_status=$?
  17847. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17848. (exit $ac_status); }; }; then
  17849. ac_cv_header_time=yes
  17850. else
  17851. echo "$as_me: failed program was:" >&5
  17852. sed 's/^/| /' conftest.$ac_ext >&5
  17853. ac_cv_header_time=no
  17854. fi
  17855. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17856. fi
  17857. { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  17858. echo "${ECHO_T}$ac_cv_header_time" >&6; }
  17859. if test $ac_cv_header_time = yes; then
  17860. cat >>confdefs.h <<\_ACEOF
  17861. #define TIME_WITH_SYS_TIME 1
  17862. _ACEOF
  17863. fi
  17864. for ac_header in arpa/inet.h fcntl.h inttypes.h malloc.h netdb.h netinet/in.h stdint.h stdlib.h signal.h pthread.h string.h sys/socket.h sys/time.h unistd.h io.h stdio.h stdarg.h errno.h ctype.h openssl/rand.h openssl/err.h
  17865. do
  17866. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17867. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17868. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17869. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17870. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17871. echo $ECHO_N "(cached) $ECHO_C" >&6
  17872. fi
  17873. ac_res=`eval echo '${'$as_ac_Header'}'`
  17874. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17875. echo "${ECHO_T}$ac_res" >&6; }
  17876. else
  17877. # Is the header compilable?
  17878. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17879. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  17880. cat >conftest.$ac_ext <<_ACEOF
  17881. /* confdefs.h. */
  17882. _ACEOF
  17883. cat confdefs.h >>conftest.$ac_ext
  17884. cat >>conftest.$ac_ext <<_ACEOF
  17885. /* end confdefs.h. */
  17886. $ac_includes_default
  17887. #include <$ac_header>
  17888. _ACEOF
  17889. rm -f conftest.$ac_objext
  17890. if { (ac_try="$ac_compile"
  17891. case "(($ac_try" in
  17892. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17893. *) ac_try_echo=$ac_try;;
  17894. esac
  17895. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17896. (eval "$ac_compile") 2>conftest.er1
  17897. ac_status=$?
  17898. grep -v '^ *+' conftest.er1 >conftest.err
  17899. rm -f conftest.er1
  17900. cat conftest.err >&5
  17901. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17902. (exit $ac_status); } &&
  17903. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  17904. { (case "(($ac_try" in
  17905. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17906. *) ac_try_echo=$ac_try;;
  17907. esac
  17908. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17909. (eval "$ac_try") 2>&5
  17910. ac_status=$?
  17911. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17912. (exit $ac_status); }; } &&
  17913. { ac_try='test -s conftest.$ac_objext'
  17914. { (case "(($ac_try" in
  17915. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17916. *) ac_try_echo=$ac_try;;
  17917. esac
  17918. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17919. (eval "$ac_try") 2>&5
  17920. ac_status=$?
  17921. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17922. (exit $ac_status); }; }; then
  17923. ac_header_compiler=yes
  17924. else
  17925. echo "$as_me: failed program was:" >&5
  17926. sed 's/^/| /' conftest.$ac_ext >&5
  17927. ac_header_compiler=no
  17928. fi
  17929. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17930. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17931. echo "${ECHO_T}$ac_header_compiler" >&6; }
  17932. # Is the header present?
  17933. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17934. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  17935. cat >conftest.$ac_ext <<_ACEOF
  17936. /* confdefs.h. */
  17937. _ACEOF
  17938. cat confdefs.h >>conftest.$ac_ext
  17939. cat >>conftest.$ac_ext <<_ACEOF
  17940. /* end confdefs.h. */
  17941. #include <$ac_header>
  17942. _ACEOF
  17943. if { (ac_try="$ac_cpp conftest.$ac_ext"
  17944. case "(($ac_try" in
  17945. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17946. *) ac_try_echo=$ac_try;;
  17947. esac
  17948. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17949. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17950. ac_status=$?
  17951. grep -v '^ *+' conftest.er1 >conftest.err
  17952. rm -f conftest.er1
  17953. cat conftest.err >&5
  17954. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17955. (exit $ac_status); } >/dev/null; then
  17956. if test -s conftest.err; then
  17957. ac_cpp_err=$ac_c_preproc_warn_flag
  17958. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  17959. else
  17960. ac_cpp_err=
  17961. fi
  17962. else
  17963. ac_cpp_err=yes
  17964. fi
  17965. if test -z "$ac_cpp_err"; then
  17966. ac_header_preproc=yes
  17967. else
  17968. echo "$as_me: failed program was:" >&5
  17969. sed 's/^/| /' conftest.$ac_ext >&5
  17970. ac_header_preproc=no
  17971. fi
  17972. rm -f conftest.err conftest.$ac_ext
  17973. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17974. echo "${ECHO_T}$ac_header_preproc" >&6; }
  17975. # So? What about this header?
  17976. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  17977. yes:no: )
  17978. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17979. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17980. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17981. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17982. ac_header_preproc=yes
  17983. ;;
  17984. no:yes:* )
  17985. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17986. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17987. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17988. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17989. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17990. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17991. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17992. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17993. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17994. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17995. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17996. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17997. ;;
  17998. esac
  17999. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  18000. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  18001. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18002. echo $ECHO_N "(cached) $ECHO_C" >&6
  18003. else
  18004. eval "$as_ac_Header=\$ac_header_preproc"
  18005. fi
  18006. ac_res=`eval echo '${'$as_ac_Header'}'`
  18007. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18008. echo "${ECHO_T}$ac_res" >&6; }
  18009. fi
  18010. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18011. cat >>confdefs.h <<_ACEOF
  18012. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18013. _ACEOF
  18014. fi
  18015. done
  18016. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  18017. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  18018. if test "${ac_cv_c_const+set}" = set; then
  18019. echo $ECHO_N "(cached) $ECHO_C" >&6
  18020. else
  18021. cat >conftest.$ac_ext <<_ACEOF
  18022. /* confdefs.h. */
  18023. _ACEOF
  18024. cat confdefs.h >>conftest.$ac_ext
  18025. cat >>conftest.$ac_ext <<_ACEOF
  18026. /* end confdefs.h. */
  18027. int
  18028. main ()
  18029. {
  18030. /* FIXME: Include the comments suggested by Paul. */
  18031. #ifndef __cplusplus
  18032. /* Ultrix mips cc rejects this. */
  18033. typedef int charset[2];
  18034. const charset x;
  18035. /* SunOS 4.1.1 cc rejects this. */
  18036. char const *const *ccp;
  18037. char **p;
  18038. /* NEC SVR4.0.2 mips cc rejects this. */
  18039. struct point {int x, y;};
  18040. static struct point const zero = {0,0};
  18041. /* AIX XL C 1.02.0.0 rejects this.
  18042. It does not let you subtract one const X* pointer from another in
  18043. an arm of an if-expression whose if-part is not a constant
  18044. expression */
  18045. const char *g = "string";
  18046. ccp = &g + (g ? g-g : 0);
  18047. /* HPUX 7.0 cc rejects these. */
  18048. ++ccp;
  18049. p = (char**) ccp;
  18050. ccp = (char const *const *) p;
  18051. { /* SCO 3.2v4 cc rejects this. */
  18052. char *t;
  18053. char const *s = 0 ? (char *) 0 : (char const *) 0;
  18054. *t++ = 0;
  18055. if (s) return 0;
  18056. }
  18057. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  18058. int x[] = {25, 17};
  18059. const int *foo = &x[0];
  18060. ++foo;
  18061. }
  18062. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  18063. typedef const int *iptr;
  18064. iptr p = 0;
  18065. ++p;
  18066. }
  18067. { /* AIX XL C 1.02.0.0 rejects this saying
  18068. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  18069. struct s { int j; const int *ap[3]; };
  18070. struct s *b; b->j = 5;
  18071. }
  18072. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  18073. const int foo = 10;
  18074. if (!foo) return 0;
  18075. }
  18076. return !x[0] && !zero.x;
  18077. #endif
  18078. ;
  18079. return 0;
  18080. }
  18081. _ACEOF
  18082. rm -f conftest.$ac_objext
  18083. if { (ac_try="$ac_compile"
  18084. case "(($ac_try" in
  18085. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18086. *) ac_try_echo=$ac_try;;
  18087. esac
  18088. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18089. (eval "$ac_compile") 2>conftest.er1
  18090. ac_status=$?
  18091. grep -v '^ *+' conftest.er1 >conftest.err
  18092. rm -f conftest.er1
  18093. cat conftest.err >&5
  18094. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18095. (exit $ac_status); } &&
  18096. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  18097. { (case "(($ac_try" in
  18098. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18099. *) ac_try_echo=$ac_try;;
  18100. esac
  18101. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18102. (eval "$ac_try") 2>&5
  18103. ac_status=$?
  18104. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18105. (exit $ac_status); }; } &&
  18106. { ac_try='test -s conftest.$ac_objext'
  18107. { (case "(($ac_try" in
  18108. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18109. *) ac_try_echo=$ac_try;;
  18110. esac
  18111. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18112. (eval "$ac_try") 2>&5
  18113. ac_status=$?
  18114. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18115. (exit $ac_status); }; }; then
  18116. ac_cv_c_const=yes
  18117. else
  18118. echo "$as_me: failed program was:" >&5
  18119. sed 's/^/| /' conftest.$ac_ext >&5
  18120. ac_cv_c_const=no
  18121. fi
  18122. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18123. fi
  18124. { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  18125. echo "${ECHO_T}$ac_cv_c_const" >&6; }
  18126. if test $ac_cv_c_const = no; then
  18127. cat >>confdefs.h <<\_ACEOF
  18128. #define const
  18129. _ACEOF
  18130. fi
  18131. { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  18132. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
  18133. if test "${ac_cv_struct_tm+set}" = set; then
  18134. echo $ECHO_N "(cached) $ECHO_C" >&6
  18135. else
  18136. cat >conftest.$ac_ext <<_ACEOF
  18137. /* confdefs.h. */
  18138. _ACEOF
  18139. cat confdefs.h >>conftest.$ac_ext
  18140. cat >>conftest.$ac_ext <<_ACEOF
  18141. /* end confdefs.h. */
  18142. #include <sys/types.h>
  18143. #include <time.h>
  18144. int
  18145. main ()
  18146. {
  18147. struct tm *tp; tp->tm_sec;
  18148. ;
  18149. return 0;
  18150. }
  18151. _ACEOF
  18152. rm -f conftest.$ac_objext
  18153. if { (ac_try="$ac_compile"
  18154. case "(($ac_try" in
  18155. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18156. *) ac_try_echo=$ac_try;;
  18157. esac
  18158. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18159. (eval "$ac_compile") 2>conftest.er1
  18160. ac_status=$?
  18161. grep -v '^ *+' conftest.er1 >conftest.err
  18162. rm -f conftest.er1
  18163. cat conftest.err >&5
  18164. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18165. (exit $ac_status); } &&
  18166. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  18167. { (case "(($ac_try" in
  18168. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18169. *) ac_try_echo=$ac_try;;
  18170. esac
  18171. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18172. (eval "$ac_try") 2>&5
  18173. ac_status=$?
  18174. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18175. (exit $ac_status); }; } &&
  18176. { ac_try='test -s conftest.$ac_objext'
  18177. { (case "(($ac_try" in
  18178. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18179. *) ac_try_echo=$ac_try;;
  18180. esac
  18181. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18182. (eval "$ac_try") 2>&5
  18183. ac_status=$?
  18184. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18185. (exit $ac_status); }; }; then
  18186. ac_cv_struct_tm=time.h
  18187. else
  18188. echo "$as_me: failed program was:" >&5
  18189. sed 's/^/| /' conftest.$ac_ext >&5
  18190. ac_cv_struct_tm=sys/time.h
  18191. fi
  18192. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18193. fi
  18194. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  18195. echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
  18196. if test $ac_cv_struct_tm = sys/time.h; then
  18197. cat >>confdefs.h <<\_ACEOF
  18198. #define TM_IN_SYS_TIME 1
  18199. _ACEOF
  18200. fi
  18201. { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  18202. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
  18203. if test "${ac_cv_type_signal+set}" = set; then
  18204. echo $ECHO_N "(cached) $ECHO_C" >&6
  18205. else
  18206. cat >conftest.$ac_ext <<_ACEOF
  18207. /* confdefs.h. */
  18208. _ACEOF
  18209. cat confdefs.h >>conftest.$ac_ext
  18210. cat >>conftest.$ac_ext <<_ACEOF
  18211. /* end confdefs.h. */
  18212. #include <sys/types.h>
  18213. #include <signal.h>
  18214. int
  18215. main ()
  18216. {
  18217. return *(signal (0, 0)) (0) == 1;
  18218. ;
  18219. return 0;
  18220. }
  18221. _ACEOF
  18222. rm -f conftest.$ac_objext
  18223. if { (ac_try="$ac_compile"
  18224. case "(($ac_try" in
  18225. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18226. *) ac_try_echo=$ac_try;;
  18227. esac
  18228. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18229. (eval "$ac_compile") 2>conftest.er1
  18230. ac_status=$?
  18231. grep -v '^ *+' conftest.er1 >conftest.err
  18232. rm -f conftest.er1
  18233. cat conftest.err >&5
  18234. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18235. (exit $ac_status); } &&
  18236. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  18237. { (case "(($ac_try" in
  18238. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18239. *) ac_try_echo=$ac_try;;
  18240. esac
  18241. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18242. (eval "$ac_try") 2>&5
  18243. ac_status=$?
  18244. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18245. (exit $ac_status); }; } &&
  18246. { ac_try='test -s conftest.$ac_objext'
  18247. { (case "(($ac_try" in
  18248. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18249. *) ac_try_echo=$ac_try;;
  18250. esac
  18251. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18252. (eval "$ac_try") 2>&5
  18253. ac_status=$?
  18254. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18255. (exit $ac_status); }; }; then
  18256. ac_cv_type_signal=int
  18257. else
  18258. echo "$as_me: failed program was:" >&5
  18259. sed 's/^/| /' conftest.$ac_ext >&5
  18260. ac_cv_type_signal=void
  18261. fi
  18262. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18263. fi
  18264. { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  18265. echo "${ECHO_T}$ac_cv_type_signal" >&6; }
  18266. cat >>confdefs.h <<_ACEOF
  18267. #define RETSIGTYPE $ac_cv_type_signal
  18268. _ACEOF
  18269. { echo "$as_me:$LINENO: checking for size_t" >&5
  18270. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  18271. if test "${ac_cv_type_size_t+set}" = set; then
  18272. echo $ECHO_N "(cached) $ECHO_C" >&6
  18273. else
  18274. cat >conftest.$ac_ext <<_ACEOF
  18275. /* confdefs.h. */
  18276. _ACEOF
  18277. cat confdefs.h >>conftest.$ac_ext
  18278. cat >>conftest.$ac_ext <<_ACEOF
  18279. /* end confdefs.h. */
  18280. $ac_includes_default
  18281. typedef size_t ac__type_new_;
  18282. int
  18283. main ()
  18284. {
  18285. if ((ac__type_new_ *) 0)
  18286. return 0;
  18287. if (sizeof (ac__type_new_))
  18288. return 0;
  18289. ;
  18290. return 0;
  18291. }
  18292. _ACEOF
  18293. rm -f conftest.$ac_objext
  18294. if { (ac_try="$ac_compile"
  18295. case "(($ac_try" in
  18296. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18297. *) ac_try_echo=$ac_try;;
  18298. esac
  18299. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18300. (eval "$ac_compile") 2>conftest.er1
  18301. ac_status=$?
  18302. grep -v '^ *+' conftest.er1 >conftest.err
  18303. rm -f conftest.er1
  18304. cat conftest.err >&5
  18305. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18306. (exit $ac_status); } &&
  18307. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  18308. { (case "(($ac_try" in
  18309. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18310. *) ac_try_echo=$ac_try;;
  18311. esac
  18312. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18313. (eval "$ac_try") 2>&5
  18314. ac_status=$?
  18315. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18316. (exit $ac_status); }; } &&
  18317. { ac_try='test -s conftest.$ac_objext'
  18318. { (case "(($ac_try" in
  18319. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18320. *) ac_try_echo=$ac_try;;
  18321. esac
  18322. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18323. (eval "$ac_try") 2>&5
  18324. ac_status=$?
  18325. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18326. (exit $ac_status); }; }; then
  18327. ac_cv_type_size_t=yes
  18328. else
  18329. echo "$as_me: failed program was:" >&5
  18330. sed 's/^/| /' conftest.$ac_ext >&5
  18331. ac_cv_type_size_t=no
  18332. fi
  18333. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18334. fi
  18335. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  18336. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  18337. if test $ac_cv_type_size_t = yes; then
  18338. :
  18339. else
  18340. cat >>confdefs.h <<_ACEOF
  18341. #define size_t unsigned int
  18342. _ACEOF
  18343. fi
  18344. { echo "$as_me:$LINENO: checking for ssize_t" >&5
  18345. echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
  18346. if test "${ac_cv_type_ssize_t+set}" = set; then
  18347. echo $ECHO_N "(cached) $ECHO_C" >&6
  18348. else
  18349. cat >conftest.$ac_ext <<_ACEOF
  18350. /* confdefs.h. */
  18351. _ACEOF
  18352. cat confdefs.h >>conftest.$ac_ext
  18353. cat >>conftest.$ac_ext <<_ACEOF
  18354. /* end confdefs.h. */
  18355. $ac_includes_default
  18356. typedef ssize_t ac__type_new_;
  18357. int
  18358. main ()
  18359. {
  18360. if ((ac__type_new_ *) 0)
  18361. return 0;
  18362. if (sizeof (ac__type_new_))
  18363. return 0;
  18364. ;
  18365. return 0;
  18366. }
  18367. _ACEOF
  18368. rm -f conftest.$ac_objext
  18369. if { (ac_try="$ac_compile"
  18370. case "(($ac_try" in
  18371. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18372. *) ac_try_echo=$ac_try;;
  18373. esac
  18374. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18375. (eval "$ac_compile") 2>conftest.er1
  18376. ac_status=$?
  18377. grep -v '^ *+' conftest.er1 >conftest.err
  18378. rm -f conftest.er1
  18379. cat conftest.err >&5
  18380. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18381. (exit $ac_status); } &&
  18382. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  18383. { (case "(($ac_try" in
  18384. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18385. *) ac_try_echo=$ac_try;;
  18386. esac
  18387. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18388. (eval "$ac_try") 2>&5
  18389. ac_status=$?
  18390. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18391. (exit $ac_status); }; } &&
  18392. { ac_try='test -s conftest.$ac_objext'
  18393. { (case "(($ac_try" in
  18394. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18395. *) ac_try_echo=$ac_try;;
  18396. esac
  18397. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18398. (eval "$ac_try") 2>&5
  18399. ac_status=$?
  18400. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18401. (exit $ac_status); }; }; then
  18402. ac_cv_type_ssize_t=yes
  18403. else
  18404. echo "$as_me: failed program was:" >&5
  18405. sed 's/^/| /' conftest.$ac_ext >&5
  18406. ac_cv_type_ssize_t=no
  18407. fi
  18408. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18409. fi
  18410. { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
  18411. echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
  18412. if test $ac_cv_type_ssize_t = yes; then
  18413. :
  18414. else
  18415. cat >>confdefs.h <<_ACEOF
  18416. #define ssize_t int
  18417. _ACEOF
  18418. fi
  18419. for ac_header in stdlib.h
  18420. do
  18421. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18422. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18423. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  18424. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  18425. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18426. echo $ECHO_N "(cached) $ECHO_C" >&6
  18427. fi
  18428. ac_res=`eval echo '${'$as_ac_Header'}'`
  18429. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18430. echo "${ECHO_T}$ac_res" >&6; }
  18431. else
  18432. # Is the header compilable?
  18433. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18434. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  18435. cat >conftest.$ac_ext <<_ACEOF
  18436. /* confdefs.h. */
  18437. _ACEOF
  18438. cat confdefs.h >>conftest.$ac_ext
  18439. cat >>conftest.$ac_ext <<_ACEOF
  18440. /* end confdefs.h. */
  18441. $ac_includes_default
  18442. #include <$ac_header>
  18443. _ACEOF
  18444. rm -f conftest.$ac_objext
  18445. if { (ac_try="$ac_compile"
  18446. case "(($ac_try" in
  18447. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18448. *) ac_try_echo=$ac_try;;
  18449. esac
  18450. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18451. (eval "$ac_compile") 2>conftest.er1
  18452. ac_status=$?
  18453. grep -v '^ *+' conftest.er1 >conftest.err
  18454. rm -f conftest.er1
  18455. cat conftest.err >&5
  18456. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18457. (exit $ac_status); } &&
  18458. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  18459. { (case "(($ac_try" in
  18460. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18461. *) ac_try_echo=$ac_try;;
  18462. esac
  18463. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18464. (eval "$ac_try") 2>&5
  18465. ac_status=$?
  18466. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18467. (exit $ac_status); }; } &&
  18468. { ac_try='test -s conftest.$ac_objext'
  18469. { (case "(($ac_try" in
  18470. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18471. *) ac_try_echo=$ac_try;;
  18472. esac
  18473. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18474. (eval "$ac_try") 2>&5
  18475. ac_status=$?
  18476. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18477. (exit $ac_status); }; }; then
  18478. ac_header_compiler=yes
  18479. else
  18480. echo "$as_me: failed program was:" >&5
  18481. sed 's/^/| /' conftest.$ac_ext >&5
  18482. ac_header_compiler=no
  18483. fi
  18484. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18485. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18486. echo "${ECHO_T}$ac_header_compiler" >&6; }
  18487. # Is the header present?
  18488. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18489. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  18490. cat >conftest.$ac_ext <<_ACEOF
  18491. /* confdefs.h. */
  18492. _ACEOF
  18493. cat confdefs.h >>conftest.$ac_ext
  18494. cat >>conftest.$ac_ext <<_ACEOF
  18495. /* end confdefs.h. */
  18496. #include <$ac_header>
  18497. _ACEOF
  18498. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18499. case "(($ac_try" in
  18500. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18501. *) ac_try_echo=$ac_try;;
  18502. esac
  18503. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18504. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18505. ac_status=$?
  18506. grep -v '^ *+' conftest.er1 >conftest.err
  18507. rm -f conftest.er1
  18508. cat conftest.err >&5
  18509. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18510. (exit $ac_status); } >/dev/null; then
  18511. if test -s conftest.err; then
  18512. ac_cpp_err=$ac_c_preproc_warn_flag
  18513. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  18514. else
  18515. ac_cpp_err=
  18516. fi
  18517. else
  18518. ac_cpp_err=yes
  18519. fi
  18520. if test -z "$ac_cpp_err"; then
  18521. ac_header_preproc=yes
  18522. else
  18523. echo "$as_me: failed program was:" >&5
  18524. sed 's/^/| /' conftest.$ac_ext >&5
  18525. ac_header_preproc=no
  18526. fi
  18527. rm -f conftest.err conftest.$ac_ext
  18528. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18529. echo "${ECHO_T}$ac_header_preproc" >&6; }
  18530. # So? What about this header?
  18531. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18532. yes:no: )
  18533. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18534. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18535. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18536. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18537. ac_header_preproc=yes
  18538. ;;
  18539. no:yes:* )
  18540. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18541. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18542. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18543. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18544. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18545. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18546. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18547. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18548. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18549. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18550. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18551. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18552. ;;
  18553. esac
  18554. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  18555. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  18556. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18557. echo $ECHO_N "(cached) $ECHO_C" >&6
  18558. else
  18559. eval "$as_ac_Header=\$ac_header_preproc"
  18560. fi
  18561. ac_res=`eval echo '${'$as_ac_Header'}'`
  18562. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18563. echo "${ECHO_T}$ac_res" >&6; }
  18564. fi
  18565. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18566. cat >>confdefs.h <<_ACEOF
  18567. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18568. _ACEOF
  18569. fi
  18570. done
  18571. { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  18572. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
  18573. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  18574. echo $ECHO_N "(cached) $ECHO_C" >&6
  18575. else
  18576. if test "$cross_compiling" = yes; then
  18577. ac_cv_func_malloc_0_nonnull=no
  18578. else
  18579. cat >conftest.$ac_ext <<_ACEOF
  18580. /* confdefs.h. */
  18581. _ACEOF
  18582. cat confdefs.h >>conftest.$ac_ext
  18583. cat >>conftest.$ac_ext <<_ACEOF
  18584. /* end confdefs.h. */
  18585. #if STDC_HEADERS || HAVE_STDLIB_H
  18586. # include <stdlib.h>
  18587. #else
  18588. char *malloc ();
  18589. #endif
  18590. int
  18591. main ()
  18592. {
  18593. return ! malloc (0);
  18594. ;
  18595. return 0;
  18596. }
  18597. _ACEOF
  18598. rm -f conftest$ac_exeext
  18599. if { (ac_try="$ac_link"
  18600. case "(($ac_try" in
  18601. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18602. *) ac_try_echo=$ac_try;;
  18603. esac
  18604. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18605. (eval "$ac_link") 2>&5
  18606. ac_status=$?
  18607. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18608. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18609. { (case "(($ac_try" in
  18610. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18611. *) ac_try_echo=$ac_try;;
  18612. esac
  18613. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18614. (eval "$ac_try") 2>&5
  18615. ac_status=$?
  18616. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18617. (exit $ac_status); }; }; then
  18618. ac_cv_func_malloc_0_nonnull=yes
  18619. else
  18620. echo "$as_me: program exited with status $ac_status" >&5
  18621. echo "$as_me: failed program was:" >&5
  18622. sed 's/^/| /' conftest.$ac_ext >&5
  18623. ( exit $ac_status )
  18624. ac_cv_func_malloc_0_nonnull=no
  18625. fi
  18626. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18627. fi
  18628. fi
  18629. { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  18630. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
  18631. if test $ac_cv_func_malloc_0_nonnull = yes; then
  18632. cat >>confdefs.h <<\_ACEOF
  18633. #define HAVE_MALLOC 1
  18634. _ACEOF
  18635. else
  18636. cat >>confdefs.h <<\_ACEOF
  18637. #define HAVE_MALLOC 0
  18638. _ACEOF
  18639. case " $LIBOBJS " in
  18640. *" malloc.$ac_objext "* ) ;;
  18641. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  18642. ;;
  18643. esac
  18644. cat >>confdefs.h <<\_ACEOF
  18645. #define malloc rpl_malloc
  18646. _ACEOF
  18647. fi
  18648. for ac_func in vprintf
  18649. do
  18650. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18651. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18652. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18653. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18654. echo $ECHO_N "(cached) $ECHO_C" >&6
  18655. else
  18656. cat >conftest.$ac_ext <<_ACEOF
  18657. /* confdefs.h. */
  18658. _ACEOF
  18659. cat confdefs.h >>conftest.$ac_ext
  18660. cat >>conftest.$ac_ext <<_ACEOF
  18661. /* end confdefs.h. */
  18662. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18663. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18664. #define $ac_func innocuous_$ac_func
  18665. /* System header to define __stub macros and hopefully few prototypes,
  18666. which can conflict with char $ac_func (); below.
  18667. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18668. <limits.h> exists even on freestanding compilers. */
  18669. #ifdef __STDC__
  18670. # include <limits.h>
  18671. #else
  18672. # include <assert.h>
  18673. #endif
  18674. #undef $ac_func
  18675. /* Override any GCC internal prototype to avoid an error.
  18676. Use char because int might match the return type of a GCC
  18677. builtin and then its argument prototype would still apply. */
  18678. #ifdef __cplusplus
  18679. extern "C"
  18680. #endif
  18681. char $ac_func ();
  18682. /* The GNU C library defines this for functions which it implements
  18683. to always fail with ENOSYS. Some functions are actually named
  18684. something starting with __ and the normal name is an alias. */
  18685. #if defined __stub_$ac_func || defined __stub___$ac_func
  18686. choke me
  18687. #endif
  18688. int
  18689. main ()
  18690. {
  18691. return $ac_func ();
  18692. ;
  18693. return 0;
  18694. }
  18695. _ACEOF
  18696. rm -f conftest.$ac_objext conftest$ac_exeext
  18697. if { (ac_try="$ac_link"
  18698. case "(($ac_try" in
  18699. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18700. *) ac_try_echo=$ac_try;;
  18701. esac
  18702. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18703. (eval "$ac_link") 2>conftest.er1
  18704. ac_status=$?
  18705. grep -v '^ *+' conftest.er1 >conftest.err
  18706. rm -f conftest.er1
  18707. cat conftest.err >&5
  18708. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18709. (exit $ac_status); } &&
  18710. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  18711. { (case "(($ac_try" in
  18712. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18713. *) ac_try_echo=$ac_try;;
  18714. esac
  18715. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18716. (eval "$ac_try") 2>&5
  18717. ac_status=$?
  18718. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18719. (exit $ac_status); }; } &&
  18720. { ac_try='test -s conftest$ac_exeext'
  18721. { (case "(($ac_try" in
  18722. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18723. *) ac_try_echo=$ac_try;;
  18724. esac
  18725. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18726. (eval "$ac_try") 2>&5
  18727. ac_status=$?
  18728. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18729. (exit $ac_status); }; }; then
  18730. eval "$as_ac_var=yes"
  18731. else
  18732. echo "$as_me: failed program was:" >&5
  18733. sed 's/^/| /' conftest.$ac_ext >&5
  18734. eval "$as_ac_var=no"
  18735. fi
  18736. rm -f conftest.err conftest.$ac_objext \
  18737. conftest$ac_exeext conftest.$ac_ext
  18738. fi
  18739. ac_res=`eval echo '${'$as_ac_var'}'`
  18740. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18741. echo "${ECHO_T}$ac_res" >&6; }
  18742. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18743. cat >>confdefs.h <<_ACEOF
  18744. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18745. _ACEOF
  18746. { echo "$as_me:$LINENO: checking for _doprnt" >&5
  18747. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
  18748. if test "${ac_cv_func__doprnt+set}" = set; then
  18749. echo $ECHO_N "(cached) $ECHO_C" >&6
  18750. else
  18751. cat >conftest.$ac_ext <<_ACEOF
  18752. /* confdefs.h. */
  18753. _ACEOF
  18754. cat confdefs.h >>conftest.$ac_ext
  18755. cat >>conftest.$ac_ext <<_ACEOF
  18756. /* end confdefs.h. */
  18757. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  18758. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18759. #define _doprnt innocuous__doprnt
  18760. /* System header to define __stub macros and hopefully few prototypes,
  18761. which can conflict with char _doprnt (); below.
  18762. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18763. <limits.h> exists even on freestanding compilers. */
  18764. #ifdef __STDC__
  18765. # include <limits.h>
  18766. #else
  18767. # include <assert.h>
  18768. #endif
  18769. #undef _doprnt
  18770. /* Override any GCC internal prototype to avoid an error.
  18771. Use char because int might match the return type of a GCC
  18772. builtin and then its argument prototype would still apply. */
  18773. #ifdef __cplusplus
  18774. extern "C"
  18775. #endif
  18776. char _doprnt ();
  18777. /* The GNU C library defines this for functions which it implements
  18778. to always fail with ENOSYS. Some functions are actually named
  18779. something starting with __ and the normal name is an alias. */
  18780. #if defined __stub__doprnt || defined __stub____doprnt
  18781. choke me
  18782. #endif
  18783. int
  18784. main ()
  18785. {
  18786. return _doprnt ();
  18787. ;
  18788. return 0;
  18789. }
  18790. _ACEOF
  18791. rm -f conftest.$ac_objext conftest$ac_exeext
  18792. if { (ac_try="$ac_link"
  18793. case "(($ac_try" in
  18794. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18795. *) ac_try_echo=$ac_try;;
  18796. esac
  18797. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18798. (eval "$ac_link") 2>conftest.er1
  18799. ac_status=$?
  18800. grep -v '^ *+' conftest.er1 >conftest.err
  18801. rm -f conftest.er1
  18802. cat conftest.err >&5
  18803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18804. (exit $ac_status); } &&
  18805. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  18806. { (case "(($ac_try" in
  18807. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18808. *) ac_try_echo=$ac_try;;
  18809. esac
  18810. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18811. (eval "$ac_try") 2>&5
  18812. ac_status=$?
  18813. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18814. (exit $ac_status); }; } &&
  18815. { ac_try='test -s conftest$ac_exeext'
  18816. { (case "(($ac_try" in
  18817. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18818. *) ac_try_echo=$ac_try;;
  18819. esac
  18820. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18821. (eval "$ac_try") 2>&5
  18822. ac_status=$?
  18823. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18824. (exit $ac_status); }; }; then
  18825. ac_cv_func__doprnt=yes
  18826. else
  18827. echo "$as_me: failed program was:" >&5
  18828. sed 's/^/| /' conftest.$ac_ext >&5
  18829. ac_cv_func__doprnt=no
  18830. fi
  18831. rm -f conftest.err conftest.$ac_objext \
  18832. conftest$ac_exeext conftest.$ac_ext
  18833. fi
  18834. { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  18835. echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
  18836. if test $ac_cv_func__doprnt = yes; then
  18837. cat >>confdefs.h <<\_ACEOF
  18838. #define HAVE_DOPRNT 1
  18839. _ACEOF
  18840. fi
  18841. fi
  18842. done
  18843. for ac_func in strftime
  18844. do
  18845. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18846. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18847. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18848. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18849. echo $ECHO_N "(cached) $ECHO_C" >&6
  18850. else
  18851. cat >conftest.$ac_ext <<_ACEOF
  18852. /* confdefs.h. */
  18853. _ACEOF
  18854. cat confdefs.h >>conftest.$ac_ext
  18855. cat >>conftest.$ac_ext <<_ACEOF
  18856. /* end confdefs.h. */
  18857. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18858. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18859. #define $ac_func innocuous_$ac_func
  18860. /* System header to define __stub macros and hopefully few prototypes,
  18861. which can conflict with char $ac_func (); below.
  18862. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18863. <limits.h> exists even on freestanding compilers. */
  18864. #ifdef __STDC__
  18865. # include <limits.h>
  18866. #else
  18867. # include <assert.h>
  18868. #endif
  18869. #undef $ac_func
  18870. /* Override any GCC internal prototype to avoid an error.
  18871. Use char because int might match the return type of a GCC
  18872. builtin and then its argument prototype would still apply. */
  18873. #ifdef __cplusplus
  18874. extern "C"
  18875. #endif
  18876. char $ac_func ();
  18877. /* The GNU C library defines this for functions which it implements
  18878. to always fail with ENOSYS. Some functions are actually named
  18879. something starting with __ and the normal name is an alias. */
  18880. #if defined __stub_$ac_func || defined __stub___$ac_func
  18881. choke me
  18882. #endif
  18883. int
  18884. main ()
  18885. {
  18886. return $ac_func ();
  18887. ;
  18888. return 0;
  18889. }
  18890. _ACEOF
  18891. rm -f conftest.$ac_objext conftest$ac_exeext
  18892. if { (ac_try="$ac_link"
  18893. case "(($ac_try" in
  18894. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18895. *) ac_try_echo=$ac_try;;
  18896. esac
  18897. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18898. (eval "$ac_link") 2>conftest.er1
  18899. ac_status=$?
  18900. grep -v '^ *+' conftest.er1 >conftest.err
  18901. rm -f conftest.er1
  18902. cat conftest.err >&5
  18903. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18904. (exit $ac_status); } &&
  18905. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  18906. { (case "(($ac_try" in
  18907. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18908. *) ac_try_echo=$ac_try;;
  18909. esac
  18910. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18911. (eval "$ac_try") 2>&5
  18912. ac_status=$?
  18913. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18914. (exit $ac_status); }; } &&
  18915. { ac_try='test -s conftest$ac_exeext'
  18916. { (case "(($ac_try" in
  18917. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18918. *) ac_try_echo=$ac_try;;
  18919. esac
  18920. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18921. (eval "$ac_try") 2>&5
  18922. ac_status=$?
  18923. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18924. (exit $ac_status); }; }; then
  18925. eval "$as_ac_var=yes"
  18926. else
  18927. echo "$as_me: failed program was:" >&5
  18928. sed 's/^/| /' conftest.$ac_ext >&5
  18929. eval "$as_ac_var=no"
  18930. fi
  18931. rm -f conftest.err conftest.$ac_objext \
  18932. conftest$ac_exeext conftest.$ac_ext
  18933. fi
  18934. ac_res=`eval echo '${'$as_ac_var'}'`
  18935. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18936. echo "${ECHO_T}$ac_res" >&6; }
  18937. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18938. cat >>confdefs.h <<_ACEOF
  18939. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18940. _ACEOF
  18941. else
  18942. # strftime is in -lintl on SCO UNIX.
  18943. { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  18944. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
  18945. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  18946. echo $ECHO_N "(cached) $ECHO_C" >&6
  18947. else
  18948. ac_check_lib_save_LIBS=$LIBS
  18949. LIBS="-lintl $LIBS"
  18950. cat >conftest.$ac_ext <<_ACEOF
  18951. /* confdefs.h. */
  18952. _ACEOF
  18953. cat confdefs.h >>conftest.$ac_ext
  18954. cat >>conftest.$ac_ext <<_ACEOF
  18955. /* end confdefs.h. */
  18956. /* Override any GCC internal prototype to avoid an error.
  18957. Use char because int might match the return type of a GCC
  18958. builtin and then its argument prototype would still apply. */
  18959. #ifdef __cplusplus
  18960. extern "C"
  18961. #endif
  18962. char strftime ();
  18963. int
  18964. main ()
  18965. {
  18966. return strftime ();
  18967. ;
  18968. return 0;
  18969. }
  18970. _ACEOF
  18971. rm -f conftest.$ac_objext conftest$ac_exeext
  18972. if { (ac_try="$ac_link"
  18973. case "(($ac_try" in
  18974. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18975. *) ac_try_echo=$ac_try;;
  18976. esac
  18977. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18978. (eval "$ac_link") 2>conftest.er1
  18979. ac_status=$?
  18980. grep -v '^ *+' conftest.er1 >conftest.err
  18981. rm -f conftest.er1
  18982. cat conftest.err >&5
  18983. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18984. (exit $ac_status); } &&
  18985. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  18986. { (case "(($ac_try" in
  18987. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18988. *) ac_try_echo=$ac_try;;
  18989. esac
  18990. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18991. (eval "$ac_try") 2>&5
  18992. ac_status=$?
  18993. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18994. (exit $ac_status); }; } &&
  18995. { ac_try='test -s conftest$ac_exeext'
  18996. { (case "(($ac_try" in
  18997. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18998. *) ac_try_echo=$ac_try;;
  18999. esac
  19000. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19001. (eval "$ac_try") 2>&5
  19002. ac_status=$?
  19003. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19004. (exit $ac_status); }; }; then
  19005. ac_cv_lib_intl_strftime=yes
  19006. else
  19007. echo "$as_me: failed program was:" >&5
  19008. sed 's/^/| /' conftest.$ac_ext >&5
  19009. ac_cv_lib_intl_strftime=no
  19010. fi
  19011. rm -f conftest.err conftest.$ac_objext \
  19012. conftest$ac_exeext conftest.$ac_ext
  19013. LIBS=$ac_check_lib_save_LIBS
  19014. fi
  19015. { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  19016. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
  19017. if test $ac_cv_lib_intl_strftime = yes; then
  19018. cat >>confdefs.h <<\_ACEOF
  19019. #define HAVE_STRFTIME 1
  19020. _ACEOF
  19021. LIBS="-lintl $LIBS"
  19022. fi
  19023. fi
  19024. done
  19025. for ac_header in sys/select.h sys/socket.h
  19026. do
  19027. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  19028. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  19029. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  19030. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  19031. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  19032. echo $ECHO_N "(cached) $ECHO_C" >&6
  19033. fi
  19034. ac_res=`eval echo '${'$as_ac_Header'}'`
  19035. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19036. echo "${ECHO_T}$ac_res" >&6; }
  19037. else
  19038. # Is the header compilable?
  19039. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  19040. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  19041. cat >conftest.$ac_ext <<_ACEOF
  19042. /* confdefs.h. */
  19043. _ACEOF
  19044. cat confdefs.h >>conftest.$ac_ext
  19045. cat >>conftest.$ac_ext <<_ACEOF
  19046. /* end confdefs.h. */
  19047. $ac_includes_default
  19048. #include <$ac_header>
  19049. _ACEOF
  19050. rm -f conftest.$ac_objext
  19051. if { (ac_try="$ac_compile"
  19052. case "(($ac_try" in
  19053. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19054. *) ac_try_echo=$ac_try;;
  19055. esac
  19056. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19057. (eval "$ac_compile") 2>conftest.er1
  19058. ac_status=$?
  19059. grep -v '^ *+' conftest.er1 >conftest.err
  19060. rm -f conftest.er1
  19061. cat conftest.err >&5
  19062. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19063. (exit $ac_status); } &&
  19064. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  19065. { (case "(($ac_try" in
  19066. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19067. *) ac_try_echo=$ac_try;;
  19068. esac
  19069. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19070. (eval "$ac_try") 2>&5
  19071. ac_status=$?
  19072. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19073. (exit $ac_status); }; } &&
  19074. { ac_try='test -s conftest.$ac_objext'
  19075. { (case "(($ac_try" in
  19076. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19077. *) ac_try_echo=$ac_try;;
  19078. esac
  19079. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19080. (eval "$ac_try") 2>&5
  19081. ac_status=$?
  19082. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19083. (exit $ac_status); }; }; then
  19084. ac_header_compiler=yes
  19085. else
  19086. echo "$as_me: failed program was:" >&5
  19087. sed 's/^/| /' conftest.$ac_ext >&5
  19088. ac_header_compiler=no
  19089. fi
  19090. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19091. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19092. echo "${ECHO_T}$ac_header_compiler" >&6; }
  19093. # Is the header present?
  19094. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  19095. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  19096. cat >conftest.$ac_ext <<_ACEOF
  19097. /* confdefs.h. */
  19098. _ACEOF
  19099. cat confdefs.h >>conftest.$ac_ext
  19100. cat >>conftest.$ac_ext <<_ACEOF
  19101. /* end confdefs.h. */
  19102. #include <$ac_header>
  19103. _ACEOF
  19104. if { (ac_try="$ac_cpp conftest.$ac_ext"
  19105. case "(($ac_try" in
  19106. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19107. *) ac_try_echo=$ac_try;;
  19108. esac
  19109. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19110. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19111. ac_status=$?
  19112. grep -v '^ *+' conftest.er1 >conftest.err
  19113. rm -f conftest.er1
  19114. cat conftest.err >&5
  19115. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19116. (exit $ac_status); } >/dev/null; then
  19117. if test -s conftest.err; then
  19118. ac_cpp_err=$ac_c_preproc_warn_flag
  19119. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  19120. else
  19121. ac_cpp_err=
  19122. fi
  19123. else
  19124. ac_cpp_err=yes
  19125. fi
  19126. if test -z "$ac_cpp_err"; then
  19127. ac_header_preproc=yes
  19128. else
  19129. echo "$as_me: failed program was:" >&5
  19130. sed 's/^/| /' conftest.$ac_ext >&5
  19131. ac_header_preproc=no
  19132. fi
  19133. rm -f conftest.err conftest.$ac_ext
  19134. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19135. echo "${ECHO_T}$ac_header_preproc" >&6; }
  19136. # So? What about this header?
  19137. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19138. yes:no: )
  19139. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  19140. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19141. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  19142. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  19143. ac_header_preproc=yes
  19144. ;;
  19145. no:yes:* )
  19146. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  19147. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  19148. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  19149. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  19150. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  19151. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  19152. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  19153. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  19154. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  19155. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  19156. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  19157. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  19158. ;;
  19159. esac
  19160. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  19161. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  19162. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  19163. echo $ECHO_N "(cached) $ECHO_C" >&6
  19164. else
  19165. eval "$as_ac_Header=\$ac_header_preproc"
  19166. fi
  19167. ac_res=`eval echo '${'$as_ac_Header'}'`
  19168. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19169. echo "${ECHO_T}$ac_res" >&6; }
  19170. fi
  19171. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  19172. cat >>confdefs.h <<_ACEOF
  19173. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19174. _ACEOF
  19175. fi
  19176. done
  19177. { echo "$as_me:$LINENO: checking types of arguments for select" >&5
  19178. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
  19179. if test "${ac_cv_func_select_args+set}" = set; then
  19180. echo $ECHO_N "(cached) $ECHO_C" >&6
  19181. else
  19182. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  19183. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  19184. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  19185. cat >conftest.$ac_ext <<_ACEOF
  19186. /* confdefs.h. */
  19187. _ACEOF
  19188. cat confdefs.h >>conftest.$ac_ext
  19189. cat >>conftest.$ac_ext <<_ACEOF
  19190. /* end confdefs.h. */
  19191. $ac_includes_default
  19192. #if HAVE_SYS_SELECT_H
  19193. # include <sys/select.h>
  19194. #endif
  19195. #if HAVE_SYS_SOCKET_H
  19196. # include <sys/socket.h>
  19197. #endif
  19198. int
  19199. main ()
  19200. {
  19201. extern int select ($ac_arg1,
  19202. $ac_arg234, $ac_arg234, $ac_arg234,
  19203. $ac_arg5);
  19204. ;
  19205. return 0;
  19206. }
  19207. _ACEOF
  19208. rm -f conftest.$ac_objext
  19209. if { (ac_try="$ac_compile"
  19210. case "(($ac_try" in
  19211. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19212. *) ac_try_echo=$ac_try;;
  19213. esac
  19214. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19215. (eval "$ac_compile") 2>conftest.er1
  19216. ac_status=$?
  19217. grep -v '^ *+' conftest.er1 >conftest.err
  19218. rm -f conftest.er1
  19219. cat conftest.err >&5
  19220. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19221. (exit $ac_status); } &&
  19222. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  19223. { (case "(($ac_try" in
  19224. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19225. *) ac_try_echo=$ac_try;;
  19226. esac
  19227. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19228. (eval "$ac_try") 2>&5
  19229. ac_status=$?
  19230. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19231. (exit $ac_status); }; } &&
  19232. { ac_try='test -s conftest.$ac_objext'
  19233. { (case "(($ac_try" in
  19234. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19235. *) ac_try_echo=$ac_try;;
  19236. esac
  19237. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19238. (eval "$ac_try") 2>&5
  19239. ac_status=$?
  19240. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19241. (exit $ac_status); }; }; then
  19242. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  19243. else
  19244. echo "$as_me: failed program was:" >&5
  19245. sed 's/^/| /' conftest.$ac_ext >&5
  19246. fi
  19247. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19248. done
  19249. done
  19250. done
  19251. # Provide a safe default value.
  19252. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  19253. fi
  19254. { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  19255. echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
  19256. ac_save_IFS=$IFS; IFS=','
  19257. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  19258. IFS=$ac_save_IFS
  19259. shift
  19260. cat >>confdefs.h <<_ACEOF
  19261. #define SELECT_TYPE_ARG1 $1
  19262. _ACEOF
  19263. cat >>confdefs.h <<_ACEOF
  19264. #define SELECT_TYPE_ARG234 ($2)
  19265. _ACEOF
  19266. cat >>confdefs.h <<_ACEOF
  19267. #define SELECT_TYPE_ARG5 ($3)
  19268. _ACEOF
  19269. rm -f conftest*
  19270. for ac_func in gethostbyname inet_ntoa memmove memset mkdir select socket strchr strdup strncasecmp strpbrk strspn strstr strtol
  19271. do
  19272. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19273. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  19274. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  19275. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19276. echo $ECHO_N "(cached) $ECHO_C" >&6
  19277. else
  19278. cat >conftest.$ac_ext <<_ACEOF
  19279. /* confdefs.h. */
  19280. _ACEOF
  19281. cat confdefs.h >>conftest.$ac_ext
  19282. cat >>conftest.$ac_ext <<_ACEOF
  19283. /* end confdefs.h. */
  19284. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19285. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19286. #define $ac_func innocuous_$ac_func
  19287. /* System header to define __stub macros and hopefully few prototypes,
  19288. which can conflict with char $ac_func (); below.
  19289. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19290. <limits.h> exists even on freestanding compilers. */
  19291. #ifdef __STDC__
  19292. # include <limits.h>
  19293. #else
  19294. # include <assert.h>
  19295. #endif
  19296. #undef $ac_func
  19297. /* Override any GCC internal prototype to avoid an error.
  19298. Use char because int might match the return type of a GCC
  19299. builtin and then its argument prototype would still apply. */
  19300. #ifdef __cplusplus
  19301. extern "C"
  19302. #endif
  19303. char $ac_func ();
  19304. /* The GNU C library defines this for functions which it implements
  19305. to always fail with ENOSYS. Some functions are actually named
  19306. something starting with __ and the normal name is an alias. */
  19307. #if defined __stub_$ac_func || defined __stub___$ac_func
  19308. choke me
  19309. #endif
  19310. int
  19311. main ()
  19312. {
  19313. return $ac_func ();
  19314. ;
  19315. return 0;
  19316. }
  19317. _ACEOF
  19318. rm -f conftest.$ac_objext conftest$ac_exeext
  19319. if { (ac_try="$ac_link"
  19320. case "(($ac_try" in
  19321. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19322. *) ac_try_echo=$ac_try;;
  19323. esac
  19324. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19325. (eval "$ac_link") 2>conftest.er1
  19326. ac_status=$?
  19327. grep -v '^ *+' conftest.er1 >conftest.err
  19328. rm -f conftest.er1
  19329. cat conftest.err >&5
  19330. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19331. (exit $ac_status); } &&
  19332. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  19333. { (case "(($ac_try" in
  19334. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19335. *) ac_try_echo=$ac_try;;
  19336. esac
  19337. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19338. (eval "$ac_try") 2>&5
  19339. ac_status=$?
  19340. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19341. (exit $ac_status); }; } &&
  19342. { ac_try='test -s conftest$ac_exeext'
  19343. { (case "(($ac_try" in
  19344. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19345. *) ac_try_echo=$ac_try;;
  19346. esac
  19347. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19348. (eval "$ac_try") 2>&5
  19349. ac_status=$?
  19350. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19351. (exit $ac_status); }; }; then
  19352. eval "$as_ac_var=yes"
  19353. else
  19354. echo "$as_me: failed program was:" >&5
  19355. sed 's/^/| /' conftest.$ac_ext >&5
  19356. eval "$as_ac_var=no"
  19357. fi
  19358. rm -f conftest.err conftest.$ac_objext \
  19359. conftest$ac_exeext conftest.$ac_ext
  19360. fi
  19361. ac_res=`eval echo '${'$as_ac_var'}'`
  19362. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19363. echo "${ECHO_T}$ac_res" >&6; }
  19364. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19365. cat >>confdefs.h <<_ACEOF
  19366. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19367. _ACEOF
  19368. fi
  19369. done
  19370. ac_ext=c
  19371. ac_cpp='$CPP $CPPFLAGS'
  19372. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19373. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19374. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19375. acx_pthread_ok=no
  19376. # We used to check for pthread.h first, but this fails if pthread.h
  19377. # requires special compiler flags (e.g. on True64 or Sequent).
  19378. # It gets checked for in the link test anyway.
  19379. # First of all, check if the user has set any of the PTHREAD_LIBS,
  19380. # etcetera environment variables, and if threads linking works using
  19381. # them:
  19382. if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
  19383. save_CFLAGS="$CFLAGS"
  19384. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  19385. save_LIBS="$LIBS"
  19386. LIBS="$PTHREAD_LIBS $LIBS"
  19387. { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
  19388. echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
  19389. cat >conftest.$ac_ext <<_ACEOF
  19390. /* confdefs.h. */
  19391. _ACEOF
  19392. cat confdefs.h >>conftest.$ac_ext
  19393. cat >>conftest.$ac_ext <<_ACEOF
  19394. /* end confdefs.h. */
  19395. /* Override any GCC internal prototype to avoid an error.
  19396. Use char because int might match the return type of a GCC
  19397. builtin and then its argument prototype would still apply. */
  19398. #ifdef __cplusplus
  19399. extern "C"
  19400. #endif
  19401. char pthread_join ();
  19402. int
  19403. main ()
  19404. {
  19405. return pthread_join ();
  19406. ;
  19407. return 0;
  19408. }
  19409. _ACEOF
  19410. rm -f conftest.$ac_objext conftest$ac_exeext
  19411. if { (ac_try="$ac_link"
  19412. case "(($ac_try" in
  19413. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19414. *) ac_try_echo=$ac_try;;
  19415. esac
  19416. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19417. (eval "$ac_link") 2>conftest.er1
  19418. ac_status=$?
  19419. grep -v '^ *+' conftest.er1 >conftest.err
  19420. rm -f conftest.er1
  19421. cat conftest.err >&5
  19422. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19423. (exit $ac_status); } &&
  19424. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  19425. { (case "(($ac_try" in
  19426. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19427. *) ac_try_echo=$ac_try;;
  19428. esac
  19429. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19430. (eval "$ac_try") 2>&5
  19431. ac_status=$?
  19432. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19433. (exit $ac_status); }; } &&
  19434. { ac_try='test -s conftest$ac_exeext'
  19435. { (case "(($ac_try" in
  19436. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19437. *) ac_try_echo=$ac_try;;
  19438. esac
  19439. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19440. (eval "$ac_try") 2>&5
  19441. ac_status=$?
  19442. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19443. (exit $ac_status); }; }; then
  19444. acx_pthread_ok=yes
  19445. else
  19446. echo "$as_me: failed program was:" >&5
  19447. sed 's/^/| /' conftest.$ac_ext >&5
  19448. fi
  19449. rm -f conftest.err conftest.$ac_objext \
  19450. conftest$ac_exeext conftest.$ac_ext
  19451. { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
  19452. echo "${ECHO_T}$acx_pthread_ok" >&6; }
  19453. if test x"$acx_pthread_ok" = xno; then
  19454. PTHREAD_LIBS=""
  19455. PTHREAD_CFLAGS=""
  19456. fi
  19457. LIBS="$save_LIBS"
  19458. CFLAGS="$save_CFLAGS"
  19459. fi
  19460. # We must check for the threads library under a number of different
  19461. # names; the ordering is very important because some systems
  19462. # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
  19463. # libraries is broken (non-POSIX).
  19464. # Create a list of thread flags to try. Items starting with a "-" are
  19465. # C compiler flags, and other items are library names, except for "none"
  19466. # which indicates that we try without any flags at all, and "pthread-config"
  19467. # which is a program returning the flags for the Pth emulation library.
  19468. acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
  19469. # The ordering *is* (sometimes) important. Some notes on the
  19470. # individual items follow:
  19471. # pthreads: AIX (must check this before -lpthread)
  19472. # none: in case threads are in libc; should be tried before -Kthread and
  19473. # other compiler flags to prevent continual compiler warnings
  19474. # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
  19475. # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
  19476. # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
  19477. # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
  19478. # -pthreads: Solaris/gcc
  19479. # -mthreads: Mingw32/gcc, Lynx/gcc
  19480. # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
  19481. # doesn't hurt to check since this sometimes defines pthreads too;
  19482. # also defines -D_REENTRANT)
  19483. # ... -mt is also the pthreads flag for HP/aCC
  19484. # pthread: Linux, etcetera
  19485. # --thread-safe: KAI C++
  19486. # pthread-config: use pthread-config program (for GNU Pth library)
  19487. case "${host_cpu}-${host_os}" in
  19488. *solaris*)
  19489. # On Solaris (at least, for some versions), libc contains stubbed
  19490. # (non-functional) versions of the pthreads routines, so link-based
  19491. # tests will erroneously succeed. (We need to link with -pthreads/-mt/
  19492. # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
  19493. # a function called by this macro, so we could check for that, but
  19494. # who knows whether they'll stub that too in a future libc.) So,
  19495. # we'll just look for -pthreads and -lpthread first:
  19496. acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
  19497. ;;
  19498. esac
  19499. if test x"$acx_pthread_ok" = xno; then
  19500. for flag in $acx_pthread_flags; do
  19501. case $flag in
  19502. none)
  19503. { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
  19504. echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
  19505. ;;
  19506. -*)
  19507. { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
  19508. echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
  19509. PTHREAD_CFLAGS="$flag"
  19510. ;;
  19511. pthread-config)
  19512. # Extract the first word of "pthread-config", so it can be a program name with args.
  19513. set dummy pthread-config; ac_word=$2
  19514. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  19515. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  19516. if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
  19517. echo $ECHO_N "(cached) $ECHO_C" >&6
  19518. else
  19519. if test -n "$acx_pthread_config"; then
  19520. ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
  19521. else
  19522. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19523. for as_dir in $PATH
  19524. do
  19525. IFS=$as_save_IFS
  19526. test -z "$as_dir" && as_dir=.
  19527. for ac_exec_ext in '' $ac_executable_extensions; do
  19528. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  19529. ac_cv_prog_acx_pthread_config="yes"
  19530. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19531. break 2
  19532. fi
  19533. done
  19534. done
  19535. IFS=$as_save_IFS
  19536. test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
  19537. fi
  19538. fi
  19539. acx_pthread_config=$ac_cv_prog_acx_pthread_config
  19540. if test -n "$acx_pthread_config"; then
  19541. { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
  19542. echo "${ECHO_T}$acx_pthread_config" >&6; }
  19543. else
  19544. { echo "$as_me:$LINENO: result: no" >&5
  19545. echo "${ECHO_T}no" >&6; }
  19546. fi
  19547. if test x"$acx_pthread_config" = xno; then continue; fi
  19548. PTHREAD_CFLAGS="`pthread-config --cflags`"
  19549. PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
  19550. ;;
  19551. *)
  19552. { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
  19553. echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
  19554. PTHREAD_LIBS="-l$flag"
  19555. ;;
  19556. esac
  19557. save_LIBS="$LIBS"
  19558. save_CFLAGS="$CFLAGS"
  19559. LIBS="$PTHREAD_LIBS $LIBS"
  19560. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  19561. # Check for various functions. We must include pthread.h,
  19562. # since some functions may be macros. (On the Sequent, we
  19563. # need a special flag -Kthread to make this header compile.)
  19564. # We check for pthread_join because it is in -lpthread on IRIX
  19565. # while pthread_create is in libc. We check for pthread_attr_init
  19566. # due to DEC craziness with -lpthreads. We check for
  19567. # pthread_cleanup_push because it is one of the few pthread
  19568. # functions on Solaris that doesn't have a non-functional libc stub.
  19569. # We try pthread_create on general principles.
  19570. cat >conftest.$ac_ext <<_ACEOF
  19571. /* confdefs.h. */
  19572. _ACEOF
  19573. cat confdefs.h >>conftest.$ac_ext
  19574. cat >>conftest.$ac_ext <<_ACEOF
  19575. /* end confdefs.h. */
  19576. #include <pthread.h>
  19577. int
  19578. main ()
  19579. {
  19580. pthread_t th; pthread_join(th, 0);
  19581. pthread_attr_init(0); pthread_cleanup_push(0, 0);
  19582. pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  19583. ;
  19584. return 0;
  19585. }
  19586. _ACEOF
  19587. rm -f conftest.$ac_objext conftest$ac_exeext
  19588. if { (ac_try="$ac_link"
  19589. case "(($ac_try" in
  19590. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19591. *) ac_try_echo=$ac_try;;
  19592. esac
  19593. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19594. (eval "$ac_link") 2>conftest.er1
  19595. ac_status=$?
  19596. grep -v '^ *+' conftest.er1 >conftest.err
  19597. rm -f conftest.er1
  19598. cat conftest.err >&5
  19599. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19600. (exit $ac_status); } &&
  19601. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  19602. { (case "(($ac_try" in
  19603. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19604. *) ac_try_echo=$ac_try;;
  19605. esac
  19606. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19607. (eval "$ac_try") 2>&5
  19608. ac_status=$?
  19609. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19610. (exit $ac_status); }; } &&
  19611. { ac_try='test -s conftest$ac_exeext'
  19612. { (case "(($ac_try" in
  19613. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19614. *) ac_try_echo=$ac_try;;
  19615. esac
  19616. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19617. (eval "$ac_try") 2>&5
  19618. ac_status=$?
  19619. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19620. (exit $ac_status); }; }; then
  19621. acx_pthread_ok=yes
  19622. else
  19623. echo "$as_me: failed program was:" >&5
  19624. sed 's/^/| /' conftest.$ac_ext >&5
  19625. fi
  19626. rm -f conftest.err conftest.$ac_objext \
  19627. conftest$ac_exeext conftest.$ac_ext
  19628. LIBS="$save_LIBS"
  19629. CFLAGS="$save_CFLAGS"
  19630. { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
  19631. echo "${ECHO_T}$acx_pthread_ok" >&6; }
  19632. if test "x$acx_pthread_ok" = xyes; then
  19633. break;
  19634. fi
  19635. PTHREAD_LIBS=""
  19636. PTHREAD_CFLAGS=""
  19637. done
  19638. fi
  19639. # Various other checks:
  19640. if test "x$acx_pthread_ok" = xyes; then
  19641. save_LIBS="$LIBS"
  19642. LIBS="$PTHREAD_LIBS $LIBS"
  19643. save_CFLAGS="$CFLAGS"
  19644. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  19645. # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
  19646. { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
  19647. echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
  19648. attr_name=unknown
  19649. for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
  19650. cat >conftest.$ac_ext <<_ACEOF
  19651. /* confdefs.h. */
  19652. _ACEOF
  19653. cat confdefs.h >>conftest.$ac_ext
  19654. cat >>conftest.$ac_ext <<_ACEOF
  19655. /* end confdefs.h. */
  19656. #include <pthread.h>
  19657. int
  19658. main ()
  19659. {
  19660. int attr=$attr; return attr;
  19661. ;
  19662. return 0;
  19663. }
  19664. _ACEOF
  19665. rm -f conftest.$ac_objext conftest$ac_exeext
  19666. if { (ac_try="$ac_link"
  19667. case "(($ac_try" in
  19668. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19669. *) ac_try_echo=$ac_try;;
  19670. esac
  19671. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19672. (eval "$ac_link") 2>conftest.er1
  19673. ac_status=$?
  19674. grep -v '^ *+' conftest.er1 >conftest.err
  19675. rm -f conftest.er1
  19676. cat conftest.err >&5
  19677. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19678. (exit $ac_status); } &&
  19679. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  19680. { (case "(($ac_try" in
  19681. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19682. *) ac_try_echo=$ac_try;;
  19683. esac
  19684. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19685. (eval "$ac_try") 2>&5
  19686. ac_status=$?
  19687. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19688. (exit $ac_status); }; } &&
  19689. { ac_try='test -s conftest$ac_exeext'
  19690. { (case "(($ac_try" in
  19691. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19692. *) ac_try_echo=$ac_try;;
  19693. esac
  19694. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19695. (eval "$ac_try") 2>&5
  19696. ac_status=$?
  19697. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19698. (exit $ac_status); }; }; then
  19699. attr_name=$attr; break
  19700. else
  19701. echo "$as_me: failed program was:" >&5
  19702. sed 's/^/| /' conftest.$ac_ext >&5
  19703. fi
  19704. rm -f conftest.err conftest.$ac_objext \
  19705. conftest$ac_exeext conftest.$ac_ext
  19706. done
  19707. { echo "$as_me:$LINENO: result: $attr_name" >&5
  19708. echo "${ECHO_T}$attr_name" >&6; }
  19709. if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
  19710. cat >>confdefs.h <<_ACEOF
  19711. #define PTHREAD_CREATE_JOINABLE $attr_name
  19712. _ACEOF
  19713. fi
  19714. { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
  19715. echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
  19716. flag=no
  19717. case "${host_cpu}-${host_os}" in
  19718. *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
  19719. *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
  19720. esac
  19721. { echo "$as_me:$LINENO: result: ${flag}" >&5
  19722. echo "${ECHO_T}${flag}" >&6; }
  19723. if test "x$flag" != xno; then
  19724. PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
  19725. fi
  19726. LIBS="$save_LIBS"
  19727. CFLAGS="$save_CFLAGS"
  19728. # More AIX lossage: must compile with xlc_r or cc_r
  19729. if test x"$GCC" != xyes; then
  19730. for ac_prog in xlc_r cc_r
  19731. do
  19732. # Extract the first word of "$ac_prog", so it can be a program name with args.
  19733. set dummy $ac_prog; ac_word=$2
  19734. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  19735. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  19736. if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
  19737. echo $ECHO_N "(cached) $ECHO_C" >&6
  19738. else
  19739. if test -n "$PTHREAD_CC"; then
  19740. ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
  19741. else
  19742. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19743. for as_dir in $PATH
  19744. do
  19745. IFS=$as_save_IFS
  19746. test -z "$as_dir" && as_dir=.
  19747. for ac_exec_ext in '' $ac_executable_extensions; do
  19748. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  19749. ac_cv_prog_PTHREAD_CC="$ac_prog"
  19750. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19751. break 2
  19752. fi
  19753. done
  19754. done
  19755. IFS=$as_save_IFS
  19756. fi
  19757. fi
  19758. PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
  19759. if test -n "$PTHREAD_CC"; then
  19760. { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
  19761. echo "${ECHO_T}$PTHREAD_CC" >&6; }
  19762. else
  19763. { echo "$as_me:$LINENO: result: no" >&5
  19764. echo "${ECHO_T}no" >&6; }
  19765. fi
  19766. test -n "$PTHREAD_CC" && break
  19767. done
  19768. test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
  19769. else
  19770. PTHREAD_CC=$CC
  19771. fi
  19772. else
  19773. PTHREAD_CC="$CC"
  19774. fi
  19775. # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
  19776. if test x"$acx_pthread_ok" = xyes; then
  19777. LIBS="$PTHREAD_LIBS $LIBS"; CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
  19778. :
  19779. else
  19780. acx_pthread_ok=no
  19781. fi
  19782. ac_ext=c
  19783. ac_cpp='$CPP $CPPFLAGS'
  19784. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19785. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19786. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19787. for ac_func in localtime_r strtok_r
  19788. do
  19789. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19790. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  19791. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  19792. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19793. echo $ECHO_N "(cached) $ECHO_C" >&6
  19794. else
  19795. cat >conftest.$ac_ext <<_ACEOF
  19796. /* confdefs.h. */
  19797. _ACEOF
  19798. cat confdefs.h >>conftest.$ac_ext
  19799. cat >>conftest.$ac_ext <<_ACEOF
  19800. /* end confdefs.h. */
  19801. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19802. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19803. #define $ac_func innocuous_$ac_func
  19804. /* System header to define __stub macros and hopefully few prototypes,
  19805. which can conflict with char $ac_func (); below.
  19806. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19807. <limits.h> exists even on freestanding compilers. */
  19808. #ifdef __STDC__
  19809. # include <limits.h>
  19810. #else
  19811. # include <assert.h>
  19812. #endif
  19813. #undef $ac_func
  19814. /* Override any GCC internal prototype to avoid an error.
  19815. Use char because int might match the return type of a GCC
  19816. builtin and then its argument prototype would still apply. */
  19817. #ifdef __cplusplus
  19818. extern "C"
  19819. #endif
  19820. char $ac_func ();
  19821. /* The GNU C library defines this for functions which it implements
  19822. to always fail with ENOSYS. Some functions are actually named
  19823. something starting with __ and the normal name is an alias. */
  19824. #if defined __stub_$ac_func || defined __stub___$ac_func
  19825. choke me
  19826. #endif
  19827. int
  19828. main ()
  19829. {
  19830. return $ac_func ();
  19831. ;
  19832. return 0;
  19833. }
  19834. _ACEOF
  19835. rm -f conftest.$ac_objext conftest$ac_exeext
  19836. if { (ac_try="$ac_link"
  19837. case "(($ac_try" in
  19838. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19839. *) ac_try_echo=$ac_try;;
  19840. esac
  19841. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19842. (eval "$ac_link") 2>conftest.er1
  19843. ac_status=$?
  19844. grep -v '^ *+' conftest.er1 >conftest.err
  19845. rm -f conftest.er1
  19846. cat conftest.err >&5
  19847. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19848. (exit $ac_status); } &&
  19849. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  19850. { (case "(($ac_try" in
  19851. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19852. *) ac_try_echo=$ac_try;;
  19853. esac
  19854. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19855. (eval "$ac_try") 2>&5
  19856. ac_status=$?
  19857. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19858. (exit $ac_status); }; } &&
  19859. { ac_try='test -s conftest$ac_exeext'
  19860. { (case "(($ac_try" in
  19861. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19862. *) ac_try_echo=$ac_try;;
  19863. esac
  19864. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19865. (eval "$ac_try") 2>&5
  19866. ac_status=$?
  19867. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19868. (exit $ac_status); }; }; then
  19869. eval "$as_ac_var=yes"
  19870. else
  19871. echo "$as_me: failed program was:" >&5
  19872. sed 's/^/| /' conftest.$ac_ext >&5
  19873. eval "$as_ac_var=no"
  19874. fi
  19875. rm -f conftest.err conftest.$ac_objext \
  19876. conftest$ac_exeext conftest.$ac_ext
  19877. fi
  19878. ac_res=`eval echo '${'$as_ac_var'}'`
  19879. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19880. echo "${ECHO_T}$ac_res" >&6; }
  19881. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19882. cat >>confdefs.h <<_ACEOF
  19883. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19884. _ACEOF
  19885. fi
  19886. done
  19887. # ------------------------------------------
  19888. # Check socket library (for Solaris)
  19889. # ------------------------------------------
  19890. { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  19891. echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
  19892. if test "${ac_cv_lib_socket_socket+set}" = set; then
  19893. echo $ECHO_N "(cached) $ECHO_C" >&6
  19894. else
  19895. ac_check_lib_save_LIBS=$LIBS
  19896. LIBS="-lsocket $LIBS"
  19897. cat >conftest.$ac_ext <<_ACEOF
  19898. /* confdefs.h. */
  19899. _ACEOF
  19900. cat confdefs.h >>conftest.$ac_ext
  19901. cat >>conftest.$ac_ext <<_ACEOF
  19902. /* end confdefs.h. */
  19903. /* Override any GCC internal prototype to avoid an error.
  19904. Use char because int might match the return type of a GCC
  19905. builtin and then its argument prototype would still apply. */
  19906. #ifdef __cplusplus
  19907. extern "C"
  19908. #endif
  19909. char socket ();
  19910. int
  19911. main ()
  19912. {
  19913. return socket ();
  19914. ;
  19915. return 0;
  19916. }
  19917. _ACEOF
  19918. rm -f conftest.$ac_objext conftest$ac_exeext
  19919. if { (ac_try="$ac_link"
  19920. case "(($ac_try" in
  19921. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19922. *) ac_try_echo=$ac_try;;
  19923. esac
  19924. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19925. (eval "$ac_link") 2>conftest.er1
  19926. ac_status=$?
  19927. grep -v '^ *+' conftest.er1 >conftest.err
  19928. rm -f conftest.er1
  19929. cat conftest.err >&5
  19930. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19931. (exit $ac_status); } &&
  19932. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  19933. { (case "(($ac_try" in
  19934. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19935. *) ac_try_echo=$ac_try;;
  19936. esac
  19937. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19938. (eval "$ac_try") 2>&5
  19939. ac_status=$?
  19940. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19941. (exit $ac_status); }; } &&
  19942. { ac_try='test -s conftest$ac_exeext'
  19943. { (case "(($ac_try" in
  19944. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19945. *) ac_try_echo=$ac_try;;
  19946. esac
  19947. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19948. (eval "$ac_try") 2>&5
  19949. ac_status=$?
  19950. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19951. (exit $ac_status); }; }; then
  19952. ac_cv_lib_socket_socket=yes
  19953. else
  19954. echo "$as_me: failed program was:" >&5
  19955. sed 's/^/| /' conftest.$ac_ext >&5
  19956. ac_cv_lib_socket_socket=no
  19957. fi
  19958. rm -f conftest.err conftest.$ac_objext \
  19959. conftest$ac_exeext conftest.$ac_ext
  19960. LIBS=$ac_check_lib_save_LIBS
  19961. fi
  19962. { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  19963. echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
  19964. if test $ac_cv_lib_socket_socket = yes; then
  19965. LIBSOCKET="-lsocket"
  19966. fi
  19967. { echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
  19968. echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6; }
  19969. if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
  19970. echo $ECHO_N "(cached) $ECHO_C" >&6
  19971. else
  19972. ac_check_lib_save_LIBS=$LIBS
  19973. LIBS="-lnsl $LIBS"
  19974. cat >conftest.$ac_ext <<_ACEOF
  19975. /* confdefs.h. */
  19976. _ACEOF
  19977. cat confdefs.h >>conftest.$ac_ext
  19978. cat >>conftest.$ac_ext <<_ACEOF
  19979. /* end confdefs.h. */
  19980. /* Override any GCC internal prototype to avoid an error.
  19981. Use char because int might match the return type of a GCC
  19982. builtin and then its argument prototype would still apply. */
  19983. #ifdef __cplusplus
  19984. extern "C"
  19985. #endif
  19986. char inet_ntoa ();
  19987. int
  19988. main ()
  19989. {
  19990. return inet_ntoa ();
  19991. ;
  19992. return 0;
  19993. }
  19994. _ACEOF
  19995. rm -f conftest.$ac_objext conftest$ac_exeext
  19996. if { (ac_try="$ac_link"
  19997. case "(($ac_try" in
  19998. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19999. *) ac_try_echo=$ac_try;;
  20000. esac
  20001. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20002. (eval "$ac_link") 2>conftest.er1
  20003. ac_status=$?
  20004. grep -v '^ *+' conftest.er1 >conftest.err
  20005. rm -f conftest.er1
  20006. cat conftest.err >&5
  20007. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20008. (exit $ac_status); } &&
  20009. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  20010. { (case "(($ac_try" in
  20011. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20012. *) ac_try_echo=$ac_try;;
  20013. esac
  20014. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20015. (eval "$ac_try") 2>&5
  20016. ac_status=$?
  20017. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20018. (exit $ac_status); }; } &&
  20019. { ac_try='test -s conftest$ac_exeext'
  20020. { (case "(($ac_try" in
  20021. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20022. *) ac_try_echo=$ac_try;;
  20023. esac
  20024. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20025. (eval "$ac_try") 2>&5
  20026. ac_status=$?
  20027. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20028. (exit $ac_status); }; }; then
  20029. ac_cv_lib_nsl_inet_ntoa=yes
  20030. else
  20031. echo "$as_me: failed program was:" >&5
  20032. sed 's/^/| /' conftest.$ac_ext >&5
  20033. ac_cv_lib_nsl_inet_ntoa=no
  20034. fi
  20035. rm -f conftest.err conftest.$ac_objext \
  20036. conftest$ac_exeext conftest.$ac_ext
  20037. LIBS=$ac_check_lib_save_LIBS
  20038. fi
  20039. { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
  20040. echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6; }
  20041. if test $ac_cv_lib_nsl_inet_ntoa = yes; then
  20042. LIBNSL="-lnsl"
  20043. fi
  20044. { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
  20045. echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
  20046. if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
  20047. echo $ECHO_N "(cached) $ECHO_C" >&6
  20048. else
  20049. ac_check_lib_save_LIBS=$LIBS
  20050. LIBS="-lnsl $LIBS"
  20051. cat >conftest.$ac_ext <<_ACEOF
  20052. /* confdefs.h. */
  20053. _ACEOF
  20054. cat confdefs.h >>conftest.$ac_ext
  20055. cat >>conftest.$ac_ext <<_ACEOF
  20056. /* end confdefs.h. */
  20057. /* Override any GCC internal prototype to avoid an error.
  20058. Use char because int might match the return type of a GCC
  20059. builtin and then its argument prototype would still apply. */
  20060. #ifdef __cplusplus
  20061. extern "C"
  20062. #endif
  20063. char gethostbyname ();
  20064. int
  20065. main ()
  20066. {
  20067. return gethostbyname ();
  20068. ;
  20069. return 0;
  20070. }
  20071. _ACEOF
  20072. rm -f conftest.$ac_objext conftest$ac_exeext
  20073. if { (ac_try="$ac_link"
  20074. case "(($ac_try" in
  20075. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20076. *) ac_try_echo=$ac_try;;
  20077. esac
  20078. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20079. (eval "$ac_link") 2>conftest.er1
  20080. ac_status=$?
  20081. grep -v '^ *+' conftest.er1 >conftest.err
  20082. rm -f conftest.er1
  20083. cat conftest.err >&5
  20084. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20085. (exit $ac_status); } &&
  20086. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  20087. { (case "(($ac_try" in
  20088. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20089. *) ac_try_echo=$ac_try;;
  20090. esac
  20091. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20092. (eval "$ac_try") 2>&5
  20093. ac_status=$?
  20094. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20095. (exit $ac_status); }; } &&
  20096. { ac_try='test -s conftest$ac_exeext'
  20097. { (case "(($ac_try" in
  20098. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20099. *) ac_try_echo=$ac_try;;
  20100. esac
  20101. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20102. (eval "$ac_try") 2>&5
  20103. ac_status=$?
  20104. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20105. (exit $ac_status); }; }; then
  20106. ac_cv_lib_nsl_gethostbyname=yes
  20107. else
  20108. echo "$as_me: failed program was:" >&5
  20109. sed 's/^/| /' conftest.$ac_ext >&5
  20110. ac_cv_lib_nsl_gethostbyname=no
  20111. fi
  20112. rm -f conftest.err conftest.$ac_objext \
  20113. conftest$ac_exeext conftest.$ac_ext
  20114. LIBS=$ac_check_lib_save_LIBS
  20115. fi
  20116. { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
  20117. echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
  20118. if test $ac_cv_lib_nsl_gethostbyname = yes; then
  20119. LIBNSL="-lnsl"
  20120. fi
  20121. # Check whether --with-xml-prefix was given.
  20122. if test "${with_xml_prefix+set}" = set; then
  20123. withval=$with_xml_prefix; xml_config_prefix="$withval"
  20124. else
  20125. xml_config_prefix=""
  20126. fi
  20127. # Check whether --with-xml-exec-prefix was given.
  20128. if test "${with_xml_exec_prefix+set}" = set; then
  20129. withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
  20130. else
  20131. xml_config_exec_prefix=""
  20132. fi
  20133. # Check whether --enable-xmltest was given.
  20134. if test "${enable_xmltest+set}" = set; then
  20135. enableval=$enable_xmltest;
  20136. else
  20137. enable_xmltest=yes
  20138. fi
  20139. if test x$xml_config_exec_prefix != x ; then
  20140. xml_config_args="$xml_config_args"
  20141. if test x${XML2_CONFIG+set} != xset ; then
  20142. XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
  20143. fi
  20144. fi
  20145. if test x$xml_config_prefix != x ; then
  20146. xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
  20147. if test x${XML2_CONFIG+set} != xset ; then
  20148. XML2_CONFIG=$xml_config_prefix/bin/xml2-config
  20149. fi
  20150. fi
  20151. # Extract the first word of "xml2-config", so it can be a program name with args.
  20152. set dummy xml2-config; ac_word=$2
  20153. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  20154. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  20155. if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
  20156. echo $ECHO_N "(cached) $ECHO_C" >&6
  20157. else
  20158. case $XML2_CONFIG in
  20159. [\\/]* | ?:[\\/]*)
  20160. ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
  20161. ;;
  20162. *)
  20163. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20164. for as_dir in $PATH
  20165. do
  20166. IFS=$as_save_IFS
  20167. test -z "$as_dir" && as_dir=.
  20168. for ac_exec_ext in '' $ac_executable_extensions; do
  20169. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  20170. ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  20171. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20172. break 2
  20173. fi
  20174. done
  20175. done
  20176. IFS=$as_save_IFS
  20177. test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
  20178. ;;
  20179. esac
  20180. fi
  20181. XML2_CONFIG=$ac_cv_path_XML2_CONFIG
  20182. if test -n "$XML2_CONFIG"; then
  20183. { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
  20184. echo "${ECHO_T}$XML2_CONFIG" >&6; }
  20185. else
  20186. { echo "$as_me:$LINENO: result: no" >&5
  20187. echo "${ECHO_T}no" >&6; }
  20188. fi
  20189. min_xml_version=2.6.0
  20190. { echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
  20191. echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6; }
  20192. no_xml=""
  20193. if test "$XML2_CONFIG" = "no" ; then
  20194. no_xml=yes
  20195. else
  20196. XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
  20197. XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
  20198. xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
  20199. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  20200. xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
  20201. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  20202. xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
  20203. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  20204. if test "x$enable_xmltest" = "xyes" ; then
  20205. ac_save_CPPFLAGS="$CPPFLAGS"
  20206. ac_save_LIBS="$LIBS"
  20207. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  20208. LIBS="$XML_LIBS $LIBS"
  20209. rm -f conf.xmltest
  20210. if test "$cross_compiling" = yes; then
  20211. echo $ac_n "cross compiling; assumed OK... $ac_c"
  20212. else
  20213. cat >conftest.$ac_ext <<_ACEOF
  20214. /* confdefs.h. */
  20215. _ACEOF
  20216. cat confdefs.h >>conftest.$ac_ext
  20217. cat >>conftest.$ac_ext <<_ACEOF
  20218. /* end confdefs.h. */
  20219. #include <stdlib.h>
  20220. #include <stdio.h>
  20221. #include <string.h>
  20222. #include <libxml/xmlversion.h>
  20223. int
  20224. main()
  20225. {
  20226. int xml_major_version, xml_minor_version, xml_micro_version;
  20227. int major, minor, micro;
  20228. char *tmp_version;
  20229. system("touch conf.xmltest");
  20230. /* Capture xml2-config output via autoconf/configure variables */
  20231. /* HP/UX 9 (%@#!) writes to sscanf strings */
  20232. tmp_version = (char *)strdup("$min_xml_version");
  20233. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  20234. printf("%s, bad version string from xml2-config\n", "$min_xml_version");
  20235. exit(1);
  20236. }
  20237. free(tmp_version);
  20238. /* Capture the version information from the header files */
  20239. tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
  20240. if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
  20241. printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
  20242. exit(1);
  20243. }
  20244. free(tmp_version);
  20245. /* Compare xml2-config output to the libxml headers */
  20246. if ((xml_major_version != $xml_config_major_version) ||
  20247. (xml_minor_version != $xml_config_minor_version) ||
  20248. (xml_micro_version != $xml_config_micro_version))
  20249. {
  20250. printf("*** libxml header files (version %d.%d.%d) do not match\n",
  20251. xml_major_version, xml_minor_version, xml_micro_version);
  20252. printf("*** xml2-config (version %d.%d.%d)\n",
  20253. $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
  20254. return 1;
  20255. }
  20256. /* Compare the headers to the library to make sure we match */
  20257. /* Less than ideal -- doesn't provide us with return value feedback,
  20258. * only exits if there's a serious mismatch between header and library.
  20259. */
  20260. LIBXML_TEST_VERSION;
  20261. /* Test that the library is greater than our minimum version */
  20262. if ((xml_major_version > major) ||
  20263. ((xml_major_version == major) && (xml_minor_version > minor)) ||
  20264. ((xml_major_version == major) && (xml_minor_version == minor) &&
  20265. (xml_micro_version >= micro)))
  20266. {
  20267. return 0;
  20268. }
  20269. else
  20270. {
  20271. printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
  20272. xml_major_version, xml_minor_version, xml_micro_version);
  20273. printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
  20274. major, minor, micro);
  20275. printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
  20276. printf("***\n");
  20277. printf("*** If you have already installed a sufficiently new version, this error\n");
  20278. printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
  20279. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  20280. printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
  20281. printf("*** correct copy of xml2-config. (In this case, you will have to\n");
  20282. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  20283. printf("*** so that the correct libraries are found at run-time))\n");
  20284. }
  20285. return 1;
  20286. }
  20287. _ACEOF
  20288. rm -f conftest$ac_exeext
  20289. if { (ac_try="$ac_link"
  20290. case "(($ac_try" in
  20291. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20292. *) ac_try_echo=$ac_try;;
  20293. esac
  20294. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20295. (eval "$ac_link") 2>&5
  20296. ac_status=$?
  20297. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20298. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  20299. { (case "(($ac_try" in
  20300. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20301. *) ac_try_echo=$ac_try;;
  20302. esac
  20303. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20304. (eval "$ac_try") 2>&5
  20305. ac_status=$?
  20306. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20307. (exit $ac_status); }; }; then
  20308. :
  20309. else
  20310. echo "$as_me: program exited with status $ac_status" >&5
  20311. echo "$as_me: failed program was:" >&5
  20312. sed 's/^/| /' conftest.$ac_ext >&5
  20313. ( exit $ac_status )
  20314. no_xml=yes
  20315. fi
  20316. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  20317. fi
  20318. CPPFLAGS="$ac_save_CPPFLAGS"
  20319. LIBS="$ac_save_LIBS"
  20320. fi
  20321. fi
  20322. if test "x$no_xml" = x ; then
  20323. { echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
  20324. echo "${ECHO_T}yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
  20325. CFLAGS="$CFLAGS $XML_CPPFLAGS"; LDFLAGS="$LDFLAGS $XML_LIBS"
  20326. else
  20327. { echo "$as_me:$LINENO: result: no" >&5
  20328. echo "${ECHO_T}no" >&6; }
  20329. if test "$XML2_CONFIG" = "no" ; then
  20330. echo "*** The xml2-config script installed by LIBXML could not be found"
  20331. echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
  20332. echo "*** your path, or set the XML2_CONFIG environment variable to the"
  20333. echo "*** full path to xml2-config."
  20334. else
  20335. if test -f conf.xmltest ; then
  20336. :
  20337. else
  20338. echo "*** Could not run libxml test program, checking why..."
  20339. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  20340. LIBS="$LIBS $XML_LIBS"
  20341. cat >conftest.$ac_ext <<_ACEOF
  20342. /* confdefs.h. */
  20343. _ACEOF
  20344. cat confdefs.h >>conftest.$ac_ext
  20345. cat >>conftest.$ac_ext <<_ACEOF
  20346. /* end confdefs.h. */
  20347. #include <libxml/xmlversion.h>
  20348. #include <stdio.h>
  20349. int
  20350. main ()
  20351. {
  20352. LIBXML_TEST_VERSION; return 0;
  20353. ;
  20354. return 0;
  20355. }
  20356. _ACEOF
  20357. rm -f conftest.$ac_objext conftest$ac_exeext
  20358. if { (ac_try="$ac_link"
  20359. case "(($ac_try" in
  20360. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20361. *) ac_try_echo=$ac_try;;
  20362. esac
  20363. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20364. (eval "$ac_link") 2>conftest.er1
  20365. ac_status=$?
  20366. grep -v '^ *+' conftest.er1 >conftest.err
  20367. rm -f conftest.er1
  20368. cat conftest.err >&5
  20369. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20370. (exit $ac_status); } &&
  20371. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  20372. { (case "(($ac_try" in
  20373. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20374. *) ac_try_echo=$ac_try;;
  20375. esac
  20376. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20377. (eval "$ac_try") 2>&5
  20378. ac_status=$?
  20379. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20380. (exit $ac_status); }; } &&
  20381. { ac_try='test -s conftest$ac_exeext'
  20382. { (case "(($ac_try" in
  20383. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20384. *) ac_try_echo=$ac_try;;
  20385. esac
  20386. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20387. (eval "$ac_try") 2>&5
  20388. ac_status=$?
  20389. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20390. (exit $ac_status); }; }; then
  20391. echo "*** The test program compiled, but did not run. This usually means"
  20392. echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  20393. echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  20394. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  20395. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  20396. echo "*** is required on your system"
  20397. echo "***"
  20398. echo "*** If you have an old version installed, it is best to remove it, although"
  20399. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  20400. else
  20401. echo "$as_me: failed program was:" >&5
  20402. sed 's/^/| /' conftest.$ac_ext >&5
  20403. echo "*** The test program failed to compile or link. See the file config.log for the"
  20404. echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  20405. echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  20406. echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
  20407. fi
  20408. rm -f conftest.err conftest.$ac_objext \
  20409. conftest$ac_exeext conftest.$ac_ext
  20410. CPPFLAGS="$ac_save_CPPFLAGS"
  20411. LIBS="$ac_save_LIBS"
  20412. fi
  20413. fi
  20414. XML_CPPFLAGS=""
  20415. XML_LIBS=""
  20416. exit 1
  20417. fi
  20418. rm -f conf.xmltest
  20419. # ------------------------------------------
  20420. # Check ssl library
  20421. # Original work at: http://autoconf-archive.cryp.to/check_ssl.html
  20422. # ------------------------------------------
  20423. { echo "$as_me:$LINENO: checking if ssl is wanted" >&5
  20424. echo $ECHO_N "checking if ssl is wanted... $ECHO_C" >&6; }
  20425. # Check whether --with-ssl was given.
  20426. if test "${with_ssl+set}" = set; then
  20427. withval=$with_ssl; { echo "$as_me:$LINENO: result: yes" >&5
  20428. echo "${ECHO_T}yes" >&6; }
  20429. for dir in $withval /usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr; do
  20430. ssldir="$dir"
  20431. if test -f "$dir/include/openssl/ssl.h"; then
  20432. found_ssl="yes";
  20433. CFLAGS="$CFLAGS -I$ssldir/include/openssl";
  20434. break;
  20435. fi
  20436. if test -f "$dir/include/ssl.h"; then
  20437. found_ssl="yes";
  20438. CFLAGS="$CFLAGS -I$ssldir/include";
  20439. break
  20440. fi
  20441. done
  20442. if test x_$found_ssl != x_yes; then
  20443. { { echo "$as_me:$LINENO: error: Cannot find ssl libraries
  20444. Please goto http://www.openssl.org and install OpenSSL or
  20445. install it from your os distribution" >&5
  20446. echo "$as_me: error: Cannot find ssl libraries
  20447. Please goto http://www.openssl.org and install OpenSSL or
  20448. install it from your os distribution" >&2;}
  20449. { (exit 1); exit 1; }; }
  20450. else
  20451. printf "OpenSSL found in $ssldir\n";
  20452. LIBS="$LIBS -lssl -lcrypto";
  20453. LDFLAGS="$LDFLAGS -L$ssldir/lib";
  20454. cat >>confdefs.h <<\_ACEOF
  20455. #define HAVE_SSL 1
  20456. _ACEOF
  20457. fi
  20458. else
  20459. { echo "$as_me:$LINENO: result: no" >&5
  20460. echo "${ECHO_T}no" >&6; }
  20461. fi
  20462. ac_config_files="$ac_config_files Makefile libcsoap/Makefile nanohttp/Makefile examples/Makefile examples/nanohttp/Makefile examples/csoap/Makefile libcsoap.pc csoap-config"
  20463. cat >confcache <<\_ACEOF
  20464. # This file is a shell script that caches the results of configure
  20465. # tests run on this system so they can be shared between configure
  20466. # scripts and configure runs, see configure's option --config-cache.
  20467. # It is not useful on other systems. If it contains results you don't
  20468. # want to keep, you may remove or edit it.
  20469. #
  20470. # config.status only pays attention to the cache file if you give it
  20471. # the --recheck option to rerun configure.
  20472. #
  20473. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  20474. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  20475. # following values.
  20476. _ACEOF
  20477. # The following way of writing the cache mishandles newlines in values,
  20478. # but we know of no workaround that is simple, portable, and efficient.
  20479. # So, we kill variables containing newlines.
  20480. # Ultrix sh set writes to stderr and can't be redirected directly,
  20481. # and sets the high bit in the cache file unless we assign to the vars.
  20482. (
  20483. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  20484. eval ac_val=\$$ac_var
  20485. case $ac_val in #(
  20486. *${as_nl}*)
  20487. case $ac_var in #(
  20488. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  20489. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  20490. esac
  20491. case $ac_var in #(
  20492. _ | IFS | as_nl) ;; #(
  20493. *) $as_unset $ac_var ;;
  20494. esac ;;
  20495. esac
  20496. done
  20497. (set) 2>&1 |
  20498. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  20499. *${as_nl}ac_space=\ *)
  20500. # `set' does not quote correctly, so add quotes (double-quote
  20501. # substitution turns \\\\ into \\, and sed turns \\ into \).
  20502. sed -n \
  20503. "s/'/'\\\\''/g;
  20504. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  20505. ;; #(
  20506. *)
  20507. # `set' quotes correctly as required by POSIX, so do not add quotes.
  20508. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  20509. ;;
  20510. esac |
  20511. sort
  20512. ) |
  20513. sed '
  20514. /^ac_cv_env_/b end
  20515. t clear
  20516. :clear
  20517. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  20518. t end
  20519. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  20520. :end' >>confcache
  20521. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  20522. if test -w "$cache_file"; then
  20523. test "x$cache_file" != "x/dev/null" &&
  20524. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  20525. echo "$as_me: updating cache $cache_file" >&6;}
  20526. cat confcache >$cache_file
  20527. else
  20528. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  20529. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  20530. fi
  20531. fi
  20532. rm -f confcache
  20533. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  20534. # Let make expand exec_prefix.
  20535. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  20536. DEFS=-DHAVE_CONFIG_H
  20537. ac_libobjs=
  20538. ac_ltlibobjs=
  20539. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  20540. # 1. Remove the extension, and $U if already installed.
  20541. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  20542. ac_i=`echo "$ac_i" | sed "$ac_script"`
  20543. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  20544. # will be set to the directory where LIBOBJS objects are built.
  20545. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  20546. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  20547. done
  20548. LIBOBJS=$ac_libobjs
  20549. LTLIBOBJS=$ac_ltlibobjs
  20550. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  20551. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  20552. Usually this means the macro was only invoked conditionally." >&5
  20553. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  20554. Usually this means the macro was only invoked conditionally." >&2;}
  20555. { (exit 1); exit 1; }; }
  20556. fi
  20557. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  20558. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  20559. Usually this means the macro was only invoked conditionally." >&5
  20560. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  20561. Usually this means the macro was only invoked conditionally." >&2;}
  20562. { (exit 1); exit 1; }; }
  20563. fi
  20564. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  20565. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  20566. Usually this means the macro was only invoked conditionally." >&5
  20567. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  20568. Usually this means the macro was only invoked conditionally." >&2;}
  20569. { (exit 1); exit 1; }; }
  20570. fi
  20571. : ${CONFIG_STATUS=./config.status}
  20572. ac_clean_files_save=$ac_clean_files
  20573. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  20574. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  20575. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  20576. cat >$CONFIG_STATUS <<_ACEOF
  20577. #! $SHELL
  20578. # Generated by $as_me.
  20579. # Run this file to recreate the current configuration.
  20580. # Compiler output produced by configure, useful for debugging
  20581. # configure, is in config.log if it exists.
  20582. debug=false
  20583. ac_cs_recheck=false
  20584. ac_cs_silent=false
  20585. SHELL=\${CONFIG_SHELL-$SHELL}
  20586. _ACEOF
  20587. cat >>$CONFIG_STATUS <<\_ACEOF
  20588. ## --------------------- ##
  20589. ## M4sh Initialization. ##
  20590. ## --------------------- ##
  20591. # Be Bourne compatible
  20592. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  20593. emulate sh
  20594. NULLCMD=:
  20595. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  20596. # is contrary to our usage. Disable this feature.
  20597. alias -g '${1+"$@"}'='"$@"'
  20598. setopt NO_GLOB_SUBST
  20599. else
  20600. case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
  20601. fi
  20602. BIN_SH=xpg4; export BIN_SH # for Tru64
  20603. DUALCASE=1; export DUALCASE # for MKS sh
  20604. # PATH needs CR
  20605. # Avoid depending upon Character Ranges.
  20606. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  20607. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  20608. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  20609. as_cr_digits='0123456789'
  20610. as_cr_alnum=$as_cr_Letters$as_cr_digits
  20611. # The user is always right.
  20612. if test "${PATH_SEPARATOR+set}" != set; then
  20613. echo "#! /bin/sh" >conf$$.sh
  20614. echo "exit 0" >>conf$$.sh
  20615. chmod +x conf$$.sh
  20616. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  20617. PATH_SEPARATOR=';'
  20618. else
  20619. PATH_SEPARATOR=:
  20620. fi
  20621. rm -f conf$$.sh
  20622. fi
  20623. # Support unset when possible.
  20624. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  20625. as_unset=unset
  20626. else
  20627. as_unset=false
  20628. fi
  20629. # IFS
  20630. # We need space, tab and new line, in precisely that order. Quoting is
  20631. # there to prevent editors from complaining about space-tab.
  20632. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  20633. # splitting by setting IFS to empty value.)
  20634. as_nl='
  20635. '
  20636. IFS=" "" $as_nl"
  20637. # Find who we are. Look in the path if we contain no directory separator.
  20638. case $0 in
  20639. *[\\/]* ) as_myself=$0 ;;
  20640. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20641. for as_dir in $PATH
  20642. do
  20643. IFS=$as_save_IFS
  20644. test -z "$as_dir" && as_dir=.
  20645. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  20646. done
  20647. IFS=$as_save_IFS
  20648. ;;
  20649. esac
  20650. # We did not find ourselves, most probably we were run as `sh COMMAND'
  20651. # in which case we are not to be found in the path.
  20652. if test "x$as_myself" = x; then
  20653. as_myself=$0
  20654. fi
  20655. if test ! -f "$as_myself"; then
  20656. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  20657. { (exit 1); exit 1; }
  20658. fi
  20659. # Work around bugs in pre-3.0 UWIN ksh.
  20660. for as_var in ENV MAIL MAILPATH
  20661. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  20662. done
  20663. PS1='$ '
  20664. PS2='> '
  20665. PS4='+ '
  20666. # NLS nuisances.
  20667. for as_var in \
  20668. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  20669. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  20670. LC_TELEPHONE LC_TIME
  20671. do
  20672. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  20673. eval $as_var=C; export $as_var
  20674. else
  20675. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  20676. fi
  20677. done
  20678. # Required to use basename.
  20679. if expr a : '\(a\)' >/dev/null 2>&1 &&
  20680. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  20681. as_expr=expr
  20682. else
  20683. as_expr=false
  20684. fi
  20685. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  20686. as_basename=basename
  20687. else
  20688. as_basename=false
  20689. fi
  20690. # Name of the executable.
  20691. as_me=`$as_basename -- "$0" ||
  20692. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  20693. X"$0" : 'X\(//\)$' \| \
  20694. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  20695. echo X/"$0" |
  20696. sed '/^.*\/\([^/][^/]*\)\/*$/{
  20697. s//\1/
  20698. q
  20699. }
  20700. /^X\/\(\/\/\)$/{
  20701. s//\1/
  20702. q
  20703. }
  20704. /^X\/\(\/\).*/{
  20705. s//\1/
  20706. q
  20707. }
  20708. s/.*/./; q'`
  20709. # CDPATH.
  20710. $as_unset CDPATH
  20711. as_lineno_1=$LINENO
  20712. as_lineno_2=$LINENO
  20713. test "x$as_lineno_1" != "x$as_lineno_2" &&
  20714. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  20715. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  20716. # uniformly replaced by the line number. The first 'sed' inserts a
  20717. # line-number line after each line using $LINENO; the second 'sed'
  20718. # does the real work. The second script uses 'N' to pair each
  20719. # line-number line with the line containing $LINENO, and appends
  20720. # trailing '-' during substitution so that $LINENO is not a special
  20721. # case at line end.
  20722. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  20723. # scripts with optimization help from Paolo Bonzini. Blame Lee
  20724. # E. McMahon (1931-1989) for sed's syntax. :-)
  20725. sed -n '
  20726. p
  20727. /[$]LINENO/=
  20728. ' <$as_myself |
  20729. sed '
  20730. s/[$]LINENO.*/&-/
  20731. t lineno
  20732. b
  20733. :lineno
  20734. N
  20735. :loop
  20736. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  20737. t loop
  20738. s/-\n.*//
  20739. ' >$as_me.lineno &&
  20740. chmod +x "$as_me.lineno" ||
  20741. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  20742. { (exit 1); exit 1; }; }
  20743. # Don't try to exec as it changes $[0], causing all sort of problems
  20744. # (the dirname of $[0] is not the place where we might find the
  20745. # original and so on. Autoconf is especially sensitive to this).
  20746. . "./$as_me.lineno"
  20747. # Exit status is that of the last command.
  20748. exit
  20749. }
  20750. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  20751. as_dirname=dirname
  20752. else
  20753. as_dirname=false
  20754. fi
  20755. ECHO_C= ECHO_N= ECHO_T=
  20756. case `echo -n x` in
  20757. -n*)
  20758. case `echo 'x\c'` in
  20759. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  20760. *) ECHO_C='\c';;
  20761. esac;;
  20762. *)
  20763. ECHO_N='-n';;
  20764. esac
  20765. if expr a : '\(a\)' >/dev/null 2>&1 &&
  20766. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  20767. as_expr=expr
  20768. else
  20769. as_expr=false
  20770. fi
  20771. rm -f conf$$ conf$$.exe conf$$.file
  20772. if test -d conf$$.dir; then
  20773. rm -f conf$$.dir/conf$$.file
  20774. else
  20775. rm -f conf$$.dir
  20776. mkdir conf$$.dir
  20777. fi
  20778. echo >conf$$.file
  20779. if ln -s conf$$.file conf$$ 2>/dev/null; then
  20780. as_ln_s='ln -s'
  20781. # ... but there are two gotchas:
  20782. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  20783. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  20784. # In both cases, we have to default to `cp -p'.
  20785. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  20786. as_ln_s='cp -p'
  20787. elif ln conf$$.file conf$$ 2>/dev/null; then
  20788. as_ln_s=ln
  20789. else
  20790. as_ln_s='cp -p'
  20791. fi
  20792. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  20793. rmdir conf$$.dir 2>/dev/null
  20794. if mkdir -p . 2>/dev/null; then
  20795. as_mkdir_p=:
  20796. else
  20797. test -d ./-p && rmdir ./-p
  20798. as_mkdir_p=false
  20799. fi
  20800. # Find out whether ``test -x'' works. Don't use a zero-byte file, as
  20801. # systems may use methods other than mode bits to determine executability.
  20802. cat >conf$$.file <<_ASEOF
  20803. #! /bin/sh
  20804. exit 0
  20805. _ASEOF
  20806. chmod +x conf$$.file
  20807. if test -x conf$$.file >/dev/null 2>&1; then
  20808. as_executable_p="test -x"
  20809. else
  20810. as_executable_p=:
  20811. fi
  20812. rm -f conf$$.file
  20813. # Sed expression to map a string onto a valid CPP name.
  20814. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  20815. # Sed expression to map a string onto a valid variable name.
  20816. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  20817. exec 6>&1
  20818. # Save the log message, to keep $[0] and so on meaningful, and to
  20819. # report actual input values of CONFIG_FILES etc. instead of their
  20820. # values after options handling.
  20821. ac_log="
  20822. This file was extended by csoap $as_me 1.1.0, which was
  20823. generated by GNU Autoconf 2.59e. Invocation command line was
  20824. CONFIG_FILES = $CONFIG_FILES
  20825. CONFIG_HEADERS = $CONFIG_HEADERS
  20826. CONFIG_LINKS = $CONFIG_LINKS
  20827. CONFIG_COMMANDS = $CONFIG_COMMANDS
  20828. $ $0 $@
  20829. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  20830. "
  20831. _ACEOF
  20832. cat >>$CONFIG_STATUS <<_ACEOF
  20833. # Files that config.status was made for.
  20834. config_files="$ac_config_files"
  20835. config_headers="$ac_config_headers"
  20836. config_commands="$ac_config_commands"
  20837. _ACEOF
  20838. cat >>$CONFIG_STATUS <<\_ACEOF
  20839. ac_cs_usage="\
  20840. \`$as_me' instantiates files from templates according to the
  20841. current configuration.
  20842. Usage: $0 [OPTIONS] [FILE]...
  20843. -h, --help print this help, then exit
  20844. -V, --version print version number, then exit
  20845. -q, --quiet do not print progress messages
  20846. -d, --debug don't remove temporary files
  20847. --recheck update $as_me by reconfiguring in the same conditions
  20848. --file=FILE[:TEMPLATE]
  20849. instantiate the configuration file FILE
  20850. --header=FILE[:TEMPLATE]
  20851. instantiate the configuration header FILE
  20852. Configuration files:
  20853. $config_files
  20854. Configuration headers:
  20855. $config_headers
  20856. Configuration commands:
  20857. $config_commands
  20858. Report bugs to <bug-autoconf@gnu.org>."
  20859. _ACEOF
  20860. cat >>$CONFIG_STATUS <<_ACEOF
  20861. ac_cs_version="\\
  20862. csoap config.status 1.1.0
  20863. configured by $0, generated by GNU Autoconf 2.59e,
  20864. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  20865. Copyright (C) 2006 Free Software Foundation, Inc.
  20866. This config.status script is free software; the Free Software Foundation
  20867. gives unlimited permission to copy, distribute and modify it."
  20868. ac_pwd='$ac_pwd'
  20869. srcdir='$srcdir'
  20870. INSTALL='$INSTALL'
  20871. _ACEOF
  20872. cat >>$CONFIG_STATUS <<\_ACEOF
  20873. # If no file are specified by the user, then we need to provide default
  20874. # value. By we need to know if files were specified by the user.
  20875. ac_need_defaults=:
  20876. while test $# != 0
  20877. do
  20878. case $1 in
  20879. --*=*)
  20880. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  20881. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  20882. ac_shift=:
  20883. ;;
  20884. *)
  20885. ac_option=$1
  20886. ac_optarg=$2
  20887. ac_shift=shift
  20888. ;;
  20889. esac
  20890. case $ac_option in
  20891. # Handling of the options.
  20892. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  20893. ac_cs_recheck=: ;;
  20894. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  20895. echo "$ac_cs_version"; exit ;;
  20896. --debug | --debu | --deb | --de | --d | -d )
  20897. debug=: ;;
  20898. --file | --fil | --fi | --f )
  20899. $ac_shift
  20900. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  20901. ac_need_defaults=false;;
  20902. --header | --heade | --head | --hea )
  20903. $ac_shift
  20904. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  20905. ac_need_defaults=false;;
  20906. --he | --h)
  20907. # Conflict between --help and --header
  20908. { echo "$as_me: error: ambiguous option: $1
  20909. Try \`$0 --help' for more information." >&2
  20910. { (exit 1); exit 1; }; };;
  20911. --help | --hel | -h )
  20912. echo "$ac_cs_usage"; exit ;;
  20913. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  20914. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  20915. ac_cs_silent=: ;;
  20916. # This is an error.
  20917. -*) { echo "$as_me: error: unrecognized option: $1
  20918. Try \`$0 --help' for more information." >&2
  20919. { (exit 1); exit 1; }; } ;;
  20920. *) ac_config_targets="$ac_config_targets $1"
  20921. ac_need_defaults=false ;;
  20922. esac
  20923. shift
  20924. done
  20925. ac_configure_extra_args=
  20926. if $ac_cs_silent; then
  20927. exec 6>/dev/null
  20928. ac_configure_extra_args="$ac_configure_extra_args --silent"
  20929. fi
  20930. _ACEOF
  20931. cat >>$CONFIG_STATUS <<_ACEOF
  20932. if \$ac_cs_recheck; then
  20933. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  20934. CONFIG_SHELL=$SHELL
  20935. export CONFIG_SHELL
  20936. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  20937. fi
  20938. _ACEOF
  20939. cat >>$CONFIG_STATUS <<\_ACEOF
  20940. exec 5>>config.log
  20941. {
  20942. echo
  20943. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  20944. ## Running $as_me. ##
  20945. _ASBOX
  20946. echo "$ac_log"
  20947. } >&5
  20948. _ACEOF
  20949. cat >>$CONFIG_STATUS <<_ACEOF
  20950. #
  20951. # INIT-COMMANDS
  20952. #
  20953. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  20954. _ACEOF
  20955. cat >>$CONFIG_STATUS <<\_ACEOF
  20956. # Handling of arguments.
  20957. for ac_config_target in $ac_config_targets
  20958. do
  20959. case $ac_config_target in
  20960. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  20961. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  20962. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  20963. "libcsoap/Makefile") CONFIG_FILES="$CONFIG_FILES libcsoap/Makefile" ;;
  20964. "nanohttp/Makefile") CONFIG_FILES="$CONFIG_FILES nanohttp/Makefile" ;;
  20965. "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
  20966. "examples/nanohttp/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nanohttp/Makefile" ;;
  20967. "examples/csoap/Makefile") CONFIG_FILES="$CONFIG_FILES examples/csoap/Makefile" ;;
  20968. "libcsoap.pc") CONFIG_FILES="$CONFIG_FILES libcsoap.pc" ;;
  20969. "csoap-config") CONFIG_FILES="$CONFIG_FILES csoap-config" ;;
  20970. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  20971. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  20972. { (exit 1); exit 1; }; };;
  20973. esac
  20974. done
  20975. # If the user did not use the arguments to specify the items to instantiate,
  20976. # then the envvar interface is used. Set only those that are not.
  20977. # We use the long form for the default assignment because of an extremely
  20978. # bizarre bug on SunOS 4.1.3.
  20979. if $ac_need_defaults; then
  20980. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  20981. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  20982. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  20983. fi
  20984. # Have a temporary directory for convenience. Make it in the build tree
  20985. # simply because there is no reason against having it here, and in addition,
  20986. # creating and moving files from /tmp can sometimes cause problems.
  20987. # Hook for its removal unless debugging.
  20988. # Note that there is a small window in which the directory will not be cleaned:
  20989. # after its creation but before its name has been assigned to `$tmp'.
  20990. $debug ||
  20991. {
  20992. tmp=
  20993. trap 'exit_status=$?
  20994. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  20995. ' 0
  20996. trap '{ (exit 1); exit 1; }' 1 2 13 15
  20997. }
  20998. # Create a (secure) tmp directory for tmp files.
  20999. {
  21000. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  21001. test -n "$tmp" && test -d "$tmp"
  21002. } ||
  21003. {
  21004. tmp=./conf$$-$RANDOM
  21005. (umask 077 && mkdir "$tmp")
  21006. } ||
  21007. {
  21008. echo "$me: cannot create a temporary directory in ." >&2
  21009. { (exit 1); exit 1; }
  21010. }
  21011. #
  21012. # Set up the sed scripts for CONFIG_FILES section.
  21013. #
  21014. # No need to generate the scripts if there are no CONFIG_FILES.
  21015. # This happens for instance when ./config.status config.h
  21016. if test -n "$CONFIG_FILES"; then
  21017. _ACEOF
  21018. ac_delim='%!_!# '
  21019. for ac_last_try in false false false false false :; do
  21020. cat >conf$$subs.sed <<_ACEOF
  21021. SHELL!$SHELL$ac_delim
  21022. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  21023. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  21024. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  21025. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  21026. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  21027. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  21028. exec_prefix!$exec_prefix$ac_delim
  21029. prefix!$prefix$ac_delim
  21030. program_transform_name!$program_transform_name$ac_delim
  21031. bindir!$bindir$ac_delim
  21032. sbindir!$sbindir$ac_delim
  21033. libexecdir!$libexecdir$ac_delim
  21034. datarootdir!$datarootdir$ac_delim
  21035. datadir!$datadir$ac_delim
  21036. sysconfdir!$sysconfdir$ac_delim
  21037. sharedstatedir!$sharedstatedir$ac_delim
  21038. localstatedir!$localstatedir$ac_delim
  21039. includedir!$includedir$ac_delim
  21040. oldincludedir!$oldincludedir$ac_delim
  21041. docdir!$docdir$ac_delim
  21042. infodir!$infodir$ac_delim
  21043. htmldir!$htmldir$ac_delim
  21044. dvidir!$dvidir$ac_delim
  21045. pdfdir!$pdfdir$ac_delim
  21046. psdir!$psdir$ac_delim
  21047. libdir!$libdir$ac_delim
  21048. localedir!$localedir$ac_delim
  21049. mandir!$mandir$ac_delim
  21050. DEFS!$DEFS$ac_delim
  21051. ECHO_C!$ECHO_C$ac_delim
  21052. ECHO_N!$ECHO_N$ac_delim
  21053. ECHO_T!$ECHO_T$ac_delim
  21054. LIBS!$LIBS$ac_delim
  21055. build_alias!$build_alias$ac_delim
  21056. host_alias!$host_alias$ac_delim
  21057. target_alias!$target_alias$ac_delim
  21058. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  21059. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  21060. INSTALL_DATA!$INSTALL_DATA$ac_delim
  21061. CYGPATH_W!$CYGPATH_W$ac_delim
  21062. PACKAGE!$PACKAGE$ac_delim
  21063. VERSION!$VERSION$ac_delim
  21064. ACLOCAL!$ACLOCAL$ac_delim
  21065. AUTOCONF!$AUTOCONF$ac_delim
  21066. AUTOMAKE!$AUTOMAKE$ac_delim
  21067. AUTOHEADER!$AUTOHEADER$ac_delim
  21068. MAKEINFO!$MAKEINFO$ac_delim
  21069. install_sh!$install_sh$ac_delim
  21070. STRIP!$STRIP$ac_delim
  21071. INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  21072. mkdir_p!$mkdir_p$ac_delim
  21073. AWK!$AWK$ac_delim
  21074. SET_MAKE!$SET_MAKE$ac_delim
  21075. am__leading_dot!$am__leading_dot$ac_delim
  21076. AMTAR!$AMTAR$ac_delim
  21077. am__tar!$am__tar$ac_delim
  21078. am__untar!$am__untar$ac_delim
  21079. CC!$CC$ac_delim
  21080. CFLAGS!$CFLAGS$ac_delim
  21081. LDFLAGS!$LDFLAGS$ac_delim
  21082. CPPFLAGS!$CPPFLAGS$ac_delim
  21083. ac_ct_CC!$ac_ct_CC$ac_delim
  21084. EXEEXT!$EXEEXT$ac_delim
  21085. OBJEXT!$OBJEXT$ac_delim
  21086. DEPDIR!$DEPDIR$ac_delim
  21087. am__include!$am__include$ac_delim
  21088. am__quote!$am__quote$ac_delim
  21089. AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  21090. AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  21091. AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  21092. CCDEPMODE!$CCDEPMODE$ac_delim
  21093. am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  21094. am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  21095. build!$build$ac_delim
  21096. build_cpu!$build_cpu$ac_delim
  21097. build_vendor!$build_vendor$ac_delim
  21098. build_os!$build_os$ac_delim
  21099. host!$host$ac_delim
  21100. host_cpu!$host_cpu$ac_delim
  21101. host_vendor!$host_vendor$ac_delim
  21102. host_os!$host_os$ac_delim
  21103. GREP!$GREP$ac_delim
  21104. EGREP!$EGREP$ac_delim
  21105. LN_S!$LN_S$ac_delim
  21106. ECHO!$ECHO$ac_delim
  21107. AR!$AR$ac_delim
  21108. RANLIB!$RANLIB$ac_delim
  21109. CPP!$CPP$ac_delim
  21110. CXX!$CXX$ac_delim
  21111. CXXFLAGS!$CXXFLAGS$ac_delim
  21112. ac_ct_CXX!$ac_ct_CXX$ac_delim
  21113. CXXDEPMODE!$CXXDEPMODE$ac_delim
  21114. am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  21115. am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  21116. CXXCPP!$CXXCPP$ac_delim
  21117. F77!$F77$ac_delim
  21118. _ACEOF
  21119. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  21120. break
  21121. elif $ac_last_try; then
  21122. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  21123. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  21124. { (exit 1); exit 1; }; }
  21125. else
  21126. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21127. fi
  21128. done
  21129. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  21130. if test -n "$ac_eof"; then
  21131. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  21132. ac_eof=`expr $ac_eof + 1`
  21133. fi
  21134. cat >>$CONFIG_STATUS <<_ACEOF
  21135. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  21136. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  21137. _ACEOF
  21138. sed '
  21139. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  21140. s/^/s,@/; s/!/@,|#_!!_#|/
  21141. :n
  21142. t n
  21143. s/'"$ac_delim"'$/,g/; t
  21144. s/$/\\/; p
  21145. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  21146. ' >>$CONFIG_STATUS <conf$$subs.sed
  21147. rm -f conf$$subs.sed
  21148. cat >>$CONFIG_STATUS <<_ACEOF
  21149. CEOF$ac_eof
  21150. _ACEOF
  21151. ac_delim='%!_!# '
  21152. for ac_last_try in false false false false false :; do
  21153. cat >conf$$subs.sed <<_ACEOF
  21154. FFLAGS!$FFLAGS$ac_delim
  21155. ac_ct_F77!$ac_ct_F77$ac_delim
  21156. LIBTOOL!$LIBTOOL$ac_delim
  21157. csoap_major!$csoap_major$ac_delim
  21158. csoap_minor!$csoap_minor$ac_delim
  21159. csoap_patch!$csoap_patch$ac_delim
  21160. csoap_release!$csoap_release$ac_delim
  21161. csoap_version!$csoap_version$ac_delim
  21162. nanohttp_release!$nanohttp_release$ac_delim
  21163. nanohttp_version!$nanohttp_version$ac_delim
  21164. LIBOBJS!$LIBOBJS$ac_delim
  21165. acx_pthread_config!$acx_pthread_config$ac_delim
  21166. PTHREAD_CC!$PTHREAD_CC$ac_delim
  21167. PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
  21168. PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
  21169. LIBSOCKET!$LIBSOCKET$ac_delim
  21170. LIBNSL!$LIBNSL$ac_delim
  21171. XML2_CONFIG!$XML2_CONFIG$ac_delim
  21172. XML_CPPFLAGS!$XML_CPPFLAGS$ac_delim
  21173. XML_LIBS!$XML_LIBS$ac_delim
  21174. LTLIBOBJS!$LTLIBOBJS$ac_delim
  21175. _ACEOF
  21176. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 21; then
  21177. break
  21178. elif $ac_last_try; then
  21179. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  21180. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  21181. { (exit 1); exit 1; }; }
  21182. else
  21183. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21184. fi
  21185. done
  21186. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  21187. if test -n "$ac_eof"; then
  21188. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  21189. ac_eof=`expr $ac_eof + 1`
  21190. fi
  21191. cat >>$CONFIG_STATUS <<_ACEOF
  21192. cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  21193. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  21194. _ACEOF
  21195. sed '
  21196. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  21197. s/^/s,@/; s/!/@,|#_!!_#|/
  21198. :n
  21199. t n
  21200. s/'"$ac_delim"'$/,g/; t
  21201. s/$/\\/; p
  21202. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  21203. ' >>$CONFIG_STATUS <conf$$subs.sed
  21204. rm -f conf$$subs.sed
  21205. cat >>$CONFIG_STATUS <<_ACEOF
  21206. :end
  21207. s/|#_!!_#|//g
  21208. CEOF$ac_eof
  21209. _ACEOF
  21210. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  21211. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  21212. # trailing colons and then remove the whole line if VPATH becomes empty
  21213. # (actually we leave an empty line to preserve line numbers).
  21214. if test "x$srcdir" = x.; then
  21215. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  21216. s/:*\$(srcdir):*/:/
  21217. s/:*\${srcdir}:*/:/
  21218. s/:*@srcdir@:*/:/
  21219. s/^\([^=]*=[ ]*\):*/\1/
  21220. s/:*$//
  21221. s/^[^=]*=[ ]*$//
  21222. }'
  21223. fi
  21224. cat >>$CONFIG_STATUS <<\_ACEOF
  21225. fi # test -n "$CONFIG_FILES"
  21226. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  21227. do
  21228. case $ac_tag in
  21229. :[FHLC]) ac_mode=$ac_tag; continue;;
  21230. esac
  21231. case $ac_mode$ac_tag in
  21232. :[FHL]*:*);;
  21233. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  21234. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  21235. { (exit 1); exit 1; }; };;
  21236. :[FH]-) ac_tag=-:-;;
  21237. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  21238. esac
  21239. ac_save_IFS=$IFS
  21240. IFS=:
  21241. set x $ac_tag
  21242. IFS=$ac_save_IFS
  21243. shift
  21244. ac_file=$1
  21245. shift
  21246. case $ac_mode in
  21247. :L) ac_source=$1;;
  21248. :[FH])
  21249. ac_file_inputs=
  21250. for ac_f
  21251. do
  21252. case $ac_f in
  21253. -) ac_f="$tmp/stdin";;
  21254. *) # Look for the file first in the build tree, then in the source tree
  21255. # (if the path is not absolute). The absolute path cannot be DOS-style,
  21256. # because $ac_f cannot contain `:'.
  21257. test -f "$ac_f" ||
  21258. case $ac_f in
  21259. [\\/$]*) false;;
  21260. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  21261. esac ||
  21262. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  21263. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  21264. { (exit 1); exit 1; }; };;
  21265. esac
  21266. ac_file_inputs="$ac_file_inputs $ac_f"
  21267. done
  21268. # Let's still pretend it is `configure' which instantiates (i.e., don't
  21269. # use $as_me), people would be surprised to read:
  21270. # /* config.h. Generated by config.status. */
  21271. configure_input="Generated from "`IFS=:
  21272. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  21273. if test x"$ac_file" != x-; then
  21274. configure_input="$ac_file. $configure_input"
  21275. { echo "$as_me:$LINENO: creating $ac_file" >&5
  21276. echo "$as_me: creating $ac_file" >&6;}
  21277. fi
  21278. case $ac_tag in
  21279. *:-:* | *:-) cat >"$tmp/stdin";;
  21280. esac
  21281. ;;
  21282. esac
  21283. ac_dir=`$as_dirname -- "$ac_file" ||
  21284. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21285. X"$ac_file" : 'X\(//\)[^/]' \| \
  21286. X"$ac_file" : 'X\(//\)$' \| \
  21287. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  21288. echo X"$ac_file" |
  21289. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21290. s//\1/
  21291. q
  21292. }
  21293. /^X\(\/\/\)[^/].*/{
  21294. s//\1/
  21295. q
  21296. }
  21297. /^X\(\/\/\)$/{
  21298. s//\1/
  21299. q
  21300. }
  21301. /^X\(\/\).*/{
  21302. s//\1/
  21303. q
  21304. }
  21305. s/.*/./; q'`
  21306. { as_dir="$ac_dir"
  21307. case $as_dir in #(
  21308. -*) as_dir=./$as_dir;;
  21309. esac
  21310. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  21311. as_dirs=
  21312. while :; do
  21313. case $as_dir in #(
  21314. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  21315. *) as_qdir=$as_dir;;
  21316. esac
  21317. as_dirs="'$as_qdir' $as_dirs"
  21318. as_dir=`$as_dirname -- "$as_dir" ||
  21319. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21320. X"$as_dir" : 'X\(//\)[^/]' \| \
  21321. X"$as_dir" : 'X\(//\)$' \| \
  21322. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  21323. echo X"$as_dir" |
  21324. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21325. s//\1/
  21326. q
  21327. }
  21328. /^X\(\/\/\)[^/].*/{
  21329. s//\1/
  21330. q
  21331. }
  21332. /^X\(\/\/\)$/{
  21333. s//\1/
  21334. q
  21335. }
  21336. /^X\(\/\).*/{
  21337. s//\1/
  21338. q
  21339. }
  21340. s/.*/./; q'`
  21341. test -d "$as_dir" && break
  21342. done
  21343. test -z "$as_dirs" || eval "mkdir $as_dirs"
  21344. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  21345. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  21346. { (exit 1); exit 1; }; }; }
  21347. ac_builddir=.
  21348. case "$ac_dir" in
  21349. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  21350. *)
  21351. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  21352. # A ".." for each directory in $ac_dir_suffix.
  21353. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  21354. case $ac_top_builddir_sub in
  21355. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  21356. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  21357. esac ;;
  21358. esac
  21359. ac_abs_top_builddir=$ac_pwd
  21360. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  21361. # for backward compatibility:
  21362. ac_top_builddir=$ac_top_build_prefix
  21363. case $srcdir in
  21364. .) # We are building in place.
  21365. ac_srcdir=.
  21366. ac_top_srcdir=$ac_top_builddir_sub
  21367. ac_abs_top_srcdir=$ac_pwd ;;
  21368. [\\/]* | ?:[\\/]* ) # Absolute name.
  21369. ac_srcdir=$srcdir$ac_dir_suffix;
  21370. ac_top_srcdir=$srcdir
  21371. ac_abs_top_srcdir=$srcdir ;;
  21372. *) # Relative name.
  21373. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  21374. ac_top_srcdir=$ac_top_build_prefix$srcdir
  21375. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  21376. esac
  21377. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  21378. case $ac_mode in
  21379. :F)
  21380. #
  21381. # CONFIG_FILE
  21382. #
  21383. case $INSTALL in
  21384. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  21385. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  21386. esac
  21387. _ACEOF
  21388. cat >>$CONFIG_STATUS <<\_ACEOF
  21389. # If the template does not know about datarootdir, expand it.
  21390. # FIXME: This hack should be removed a few years after 2.60.
  21391. ac_datarootdir_hack=; ac_datarootdir_seen=
  21392. case `sed -n '/datarootdir/ {
  21393. p
  21394. q
  21395. }
  21396. /@datadir@/p
  21397. /@docdir@/p
  21398. /@infodir@/p
  21399. /@localedir@/p
  21400. /@mandir@/p
  21401. ' $ac_file_inputs` in
  21402. *datarootdir*) ac_datarootdir_seen=yes;;
  21403. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  21404. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  21405. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  21406. _ACEOF
  21407. cat >>$CONFIG_STATUS <<_ACEOF
  21408. ac_datarootdir_hack='
  21409. s&@datadir@&$datadir&g
  21410. s&@docdir@&$docdir&g
  21411. s&@infodir@&$infodir&g
  21412. s&@localedir@&$localedir&g
  21413. s&@mandir@&$mandir&g
  21414. s&\\\${datarootdir}&$datarootdir&g' ;;
  21415. esac
  21416. _ACEOF
  21417. # Neutralize VPATH when `$srcdir' = `.'.
  21418. # Shell code in configure.ac might set extrasub.
  21419. # FIXME: do we really want to maintain this feature?
  21420. cat >>$CONFIG_STATUS <<_ACEOF
  21421. sed "$ac_vpsub
  21422. $extrasub
  21423. _ACEOF
  21424. cat >>$CONFIG_STATUS <<\_ACEOF
  21425. :t
  21426. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  21427. s&@configure_input@&$configure_input&;t t
  21428. s&@top_builddir@&$ac_top_builddir_sub&;t t
  21429. s&@srcdir@&$ac_srcdir&;t t
  21430. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  21431. s&@top_srcdir@&$ac_top_srcdir&;t t
  21432. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  21433. s&@builddir@&$ac_builddir&;t t
  21434. s&@abs_builddir@&$ac_abs_builddir&;t t
  21435. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  21436. s&@INSTALL@&$ac_INSTALL&;t t
  21437. $ac_datarootdir_hack
  21438. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
  21439. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  21440. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  21441. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  21442. which seems to be undefined. Please make sure it is defined." >&5
  21443. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  21444. which seems to be undefined. Please make sure it is defined." >&2;}
  21445. rm -f "$tmp/stdin"
  21446. case $ac_file in
  21447. -) cat "$tmp/out"; rm -f "$tmp/out";;
  21448. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  21449. esac
  21450. ;;
  21451. :H)
  21452. #
  21453. # CONFIG_HEADER
  21454. #
  21455. _ACEOF
  21456. # Transform confdefs.h into a sed script `conftest.defines', that
  21457. # substitutes the proper values into config.h.in to produce config.h.
  21458. rm -f conftest.defines conftest.tail
  21459. # First, append a space to every undef/define line, to ease matching.
  21460. echo 's/$/ /' >conftest.defines
  21461. # Then, protect against being on the right side of a sed subst, or in
  21462. # an unquoted here document, in config.status. If some macros were
  21463. # called several times there might be several #defines for the same
  21464. # symbol, which is useless. But do not sort them, since the last
  21465. # AC_DEFINE must be honored.
  21466. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  21467. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  21468. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  21469. # PARAMS is the parameter list in the macro definition--in most cases, it's
  21470. # just an empty string.
  21471. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  21472. ac_dB='\\)[ (].*,\\1define\\2'
  21473. ac_dC=' '
  21474. ac_dD=' ,'
  21475. uniq confdefs.h |
  21476. sed -n '
  21477. t rset
  21478. :rset
  21479. s/^[ ]*#[ ]*define[ ][ ]*//
  21480. t ok
  21481. d
  21482. :ok
  21483. s/[\\&,]/\\&/g
  21484. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  21485. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  21486. ' >>conftest.defines
  21487. # Remove the space that was appended to ease matching.
  21488. # Then replace #undef with comments. This is necessary, for
  21489. # example, in the case of _POSIX_SOURCE, which is predefined and required
  21490. # on some systems where configure will not decide to define it.
  21491. # (The regexp can be short, since the line contains either #define or #undef.)
  21492. echo 's/ $//
  21493. s,^[ #]*u.*,/* & */,' >>conftest.defines
  21494. # Break up conftest.defines:
  21495. ac_max_sed_lines=50
  21496. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  21497. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  21498. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  21499. # et cetera.
  21500. ac_in='$ac_file_inputs'
  21501. ac_out='"$tmp/out1"'
  21502. ac_nxt='"$tmp/out2"'
  21503. while :
  21504. do
  21505. # Write a here document:
  21506. cat >>$CONFIG_STATUS <<_ACEOF
  21507. # First, check the format of the line:
  21508. cat >"\$tmp/defines.sed" <<\\CEOF
  21509. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  21510. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  21511. b
  21512. :def
  21513. _ACEOF
  21514. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  21515. echo 'CEOF
  21516. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  21517. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  21518. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  21519. grep . conftest.tail >/dev/null || break
  21520. rm -f conftest.defines
  21521. mv conftest.tail conftest.defines
  21522. done
  21523. rm -f conftest.defines conftest.tail
  21524. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  21525. cat >>$CONFIG_STATUS <<\_ACEOF
  21526. if test x"$ac_file" != x-; then
  21527. echo "/* $configure_input */" >"$tmp/config.h"
  21528. cat "$ac_result" >>"$tmp/config.h"
  21529. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  21530. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  21531. echo "$as_me: $ac_file is unchanged" >&6;}
  21532. else
  21533. rm -f $ac_file
  21534. mv "$tmp/config.h" $ac_file
  21535. fi
  21536. else
  21537. echo "/* $configure_input */"
  21538. cat "$ac_result"
  21539. fi
  21540. rm -f "$tmp/out12"
  21541. # Compute $ac_file's index in $config_headers.
  21542. _am_stamp_count=1
  21543. for _am_header in $config_headers :; do
  21544. case $_am_header in
  21545. $ac_file | $ac_file:* )
  21546. break ;;
  21547. * )
  21548. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  21549. esac
  21550. done
  21551. echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
  21552. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21553. X$ac_file : 'X\(//\)[^/]' \| \
  21554. X$ac_file : 'X\(//\)$' \| \
  21555. X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
  21556. echo X$ac_file |
  21557. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21558. s//\1/
  21559. q
  21560. }
  21561. /^X\(\/\/\)[^/].*/{
  21562. s//\1/
  21563. q
  21564. }
  21565. /^X\(\/\/\)$/{
  21566. s//\1/
  21567. q
  21568. }
  21569. /^X\(\/\).*/{
  21570. s//\1/
  21571. q
  21572. }
  21573. s/.*/./; q'`/stamp-h$_am_stamp_count
  21574. ;;
  21575. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  21576. echo "$as_me: executing $ac_file commands" >&6;}
  21577. ;;
  21578. esac
  21579. case $ac_file$ac_mode in
  21580. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  21581. # Strip MF so we end up with the name of the file.
  21582. mf=`echo "$mf" | sed -e 's/:.*$//'`
  21583. # Check whether this is an Automake generated Makefile or not.
  21584. # We used to match only the files named `Makefile.in', but
  21585. # some people rename them; so instead we look at the file content.
  21586. # Grep'ing the first line is not enough: some people post-process
  21587. # each Makefile.in and add a new line on top of each file to say so.
  21588. # So let's grep whole file.
  21589. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  21590. dirpart=`$as_dirname -- "$mf" ||
  21591. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21592. X"$mf" : 'X\(//\)[^/]' \| \
  21593. X"$mf" : 'X\(//\)$' \| \
  21594. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  21595. echo X"$mf" |
  21596. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21597. s//\1/
  21598. q
  21599. }
  21600. /^X\(\/\/\)[^/].*/{
  21601. s//\1/
  21602. q
  21603. }
  21604. /^X\(\/\/\)$/{
  21605. s//\1/
  21606. q
  21607. }
  21608. /^X\(\/\).*/{
  21609. s//\1/
  21610. q
  21611. }
  21612. s/.*/./; q'`
  21613. else
  21614. continue
  21615. fi
  21616. # Extract the definition of DEPDIR, am__include, and am__quote
  21617. # from the Makefile without running `make'.
  21618. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  21619. test -z "$DEPDIR" && continue
  21620. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  21621. test -z "am__include" && continue
  21622. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  21623. # When using ansi2knr, U may be empty or an underscore; expand it
  21624. U=`sed -n 's/^U = //p' < "$mf"`
  21625. # Find all dependency output files, they are included files with
  21626. # $(DEPDIR) in their names. We invoke sed twice because it is the
  21627. # simplest approach to changing $(DEPDIR) to its actual value in the
  21628. # expansion.
  21629. for file in `sed -n "
  21630. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  21631. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  21632. # Make sure the directory exists.
  21633. test -f "$dirpart/$file" && continue
  21634. fdir=`$as_dirname -- "$file" ||
  21635. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21636. X"$file" : 'X\(//\)[^/]' \| \
  21637. X"$file" : 'X\(//\)$' \| \
  21638. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  21639. echo X"$file" |
  21640. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21641. s//\1/
  21642. q
  21643. }
  21644. /^X\(\/\/\)[^/].*/{
  21645. s//\1/
  21646. q
  21647. }
  21648. /^X\(\/\/\)$/{
  21649. s//\1/
  21650. q
  21651. }
  21652. /^X\(\/\).*/{
  21653. s//\1/
  21654. q
  21655. }
  21656. s/.*/./; q'`
  21657. { as_dir=$dirpart/$fdir
  21658. case $as_dir in #(
  21659. -*) as_dir=./$as_dir;;
  21660. esac
  21661. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  21662. as_dirs=
  21663. while :; do
  21664. case $as_dir in #(
  21665. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  21666. *) as_qdir=$as_dir;;
  21667. esac
  21668. as_dirs="'$as_qdir' $as_dirs"
  21669. as_dir=`$as_dirname -- "$as_dir" ||
  21670. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21671. X"$as_dir" : 'X\(//\)[^/]' \| \
  21672. X"$as_dir" : 'X\(//\)$' \| \
  21673. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  21674. echo X"$as_dir" |
  21675. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21676. s//\1/
  21677. q
  21678. }
  21679. /^X\(\/\/\)[^/].*/{
  21680. s//\1/
  21681. q
  21682. }
  21683. /^X\(\/\/\)$/{
  21684. s//\1/
  21685. q
  21686. }
  21687. /^X\(\/\).*/{
  21688. s//\1/
  21689. q
  21690. }
  21691. s/.*/./; q'`
  21692. test -d "$as_dir" && break
  21693. done
  21694. test -z "$as_dirs" || eval "mkdir $as_dirs"
  21695. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  21696. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  21697. { (exit 1); exit 1; }; }; }
  21698. # echo "creating $dirpart/$file"
  21699. echo '# dummy' > "$dirpart/$file"
  21700. done
  21701. done
  21702. ;;
  21703. esac
  21704. done # for ac_tag
  21705. { (exit 0); exit 0; }
  21706. _ACEOF
  21707. chmod +x $CONFIG_STATUS
  21708. ac_clean_files=$ac_clean_files_save
  21709. # configure is writing to config.log, and then calls config.status.
  21710. # config.status does its own redirection, appending to config.log.
  21711. # Unfortunately, on DOS this fails, as config.log is still kept open
  21712. # by configure, so config.status won't be able to write to it; its
  21713. # output is simply discarded. So we exec the FD to /dev/null,
  21714. # effectively closing config.log, so it can be properly (re)opened and
  21715. # appended to by config.status. When coming back to configure, we
  21716. # need to make the FD available again.
  21717. if test "$no_create" != yes; then
  21718. ac_cs_success=:
  21719. ac_config_status_args=
  21720. test "$silent" = yes &&
  21721. ac_config_status_args="$ac_config_status_args --quiet"
  21722. exec 5>/dev/null
  21723. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  21724. exec 5>>config.log
  21725. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  21726. # would make configure fail if this is the last instruction.
  21727. $ac_cs_success || { (exit 1); exit 1; }
  21728. fi
  21729. echo "Configured cSOAP $csoap_major.$csoap_minor.$csoap_patch for installation in $prefix";