diff --git a/application/controllers/ScheduleController.php b/application/controllers/ScheduleController.php index d3df6f232..db0ec0526 100644 --- a/application/controllers/ScheduleController.php +++ b/application/controllers/ScheduleController.php @@ -64,8 +64,7 @@ class ScheduleController extends Zend_Controller_Action $formRepeats->removeDecorator('DtDdWrapper'); $formStyle->removeDecorator('DtDdWrapper'); $formRecord->removeDecorator('DtDdWrapper'); - $formAbsoluteRebroadcast->removeDecorator('DtDdWrapper'); - $formRebroadcast->removeDecorator('DtDdWrapper'); + $this->view->what = $formWhat; $this->view->when = $formWhen; @@ -169,8 +168,10 @@ class ScheduleController extends Zend_Controller_Action } - $menu[] = array('action' => array('type' => 'ajax', 'url' => '/Schedule/show-content-dialog'.$params, - 'callback' => 'window["buildContentDialog"]'), 'title' => 'Show Content'); + if(!$show->isRecorded()) { + $menu[] = array('action' => array('type' => 'ajax', 'url' => '/Schedule/show-content-dialog'.$params, + 'callback' => 'window["buildContentDialog"]'), 'title' => 'Show Content'); + } if (strtotime($show->getShowStart()) <= strtotime($today_timestamp) && @@ -368,6 +369,7 @@ class ScheduleController extends Zend_Controller_Action $this->view->rr = $formRecord; $this->view->absoluteRebroadcast = $formAbsoluteRebroadcast; $this->view->rebroadcast = $formRebroadcast; + $what = $formWhat->isValid($data); $when = $formWhen->isValid($data); if($when) { @@ -386,8 +388,11 @@ class ScheduleController extends Zend_Controller_Action $who = $formWho->isValid($data); $style = $formStyle->isValid($data); + $record = $formRecord->isValid($data); + $rebroadAb = $formAbsoluteRebroadcast->isValid($data); + $rebroad = $formRebroadcast->isValid($data); - if ($what && $when && $repeats && $who && $style) { + if ($what && $when && $repeats && $who && $style && $record && $rebroadAb && $rebroad) { $userInfo = Zend_Auth::getInstance()->getStorage()->read(); $user = new User($userInfo->id); @@ -405,6 +410,9 @@ class ScheduleController extends Zend_Controller_Action $formRepeats->reset(); $formRepeats->populate(array('add_show_end_date' => date("Y-m-d"))); $formStyle->reset(); + $formRecord->reset(); + $formAbsoluteRebroadcast->reset(); + $formRebroadcast->reset(); $this->view->newForm = $this->view->render('schedule/add-show-form.phtml'); } diff --git a/application/forms/AddShowAbsoluteRebroadcastDates.php b/application/forms/AddShowAbsoluteRebroadcastDates.php index 322f8843d..27e78422c 100644 --- a/application/forms/AddShowAbsoluteRebroadcastDates.php +++ b/application/forms/AddShowAbsoluteRebroadcastDates.php @@ -5,31 +5,177 @@ class Application_Form_AddShowAbsoluteRebroadcastDates extends Zend_Form_SubForm public function init() { + //$this->setDisableLoadDefaultDecorators(true); + + $this->setDecorators(array( + array('ViewScript', array('viewScript' => 'form/add-show-rebroadcast-absolute.phtml')) + )); + // Add start date element $this->addElement('text', 'add_show_rebroadcast_absolute_date_1', array( 'label' => 'Rebroadcast Date:', 'class' => 'input_text', - 'required' => true, - 'value' => date("Y-m-d"), + 'required' => false, + 'value' => '', 'filters' => array('StringTrim'), 'validators' => array( 'NotEmpty', array('date', false, array('YYYY-MM-DD')) - ) + ), + 'decorators' => array( + 'ViewHelper' + ) )); + // Add start time element $this->addElement('text', 'add_show_rebroadcast_absolute_time_1', array( 'label' => 'Rebroadcast Time:', 'class' => 'input_text', - 'required' => true, - 'value' => '0:00', + 'required' => false, + 'value' => '', 'filters' => array('StringTrim'), 'validators' => array( 'NotEmpty', array('date', false, array('HH:mm')) - ) + ), + 'decorators' => array( + 'ViewHelper' + ) )); + + // Add start date element + $this->addElement('text', 'add_show_rebroadcast_absolute_date_2', array( + 'label' => 'Rebroadcast Date:', + 'class' => 'input_text', + 'required' => false, + 'value' => '', + 'filters' => array('StringTrim'), + 'validators' => array( + 'NotEmpty', + array('date', false, array('YYYY-MM-DD')) + ), + 'decorators' => array( + 'ViewHelper' + ) + )); + + + // Add start time element + $this->addElement('text', 'add_show_rebroadcast_absolute_time_2', array( + 'label' => 'Rebroadcast Time:', + 'class' => 'input_text', + 'required' => false, + 'value' => '', + 'filters' => array('StringTrim'), + 'validators' => array( + 'NotEmpty', + array('date', false, array('HH:mm')) + ), + 'decorators' => array( + 'ViewHelper' + ) + )); + + // Add start date element + $this->addElement('text', 'add_show_rebroadcast_absolute_date_3', array( + 'label' => 'Rebroadcast Date:', + 'class' => 'input_text', + 'required' => false, + 'value' => '', + 'filters' => array('StringTrim'), + 'validators' => array( + 'NotEmpty', + array('date', false, array('YYYY-MM-DD')) + ), + 'decorators' => array( + 'ViewHelper' + ) + )); + + + // Add start time element + $this->addElement('text', 'add_show_rebroadcast_absolute_time_3', array( + 'label' => 'Rebroadcast Time:', + 'class' => 'input_text', + 'required' => false, + 'value' => '', + 'filters' => array('StringTrim'), + 'validators' => array( + 'NotEmpty', + array('date', false, array('HH:mm')) + ), + 'decorators' => array( + 'ViewHelper' + ) + )); + + // Add start date element + $this->addElement('text', 'add_show_rebroadcast_absolute_date_4', array( + 'label' => 'Rebroadcast Date:', + 'class' => 'input_text', + 'required' => false, + 'value' => '', + 'filters' => array('StringTrim'), + 'validators' => array( + 'NotEmpty', + array('date', false, array('YYYY-MM-DD')) + ), + 'decorators' => array( + 'ViewHelper' + ) + )); + + + // Add start time element + $this->addElement('text', 'add_show_rebroadcast_absolute_time_4', array( + 'label' => 'Rebroadcast Time:', + 'class' => 'input_text', + 'required' => false, + 'value' => '', + 'filters' => array('StringTrim'), + 'validators' => array( + 'NotEmpty', + array('date', false, array('HH:mm')) + ), + 'decorators' => array( + 'ViewHelper' + ) + )); + + // Add start date element + $this->addElement('text', 'add_show_rebroadcast_absolute_date_5', array( + 'label' => 'Rebroadcast Date:', + 'class' => 'input_text', + 'required' => false, + 'value' => '', + 'filters' => array('StringTrim'), + 'validators' => array( + 'NotEmpty', + array('date', false, array('YYYY-MM-DD')) + ), + 'decorators' => array( + 'ViewHelper' + ) + )); + + + // Add start time element + $this->addElement('text', 'add_show_rebroadcast_absolute_time_5', array( + 'label' => 'Rebroadcast Time:', + 'class' => 'input_text', + 'required' => false, + 'value' => '', + 'filters' => array('StringTrim'), + 'validators' => array( + 'NotEmpty', + array('date', false, array('HH:mm')) + ), + 'decorators' => array( + 'ViewHelper' + ) + )); + } diff --git a/application/forms/AddShowRebroadcastDates.php b/application/forms/AddShowRebroadcastDates.php index 794917bc4..a8e0a67d0 100644 --- a/application/forms/AddShowRebroadcastDates.php +++ b/application/forms/AddShowRebroadcastDates.php @@ -5,33 +5,164 @@ class Application_Form_AddShowRebroadcastDates extends Zend_Form_SubForm public function init() { - //Add type select + $this->setDecorators(array( + array('ViewScript', array('viewScript' => 'form/add-show-rebroadcast.phtml')) + )); + + //Add date select $this->addElement('select', 'add_show_rebroadcast_date_1', array( - 'label' => 'Rebroadcast Day:', - 'required' => true, + 'required' => false, 'class' => ' input_select', 'multiOptions' => array( - "0 days" => "+0 days ", - "1 day" => "+1 day ", + "" => "", + "0 days" => "+0 days", + "1 day" => "+1 day", "2 days" => "+2 days", "3 days" => "+3 days" - ), + ), + 'decorators' => array( + 'ViewHelper' + ) )); // Add start time element - $this->addElement('text', 'add_show_start_time_1', array( - 'label' => 'Rebroadcast Time:', + $this->addElement('text', 'add_show_rebroadcast_time_1', array( 'class' => 'input_text', - 'required' => true, - 'value' => '0:00', + 'required' => false, + 'value' => '', 'filters' => array('StringTrim'), 'validators' => array( 'NotEmpty', array('date', false, array('HH:mm')) - ) + ), + 'decorators' => array( + 'ViewHelper' + ) + )); + + //Add date select + $this->addElement('select', 'add_show_rebroadcast_date_2', array( + 'required' => false, + 'class' => ' input_select', + 'multiOptions' => array( + "" => "", + "0 days" => "+0 days", + "1 day" => "+1 day", + "2 days" => "+2 days", + "3 days" => "+3 days" + ), + 'decorators' => array( + 'ViewHelper' + ) + )); + + // Add start time element + $this->addElement('text', 'add_show_rebroadcast_time_2', array( + 'class' => 'input_text', + 'required' => false, + 'value' => '', + 'filters' => array('StringTrim'), + 'validators' => array( + 'NotEmpty', + array('date', false, array('HH:mm')) + ), + 'decorators' => array( + 'ViewHelper' + ) + )); + + //Add date select + $this->addElement('select', 'add_show_rebroadcast_date_3', array( + 'required' => false, + 'class' => ' input_select', + 'multiOptions' => array( + "" => "", + "0 days" => "+0 days", + "1 day" => "+1 day", + "2 days" => "+2 days", + "3 days" => "+3 days" + ), + 'decorators' => array( + 'ViewHelper' + ) + )); + + // Add start time element + $this->addElement('text', 'add_show_rebroadcast_time_3', array( + 'class' => 'input_text', + 'required' => false, + 'value' => '', + 'filters' => array('StringTrim'), + 'validators' => array( + 'NotEmpty', + array('date', false, array('HH:mm')) + ), + 'decorators' => array( + 'ViewHelper' + ) + )); + + //Add date select + $this->addElement('select', 'add_show_rebroadcast_date_4', array( + 'required' => false, + 'class' => ' input_select', + 'multiOptions' => array( + "" => "", + "0 days" => "+0 days", + "1 day" => "+1 day", + "2 days" => "+2 days", + "3 days" => "+3 days" + ), + 'decorators' => array( + 'ViewHelper' + ) + )); + + // Add start time element + $this->addElement('text', 'add_show_rebroadcast_time_4', array( + 'class' => 'input_text', + 'required' => false, + 'value' => '', + 'filters' => array('StringTrim'), + 'validators' => array( + 'NotEmpty', + array('date', false, array('HH:mm')) + ), + 'decorators' => array( + 'ViewHelper' + ) + )); + + //Add date select + $this->addElement('select', 'add_show_rebroadcast_date_5', array( + 'required' => false, + 'class' => ' input_select', + 'multiOptions' => array( + "" => "", + "0 days" => "+0 days", + "1 day" => "+1 day", + "2 days" => "+2 days", + "3 days" => "+3 days" + ), + 'decorators' => array( + 'ViewHelper' + ) + )); + + // Add start time element + $this->addElement('text', 'add_show_rebroadcast_time_5', array( + 'class' => 'input_text', + 'required' => false, + 'value' => '', + 'filters' => array('StringTrim'), + 'validators' => array( + 'NotEmpty', + array('date', false, array('HH:mm')) + ), + 'decorators' => array( + 'ViewHelper' + ) )); } - - } diff --git a/application/forms/AddShowWhat.php b/application/forms/AddShowWhat.php index 599f5fdc4..7fafdb46e 100644 --- a/application/forms/AddShowWhat.php +++ b/application/forms/AddShowWhat.php @@ -14,13 +14,14 @@ class Application_Form_AddShowWhat extends Zend_Form_SubForm 'validators' => array('NotEmpty') )); - $nameInput = $this->getElement('add_show_name'); - - $nameInput->setDecorators(array(array('ViewScript', array( - 'viewScript' => 'form/add-show-block.phtml', - 'class' => 'block-display' - )))); - + // Add URL element + $this->addElement('text', 'add_show_url', array( + 'label' => 'Show URL:', + 'class' => 'input_text', + 'required' => false, + 'filters' => array('StringTrim'), + 'validators' => array('NotEmpty') + )); // Add the description element $this->addElement('textarea', 'add_show_description', array( diff --git a/application/forms/AddShowWhen.php b/application/forms/AddShowWhen.php index b6e6fa48a..295354c36 100644 --- a/application/forms/AddShowWhen.php +++ b/application/forms/AddShowWhen.php @@ -5,6 +5,10 @@ class Application_Form_AddShowWhen extends Zend_Form_SubForm public function init() { + + //$this->setDisableLoadDefaultDecorators(true); + //$this->removeDecorator('DtDdWrapper'); + // Add start date element $this->addElement('text', 'add_show_start_date', array( 'label' => 'Date Start:', diff --git a/application/models/Shows.php b/application/models/Shows.php index a1faadc07..959a6bf00 100644 --- a/application/models/Shows.php +++ b/application/models/Shows.php @@ -111,6 +111,7 @@ class Show { $show = new CcShow(); $show->setDbName($data['add_show_name']); $show->setDbDescription($data['add_show_description']); + $show->setDbUrl($data['add_show_url']); $show->setDbColor($data['add_show_color']); $show->setDbBackgroundColor($data['add_show_background_color']); $show->save(); @@ -174,20 +175,23 @@ class Show { } //adding rows to cc_show_rebroadcast - if($repeat_type != -1) { + if($data['add_show_record'] && $data['add_show_rebroadcast'] && $repeat_type != -1) { - for($i=1; $i<=1; $i++) { + for($i=1; $i<=5; $i++) { - $showRebroad = new CcShowRebroadcast(); - $showRebroad->setDbDayOffset($data['add_show_rebroadcast_date_'.$i]); - $showRebroad->setDbStartTime($data['add_show_start_time_'.$i]); - $showRebroad->setDbShowId($showId); - $showRebroad->save(); + if($data['add_show_rebroadcast_date_'.$i]) { + + $showRebroad = new CcShowRebroadcast(); + $showRebroad->setDbDayOffset($data['add_show_rebroadcast_date_'.$i]); + $showRebroad->setDbStartTime($data['add_show_rebroadcast_time_'.$i]); + $showRebroad->setDbShowId($showId); + $showRebroad->save(); + } } } - else { + else if($data['add_show_record'] && $data['add_show_rebroadcast'] && $repeat_type == -1){ - for($i=1; $i<=1; $i++) { + for($i=1; $i<=5; $i++) { if($data['add_show_rebroadcast_absolute_date_'.$i]) { @@ -229,7 +233,7 @@ class Show { if($onlyRecord) { $sql = $sql." WHERE (starts >= '{$start_timestamp}' AND starts < timestamp '{$start_timestamp}' + interval '2 hours')"; - $sql = $sql." AND (record = TRUE)"; + $sql = $sql." AND (record = 1)"; } else { @@ -510,7 +514,7 @@ class ShowInstance { public function isRebroadcast() { $showInstance = CcShowInstancesQuery::create()->findPK($this->_instanceId); - return $showInstance->getDbRebroadcast(); + return $showInstance->getDbOriginalShow(); } public function isRecorded() { @@ -586,6 +590,16 @@ class ShowInstance { if(count($overlap) > 0) { return "Should not overlap shows"; } + + $rebroadcast = $this->isRebroadcast(); + if($rebroadcast) { + $sql = "SELECT timestamp '{$new_starts}' < (SELECT starts FROM cc_show_instances WHERE id = {$rebroadcast})"; + $isBeforeRecordedOriginal = $CC_DBC->GetOne($sql); + + if($isBeforeRecordedOriginal === 't'){ + return "Cannot move a rebroadcast show before its original"; + } + } $this->moveScheduledShowContent($deltaDay, $hours, $mins); $this->setShowStart($new_starts); diff --git a/application/models/airtime/map/CcShowTableMap.php b/application/models/airtime/map/CcShowTableMap.php index c9db01d0b..6d466e7a2 100644 --- a/application/models/airtime/map/CcShowTableMap.php +++ b/application/models/airtime/map/CcShowTableMap.php @@ -40,6 +40,7 @@ class CcShowTableMap extends TableMap { // columns $this->addPrimaryKey('ID', 'DbId', 'INTEGER', true, null, null); $this->addColumn('NAME', 'DbName', 'VARCHAR', true, 255, ''); + $this->addColumn('URL', 'DbUrl', 'VARCHAR', false, 255, ''); $this->addColumn('DESCRIPTION', 'DbDescription', 'VARCHAR', false, 512, null); $this->addColumn('COLOR', 'DbColor', 'VARCHAR', false, 6, null); $this->addColumn('BACKGROUND_COLOR', 'DbBackgroundColor', 'VARCHAR', false, 6, null); diff --git a/application/models/airtime/om/BaseCcShow.php b/application/models/airtime/om/BaseCcShow.php index d6c57cac6..7c1ec043d 100644 --- a/application/models/airtime/om/BaseCcShow.php +++ b/application/models/airtime/om/BaseCcShow.php @@ -37,6 +37,13 @@ abstract class BaseCcShow extends BaseObject implements Persistent */ protected $name; + /** + * The value for the url field. + * Note: this column has a database default value of: '' + * @var string + */ + protected $url; + /** * The value for the description field. * @var string @@ -98,6 +105,7 @@ abstract class BaseCcShow extends BaseObject implements Persistent public function applyDefaultValues() { $this->name = ''; + $this->url = ''; } /** @@ -130,6 +138,16 @@ abstract class BaseCcShow extends BaseObject implements Persistent return $this->name; } + /** + * Get the [url] column value. + * + * @return string + */ + public function getDbUrl() + { + return $this->url; + } + /** * Get the [description] column value. * @@ -200,6 +218,26 @@ abstract class BaseCcShow extends BaseObject implements Persistent return $this; } // setDbName() + /** + * Set the value of [url] column. + * + * @param string $v new value + * @return CcShow The current object (for fluent API support) + */ + public function setDbUrl($v) + { + if ($v !== null) { + $v = (string) $v; + } + + if ($this->url !== $v || $this->isNew()) { + $this->url = $v; + $this->modifiedColumns[] = CcShowPeer::URL; + } + + return $this; + } // setDbUrl() + /** * Set the value of [description] column. * @@ -274,6 +312,10 @@ abstract class BaseCcShow extends BaseObject implements Persistent return false; } + if ($this->url !== '') { + return false; + } + // otherwise, everything was equal, so return TRUE return true; } // hasOnlyDefaultValues() @@ -298,9 +340,10 @@ abstract class BaseCcShow extends BaseObject implements Persistent $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; $this->name = ($row[$startcol + 1] !== null) ? (string) $row[$startcol + 1] : null; - $this->description = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null; - $this->color = ($row[$startcol + 3] !== null) ? (string) $row[$startcol + 3] : null; - $this->background_color = ($row[$startcol + 4] !== null) ? (string) $row[$startcol + 4] : null; + $this->url = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null; + $this->description = ($row[$startcol + 3] !== null) ? (string) $row[$startcol + 3] : null; + $this->color = ($row[$startcol + 4] !== null) ? (string) $row[$startcol + 4] : null; + $this->background_color = ($row[$startcol + 5] !== null) ? (string) $row[$startcol + 5] : null; $this->resetModified(); $this->setNew(false); @@ -309,7 +352,7 @@ abstract class BaseCcShow extends BaseObject implements Persistent $this->ensureConsistency(); } - return $startcol + 5; // 5 = CcShowPeer::NUM_COLUMNS - CcShowPeer::NUM_LAZY_LOAD_COLUMNS). + return $startcol + 6; // 6 = CcShowPeer::NUM_COLUMNS - CcShowPeer::NUM_LAZY_LOAD_COLUMNS). } catch (Exception $e) { throw new PropelException("Error populating CcShow object", $e); @@ -687,12 +730,15 @@ abstract class BaseCcShow extends BaseObject implements Persistent return $this->getDbName(); break; case 2: - return $this->getDbDescription(); + return $this->getDbUrl(); break; case 3: - return $this->getDbColor(); + return $this->getDbDescription(); break; case 4: + return $this->getDbColor(); + break; + case 5: return $this->getDbBackgroundColor(); break; default: @@ -720,9 +766,10 @@ abstract class BaseCcShow extends BaseObject implements Persistent $result = array( $keys[0] => $this->getDbId(), $keys[1] => $this->getDbName(), - $keys[2] => $this->getDbDescription(), - $keys[3] => $this->getDbColor(), - $keys[4] => $this->getDbBackgroundColor(), + $keys[2] => $this->getDbUrl(), + $keys[3] => $this->getDbDescription(), + $keys[4] => $this->getDbColor(), + $keys[5] => $this->getDbBackgroundColor(), ); return $result; } @@ -761,12 +808,15 @@ abstract class BaseCcShow extends BaseObject implements Persistent $this->setDbName($value); break; case 2: - $this->setDbDescription($value); + $this->setDbUrl($value); break; case 3: - $this->setDbColor($value); + $this->setDbDescription($value); break; case 4: + $this->setDbColor($value); + break; + case 5: $this->setDbBackgroundColor($value); break; } // switch() @@ -795,9 +845,10 @@ abstract class BaseCcShow extends BaseObject implements Persistent if (array_key_exists($keys[0], $arr)) $this->setDbId($arr[$keys[0]]); if (array_key_exists($keys[1], $arr)) $this->setDbName($arr[$keys[1]]); - if (array_key_exists($keys[2], $arr)) $this->setDbDescription($arr[$keys[2]]); - if (array_key_exists($keys[3], $arr)) $this->setDbColor($arr[$keys[3]]); - if (array_key_exists($keys[4], $arr)) $this->setDbBackgroundColor($arr[$keys[4]]); + if (array_key_exists($keys[2], $arr)) $this->setDbUrl($arr[$keys[2]]); + if (array_key_exists($keys[3], $arr)) $this->setDbDescription($arr[$keys[3]]); + if (array_key_exists($keys[4], $arr)) $this->setDbColor($arr[$keys[4]]); + if (array_key_exists($keys[5], $arr)) $this->setDbBackgroundColor($arr[$keys[5]]); } /** @@ -811,6 +862,7 @@ abstract class BaseCcShow extends BaseObject implements Persistent if ($this->isColumnModified(CcShowPeer::ID)) $criteria->add(CcShowPeer::ID, $this->id); if ($this->isColumnModified(CcShowPeer::NAME)) $criteria->add(CcShowPeer::NAME, $this->name); + if ($this->isColumnModified(CcShowPeer::URL)) $criteria->add(CcShowPeer::URL, $this->url); if ($this->isColumnModified(CcShowPeer::DESCRIPTION)) $criteria->add(CcShowPeer::DESCRIPTION, $this->description); if ($this->isColumnModified(CcShowPeer::COLOR)) $criteria->add(CcShowPeer::COLOR, $this->color); if ($this->isColumnModified(CcShowPeer::BACKGROUND_COLOR)) $criteria->add(CcShowPeer::BACKGROUND_COLOR, $this->background_color); @@ -876,6 +928,7 @@ abstract class BaseCcShow extends BaseObject implements Persistent public function copyInto($copyObj, $deepCopy = false) { $copyObj->setDbName($this->name); + $copyObj->setDbUrl($this->url); $copyObj->setDbDescription($this->description); $copyObj->setDbColor($this->color); $copyObj->setDbBackgroundColor($this->background_color); @@ -1472,6 +1525,7 @@ abstract class BaseCcShow extends BaseObject implements Persistent { $this->id = null; $this->name = null; + $this->url = null; $this->description = null; $this->color = null; $this->background_color = null; diff --git a/application/models/airtime/om/BaseCcShowPeer.php b/application/models/airtime/om/BaseCcShowPeer.php index e883cb5ec..15426809c 100644 --- a/application/models/airtime/om/BaseCcShowPeer.php +++ b/application/models/airtime/om/BaseCcShowPeer.php @@ -26,7 +26,7 @@ abstract class BaseCcShowPeer { const TM_CLASS = 'CcShowTableMap'; /** The total number of columns. */ - const NUM_COLUMNS = 5; + const NUM_COLUMNS = 6; /** The number of lazy-loaded columns. */ const NUM_LAZY_LOAD_COLUMNS = 0; @@ -37,6 +37,9 @@ abstract class BaseCcShowPeer { /** the column name for the NAME field */ const NAME = 'cc_show.NAME'; + /** the column name for the URL field */ + const URL = 'cc_show.URL'; + /** the column name for the DESCRIPTION field */ const DESCRIPTION = 'cc_show.DESCRIPTION'; @@ -62,12 +65,12 @@ abstract class BaseCcShowPeer { * e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id' */ private static $fieldNames = array ( - BasePeer::TYPE_PHPNAME => array ('DbId', 'DbName', 'DbDescription', 'DbColor', 'DbBackgroundColor', ), - BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbName', 'dbDescription', 'dbColor', 'dbBackgroundColor', ), - BasePeer::TYPE_COLNAME => array (self::ID, self::NAME, self::DESCRIPTION, self::COLOR, self::BACKGROUND_COLOR, ), - BasePeer::TYPE_RAW_COLNAME => array ('ID', 'NAME', 'DESCRIPTION', 'COLOR', 'BACKGROUND_COLOR', ), - BasePeer::TYPE_FIELDNAME => array ('id', 'name', 'description', 'color', 'background_color', ), - BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, ) + BasePeer::TYPE_PHPNAME => array ('DbId', 'DbName', 'DbUrl', 'DbDescription', 'DbColor', 'DbBackgroundColor', ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbName', 'dbUrl', 'dbDescription', 'dbColor', 'dbBackgroundColor', ), + BasePeer::TYPE_COLNAME => array (self::ID, self::NAME, self::URL, self::DESCRIPTION, self::COLOR, self::BACKGROUND_COLOR, ), + BasePeer::TYPE_RAW_COLNAME => array ('ID', 'NAME', 'URL', 'DESCRIPTION', 'COLOR', 'BACKGROUND_COLOR', ), + BasePeer::TYPE_FIELDNAME => array ('id', 'name', 'url', 'description', 'color', 'background_color', ), + BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, ) ); /** @@ -77,12 +80,12 @@ abstract class BaseCcShowPeer { * e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 */ private static $fieldKeys = array ( - BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbName' => 1, 'DbDescription' => 2, 'DbColor' => 3, 'DbBackgroundColor' => 4, ), - BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbName' => 1, 'dbDescription' => 2, 'dbColor' => 3, 'dbBackgroundColor' => 4, ), - BasePeer::TYPE_COLNAME => array (self::ID => 0, self::NAME => 1, self::DESCRIPTION => 2, self::COLOR => 3, self::BACKGROUND_COLOR => 4, ), - BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'NAME' => 1, 'DESCRIPTION' => 2, 'COLOR' => 3, 'BACKGROUND_COLOR' => 4, ), - BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'name' => 1, 'description' => 2, 'color' => 3, 'background_color' => 4, ), - BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, ) + BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbName' => 1, 'DbUrl' => 2, 'DbDescription' => 3, 'DbColor' => 4, 'DbBackgroundColor' => 5, ), + BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbName' => 1, 'dbUrl' => 2, 'dbDescription' => 3, 'dbColor' => 4, 'dbBackgroundColor' => 5, ), + BasePeer::TYPE_COLNAME => array (self::ID => 0, self::NAME => 1, self::URL => 2, self::DESCRIPTION => 3, self::COLOR => 4, self::BACKGROUND_COLOR => 5, ), + BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'NAME' => 1, 'URL' => 2, 'DESCRIPTION' => 3, 'COLOR' => 4, 'BACKGROUND_COLOR' => 5, ), + BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'name' => 1, 'url' => 2, 'description' => 3, 'color' => 4, 'background_color' => 5, ), + BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, ) ); /** @@ -156,12 +159,14 @@ abstract class BaseCcShowPeer { if (null === $alias) { $criteria->addSelectColumn(CcShowPeer::ID); $criteria->addSelectColumn(CcShowPeer::NAME); + $criteria->addSelectColumn(CcShowPeer::URL); $criteria->addSelectColumn(CcShowPeer::DESCRIPTION); $criteria->addSelectColumn(CcShowPeer::COLOR); $criteria->addSelectColumn(CcShowPeer::BACKGROUND_COLOR); } else { $criteria->addSelectColumn($alias . '.ID'); $criteria->addSelectColumn($alias . '.NAME'); + $criteria->addSelectColumn($alias . '.URL'); $criteria->addSelectColumn($alias . '.DESCRIPTION'); $criteria->addSelectColumn($alias . '.COLOR'); $criteria->addSelectColumn($alias . '.BACKGROUND_COLOR'); diff --git a/application/models/airtime/om/BaseCcShowQuery.php b/application/models/airtime/om/BaseCcShowQuery.php index ea2e416df..27f3ab381 100644 --- a/application/models/airtime/om/BaseCcShowQuery.php +++ b/application/models/airtime/om/BaseCcShowQuery.php @@ -8,12 +8,14 @@ * * @method CcShowQuery orderByDbId($order = Criteria::ASC) Order by the id column * @method CcShowQuery orderByDbName($order = Criteria::ASC) Order by the name column + * @method CcShowQuery orderByDbUrl($order = Criteria::ASC) Order by the url column * @method CcShowQuery orderByDbDescription($order = Criteria::ASC) Order by the description column * @method CcShowQuery orderByDbColor($order = Criteria::ASC) Order by the color column * @method CcShowQuery orderByDbBackgroundColor($order = Criteria::ASC) Order by the background_color column * * @method CcShowQuery groupByDbId() Group by the id column * @method CcShowQuery groupByDbName() Group by the name column + * @method CcShowQuery groupByDbUrl() Group by the url column * @method CcShowQuery groupByDbDescription() Group by the description column * @method CcShowQuery groupByDbColor() Group by the color column * @method CcShowQuery groupByDbBackgroundColor() Group by the background_color column @@ -43,12 +45,14 @@ * * @method CcShow findOneByDbId(int $id) Return the first CcShow filtered by the id column * @method CcShow findOneByDbName(string $name) Return the first CcShow filtered by the name column + * @method CcShow findOneByDbUrl(string $url) Return the first CcShow filtered by the url column * @method CcShow findOneByDbDescription(string $description) Return the first CcShow filtered by the description column * @method CcShow findOneByDbColor(string $color) Return the first CcShow filtered by the color column * @method CcShow findOneByDbBackgroundColor(string $background_color) Return the first CcShow filtered by the background_color column * * @method array findByDbId(int $id) Return CcShow objects filtered by the id column * @method array findByDbName(string $name) Return CcShow objects filtered by the name column + * @method array findByDbUrl(string $url) Return CcShow objects filtered by the url column * @method array findByDbDescription(string $description) Return CcShow objects filtered by the description column * @method array findByDbColor(string $color) Return CcShow objects filtered by the color column * @method array findByDbBackgroundColor(string $background_color) Return CcShow objects filtered by the background_color column @@ -200,6 +204,28 @@ abstract class BaseCcShowQuery extends ModelCriteria return $this->addUsingAlias(CcShowPeer::NAME, $dbName, $comparison); } + /** + * Filter the query on the url column + * + * @param string $dbUrl The value to use as filter. + * Accepts wildcards (* and % trigger a LIKE) + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return CcShowQuery The current query, for fluid interface + */ + public function filterByDbUrl($dbUrl = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($dbUrl)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $dbUrl)) { + $dbUrl = str_replace('*', '%', $dbUrl); + $comparison = Criteria::LIKE; + } + } + return $this->addUsingAlias(CcShowPeer::URL, $dbUrl, $comparison); + } + /** * Filter the query on the description column * diff --git a/application/views/scripts/form/add-show-rebroadcast-absolute.phtml b/application/views/scripts/form/add-show-rebroadcast-absolute.phtml new file mode 100644 index 000000000..0fcb9a0dc --- /dev/null +++ b/application/views/scripts/form/add-show-rebroadcast-absolute.phtml @@ -0,0 +1,21 @@ +
+
+
+ +
+
+
    + +
  • + element->getElement('add_show_rebroadcast_absolute_date_'.$i) ?> + @ + element->getElement('add_show_rebroadcast_absolute_time_'.$i) ?> + element->getElement('add_show_rebroadcast_absolute_time_'.$i)->hasErrors()) : ?> + element->getElement('add_show_rebroadcast_absolute_time_'.$i)->getMessages()); ?> + +
  • + +
+
+
+
diff --git a/application/views/scripts/form/add-show-rebroadcast.phtml b/application/views/scripts/form/add-show-rebroadcast.phtml new file mode 100644 index 000000000..a698b3bac --- /dev/null +++ b/application/views/scripts/form/add-show-rebroadcast.phtml @@ -0,0 +1,18 @@ +
+
+
+ +
+
+
    + +
  • + element->getElement('add_show_rebroadcast_date_'.$i) ?> + @ + element->getElement('add_show_rebroadcast_time_'.$i) ?> +
  • + +
+
+
+
diff --git a/application/views/scripts/form/add-show-what.phtml b/application/views/scripts/form/add-show-what.phtml new file mode 100644 index 000000000..e69de29bb diff --git a/build/schema.xml b/build/schema.xml index 1e32c58fa..36941da37 100644 --- a/build/schema.xml +++ b/build/schema.xml @@ -124,6 +124,7 @@ + diff --git a/build/sql/schema.sql b/build/sql/schema.sql index 9eb57a4e0..ee2f9b109 100644 --- a/build/sql/schema.sql +++ b/build/sql/schema.sql @@ -162,6 +162,7 @@ CREATE TABLE "cc_show" ( "id" serial NOT NULL, "name" VARCHAR(255) default '' NOT NULL, + "url" VARCHAR(255) default '', "description" VARCHAR(512), "color" VARCHAR(6), "background_color" VARCHAR(6), diff --git a/library/ecasound/AUTHORS b/library/ecasound/AUTHORS deleted file mode 100644 index 44bef8fda..000000000 --- a/library/ecasound/AUTHORS +++ /dev/null @@ -1,278 +0,0 @@ -======================================================================= -*** Ecasound - AUTHORS file *** -======================================================================= - -Note about author information in version control (git) ------------------------------------------------------- - -For recent development history (since August 2008), the Ecasound git -repository (see: - - http://ecasound.git.sourceforge.net/git/gitweb.cgi?p=ecasound ) -... contains accurate author information. For earlier commits, the git -repository does not provide an accurate view, as all of these -pre-2008/Aug patches were committed by the release manager. However, -even in the older commits, the original author (if different from -commit author), is identified in the patch description (e.g. "Patch -from.." or "Patch by.."). - -Main author, coordination of development -======================================== - -Kai Vehmanen [kaiv] (kvehmanen -at- eca -dot- cx) - -New functionality, refactoring old code -======================================= - -Allie, Stuart [allies] (stuart -dot- allie -at- hydro -dot- com -dot- au) - Added EIAM command set for controller parameters (ctrlp-*), bugfixes. -Bowman, Brad [bowman] - Perl ECI binding, bug hunting. -Chappell, Jesse [jesse] (jesse -at- essej -dot- net) - Improvements to libsndfile support, various bugfixes. -Coker, Rob [rcs] (rcs -at- birch -dot- net) - Pulse gate (-eemp) code. -Cunningham, Jeffrey [jeffrey] (jeffrey -at- cunningham -dot- net) - Various improvements to ecasignalview. -Dobson, Julian [juliand] - Improved mechanism for mp3 header parsing. -Ewe, Michael [mewe] - Signal handling bugfixes to ecasignalview and the ECI C impl. -Fendt, Stefan (stefan -at- lionfish -dot- ping -dot- de) - Original code for reverb (-ete) and RC-lowpass filter (-ef4). -Hall, Jeremy [jhall] (jhall -at- maoz -dot- com) - Extensive testing, ALSA 0.6.x support, many design ideas. -Halttunen, Janne [jhalttun] - Helped in developing the EIAM, and specifically the - new ECI concept. Wrote the native Python ECI implementation. -Hamara, Arto [artham] (artham -at- utu -dot- fi) - Ecasound logo(s), preset params, general linear - envelope support, various bug fixes! -Jeanneau, Aymeric [ajeanneau] (ajeanneau -at- cvf -dot- fr) - Reentrant libecasoundc (C ECI) implementation. -Lang, Mario [mlang] - Ecasound.el, the ecasound emacs module. -Leake, Tony [tonyleake] - PHP ECI extension. -Lees, Andrew [andrewl] - Reopen functionality to threshold gate (-ge). -Linson, Adam [alinson] - Adding the cop-get command -Lopez-Cabanillas, Pedro [pedrolc] (pedro -dot- lopez-cabanillas -at- gmail -dot -com) - ALSA sequencer interface support. -Massy, S. [smassy] - Ecalength utility, extensive testing and debugging. -Poelstra, Remco [rjpoelstra] - ECI C API bug hunting. -Polton, Richard [rpolton] - The 250k gcc3.x patch. :) -Tiedemann, Eric S. [est] - Wrote the eci.py interface. -Uekawa, Junichi [juekawa] - Maintainer for Ecasound's Debian package. Improvements to build - system and numerous bugfixes. -Weil, Jan [janweil] (Jan -dot- Weil -at- web -dot- de) - Wrote the Ruby ECI implementation. - -Contributions -============== - -Anarcat [anarcat] - Work on Ecasound's FreeBSD port. -Amundsen, Eric [amundsen] - Bug hunting. -Beaupre, Antoine [beaupran] - Patches for FreeBSD compatibility. -Berndtgen, Manfred [mb] - Bugfix to ecasignalview. -Bolton, Sean [smbolton] - Patches for Mac OS X compability. -Brulebois, Cyril [cyrilbrulebois] - Patches for issues reported by GCC 3.4. -Campbell, Ross [rcampbel] - Tips concerning Solaris compatibility. -Carmack, Michael [karmak] - Tips concerning Solaris. -Claassen, Julien [julien] - Ideas for interface development, marketing work. -Darilek, Nolan [nolan_d] - Ogg vorbis fixes. -Dye, Rob [rob] - OSS compilation fixes. -Eure, Ian [ieure] - Work on the Ecasound debian packages. -Fischer, Hans-Georg [hgfischer] - Bug fix that solved edi-1. -Grabner Markus [grabner] - Updated RPM spec-file for x86_64 platforms. -Groffen, Fabian [grobian] (grobian -at- gentoo -dot- org) - OS X build fixes. -Head, Chris [hawk777] - Patches fixing ecasignalview build errors. -Heller, Aaron [aheller] - Fixes to big-endian support. -Harris, Steve [swharris] - gcc 2.96 (RH7.0) testing and fixes. -Hughes, Jeremy [jedahu] - Bugfix for JACK port muting -Lavallée, Marc - Rpm-spec for Mandrake. -Merino, Pedro Antonio Fructuoso [pfructuoso] - Various bugfix patches. -Morris, Steve [smorris] - Ewf-handling fixes. -O'Toole David [dto] - Patches to ecasound.el. -Petit, Bertrand - Helped with POSIX-compatibility issues. -Poulton, Ron [thok] - Helped to track down the mysterious chain-bug. -Rzewnicki, Eric Dantan [ericdr] - Lots of typo fixes and corrections to Ecasound docs. -Sacré, Dominic [dsacre] - Fixes to 'jack_generic'. -Sassmannshausen, Ruediger [rsassman] - Mp3 filename parsing fixes. -Shchepin, Alexey [alexey] - Bugfix to time crop gate operator (-gc). -Sijrier, Remon [remon] - Fix to a bug in setting -eca initial values. -Smith, Richard A. - Helped in solving the "gcc 2.95" bug. -Sousa, Rui - OSS bug fixes. -Stradling, Rob [robstr] - MIDI-MMC bug fixes. -Tkachenko, Vadim - - Helped to get started with autoconf. -Yee-king, Matt [yeeking] - Helped debugging big-endian troubles on PowerPC. -Westbrook, Tim [iondiode] - Autoconf 2.5x fixes. -Wever, Mark de [koraq] - Bugs in libecasoundc-config. -Wróblewski, Artur [wrobell] - PLD-Linux RPM-specfile, readline and destdir patches. - -Contributions - Patches, Bug Hunting and Feature Proposals -========================================================== - -Starting from 2.2.1 release (in Feb/2003), contributors have -been listed in the release notes. For all past releases notes, -see: - - - http://eca.cx/relnotes/ - -Below is a list of all contributors to 2.2.1 and beyond, collected -from the published releases notes, and listed in the order they appear -in the release notes: - -Junichi Uekawa -Kai Vehmanen -Janne Halttunen -Antti Boman -William Goldsmith -Oliver Thuns -Mario Lang -Michael Hellwig -Janno Liivak -Raoul Megelas -Jan Stary -Daniel Kruszyna -Jeremy Hall -Vegard Lima -Carsten Bauer -Ismail Donmez -Lars Henrik Mai -Stephan Niemz -Al Oemens -Tommi Uimonen -Hirendra Hindocha -Stefan Bundt -Dave Phillips -Jan Weil -Mark de Wever -Fernando Pablo Lopez-Lezcano -Michael Ewe -Eric Dantan Rzewnicki -Pierre Lorenzon -Jesse Chappell -Sean Bolton -Adam Linson -Paul Winkler -Didier Bellamy -Manfred Berndtgen -Stéphane Letz -Paul Marquardt -kito -at- gentoo-org -jcwjcw -at- qwest-net -Vitaly Belostotsky -Steve Harris -Tim Blechmann -Aaron Heller -Kamil Wencel -Julien Claassen -Erik de Castro Lopo -Frederik Eaton -Philippe Schelté aka Dubphil -Julian Dobson -Alexey Shchepin -Brad Fuller -Peter Lutek -Stuart Allie -Jeffrey Cunningham -Kyle Kirkland -Olivier Guilyardi -Jack O'Quin -Pierre Lorenzon -Pedro Lopez-Cabanillas -Pedro Antonio Fructuoso Merino -Arieh Skliarouk -Tom Rosenfeld -Valery -at- vslash -dot com -Markus Grabner -Michael Willoughby -Rocco -Dave Serls -Stephen Stocker -Aaron Heller -Chris Head -Zrajm Akfohg -Florian Ladstaedter -Koen -Kurt Konolige -Brad Bowman -Joel Roth -Martin Michlmayr -Joe Planisky -Rémi Rouaud -Etienne Deleflie -Klaus Schulz -Keith Creasy -Cyril Brulebois -Fabian Groffen -Andrew Lees -Sergei Steshenko -Alexis Ballier -Avuton Olrich -Dominic Sacré -Erik Nomitch - -Code from other projects -======================== - -Davis Paul - pthread_mutex_spinlock() from libpbd. -Dyson, John S. - The original advanced compressor (-eca) code. -Furse, Richard W.E. - Sine tone generation code from Computer Music Toolkit - LADSPA plugin set is used in AUDIO_IO_TONE. -Harris, Steve and Tim Blechmann - Denormal handling code from swh-plugins package. -Laydier, Antoine [SMF] - Mp3 header parsing (layer.cpp). - - -Note! The developer tags (for example [kaiv] is one) are used - throughout Ecasound docs: NEWS, TODO-list, edi-list.txt, - ChangeLog files and so on. diff --git a/library/ecasound/BUGS b/library/ecasound/BUGS deleted file mode 100644 index 60c5f6fb1..000000000 --- a/library/ecasound/BUGS +++ /dev/null @@ -1,58 +0,0 @@ ------------------------------------------------------------------------ -*** Ecasound - Known Bugs/Features *** ------------------------------------------------------------------------ - -Reporting bugs ------------------------------------------------------------------------ - -Please send your bug reports to the ecasound-list mailing list (see -README or http://eca.cx/ecasound/mlists.php for list contact information). - -If the bug (or feature request) cannot be solved immediately (or -getting a response takes longer than you care to wait for), feel free -to add the item to the sourceforge.net tracker (see below). It is -also a good idea to send a note to the list that you have added -a new item as the sourceforge.net tracker is not monitored by -all developers. - -To get the best results, see for example Simon Tatham's excellent -article on 'How to Report Bugs Effectively' (if you are in a hurry, -skip to the summary at the end of the article :)): - - http://www.chiark.greenend.org.uk/~sgtatham/bugs.html - -Ecasound bug tracker at sourceforge.net ------------------------------------------------------------------------ - -Ecasound has used the sourceforge.net bug tracker since Jan/2006: - - https://sourceforge.net/tracker/?group_id=4605&atid=104605 - -This tracker is used to monitor longstanding bugs and -feature/improvement items. It replaces the old Ecasound Development -Item practise (items marked with 'edi-x' tags) that was used -between 2002-08. - -Known Bugs and Features (not in other issue trackers) ------------------------------------------------------------------------ - -In addition to the below items, some known missing features have been -listed in the 'TODO' file (in same directory as this file). - -- commas in filenames given as arguments to '-i' and '-o' options need - to be either escaped with backslashes (-i foo\\,bar.wav) or quoted - with doublequotes (-i "foo,bar.wav") -- certain combinations of glibc and linux-2.6 kernels cause the 'cs-edit' - EIAM command to fail (ecasound exits back to shell after the command); - as a workaround, set the LD_ASSUME_KERNEL=2.2.5 environment variable - before running ecasound; see http://people.redhat.com/drepper/assumekernel.html - for background information on LD_ASSUME_KERNEL -- ecasound cannot parse ogg and flac headers so correct audio - format parameters must be set manually with ecasound's '-f' option -- pitch shifter (-ei) doesn't work with all real-time audio object - types (for instance JACK) -- ecasound crashes if /dev/midi points to an invalid rawmidi device -- MIDI-ops like '-km' cannot be used in presets -- controller sources and big buffersizes - - distortion results for example if sine-oscillators - are used with big buffersize (-b:X) settings diff --git a/library/ecasound/COPYING b/library/ecasound/COPYING deleted file mode 100644 index 9b90a3ca2..000000000 --- a/library/ecasound/COPYING +++ /dev/null @@ -1,18 +0,0 @@ -======================================================================= -*** Ecasound - Licensing/distribution policy *** -======================================================================= - -Copyright (C) 1997-2006 Kai Vehmanen and others (see ecasound/AUTHORS). - -Ecasound is freely distributable according to the terms of the -GNU General Public License (see the file 'COPYING.GPL'). - -This program is distributed without any warranty. See the file -'COPYING.GPL' for details. - -As an exception to the above, the C, C++ and python implementations -of the Ecasound Control Interface (ECI) are licensed under the LGPL -(see the file 'COPYING.LGPL'). This allows writing ECI applications -that are not licensed under GPL. - -======================================================================= diff --git a/library/ecasound/COPYING.GPL b/library/ecasound/COPYING.GPL deleted file mode 100644 index d60c31a97..000000000 --- a/library/ecasound/COPYING.GPL +++ /dev/null @@ -1,340 +0,0 @@ - GNU GENERAL PUBLIC LICENSE - Version 2, June 1991 - - Copyright (C) 1989, 1991 Free Software Foundation, Inc. - 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -License is intended to guarantee your freedom to share and change free -software--to make sure the software is free for all its users. This -General Public License applies to most of the Free Software -Foundation's software and to any other program whose authors commit to -using it. (Some other Free Software Foundation software is covered by -the GNU Library General Public License instead.) You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -this service if you wish), that you receive source code or can get it -if you want it, that you can change the software or use pieces of it -in new free programs; and that you know you can do these things. - - To protect your rights, we need to make restrictions that forbid -anyone to deny you these rights or to ask you to surrender the rights. -These restrictions translate to certain responsibilities for you if you -distribute copies of the software, or if you modify it. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must give the recipients all the rights that -you have. You must make sure that they, too, receive or can get the -source code. And you must show them these terms so they know their -rights. - - We protect your rights with two steps: (1) copyright the software, and -(2) offer you this license which gives you legal permission to copy, -distribute and/or modify the software. - - Also, for each author's protection and ours, we want to make certain -that everyone understands that there is no warranty for this free -software. If the software is modified by someone else and passed on, we -want its recipients to know that what they have is not the original, so -that any problems introduced by others will not reflect on the original -authors' reputations. - - Finally, any free program is threatened constantly by software -patents. We wish to avoid the danger that redistributors of a free -program will individually obtain patent licenses, in effect making the -program proprietary. To prevent this, we have made it clear that any -patent must be licensed for everyone's free use or not licensed at all. - - The precise terms and conditions for copying, distribution and -modification follow. - - GNU GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License applies to any program or other work which contains -a notice placed by the copyright holder saying it may be distributed -under the terms of this General Public License. The "Program", below, -refers to any such program or work, and a "work based on the Program" -means either the Program or any derivative work under copyright law: -that is to say, a work containing the Program or a portion of it, -either verbatim or with modifications and/or translated into another -language. (Hereinafter, translation is included without limitation in -the term "modification".) Each licensee is addressed as "you". - -Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running the Program is not restricted, and the output from the Program -is covered only if its contents constitute a work based on the -Program (independent of having been made by running the Program). -Whether that is true depends on what the Program does. - - 1. You may copy and distribute verbatim copies of the Program's -source code as you receive it, in any medium, provided that you -conspicuously and appropriately publish on each copy an appropriate -copyright notice and disclaimer of warranty; keep intact all the -notices that refer to this License and to the absence of any warranty; -and give any other recipients of the Program a copy of this License -along with the Program. - -You may charge a fee for the physical act of transferring a copy, and -you may at your option offer warranty protection in exchange for a fee. - - 2. You may modify your copy or copies of the Program or any portion -of it, thus forming a work based on the Program, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) You must cause the modified files to carry prominent notices - stating that you changed the files and the date of any change. - - b) You must cause any work that you distribute or publish, that in - whole or in part contains or is derived from the Program or any - part thereof, to be licensed as a whole at no charge to all third - parties under the terms of this License. - - c) If the modified program normally reads commands interactively - when run, you must cause it, when started running for such - interactive use in the most ordinary way, to print or display an - announcement including an appropriate copyright notice and a - notice that there is no warranty (or else, saying that you provide - a warranty) and that users may redistribute the program under - these conditions, and telling the user how to view a copy of this - License. (Exception: if the Program itself is interactive but - does not normally print such an announcement, your work based on - the Program is not required to print an announcement.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Program, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Program, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Program. - -In addition, mere aggregation of another work not based on the Program -with the Program (or with a work based on the Program) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may copy and distribute the Program (or a work based on it, -under Section 2) in object code or executable form under the terms of -Sections 1 and 2 above provided that you also do one of the following: - - a) Accompany it with the complete corresponding machine-readable - source code, which must be distributed under the terms of Sections - 1 and 2 above on a medium customarily used for software interchange; or, - - b) Accompany it with a written offer, valid for at least three - years, to give any third party, for a charge no more than your - cost of physically performing source distribution, a complete - machine-readable copy of the corresponding source code, to be - distributed under the terms of Sections 1 and 2 above on a medium - customarily used for software interchange; or, - - c) Accompany it with the information you received as to the offer - to distribute corresponding source code. (This alternative is - allowed only for noncommercial distribution and only if you - received the program in object code or executable form with such - an offer, in accord with Subsection b above.) - -The source code for a work means the preferred form of the work for -making modifications to it. For an executable work, complete source -code means all the source code for all modules it contains, plus any -associated interface definition files, plus the scripts used to -control compilation and installation of the executable. However, as a -special exception, the source code distributed need not include -anything that is normally distributed (in either source or binary -form) with the major components (compiler, kernel, and so on) of the -operating system on which the executable runs, unless that component -itself accompanies the executable. - -If distribution of executable or object code is made by offering -access to copy from a designated place, then offering equivalent -access to copy the source code from the same place counts as -distribution of the source code, even though third parties are not -compelled to copy the source along with the object code. - - 4. You may not copy, modify, sublicense, or distribute the Program -except as expressly provided under this License. Any attempt -otherwise to copy, modify, sublicense or distribute the Program is -void, and will automatically terminate your rights under this License. -However, parties who have received copies, or rights, from you under -this License will not have their licenses terminated so long as such -parties remain in full compliance. - - 5. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Program or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Program (or any work based on the -Program), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Program or works based on it. - - 6. Each time you redistribute the Program (or any work based on the -Program), the recipient automatically receives a license from the -original licensor to copy, distribute or modify the Program subject to -these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties to -this License. - - 7. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Program at all. For example, if a patent -license would not permit royalty-free redistribution of the Program by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Program. - -If any portion of this section is held invalid or unenforceable under -any particular circumstance, the balance of the section is intended to -apply and the section as a whole is intended to apply in other -circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system, which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 8. If the distribution and/or use of the Program is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Program under this License -may add an explicit geographical distribution limitation excluding -those countries, so that distribution is permitted only in or among -countries not thus excluded. In such case, this License incorporates -the limitation as if written in the body of this License. - - 9. The Free Software Foundation may publish revised and/or new versions -of the General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - -Each version is given a distinguishing version number. If the Program -specifies a version number of this License which applies to it and "any -later version", you have the option of following the terms and conditions -either of that version or of any later version published by the Free -Software Foundation. If the Program does not specify a version number of -this License, you may choose any version ever published by the Free Software -Foundation. - - 10. If you wish to incorporate parts of the Program into other free -programs whose distribution conditions are different, write to the author -to ask for permission. For software which is copyrighted by the Free -Software Foundation, write to the Free Software Foundation; we sometimes -make exceptions for this. Our decision will be guided by the two goals -of preserving the free status of all derivatives of our free software and -of promoting the sharing and reuse of software generally. - - NO WARRANTY - - 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY -FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN -OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES -PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED -OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS -TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE -PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, -REPAIR OR CORRECTION. - - 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR -REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, -INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING -OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED -TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY -YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER -PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE -POSSIBILITY OF SUCH DAMAGES. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -convey the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - - -Also add information on how to contact you by electronic and paper mail. - -If the program is interactive, make it output a short notice like this -when it starts in an interactive mode: - - Gnomovision version 69, Copyright (C) year name of author - Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, the commands you use may -be called something other than `show w' and `show c'; they could even be -mouse-clicks or menu items--whatever suits your program. - -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the program, if -necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the program - `Gnomovision' (which makes passes at compilers) written by James Hacker. - - , 1 April 1989 - Ty Coon, President of Vice - -This General Public License does not permit incorporating your program into -proprietary programs. If your program is a subroutine library, you may -consider it more useful to permit linking proprietary applications with the -library. If this is what you want to do, use the GNU Library General -Public License instead of this License. diff --git a/library/ecasound/COPYING.LGPL b/library/ecasound/COPYING.LGPL deleted file mode 100644 index cfe59bcad..000000000 --- a/library/ecasound/COPYING.LGPL +++ /dev/null @@ -1,502 +0,0 @@ - GNU LESSER GENERAL PUBLIC LICENSE - Version 2.1, February 1999 - - Copyright (C) 1991, 1999 Free Software Foundation, Inc. - 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - -[This is the first released version of the Lesser GPL. It also counts - as the successor of the GNU Library Public License, version 2, hence - the version number 2.1.] - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -Licenses are intended to guarantee your freedom to share and change -free software--to make sure the software is free for all its users. - - This license, the Lesser General Public License, applies to some -specially designated software packages--typically libraries--of the -Free Software Foundation and other authors who decide to use it. You -can use it too, but we suggest you first think carefully about whether -this license or the ordinary General Public License is the better -strategy to use in any particular case, based on the explanations below. - - When we speak of free software, we are referring to freedom of use, -not price. Our General Public Licenses are designed to make sure that -you have the freedom to distribute copies of free software (and charge -for this service if you wish); that you receive source code or can get -it if you want it; that you can change the software and use pieces of -it in new free programs; and that you are informed that you can do -these things. - - To protect your rights, we need to make restrictions that forbid -distributors to deny you these rights or to ask you to surrender these -rights. These restrictions translate to certain responsibilities for -you if you distribute copies of the library or if you modify it. - - For example, if you distribute copies of the library, whether gratis -or for a fee, you must give the recipients all the rights that we gave -you. You must make sure that they, too, receive or can get the source -code. If you link other code with the library, you must provide -complete object files to the recipients, so that they can relink them -with the library after making changes to the library and recompiling -it. And you must show them these terms so they know their rights. - - We protect your rights with a two-step method: (1) we copyright the -library, and (2) we offer you this license, which gives you legal -permission to copy, distribute and/or modify the library. - - To protect each distributor, we want to make it very clear that -there is no warranty for the free library. Also, if the library is -modified by someone else and passed on, the recipients should know -that what they have is not the original version, so that the original -author's reputation will not be affected by problems that might be -introduced by others. - - Finally, software patents pose a constant threat to the existence of -any free program. We wish to make sure that a company cannot -effectively restrict the users of a free program by obtaining a -restrictive license from a patent holder. Therefore, we insist that -any patent license obtained for a version of the library must be -consistent with the full freedom of use specified in this license. - - Most GNU software, including some libraries, is covered by the -ordinary GNU General Public License. This license, the GNU Lesser -General Public License, applies to certain designated libraries, and -is quite different from the ordinary General Public License. We use -this license for certain libraries in order to permit linking those -libraries into non-free programs. - - When a program is linked with a library, whether statically or using -a shared library, the combination of the two is legally speaking a -combined work, a derivative of the original library. The ordinary -General Public License therefore permits such linking only if the -entire combination fits its criteria of freedom. The Lesser General -Public License permits more lax criteria for linking other code with -the library. - - We call this license the "Lesser" General Public License because it -does Less to protect the user's freedom than the ordinary General -Public License. It also provides other free software developers Less -of an advantage over competing non-free programs. These disadvantages -are the reason we use the ordinary General Public License for many -libraries. However, the Lesser license provides advantages in certain -special circumstances. - - For example, on rare occasions, there may be a special need to -encourage the widest possible use of a certain library, so that it becomes -a de-facto standard. To achieve this, non-free programs must be -allowed to use the library. A more frequent case is that a free -library does the same job as widely used non-free libraries. In this -case, there is little to gain by limiting the free library to free -software only, so we use the Lesser General Public License. - - In other cases, permission to use a particular library in non-free -programs enables a greater number of people to use a large body of -free software. For example, permission to use the GNU C Library in -non-free programs enables many more people to use the whole GNU -operating system, as well as its variant, the GNU/Linux operating -system. - - Although the Lesser General Public License is Less protective of the -users' freedom, it does ensure that the user of a program that is -linked with the Library has the freedom and the wherewithal to run -that program using a modified version of the Library. - - The precise terms and conditions for copying, distribution and -modification follow. Pay close attention to the difference between a -"work based on the library" and a "work that uses the library". The -former contains code derived from the library, whereas the latter must -be combined with the library in order to run. - - GNU LESSER GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License Agreement applies to any software library or other -program which contains a notice placed by the copyright holder or -other authorized party saying it may be distributed under the terms of -this Lesser General Public License (also called "this License"). -Each licensee is addressed as "you". - - A "library" means a collection of software functions and/or data -prepared so as to be conveniently linked with application programs -(which use some of those functions and data) to form executables. - - The "Library", below, refers to any such software library or work -which has been distributed under these terms. A "work based on the -Library" means either the Library or any derivative work under -copyright law: that is to say, a work containing the Library or a -portion of it, either verbatim or with modifications and/or translated -straightforwardly into another language. (Hereinafter, translation is -included without limitation in the term "modification".) - - "Source code" for a work means the preferred form of the work for -making modifications to it. For a library, complete source code means -all the source code for all modules it contains, plus any associated -interface definition files, plus the scripts used to control compilation -and installation of the library. - - Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running a program using the Library is not restricted, and output from -such a program is covered only if its contents constitute a work based -on the Library (independent of the use of the Library in a tool for -writing it). Whether that is true depends on what the Library does -and what the program that uses the Library does. - - 1. You may copy and distribute verbatim copies of the Library's -complete source code as you receive it, in any medium, provided that -you conspicuously and appropriately publish on each copy an -appropriate copyright notice and disclaimer of warranty; keep intact -all the notices that refer to this License and to the absence of any -warranty; and distribute a copy of this License along with the -Library. - - You may charge a fee for the physical act of transferring a copy, -and you may at your option offer warranty protection in exchange for a -fee. - - 2. You may modify your copy or copies of the Library or any portion -of it, thus forming a work based on the Library, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) The modified work must itself be a software library. - - b) You must cause the files modified to carry prominent notices - stating that you changed the files and the date of any change. - - c) You must cause the whole of the work to be licensed at no - charge to all third parties under the terms of this License. - - d) If a facility in the modified Library refers to a function or a - table of data to be supplied by an application program that uses - the facility, other than as an argument passed when the facility - is invoked, then you must make a good faith effort to ensure that, - in the event an application does not supply such function or - table, the facility still operates, and performs whatever part of - its purpose remains meaningful. - - (For example, a function in a library to compute square roots has - a purpose that is entirely well-defined independent of the - application. Therefore, Subsection 2d requires that any - application-supplied function or table used by this function must - be optional: if the application does not supply it, the square - root function must still compute square roots.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Library, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Library, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote -it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Library. - -In addition, mere aggregation of another work not based on the Library -with the Library (or with a work based on the Library) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may opt to apply the terms of the ordinary GNU General Public -License instead of this License to a given copy of the Library. To do -this, you must alter all the notices that refer to this License, so -that they refer to the ordinary GNU General Public License, version 2, -instead of to this License. (If a newer version than version 2 of the -ordinary GNU General Public License has appeared, then you can specify -that version instead if you wish.) Do not make any other change in -these notices. - - Once this change is made in a given copy, it is irreversible for -that copy, so the ordinary GNU General Public License applies to all -subsequent copies and derivative works made from that copy. - - This option is useful when you wish to copy part of the code of -the Library into a program that is not a library. - - 4. You may copy and distribute the Library (or a portion or -derivative of it, under Section 2) in object code or executable form -under the terms of Sections 1 and 2 above provided that you accompany -it with the complete corresponding machine-readable source code, which -must be distributed under the terms of Sections 1 and 2 above on a -medium customarily used for software interchange. - - If distribution of object code is made by offering access to copy -from a designated place, then offering equivalent access to copy the -source code from the same place satisfies the requirement to -distribute the source code, even though third parties are not -compelled to copy the source along with the object code. - - 5. A program that contains no derivative of any portion of the -Library, but is designed to work with the Library by being compiled or -linked with it, is called a "work that uses the Library". Such a -work, in isolation, is not a derivative work of the Library, and -therefore falls outside the scope of this License. - - However, linking a "work that uses the Library" with the Library -creates an executable that is a derivative of the Library (because it -contains portions of the Library), rather than a "work that uses the -library". The executable is therefore covered by this License. -Section 6 states terms for distribution of such executables. - - When a "work that uses the Library" uses material from a header file -that is part of the Library, the object code for the work may be a -derivative work of the Library even though the source code is not. -Whether this is true is especially significant if the work can be -linked without the Library, or if the work is itself a library. The -threshold for this to be true is not precisely defined by law. - - If such an object file uses only numerical parameters, data -structure layouts and accessors, and small macros and small inline -functions (ten lines or less in length), then the use of the object -file is unrestricted, regardless of whether it is legally a derivative -work. (Executables containing this object code plus portions of the -Library will still fall under Section 6.) - - Otherwise, if the work is a derivative of the Library, you may -distribute the object code for the work under the terms of Section 6. -Any executables containing that work also fall under Section 6, -whether or not they are linked directly with the Library itself. - - 6. As an exception to the Sections above, you may also combine or -link a "work that uses the Library" with the Library to produce a -work containing portions of the Library, and distribute that work -under terms of your choice, provided that the terms permit -modification of the work for the customer's own use and reverse -engineering for debugging such modifications. - - You must give prominent notice with each copy of the work that the -Library is used in it and that the Library and its use are covered by -this License. You must supply a copy of this License. If the work -during execution displays copyright notices, you must include the -copyright notice for the Library among them, as well as a reference -directing the user to the copy of this License. Also, you must do one -of these things: - - a) Accompany the work with the complete corresponding - machine-readable source code for the Library including whatever - changes were used in the work (which must be distributed under - Sections 1 and 2 above); and, if the work is an executable linked - with the Library, with the complete machine-readable "work that - uses the Library", as object code and/or source code, so that the - user can modify the Library and then relink to produce a modified - executable containing the modified Library. (It is understood - that the user who changes the contents of definitions files in the - Library will not necessarily be able to recompile the application - to use the modified definitions.) - - b) Use a suitable shared library mechanism for linking with the - Library. A suitable mechanism is one that (1) uses at run time a - copy of the library already present on the user's computer system, - rather than copying library functions into the executable, and (2) - will operate properly with a modified version of the library, if - the user installs one, as long as the modified version is - interface-compatible with the version that the work was made with. - - c) Accompany the work with a written offer, valid for at - least three years, to give the same user the materials - specified in Subsection 6a, above, for a charge no more - than the cost of performing this distribution. - - d) If distribution of the work is made by offering access to copy - from a designated place, offer equivalent access to copy the above - specified materials from the same place. - - e) Verify that the user has already received a copy of these - materials or that you have already sent this user a copy. - - For an executable, the required form of the "work that uses the -Library" must include any data and utility programs needed for -reproducing the executable from it. However, as a special exception, -the materials to be distributed need not include anything that is -normally distributed (in either source or binary form) with the major -components (compiler, kernel, and so on) of the operating system on -which the executable runs, unless that component itself accompanies -the executable. - - It may happen that this requirement contradicts the license -restrictions of other proprietary libraries that do not normally -accompany the operating system. Such a contradiction means you cannot -use both them and the Library together in an executable that you -distribute. - - 7. You may place library facilities that are a work based on the -Library side-by-side in a single library together with other library -facilities not covered by this License, and distribute such a combined -library, provided that the separate distribution of the work based on -the Library and of the other library facilities is otherwise -permitted, and provided that you do these two things: - - a) Accompany the combined library with a copy of the same work - based on the Library, uncombined with any other library - facilities. This must be distributed under the terms of the - Sections above. - - b) Give prominent notice with the combined library of the fact - that part of it is a work based on the Library, and explaining - where to find the accompanying uncombined form of the same work. - - 8. You may not copy, modify, sublicense, link with, or distribute -the Library except as expressly provided under this License. Any -attempt otherwise to copy, modify, sublicense, link with, or -distribute the Library is void, and will automatically terminate your -rights under this License. However, parties who have received copies, -or rights, from you under this License will not have their licenses -terminated so long as such parties remain in full compliance. - - 9. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Library or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Library (or any work based on the -Library), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Library or works based on it. - - 10. Each time you redistribute the Library (or any work based on the -Library), the recipient automatically receives a license from the -original licensor to copy, distribute, link with or modify the Library -subject to these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties with -this License. - - 11. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Library at all. For example, if a patent -license would not permit royalty-free redistribution of the Library by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Library. - -If any portion of this section is held invalid or unenforceable under any -particular circumstance, the balance of the section is intended to apply, -and the section as a whole is intended to apply in other circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 12. If the distribution and/or use of the Library is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Library under this License may add -an explicit geographical distribution limitation excluding those countries, -so that distribution is permitted only in or among countries not thus -excluded. In such case, this License incorporates the limitation as if -written in the body of this License. - - 13. The Free Software Foundation may publish revised and/or new -versions of the Lesser General Public License from time to time. -Such new versions will be similar in spirit to the present version, -but may differ in detail to address new problems or concerns. - -Each version is given a distinguishing version number. If the Library -specifies a version number of this License which applies to it and -"any later version", you have the option of following the terms and -conditions either of that version or of any later version published by -the Free Software Foundation. If the Library does not specify a -license version number, you may choose any version ever published by -the Free Software Foundation. - - 14. If you wish to incorporate parts of the Library into other free -programs whose distribution conditions are incompatible with these, -write to the author to ask for permission. For software which is -copyrighted by the Free Software Foundation, write to the Free -Software Foundation; we sometimes make exceptions for this. Our -decision will be guided by the two goals of preserving the free status -of all derivatives of our free software and of promoting the sharing -and reuse of software generally. - - NO WARRANTY - - 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO -WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. -EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR -OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY -KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE -LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME -THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN -WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY -AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU -FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR -CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE -LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING -RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A -FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF -SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH -DAMAGES. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Libraries - - If you develop a new library, and you want it to be of the greatest -possible use to the public, we recommend making it free software that -everyone can redistribute and change. You can do so by permitting -redistribution under these terms (or, alternatively, under the terms of the -ordinary General Public License). - - To apply these terms, attach the following notices to the library. It is -safest to attach them to the start of each source file to most effectively -convey the exclusion of warranty; and each file should have at least the -"copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - -Also add information on how to contact you by electronic and paper mail. - -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the library, if -necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the - library `Frob' (a library for tweaking knobs) written by James Random Hacker. - - , 1 April 1990 - Ty Coon, President of Vice - -That's all there is to it! diff --git a/library/ecasound/Documentation/Makefile.am b/library/ecasound/Documentation/Makefile.am deleted file mode 100644 index e39927c2a..000000000 --- a/library/ecasound/Documentation/Makefile.am +++ /dev/null @@ -1,128 +0,0 @@ -# ---------------------------------------------------------------------- -# File: ecasound/Documentation/Makefile.am -# Description: Ecasound documentation files -# License: GPL (see ecasound/{AUTHORS,COPYING}) -# ---------------------------------------------------------------------- - -prefix = @prefix@ -mandir = @mandir@ -PACKAGE = @PACKAGE@ -VERSION = @VERSION@ -SUBDIRS = users_guide programmers_guide - -# --------------------------------------------------------------------- -# Files going into distribution: - -man1_pages_to_install = \ - ecasound.1 \ - ecasound-iam.1 \ - ecatools.1 \ - ecaconvert.1 \ - ecafixdc.1 \ - ecalength.1 \ - ecaplay.1 \ - ecamonitor.1 \ - ecanormalize.1 \ - ecasignalview.1 - -man5_pages_to_install = \ - ecasoundrc.5 - -html_man_pages = \ - ecasound_manpage.html \ - ecasoundrc_manpage.html \ - ecatools_manpage.html \ - ecalength_manpage.html \ - ecasound-iam_manpage.html - -EXTRA_DIST = $(man1_pages_to_install) \ - $(man5_pages_to_install) \ - $(html_man_pages) - $(srcdir)/ecasound_manpage.yo \ - $(srcdir)/ecasoundrc_manpage.yo \ - $(srcdir)/ecasound-iam_manpage.yo \ - $(srcdir)/ecatools_manpage.yo \ - $(srcdir)/ecalength_manpage.yo \ - $(srcdir)/index.html \ - $(srcdir)/examples.html \ - $(srcdir)/manpages.html \ - $(srcdir)/tutorials.html \ - $(srcdir)/style_ecasound.css \ - $(srcdir)/ecasound_osc_interface.txt - -# --------------------------------------------------------------------- -# local targets for generating docs from latex and yodl sources - -all: - -docs: docs-guides docs-manpages - -docs-guides: - cd programmers_guide; $(MAKE) $(AM_MAKEFLAGS) docs - cd users_guide; $(MAKE) $(AM_MAKEFLAGS) docs - -docs-manpages: $(man1_pages_to_install) \ - $(man5_pages_to_install) \ - $(html_man_pages) - -# --------------------------------------------------------------------- -# Man pages - -# following are copies of ecatools.1 -ecaconvert.1: ecatools.1 - cp ecatools.1 ecaconvert.1 -ecafixdc.1: ecatools.1 - cp ecatools.1 ecafixdc.1 -ecamonitor.1: ecatools.1 - cp -v ecatools.1 ecamonitor.1 -ecanormalize.1: ecatools.1 - cp -v ecatools.1 ecanormalize.1 -ecaplay.1: ecatools.1 - cp -v ecatools.1 ecaplay.1 -ecasignalview.1: ecatools.1 - cp -v ecatools.1 ecasignalview.1 - -%.1: $(srcdir)/%_manpage.yo - yodl2man -o $@ $< - -%.5: $(srcdir)/%_manpage.yo - yodl2man -o $@ $< - -%.html: $(srcdir)/%.yo - yodl2html -o $@ $< - -# --------------------------------------------------------------------- -# doxygen (target removed 2009/Feb) -#doxygen: -# doxygen doxygen_libkvutils_config -# doxygen doxygen_libecasound_config - -# --------------------------------------------------------------------- -# Clean targets - -clean: - -clean-docs: clean-manpages clean-guides - -clean-guides: - cd programmers_guide; $(MAKE) $(AM_MAKEFLAGS) clean-docs - cd users_guide; $(MAKE) $(AM_MAKEFLAGS) clean-docs - -clean-manpages: - rm -f $(man1_pages_to_install) \ - $(man5_pages_to_install) \ - $(html_man_pages) - -# --------------------------------------------------------------------- -# Install targets -install-data-local: - mkdir -p $(DESTDIR)$(mandir)/man1 - mkdir -p $(DESTDIR)$(mandir)/man5 - for f in $(man1_pages_to_install) ; do if test -f $$f ; then cp -v $$f $(DESTDIR)$(mandir)/man1/; fi ; done - for f in $(man5_pages_to_install) ; do if test -f $$f ; then cp -v $$f $(DESTDIR)$(mandir)/man5/; fi ; done - -# --------------------------------------------------------------------- -# Uninstall targets -uninstall-local: - for f in $(man1_pages_to_install) ; do if test -f $$f ; then rm -vf $(DESTDIR)$(mandir)/man1/$$f ; fi ; done - for f in $(man5_pages_to_install) ; do if test -f $$f ; then rm -vf $(DESTDIR)$(mandir)/man5/$$f ; fi ; done diff --git a/library/ecasound/Documentation/Makefile.in b/library/ecasound/Documentation/Makefile.in deleted file mode 100644 index d0128bfc8..000000000 --- a/library/ecasound/Documentation/Makefile.in +++ /dev/null @@ -1,662 +0,0 @@ -# Makefile.in generated by automake 1.9.6 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - -# ---------------------------------------------------------------------- -# File: ecasound/Documentation/Makefile.am -# Description: Ecasound documentation files -# License: GPL (see ecasound/{AUTHORS,COPYING}) -# ---------------------------------------------------------------------- -srcdir = @srcdir@ -top_srcdir = @top_srcdir@ -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -top_builddir = .. -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -INSTALL = @INSTALL@ -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -subdir = Documentation -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/configure.in -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -SOURCES = -DIST_SOURCES = -RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ - html-recursive info-recursive install-data-recursive \ - install-exec-recursive install-info-recursive \ - install-recursive installcheck-recursive installdirs-recursive \ - pdf-recursive ps-recursive uninstall-info-recursive \ - uninstall-recursive -ETAGS = etags -CTAGS = ctags -DIST_SUBDIRS = $(SUBDIRS) -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMDEP_FALSE = @AMDEP_FALSE@ -AMDEP_TRUE = @AMDEP_TRUE@ -AMTAR = @AMTAR@ -AM_CFLAGS = @AM_CFLAGS@ -AM_CPPFLAGS = @AM_CPPFLAGS@ -AM_CXXFLAGS = @AM_CXXFLAGS@ -AM_LDFLAGS = @AM_LDFLAGS@ -AR = @AR@ -ARTSC_CONFIG = @ARTSC_CONFIG@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DSYMUTIL = @DSYMUTIL@ -ECA_AM_ALL_STATIC_FALSE = @ECA_AM_ALL_STATIC_FALSE@ -ECA_AM_ALL_STATIC_TRUE = @ECA_AM_ALL_STATIC_TRUE@ -ECA_AM_COMPILE_ALSA_FALSE = @ECA_AM_COMPILE_ALSA_FALSE@ -ECA_AM_COMPILE_ALSA_TRUE = @ECA_AM_COMPILE_ALSA_TRUE@ -ECA_AM_COMPILE_ARTS_FALSE = @ECA_AM_COMPILE_ARTS_FALSE@ -ECA_AM_COMPILE_ARTS_TRUE = @ECA_AM_COMPILE_ARTS_TRUE@ -ECA_AM_COMPILE_AUDIOFILE_FALSE = @ECA_AM_COMPILE_AUDIOFILE_FALSE@ -ECA_AM_COMPILE_AUDIOFILE_TRUE = @ECA_AM_COMPILE_AUDIOFILE_TRUE@ -ECA_AM_COMPILE_JACK_FALSE = @ECA_AM_COMPILE_JACK_FALSE@ -ECA_AM_COMPILE_JACK_TRUE = @ECA_AM_COMPILE_JACK_TRUE@ -ECA_AM_COMPILE_OSS_FALSE = @ECA_AM_COMPILE_OSS_FALSE@ -ECA_AM_COMPILE_OSS_TRUE = @ECA_AM_COMPILE_OSS_TRUE@ -ECA_AM_COMPILE_SAMPLERATE_FALSE = @ECA_AM_COMPILE_SAMPLERATE_FALSE@ -ECA_AM_COMPILE_SAMPLERATE_TRUE = @ECA_AM_COMPILE_SAMPLERATE_TRUE@ -ECA_AM_COMPILE_SNDFILE_FALSE = @ECA_AM_COMPILE_SNDFILE_FALSE@ -ECA_AM_COMPILE_SNDFILE_TRUE = @ECA_AM_COMPILE_SNDFILE_TRUE@ -ECA_AM_DEBUG_MODE_FALSE = @ECA_AM_DEBUG_MODE_FALSE@ -ECA_AM_DEBUG_MODE_TRUE = @ECA_AM_DEBUG_MODE_TRUE@ -ECA_AM_DISABLE_EFFECTS_FALSE = @ECA_AM_DISABLE_EFFECTS_FALSE@ -ECA_AM_DISABLE_EFFECTS_TRUE = @ECA_AM_DISABLE_EFFECTS_TRUE@ -ECA_AM_FEELING_EXPERIMENTAL_FALSE = @ECA_AM_FEELING_EXPERIMENTAL_FALSE@ -ECA_AM_FEELING_EXPERIMENTAL_TRUE = @ECA_AM_FEELING_EXPERIMENTAL_TRUE@ -ECA_AM_KVUTILS_INSTALLED_FALSE = @ECA_AM_KVUTILS_INSTALLED_FALSE@ -ECA_AM_KVUTILS_INSTALLED_TRUE = @ECA_AM_KVUTILS_INSTALLED_TRUE@ -ECA_AM_PYECASOUND_CEXT_FALSE = @ECA_AM_PYECASOUND_CEXT_FALSE@ -ECA_AM_PYECASOUND_CEXT_TRUE = @ECA_AM_PYECASOUND_CEXT_TRUE@ -ECA_AM_PYECASOUND_INSTALL_FALSE = @ECA_AM_PYECASOUND_INSTALL_FALSE@ -ECA_AM_PYECASOUND_INSTALL_TRUE = @ECA_AM_PYECASOUND_INSTALL_TRUE@ -ECA_AM_RUBYECASOUND_INSTALL_FALSE = @ECA_AM_RUBYECASOUND_INSTALL_FALSE@ -ECA_AM_RUBYECASOUND_INSTALL_TRUE = @ECA_AM_RUBYECASOUND_INSTALL_TRUE@ -ECA_AM_SYSTEM_READLINE_FALSE = @ECA_AM_SYSTEM_READLINE_FALSE@ -ECA_AM_SYSTEM_READLINE_TRUE = @ECA_AM_SYSTEM_READLINE_TRUE@ -ECA_AM_USE_NCURSES_FALSE = @ECA_AM_USE_NCURSES_FALSE@ -ECA_AM_USE_NCURSES_TRUE = @ECA_AM_USE_NCURSES_TRUE@ -ECA_AM_USE_TERMCAP_FALSE = @ECA_AM_USE_TERMCAP_FALSE@ -ECA_AM_USE_TERMCAP_TRUE = @ECA_AM_USE_TERMCAP_TRUE@ -ECA_S_EXTRA_CPPFLAGS = @ECA_S_EXTRA_CPPFLAGS@ -ECA_S_EXTRA_LIBS = @ECA_S_EXTRA_LIBS@ -ECA_S_JACK_INCLUDES = @ECA_S_JACK_INCLUDES@ -ECA_S_JACK_LIBS = @ECA_S_JACK_LIBS@ -ECA_S_PREFIX = @ECA_S_PREFIX@ -ECA_S_PYTHON_DLMODULES = @ECA_S_PYTHON_DLMODULES@ -ECA_S_PYTHON_INCLUDES = @ECA_S_PYTHON_INCLUDES@ -ECA_S_PYTHON_MODULES = @ECA_S_PYTHON_MODULES@ -ECA_S_READLINE_INCLUDES = @ECA_S_READLINE_INCLUDES@ -ECA_S_READLINE_LIBS = @ECA_S_READLINE_LIBS@ -ECA_S_RUBY_SITEDIR = @ECA_S_RUBY_SITEDIR@ -ECHO = @ECHO@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -F77 = @F77@ -FFLAGS = @FFLAGS@ -GREP = @GREP@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LDFLAGS = @LDFLAGS@ -LIBECASOUNDC_VERSION = @LIBECASOUNDC_VERSION@ -LIBECASOUNDC_VERSION_AGE = @LIBECASOUNDC_VERSION_AGE@ -LIBECASOUND_VERSION = @LIBECASOUND_VERSION@ -LIBECASOUND_VERSION_AGE = @LIBECASOUND_VERSION_AGE@ -LIBKVUTILS_VERSION = @LIBKVUTILS_VERSION@ -LIBKVUTILS_VERSION_AGE = @LIBKVUTILS_VERSION_AGE@ -LIBLO_CFLAGS = @LIBLO_CFLAGS@ -LIBLO_LIBS = @LIBLO_LIBS@ -LIBOBJS = @LIBOBJS@ -LIBOIL_CFLAGS = @LIBOIL_CFLAGS@ -LIBOIL_LIBS = @LIBOIL_LIBS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LN_S = @LN_S@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -NMEDIT = @NMEDIT@ -OBJEXT = @OBJEXT@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PKG_CONFIG = @PKG_CONFIG@ -PYTHONPATH = @PYTHONPATH@ -RANLIB = @RANLIB@ -RUBYPATH = @RUBYPATH@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -VERSION = @VERSION@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_CXX = @ac_ct_CXX@ -ac_ct_F77 = @ac_ct_F77@ -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -SUBDIRS = users_guide programmers_guide - -# --------------------------------------------------------------------- -# Files going into distribution: -man1_pages_to_install = \ - ecasound.1 \ - ecasound-iam.1 \ - ecatools.1 \ - ecaconvert.1 \ - ecafixdc.1 \ - ecalength.1 \ - ecaplay.1 \ - ecamonitor.1 \ - ecanormalize.1 \ - ecasignalview.1 - -man5_pages_to_install = \ - ecasoundrc.5 - -html_man_pages = \ - ecasound_manpage.html \ - ecasoundrc_manpage.html \ - ecatools_manpage.html \ - ecalength_manpage.html \ - ecasound-iam_manpage.html - -EXTRA_DIST = $(man1_pages_to_install) \ - $(man5_pages_to_install) \ - $(html_man_pages) - -all: all-recursive - -.SUFFIXES: -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Documentation/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --foreign Documentation/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -distclean-libtool: - -rm -f libtool -uninstall-info-am: - -# This directory's subdirectories are mostly independent; you can cd -# into them and run `make' without going through this Makefile. -# To change the values of `make' variables: instead of editing Makefiles, -# (1) if the variable is set in `config.status', edit `config.status' -# (which will cause the Makefiles to be regenerated when you run `make'); -# (2) otherwise, pass the desired values on the `make' command line. -$(RECURSIVE_TARGETS): - @failcom='exit 1'; \ - for f in x $$MAKEFLAGS; do \ - case $$f in \ - *=* | --[!k]*);; \ - *k*) failcom='fail=yes';; \ - esac; \ - done; \ - dot_seen=no; \ - target=`echo $@ | sed s/-recursive//`; \ - list='$(SUBDIRS)'; for subdir in $$list; do \ - echo "Making $$target in $$subdir"; \ - if test "$$subdir" = "."; then \ - dot_seen=yes; \ - local_target="$$target-am"; \ - else \ - local_target="$$target"; \ - fi; \ - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ - || eval $$failcom; \ - done; \ - if test "$$dot_seen" = "no"; then \ - $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ - fi; test -z "$$fail" - -mostlyclean-recursive clean-recursive distclean-recursive \ -maintainer-clean-recursive: - @failcom='exit 1'; \ - for f in x $$MAKEFLAGS; do \ - case $$f in \ - *=* | --[!k]*);; \ - *k*) failcom='fail=yes';; \ - esac; \ - done; \ - dot_seen=no; \ - case "$@" in \ - distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ - *) list='$(SUBDIRS)' ;; \ - esac; \ - rev=''; for subdir in $$list; do \ - if test "$$subdir" = "."; then :; else \ - rev="$$subdir $$rev"; \ - fi; \ - done; \ - rev="$$rev ."; \ - target=`echo $@ | sed s/-recursive//`; \ - for subdir in $$rev; do \ - echo "Making $$target in $$subdir"; \ - if test "$$subdir" = "."; then \ - local_target="$$target-am"; \ - else \ - local_target="$$target"; \ - fi; \ - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ - || eval $$failcom; \ - done && test -z "$$fail" -tags-recursive: - list='$(SUBDIRS)'; for subdir in $$list; do \ - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ - done -ctags-recursive: - list='$(SUBDIRS)'; for subdir in $$list; do \ - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ - done - -ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - mkid -fID $$unique -tags: TAGS - -TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ - include_option=--etags-include; \ - empty_fix=.; \ - else \ - include_option=--include; \ - empty_fix=; \ - fi; \ - list='$(SUBDIRS)'; for subdir in $$list; do \ - if test "$$subdir" = .; then :; else \ - test ! -f $$subdir/TAGS || \ - tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ - fi; \ - done; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ - test -n "$$unique" || unique=$$empty_fix; \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$tags $$unique; \ - fi -ctags: CTAGS -CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(CTAGS_ARGS)$$tags$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$tags $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && cd $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) $$here - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ - list='$(DISTFILES)'; for file in $$list; do \ - case $$file in \ - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ - esac; \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test "$$dir" != "$$file" && test "$$dir" != "."; then \ - dir="/$$dir"; \ - $(mkdir_p) "$(distdir)$$dir"; \ - else \ - dir=''; \ - fi; \ - if test -d $$d/$$file; then \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ - fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ - else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ - || exit 1; \ - fi; \ - done - list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ - if test "$$subdir" = .; then :; else \ - test -d "$(distdir)/$$subdir" \ - || $(mkdir_p) "$(distdir)/$$subdir" \ - || exit 1; \ - distdir=`$(am__cd) $(distdir) && pwd`; \ - top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ - (cd $$subdir && \ - $(MAKE) $(AM_MAKEFLAGS) \ - top_distdir="$$top_distdir" \ - distdir="$$distdir/$$subdir" \ - distdir) \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-recursive -all-am: Makefile -installdirs: installdirs-recursive -installdirs-am: -install: install-recursive -install-exec: install-exec-recursive -install-data: install-data-recursive -uninstall: uninstall-recursive - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-recursive -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean-am: clean-generic clean-libtool mostlyclean-am - -distclean: distclean-recursive - -rm -f Makefile -distclean-am: clean-am distclean-generic distclean-libtool \ - distclean-tags - -dvi: dvi-recursive - -dvi-am: - -html: html-recursive - -info: info-recursive - -info-am: - -install-data-am: install-data-local - -install-exec-am: - -install-info: install-info-recursive - -install-man: - -installcheck-am: - -maintainer-clean: maintainer-clean-recursive - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-recursive - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-recursive - -pdf-am: - -ps: ps-recursive - -ps-am: - -uninstall-am: uninstall-info-am uninstall-local - -uninstall-info: uninstall-info-recursive - -.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \ - clean clean-generic clean-libtool clean-recursive ctags \ - ctags-recursive distclean distclean-generic distclean-libtool \ - distclean-recursive distclean-tags distdir dvi dvi-am html \ - html-am info info-am install install-am install-data \ - install-data-am install-data-local install-exec \ - install-exec-am install-info install-info-am install-man \ - install-strip installcheck installcheck-am installdirs \ - installdirs-am maintainer-clean maintainer-clean-generic \ - maintainer-clean-recursive mostlyclean mostlyclean-generic \ - mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \ - tags tags-recursive uninstall uninstall-am uninstall-info-am \ - uninstall-local - - $(srcdir)/ecasound_manpage.yo \ - $(srcdir)/ecasoundrc_manpage.yo \ - $(srcdir)/ecasound-iam_manpage.yo \ - $(srcdir)/ecatools_manpage.yo \ - $(srcdir)/ecalength_manpage.yo \ - $(srcdir)/index.html \ - $(srcdir)/examples.html \ - $(srcdir)/manpages.html \ - $(srcdir)/tutorials.html \ - $(srcdir)/style_ecasound.css \ - $(srcdir)/ecasound_osc_interface.txt - -# --------------------------------------------------------------------- -# local targets for generating docs from latex and yodl sources - -all: - -docs: docs-guides docs-manpages - -docs-guides: - cd programmers_guide; $(MAKE) $(AM_MAKEFLAGS) docs - cd users_guide; $(MAKE) $(AM_MAKEFLAGS) docs - -docs-manpages: $(man1_pages_to_install) \ - $(man5_pages_to_install) \ - $(html_man_pages) - -# --------------------------------------------------------------------- -# Man pages - -# following are copies of ecatools.1 -ecaconvert.1: ecatools.1 - cp ecatools.1 ecaconvert.1 -ecafixdc.1: ecatools.1 - cp ecatools.1 ecafixdc.1 -ecamonitor.1: ecatools.1 - cp -v ecatools.1 ecamonitor.1 -ecanormalize.1: ecatools.1 - cp -v ecatools.1 ecanormalize.1 -ecaplay.1: ecatools.1 - cp -v ecatools.1 ecaplay.1 -ecasignalview.1: ecatools.1 - cp -v ecatools.1 ecasignalview.1 - -%.1: $(srcdir)/%_manpage.yo - yodl2man -o $@ $< - -%.5: $(srcdir)/%_manpage.yo - yodl2man -o $@ $< - -%.html: $(srcdir)/%.yo - yodl2html -o $@ $< - -# --------------------------------------------------------------------- -# doxygen (target removed 2009/Feb) -#doxygen: -# doxygen doxygen_libkvutils_config -# doxygen doxygen_libecasound_config - -# --------------------------------------------------------------------- -# Clean targets - -clean: - -clean-docs: clean-manpages clean-guides - -clean-guides: - cd programmers_guide; $(MAKE) $(AM_MAKEFLAGS) clean-docs - cd users_guide; $(MAKE) $(AM_MAKEFLAGS) clean-docs - -clean-manpages: - rm -f $(man1_pages_to_install) \ - $(man5_pages_to_install) \ - $(html_man_pages) - -# --------------------------------------------------------------------- -# Install targets -install-data-local: - mkdir -p $(DESTDIR)$(mandir)/man1 - mkdir -p $(DESTDIR)$(mandir)/man5 - for f in $(man1_pages_to_install) ; do if test -f $$f ; then cp -v $$f $(DESTDIR)$(mandir)/man1/; fi ; done - for f in $(man5_pages_to_install) ; do if test -f $$f ; then cp -v $$f $(DESTDIR)$(mandir)/man5/; fi ; done - -# --------------------------------------------------------------------- -# Uninstall targets -uninstall-local: - for f in $(man1_pages_to_install) ; do if test -f $$f ; then rm -vf $(DESTDIR)$(mandir)/man1/$$f ; fi ; done - for f in $(man5_pages_to_install) ; do if test -f $$f ; then rm -vf $(DESTDIR)$(mandir)/man5/$$f ; fi ; done -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/library/ecasound/Documentation/ecaconvert.1 b/library/ecasound/Documentation/ecaconvert.1 deleted file mode 100644 index 824dc5713..000000000 --- a/library/ecasound/Documentation/ecaconvert.1 +++ /dev/null @@ -1,220 +0,0 @@ -.TH "ecatools" "1" "12\&.11\&.2005" "" "Multimedia software" - -.PP -.SH "NAME" -ecatools \- audio processing utils based on ecasound -.PP -.SH "SYNOPSIS" -\fBecaconvert\fP \&.extension file1 [ file2 \&.\&.\&. fileN ] -.PP -\fBecafixdc\fP file1 [ file2 \&.\&.\&. fileN ] -.PP -\fBecalength\fP file1 [ file2 \&.\&.\&. fileN ] -.PP -\fBecamonitor\fP [host][:port] -.PP -\fBecanormalize\fP file1 [ file2 \&.\&.\&. fileN ] -.PP -\fBecaplay\fP [-dfhklopq] [ file1 file2 \&.\&.\&. fileN ] -.PP -\fBecasignalview\fP [ options ] [ input ] [ output ] -.PP -.SH "DESCRIPTION" - -.PP -Ecatools are simple command line utils for audio file processing\&. -Each tool is designed to perform one specific operation\&. Most of -the tools also support batch processing\&. -.PP -\fBECACONVERT\fP -.PP -A tool for converting a set of files to a common target format\&. -This target format is given as the first command line -argument, and its syntax is \fI\&.ext\fP\&. -.PP -\fBECAFIXDC\fP -.PP -A simple command-line tool for fixing DC-offset\&. -.PP -\fBECALENGTH\fP -.PP -See the separate ecalength(1) man page\&. -.PP -\fBECAMONITOR\fP -.PP -Ecamonitor is a util program that can be used -to monitor an active ecasound session\&. Ecamonitor -is able to show information about the current -chainsetup such as list of inputs, outputs, -current position, effects, the engine status -and numerous other things\&. -.PP -By default ecamonitor will try to connect -to IP4 address "localhost", to port "2868"\&. -A different address can be specified when -starting ecamonitor, for example -"ecamonitor foo\&.mynetwork\&.com" or -"ecamonitor foo\&.mynetwork\&.com:4500"\&. -.PP -To enable inbound connections, ecasound has to be -started with the \fI--daemon\fP option\&. Ecamonitor is -implemented in Python using the NetECI API\&. -.PP -\fBECANORMALIZE\fP -.PP -Ecanormalize is a command-line tool for normalizing audio -files to utilize the full available sample resolution\&. Ecanormalize -first finds out how much the input file can be amplified without -clipping and if there is room for increase, a static gain will -be applied to the file\&. -.PP -\fBECAPLAY\fP -.PP -Ecaplay is a command-line tool for playing audio files\&. Ecaplay -uses the libecasound engine and is thus able to handle all audio formats -supported by the library\&. -.PP -Files can be selected for playback either by specifying the -filenames on the command-line, or by using the playlist -mechanism\&. In playlist mode, files can be added to the playlist -using the \fI-q\fP option\&. The \fI-p\fP option can then be used -to play all tracks on the playlist\&. Ecaplay will repeat the -playlist tracks until explicitly stopped (with double Ctrl-C)\&. -Playlist can be flushed with \fI-f\fP and its contents listed -with \fI-l\fP option\&. -.PP -If not otherwise specified, ecaplay will use the audio output device -specified in \fI~/\&.ecasound/ecasoundrc\fP for playback\&. A different -output device can be selected with \fIECAPLAY_OUTPUT_DEVICE\fP shell -environment variable or with the \fI-o:output_device\fP command-line -option\&. -.PP -Playback can be stopped at any time with Ctrl-C\&. If multiple -files are played, first Ctrl-C will stop the current file and move -on to play the next one\&. Issuing Ctrl-C twice (within one second), -will cause ecaplay to exit\&. -.PP -.IP "-d:debuglevel" -Set libecasound debug level\&. See ecasound(1)\&. -.IP -.IP "-f" -Flush the playlist contents\&. See also -options \fI-l, -p and -q\fP\&. -.IP -.IP "-h" -Print usage information and exit\&. -.IP -.IP "-k:number" -Skip \&'number\&' of files\&. -.IP -.IP "-l" -List the current playlist contents to stdout\&. See also -options \fI-f, -p and -q\fP\&. -.IP -.IP "-o:output_device" -Use \&'output_device\&' instead of the default output device -(as specified in \fI~/\&.ecasound/ecasoundrc\fP)\&. Syntax is same -as used by "-o" ecasound option (see ecasound(1) man page)\&. -This option overrides the \fIECAPLAY_OUTPUT_DEVICE\fP environment -variable (more info below)\&. -.IP -.IP "-p" -Play tracks in the playlist (in looped mode)\&. See also -options \fI-f, -l and -q\fP\&. -.IP -.IP "-q" -Queue new tracks to the playlist\&. All filenames given on -the command-line will be added to the the playlist\&. It is -possible to queue new tracks while another instance of -ecaplay is using the playlist\&. See also options \fI-f, -l -and -p\fP\&. -.IP -\fBECASIGNALVIEW\fP -.PP -Ecasignalview is meant for monitoring signal amplitude and peak -statistics\&. It accepts the following options: -.PP -.IP "input" -The first option not starting with a \&'-\&' is interpreted -as an input string\&. This can be a device or a filename\&. All formats -supported by libecasound are accepted\&. Defaults to \&'/dev/dsp\&'\&. -.IP -.IP "output" -Similarly to input, second option not starting with a \&'-\&' -is interpreted as output\&. Defaults to \&'null\&'\&. -.IP -.IP "-b:buffersize" -Buffersize in sample frames\&. Defaults to 128\&. -.IP -.IP "-c" -Enable cumulative mode\&. Counters are not reseted after refresh\&. -\fI*deprecated*\fP -.IP -.IP "-d" -Enable debug mode\&. -.IP -.IP "-f:format_string" -Specify default audio format\&. See ecasound(1) for details\&. -.IP -.IP "-r:rate_msec" -Specify screen refresh rate in milliseconds\&. -.IP -.IP "-I" -Use linear scale for showing audio sample amplitude\&. -.IP -.IP "-L" -Use logarithmic scale for showing audio sample amplitude\&. -.IP -.IP "-G, -B, -M*, -r, -z" -Ecasound options use to modify the engine behaviour, see -ecasound(1) manpage for details\&. -.IP -When ecasignalview is running, the following keyboard -commands can be used to control the operation (requires -system support for UNIX terminal interface control): -.PP -.IP "spacebar" -Reset statistics (max-peak, avg-amplitude and clipped -samples count)\&. -.IP -.IP "q or Q or Esc" -Quit ecasignalview\&. -.IP -It is also possible to reset the max-peak and clipped-samples -counters by sending a SIGHUP signal to the process (i\&.e\&. -from another console: "killall -v -HUP ecasignalview")\&. -.PP -More complete documentation for ecasignalview can be found -from "Ecasound User\&'s Guide" (see \&'\&'http://www\&.eca\&.cx/ecasound --> Documentation\&'\&')\&. -.PP -.SH "ENVIRONMENT" - -.PP -\fIECASOUND\fP -Path to the ecasound executable\&. Used by many ecatools\&. -.PP -\fIECAPLAY_OUTPUT_DEVICE\fP -Device ecaplay should use for audio output\&. Same syntax -as for ecaplay/ecasound "-o" option\&. -.PP -.SH "FILES" - -.PP -\fI~/\&.ecasound/ecasoundrc\fP -The default ecasound resource file\&. See ecasoundrc(5) -for details\&. -.PP -\fI~/\&.ecasound/ecaplay_queue\fP -File used to store the ecaplay playlist (one track per -line with full path)\&. -.PP -.SH "SEE ALSO" - -.PP -ecasound (1), ecalength(1), "HTML docs in the Documentation subdirectory" -.PP -.SH "AUTHOR" - -.PP -Kai Vehmanen, > diff --git a/library/ecasound/Documentation/ecafixdc.1 b/library/ecasound/Documentation/ecafixdc.1 deleted file mode 100644 index 824dc5713..000000000 --- a/library/ecasound/Documentation/ecafixdc.1 +++ /dev/null @@ -1,220 +0,0 @@ -.TH "ecatools" "1" "12\&.11\&.2005" "" "Multimedia software" - -.PP -.SH "NAME" -ecatools \- audio processing utils based on ecasound -.PP -.SH "SYNOPSIS" -\fBecaconvert\fP \&.extension file1 [ file2 \&.\&.\&. fileN ] -.PP -\fBecafixdc\fP file1 [ file2 \&.\&.\&. fileN ] -.PP -\fBecalength\fP file1 [ file2 \&.\&.\&. fileN ] -.PP -\fBecamonitor\fP [host][:port] -.PP -\fBecanormalize\fP file1 [ file2 \&.\&.\&. fileN ] -.PP -\fBecaplay\fP [-dfhklopq] [ file1 file2 \&.\&.\&. fileN ] -.PP -\fBecasignalview\fP [ options ] [ input ] [ output ] -.PP -.SH "DESCRIPTION" - -.PP -Ecatools are simple command line utils for audio file processing\&. -Each tool is designed to perform one specific operation\&. Most of -the tools also support batch processing\&. -.PP -\fBECACONVERT\fP -.PP -A tool for converting a set of files to a common target format\&. -This target format is given as the first command line -argument, and its syntax is \fI\&.ext\fP\&. -.PP -\fBECAFIXDC\fP -.PP -A simple command-line tool for fixing DC-offset\&. -.PP -\fBECALENGTH\fP -.PP -See the separate ecalength(1) man page\&. -.PP -\fBECAMONITOR\fP -.PP -Ecamonitor is a util program that can be used -to monitor an active ecasound session\&. Ecamonitor -is able to show information about the current -chainsetup such as list of inputs, outputs, -current position, effects, the engine status -and numerous other things\&. -.PP -By default ecamonitor will try to connect -to IP4 address "localhost", to port "2868"\&. -A different address can be specified when -starting ecamonitor, for example -"ecamonitor foo\&.mynetwork\&.com" or -"ecamonitor foo\&.mynetwork\&.com:4500"\&. -.PP -To enable inbound connections, ecasound has to be -started with the \fI--daemon\fP option\&. Ecamonitor is -implemented in Python using the NetECI API\&. -.PP -\fBECANORMALIZE\fP -.PP -Ecanormalize is a command-line tool for normalizing audio -files to utilize the full available sample resolution\&. Ecanormalize -first finds out how much the input file can be amplified without -clipping and if there is room for increase, a static gain will -be applied to the file\&. -.PP -\fBECAPLAY\fP -.PP -Ecaplay is a command-line tool for playing audio files\&. Ecaplay -uses the libecasound engine and is thus able to handle all audio formats -supported by the library\&. -.PP -Files can be selected for playback either by specifying the -filenames on the command-line, or by using the playlist -mechanism\&. In playlist mode, files can be added to the playlist -using the \fI-q\fP option\&. The \fI-p\fP option can then be used -to play all tracks on the playlist\&. Ecaplay will repeat the -playlist tracks until explicitly stopped (with double Ctrl-C)\&. -Playlist can be flushed with \fI-f\fP and its contents listed -with \fI-l\fP option\&. -.PP -If not otherwise specified, ecaplay will use the audio output device -specified in \fI~/\&.ecasound/ecasoundrc\fP for playback\&. A different -output device can be selected with \fIECAPLAY_OUTPUT_DEVICE\fP shell -environment variable or with the \fI-o:output_device\fP command-line -option\&. -.PP -Playback can be stopped at any time with Ctrl-C\&. If multiple -files are played, first Ctrl-C will stop the current file and move -on to play the next one\&. Issuing Ctrl-C twice (within one second), -will cause ecaplay to exit\&. -.PP -.IP "-d:debuglevel" -Set libecasound debug level\&. See ecasound(1)\&. -.IP -.IP "-f" -Flush the playlist contents\&. See also -options \fI-l, -p and -q\fP\&. -.IP -.IP "-h" -Print usage information and exit\&. -.IP -.IP "-k:number" -Skip \&'number\&' of files\&. -.IP -.IP "-l" -List the current playlist contents to stdout\&. See also -options \fI-f, -p and -q\fP\&. -.IP -.IP "-o:output_device" -Use \&'output_device\&' instead of the default output device -(as specified in \fI~/\&.ecasound/ecasoundrc\fP)\&. Syntax is same -as used by "-o" ecasound option (see ecasound(1) man page)\&. -This option overrides the \fIECAPLAY_OUTPUT_DEVICE\fP environment -variable (more info below)\&. -.IP -.IP "-p" -Play tracks in the playlist (in looped mode)\&. See also -options \fI-f, -l and -q\fP\&. -.IP -.IP "-q" -Queue new tracks to the playlist\&. All filenames given on -the command-line will be added to the the playlist\&. It is -possible to queue new tracks while another instance of -ecaplay is using the playlist\&. See also options \fI-f, -l -and -p\fP\&. -.IP -\fBECASIGNALVIEW\fP -.PP -Ecasignalview is meant for monitoring signal amplitude and peak -statistics\&. It accepts the following options: -.PP -.IP "input" -The first option not starting with a \&'-\&' is interpreted -as an input string\&. This can be a device or a filename\&. All formats -supported by libecasound are accepted\&. Defaults to \&'/dev/dsp\&'\&. -.IP -.IP "output" -Similarly to input, second option not starting with a \&'-\&' -is interpreted as output\&. Defaults to \&'null\&'\&. -.IP -.IP "-b:buffersize" -Buffersize in sample frames\&. Defaults to 128\&. -.IP -.IP "-c" -Enable cumulative mode\&. Counters are not reseted after refresh\&. -\fI*deprecated*\fP -.IP -.IP "-d" -Enable debug mode\&. -.IP -.IP "-f:format_string" -Specify default audio format\&. See ecasound(1) for details\&. -.IP -.IP "-r:rate_msec" -Specify screen refresh rate in milliseconds\&. -.IP -.IP "-I" -Use linear scale for showing audio sample amplitude\&. -.IP -.IP "-L" -Use logarithmic scale for showing audio sample amplitude\&. -.IP -.IP "-G, -B, -M*, -r, -z" -Ecasound options use to modify the engine behaviour, see -ecasound(1) manpage for details\&. -.IP -When ecasignalview is running, the following keyboard -commands can be used to control the operation (requires -system support for UNIX terminal interface control): -.PP -.IP "spacebar" -Reset statistics (max-peak, avg-amplitude and clipped -samples count)\&. -.IP -.IP "q or Q or Esc" -Quit ecasignalview\&. -.IP -It is also possible to reset the max-peak and clipped-samples -counters by sending a SIGHUP signal to the process (i\&.e\&. -from another console: "killall -v -HUP ecasignalview")\&. -.PP -More complete documentation for ecasignalview can be found -from "Ecasound User\&'s Guide" (see \&'\&'http://www\&.eca\&.cx/ecasound --> Documentation\&'\&')\&. -.PP -.SH "ENVIRONMENT" - -.PP -\fIECASOUND\fP -Path to the ecasound executable\&. Used by many ecatools\&. -.PP -\fIECAPLAY_OUTPUT_DEVICE\fP -Device ecaplay should use for audio output\&. Same syntax -as for ecaplay/ecasound "-o" option\&. -.PP -.SH "FILES" - -.PP -\fI~/\&.ecasound/ecasoundrc\fP -The default ecasound resource file\&. See ecasoundrc(5) -for details\&. -.PP -\fI~/\&.ecasound/ecaplay_queue\fP -File used to store the ecaplay playlist (one track per -line with full path)\&. -.PP -.SH "SEE ALSO" - -.PP -ecasound (1), ecalength(1), "HTML docs in the Documentation subdirectory" -.PP -.SH "AUTHOR" - -.PP -Kai Vehmanen, > diff --git a/library/ecasound/Documentation/ecalength.1 b/library/ecasound/Documentation/ecalength.1 deleted file mode 100644 index 8e018031e..000000000 --- a/library/ecasound/Documentation/ecalength.1 +++ /dev/null @@ -1,76 +0,0 @@ -.TH "ecalength" "1" "18\&.04\&.2004" "" "Multimedia software" - -.PP -.SH "NAME" -ecalength \- prints audio file lenght and other information -.PP -.SH "SYNOPSIS" -\fBecalength\fP [-ahtsfmbcr] FILE1 [FILE2] [FILEn] -.PP -.SH "DESCRIPTION" - -.PP -This is ecalength, a few lines of code pompously named so because they -let one retrieve the length of an audio file from the command line -using ecasound\&'s engine\&. -.PP -Limitations: -.IP "" -- With files without header information (raw files), ecalength will only work -correctly if the audio file is at a sampling rate of 44100 hz\&. -(Addressed with the -a switch\&.) -.IP "" -- It is not foolproof, feeding it with something other than an audio -file WILL result in ugly things being spewed back\&. -(A bit better) -.IP "" -- A thousand more that I haven\&'t thought of\&. - -.PP -.SH "OPTIONS" - -.PP -.IP "-h" -Prints this usage message\&. (help) -.IP -.IP "-a[:]bits,channels,rate" -Changes the format assumed by default for headerless data\&. (adjust) -.IP -.IP "-t" -Prints the summed length of all the files processed\&. (total) -(Ignored if with -s) -.IP -.IP "-s" -Enables script mode: One info type per file per line\&. (script) -(Defaults to length in secs\&.) -.IP -.IP "-f" -With -s will return the format string as info, alone it will -add it to the main display\&. (format) -.IP -.IP "-b" -If -s and -f are enabled with this the info printed will be -the sample\&'s bitwidth\&. (bits) -.IP -.IP "-c" -If -s and -f are enabled with this the info printed will be -the channel count\&. (channel count) -.IP -.IP "-r" -If -s and -f are enabled with this the info printed will be -the sampling rate\&. (rate) -.IP -.IP "-m" -Will print human computable time as in main display but in -batch fashion\&. (minutes) (Only with -s) - -.PP -.SH "SEE ALSO" - -.PP -ecasound(1), ecatools(1) -.PP -.SH "AUTHOR" - -.PP -S\&.Massy, > diff --git a/library/ecasound/Documentation/ecalength_manpage.html b/library/ecasound/Documentation/ecalength_manpage.html deleted file mode 100644 index d765a3534..000000000 --- a/library/ecasound/Documentation/ecalength_manpage.html +++ /dev/null @@ -1,95 +0,0 @@ - -ecalength - - - -
-

ecalength

-

18.04.2004

- - - - - -
-

- - -ecalength(1) - - - -
-

ecalength(1)

-

Multimedia software

-

18.04.2004

- - -

-

NAME

ecalength - prints audio file lenght and other information -

-

SYNOPSIS

- ecalength [-ahtsfmbcr] FILE1 [FILE2] [FILEn] -

-

DESCRIPTION

-

-This is ecalength, a few lines of code pompously named so because they -let one retrieve the length of an audio file from the command line -using ecasound's engine. -

-Limitations: -

-

- With files without header information (raw files), ecalength will only work - correctly if the audio file is at a sampling rate of 44100 hz. - (Addressed with the -a switch.) -

- It is not foolproof, feeding it with something other than an audio - file WILL result in ugly things being spewed back. - (A bit better) -

- A thousand more that I haven't thought of. -
-

-

OPTIONS

-

-

-

-h
-Prints this usage message. (help) -

-

-a[:]bits,channels,rate
-Changes the format assumed by default for headerless data. (adjust) -

-

-t
-Prints the summed length of all the files processed. (total) -(Ignored if with -s) -

-

-s
-Enables script mode: One info type per file per line. (script) -(Defaults to length in secs.) -

-

-f
-With -s will return the format string as info, alone it will -add it to the main display. (format) -

-

-b
-If -s and -f are enabled with this the info printed will be -the sample's bitwidth. (bits) -

-

-c
-If -s and -f are enabled with this the info printed will be -the channel count. (channel count) -

-

-r
-If -s and -f are enabled with this the info printed will be -the sampling rate. (rate) -

-

-m
-Will print human computable time as in main display but in -batch fashion. (minutes) (Only with -s) -
-

-

SEE ALSO

-

-ecasound(1), ecatools(1) -

-

AUTHOR

-

-S.Massy, <observer |at| colba.net> diff --git a/library/ecasound/Documentation/ecamonitor.1 b/library/ecasound/Documentation/ecamonitor.1 deleted file mode 100644 index 824dc5713..000000000 --- a/library/ecasound/Documentation/ecamonitor.1 +++ /dev/null @@ -1,220 +0,0 @@ -.TH "ecatools" "1" "12\&.11\&.2005" "" "Multimedia software" - -.PP -.SH "NAME" -ecatools \- audio processing utils based on ecasound -.PP -.SH "SYNOPSIS" -\fBecaconvert\fP \&.extension file1 [ file2 \&.\&.\&. fileN ] -.PP -\fBecafixdc\fP file1 [ file2 \&.\&.\&. fileN ] -.PP -\fBecalength\fP file1 [ file2 \&.\&.\&. fileN ] -.PP -\fBecamonitor\fP [host][:port] -.PP -\fBecanormalize\fP file1 [ file2 \&.\&.\&. fileN ] -.PP -\fBecaplay\fP [-dfhklopq] [ file1 file2 \&.\&.\&. fileN ] -.PP -\fBecasignalview\fP [ options ] [ input ] [ output ] -.PP -.SH "DESCRIPTION" - -.PP -Ecatools are simple command line utils for audio file processing\&. -Each tool is designed to perform one specific operation\&. Most of -the tools also support batch processing\&. -.PP -\fBECACONVERT\fP -.PP -A tool for converting a set of files to a common target format\&. -This target format is given as the first command line -argument, and its syntax is \fI\&.ext\fP\&. -.PP -\fBECAFIXDC\fP -.PP -A simple command-line tool for fixing DC-offset\&. -.PP -\fBECALENGTH\fP -.PP -See the separate ecalength(1) man page\&. -.PP -\fBECAMONITOR\fP -.PP -Ecamonitor is a util program that can be used -to monitor an active ecasound session\&. Ecamonitor -is able to show information about the current -chainsetup such as list of inputs, outputs, -current position, effects, the engine status -and numerous other things\&. -.PP -By default ecamonitor will try to connect -to IP4 address "localhost", to port "2868"\&. -A different address can be specified when -starting ecamonitor, for example -"ecamonitor foo\&.mynetwork\&.com" or -"ecamonitor foo\&.mynetwork\&.com:4500"\&. -.PP -To enable inbound connections, ecasound has to be -started with the \fI--daemon\fP option\&. Ecamonitor is -implemented in Python using the NetECI API\&. -.PP -\fBECANORMALIZE\fP -.PP -Ecanormalize is a command-line tool for normalizing audio -files to utilize the full available sample resolution\&. Ecanormalize -first finds out how much the input file can be amplified without -clipping and if there is room for increase, a static gain will -be applied to the file\&. -.PP -\fBECAPLAY\fP -.PP -Ecaplay is a command-line tool for playing audio files\&. Ecaplay -uses the libecasound engine and is thus able to handle all audio formats -supported by the library\&. -.PP -Files can be selected for playback either by specifying the -filenames on the command-line, or by using the playlist -mechanism\&. In playlist mode, files can be added to the playlist -using the \fI-q\fP option\&. The \fI-p\fP option can then be used -to play all tracks on the playlist\&. Ecaplay will repeat the -playlist tracks until explicitly stopped (with double Ctrl-C)\&. -Playlist can be flushed with \fI-f\fP and its contents listed -with \fI-l\fP option\&. -.PP -If not otherwise specified, ecaplay will use the audio output device -specified in \fI~/\&.ecasound/ecasoundrc\fP for playback\&. A different -output device can be selected with \fIECAPLAY_OUTPUT_DEVICE\fP shell -environment variable or with the \fI-o:output_device\fP command-line -option\&. -.PP -Playback can be stopped at any time with Ctrl-C\&. If multiple -files are played, first Ctrl-C will stop the current file and move -on to play the next one\&. Issuing Ctrl-C twice (within one second), -will cause ecaplay to exit\&. -.PP -.IP "-d:debuglevel" -Set libecasound debug level\&. See ecasound(1)\&. -.IP -.IP "-f" -Flush the playlist contents\&. See also -options \fI-l, -p and -q\fP\&. -.IP -.IP "-h" -Print usage information and exit\&. -.IP -.IP "-k:number" -Skip \&'number\&' of files\&. -.IP -.IP "-l" -List the current playlist contents to stdout\&. See also -options \fI-f, -p and -q\fP\&. -.IP -.IP "-o:output_device" -Use \&'output_device\&' instead of the default output device -(as specified in \fI~/\&.ecasound/ecasoundrc\fP)\&. Syntax is same -as used by "-o" ecasound option (see ecasound(1) man page)\&. -This option overrides the \fIECAPLAY_OUTPUT_DEVICE\fP environment -variable (more info below)\&. -.IP -.IP "-p" -Play tracks in the playlist (in looped mode)\&. See also -options \fI-f, -l and -q\fP\&. -.IP -.IP "-q" -Queue new tracks to the playlist\&. All filenames given on -the command-line will be added to the the playlist\&. It is -possible to queue new tracks while another instance of -ecaplay is using the playlist\&. See also options \fI-f, -l -and -p\fP\&. -.IP -\fBECASIGNALVIEW\fP -.PP -Ecasignalview is meant for monitoring signal amplitude and peak -statistics\&. It accepts the following options: -.PP -.IP "input" -The first option not starting with a \&'-\&' is interpreted -as an input string\&. This can be a device or a filename\&. All formats -supported by libecasound are accepted\&. Defaults to \&'/dev/dsp\&'\&. -.IP -.IP "output" -Similarly to input, second option not starting with a \&'-\&' -is interpreted as output\&. Defaults to \&'null\&'\&. -.IP -.IP "-b:buffersize" -Buffersize in sample frames\&. Defaults to 128\&. -.IP -.IP "-c" -Enable cumulative mode\&. Counters are not reseted after refresh\&. -\fI*deprecated*\fP -.IP -.IP "-d" -Enable debug mode\&. -.IP -.IP "-f:format_string" -Specify default audio format\&. See ecasound(1) for details\&. -.IP -.IP "-r:rate_msec" -Specify screen refresh rate in milliseconds\&. -.IP -.IP "-I" -Use linear scale for showing audio sample amplitude\&. -.IP -.IP "-L" -Use logarithmic scale for showing audio sample amplitude\&. -.IP -.IP "-G, -B, -M*, -r, -z" -Ecasound options use to modify the engine behaviour, see -ecasound(1) manpage for details\&. -.IP -When ecasignalview is running, the following keyboard -commands can be used to control the operation (requires -system support for UNIX terminal interface control): -.PP -.IP "spacebar" -Reset statistics (max-peak, avg-amplitude and clipped -samples count)\&. -.IP -.IP "q or Q or Esc" -Quit ecasignalview\&. -.IP -It is also possible to reset the max-peak and clipped-samples -counters by sending a SIGHUP signal to the process (i\&.e\&. -from another console: "killall -v -HUP ecasignalview")\&. -.PP -More complete documentation for ecasignalview can be found -from "Ecasound User\&'s Guide" (see \&'\&'http://www\&.eca\&.cx/ecasound --> Documentation\&'\&')\&. -.PP -.SH "ENVIRONMENT" - -.PP -\fIECASOUND\fP -Path to the ecasound executable\&. Used by many ecatools\&. -.PP -\fIECAPLAY_OUTPUT_DEVICE\fP -Device ecaplay should use for audio output\&. Same syntax -as for ecaplay/ecasound "-o" option\&. -.PP -.SH "FILES" - -.PP -\fI~/\&.ecasound/ecasoundrc\fP -The default ecasound resource file\&. See ecasoundrc(5) -for details\&. -.PP -\fI~/\&.ecasound/ecaplay_queue\fP -File used to store the ecaplay playlist (one track per -line with full path)\&. -.PP -.SH "SEE ALSO" - -.PP -ecasound (1), ecalength(1), "HTML docs in the Documentation subdirectory" -.PP -.SH "AUTHOR" - -.PP -Kai Vehmanen, > diff --git a/library/ecasound/Documentation/ecanormalize.1 b/library/ecasound/Documentation/ecanormalize.1 deleted file mode 100644 index 824dc5713..000000000 --- a/library/ecasound/Documentation/ecanormalize.1 +++ /dev/null @@ -1,220 +0,0 @@ -.TH "ecatools" "1" "12\&.11\&.2005" "" "Multimedia software" - -.PP -.SH "NAME" -ecatools \- audio processing utils based on ecasound -.PP -.SH "SYNOPSIS" -\fBecaconvert\fP \&.extension file1 [ file2 \&.\&.\&. fileN ] -.PP -\fBecafixdc\fP file1 [ file2 \&.\&.\&. fileN ] -.PP -\fBecalength\fP file1 [ file2 \&.\&.\&. fileN ] -.PP -\fBecamonitor\fP [host][:port] -.PP -\fBecanormalize\fP file1 [ file2 \&.\&.\&. fileN ] -.PP -\fBecaplay\fP [-dfhklopq] [ file1 file2 \&.\&.\&. fileN ] -.PP -\fBecasignalview\fP [ options ] [ input ] [ output ] -.PP -.SH "DESCRIPTION" - -.PP -Ecatools are simple command line utils for audio file processing\&. -Each tool is designed to perform one specific operation\&. Most of -the tools also support batch processing\&. -.PP -\fBECACONVERT\fP -.PP -A tool for converting a set of files to a common target format\&. -This target format is given as the first command line -argument, and its syntax is \fI\&.ext\fP\&. -.PP -\fBECAFIXDC\fP -.PP -A simple command-line tool for fixing DC-offset\&. -.PP -\fBECALENGTH\fP -.PP -See the separate ecalength(1) man page\&. -.PP -\fBECAMONITOR\fP -.PP -Ecamonitor is a util program that can be used -to monitor an active ecasound session\&. Ecamonitor -is able to show information about the current -chainsetup such as list of inputs, outputs, -current position, effects, the engine status -and numerous other things\&. -.PP -By default ecamonitor will try to connect -to IP4 address "localhost", to port "2868"\&. -A different address can be specified when -starting ecamonitor, for example -"ecamonitor foo\&.mynetwork\&.com" or -"ecamonitor foo\&.mynetwork\&.com:4500"\&. -.PP -To enable inbound connections, ecasound has to be -started with the \fI--daemon\fP option\&. Ecamonitor is -implemented in Python using the NetECI API\&. -.PP -\fBECANORMALIZE\fP -.PP -Ecanormalize is a command-line tool for normalizing audio -files to utilize the full available sample resolution\&. Ecanormalize -first finds out how much the input file can be amplified without -clipping and if there is room for increase, a static gain will -be applied to the file\&. -.PP -\fBECAPLAY\fP -.PP -Ecaplay is a command-line tool for playing audio files\&. Ecaplay -uses the libecasound engine and is thus able to handle all audio formats -supported by the library\&. -.PP -Files can be selected for playback either by specifying the -filenames on the command-line, or by using the playlist -mechanism\&. In playlist mode, files can be added to the playlist -using the \fI-q\fP option\&. The \fI-p\fP option can then be used -to play all tracks on the playlist\&. Ecaplay will repeat the -playlist tracks until explicitly stopped (with double Ctrl-C)\&. -Playlist can be flushed with \fI-f\fP and its contents listed -with \fI-l\fP option\&. -.PP -If not otherwise specified, ecaplay will use the audio output device -specified in \fI~/\&.ecasound/ecasoundrc\fP for playback\&. A different -output device can be selected with \fIECAPLAY_OUTPUT_DEVICE\fP shell -environment variable or with the \fI-o:output_device\fP command-line -option\&. -.PP -Playback can be stopped at any time with Ctrl-C\&. If multiple -files are played, first Ctrl-C will stop the current file and move -on to play the next one\&. Issuing Ctrl-C twice (within one second), -will cause ecaplay to exit\&. -.PP -.IP "-d:debuglevel" -Set libecasound debug level\&. See ecasound(1)\&. -.IP -.IP "-f" -Flush the playlist contents\&. See also -options \fI-l, -p and -q\fP\&. -.IP -.IP "-h" -Print usage information and exit\&. -.IP -.IP "-k:number" -Skip \&'number\&' of files\&. -.IP -.IP "-l" -List the current playlist contents to stdout\&. See also -options \fI-f, -p and -q\fP\&. -.IP -.IP "-o:output_device" -Use \&'output_device\&' instead of the default output device -(as specified in \fI~/\&.ecasound/ecasoundrc\fP)\&. Syntax is same -as used by "-o" ecasound option (see ecasound(1) man page)\&. -This option overrides the \fIECAPLAY_OUTPUT_DEVICE\fP environment -variable (more info below)\&. -.IP -.IP "-p" -Play tracks in the playlist (in looped mode)\&. See also -options \fI-f, -l and -q\fP\&. -.IP -.IP "-q" -Queue new tracks to the playlist\&. All filenames given on -the command-line will be added to the the playlist\&. It is -possible to queue new tracks while another instance of -ecaplay is using the playlist\&. See also options \fI-f, -l -and -p\fP\&. -.IP -\fBECASIGNALVIEW\fP -.PP -Ecasignalview is meant for monitoring signal amplitude and peak -statistics\&. It accepts the following options: -.PP -.IP "input" -The first option not starting with a \&'-\&' is interpreted -as an input string\&. This can be a device or a filename\&. All formats -supported by libecasound are accepted\&. Defaults to \&'/dev/dsp\&'\&. -.IP -.IP "output" -Similarly to input, second option not starting with a \&'-\&' -is interpreted as output\&. Defaults to \&'null\&'\&. -.IP -.IP "-b:buffersize" -Buffersize in sample frames\&. Defaults to 128\&. -.IP -.IP "-c" -Enable cumulative mode\&. Counters are not reseted after refresh\&. -\fI*deprecated*\fP -.IP -.IP "-d" -Enable debug mode\&. -.IP -.IP "-f:format_string" -Specify default audio format\&. See ecasound(1) for details\&. -.IP -.IP "-r:rate_msec" -Specify screen refresh rate in milliseconds\&. -.IP -.IP "-I" -Use linear scale for showing audio sample amplitude\&. -.IP -.IP "-L" -Use logarithmic scale for showing audio sample amplitude\&. -.IP -.IP "-G, -B, -M*, -r, -z" -Ecasound options use to modify the engine behaviour, see -ecasound(1) manpage for details\&. -.IP -When ecasignalview is running, the following keyboard -commands can be used to control the operation (requires -system support for UNIX terminal interface control): -.PP -.IP "spacebar" -Reset statistics (max-peak, avg-amplitude and clipped -samples count)\&. -.IP -.IP "q or Q or Esc" -Quit ecasignalview\&. -.IP -It is also possible to reset the max-peak and clipped-samples -counters by sending a SIGHUP signal to the process (i\&.e\&. -from another console: "killall -v -HUP ecasignalview")\&. -.PP -More complete documentation for ecasignalview can be found -from "Ecasound User\&'s Guide" (see \&'\&'http://www\&.eca\&.cx/ecasound --> Documentation\&'\&')\&. -.PP -.SH "ENVIRONMENT" - -.PP -\fIECASOUND\fP -Path to the ecasound executable\&. Used by many ecatools\&. -.PP -\fIECAPLAY_OUTPUT_DEVICE\fP -Device ecaplay should use for audio output\&. Same syntax -as for ecaplay/ecasound "-o" option\&. -.PP -.SH "FILES" - -.PP -\fI~/\&.ecasound/ecasoundrc\fP -The default ecasound resource file\&. See ecasoundrc(5) -for details\&. -.PP -\fI~/\&.ecasound/ecaplay_queue\fP -File used to store the ecaplay playlist (one track per -line with full path)\&. -.PP -.SH "SEE ALSO" - -.PP -ecasound (1), ecalength(1), "HTML docs in the Documentation subdirectory" -.PP -.SH "AUTHOR" - -.PP -Kai Vehmanen, > diff --git a/library/ecasound/Documentation/ecaplay.1 b/library/ecasound/Documentation/ecaplay.1 deleted file mode 100644 index 824dc5713..000000000 --- a/library/ecasound/Documentation/ecaplay.1 +++ /dev/null @@ -1,220 +0,0 @@ -.TH "ecatools" "1" "12\&.11\&.2005" "" "Multimedia software" - -.PP -.SH "NAME" -ecatools \- audio processing utils based on ecasound -.PP -.SH "SYNOPSIS" -\fBecaconvert\fP \&.extension file1 [ file2 \&.\&.\&. fileN ] -.PP -\fBecafixdc\fP file1 [ file2 \&.\&.\&. fileN ] -.PP -\fBecalength\fP file1 [ file2 \&.\&.\&. fileN ] -.PP -\fBecamonitor\fP [host][:port] -.PP -\fBecanormalize\fP file1 [ file2 \&.\&.\&. fileN ] -.PP -\fBecaplay\fP [-dfhklopq] [ file1 file2 \&.\&.\&. fileN ] -.PP -\fBecasignalview\fP [ options ] [ input ] [ output ] -.PP -.SH "DESCRIPTION" - -.PP -Ecatools are simple command line utils for audio file processing\&. -Each tool is designed to perform one specific operation\&. Most of -the tools also support batch processing\&. -.PP -\fBECACONVERT\fP -.PP -A tool for converting a set of files to a common target format\&. -This target format is given as the first command line -argument, and its syntax is \fI\&.ext\fP\&. -.PP -\fBECAFIXDC\fP -.PP -A simple command-line tool for fixing DC-offset\&. -.PP -\fBECALENGTH\fP -.PP -See the separate ecalength(1) man page\&. -.PP -\fBECAMONITOR\fP -.PP -Ecamonitor is a util program that can be used -to monitor an active ecasound session\&. Ecamonitor -is able to show information about the current -chainsetup such as list of inputs, outputs, -current position, effects, the engine status -and numerous other things\&. -.PP -By default ecamonitor will try to connect -to IP4 address "localhost", to port "2868"\&. -A different address can be specified when -starting ecamonitor, for example -"ecamonitor foo\&.mynetwork\&.com" or -"ecamonitor foo\&.mynetwork\&.com:4500"\&. -.PP -To enable inbound connections, ecasound has to be -started with the \fI--daemon\fP option\&. Ecamonitor is -implemented in Python using the NetECI API\&. -.PP -\fBECANORMALIZE\fP -.PP -Ecanormalize is a command-line tool for normalizing audio -files to utilize the full available sample resolution\&. Ecanormalize -first finds out how much the input file can be amplified without -clipping and if there is room for increase, a static gain will -be applied to the file\&. -.PP -\fBECAPLAY\fP -.PP -Ecaplay is a command-line tool for playing audio files\&. Ecaplay -uses the libecasound engine and is thus able to handle all audio formats -supported by the library\&. -.PP -Files can be selected for playback either by specifying the -filenames on the command-line, or by using the playlist -mechanism\&. In playlist mode, files can be added to the playlist -using the \fI-q\fP option\&. The \fI-p\fP option can then be used -to play all tracks on the playlist\&. Ecaplay will repeat the -playlist tracks until explicitly stopped (with double Ctrl-C)\&. -Playlist can be flushed with \fI-f\fP and its contents listed -with \fI-l\fP option\&. -.PP -If not otherwise specified, ecaplay will use the audio output device -specified in \fI~/\&.ecasound/ecasoundrc\fP for playback\&. A different -output device can be selected with \fIECAPLAY_OUTPUT_DEVICE\fP shell -environment variable or with the \fI-o:output_device\fP command-line -option\&. -.PP -Playback can be stopped at any time with Ctrl-C\&. If multiple -files are played, first Ctrl-C will stop the current file and move -on to play the next one\&. Issuing Ctrl-C twice (within one second), -will cause ecaplay to exit\&. -.PP -.IP "-d:debuglevel" -Set libecasound debug level\&. See ecasound(1)\&. -.IP -.IP "-f" -Flush the playlist contents\&. See also -options \fI-l, -p and -q\fP\&. -.IP -.IP "-h" -Print usage information and exit\&. -.IP -.IP "-k:number" -Skip \&'number\&' of files\&. -.IP -.IP "-l" -List the current playlist contents to stdout\&. See also -options \fI-f, -p and -q\fP\&. -.IP -.IP "-o:output_device" -Use \&'output_device\&' instead of the default output device -(as specified in \fI~/\&.ecasound/ecasoundrc\fP)\&. Syntax is same -as used by "-o" ecasound option (see ecasound(1) man page)\&. -This option overrides the \fIECAPLAY_OUTPUT_DEVICE\fP environment -variable (more info below)\&. -.IP -.IP "-p" -Play tracks in the playlist (in looped mode)\&. See also -options \fI-f, -l and -q\fP\&. -.IP -.IP "-q" -Queue new tracks to the playlist\&. All filenames given on -the command-line will be added to the the playlist\&. It is -possible to queue new tracks while another instance of -ecaplay is using the playlist\&. See also options \fI-f, -l -and -p\fP\&. -.IP -\fBECASIGNALVIEW\fP -.PP -Ecasignalview is meant for monitoring signal amplitude and peak -statistics\&. It accepts the following options: -.PP -.IP "input" -The first option not starting with a \&'-\&' is interpreted -as an input string\&. This can be a device or a filename\&. All formats -supported by libecasound are accepted\&. Defaults to \&'/dev/dsp\&'\&. -.IP -.IP "output" -Similarly to input, second option not starting with a \&'-\&' -is interpreted as output\&. Defaults to \&'null\&'\&. -.IP -.IP "-b:buffersize" -Buffersize in sample frames\&. Defaults to 128\&. -.IP -.IP "-c" -Enable cumulative mode\&. Counters are not reseted after refresh\&. -\fI*deprecated*\fP -.IP -.IP "-d" -Enable debug mode\&. -.IP -.IP "-f:format_string" -Specify default audio format\&. See ecasound(1) for details\&. -.IP -.IP "-r:rate_msec" -Specify screen refresh rate in milliseconds\&. -.IP -.IP "-I" -Use linear scale for showing audio sample amplitude\&. -.IP -.IP "-L" -Use logarithmic scale for showing audio sample amplitude\&. -.IP -.IP "-G, -B, -M*, -r, -z" -Ecasound options use to modify the engine behaviour, see -ecasound(1) manpage for details\&. -.IP -When ecasignalview is running, the following keyboard -commands can be used to control the operation (requires -system support for UNIX terminal interface control): -.PP -.IP "spacebar" -Reset statistics (max-peak, avg-amplitude and clipped -samples count)\&. -.IP -.IP "q or Q or Esc" -Quit ecasignalview\&. -.IP -It is also possible to reset the max-peak and clipped-samples -counters by sending a SIGHUP signal to the process (i\&.e\&. -from another console: "killall -v -HUP ecasignalview")\&. -.PP -More complete documentation for ecasignalview can be found -from "Ecasound User\&'s Guide" (see \&'\&'http://www\&.eca\&.cx/ecasound --> Documentation\&'\&')\&. -.PP -.SH "ENVIRONMENT" - -.PP -\fIECASOUND\fP -Path to the ecasound executable\&. Used by many ecatools\&. -.PP -\fIECAPLAY_OUTPUT_DEVICE\fP -Device ecaplay should use for audio output\&. Same syntax -as for ecaplay/ecasound "-o" option\&. -.PP -.SH "FILES" - -.PP -\fI~/\&.ecasound/ecasoundrc\fP -The default ecasound resource file\&. See ecasoundrc(5) -for details\&. -.PP -\fI~/\&.ecasound/ecaplay_queue\fP -File used to store the ecaplay playlist (one track per -line with full path)\&. -.PP -.SH "SEE ALSO" - -.PP -ecasound (1), ecalength(1), "HTML docs in the Documentation subdirectory" -.PP -.SH "AUTHOR" - -.PP -Kai Vehmanen, > diff --git a/library/ecasound/Documentation/ecasignalview.1 b/library/ecasound/Documentation/ecasignalview.1 deleted file mode 100644 index 824dc5713..000000000 --- a/library/ecasound/Documentation/ecasignalview.1 +++ /dev/null @@ -1,220 +0,0 @@ -.TH "ecatools" "1" "12\&.11\&.2005" "" "Multimedia software" - -.PP -.SH "NAME" -ecatools \- audio processing utils based on ecasound -.PP -.SH "SYNOPSIS" -\fBecaconvert\fP \&.extension file1 [ file2 \&.\&.\&. fileN ] -.PP -\fBecafixdc\fP file1 [ file2 \&.\&.\&. fileN ] -.PP -\fBecalength\fP file1 [ file2 \&.\&.\&. fileN ] -.PP -\fBecamonitor\fP [host][:port] -.PP -\fBecanormalize\fP file1 [ file2 \&.\&.\&. fileN ] -.PP -\fBecaplay\fP [-dfhklopq] [ file1 file2 \&.\&.\&. fileN ] -.PP -\fBecasignalview\fP [ options ] [ input ] [ output ] -.PP -.SH "DESCRIPTION" - -.PP -Ecatools are simple command line utils for audio file processing\&. -Each tool is designed to perform one specific operation\&. Most of -the tools also support batch processing\&. -.PP -\fBECACONVERT\fP -.PP -A tool for converting a set of files to a common target format\&. -This target format is given as the first command line -argument, and its syntax is \fI\&.ext\fP\&. -.PP -\fBECAFIXDC\fP -.PP -A simple command-line tool for fixing DC-offset\&. -.PP -\fBECALENGTH\fP -.PP -See the separate ecalength(1) man page\&. -.PP -\fBECAMONITOR\fP -.PP -Ecamonitor is a util program that can be used -to monitor an active ecasound session\&. Ecamonitor -is able to show information about the current -chainsetup such as list of inputs, outputs, -current position, effects, the engine status -and numerous other things\&. -.PP -By default ecamonitor will try to connect -to IP4 address "localhost", to port "2868"\&. -A different address can be specified when -starting ecamonitor, for example -"ecamonitor foo\&.mynetwork\&.com" or -"ecamonitor foo\&.mynetwork\&.com:4500"\&. -.PP -To enable inbound connections, ecasound has to be -started with the \fI--daemon\fP option\&. Ecamonitor is -implemented in Python using the NetECI API\&. -.PP -\fBECANORMALIZE\fP -.PP -Ecanormalize is a command-line tool for normalizing audio -files to utilize the full available sample resolution\&. Ecanormalize -first finds out how much the input file can be amplified without -clipping and if there is room for increase, a static gain will -be applied to the file\&. -.PP -\fBECAPLAY\fP -.PP -Ecaplay is a command-line tool for playing audio files\&. Ecaplay -uses the libecasound engine and is thus able to handle all audio formats -supported by the library\&. -.PP -Files can be selected for playback either by specifying the -filenames on the command-line, or by using the playlist -mechanism\&. In playlist mode, files can be added to the playlist -using the \fI-q\fP option\&. The \fI-p\fP option can then be used -to play all tracks on the playlist\&. Ecaplay will repeat the -playlist tracks until explicitly stopped (with double Ctrl-C)\&. -Playlist can be flushed with \fI-f\fP and its contents listed -with \fI-l\fP option\&. -.PP -If not otherwise specified, ecaplay will use the audio output device -specified in \fI~/\&.ecasound/ecasoundrc\fP for playback\&. A different -output device can be selected with \fIECAPLAY_OUTPUT_DEVICE\fP shell -environment variable or with the \fI-o:output_device\fP command-line -option\&. -.PP -Playback can be stopped at any time with Ctrl-C\&. If multiple -files are played, first Ctrl-C will stop the current file and move -on to play the next one\&. Issuing Ctrl-C twice (within one second), -will cause ecaplay to exit\&. -.PP -.IP "-d:debuglevel" -Set libecasound debug level\&. See ecasound(1)\&. -.IP -.IP "-f" -Flush the playlist contents\&. See also -options \fI-l, -p and -q\fP\&. -.IP -.IP "-h" -Print usage information and exit\&. -.IP -.IP "-k:number" -Skip \&'number\&' of files\&. -.IP -.IP "-l" -List the current playlist contents to stdout\&. See also -options \fI-f, -p and -q\fP\&. -.IP -.IP "-o:output_device" -Use \&'output_device\&' instead of the default output device -(as specified in \fI~/\&.ecasound/ecasoundrc\fP)\&. Syntax is same -as used by "-o" ecasound option (see ecasound(1) man page)\&. -This option overrides the \fIECAPLAY_OUTPUT_DEVICE\fP environment -variable (more info below)\&. -.IP -.IP "-p" -Play tracks in the playlist (in looped mode)\&. See also -options \fI-f, -l and -q\fP\&. -.IP -.IP "-q" -Queue new tracks to the playlist\&. All filenames given on -the command-line will be added to the the playlist\&. It is -possible to queue new tracks while another instance of -ecaplay is using the playlist\&. See also options \fI-f, -l -and -p\fP\&. -.IP -\fBECASIGNALVIEW\fP -.PP -Ecasignalview is meant for monitoring signal amplitude and peak -statistics\&. It accepts the following options: -.PP -.IP "input" -The first option not starting with a \&'-\&' is interpreted -as an input string\&. This can be a device or a filename\&. All formats -supported by libecasound are accepted\&. Defaults to \&'/dev/dsp\&'\&. -.IP -.IP "output" -Similarly to input, second option not starting with a \&'-\&' -is interpreted as output\&. Defaults to \&'null\&'\&. -.IP -.IP "-b:buffersize" -Buffersize in sample frames\&. Defaults to 128\&. -.IP -.IP "-c" -Enable cumulative mode\&. Counters are not reseted after refresh\&. -\fI*deprecated*\fP -.IP -.IP "-d" -Enable debug mode\&. -.IP -.IP "-f:format_string" -Specify default audio format\&. See ecasound(1) for details\&. -.IP -.IP "-r:rate_msec" -Specify screen refresh rate in milliseconds\&. -.IP -.IP "-I" -Use linear scale for showing audio sample amplitude\&. -.IP -.IP "-L" -Use logarithmic scale for showing audio sample amplitude\&. -.IP -.IP "-G, -B, -M*, -r, -z" -Ecasound options use to modify the engine behaviour, see -ecasound(1) manpage for details\&. -.IP -When ecasignalview is running, the following keyboard -commands can be used to control the operation (requires -system support for UNIX terminal interface control): -.PP -.IP "spacebar" -Reset statistics (max-peak, avg-amplitude and clipped -samples count)\&. -.IP -.IP "q or Q or Esc" -Quit ecasignalview\&. -.IP -It is also possible to reset the max-peak and clipped-samples -counters by sending a SIGHUP signal to the process (i\&.e\&. -from another console: "killall -v -HUP ecasignalview")\&. -.PP -More complete documentation for ecasignalview can be found -from "Ecasound User\&'s Guide" (see \&'\&'http://www\&.eca\&.cx/ecasound --> Documentation\&'\&')\&. -.PP -.SH "ENVIRONMENT" - -.PP -\fIECASOUND\fP -Path to the ecasound executable\&. Used by many ecatools\&. -.PP -\fIECAPLAY_OUTPUT_DEVICE\fP -Device ecaplay should use for audio output\&. Same syntax -as for ecaplay/ecasound "-o" option\&. -.PP -.SH "FILES" - -.PP -\fI~/\&.ecasound/ecasoundrc\fP -The default ecasound resource file\&. See ecasoundrc(5) -for details\&. -.PP -\fI~/\&.ecasound/ecaplay_queue\fP -File used to store the ecaplay playlist (one track per -line with full path)\&. -.PP -.SH "SEE ALSO" - -.PP -ecasound (1), ecalength(1), "HTML docs in the Documentation subdirectory" -.PP -.SH "AUTHOR" - -.PP -Kai Vehmanen, > diff --git a/library/ecasound/Documentation/ecasound-iam.1 b/library/ecasound/Documentation/ecasound-iam.1 deleted file mode 100644 index badac29ac..000000000 --- a/library/ecasound/Documentation/ecasound-iam.1 +++ /dev/null @@ -1,722 +0,0 @@ -.TH "ecasound-iam" "1" "11\&.10\&.2009" "" "Multimedia software" - -.PP -.SH "NAME" -ecasound-iam \- ecasound interactive mode -.SH "SYNOPSIS" - -.PP -.SH "DESCRIPTION" - -.PP -Ecasound library contains an interpreter module that understands -a set of commands aimed at controlling various library services\&. -This is called the ecasound interactive mode (EIAM)\&. All programs -linked to ecasound library can use this facility\&. -.PP -.SH "ECI API and return types" -A special case of interactive mode use is ecasound\&'s control interface (ECI), -which is a small library providing easy access to the interactive -mode commands from outside of libecasound\&. When issuing inter commands using -the control interface, it\&'s possible that commands also return information\&. -Currently supported return value types are: string [s], list of strings [S] -(elements separated by commas; escaped if necessary), integer [i], -long integer [li] and floating-point number [f]\&. These definitions are -used throughout this document\&. Commands that return nothing (void) are -marked with [-]\&. Additionally, return type [e] marks an error condition\&. -When an interactive mode command results in an error, an error string -explaining the condition is returned\&. -.PP -.SH "Real-time commands" -It\&'s not possible to use all interactive mode commands to modify and -control objects that belong to a connected chainsetup\&. Commands that -do NOT support this are: -.PP -.RS -cs-remove, cs-set-length, cs-set-length-samples, cs-toggle-loop, -cs-set-param, cs-option, -c-add, c-remove, c-rename, c-clear, -ai-add, ai-remove, ai-attach, ai-forward, ai-rewind, ai-set-position, -ai-set-position-samples, -ao-add, ao-add-default, ao-remove, ao-attach, ao-forward, ao-rewind, -ao-set-position, ao-set-position-samples\&. -.RE - -.PP -If one of these commands is issued when a chainsetup is connected, -ecasound will first stop and disconnect the chainsetup, process -the command, and the reconnect\&. -.PP -In addition, most non-modifying (const) commands work with -connected setups\&. -.PP -.SH "GENERAL" -.IP "quit, q" -Quit ecasound session\&. What this means in practice depends on the -client implementation\&. In ecasound interactive mode, \&'quit\&' terminates -the ecasound process\&. When sent over ecasound server connection (aka -NetECI), \&'quit\&' terminates the active network connection, but does not -terminate the ecasound server process\&. \fI[-]\fP -.IP -.IP "start, t" -Processing is started (play)\&. Error string is return if any errors upon -startup are encountered\&. \fI[e]\fP -.IP -.IP "stop, s" -Stop processing\&. \fI[-]\fP -.IP -.IP "run" -Like \&'start\&' but blocks until processing is finished\&. Error string -is return if any errors upon startup, or during process, are -encountered\&. \fI[e]\fP -.IP -.IP "debug \&'debug-level\&'" -Set debug level to \&'debug-level\&'\&. Notice that client programs can -reimplement the debug routines\&. \fI[-]\fP - -.PP -.IP "resource-file \&'path-to-file\&'" -Overrides the global and user resource files\&. Does not affect -already created objects\&. This command is equivalent to \&'-R\&' ecasound -option (see ecasound (1) man page)\&. -.PP -.IP "-prefix:arg1,\&.\&.\&.,argN" -Equivalent to issuing \&'cs-option -prefix:arg1,\&.\&.\&.,argN)\&. See documentation -for \&'cs-option\&'\&. -.PP -.IP "help\&', \&'h\&'" -Help! \fI[-]\fP -.PP -.SH "GLOBAL" - -.IP -.IP "engine-status" -Returns a string describing the engine status (running, stopped, -finished, error, not ready)\&. See also \fIcs-status\fP\&. \fI[s]\fP -.PP -.IP "engine-launch" -Starts the real-time engine\&. Engine will execute the currently -connected chainsetup (see \&'cs-connect)\&. This action does not yet -start actual processing (see \fIstart\fP and \fIstop\fP)\&. When -ecasound is used as a JACK client, issuing \fIengine-launch\fP -makes ecasound an active JACK client (i\&.e\&. ecasound\&'s ports -can be connected to other JACK clients)\&. \fI[-]\fP -.PP -.IP "engine-halt" -Stops the engine\&. Does not disconnect the chainsetup that -was running\&. See also \fIcs-disconnet\fP and \fIstop\fP\&. When -ecasound is used as a JACK client, \fIengine-halt\fP will -cause ecasound to become a deactivated client (all JACK -connections are torn down)\&. \fI[-]\fP -.PP -.SH "CHAINSETUPS" -Chainsetup is the central data object\&. All other objects (inputs, -outputs, chains, etc) are connected to some chainsetup\&. There can be -many chainsetups but only one can be connected\&. Similarly only -one chainsetup can be selected\&. If not otherwise specified operations -are done on the selected chainsetup\&. Some operations also require -that selected chainsetup is not connected\&. -.IP -.IP "cs-add \&'name\&'" -Adds a new chainsetup with name \&'name\&'\&. \&'name\&' is now -the selected chainsetup\&. \fI[-]\fP -.PP -.IP "cs-remove" -Removes currently selected chainsetup\&. \fI[-]\fP -.PP -.IP "cs-list" -Returns a list of all chainsetups\&. \fI[S]\fP -.PP -.IP "cs-select \&'name\&'" -Selects chainsetup \&'name\&'\&. \fI[-]\fP -.PP -.IP "cs-selected" -Returns the name of currently selected chainsetup\&. \fI[s]\fP -.PP -.IP "cs-index-select \&'cs_index\&', cs-iselect \&'cs_index\&'" -Selects a chainsetup based on a short index string\&. Chainsetup names -can be rather long\&. This command can be used to avoid typing -these long names\&. \&'cs_index\&' is an integer value, where \&'1\&' refers to -the first audio input/output\&. You can use \&'cs-list\&' and \&'cs-status\&' -to get a full list of currently available chainsetups\&. \fI[-]\fP -.PP -.IP "cs-load \&'filename\&'" -Adds a new chainsetup by loading it from file \&'filename\&'\&. -\&'filename\&' is now the selected chainsetup\&. \fI[-]\fP -.PP -.IP "cs-save" -Saves the currently selected chainsetup to file\&. If chainsetup was loaded -from a file, the saved version will replace the original\&. If it doesn\&'t -have a default filename, it\&'s saved to "chainsetup_name\&.ecs"\&. \fI[-]\fP -.PP -.IP "cs-save-as \&'filename\&'" -Saves currently selected chainsetup to file \&'filename\&'\&. \fI[-]\fP -.PP -.IP "cs-edit" -Currently selected chainsetup is saved to a temporary file\&. This -file is loaded to an external editor (see ecasoundrc (5))\&. After -editing, the chainsetup is loaded back to ecasound\&. \fI[-]\fP -.PP -.IP "cs-is-valid" -Whether currently selected chainsetup is valid (=can be connected)? \fI[i]\fP -.PP -.IP "cs-connect" -Connect currently selected chainsetup to engine\&. When connecting, -all resources (e\&.g\&. files, soundcard devices, external programs) needed -to execute the chainsetup are reserved\&. Only one chainsetup can be connected -at a time\&. Error string is returned if connection fails (for instance -due to error in allocating the resources)\&. \fI[e]\fP -.PP -.IP "cs-disconnect" -Disconnect currently connected chainsetup\&. This action will free -all external resources needed by the chainsetup\&. \fI[-]\fP -.PP -.IP "cs-connected" -Returns the name of currently connected chainsetup\&. \fI[s]\fP -.PP -.IP "cs-rewind \&'time-in-seconds\&', rewind \&'time-in-seconds\&', rw \&'time-in-seconds\&'" -Rewinds the current chainsetup position by \&'time-in-seconds\&' seconds\&. -Position of all inputs and outputs attached to the selected chainsetup -is also affected\&. \fI[-]\fP -.PP -.IP "cs-forward \&'time-in-seconds\&', forward \&'time-in-seconds\&', fw \&'ttime-in-seconds\&'" -The current chainsetup position is forwarded by \&'time-in-seconds\&' -seconds\&. Position of all inputs and outputs attached to the selected chainsetup -is also affected\&. \fI[-]\fP -.PP -.IP "cs-set-position \&'time-in-seconds\&', cs-setpos \&'time-in-seconds\&', setpos \&'time-in-seconds\&', set-position \&'time-in-seconds\&'" -Sets the chainsetup position to \&'time-in-seconds\&' seconds from the -beginning\&. Position of all inputs and outputs attached to the selected -chainsetup is also affected\&. \fI[-]\fP -.PP -.IP "cs-set-position-samples \&'time-in-samples\&'" -Sets the chainsetup position to \&'time-in-samples\&' samples from the -beginning\&. Position of all inputs and outputs attached to the selected -chainsetup is also affected\&. \fI[-]\fP -.PP -.IP "cs-get-position, cs-getpos, getpos, get-position" -Returns the current chainsetup position in seconds\&. \fI[f]\fP -.PP -.IP "cs-get-position-samples" -Returns the current chainsetup position in samples\&. \fI[li]\fP -.PP -.IP "cs-get-length, get-length" -Returns the chainsetup length in seconds (if known)\&. \fI[f]\fP -.PP -.IP "cs-get-length-samples, get-length-samples" -Returns the chainsetup length in samples (if known)\&. \fI[li]\fP -.PP -.IP "cs-set-length \&'seconds\&'" -Sets processing time in seconds (doesn\&'t have to be an integer value)\&. -A special-case value of \&'-1\&' will set the chainsetup length -according to the longest input object\&. \fI[-]\fP -.PP -.IP "cs-set-length-samples \&'samples\&'" -Sets processing time in samples\&. \fI[-]\fP -.PP -.IP "cs-toggle-loop" -Toggle looping\&. When processing is finished, engine will start -again from the initial position\&. It\&'s not always possible to enable looping -(for instance all inputs and outputs have infinite length and -chainsetup length is not explicitly set with \&'cs-set-length\&')\&. \fI[-]\fP -.PP -.IP "cs-set-param" -Interpret general chainsetup parameters like for example -"-b" (buffersize), "-n" (name), etc\&. See ecasound (1) for -more info\&. \fI[-]\fP -.PP -.IP "cs-set-audio-format \&'bits,channels,sample_rate\&'" -Set the default sample parameters for currently selected chainsetup\&. -For example cd-quality audio would be "16,2,44100"\&. This does the -same as command-line argument "-f" (see ecasound (1))\&. \fI[-]\fP -.PP -.IP "cs-status, status, st" -Prints out status information about available chainsetup\&. -Detailed information is printed out for connected (=available -for running) nd selected (=available for editing) chainsetups\&. -Other chainsetups are listed, but further details are -suppressed\&. To get full details of a specific chainsetup, -select it with \&'cs-select\&' or \&'cs-iselect\&', and then -issue \&'cs-select\&'\&. \fI[s]\fP -.PP -.IP "cs-option \&'-prefix:arg1,\&.\&.\&.,argN\&'" -One powerful feature of the interactive-mode is that it -provides full access to ecasound\&'s command-line syntax\&. -For instance, command "cs-option -efb:400,200" means that -a bandpass filter is added to the currently selected -chain, with initial parameters 400 (center frequency) -and 200 (width in Hz)\&. -.PP -Note that session level options (such as setting debug level) -can not be used with \&'cs-option\&' (i\&.e\&. only options that modify -chainsetups)\&. -.PP -Note! Ecasound interactive mode implicitly interprets all strings -beginning with a \&'-\&' as "cs-option string"\&. - -.IP -.SH "CHAINS" -Chain is a simple signal flow abstraction\&. Every chain has one input -and one output\&. All chain operators and their controllers are attached -to chains\&. Chains can be muted, unmuted and be bypassed\&. If not -otherwise stated, all operations are done to currently selected -chainsetup\&. -.IP -.IP "c-add \&'cname1,\&.\&.\&.,cnameN\&'" -Adds a set of chains\&. Added chains are automatically selected\&. Note -that commas in chain names are not allowed\&. \fI[-]\fP -.PP -.IP "c-remove" -Removes selected chains\&. \fI[-]\fP -.PP -.IP "c-list" -Returns a list of all chains\&. \fI[S]\fP -.PP -.IP "c-select \&'cname1,\&.\&.\&.,cnameN\&'" -Selects chains\&. Other chains are automatically deselected\&. \fI[-]\fP -.PP -.IP "c-index-select \&'index1,\&.\&.\&.,indexN\&', c-iselect \&'index1,\&.\&.\&.,indexN\&'" -Selects a set of chains based on the list of indixes\&. Each index is -an integer value, where \&'1\&' refers to the first chain\&. You can use -\&'c-list\&' and \&'c-status\&' to get a full list of currently available -chains\&. \fI[-]\fP -.PP -.IP "c-select-all" -Selects all chains\&. \fI[-]\fP -.PP -.IP "c-select-add \&'cname1,\&.\&.\&.,cnameN\&'" -Selects more chains\&. \fI[-]\fP -.PP -.IP "c-deselect \&'cname1,\&.\&.\&.,cnameN\&'" -Deselects chains\&. \fI[-]\fP -.PP -.IP "c-selected" -Returns a list of selected chains\&. \fI[S]\fP -.PP -.IP "c-clear" -Clear selected chains by removing all chain operators and controllers\&. -Doesn\&'t change how chains are connected to inputs and outputs\&. \fI[-]\fP -.PP -.IP "c-rename \&'new_name\&'" -Renames the selected chain\&. When using this command, exactly one chain must -be selected\&. \fI[-]\fP -.PP -.IP "c-muting, c-mute" -Toggle chain muting\&. When chain is muted, all data that goes through -is muted\&. \fI[-]\fP -.PP -.IP "c-bypass" -Toggle chain bypassing\&. When chain is bypassed, sample data is passed -through unprocessed (all chain operators are disabled for the given -chain)\&. \fI[-]\fP -.PP -.IP "c-status, cs" -Print status info about all chains\&. \fI[s]\fP -.PP -.SH "AUDIO INPUT/OUTPUT OBJECTS" -If not otherwise stated, all operations are done to currently selected -object\&. All commands with \fIai-\fP prefix operate on audio inputs, -while commands with \fIao-\fP operate on outputs\&. -.IP -.IP "ai-add \&'input_format_string\&'" -Adds a new input object\&. See ecasound (1) man page for more info about -the argument format (\&'-i\&' option)\&. Note on syntax: if any of -the parameters (such as a filename) contains commas, the parameter -should be enclosed in double-quotes\&. \fI[-]\fP -.PP -.IP "ao-add \&'output_format_string\&'" -Adds a new output object\&. See ecasound (1) man page for more info about -the argument format (\&'-o\&' option)\&. If argument is omitted, -a default output device is added (see ecasoundrc (5))\&. Note on syntax: if any -of the parameters (such as a filename) contains commas, the parameter -should be enclosed in double-quotes\&. \fI[-]\fP -.PP -.IP "ao-add-default" -Adds the default output device (see ecasoundrc (5))\&. \fI[-]\fP -.PP -.IP "ai-describe, ao-describe" -Returns a Ecasound Option Syntax (EOS) compliant string -describing the input/output\&. See the Ecasound User\&'s Guide -for more information about EOS\&. This command was introduced in -ecasound 2\&.4\&.4\&. \fI[s]\fP -.PP -.IP "ai-select \&'aobject_name\&', ao-select \&'aobject_name\&'" -Selects an audio object\&. \&'aobject_name\&' refers to the string -used when creating the object (the first argument given to ai-add/ao-add)\&. -Note that as a important difference to ai-add/ao-add, one should not -enclose the object name in double quotes for ai-select/ao-select\&. In the -case a chainsetup contains multiple inputs, or outputs, with -identical name, \&'ai-select\&' and \&'ao-select\&' will select -the first matching instance\&. In order to select a specific -instance, the \&'ai-iselect\&' and \&'ao-iselect\&' commands need to -be used\&. \fI[-]\fP -.PP -.IP "ai-index-select \&'aobject_index\&', ai-iselect \&'aobject_index\&', ao-index-select \&'aobject_index\&', ao-iselect \&'aobject_index\&'" -Select some audio object based on a short index string\&. Especially file -names can be rather long\&. This command can be used to avoid typing -these long names when selecting audio objects\&. \&'aobject_index\&' is -an integer value, where \&'1\&' refers to the first audio input/output\&. -You can use \&'ai-list\&' and \&'ao-list\&' to get a full list of currently -available inputs/outputs\&. \fI[-]\fP -.PP -.IP "ai-selected, ao-selected" -Returns the name of the currently selected audio object\&. \fI[s]\fP -.PP -.IP "ai-attach, ao-attach" -Attaches the currently selected audio object to all selected chains\&. \fI[-]\fP -.PP -.IP "ai-remove, ao-remove" -Removes the currently selected audio object from the chainsetup\&. \fI[-]\fP -.PP -.IP "ai-forward \&'time_in_seconds\&', ai-fw \&'time_in_seconds\&', ao-forward \&'time_in_seconds\&', ao-fw \&'time_in_seconds\&'" -Selected audio object is forwarded by \&'time-in-seconds\&' seconds\&. -Time should be given as a floating point value (eg\&. 0\&.001 is the -same as 1ms)\&. \fI[-]\fP -.PP -.IP "ai-rewind \&'time_in_seconds\&', ai-rw \&'time_in_seconds\&', ao-rewind \&'time_in_seconds\&', ao-rw \&'time_in_seconds\&'" -Selected audio object is rewinded by \&'time-in-seconds\&' seconds\&. -Time should be given as a floating point value (eg\&. 0\&.001 is the -same as 1ms)\&. \fI[-]\fP -.PP -.IP "ai-setpos \&'time_in_seconds\&', ai-set-position \&'time_in_seconds\&', ao-setpos \&'time_in_seconds\&', ao-set-position \&'time_in_seconds\&'" -Set audio object position to \&'time_in_seconds\&'\&. \fI[-]\fP -.PP -.IP "ai-set-position-samples \&'time_in_samples\&', ao-set-position-samples \&'time_in_samples\&'" -Set audio object position to \&'time_in_samples\&'\&. \fI[-]\fP -.PP -.IP "ai-getpos, ai-get-position, ao-getpos, ao-get-position" -Returns the audio object position in seconds\&. \fI[f]\fP -.PP -.IP "ai-get-position-samples, ao-get-position-samples" -Returns the audio object position in samples\&. \fI[li]\fP -.PP -.IP "ai-get-length, ao-get-length" -Returns the audio object length in seconds\&. \fI[f]\fP -.PP -.IP "ai-get-length-samples, ao-get-length-samples" -Returns the audio object length in samples\&. \fI[li]\fP -.PP -.IP "ai-get-format, ao-get-format" -Returns the audio format of the selected audio input/output as a -formatted string\&. See documentation for \&'-f\&' command-line option\&. \fI[s]\fP -.PP -.IP "ai-list, ao-list" -Returns a list of all input/output objects\&. \fI[S]\fP -.PP -.IP "aio-register" -Prints a list of registered audio object types\&. \fI[s]\fP -.PP -.IP "aio-status" -Audio object status (index strings, position, length, etc)\&. \fI[s]\fP -.PP -.SH "CHAIN OPERATORS" -Chain operators are used to process and analyze sample data\&. -They are attached to chains\&. If not otherwise stated, -currently selected chainsetup and chain are used\&. Also, -\&'chainop_id\&' and \&'param_id\&' are used to select chain operators -and their parameters\&. First valid value for these parameters -is 1\&. -.IP -.IP "cop-add \&'cop_format_string\&'" -Adds a new chain operator\&. In addition to normal chain operators, -this commmand can also be used to add effect presets and various -plugins\&. Note; it is not possible to add operators to multiple -chains at once\&. In other words only one chain should be selected -when issuing \&'cop-add\&'\&. See ecasound (1) man page for more info\&. \fI[-]\fP -.PP -.IP "cop-describe" -Returns a Ecasound Option Syntax (EOS) compliant string -describing the chain operator\&. See the Ecasound User\&'s Guide -for more information about EOS\&. This command was introduced in -ecasound 2\&.4\&.4\&. \fI[s]\fP -.PP -.IP "cop-remove" -Removes the selected chain operator\&. \fI[-]\fP -.PP -.IP "cop-list" -Returns a list of all chain operators attached to the currently -selected chain\&. \fI[S]\fP -.PP -.IP "cop-select \&'param_id\&', cop-index-select \&'param_id\&', cop-iselect \&'param_id\&'" -Selects a chain operator\&. \fI[-]\fP -.PP -.IP "cop-selected" -Returns the index number of currently selected chain operator\&. \fI[i]\fP -.PP -.IP "cop-set \&'chainop_id,param_id,value\&'" -Changes the value of a single chain operator parameter\&. Unlike other -chain operator commands, this can also be used during processing\&. -See also \&'cop-get\&'\&. \fI[-]\fP -.PP -.IP "cop-get \&'chainop_id,param_id\&'" -Returns the current value of chain operator parameter identified by -\&'chainop_id\&' and \&'param_id\&'\&. This command is a shorthand for -\&'cop-select chainop_id ; copp-iselect param_id ; copp-get\&'\&. \fI[f]\fP -.PP -.IP "cop-status" -Returns info about chain operator status\&. \fI[s]\fP -.PP -.IP "copp-list" -Returns a list of selected chain operator\&'s parameters\&. \fI[S]\fP -.PP -.IP "copp-select \&'param_id\&', copp-index-select \&'param_id\&', copp-iselect \&'param_id\&'" -Selects a chain operator parameter\&. \fI[-]\fP -.PP -.IP "copp-selected" -Returns the index number of currently selected chain operator parameter\&. \fI[i]\fP -.PP -.IP "copp-set \&'value\&'" -Sets the selected parameter value to \&'value\&'\&. \fI[-]\fP -.PP -.IP "copp-get" -Returns the selected parameter value\&. See also \&'cop-get\&'\&. \fI[f]\fP -.PP -.IP "cop-register" -Prints a list of registered chain operators\&. \fI[s]\fP -.PP -.IP "preset-register" -Prints a list of registered effect presets\&. \fI[s]\fP -.PP -.IP "ladspa-register" -Prints a list of registered LADSPA plugins\&. \fI[s]\fP -.PP -.SH "CONTROLLERS" -Controllers are used to control individual chain operator parameters\&. -They are attached to chains\&. If not otherwise stated, currently -selected chainsetup and chains are used\&. -.IP -.IP "ctrl-add \&'copc_format_string\&'" -Adds a new controller and attach it to currently selected chain -operator\&. The argument syntax is either "-:par1,\&.\&.\&.,parN" -or just ":par1,\&.\&.\&.,parN"\&. If parameter itself contains -commas, the parameter should be enclosed in double-quotes\&. -See ecasound (1) man page for more info\&. \fI[-]\fP -.IP -.IP "ctrl-describe" -Returns a Ecasound Option Syntax (EOS) compliant string -describing the controller\&. See the Ecasound User\&'s Guide -for more information about EOS\&. This command was introduced in -ecasound 2\&.4\&.4\&. \fI[s]\fP -.IP -.IP "ctrl-remove" -Removes the selected controller\&. \fI[-]\fP -.IP -.IP "ctrl-list" -Returns a list of all controllers attached to the currently -selected chain\&. \fI[S]\fP -.IP -.IP "ctrl-select \&'param_id\&', ctrl-index-select \&'param_id\&', ctrl-iselect \&'param_id\&'" -Selects a controller\&. \fI[-]\fP -.IP -.IP "ctrl-selected" -Returns the index number of currently selected controller\&. \fI[i]\fP -.IP -.IP "ctrl-status" -Returns info about controller status\&. \fI[s]\fP -.IP -.IP "ctrl-register" -Prints a list of registered controllers\&. \fI[s]\fP -.IP -.IP "ctrl-get-target" -Returns the index number of the chain operator that is -connected to the selected controller\&. The returned index -refers to the currently selected chain (see \&'cop-list\&')\&. \fI[i]\fP -.IP -.IP "ctrlp-list" -Returns a list of all controller parameters\&. This command was introduced in -ecasound 2\&.4\&.2\&. \fI[S]\fP -.IP -.IP "ctrlp-select" -Selects a controller parameter\&. This command was introduced in -ecasound 2\&.4\&.2\&. \fI[-]\fP -.IP -.IP "ctrlp-selected" -Returns the index number of currently selected controller parameter\&. This command -was introduced in ecasound 2\&.4\&.2\&. \fI[i]\fP -.IP -.IP "ctrlp-get" -Returns the selected controller parameter value\&. This command was introduced in -ecasound 2\&.4\&.2\&. \fI[f]\fP -.IP -.IP "ctrlp-set" -Sets the selected controller parameter value to \&'value\&'\&. This command was introduced in -ecasound 2\&.4\&.2\&. \fI[-]\fP -.IP -.SH "JACK CONNECTION MANAGEMENT" -If Ecasound is compiled with support for JACK audio server, -the following set of commands is provided for controlling connections -between JACK ports\&. -.IP -.IP "jack-connect \&'src-port\&' \&'dest-port\&'" -Make a connection between the two ports given as parameters\&. This command -is similar to the \&'jack_connect\&' command line tool that is distributed -with JACK package\&. \fI[-]\fP -.IP -.IP "jack-disconnect \&'src-port\&' \&'dest-port\&'" -Disconnect the two ports given as parameters\&. This command is similar -to the \&'jack_disconnect\&' command line tool that is distributed -with JACK package\&. \fI[-]\fP -.IP -.IP "jack-list-connections" -Returns a list of all JACK ports and a list of connections -for each port\&. This command is similar to the \&'jack_lsp\&' command -line tool (e\&.g\&. \&'jack_lsp -c\&') that is distributed with JACK package\&. \fI[s]\fP -.IP -.SH "INTERNAL COMMANDS" -Internal commands are not directly aimed at normal use\&. They -are primarily meant for use in scripting and frontends\&. -.IP -.IP "int-cmd-list" -Returns a list of all registered interactive mode commands\&. \fI[S]\fP -.IP -.IP "int-log-history" -Returns recent log messages sent by libecasound modules\&. This -is a good tool for debugging ECI/EIAM scripts and applications\&. This -command was introduced in ecasound 2\&.4\&.0\&. \fI[s]\fP -.IP -.IP "int-output-mode-wellformed" -Select the well-format output format for log messages\&. \fI[-]\fP -.IP -.IP "int-set-float-to-string-precision" -Sets precision used in float to text conversions\&. Note that -this can be used to control the precision of float return values -for ECI commands\&. \fI[-]\fP -.IP -.IP "int-set-log-history-length" -Sets the log history length\&. Defaults to 0 items\&. -This command was introduced in ecasound 2\&.4\&.0\&. \fI[-]\fP -.IP -.IP "int-cmd-version-string" -Returns ecasound interactive mode parser version string\&. \fI[s]\fP -.IP -.IP "int-cmd-version-lib-current" -Returns ecasound interactive mode library interface version (libtool)\&. \fI[i]\fP -.IP -.IP "int-cmd-version-lib-revision" -Returns ecasound interactive mode library interface revision (libtool)\&. \fI[i]\fP -.IP -.IP "int-cmd-version-lib-age" -Returns ecasound interactive mode library interface age (libtool)\&. \fI[i]\fP -.IP -.SH "OBJECT MAPS" -Object maps are central repositories for commonly used object types\&. -By querying the maps, applications can get a list of all registered -object types and their properties\&. -.IP -.IP "map-cop-list" -Prints a list of registered chain operators using -the format specified in section \fIOPERATOR DESCRIPTIONS\fP\&. \fI[s]\fP -.IP -.IP "map-preset-list" -Prints a list of registered effect presets using -the format specified in section \fIOPERATOR DESCRIPTIONS\fP\&. \fI[s]\fP -.IP -.IP "map-ladspa-list" -Prints a list of registered LADSPA plugins using -the format specified in section \fIOPERATOR DESCRIPTIONS\fP\&. \fI[s]\fP -.IP -.IP "map-ladspa-id-list" -Prints a list of registered LADSPA plugins using -the format specified in section \fIOPERATOR DESCRIPTIONS\fP\&. -Numerical LADPSA plugin identifiers are used\&. \fI[s]\fP -.IP -.IP "map-ctrl-list" -Prints a list of registered controllers using -the format specified in section \fIOPERATOR DESCRIPTIONS\fP\&. \fI[s]\fP -.IP -.SH "DUMP COMMANDS" -The following dump commands are not meant for normal use\&. -Their primary purpose is to provide an easy way to get -internal state information from libecasound\&. All dump -commands output a single line with syntax "key value" -to the selected output stream (defaults to stdout)\&. -.IP -.IP "dump-target \&'filename\&'" -Set target stream for dumping\&. \fI[-]\fP -.IP -.IP "dump-status" -Dumps engine status - \&'running\&', \&'stopped\&', \&'finished\&' or \&'notready\&'\&. \fI[-]\fP -.IP -.IP "dump-position" -Dumps the global position\&. Printed in seconds using a floating-point -representation\&. \fI[-]\fP -.IP -.IP "dump-length" -Dumps the overall processing length\&. Printed in seconds using a floating-point -representation\&. \fI[-]\fP -.IP -.IP "dump-cs-status" -Dumps status string for the currently selected chainsetup - \&'connected\&', -\&'selected\&' or an empty string\&. \fI[-]\fP -.IP -.IP "dump-c-selected" -Dumps the name of currently selected chain\&. \fI[-]\fP -.IP -.IP "dump-ai-selected" -Dumps label of currently selected audio input\&. If no input is -selected, dumps an empty string\&. \fI[-]\fP -.IP -.IP "dump-ai-position" -Dumps position of currently selected audio inputs\&. Printed in -seconds, using a floating-point representation\&. \fI[-]\fP -.IP -.IP "dump-ai-length" -Dumps length of currently selected audio input\&. Printed in seconds, -using a floating-point representation\&. \fI[-]\fP -.IP -.IP "dump-ai-open-state" -Dumps audio input state info\&. Either \&'open\&' or \&'closed\&'\&. \fI[-]\fP -.IP -.IP "dump-ao-selected" -Dumps label of currently selected audio output\&. If no output is -selected, dumps an empty string\&. \fI[-]\fP -.IP -.IP "dump-ao-position" -Dumps position of currently selected audio outputs\&. Printed in -seconds, using a floating-point representation\&. \fI[-]\fP -.IP -.IP "dump-ao-length" -Dumps length of currently selected audio output\&. Printed in seconds, -using a floating-point representation\&. \fI[-]\fP -.IP -.IP "dump-ao-open-state" -Dumps audio output state info\&. Either \&'open\&' or \&'closed\&'\&. \fI[-]\fP -.IP -.IP "dump-cop-value \&'chainop,param\&'" -Dumps chain operator parameter value\&. \&'chainop\&' and \&'param\&' are -operator and parameter index values (1\&.\&.\&.n)\&. \fI[-]\fP -.IP -.SH "OPERATOR DESCRIPTIONS" -The \fImap-xxx-list\fP commands return a string containing all registered -objects of the given type \fIxxx\fP\&. Each line of the output describes -one registered type\&. The used syntax is: -.IP -\&'keyword,name,description,num_of_params,par1_def,par2_def,\&.\&.\&.\&' -.IP -\fIparX_def\fP describes one object parameter\&. This definition -is present for all parameters of the described object type\&. -The used syntax is: -.IP -\&'name,description,defaultvalue,upper_bound_flag,upper_bound, -lower_bound_flag,lower_bound,toggled_flag,integer_flag, -logarithmic_flag,output_flag\&' -.IP -For exact descriptions of these fields, please see -the header file \fIecasound/libecasound/eca-operator\&.h\fP\&. -.IP -.SH "DEPRECATED COMMANDS" -Use of following commands is deprecated\&. They still work in -current version of Ecasound, but will be dropped in -the future: -.IP -.RS -ai-wave-edit, ao-wave-edit -.RE - -.IP -.SH "SEE ALSO" -ecasound (1), ecatools (1), ecasoundrc (5) -.IP -.SH "AUTHOR" - - Kai Vehmanen, > diff --git a/library/ecasound/Documentation/ecasound-iam_manpage.html b/library/ecasound/Documentation/ecasound-iam_manpage.html deleted file mode 100644 index c6b93aa08..000000000 --- a/library/ecasound/Documentation/ecasound-iam_manpage.html +++ /dev/null @@ -1,775 +0,0 @@ - -ecasound-iam - - - -


-

ecasound-iam

-

11.10.2009

- - - - - -
-

- - -ecasound-iam(1) - - - -
-

ecasound-iam(1)

-

Multimedia software

-

11.10.2009

- - -

-

NAME

ecasound-iam - ecasound interactive mode -

SYNOPSIS

-

-

DESCRIPTION

-

-Ecasound library contains an interpreter module that understands -a set of commands aimed at controlling various library services. -This is called the ecasound interactive mode (EIAM). All programs -linked to ecasound library can use this facility. -

-

ECI API and return types

-A special case of interactive mode use is ecasound's control interface (ECI), -which is a small library providing easy access to the interactive -mode commands from outside of libecasound. When issuing inter commands using -the control interface, it's possible that commands also return information. -Currently supported return value types are: string [s], list of strings [S] -(elements separated by commas; escaped if necessary), integer [i], -long integer [li] and floating-point number [f]. These definitions are -used throughout this document. Commands that return nothing (void) are -marked with [-]. Additionally, return type [e] marks an error condition. -When an interactive mode command results in an error, an error string -explaining the condition is returned. -

-

Real-time commands

-It's not possible to use all interactive mode commands to modify and -control objects that belong to a connected chainsetup. Commands that -do NOT support this are: -

-

- cs-remove, cs-set-length, cs-set-length-samples, cs-toggle-loop, - cs-set-param, cs-option, - c-add, c-remove, c-rename, c-clear, - ai-add, ai-remove, ai-attach, ai-forward, ai-rewind, ai-set-position, - ai-set-position-samples, - ao-add, ao-add-default, ao-remove, ao-attach, ao-forward, ao-rewind, - ao-set-position, ao-set-position-samples. -
-

-If one of these commands is issued when a chainsetup is connected, -ecasound will first stop and disconnect the chainsetup, process -the command, and the reconnect. -

-In addition, most non-modifying (const) commands work with -connected setups. -

-

GENERAL

-
-

quit, q
-Quit ecasound session. What this means in practice depends on the -client implementation. In ecasound interactive mode, 'quit' terminates -the ecasound process. When sent over ecasound server connection (aka -NetECI), 'quit' terminates the active network connection, but does not -terminate the ecasound server process. [-] -

-

start, t
-Processing is started (play). Error string is return if any errors upon -startup are encountered. [e] -

-

stop, s
-Stop processing. [-] -

-

run
-Like 'start' but blocks until processing is finished. Error string -is return if any errors upon startup, or during process, are -encountered. [e] -

-

debug 'debug-level'
-Set debug level to 'debug-level'. Notice that client programs can -reimplement the debug routines. [-] -
-

-

resource-file 'path-to-file'
-Overrides the global and user resource files. Does not affect -already created objects. This command is equivalent to '-R' ecasound -option (see ecasound (1) man page). -

-

-prefix:arg1,...,argN
-Equivalent to issuing 'cs-option -prefix:arg1,...,argN). See documentation -for 'cs-option'. -

-

help', 'h'
-Help! [-] -

- -

-

GLOBAL

-

-

-

-

engine-status
-Returns a string describing the engine status (running, stopped, -finished, error, not ready). See also cs-status. [s] -

-

engine-launch
-Starts the real-time engine. Engine will execute the currently -connected chainsetup (see 'cs-connect). This action does not yet -start actual processing (see start and stop). When -ecasound is used as a JACK client, issuing engine-launch -makes ecasound an active JACK client (i.e. ecasound's ports -can be connected to other JACK clients). [-] -

-

engine-halt
-Stops the engine. Does not disconnect the chainsetup that -was running. See also cs-disconnet and stop. When -ecasound is used as a JACK client, engine-halt will -cause ecasound to become a deactivated client (all JACK -connections are torn down). [-] -

-

-

-

CHAINSETUPS

-Chainsetup is the central data object. All other objects (inputs, -outputs, chains, etc) are connected to some chainsetup. There can be -many chainsetups but only one can be connected. Similarly only -one chainsetup can be selected. If not otherwise specified operations -are done on the selected chainsetup. Some operations also require -that selected chainsetup is not connected. -

-

-

cs-add 'name'
-Adds a new chainsetup with name 'name'. 'name' is now -the selected chainsetup. [-] -

-

cs-remove
-Removes currently selected chainsetup. [-] -

-

cs-list
-Returns a list of all chainsetups. [S] -

-

cs-select 'name'
-Selects chainsetup 'name'. [-] -

-

cs-selected
-Returns the name of currently selected chainsetup. [s] -

-

cs-index-select 'cs_index', cs-iselect 'cs_index'
-Selects a chainsetup based on a short index string. Chainsetup names -can be rather long. This command can be used to avoid typing -these long names. 'cs_index' is an integer value, where '1' refers to -the first audio input/output. You can use 'cs-list' and 'cs-status' -to get a full list of currently available chainsetups. [-] -

-

cs-load 'filename'
-Adds a new chainsetup by loading it from file 'filename'. -'filename' is now the selected chainsetup. [-] -

-

cs-save
-Saves the currently selected chainsetup to file. If chainsetup was loaded -from a file, the saved version will replace the original. If it doesn't -have a default filename, it's saved to "chainsetup_name.ecs". [-] -

-

cs-save-as 'filename'
-Saves currently selected chainsetup to file 'filename'. [-] -

-

cs-edit
-Currently selected chainsetup is saved to a temporary file. This -file is loaded to an external editor (see ecasoundrc (5)). After -editing, the chainsetup is loaded back to ecasound. [-] -

-

cs-is-valid
-Whether currently selected chainsetup is valid (=can be connected)? [i] -

-

cs-connect
-Connect currently selected chainsetup to engine. When connecting, -all resources (e.g. files, soundcard devices, external programs) needed -to execute the chainsetup are reserved. Only one chainsetup can be connected -at a time. Error string is returned if connection fails (for instance -due to error in allocating the resources). [e] -

-

cs-disconnect
-Disconnect currently connected chainsetup. This action will free -all external resources needed by the chainsetup. [-] -

-

cs-connected
-Returns the name of currently connected chainsetup. [s] -

-

cs-rewind 'time-in-seconds', rewind 'time-in-seconds', rw 'time-in-seconds'
-Rewinds the current chainsetup position by 'time-in-seconds' seconds. -Position of all inputs and outputs attached to the selected chainsetup -is also affected. [-] -

-

cs-forward 'time-in-seconds', forward 'time-in-seconds', fw 'ttime-in-seconds'
-The current chainsetup position is forwarded by 'time-in-seconds' -seconds. Position of all inputs and outputs attached to the selected chainsetup -is also affected. [-] -

-

cs-set-position 'time-in-seconds', cs-setpos 'time-in-seconds', setpos 'time-in-seconds', set-position 'time-in-seconds'
-Sets the chainsetup position to 'time-in-seconds' seconds from the -beginning. Position of all inputs and outputs attached to the selected -chainsetup is also affected. [-] -

-

cs-set-position-samples 'time-in-samples'
-Sets the chainsetup position to 'time-in-samples' samples from the -beginning. Position of all inputs and outputs attached to the selected -chainsetup is also affected. [-] -

-

cs-get-position, cs-getpos, getpos, get-position
-Returns the current chainsetup position in seconds. [f] -

-

cs-get-position-samples
-Returns the current chainsetup position in samples. [li] -

-

cs-get-length, get-length
-Returns the chainsetup length in seconds (if known). [f] -

-

cs-get-length-samples, get-length-samples
-Returns the chainsetup length in samples (if known). [li] -

-

cs-set-length 'seconds'
-Sets processing time in seconds (doesn't have to be an integer value). -A special-case value of '-1' will set the chainsetup length -according to the longest input object. [-] -

-

cs-set-length-samples 'samples'
-Sets processing time in samples. [-] -

-

cs-toggle-loop
-Toggle looping. When processing is finished, engine will start -again from the initial position. It's not always possible to enable looping -(for instance all inputs and outputs have infinite length and -chainsetup length is not explicitly set with 'cs-set-length'). [-] -

-

cs-set-param
-Interpret general chainsetup parameters like for example -"-b" (buffersize), "-n" (name), etc. See ecasound (1) for -more info. [-] -

-

cs-set-audio-format 'bits,channels,sample_rate'
-Set the default sample parameters for currently selected chainsetup. -For example cd-quality audio would be "16,2,44100". This does the -same as command-line argument "-f" (see ecasound (1)). [-] -

-

cs-status, status, st
-Prints out status information about available chainsetup. -Detailed information is printed out for connected (=available -for running) nd selected (=available for editing) chainsetups. -Other chainsetups are listed, but further details are -suppressed. To get full details of a specific chainsetup, -select it with 'cs-select' or 'cs-iselect', and then -issue 'cs-select'. [s] -

-

cs-option '-prefix:arg1,...,argN'
-One powerful feature of the interactive-mode is that it -provides full access to ecasound's command-line syntax. -For instance, command "cs-option -efb:400,200" means that -a bandpass filter is added to the currently selected -chain, with initial parameters 400 (center frequency) -and 200 (width in Hz). -

-Note that session level options (such as setting debug level) -can not be used with 'cs-option' (i.e. only options that modify -chainsetups). -

-Note! Ecasound interactive mode implicitly interprets all strings -beginning with a '-' as "cs-option string". -

-

-

CHAINS

-Chain is a simple signal flow abstraction. Every chain has one input -and one output. All chain operators and their controllers are attached -to chains. Chains can be muted, unmuted and be bypassed. If not -otherwise stated, all operations are done to currently selected -chainsetup. -

-

-

c-add 'cname1,...,cnameN'
-Adds a set of chains. Added chains are automatically selected. Note -that commas in chain names are not allowed. [-] -

-

c-remove
-Removes selected chains. [-] -

-

c-list
-Returns a list of all chains. [S] -

-

c-select 'cname1,...,cnameN'
-Selects chains. Other chains are automatically deselected. [-] -

-

c-index-select 'index1,...,indexN', c-iselect 'index1,...,indexN'
-Selects a set of chains based on the list of indixes. Each index is -an integer value, where '1' refers to the first chain. You can use -'c-list' and 'c-status' to get a full list of currently available -chains. [-] -

-

c-select-all
-Selects all chains. [-] -

-

c-select-add 'cname1,...,cnameN'
-Selects more chains. [-] -

-

c-deselect 'cname1,...,cnameN'
-Deselects chains. [-] -

-

c-selected
-Returns a list of selected chains. [S] -

-

c-clear
-Clear selected chains by removing all chain operators and controllers. -Doesn't change how chains are connected to inputs and outputs. [-] -

-

c-rename 'new_name'
-Renames the selected chain. When using this command, exactly one chain must -be selected. [-] -

-

c-muting, c-mute
-Toggle chain muting. When chain is muted, all data that goes through -is muted. [-] -

-

c-bypass
-Toggle chain bypassing. When chain is bypassed, sample data is passed -through unprocessed (all chain operators are disabled for the given -chain). [-] -

-

c-status, cs
-Print status info about all chains. [s] -

-

-

-

AUDIO INPUT/OUTPUT OBJECTS

-If not otherwise stated, all operations are done to currently selected -object. All commands with ai- prefix operate on audio inputs, -while commands with ao- operate on outputs. -

-

-

-

ai-add 'input_format_string'
-Adds a new input object. See ecasound (1) man page for more info about -the argument format ('-i' option). Note on syntax: if any of -the parameters (such as a filename) contains commas, the parameter -should be enclosed in double-quotes. [-] -

-

ao-add 'output_format_string'
-Adds a new output object. See ecasound (1) man page for more info about -the argument format ('-o' option). If argument is omitted, -a default output device is added (see ecasoundrc (5)). Note on syntax: if any -of the parameters (such as a filename) contains commas, the parameter -should be enclosed in double-quotes. [-] -

-

ao-add-default
-Adds the default output device (see ecasoundrc (5)). [-] -

-

ai-describe, ao-describe
-Returns a Ecasound Option Syntax (EOS) compliant string -describing the input/output. See the Ecasound User's Guide -for more information about EOS. This command was introduced in -ecasound 2.4.4. [s] -

-

ai-select 'aobject_name', ao-select 'aobject_name'
-Selects an audio object. 'aobject_name' refers to the string -used when creating the object (the first argument given to ai-add/ao-add). -Note that as a important difference to ai-add/ao-add, one should not -enclose the object name in double quotes for ai-select/ao-select. In the -case a chainsetup contains multiple inputs, or outputs, with -identical name, 'ai-select' and 'ao-select' will select -the first matching instance. In order to select a specific -instance, the 'ai-iselect' and 'ao-iselect' commands need to -be used. [-] -

-

ai-index-select 'aobject_index', ai-iselect 'aobject_index', ao-index-select 'aobject_index', ao-iselect 'aobject_index'
-Select some audio object based on a short index string. Especially file -names can be rather long. This command can be used to avoid typing -these long names when selecting audio objects. 'aobject_index' is -an integer value, where '1' refers to the first audio input/output. -You can use 'ai-list' and 'ao-list' to get a full list of currently -available inputs/outputs. [-] -

-

ai-selected, ao-selected
-Returns the name of the currently selected audio object. [s] -

-

ai-attach, ao-attach
-Attaches the currently selected audio object to all selected chains. [-] -

-

ai-remove, ao-remove
-Removes the currently selected audio object from the chainsetup. [-] -

-

ai-forward 'time_in_seconds', ai-fw 'time_in_seconds', ao-forward 'time_in_seconds', ao-fw 'time_in_seconds'
-Selected audio object is forwarded by 'time-in-seconds' seconds. -Time should be given as a floating point value (eg. 0.001 is the -same as 1ms). [-] -

-

ai-rewind 'time_in_seconds', ai-rw 'time_in_seconds', ao-rewind 'time_in_seconds', ao-rw 'time_in_seconds'
-Selected audio object is rewinded by 'time-in-seconds' seconds. -Time should be given as a floating point value (eg. 0.001 is the -same as 1ms). [-] -

-

ai-setpos 'time_in_seconds', ai-set-position 'time_in_seconds', ao-setpos 'time_in_seconds', ao-set-position 'time_in_seconds'
-Set audio object position to 'time_in_seconds'. [-] -

-

ai-set-position-samples 'time_in_samples', ao-set-position-samples 'time_in_samples'
-Set audio object position to 'time_in_samples'. [-] -

-

ai-getpos, ai-get-position, ao-getpos, ao-get-position
-Returns the audio object position in seconds. [f] -

-

ai-get-position-samples, ao-get-position-samples
-Returns the audio object position in samples. [li] -

-

ai-get-length, ao-get-length
-Returns the audio object length in seconds. [f] -

-

ai-get-length-samples, ao-get-length-samples
-Returns the audio object length in samples. [li] -

-

ai-get-format, ao-get-format
-Returns the audio format of the selected audio input/output as a -formatted string. See documentation for '-f' command-line option. [s] -

-

ai-list, ao-list
-Returns a list of all input/output objects. [S] -

-

aio-register
-Prints a list of registered audio object types. [s] -

-

aio-status
-Audio object status (index strings, position, length, etc). [s] -

-

-

-

CHAIN OPERATORS

-Chain operators are used to process and analyze sample data. -They are attached to chains. If not otherwise stated, -currently selected chainsetup and chain are used. Also, -'chainop_id' and 'param_id' are used to select chain operators -and their parameters. First valid value for these parameters -is 1. -

-

-

cop-add 'cop_format_string'
-Adds a new chain operator. In addition to normal chain operators, -this commmand can also be used to add effect presets and various -plugins. Note; it is not possible to add operators to multiple -chains at once. In other words only one chain should be selected -when issuing 'cop-add'. See ecasound (1) man page for more info. [-] -

-

cop-describe
-Returns a Ecasound Option Syntax (EOS) compliant string -describing the chain operator. See the Ecasound User's Guide -for more information about EOS. This command was introduced in -ecasound 2.4.4. [s] -

-

cop-remove
-Removes the selected chain operator. [-] -

-

cop-list
-Returns a list of all chain operators attached to the currently -selected chain. [S] -

-

cop-select 'param_id', cop-index-select 'param_id', cop-iselect 'param_id'
-Selects a chain operator. [-] -

-

cop-selected
-Returns the index number of currently selected chain operator. [i] -

-

cop-set 'chainop_id,param_id,value'
-Changes the value of a single chain operator parameter. Unlike other -chain operator commands, this can also be used during processing. -See also 'cop-get'. [-] -

-

cop-get 'chainop_id,param_id'
-Returns the current value of chain operator parameter identified by -'chainop_id' and 'param_id'. This command is a shorthand for -'cop-select chainop_id ; copp-iselect param_id ; copp-get'. [f] -

-

cop-status
-Returns info about chain operator status. [s] -

-

copp-list
-Returns a list of selected chain operator's parameters. [S] -

-

copp-select 'param_id', copp-index-select 'param_id', copp-iselect 'param_id'
-Selects a chain operator parameter. [-] -

-

copp-selected
-Returns the index number of currently selected chain operator parameter. [i] -

-

copp-set 'value'
-Sets the selected parameter value to 'value'. [-] -

-

copp-get
-Returns the selected parameter value. See also 'cop-get'. [f] -

-

cop-register
-Prints a list of registered chain operators. [s] -

-

preset-register
-Prints a list of registered effect presets. [s] -

-

ladspa-register
-Prints a list of registered LADSPA plugins. [s] -

-

-

-

CONTROLLERS

-Controllers are used to control individual chain operator parameters. -They are attached to chains. If not otherwise stated, currently -selected chainsetup and chains are used. -

-

ctrl-add 'copc_format_string'
-Adds a new controller and attach it to currently selected chain -operator. The argument syntax is either "-<id_string>:par1,...,parN" -or just "<id_string>:par1,...,parN". If parameter itself contains -commas, the parameter should be enclosed in double-quotes. -See ecasound (1) man page for more info. [-] -

-

ctrl-describe
-Returns a Ecasound Option Syntax (EOS) compliant string -describing the controller. See the Ecasound User's Guide -for more information about EOS. This command was introduced in -ecasound 2.4.4. [s] -

-

ctrl-remove
-Removes the selected controller. [-] -

-

ctrl-list
-Returns a list of all controllers attached to the currently -selected chain. [S] -

-

ctrl-select 'param_id', ctrl-index-select 'param_id', ctrl-iselect 'param_id'
-Selects a controller. [-] -

-

ctrl-selected
-Returns the index number of currently selected controller. [i] -

-

ctrl-status
-Returns info about controller status. [s] -

-

ctrl-register
-Prints a list of registered controllers. [s] -

-

ctrl-get-target
-Returns the index number of the chain operator that is -connected to the selected controller. The returned index -refers to the currently selected chain (see 'cop-list'). [i] -

-

ctrlp-list
-Returns a list of all controller parameters. This command was introduced in -ecasound 2.4.2. [S] -

-

ctrlp-select
-Selects a controller parameter. This command was introduced in -ecasound 2.4.2. [-] -

-

ctrlp-selected
-Returns the index number of currently selected controller parameter. This command -was introduced in ecasound 2.4.2. [i] -

-

ctrlp-get
-Returns the selected controller parameter value. This command was introduced in -ecasound 2.4.2. [f] -

-

ctrlp-set
-Sets the selected controller parameter value to 'value'. This command was introduced in -ecasound 2.4.2. [-] -

- -

-

JACK CONNECTION MANAGEMENT

-If Ecasound is compiled with support for JACK audio server, -the following set of commands is provided for controlling connections -between JACK ports. -

-

-

-

jack-connect 'src-port' 'dest-port'
-Make a connection between the two ports given as parameters. This command -is similar to the 'jack_connect' command line tool that is distributed -with JACK package. [-] -

-

jack-disconnect 'src-port' 'dest-port'
-Disconnect the two ports given as parameters. This command is similar -to the 'jack_disconnect' command line tool that is distributed -with JACK package. [-] -

-

jack-list-connections
-Returns a list of all JACK ports and a list of connections -for each port. This command is similar to the 'jack_lsp' command -line tool (e.g. 'jack_lsp -c') that is distributed with JACK package. [s] -

-

-

-

INTERNAL COMMANDS

-Internal commands are not directly aimed at normal use. They -are primarily meant for use in scripting and frontends. -

-

-

int-cmd-list
-Returns a list of all registered interactive mode commands. [S] -

-

int-log-history
-Returns recent log messages sent by libecasound modules. This -is a good tool for debugging ECI/EIAM scripts and applications. This -command was introduced in ecasound 2.4.0. [s] -

-

int-output-mode-wellformed
-Select the well-format output format for log messages. [-] -

-

int-set-float-to-string-precision
-Sets precision used in float to text conversions. Note that -this can be used to control the precision of float return values -for ECI commands. [-] -

-

int-set-log-history-length
-Sets the log history length. Defaults to 0 items. -This command was introduced in ecasound 2.4.0. [-] -

-

int-cmd-version-string
-Returns ecasound interactive mode parser version string. [s] -

-

int-cmd-version-lib-current
-Returns ecasound interactive mode library interface version (libtool). [i] -

-

int-cmd-version-lib-revision
-Returns ecasound interactive mode library interface revision (libtool). [i] -

-

int-cmd-version-lib-age
-Returns ecasound interactive mode library interface age (libtool). [i] -

-

-

-

OBJECT MAPS

-Object maps are central repositories for commonly used object types. -By querying the maps, applications can get a list of all registered -object types and their properties. -

-

-

-

map-cop-list
-Prints a list of registered chain operators using -the format specified in section OPERATOR DESCRIPTIONS. [s] -

-

map-preset-list
-Prints a list of registered effect presets using -the format specified in section OPERATOR DESCRIPTIONS. [s] -

-

map-ladspa-list
-Prints a list of registered LADSPA plugins using -the format specified in section OPERATOR DESCRIPTIONS. [s] -

-

map-ladspa-id-list
-Prints a list of registered LADSPA plugins using -the format specified in section OPERATOR DESCRIPTIONS. -Numerical LADPSA plugin identifiers are used. [s] -

-

map-ctrl-list
-Prints a list of registered controllers using -the format specified in section OPERATOR DESCRIPTIONS. [s] -

-

-

-

DUMP COMMANDS

-The following dump commands are not meant for normal use. -Their primary purpose is to provide an easy way to get -internal state information from libecasound. All dump -commands output a single line with syntax "key value" -to the selected output stream (defaults to stdout). -

-

-

-

dump-target 'filename'
-Set target stream for dumping. [-] -

-

dump-status
-Dumps engine status - 'running', 'stopped', 'finished' or 'notready'. [-] -

-

dump-position
-Dumps the global position. Printed in seconds using a floating-point -representation. [-] -

-

dump-length
-Dumps the overall processing length. Printed in seconds using a floating-point -representation. [-] -

-

dump-cs-status
-Dumps status string for the currently selected chainsetup - 'connected', -'selected' or an empty string. [-] -

-

dump-c-selected
-Dumps the name of currently selected chain. [-] -

-

dump-ai-selected
-Dumps label of currently selected audio input. If no input is -selected, dumps an empty string. [-] -

-

dump-ai-position
-Dumps position of currently selected audio inputs. Printed in -seconds, using a floating-point representation. [-] -

-

dump-ai-length
-Dumps length of currently selected audio input. Printed in seconds, -using a floating-point representation. [-] -

-

dump-ai-open-state
-Dumps audio input state info. Either 'open' or 'closed'. [-] -

-

dump-ao-selected
-Dumps label of currently selected audio output. If no output is -selected, dumps an empty string. [-] -

-

dump-ao-position
-Dumps position of currently selected audio outputs. Printed in -seconds, using a floating-point representation. [-] -

-

dump-ao-length
-Dumps length of currently selected audio output. Printed in seconds, -using a floating-point representation. [-] -

-

dump-ao-open-state
-Dumps audio output state info. Either 'open' or 'closed'. [-] -

-

dump-cop-value 'chainop,param'
-Dumps chain operator parameter value. 'chainop' and 'param' are -operator and parameter index values (1...n). [-] -

-

-

-

OPERATOR DESCRIPTIONS

-The map-xxx-list commands return a string containing all registered -objects of the given type xxx. Each line of the output describes -one registered type. The used syntax is: -

-'keyword,name,description,num_of_params,par1_def,par2_def,...' -

-parX_def describes one object parameter. This definition -is present for all parameters of the described object type. -The used syntax is: -

-'name,description,defaultvalue,upper_bound_flag,upper_bound, -lower_bound_flag,lower_bound,toggled_flag,integer_flag, -logarithmic_flag,output_flag' -

-For exact descriptions of these fields, please see -the header file ecasound/libecasound/eca-operator.h. -

-

DEPRECATED COMMANDS

-Use of following commands is deprecated. They still work in -current version of Ecasound, but will be dropped in -the future: -

-

- ai-wave-edit, ao-wave-edit -
-

-

SEE ALSO

- ecasound (1), ecatools (1), ecasoundrc (5) -

-

AUTHOR

- Kai Vehmanen, <kvehmanen -at- eca -dot- cx> diff --git a/library/ecasound/Documentation/ecasound.1 b/library/ecasound/Documentation/ecasound.1 deleted file mode 100644 index 1dfd0ff2c..000000000 --- a/library/ecasound/Documentation/ecasound.1 +++ /dev/null @@ -1,1110 +0,0 @@ -.TH "ecasound" "1" "18\&.08\&.2010" "" "Multimedia software" - -.PP -.SH "NAME" -ecasound \- sample editor, multitrack recorder, fx-processor, etc\&. -.PP -.SH "SYNOPSIS" -\fBecasound\fP [ general_options ] { [ chain_setup ] [ effect_setup ] [ input_setup ] [ output_setup ] } -.PP -.SH "DESCRIPTION" - -.PP -Ecasound is a software package designed for multitrack audio -processing\&. It can be used for simple tasks like audio playback, -recording and format conversions, as well as for multitrack effect -processing, mixing, recording and signal recycling\&. Ecasound supports -a wide range of audio inputs, outputs and effect algorithms\&. -Effects and audio objects can be combined in various ways, and their -parameters can be controlled by operator objects like oscillators -and MIDI-CCs\&. A versatile console mode user-interface is included -in the package\&. -.PP -.SH "OPTIONS" - -.PP -Note! All options except those mentioned in \fIecasound options\fP and -\fIGlobal options\fP, can be used in ecasound chainsetup files (\&.ecs)\&. -.PP -\fBECASOUND OPTIONS\fP -.IP -These options are parsed and handled by the ecasound frontend binary and -are not passed to backend library\&. This means that these options may -not work in other applications that use ecasound libraries for their -functionality\&. -.IP -.IP "-c" -Starts ecasound in interactive mode\&. In interactive mode you can -control ecasound with simple commands ("start", "stop", "pause", -etc\&.)\&. See ecasound-iam \&. -.IP -.IP "-C" -Disables ecasound\&'s interactive mode (see \&'-c\&' and \&'-K\&')\&. - -.IP -.IP "-D" -Print all debug information to stderr (unbuffered, plain output -without ncurses)\&. -.IP -.IP "-s[:]chainsetup-file" -Create a new chainsetup from file \&'chainsetup-file\&' and add -it to the current session\&. Chainsetup files commonly have -a filename ending to the \&'\&.ecs\&' extension\&. A chainsetup can -contain inputs, outputs, chains, effects, controllers -- i\&.e\&. -objects one one specific configuration of audio processing -elements\&. A session, on the other hand, is a collection of -one or more chainsetups\&. Only one of the chainsetups may be -connected (i\&.e\&. it can be run/processed)\&. But it is possible -to have another chainsetup select (i\&.e\&. can be configured) -while other one is current connteced (i\&.e\&. running)\&. -.IP -.IP "-E "cmd1 [[args] ; cmd2 args ; \&.\&.\&. ; cmdN]"" -Execute a set of Ecasound Interactive mode (EIAM) commands -at launch\&. These commands are executed immediately after -ecasound is started\&. If the command line contains sufficient -options to create a valid chainsetup that will be executed, -the launch commands are executed after the other command -line options are parsed, but before the processing engine -is started\&. Note that this command is a feature of -the ecasound frontend binary and not supported by -the library backend\&. This means that other clients may -not support the \&'-E\&' option, and also that the launch -commands are not saved as part of chainsetup or session -state\&. -.IP -.IP "--server" -Enables the so called NetECI mode, in which ecasound can -be controlled remotely over a socket connection\&. When -activated, clients can connect to the running ecasound -session, and use interactive mode commands to control and -observe ecasound processing\&. -.IP -The NetECI protocol is defined in -Ecasound\&'s Programmer Guide -.IP -One example client using this feature is ecamonitor(1)\&. This -utility is included in the Ecasound distribution package (requires -a working Python environment)\&. -.IP -\fIWarning!\fP If the machine running ecasound, is connected to -a public network, be sure to block ecasound\&'s port in your -firewall! As there is no access control implemented for incoming -connections, anyone can otherwise connect, control and observe your -ecasound sessions\&. -This option replaces \&'--daemon\&' (deprecated in 2\&.6\&.0)\&. -.IP -.IP "--server-tcp-port=NNN" -Set the TCP port used by the daemon mode\&. By default -ecasound will use port number \fI2868\fP\&. -This option replaces \&'--daemon-port\&' (deprecated in 2\&.6\&.0)\&. -.IP -.IP "--no-server" -Disable ecasound\&'s daemon mode\&. This is the default\&. -This option replaces \&'--nodaemon\&' (deprecated in 2\&.6\&.0)\&. -.IP -.IP "--osc-udp-port=NNN" -Enables support for Open Source Control (OSC)\&. Ecasound will listen -for incoming OSC messages on UDP port NNN\&. Ecasound\&'s OSC interface -is documented at: - -.IP -Note that OSC support is still experimental and the interface -might change in later versions of Ecasound\&. -.IP -This option was added to ecasound 2\&.7\&.0\&. -.IP -.IP "--keep-running,-K" -Do not exit when processing is finished/stopped\&. Only affects -non-interactive operating mode (see -c/-C)\&. -Option added to ecasound 2\&.4\&.2\&. -.IP -.IP "--help,-h" -Show this help\&. -.IP -.IP "--version" -Print version info\&. -.IP -\fBGLOBAL OPTIONS\fP -.PP -.IP "-d, -dd, -ddd" -Increase the amount of printed debug messages\&. \fI-d\fP adds -some verbosity, while \fI-ddd\fP results in very detailed -output\&. -.IP -.IP "-d:debug_level" -Set the debug level mask to \&'debug_level\&'\&. This a bitmasked value with -the following classes: errors (1), info (2), subsystems (4), module_names (8), -user_objects (16), system_objects 32, functions (64), continuous (128) and -eiam_return_values (256)\&. Default is 271 (1+2+4+8+256)\&. See sourcode -documentation for the ECA_LOGGER class for more detailed information\&. -.IP -.IP "-R[:]path-to-file" -Use ecasound resource file (see ecasoundrc man page) \&'path-to-file\&' as -the only source of setting resource value\&. Specifying this option -will disable the normal policy of querying both global and user (if exists) -resource files\&. -.IP -.IP "-q" -Quiet mode, no output\&. Same as \fI-d:0\fP\&. -.IP -\fBGENERAL CHAINSETUP OPTIONS\fP - -.IP -.IP "-a:chainname1, chainname2, \&.\&.\&." -Selects active signal chains\&. All inputs and outputs following -this \&'-a\&' option are assigned to selected chains (until a new -a -option is specified)\&. When adding effects, controllers and other -chain operators, only one chain can be selected at a time\&. If no -a option -has been given, chain \&'default\&' is used instead when adding objects\&. -Chain name \&'all\&' is also reserved\&. It will cause all existing chains -to be selected\&. By giving multiple -a options, you can control to which -chains effects, inputs and outputs are assigned to\&. Look at the \fBEXAMPLES\fP -section for more detailed info about the usage of this option\&. -.IP -.IP "-n:name" -Sets the name of chainsetup to \&'name\&'\&. If not specified, defaults -either to "command-line-setup" or to the file name from which -chainsetup was loaded\&. Whitespaces are not allowed\&. -.IP -.IP "-x" -Truncate outputs\&. All output object are opened in overwrite mode\&. -Any existing files will be truncated\&. -.IP -.IP "-X" -Open outputs for updating\&. Ecasound opens all outputs - if target -format allows it - in readwrite mode\&. -.IP -.IP "-z:feature" -Enables \&'feature\&'\&. Most features can be disabled using notation -\fI-z:nofeature\fP\&. \&'-z:db,dbsize\&' enables double-buffering for audio -objects that support it (dbsize=0 for default, otherwise buffer -size in sample frames)\&. \&'-z:nodb\&' disables double-buffering\&. -\&'-z:intbuf\&' and \&'-z:nointbuf\&' control whether extra internal buffering -is allowed for realtime devices\&. Disabling this can reduce -latency times in some situations\&. With \&'-z:xruns\&', processing will be -halted if an under/overrun occurs\&. \&'-z:multitrack\&' and -\&'z:nomultitrack\&' can be used to force ecasound to enable or disable -multitrack-mode\&. In rare cases you may want to explicitly specify -the recording offset with \&'-z:multitrack,offset-in-samples\&'\&. The -offset is the amount of samples skipped when recording from -real-time inputs\&. \&'-z:psr\&' enables the \fIprecise-sample-rates\fP mode -for OSS-devices\&. \&'-z:mixmode,sum\&' enables mixing mode where channels -are mixed by summing all channels\&. The default is \&'-z:mixmode,avg\&', -in which channels are mixed by averaging\&. Mixmode selection was first -added to ecasound 2\&.4\&.0\&. -See ecasoundrc man page\&. -.IP -\fBCHAINSETUP BUFFERING AND PERFORMANCE OPTIONS\fP - -.IP -.IP "-B:buffering_mode" -Selects the default buffering mode\&. Mode is one of: \&'auto\&' (default), -\&'nonrt\&', \&'rt\&', \&'rtlowlatency\&'\&. -.IP -.IP "-b:buffer size" -Sets the size of buffer in samples (must be an exponent of 2)\&. This -is quite an important option\&. For real-time processing, you should -set this as low as possible to reduce the processing delay\&. Some -machines can handle buffer values as low as 64 and 128\&. In some -circumstances (for instance when using oscillator envelopes) small -buffer sizes will make envelopes act more smoothly\&. When not processing -in real-time (all inputs and outputs are normal files), values between -512 - 4096 often give better results\&. Default is 1024\&. -.IP -.IP "-r:sched_priority" -Use realtime scheduling policy (SCHED_FIFO)\&. This is impossible if -ecasound doesn\&'t have root priviledges\&. Beware! This gives better -performance, but can cause total lock-ups if something goes wrong\&. -The \&'sched_priority\&' can be omitted (0=omitted)\&. If given, -this is the static priority to the highest priority ecasound thread\&. -Other ecasound threads run with priority \&'sched_priority-1\&.\&.\&.n\&'\&. -Value \&'-1\&' can be used to disable raised-priority mode\&. -.IP -.IP "-z:feature" -Relevant features are -z:db,xxx (-z:nodb) and -z:intbuf (-z:nointbuf)\&. -See section \fIGeneral chainsetup options\fP for details\&. -.IP -\fBPROCESSING CONTROL\fP -.IP "-t:seconds" -Sets processing time in seconds (doesn\&'t have to be an integer value)\&. -If processing time isn\&'t set, engine stops when all inputs are -finished\&. This option is equivalent to the \&'cs-set-length\&' EIAM -command\&. A special-case value of \&'-1\&' will set the chainsetup length -according to the longest input object\&. -.IP -.IP "-tl" -Enables looping\&. When processing is finished, engine will start -again from beginning\&. This option is equivalent to the \&'cs-loop\&' -EIAM command\&. -.IP -\fBINPUT/OUTPUT SETUP\fP -.PP -See ecasound user\&'s guide for -more detailed documentation\&. -.PP -.IP "-G:mgrtype,optstring" -Sets options for audio object manager type \&'mgrtype\&'\&. -For available options, see "OBJECT TYPE SPECIFIC NOTES" below\&. -.IP -.IP "-f:sample_format,channel,sample-rate,interleaving" -Sets the audio stream parameters for subsequent audio objects\&. -To set different parameters for different audio objects, multiple -\&'-f\&' options have to be specified (note the ordering, the \&'-f\&' -options should precede the audio objects for them to have any -effect)\&. See documentation for \&'-i\&' and \&'-o\&' options\&. -.IP -When an audio object is opened (e\&.g\&. a file or sound device -is opened, or connection is made to a sound server), the audio -stream parameters are passed to the object\&. It should be noted that -not all audio objects allow to set any or all of the parameters\&. -For instance when opening existing audio files, many file formats -have a header describing the file audio parameters\&. In -these cases the audio file header overrides the parameters -passed with \&'-f\&' option\&. Similarly when creating JACK inputs and -outputs, the JACK server mandates the sampling rate and sample -format\&. -.IP -If no \&'-f\&' option is specified, or some of the argument fields -are left empty (e\&.g\&. \&'-f:,2,44100\&'), ecasound will use default values\&. These -default values are defined in ecasoundrc configuration file\&. See -ecasoundrc(5) manual page\&. -.IP -Note that ecasound opens out files by default in update mode\&. -Unless option \&'-x\&' (overwrite outputs) option is given, -audio parameters of an existing audio file take preference over -the params set with \&'-f\&'\&. -.IP -Sample format is given as a formatted string\&. The first letter is -either "u", "s" and "f" (unsigned, signed, floating point)\&. The -following number specifies sample size in bits\&. If sample is -little endian, "_le" is added to the end\&. Similarly if big endian, -"_be" is added\&. If endianess is not specified, host byte-order is used\&. -Currently supported formats are "u8" (same as "8"), "s16_le" (same -as "16"), "s16_be", "s24_le", "s24_be", "s32_le", "s32_be", "f32_le" -and "f32_be"\&. An empty string "" picks the system default sample -format\&. -.IP -The 4th parameter defines the channel layout\&. The available -options are \&'i\&' (interleaved\&' and \&'n\&' (noninterleaved)\&. With -the noninterleaved setting, ecasound will process samples -one channel at a time, and the blocksize is set with \&'-b\&'\&. -The default setting is \&'i\&'\&. -.IP -.IP "-y:seconds" -Sets starting position for last specified input/output\&. If -you need more flexible control over audio objects, you should -use the \fI\&.ewf\fP format\&. -.IP -.IP "-i[:]input-file-or-device[,params]" -Specifies a new input source that is connected to all selected chains (chains -are selected with \&'-a:\&.\&.\&.\&')\&. Connecting multiple inputs to the same chain is -not possible, but one input can be connected to multiple chains\&. Input can be -a a file, device or some other audio object (see below)\&. If the input is -a file, its type is determined using the file name extension\&. If the object -name contains any commas, the name must be enclosed in backquotes to avoid -confusing the parser\&. Currently supported formats are RIFF WAVE files (\&.wav), -audio-cd tracks (\&.cdr), ecasound EWF files (\&.ewf), RAW audio data (\&.raw) and -MPEG audio files (\&.mp2,\&.mp3)\&. More audio formats are supported via libaudiofile -and libsndfile libraries (see documentation below)\&. MikMod is also supported (\&.xm, -\&.mod, \&.s3m, \&.it, etc)\&. MIDI files (\&.mid) are supported using Timidity++\&. -Similarly Ogg Vorbis (\&.ogg) can be read, and written if ogg123 and vorbize tools -are installed; FLAC files (\&.flac) with flac command-line tools or using -libsndfile; and AAC files (\&.aac/\&.m4a/\&.mp4) with faad2/faac tools\&. Supported -realtime devices are OSS audio devices (/dev/dsp*), ALSA audio and loopback -devices and JACK audio subsystem\&. If no inputs are specified, the first -non-option (doesn\&'t start with \&'-\&') command line argument is considered -to be an input\&. -.IP -.IP "-o[:]output-file-or-device[,params]" -Works in the same way as the -i option\&. If no outputs are specified, -the default output device is used (see ~/\&.ecasoundrc)\&. If the object -name contains any commas, the name must be enclosed in backquotes to -avoid confusing the parser\&. Note, many object types do not support -output (e\&.g\&. MikMod, MIDI and many others)\&. -.IP -\fIOBJECT TYPE SPECIFIC NOTES\fP -.IP "ALSA devices - \&'alsa\&'" -When using ALSA drivers, instead of a device filename, you need to -use the following option syntax: \fB-i[:]alsa,pcm_device_name\fP\&. -.IP -.IP "ALSA direct-hw and plugin access - \&'alsahw\&', \&'alsaplugin\&'" -It\&'s also possible to use a specific card and device combination -using the following notation: \fB-i[:]alsahw,card_number,device_number,subdevice_number\fP\&. -Another option is the ALSA PCM plugin layer\&. It works just like -the normal ALSA pcm-devices, but with automatic channel count and -sample format conversions\&. Option syntax is -\fB-i[:]alsaplugin,card_number,device_number,subdevice_number\fP\&. -.IP -.IP "aRts input/output - \&'arts\&'" -If enabled at compile-time, ecasound supports audio input and -output using aRts audio server\&. Option syntax is \fB-i:arts\fP, -\fB-o:arts\fP\&. -.IP -.IP "Audio file sequencing - \&'audioloop\&', \&'select\&', \&'playat\&'" -Ecasound provides a set of special audio object types that -can be used for temporal sequencing of audio files - i\&.e\&. looping, -playing only a select portion of a file, playing file at a spefific -time, and other such operation\&. -.IP -Looping is possible with \fB-i:audioloop,file\&.ext,params\fP\&. The -file name (or any object type understood by Ecasound) given -as the second parameter is played back continuously looping -back to the beginning when the end of file is reached\&. Any additional -parameters given are passed unaltered to the file object\&. -Parameters 3\&.\&.\&.N are passed as is to the child object (i\&.e\&. -"-i audioloop,foo\&.wav,bar1,bar2" will pass parameters -"bar1,bar2" to the "foo\&.wav" object\&. -.IP -To select and use only a specific segment of an audio object, -the \fB-i:select,start-time,duration,file\&.ext,params\fP can -be used\&. This will play "duration" of "file\&.ext", starting at -"start-time"\&. The time values should be given as seconds (e\&.g\&. -"2\&.25", or as samples (e\&.g\&. "25000sa")\&. Parameters 4\&.\&.\&.N are -passed as is to the child object\&. -.IP -To play an audio object at a given moment in time, -the \fB-i:playat,play-at-time,file\&.ext,params\fP can be -used\&. This will play "file\&.ext" after position reaches -"play-at-time"\&. The time values should be given as seconds (e\&.g\&. -"2\&.25", or as samples (e\&.g\&. "25000sa")\&. Parameters 2\&.\&.\&.N are -passed as is to the child object\&. -.IP -.IP "Ecasound Wave Files (EWF) - \&'*\&.ewf\&'" -A special file format that allows to slice and loop full (or segments) -of audio files\&. This format is specific to Ecasound\&. -See ecasound user\&'s guide for more -detailed information\&. -.IP -See also audio object types \&'audioloop\&', \&'select\&' and \&'playat\&'\&. -.IP -.IP "JACK input/outputs - Overview" -JACK is a low-latency audio server that can be used to connect -multiple independent audio application to each other\&. -It is different from other audio server efforts in that -it has been designed from the ground up to be suitable for low-latency -professional audio work\&. -.IP -.IP "JACK input/outputs - \&'jack\&'" -Ecasound provides multiple ways to communicate with JACK -servers\&. To create a JACK input or output object, one should use \fB-i jack\fP and -\fB-o jack\fP\&. These create JACK client ports "ecasound:in_N" and -"ecasound:out_n" respectively (\&'N\&' is replaced by the channel number)\&. -Ecasound automatically creates one JACK port for each channel (number -of channels is set with \fB-f:bits,channels,rate\fP option)\&. -.IP -It is important to note that by default JACK ports are not connected -anywhere (e\&.g\&. to soundcard input/outputs, or to other apps)\&. One thus -has to connect the ports with an external program (e\&.g\&. "QJackCtl" -or "jack_connect")\&. -.IP -.IP "JACK input/outputs - \&'jack,clientname,portprefix\&'" -\fB"jack,clientname"\fP For simple use scanerios, ecasound provides a way to autoconnect -the ecasound ports\&. This can be done with by giving the peer client -name as the second parameter to the "jack" object, e\&.g\&. \fB-o jack,clientname\fP\&. -As an example, \fB-o jack,system\fP will create an output that is -automatically connected to outputs of the default system soundcard\&. -The client parameter can be omitted, in which case no automatic -connections are made\&. -.IP -If one needs to change the port prefix (e\&.g\&. "in" in client name -"ecasound:in_N"), the prefix can be specified as the third parameter to -"jack" object, e\&.g\&. \fB-o jack,,fxout\fP\&. Also the third parameter can be -omitted, in which case the default prefixes "in" and "out" are used\&. -.IP -.IP "JACK input/outputs - \&'jack_multi\&'" -A variant of \&'jack\&' object type is \&'jack_multi\&'\&. The full object syntax -is \fBjack_multi,destport1,\&.\&.\&.,destportN\fP\&. When a \&'jack_multi\&' object -is connected to a JACK server, first channel of the object is connected -to JACK port \&'destport1\&', second to \&'destport2\&' and so forth\&. For -instance "-f:32,2,44100 -o jack_multi,foo:in,bar:in" -creates a stereo ecasound output object, with its left and right -channels routed to two difference JACK clients\&. The destination ports -must be active when the ecasound engine is launched, or otherwise -the connections cannot be established\&. If destination ports are not -specified for all channels, or zero length strings are given, those -ports are not connected at launch by ecasound\&. -.IP -.IP "JACK input/outputs - \&'jack_alsa\&', \&'jack_auto\&', \&'jack_generic\&' (**deprecated since 2\&.6\&.0**)" -Ecasound 2\&.5 and older supported "jack_alsa", "jack_auto" and "jack_generic" object -types, but these are now replaced by a more generic "jack" interface, and thus are -now deprecated (they work but are no longer documented)\&. -.IP -.IP "JACK input/outputs - client options" -Additionally global JACK options can be set using -\fB-G:jack,client_name,operation_mode\fP option\&. \&'client_name\&' -is the name used when registering ecasound to the JACK system\&. -If \&'operation_mode\&' is "notransport", ecasound will ignore -any transport state changes in the JACK-system; in mode -"send" it will send all start, stop and position-change events to -other JACK clients; in mode "recv" ecasound will follow JACK start, -stop and position-change events; and mode "sendrecv" (the default) -which is a combination of the two previous modes\&. -.IP -More details about ecasound\&'s JACK support can be found -from Ecasound User\&'s Guide\&. -.IP -.IP "Libaudiofile - \&'audiofile\&'" -If libaudiofile support was enabled at compile-time, this -option allows you to force Ecasound to use libaudiofile -for reading/writing a certain audio file\&. Option syntax -is \fB-i:audiofile,foobar\&.ext\fP (same for \fB-o\fP)\&. -.IP -.IP "Libsndfile - \&'sndfile\&'" -If libsndfile support was enabled at compile-time, this -option allows you to force Ecasound to use libsndfile -for reading/writing a certain audio file\&. Option syntax -is \fB-i:sndfile,foobar\&.ext[,\&.format-ext]\fP (same for \fB-o\fP)\&. -The optional third parameter "format" can be used to -override the audio format (for example you can create an -AIFF file with filename "foo\&.wav")\&. -.IP -.IP "Loop device - \&'loop\&'" -Loop devices make it possible to route (loop back) data between -chains\&. Option syntax is \fB-[io][:]loop,tag\fP\&. If you add -a loop output with tag \&'1\&', all data written to this output is routed -to any loop input with tag \&'1\&'\&. The tag can be either numerical -(e\&.g\&. \&'-i:loop,1\&') or a string (e\&.g\&. "-i:loop,vocals")\&. Like -with other input/output objects, you can attach the same loop -device to multiple chains and this way split/mix the signal\&. -.IP -Note: this \&'loop\&' device is different from \&'audioloop\&' (latter -added to ecasound v2\&.5\&.0)\&. -.IP -.IP "Mikmod - \&'mikmod\&'" -If mikmod support was enabled at compile-time, this -option allows you to force Ecasound to use Mikmod -for reading/writing a certain module file\&. Option syntax -is \fB-i:mikmod,foobar\&.ext\fP\&. -.IP -.IP "Null inputs/outputs - \&'null\&'" -If you specify "null" or "/dev/null" as the input or output, -a null audio device is created\&. This is useful if you just want -to analyze sample data without writing it to a file\&. There\&'s -also a realtime variant, "rtnull", which behaves just like "null" -objects, except all i/o is done at realtime speed\&. -.IP -.IP "Resample - \&'resample\&'" -Object type \&'resample\&' can be used to resample audio -object\&'s audio data to match the sampling rate used -in the active chainsetup\&. For example, -\fBecasound -f:16,2,44100 -i resample,22050,foo\&.wav -o /dev/dsp\fP, -will resample file from 22\&.05kHz to 44\&.1kHz and write the -result to the soundcard device\&. Child sampling rate can be -replaced with keyword \&'auto\&'\&. In this case ecasound will try -to query the child object for its sampling rate\&. This works with -files formats such as \&.wav which store meta information about -the audio file format\&. To use \&'auto\&' in the previous example, -\fBecasound -f:16,2,44100 -i resample,auto,foo\&.wav -o /dev/dsp\fP\&. -.IP -Parameters 4\&.\&.\&.N are passed as is to the child object (i\&.e\&. -"-i resample,22050,foo\&.wav,bar1,bar2" will pass parameters -"bar1,bar2" to the "foo\&.wav" object\&. -.IP -If ecasound was compiled with support for libsamplerate, you can -use \&'resample-hq\&' to use the highest quality resampling algorithm -available\&. To force ecasound to use the internal resampler, -\&'resampler-lq\&' (low-quality) can be used\&. -.IP -.IP "Reverse - \&'reverse\&'" -Object type \&'reverse\&' can be used to reverse audio -data coming from an audio object\&. As an example, -\fBecasound -i reverse,foo\&.wav -o /dev/dsp\fP will play -\&'foo\&.wav\&' backwards\&. Reversing output objects is not -supported\&. Note! Trying to reverse audio object types with really -slow seek operation (like mp3), works extremely badly\&. -Try converting to an uncompressed format (wav or raw) -first, and then do reversation\&. -.IP -Parameters 3\&.\&.\&.N are passed as is to the child object (i\&.e\&. -"-i reverse,foo\&.wav,bar1,bar2" will pass parameters -"bar1,bar2" to the "foo\&.wav" object\&. -.IP -.IP "System standard streams and named pipes - \&'stdin\&', \&'stdout\&'" -You can use standard streams (stdin and stdout) by giving \fBstdin\fP -or \fBstdout\fP as the file name\&. Audio data is assumed to be in -raw/headerless (\&.raw) format\&. If you want to use named pipes, -create them with the proper file name extension before use\&. -.IP -.IP "Tone generator - \&'tone\&'" -To generate a test tone, input \fB-i:tone,type,freq,duration-secs\fP -can be used\&. Parameter \&'type\&' specifies the tone type: currently -only \&'sine\&' is supported\&. The \&'freq\&' parameter sets the frequency -of the generated tone and \&'duration-secs\&' the length of the generated -stream\&. Specifying zero, or a negative value, as the duration will -produce an infinite stream\&. This feature was first added to Ecasound -2\&.4\&.7\&. -.IP -.IP "Typeselect - \&'typeselect\&'" -The special \&'typeselect\&' object type can be used to override -how ecasound maps filename extensions and object types\&. For -instance \fBecasound -i typeselect,\&.mp3,an_mp3_file\&.wav -o /dev/dsp\fP\&. -would play the file \&'an_mp3_file\&.wav\&' as an mp3-file and not -as an wav-file as would happen without typeselect\&. -.IP -Parameters 4\&.\&.\&.N are passed as is to the child object (i\&.e\&. -"-i typeselect,\&.au,foo\&.wav,bar1,bar2" will pass parameters -"bar1,bar2" to the "foo\&.wav" object\&. -.IP -\fBMIDI SETUP\fP -.PP -.IP "MIDI I/O devices - general" -If no MIDI-device is specified, the default MIDI-device is -used (see ecasoundrc(5))\&. -.IP -.IP "-Md:rawmidi,device_name" -Add a rawmidi MIDI I/O device to the setup\&. \&'device_name\&' can be anything -that can be accessed using the normal UNIX file operations and -produces raw MIDI bytes\&. Valid devices are for example OSS rawmidi -devices (/dev/midi00), ALSA rawmidi devices (/dev/snd/midiC2D0), named -pipes (see mkfifo man page), and normal files\&. -.IP -.IP "-Md:alsaseq,sequencer-port" -Adds a ALSA MIDI sequencer port to the setup\&. \&'sequencer-port\&' identifies -a port to connect to\&. It can be numerical (e\&.g\&. 128:1), or a client -name (e\&.g\&. "KMidimon")\&. -.IP -.IP "-Mms:device_id" -Sends MMC start ("Deferred Play") and stop ("Stop") with -device ID \&'device_id\&'\&. -.IP -While Ecasound does not directly support syncing transport state -to incoming MMC messages, this can be achieved by connecting Ecasound -to JACK input/outputs, and using a tool such as JackMMC and JackCtlMMC ( -see ) to convert MMC messages -into JACK transport change events\&. -.IP -.IP "-Mss" -Sends MIDI-sync (i\&.e\&. "MIDI Start" and "MIDI Stop" system realtime -messages) \&.to the selected MIDI-device\&. Notice that as Ecasound will -not send \fIMIDI-clock\fP, but only the \fIstart\fP and \fIstop\fP messages\&. -.IP -\fBEFFECT SETUP\fP -.PP -\fIPRESETS\fP -.PP -Ecasound has a powerful effect preset system that allows you create -new effects by combining basic effects and controllers\&. See -ecasound user\&'s guide for more -detailed information\&. -.PP -.IP "-pf:preset_file\&.eep" -Uses the first preset found from file \&'preset_file\&.eep\&' as -a chain operator\&. -.IP -.IP "-pn:preset_name" -Find preset \&'preset_name\&' from global preset database and use -it as a chain operator\&. See ecasoundrc man page for info about the -preset database\&. -.IP -\fISIGNAL ANALYSIS\fP -.PP -.IP "-ev" -Analyzes sample data to find out how much the signal can -be amplified without clipping\&. The resulting percent value -can be used as a parameter to \&'-ea\&' (amplify)\&. A statistical -summary, containing info about the stereo-image and -distribution of sample values, is printed out at the end -of processing\&. -.IP -.IP "-evp" -Peak amplitude watcher\&. Maintains peak information for -each processed channels\&. Peak information is resetted -on every read\&. -.IP -.IP "-ezf" -Finds the optimal value for DC-adjusting\&. You can use the result -as a parameter to -ezx effect\&. -.IP -\fIGENERAL SIGNAL PROCESSING ALGORITHMS\fP -.IP "-eS:stamp-id" -Audio stamp\&. Takes a snapshot of passing audio data and stores -it using id \&'stamp-id\&' (integer number)\&. This data can later be -used by controllers and other operators\&. -.IP -.IP "-ea:amplify%" -Adjusts the signal amplitude to \&'amplify%\&' percent (linear scale, i\&.e\&. -individual samples are multiplied by \&'amplify%/100\&')\&. See also -\&'-eadb\&'\&. -.IP -.IP "-eac:amplify%,channel" -Amplifies signal of channel \&'channel\&' by amplify-% percent (linear -scale, i\&.e\&. individual samples are multiplied by \&'amplify%/100\&')\&. -\&'channel\&' ranges from 1\&.\&.\&.n where n is the total number of channels\&. -See also \&'-eadb\&'\&. -.IP -.IP "-eadb:gain-dB[,channel]" -Adjusts signal level by \&'gain-dB\&', with a gain of 0dB having no effect -to the signal, negative gains attenuating the signal and positive -gain values amplifying it\&. The \&'channel\&' parameter (1\&.\&.\&.n) is optional\&. -If \&'channel\&' parameter is specified, and its value is nonzero, gain is -only applied to the given channel (1\&.\&.\&.n)\&. -.IP -.IP "-eaw:amplify%,max-clipped-samples" -Amplifies signal by amplify-% percent (linear scale, i\&.e\&. individual -samples are multiplied by \&'amplify%/100\&')\&. If number of consecutive -clipped samples (resulting sample value is outside the nominal -[-1,1] range), a warning will be issued\&. -.IP -.IP "-eal:limit-%" -Limiter effect\&. Limits audio level to \&'limit-%\&' (linear scale) with -values equal or greater than 100% resulting in no change to -the signal\&. -.IP -.IP "-ec:rate,threshold-%" -Compressor (a simple one)\&. \&'rate\&' is the compression rate in -decibels (\&'rate\&' dB change in input signal causes 1dB change -in output)\&. \&'threshold\&' varies between 0\&.0 (silence) and -1\&.0 (max amplitude)\&. -.IP -.IP "-eca:peak-level-%, release-time-sec, fast-crate, crate" -A more advanced compressor (original algorithm by John S\&. Dyson)\&. -If you give a value of 0 to any parameter, the default is used\&. -\&'peak-level-%\&' essentially specifies how hard the peak limiter -is pushed\&. The default of 69% is good\&. \&'release_time\&' is given -in seconds\&. This compressor is very sophisticated, and actually -the release time is complex\&. This is one of the dominant release -time controls, but the actual release time is dependent on a lot of -factors regarding the dynamics of the audio in\&. \&'fastrate\&' is the -compression ratio for the fast compressor\&. This is not really -the compression ratio\&. Value of 1\&.0 is infinity to one, while the -default 0\&.50 is 2:1\&. Another really good value is special cased in -the code: 0\&.25 is somewhat less than 2:1, and sounds super smooth\&. -\&'rate\&' is the compression ratio for the entire compressor chain\&. -The default is 1\&.0, and holds the volume very constant without many nasty -side effects\&. However the dynamics in music are severely restricted, -and a value of 0\&.5 might keep the music more intact\&. -.IP -.IP "-enm:threshold-level-%,pre-hold-time-msec,attack-time-msec,post-hold-time-msec,release-time-msec" -Noise gate\&. Supports multichannel processing (each channel -processed separately)\&. When signal amplitude falls below -\&'threshold_level_%\&' percent (100% means maximum amplitude), gate -is activated\&. If the signal stays below the threshold for -\&'th_time\&' ms, it\&'s faded out during the attack phase of -\&'attack\&' ms\&. If the signal raises above the \&'threshold_level\&' -and stays there over \&'hold\&' ms the gate is released during -\&'release\&' ms\&. -.IP -.IP "-ei:pitch-shift-%" -Pitch shifter\&. Modifies audio pitch by altering its length\&. -.IP -.IP "-epp:right-%" -Stereo panner\&. Changes the relative balance between the first -two channels\&. When \&'right-%\&' is 0, only signal on the left -(1st) channel is passed through\&. Similarly if it is \&'100\&', -only right (2nd) channel is let through\&. -.IP -.IP "-ezx:channel-count,delta-ch1,\&.\&.\&.,delta-chN" -Adjusts the signal DC by \&'delta-chX\&', where X is the -channel number\&. Use -ezf to find the optimal delta -values\&. -.IP -\fIENVELOPE MODULATION\fP - -.IP -.IP "-eemb:bpm,on-time-%" -Pulse gate (pulse frequency given as beats-per-minute)\&. -.IP -.IP "-eemp:freq-Hz,on-time-%" -Pulse gate\&. -.IP -.IP "-eemt:bpm,depth-%" -Tremolo effect (tremolo speed given as beats-per-minute)\&. -.IP -\fIFILTER EFFECTS\fP -.IP "-ef1:center_freq, width" -Resonant bandpass filter\&. \&'center_freq\&' is the center frequency\&. Width -is specified in Hz\&. -.IP -.IP "-ef3:cutoff_freq, reso, gain" -Resonant lowpass filter\&. \&'cutoffr_freq\&' is the filter cutoff -frequency\&. \&'reso\&' means resonance\&. Usually the best values for -resonance are between 1\&.0 and 2\&.0, but you can use even bigger values\&. -\&'gain\&' is the overall gain-factor\&. It\&'s a simple multiplier (1\&.0 -is the normal level)\&. With high resonance values it often is useful -to reduce the gain value\&. -.IP -.IP "-ef4:cutoff, resonance" -Resonant lowpass filter (3rd-order, 36dB, original algorithm by Stefan -M\&. Fendt)\&. Simulates an analog active RC-lowpass design\&. Cutoff is a -value between [0,1], while resonance is between [0,infinity)\&. -.IP -.IP "-efa:delay-samples,feedback-%" -Allpass filter\&. Passes all frequencies with no change in amplitude\&. -However, at the same time it imposes a frequency-dependent -phase-shift\&. -.IP -.IP "-efc:delay-samples,radius" -Comb filter\&. Allows the spikes of the comb to pass through\&. -Value of \&'radius\&' should be between [0, 1\&.0)\&. -.IP -.IP "-efb:center-freq,width" -Bandpass filter\&. \&'center_freq\&' is the center frequency\&. Width -is specified in Hz\&. -.IP -.IP "-efh:cutoff-freq" -Highpass filter\&. Only frequencies above \&'cutoff_freq\&' are passed -through\&. -.IP -.IP "-efi:delay-samples,radius" -Inverse comb filter\&. Filters out the spikes of the comb\&. There -are \&'delay_in_samples-2\&' spikes\&. Value of \&'radius\&' should be -between [0, 1\&.0)\&. The closer it is to the maximum value, -the deeper the dips of the comb are\&. -.IP -.IP "-efl:cutoff-freq" -Lowpass filter\&. Only frequencies below \&'cutoff_freq\&' are passed -through\&. -.IP -.IP "-efr:center-freq,width" -Bandreject filter\&. \&'center_freq\&' is the center frequency\&. Width -is specified in Hz\&. -.IP -.IP "-efs:center-freq,width" -Resonator\&. \&'center_freq\&' is the center frequency\&. Width is specified -in Hz\&. Basicly just another resonating bandpass filter\&. -.IP -\fICHANNEL MIXING / ROUTING\fP - -.IP -.IP "-chcopy:from-channel, to-channel" -Copy channel \&'from_channel\&' to \&'to_channel\&'\&. If \&'to_channel\&' -doesn\&'t exist, it is created\&. Channel indexing starts from 1\&. -Option added to ecasound 2\&.4\&.5\&. -.IP -.IP "-chmove:from-channel, to-channel" -Copy channel \&'from_channel\&' to \&'to_channel\&', and mutes the source -channel \&'from_channel\&'\&. Channel indexing starts from 1\&. -Option added to ecasound 2\&.4\&.5\&. -.IP -.IP "-chorder:ch1,\&.\&.\&.,chN" -Reorder, omit and/r duplicate chain channels\&. The resulting -audio stream has total of \&'N\&' channels\&. Each parameter specifies -the source channel to use for given output channel\&. As an -example, \&'-chorder:2,1\&' would reverse the channels of -a stereo stream (\&'out1,out2\&' = \&'in2,in1\&')\&. Specifying the same -source channel multiple times is allowed\&. For example, \&'-chorder:2,2\&' -would route the second channel to both two output channels -(\&'out1,out2\&' = \&'in2,in2\&')\&. If \&'chX\&' is zero, the given channel \&'X\&' -will be muted in the output stream\&. Option added to ecasound 2\&.7\&.0\&. -.IP -.IP "-chmix:to-channel" -Mix all source channels to channel \&'to_channel\&'\&. If \&'to_channel\&' -doesn\&'t exist, it is created\&. Channel indexing starts from 1\&. -Option added to ecasound 2\&.4\&.5\&. -.IP -.IP "-chmute:channel" -Mutes the channel \&'channel\&'\&. Channel indexing starts from 1\&. -Option added to ecasound 2\&.4\&.5\&. -.IP -.IP "-erc:from-channel,to-channel" -Deprecated, see \fI-chcopy\fP\&. -.IP -.IP "-erm:to-channel" -Deprecated, see \fI-chmix\fP\&. -.IP -\fITIME-BASED EFFECTS\fP - -.IP -.IP "-etc:delay-time-msec,variance-time-samples,feedback-%,lfo-freq" -Chorus\&. -.IP -.IP "-etd:delay-time-msec,surround-mode,number-of-delays,mix-%,feedback-%" -Delay effect\&. \&'delay time\&' is the delay time in milliseconds\&. -\&'surround-mode\&' is a integer with following meanings: 0 = normal, -1 = surround, 2 = stereo-spread\&. \&'number_of_delays\&' should be -obvious\&. Beware that large number of delays and huge delay times -need a lot of CPU power\&. \&'mix-%\&' determines how much effected (wet) -signal is mixed to the original\&. \&'feedback-%\&' represents how much of -the signal is recycled in each delay or, if you prefer, at what rate -the repeated snippet of delayed audio fades\&. Note that sufficiently -low feedback values may result in a number of audible repetitions -lesser than what you have specified for \&'number_of_delays\&', especially -if you have set a low value for \&'mix-%\&'\&. By default the value for this -parameter is 100% (No signal loss\&.)\&. -.IP -.IP "-ete:room_size,feedback-%,wet-%" -A more advanced reverb effect (original algorithm by Stefan M\&. Fendt)\&. -\&'room_size\&' is given in meters, \&'feedback-%\&' is the feedback level -given in percents and \&'wet-%\&' is the amount of reverbed signal added -to the original signal\&. -.IP -.IP "-etf:delay-time-msec" -Fake-stereo effect\&. The input signal is summed to mono\&. The -original signal goes to the left channels while a delayed -version (with delay of \&'delay time\&' milliseconds) is goes to -the right\&. With a delay time of 1-40 milliseconds this -adds a stereo-feel to mono-signals\&. -.IP -.IP "-etl:delay-time-msec,variance-time-samples,feedback-%,lfo-freq" -Flanger\&. -.IP -.IP "-etm:delay-time-msec,number-of-delays,mix-%" -Multitap delay\&. \&'delay time\&' is the delay time in milliseconds\&. -\&'number_of_delays\&' should be obvious\&. \&'mix-%\&' determines how much -effected (wet) signal is mixed to the original\&. -.IP -.IP "-etp:delay-time-msec,variance-time-samples,feedback-%,lfo-freq" -Phaser\&. -.IP -.IP "-etr:delay-time,surround-mode,feedback-%" -Reverb effect\&. \&'delay time\&' is the delay time in milliseconds\&. -If \&'surround-mode\&' is \&'surround\&', reverbed signal moves around the -stereo image\&. \&'feedback-%\&' determines how much effected (wet) -signal is fed back to the reverb\&. -.IP -\fILADSPA-PLUGINS\fP -.IP "-el:plugin_unique_name,param-1,\&.\&.\&.,param-N" -Ecasound supports LADSPA-effect plugins (Linux Audio Developer\&'s Simple -Plugin API)\&. Plugins are located in shared library (\&.so) files in -/usr/local/share/ladspa (configured in ecasoundrc man page)\&. One shared -library file can contain multiple plugin objects, but every plugin -has a unique plugin name\&. This name is used for selecting plugins\&. -See LAD mailing list web site for -more info about LADSPA\&. Other useful sites are LADSPA home -page and LADSPA -documentation\&. -.IP -.IP "-eli:plugin_unique_number,param-1,\&.\&.\&.,param-N" -Same as above expect plugin\&'s unique id-number is used\&. It -is guaranteed that these id-numbers are unique among all -LADSPA plugins\&. -.IP -\fIGATE SETUP\fP -.PP -.IP "-gc:start-time,len" -Time crop gate\&. Initially gate is closed\&. After \&'start-time\&' seconds -has elapsed, gate opens and remains open for \&'len\&' seconds\&. When -closed, passing audio buffers are trucated to zero length\&. -.IP -.IP "-ge:open-threshold-%,close-thold-%,volume-mode,reopen-count" -Threshold gate\&. Initially gate is closed\&. It is opened when volume -goes over \&'othreshold\&' percent\&. After this, if volume drops below -\&'cthold\&' percent, gate is closed and won\&'t be opened again, unless the -\&'reopen-count\&' is set to anything other than zero\&. -If \&'value_mode\&' is \&'rms\&', average RMS volume is used\&. Otherwise -peak average is used\&. When closed, passing audio buffers are trucated -to zero length\&. -If the \&'reopen-count\&' is set to a positive number, then the gate will -restart its operation that many times\&. So for example, a reopen count -of 1 will cause up to 2 openings of the gate\&. A negative value for \&'reopen-count\&' -will result in the gate reopening indefinitely\&. The \&'reopen-count\&' is invaluable -in recording vinyl and tapes, where you can set things up and then recording -starts whenever the needle is on the vinyl, and stops when it\&'s off\&. As many sides -as you like can be recorded in one session\&. You will need to experiment with -buffer lengths and start/stop levels to get reliable settings for your equipment\&. -.IP -.IP "-gm:state" -Manual gate\&. If \&'state\&' is 1, gate is open and all samples are -passed through\&. If \&'state\&' is zero, gate is closed an no samples are -let through\&. This chain operator is useful when writing to an output -needs to be stopped dynamically (without stopping the whole engine)\&. -.IP -\fICONTROL ENVELOPE SETUP\fP - -.IP -Controllers can be used to dynamically change effect parameters -during processing\&. All controllers are attached to the selected -(=usually the last specified effect/controller) effect\&. The first -three parameters are common for all controllers\&. \&'fx_param\&' -specifies the parameter to be controlled\&. Value \&'1\&' means -the first parameter, \&'2\&' the second and so on\&. \&'start_value\&' -and \&'end_value\&' set the value range\&. For examples, look at the -the \fBEXAMPLES\fP section\&. -.IP -.IP "-kos:fx-param,start-value,end-value,freq,i-phase" -Sine oscillator with frequency of \&'freq\&' Hz and initial phase -of \&'i_phase\&' times pi\&. -.IP -.IP "-kog:fx-param,freq,mode,point-pairs,start-value,end-value,pos1,value1,\&.\&.\&." -Generic oscillator\&. Frequency \&'freq\&' Hz, mode either \&'0\&' for -static values or \&'1\&' for linear interpolation\&. \&'point-pairs\&' -specifies the number of \&'posN\&' - \&'valueN\&' pairs to include\&. -\&'start-value\&' and \&'end-value\&' are used as border values\&. -All \&'posN\&' and \&'valueN\&' must be between 0\&.0 and 1\&.0\&. Also, -for all \&'posN\&' values \&'pos1 < pos2 < \&.\&.\&. < posN\&' must be true\&. -.IP -.IP "-kf:fx-param,start-value,end-value,freq,mode,genosc-number" -Generic oscillator\&. \&'genosc_number\&' is the number of the -oscillator preset to be loaded\&. Mode is either \&'0\&' for -static values or \&'1\&' for linear interpolation\&. The location for -the preset file is taken from \&./ecasoundrc (see \fIecasoundrc man page\fP)\&. -.IP -.IP "-kl:fx-param,start-value,end-value,time-seconds" -Linear envelope that starts from \&'start_value\&' and linearly -changes to \&'end_value\&' during \&'time_in_seconds\&'\&. Can -be used for fadeins and fadeouts\&. -.IP -.IP "-kl2:fx-param,start-value,end-value,1st-stage-length-sec,2nd-stage-length-sec" -Two-stage linear envelope, a more versatile tool for doing fade-ins -and fade-outs\&. Stays at \&'start_value\&' for \&'1st_stage_length\&' seconds -and then linearly changes towards \&'end_value\&' during -\&'2nd_stage_length\&' seconds\&. -.IP -.IP "-klg:fx-param,low-value,high-value,point_count,pos1,value1,\&.\&.\&.,posN,valueN" -Generic linear envelope\&. This controller source can be -used to map custom envelopes to chain operator parameters\&. Number of -envelope points is specified in \&'point_count\&'\&. Each envelope point -consists of a position and a matching value\&. Number of pairs must -match \&'point_count\&' (i\&.e\&. \&'N==point_count\&')\&. The \&'posX\&' parameters are given -as seconds (from start of the stream)\&. The envelope points are specified as -float values in range \&'[0,1]\&'\&. Before envelope values are mapped to operator -parameters, they are mapped to the target range of \&'[low-value,high-value]\&'\&. E\&.g\&. -a value of \&'0\&' will set operator parameter to \&'low-value\&' and a value of -\&'1\&' will set it to \&'high-value\&'\&. For the initial segment \&'[0,pos1]\&', the envelope -will output value of \&'value1\&' (e\&.g\&. \&'low-value\&')\&. -.IP -.IP "-km:fx-param,start-value,end-value,controller,channel" -MIDI continuous controller (control change messages)\&. -Messages on the MIDI-channel \&'channel\&' that are coming from -controller number \&'controller\&' are used as the controller -source\&. As recommended by the MIDI-specification, channel -numbering goes from 1 to 16\&. Possible controller numbers -are values from 0 to 127\&. The MIDI-device where bytes -are read from can be specified using \fI-Md\fP option\&. -Otherwise the default MIDI-device is used as specified in -\fI~ecasound/ecasoundrc\fP (see \fIecasoundrc man page\fP)\&. -Defaults to \fI/dev/midi\fP\&. -.IP -.IP "-ksv:fx-param,start-value,end-value,stamp-id,rms-toggle" -Volume analyze controller\&. Analyzes the audio stored in -stamp \&'stamp-id\&' (see \&'-eS:id\&' docs), and creates -control data based on the results\&. If \&'rms-toggle\&' is non-zero, -RMS-volume is used to calculate the control value\&. Otherwise -average peak-amplitude is used\&. -.IP -.IP "-kx" -This is a special switch that can be used when you need -to control controller parameters with another controller\&. -When you specify \fI-kx\fP, the last specified controller -will be set as the control target\&. Then you just add -another controller as usual\&. - -.PP -\fBINTERACTIVE MODE\fP -.PP -See \fIecasound-iam(1)\fP man page\&. -.PP -.SH "ENVIRONMENT" - -.IP -.IP "ECASOUND" -If defined, some utility programs and scripts will use -the \fIECASOUND\fP environment as the default path to -ecasound executable\&. -.PP -.IP "ECASOUND_LOGFILE" -Output all debugging messages to a separate log file\&. If defined, -\fIECASOUND_LOGFILE\fP defines the logfile path\&. This is a good tool for -debugging ECI/EIAM scripts and applications\&. -.PP -.IP "ECASOUND_LOGLEVEL" -Select which messages are written to the logfile defined by -\fIECASOUND_LOGFILE\fP\&. The syntax for \fI-d:level\fP is used\&. If not -defined, all messages are written\&. Defaults to -d:319 (everything else -but \&'functions (64)\&' and \&'continuous (128)\&' class messages)\&. -.PP -.IP "COLUMNS" -Ecasound honors the \fICOLUMNS\fP environment variable when -formatting printed trace messages\&. If \fICOLUMNS\fP is not set, -a default of 74 is used\&. -.PP -.IP "TMPDIR" -Some functions of Ecasound (e\&.g\&. "cs-edit" interactive command) require -creation of temporary files\&. By default, these files are created under -"/tmp", but this can be overridden by setting the \fITMPDIR\fP environment -variable\&. - -.IP -.SH "RETURN VALUES" - -.IP -In interactive mode, ecasound always returns zero\&. -.IP -In non-interactive (batch) mode, a non-zero value is returned -for the following errors: -.IP -.IP "1" -Unable to create a valid chainsetup with the given parameters\&. Can be -caused by invalid option syntax, etc\&. -.PP -.IP "2" -Unable to start processing\&. This can be caused by insufficient file -permissions, inability to access some system resources, etc\&. -.PP -.IP "3" -Error during processing\&. Possible causes: output object has run -out of free disk space, etc\&. -.PP -.IP "4" -Error during process termination and/or cleanup\&. See section -on \&'SIGNALS\&' for further details\&. -.PP -.SH "SIGNALS" - -.PP -When ecasound receives any of the POSIX signals SIGINT (ctrl-c), -SIGHUP, SIGTERM or SIGQUIT, normal cleanup and exit procedure is -initiated\&. Here normal exit means that e\&.g\&. file headers are -updated before closing, helper processes are terminated in normal -way, and so forth\&. -.PP -If, while doing the cleanup described above, ecasound receives -another signal (of the same set of POSIX signals), ecasound -will skip the normal cleanup procedure, and terminate -immediately\&. Any remaining cleanup tasks will be skipped\&. -Depending on the runtime state and configuration, this brute -force exit may have some side-effects\&. Ecasound will return -exit code of \&'4\&' if normal cleanup was skipped\&. -.PP -Special case handling is applied to the SIGINT (ctrl-c) signal\&. -If a SIGINT signal is received during the cleanup procedure, -ecasound will ignore the signal once, and emit a notice to \&'stderr\&' -that cleanup is already in progress\&. Any subsequent SIGINT signals -will no longer get special handling, and instead process will -terminate immediately (and possibly without proper cleanup)\&. -.PP -.SH "FILES" - -.PP -\fI~/\&.ecasound\fP -The default directory for ecasound user resource files\&. -See the ecasoundrc (5) man page man page\&. -.PP -\fI*\&.ecs\fP -Ecasound Chainsetup files\&. Syntax is more or less the -same as with command-line arguments\&. -.PP -\fI*\&.ecp\fP -Ecasound Chain Preset files\&. Used for storing effect -and chain operator presets\&. See ecasound user\&'s guide for -more better documentation\&. -.PP -\fI*\&.ews\fP -Ecasound Wave Stats\&. These files are used to cache -waveform data\&. -.PP -.SH "EXAMPLES" - -.PP -Examples of how to perform common tasks with ecasound can -be found at -http://eca\&.cx/ecasound/Documentation/examples\&.html\&. -.PP -.SH "SEE ALSO" - -.PP -ecatools (1) man page, -ecasound-iam (1) man page -ecasoundrc (5) man page, -"HTML docs in the Documentation subdirectory" -.PP -.SH "BUGS" - -.PP -See file BUGS\&. If ecasound behaves weirdly, try to -increase the debug level to see what\&'s going on\&. -.PP -.SH "AUTHOR" - -.PP -Kai Vehmanen, > diff --git a/library/ecasound/Documentation/ecasound_manpage.html b/library/ecasound/Documentation/ecasound_manpage.html deleted file mode 100644 index e9251a0e0..000000000 --- a/library/ecasound/Documentation/ecasound_manpage.html +++ /dev/null @@ -1,1187 +0,0 @@ - -ecasound - - - -
-

ecasound

-

18.08.2010

- - - - - -
-

- - -ecasound(1) - - - -
-

ecasound(1)

-

Multimedia software

-

18.08.2010

- - -

-

NAME

ecasound - sample editor, multitrack recorder, fx-processor, etc. -

-

SYNOPSIS

- ecasound [ general_options ] { [ chain_setup ] [ effect_setup ] [ input_setup ] [ output_setup ] } -

-

DESCRIPTION

-

-Ecasound is a software package designed for multitrack audio -processing. It can be used for simple tasks like audio playback, -recording and format conversions, as well as for multitrack effect -processing, mixing, recording and signal recycling. Ecasound supports -a wide range of audio inputs, outputs and effect algorithms. -Effects and audio objects can be combined in various ways, and their -parameters can be controlled by operator objects like oscillators -and MIDI-CCs. A versatile console mode user-interface is included -in the package. -

-

OPTIONS

-

-Note! All options except those mentioned in ecasound options and - Global options, can be used in ecasound chainsetup files (.ecs). -

-

-

- -ECASOUND OPTIONS -

-These options are parsed and handled by the ecasound frontend binary and -are not passed to backend library. This means that these options may -not work in other applications that use ecasound libraries for their -functionality. -

-

-

-c
-Starts ecasound in interactive mode. In interactive mode you can -control ecasound with simple commands ("start", "stop", "pause", -etc.). See ecasound-iam . -

-

-C
-Disables ecasound's interactive mode (see '-c' and '-K'). -
-

-

-D
-Print all debug information to stderr (unbuffered, plain output -without ncurses). -

-

-s[:]chainsetup-file
-Create a new chainsetup from file 'chainsetup-file' and add -it to the current session. Chainsetup files commonly have -a filename ending to the '.ecs' extension. A chainsetup can -contain inputs, outputs, chains, effects, controllers -- i.e. -objects one one specific configuration of audio processing -elements. A session, on the other hand, is a collection of -one or more chainsetups. Only one of the chainsetups may be -connected (i.e. it can be run/processed). But it is possible -to have another chainsetup select (i.e. can be configured) -while other one is current connteced (i.e. running). -

-

-E "cmd1 [[args] ; cmd2 args ; ... ; cmdN]"
-Execute a set of Ecasound Interactive mode (EIAM) commands -at launch. These commands are executed immediately after -ecasound is started. If the command line contains sufficient -options to create a valid chainsetup that will be executed, -the launch commands are executed after the other command -line options are parsed, but before the processing engine -is started. Note that this command is a feature of -the ecasound frontend binary and not supported by -the library backend. This means that other clients may -not support the '-E' option, and also that the launch -commands are not saved as part of chainsetup or session -state. -

-

--server
-Enables the so called NetECI mode, in which ecasound can -be controlled remotely over a socket connection. When -activated, clients can connect to the running ecasound -session, and use interactive mode commands to control and -observe ecasound processing. -

-The NetECI protocol is defined in -Ecasound's Programmer Guide -

-One example client using this feature is ecamonitor(1). This -utility is included in the Ecasound distribution package (requires -a working Python environment). -

-Warning! If the machine running ecasound, is connected to -a public network, be sure to block ecasound's port in your -firewall! As there is no access control implemented for incoming -connections, anyone can otherwise connect, control and observe your -ecasound sessions. -This option replaces '--daemon' (deprecated in 2.6.0). -

-

--server-tcp-port=NNN
-Set the TCP port used by the daemon mode. By default -ecasound will use port number 2868. -This option replaces '--daemon-port' (deprecated in 2.6.0). -

-

--no-server
-Disable ecasound's daemon mode. This is the default. -This option replaces '--nodaemon' (deprecated in 2.6.0). -

-

--osc-udp-port=NNN
-Enables support for Open Source Control (OSC). Ecasound will listen -for incoming OSC messages on UDP port NNN. Ecasound's OSC interface -is documented at: -<http://ecasound.git.sourceforge.net/git/gitweb.cgi?p=ecasound/ecasound;a=blob;f=Documentation/ecasound_osc_interface.txt;hb=HEAD> -

-Note that OSC support is still experimental and the interface -might change in later versions of Ecasound. -

-This option was added to ecasound 2.7.0. -

-

--keep-running,-K
-Do not exit when processing is finished/stopped. Only affects -non-interactive operating mode (see -c/-C). -Option added to ecasound 2.4.2. -

-

--help,-h
-Show this help. -

-

--version
-Print version info. -

-

-

- -GLOBAL OPTIONS -

-

-

-

-d, -dd, -ddd
-Increase the amount of printed debug messages. -d adds -some verbosity, while -ddd results in very detailed -output. -

-

-d:debug_level
-Set the debug level mask to 'debug_level'. This a bitmasked value with -the following classes: errors (1), info (2), subsystems (4), module_names (8), -user_objects (16), system_objects 32, functions (64), continuous (128) and -eiam_return_values (256). Default is 271 (1+2+4+8+256). See sourcode -documentation for the ECA_LOGGER class for more detailed information. -

-

-R[:]path-to-file
-Use ecasound resource file (see ecasoundrc man page) 'path-to-file' as -the only source of setting resource value. Specifying this option -will disable the normal policy of querying both global and user (if exists) -resource files. -

-

-q
-Quiet mode, no output. Same as -d:0. -

-

-

- -GENERAL CHAINSETUP OPTIONS -

-

-

-a:chainname1, chainname2, ...
-Selects active signal chains. All inputs and outputs following -this '-a' option are assigned to selected chains (until a new -a -option is specified). When adding effects, controllers and other -chain operators, only one chain can be selected at a time. If no -a option -has been given, chain 'default' is used instead when adding objects. -Chain name 'all' is also reserved. It will cause all existing chains -to be selected. By giving multiple -a options, you can control to which -chains effects, inputs and outputs are assigned to. Look at the EXAMPLES -section for more detailed info about the usage of this option. -

-

-n:name
-Sets the name of chainsetup to 'name'. If not specified, defaults -either to "command-line-setup" or to the file name from which -chainsetup was loaded. Whitespaces are not allowed. -

-

-x
-Truncate outputs. All output object are opened in overwrite mode. -Any existing files will be truncated. -

-

-X
-Open outputs for updating. Ecasound opens all outputs - if target -format allows it - in readwrite mode. -

-

-z:feature
-Enables 'feature'. Most features can be disabled using notation --z:nofeature. '-z:db,dbsize' enables double-buffering for audio -objects that support it (dbsize=0 for default, otherwise buffer -size in sample frames). '-z:nodb' disables double-buffering. -'-z:intbuf' and '-z:nointbuf' control whether extra internal buffering -is allowed for realtime devices. Disabling this can reduce -latency times in some situations. With '-z:xruns', processing will be -halted if an under/overrun occurs. '-z:multitrack' and -'z:nomultitrack' can be used to force ecasound to enable or disable -multitrack-mode. In rare cases you may want to explicitly specify -the recording offset with '-z:multitrack,offset-in-samples'. The -offset is the amount of samples skipped when recording from -real-time inputs. '-z:psr' enables the precise-sample-rates mode -for OSS-devices. '-z:mixmode,sum' enables mixing mode where channels -are mixed by summing all channels. The default is '-z:mixmode,avg', -in which channels are mixed by averaging. Mixmode selection was first -added to ecasound 2.4.0. -See ecasoundrc man page. -

-

-

- -CHAINSETUP BUFFERING AND PERFORMANCE OPTIONS -

-

-

-B:buffering_mode
-Selects the default buffering mode. Mode is one of: 'auto' (default), -'nonrt', 'rt', 'rtlowlatency'. -

-

-b:buffer size
-Sets the size of buffer in samples (must be an exponent of 2). This -is quite an important option. For real-time processing, you should -set this as low as possible to reduce the processing delay. Some -machines can handle buffer values as low as 64 and 128. In some -circumstances (for instance when using oscillator envelopes) small -buffer sizes will make envelopes act more smoothly. When not processing -in real-time (all inputs and outputs are normal files), values between -512 - 4096 often give better results. Default is 1024. -

-

-r:sched_priority
-Use realtime scheduling policy (SCHED_FIFO). This is impossible if -ecasound doesn't have root priviledges. Beware! This gives better -performance, but can cause total lock-ups if something goes wrong. -The 'sched_priority' can be omitted (0=omitted). If given, -this is the static priority to the highest priority ecasound thread. -Other ecasound threads run with priority 'sched_priority-1...n'. -Value '-1' can be used to disable raised-priority mode. -

-

-z:feature
-Relevant features are -z:db,xxx (-z:nodb) and -z:intbuf (-z:nointbuf). -See section General chainsetup options for details. -

-

-

- -PROCESSING CONTROL -

-

-t:seconds
-Sets processing time in seconds (doesn't have to be an integer value). -If processing time isn't set, engine stops when all inputs are -finished. This option is equivalent to the 'cs-set-length' EIAM -command. A special-case value of '-1' will set the chainsetup length -according to the longest input object. -

-

-tl
-Enables looping. When processing is finished, engine will start -again from beginning. This option is equivalent to the 'cs-loop' -EIAM command. -

-

-

- -INPUT/OUTPUT SETUP -

-See ecasound user's guide for -more detailed documentation. -

-

-

-G:mgrtype,optstring
-Sets options for audio object manager type 'mgrtype'. -For available options, see "OBJECT TYPE SPECIFIC NOTES" below. -

-

-f:sample_format,channel,sample-rate,interleaving
-Sets the audio stream parameters for subsequent audio objects. -To set different parameters for different audio objects, multiple -'-f' options have to be specified (note the ordering, the '-f' -options should precede the audio objects for them to have any -effect). See documentation for '-i' and '-o' options. -

-When an audio object is opened (e.g. a file or sound device -is opened, or connection is made to a sound server), the audio -stream parameters are passed to the object. It should be noted that -not all audio objects allow to set any or all of the parameters. -For instance when opening existing audio files, many file formats -have a header describing the file audio parameters. In -these cases the audio file header overrides the parameters -passed with '-f' option. Similarly when creating JACK inputs and -outputs, the JACK server mandates the sampling rate and sample -format. -

-If no '-f' option is specified, or some of the argument fields -are left empty (e.g. '-f:,2,44100'), ecasound will use default values. These -default values are defined in ecasoundrc configuration file. See -ecasoundrc(5) manual page. -

-Note that ecasound opens out files by default in update mode. -Unless option '-x' (overwrite outputs) option is given, -audio parameters of an existing audio file take preference over -the params set with '-f'. -

-Sample format is given as a formatted string. The first letter is -either "u", "s" and "f" (unsigned, signed, floating point). The -following number specifies sample size in bits. If sample is -little endian, "_le" is added to the end. Similarly if big endian, -"_be" is added. If endianess is not specified, host byte-order is used. -Currently supported formats are "u8" (same as "8"), "s16_le" (same -as "16"), "s16_be", "s24_le", "s24_be", "s32_le", "s32_be", "f32_le" -and "f32_be". An empty string "" picks the system default sample -format. -

-The 4th parameter defines the channel layout. The available -options are 'i' (interleaved' and 'n' (noninterleaved). With -the noninterleaved setting, ecasound will process samples -one channel at a time, and the blocksize is set with '-b'. -The default setting is 'i'. -

-

-y:seconds
-Sets starting position for last specified input/output. If -you need more flexible control over audio objects, you should -use the .ewf format. -

-

-i[:]input-file-or-device[,params]
-Specifies a new input source that is connected to all selected chains (chains -are selected with '-a:...'). Connecting multiple inputs to the same chain is -not possible, but one input can be connected to multiple chains. Input can be -a a file, device or some other audio object (see below). If the input is -a file, its type is determined using the file name extension. If the object -name contains any commas, the name must be enclosed in backquotes to avoid -confusing the parser. Currently supported formats are RIFF WAVE files (.wav), -audio-cd tracks (.cdr), ecasound EWF files (.ewf), RAW audio data (.raw) and -MPEG audio files (.mp2,.mp3). More audio formats are supported via libaudiofile -and libsndfile libraries (see documentation below). MikMod is also supported (.xm, -.mod, .s3m, .it, etc). MIDI files (.mid) are supported using Timidity++. -Similarly Ogg Vorbis (.ogg) can be read, and written if ogg123 and vorbize tools -are installed; FLAC files (.flac) with flac command-line tools or using -libsndfile; and AAC files (.aac/.m4a/.mp4) with faad2/faac tools. Supported -realtime devices are OSS audio devices (/dev/dsp*), ALSA audio and loopback -devices and JACK audio subsystem. If no inputs are specified, the first -non-option (doesn't start with '-') command line argument is considered -to be an input. -

-

-o[:]output-file-or-device[,params]
-Works in the same way as the -i option. If no outputs are specified, -the default output device is used (see ~/.ecasoundrc). If the object -name contains any commas, the name must be enclosed in backquotes to -avoid confusing the parser. Note, many object types do not support -output (e.g. MikMod, MIDI and many others). -

-OBJECT TYPE SPECIFIC NOTES -

ALSA devices - 'alsa'
-When using ALSA drivers, instead of a device filename, you need to -use the following option syntax: -i[:]alsa,pcm_device_name. -

-

ALSA direct-hw and plugin access - 'alsahw', 'alsaplugin'
-It's also possible to use a specific card and device combination -using the following notation: -i[:]alsahw,card_number,device_number,subdevice_number. -Another option is the ALSA PCM plugin layer. It works just like -the normal ALSA pcm-devices, but with automatic channel count and -sample format conversions. Option syntax is --i[:]alsaplugin,card_number,device_number,subdevice_number. -

-

aRts input/output - 'arts'
-If enabled at compile-time, ecasound supports audio input and -output using aRts audio server. Option syntax is -i:arts, --o:arts. -

-

Audio file sequencing - 'audioloop', 'select', 'playat'
-Ecasound provides a set of special audio object types that -can be used for temporal sequencing of audio files - i.e. looping, -playing only a select portion of a file, playing file at a spefific -time, and other such operation. -

-Looping is possible with -i:audioloop,file.ext,params. The -file name (or any object type understood by Ecasound) given -as the second parameter is played back continuously looping -back to the beginning when the end of file is reached. Any additional -parameters given are passed unaltered to the file object. -Parameters 3...N are passed as is to the child object (i.e. -"-i audioloop,foo.wav,bar1,bar2" will pass parameters -"bar1,bar2" to the "foo.wav" object. -

-To select and use only a specific segment of an audio object, -the -i:select,start-time,duration,file.ext,params can -be used. This will play "duration" of "file.ext", starting at -"start-time". The time values should be given as seconds (e.g. -"2.25", or as samples (e.g. "25000sa"). Parameters 4...N are -passed as is to the child object. -

-To play an audio object at a given moment in time, -the -i:playat,play-at-time,file.ext,params can be -used. This will play "file.ext" after position reaches -"play-at-time". The time values should be given as seconds (e.g. -"2.25", or as samples (e.g. "25000sa"). Parameters 2...N are -passed as is to the child object. -

-

Ecasound Wave Files (EWF) - '*.ewf'
-A special file format that allows to slice and loop full (or segments) -of audio files. This format is specific to Ecasound. -See ecasound user's guide for more -detailed information. -

-See also audio object types 'audioloop', 'select' and 'playat'. -

-

JACK input/outputs - Overview
-JACK is a low-latency audio server that can be used to connect -multiple independent audio application to each other. -It is different from other audio server efforts in that -it has been designed from the ground up to be suitable for low-latency -professional audio work. -

-

JACK input/outputs - 'jack'
-Ecasound provides multiple ways to communicate with JACK -servers. To create a JACK input or output object, one should use -i jack and --o jack. These create JACK client ports "ecasound:in_N" and -"ecasound:out_n" respectively ('N' is replaced by the channel number). -Ecasound automatically creates one JACK port for each channel (number -of channels is set with -f:bits,channels,rate option). -

-It is important to note that by default JACK ports are not connected -anywhere (e.g. to soundcard input/outputs, or to other apps). One thus -has to connect the ports with an external program (e.g. "QJackCtl" -or "jack_connect"). -

-

JACK input/outputs - 'jack,clientname,portprefix'
-"jack,clientname" For simple use scanerios, ecasound provides a way to autoconnect -the ecasound ports. This can be done with by giving the peer client -name as the second parameter to the "jack" object, e.g. -o jack,clientname. -As an example, -o jack,system will create an output that is -automatically connected to outputs of the default system soundcard. -The client parameter can be omitted, in which case no automatic -connections are made. -

-If one needs to change the port prefix (e.g. "in" in client name -"ecasound:in_N"), the prefix can be specified as the third parameter to -"jack" object, e.g. -o jack,,fxout. Also the third parameter can be -omitted, in which case the default prefixes "in" and "out" are used. -

-

JACK input/outputs - 'jack_multi'
-A variant of 'jack' object type is 'jack_multi'. The full object syntax -is jack_multi,destport1,...,destportN. When a 'jack_multi' object -is connected to a JACK server, first channel of the object is connected -to JACK port 'destport1', second to 'destport2' and so forth. For -instance "-f:32,2,44100 -o jack_multi,foo:in,bar:in" -creates a stereo ecasound output object, with its left and right -channels routed to two difference JACK clients. The destination ports -must be active when the ecasound engine is launched, or otherwise -the connections cannot be established. If destination ports are not -specified for all channels, or zero length strings are given, those -ports are not connected at launch by ecasound. -

-

JACK input/outputs - 'jack_alsa', 'jack_auto', 'jack_generic' (**deprecated since 2.6.0**)
-Ecasound 2.5 and older supported "jack_alsa", "jack_auto" and "jack_generic" object -types, but these are now replaced by a more generic "jack" interface, and thus are -now deprecated (they work but are no longer documented). -

-

JACK input/outputs - client options
-Additionally global JACK options can be set using --G:jack,client_name,operation_mode option. 'client_name' -is the name used when registering ecasound to the JACK system. -If 'operation_mode' is "notransport", ecasound will ignore -any transport state changes in the JACK-system; in mode -"send" it will send all start, stop and position-change events to -other JACK clients; in mode "recv" ecasound will follow JACK start, -stop and position-change events; and mode "sendrecv" (the default) -which is a combination of the two previous modes. -

-More details about ecasound's JACK support can be found -from Ecasound User's Guide. -

-

Libaudiofile - 'audiofile'
-If libaudiofile support was enabled at compile-time, this -option allows you to force Ecasound to use libaudiofile -for reading/writing a certain audio file. Option syntax -is -i:audiofile,foobar.ext (same for -o). -

-

Libsndfile - 'sndfile'
-If libsndfile support was enabled at compile-time, this -option allows you to force Ecasound to use libsndfile -for reading/writing a certain audio file. Option syntax -is -i:sndfile,foobar.ext[,.format-ext] (same for -o). -The optional third parameter "format" can be used to -override the audio format (for example you can create an -AIFF file with filename "foo.wav"). -

-

Loop device - 'loop'
-Loop devices make it possible to route (loop back) data between -chains. Option syntax is -[io][:]loop,tag. If you add -a loop output with tag '1', all data written to this output is routed -to any loop input with tag '1'. The tag can be either numerical -(e.g. '-i:loop,1') or a string (e.g. "-i:loop,vocals"). Like -with other input/output objects, you can attach the same loop -device to multiple chains and this way split/mix the signal. -

-Note: this 'loop' device is different from 'audioloop' (latter -added to ecasound v2.5.0). -

-

Mikmod - 'mikmod'
-If mikmod support was enabled at compile-time, this -option allows you to force Ecasound to use Mikmod -for reading/writing a certain module file. Option syntax -is -i:mikmod,foobar.ext. -

-

Null inputs/outputs - 'null'
-If you specify "null" or "/dev/null" as the input or output, -a null audio device is created. This is useful if you just want -to analyze sample data without writing it to a file. There's -also a realtime variant, "rtnull", which behaves just like "null" -objects, except all i/o is done at realtime speed. -

-

Resample - 'resample'
-Object type 'resample' can be used to resample audio -object's audio data to match the sampling rate used -in the active chainsetup. For example, -ecasound -f:16,2,44100 -i resample,22050,foo.wav -o /dev/dsp, -will resample file from 22.05kHz to 44.1kHz and write the -result to the soundcard device. Child sampling rate can be -replaced with keyword 'auto'. In this case ecasound will try -to query the child object for its sampling rate. This works with -files formats such as .wav which store meta information about -the audio file format. To use 'auto' in the previous example, -ecasound -f:16,2,44100 -i resample,auto,foo.wav -o /dev/dsp. -

-Parameters 4...N are passed as is to the child object (i.e. -"-i resample,22050,foo.wav,bar1,bar2" will pass parameters -"bar1,bar2" to the "foo.wav" object. -

-If ecasound was compiled with support for libsamplerate, you can -use 'resample-hq' to use the highest quality resampling algorithm -available. To force ecasound to use the internal resampler, -'resampler-lq' (low-quality) can be used. -

-

Reverse - 'reverse'
-Object type 'reverse' can be used to reverse audio -data coming from an audio object. As an example, -ecasound -i reverse,foo.wav -o /dev/dsp will play -'foo.wav' backwards. Reversing output objects is not -supported. Note! Trying to reverse audio object types with really -slow seek operation (like mp3), works extremely badly. -Try converting to an uncompressed format (wav or raw) -first, and then do reversation. -

-Parameters 3...N are passed as is to the child object (i.e. -"-i reverse,foo.wav,bar1,bar2" will pass parameters -"bar1,bar2" to the "foo.wav" object. -

-

System standard streams and named pipes - 'stdin', 'stdout'
-You can use standard streams (stdin and stdout) by giving stdin -or stdout as the file name. Audio data is assumed to be in -raw/headerless (.raw) format. If you want to use named pipes, -create them with the proper file name extension before use. -

-

Tone generator - 'tone'
-To generate a test tone, input -i:tone,type,freq,duration-secs -can be used. Parameter 'type' specifies the tone type: currently -only 'sine' is supported. The 'freq' parameter sets the frequency -of the generated tone and 'duration-secs' the length of the generated -stream. Specifying zero, or a negative value, as the duration will -produce an infinite stream. This feature was first added to Ecasound -2.4.7. -

-

Typeselect - 'typeselect'
-The special 'typeselect' object type can be used to override -how ecasound maps filename extensions and object types. For -instance ecasound -i typeselect,.mp3,an_mp3_file.wav -o /dev/dsp. -would play the file 'an_mp3_file.wav' as an mp3-file and not -as an wav-file as would happen without typeselect. -

-Parameters 4...N are passed as is to the child object (i.e. -"-i typeselect,.au,foo.wav,bar1,bar2" will pass parameters -"bar1,bar2" to the "foo.wav" object. -

-

-

- -MIDI SETUP -

-

-

MIDI I/O devices - general
-If no MIDI-device is specified, the default MIDI-device is -used (see ecasoundrc(5)). -

-

-Md:rawmidi,device_name
-Add a rawmidi MIDI I/O device to the setup. 'device_name' can be anything -that can be accessed using the normal UNIX file operations and -produces raw MIDI bytes. Valid devices are for example OSS rawmidi -devices (/dev/midi00), ALSA rawmidi devices (/dev/snd/midiC2D0), named -pipes (see mkfifo man page), and normal files. -

-

-Md:alsaseq,sequencer-port
-Adds a ALSA MIDI sequencer port to the setup. 'sequencer-port' identifies -a port to connect to. It can be numerical (e.g. 128:1), or a client -name (e.g. "KMidimon"). -

-

-Mms:device_id
-Sends MMC start ("Deferred Play") and stop ("Stop") with -device ID 'device_id'. -

-While Ecasound does not directly support syncing transport state -to incoming MMC messages, this can be achieved by connecting Ecasound -to JACK input/outputs, and using a tool such as JackMMC and JackCtlMMC ( -see <http://jackctlmmc.sourceforge.net/>) to convert MMC messages -into JACK transport change events. -

-

-Mss
-Sends MIDI-sync (i.e. "MIDI Start" and "MIDI Stop" system realtime -messages) .to the selected MIDI-device. Notice that as Ecasound will -not send MIDI-clock, but only the start and stop messages. -

-

-

- -EFFECT SETUP -

-PRESETS -

-Ecasound has a powerful effect preset system that allows you create -new effects by combining basic effects and controllers. See -ecasound user's guide for more -detailed information. -

-

-

-

-pf:preset_file.eep
-Uses the first preset found from file 'preset_file.eep' as -a chain operator. -

-

-pn:preset_name
-Find preset 'preset_name' from global preset database and use -it as a chain operator. See ecasoundrc man page for info about the -preset database. -

-

-

-SIGNAL ANALYSIS -

-

-

-

-ev
-Analyzes sample data to find out how much the signal can -be amplified without clipping. The resulting percent value -can be used as a parameter to '-ea' (amplify). A statistical -summary, containing info about the stereo-image and -distribution of sample values, is printed out at the end -of processing. -

-

-evp
-Peak amplitude watcher. Maintains peak information for -each processed channels. Peak information is resetted -on every read. -

-

-ezf
-Finds the optimal value for DC-adjusting. You can use the result -as a parameter to -ezx effect. -

-

-

-GENERAL SIGNAL PROCESSING ALGORITHMS -

-

-eS:stamp-id
-Audio stamp. Takes a snapshot of passing audio data and stores -it using id 'stamp-id' (integer number). This data can later be -used by controllers and other operators. -

-

-ea:amplify%
-Adjusts the signal amplitude to 'amplify%' percent (linear scale, i.e. -individual samples are multiplied by 'amplify%/100'). See also -'-eadb'. -

-

-eac:amplify%,channel
-Amplifies signal of channel 'channel' by amplify-% percent (linear -scale, i.e. individual samples are multiplied by 'amplify%/100'). -'channel' ranges from 1...n where n is the total number of channels. -See also '-eadb'. -

-

-eadb:gain-dB[,channel]
-Adjusts signal level by 'gain-dB', with a gain of 0dB having no effect -to the signal, negative gains attenuating the signal and positive -gain values amplifying it. The 'channel' parameter (1...n) is optional. -If 'channel' parameter is specified, and its value is nonzero, gain is -only applied to the given channel (1...n). -

-

-eaw:amplify%,max-clipped-samples
-Amplifies signal by amplify-% percent (linear scale, i.e. individual -samples are multiplied by 'amplify%/100'). If number of consecutive -clipped samples (resulting sample value is outside the nominal -[-1,1] range), a warning will be issued. -

-

-eal:limit-%
-Limiter effect. Limits audio level to 'limit-%' (linear scale) with -values equal or greater than 100% resulting in no change to -the signal. -

-

-ec:rate,threshold-%
-Compressor (a simple one). 'rate' is the compression rate in -decibels ('rate' dB change in input signal causes 1dB change -in output). 'threshold' varies between 0.0 (silence) and -1.0 (max amplitude). -

-

-eca:peak-level-%, release-time-sec, fast-crate, crate
-A more advanced compressor (original algorithm by John S. Dyson). -If you give a value of 0 to any parameter, the default is used. -'peak-level-%' essentially specifies how hard the peak limiter -is pushed. The default of 69% is good. 'release_time' is given -in seconds. This compressor is very sophisticated, and actually -the release time is complex. This is one of the dominant release -time controls, but the actual release time is dependent on a lot of -factors regarding the dynamics of the audio in. 'fastrate' is the -compression ratio for the fast compressor. This is not really -the compression ratio. Value of 1.0 is infinity to one, while the -default 0.50 is 2:1. Another really good value is special cased in -the code: 0.25 is somewhat less than 2:1, and sounds super smooth. -'rate' is the compression ratio for the entire compressor chain. -The default is 1.0, and holds the volume very constant without many nasty -side effects. However the dynamics in music are severely restricted, -and a value of 0.5 might keep the music more intact. -

-

-enm:threshold-level-%,pre-hold-time-msec,attack-time-msec,post-hold-time-msec,release-time-msec
-Noise gate. Supports multichannel processing (each channel -processed separately). When signal amplitude falls below -'threshold_level_%' percent (100% means maximum amplitude), gate -is activated. If the signal stays below the threshold for -'th_time' ms, it's faded out during the attack phase of -'attack' ms. If the signal raises above the 'threshold_level' -and stays there over 'hold' ms the gate is released during -'release' ms. -

-

-ei:pitch-shift-%
-Pitch shifter. Modifies audio pitch by altering its length. -

-

-epp:right-%
-Stereo panner. Changes the relative balance between the first -two channels. When 'right-%' is 0, only signal on the left -(1st) channel is passed through. Similarly if it is '100', -only right (2nd) channel is let through. -

-

-ezx:channel-count,delta-ch1,...,delta-chN
-Adjusts the signal DC by 'delta-chX', where X is the -channel number. Use -ezf to find the optimal delta -values. -

-

-

-ENVELOPE MODULATION -

-

-

-eemb:bpm,on-time-%
-Pulse gate (pulse frequency given as beats-per-minute). -

-

-eemp:freq-Hz,on-time-%
-Pulse gate. -

-

-eemt:bpm,depth-%
-Tremolo effect (tremolo speed given as beats-per-minute). -

-

-

-FILTER EFFECTS -

-

-ef1:center_freq, width
-Resonant bandpass filter. 'center_freq' is the center frequency. Width -is specified in Hz. -

-

-ef3:cutoff_freq, reso, gain
-Resonant lowpass filter. 'cutoffr_freq' is the filter cutoff -frequency. 'reso' means resonance. Usually the best values for -resonance are between 1.0 and 2.0, but you can use even bigger values. -'gain' is the overall gain-factor. It's a simple multiplier (1.0 -is the normal level). With high resonance values it often is useful -to reduce the gain value. -

-

-ef4:cutoff, resonance
-Resonant lowpass filter (3rd-order, 36dB, original algorithm by Stefan -M. Fendt). Simulates an analog active RC-lowpass design. Cutoff is a -value between [0,1], while resonance is between [0,infinity). -

-

-efa:delay-samples,feedback-%
-Allpass filter. Passes all frequencies with no change in amplitude. -However, at the same time it imposes a frequency-dependent -phase-shift. -

-

-efc:delay-samples,radius
-Comb filter. Allows the spikes of the comb to pass through. -Value of 'radius' should be between [0, 1.0). -

-

-efb:center-freq,width
-Bandpass filter. 'center_freq' is the center frequency. Width -is specified in Hz. -

-

-efh:cutoff-freq
-Highpass filter. Only frequencies above 'cutoff_freq' are passed -through. -

-

-efi:delay-samples,radius
-Inverse comb filter. Filters out the spikes of the comb. There -are 'delay_in_samples-2' spikes. Value of 'radius' should be -between [0, 1.0). The closer it is to the maximum value, -the deeper the dips of the comb are. -

-

-efl:cutoff-freq
-Lowpass filter. Only frequencies below 'cutoff_freq' are passed -through. -

-

-efr:center-freq,width
-Bandreject filter. 'center_freq' is the center frequency. Width -is specified in Hz. -

-

-efs:center-freq,width
-Resonator. 'center_freq' is the center frequency. Width is specified -in Hz. Basicly just another resonating bandpass filter. -

-

-

-CHANNEL MIXING / ROUTING -

-

-

-chcopy:from-channel, to-channel
-Copy channel 'from_channel' to 'to_channel'. If 'to_channel' -doesn't exist, it is created. Channel indexing starts from 1. -Option added to ecasound 2.4.5. -

-

-chmove:from-channel, to-channel
-Copy channel 'from_channel' to 'to_channel', and mutes the source -channel 'from_channel'. Channel indexing starts from 1. -Option added to ecasound 2.4.5. -

-

-chorder:ch1,...,chN
-Reorder, omit and/r duplicate chain channels. The resulting -audio stream has total of 'N' channels. Each parameter specifies -the source channel to use for given output channel. As an -example, '-chorder:2,1' would reverse the channels of -a stereo stream ('out1,out2' = 'in2,in1'). Specifying the same -source channel multiple times is allowed. For example, '-chorder:2,2' -would route the second channel to both two output channels -('out1,out2' = 'in2,in2'). If 'chX' is zero, the given channel 'X' -will be muted in the output stream. Option added to ecasound 2.7.0. -

-

-chmix:to-channel
-Mix all source channels to channel 'to_channel'. If 'to_channel' -doesn't exist, it is created. Channel indexing starts from 1. -Option added to ecasound 2.4.5. -

-

-chmute:channel
-Mutes the channel 'channel'. Channel indexing starts from 1. -Option added to ecasound 2.4.5. -

-

-erc:from-channel,to-channel
-Deprecated, see -chcopy. -

-

-erm:to-channel
-Deprecated, see -chmix. -

-

-

-TIME-BASED EFFECTS -

-

-

-etc:delay-time-msec,variance-time-samples,feedback-%,lfo-freq
-Chorus. -

-

-etd:delay-time-msec,surround-mode,number-of-delays,mix-%,feedback-%
-Delay effect. 'delay time' is the delay time in milliseconds. -'surround-mode' is a integer with following meanings: 0 = normal, -1 = surround, 2 = stereo-spread. 'number_of_delays' should be -obvious. Beware that large number of delays and huge delay times -need a lot of CPU power. 'mix-%' determines how much effected (wet) -signal is mixed to the original. 'feedback-%' represents how much of -the signal is recycled in each delay or, if you prefer, at what rate -the repeated snippet of delayed audio fades. Note that sufficiently -low feedback values may result in a number of audible repetitions -lesser than what you have specified for 'number_of_delays', especially -if you have set a low value for 'mix-%'. By default the value for this -parameter is 100% (No signal loss.). -

-

-ete:room_size,feedback-%,wet-%
-A more advanced reverb effect (original algorithm by Stefan M. Fendt). -'room_size' is given in meters, 'feedback-%' is the feedback level -given in percents and 'wet-%' is the amount of reverbed signal added -to the original signal. -

-

-etf:delay-time-msec
-Fake-stereo effect. The input signal is summed to mono. The -original signal goes to the left channels while a delayed -version (with delay of 'delay time' milliseconds) is goes to -the right. With a delay time of 1-40 milliseconds this -adds a stereo-feel to mono-signals. -

-

-etl:delay-time-msec,variance-time-samples,feedback-%,lfo-freq
-Flanger. -

-

-etm:delay-time-msec,number-of-delays,mix-%
-Multitap delay. 'delay time' is the delay time in milliseconds. -'number_of_delays' should be obvious. 'mix-%' determines how much -effected (wet) signal is mixed to the original. -

-

-etp:delay-time-msec,variance-time-samples,feedback-%,lfo-freq
-Phaser. -

-

-etr:delay-time,surround-mode,feedback-%
-Reverb effect. 'delay time' is the delay time in milliseconds. -If 'surround-mode' is 'surround', reverbed signal moves around the -stereo image. 'feedback-%' determines how much effected (wet) -signal is fed back to the reverb. -

-

-

-LADSPA-PLUGINS -

-

-el:plugin_unique_name,param-1,...,param-N
-Ecasound supports LADSPA-effect plugins (Linux Audio Developer's Simple -Plugin API). Plugins are located in shared library (.so) files in -/usr/local/share/ladspa (configured in ecasoundrc man page). One shared -library file can contain multiple plugin objects, but every plugin -has a unique plugin name. This name is used for selecting plugins. -See LAD mailing list web site for -more info about LADSPA. Other useful sites are LADSPA home -page and LADSPA -documentation. -

-

-eli:plugin_unique_number,param-1,...,param-N
-Same as above expect plugin's unique id-number is used. It -is guaranteed that these id-numbers are unique among all -LADSPA plugins. -

-

-

-GATE SETUP -

-

-

-

-gc:start-time,len
-Time crop gate. Initially gate is closed. After 'start-time' seconds -has elapsed, gate opens and remains open for 'len' seconds. When -closed, passing audio buffers are trucated to zero length. -

-

-ge:open-threshold-%,close-thold-%,volume-mode,reopen-count
-Threshold gate. Initially gate is closed. It is opened when volume -goes over 'othreshold' percent. After this, if volume drops below -'cthold' percent, gate is closed and won't be opened again, unless the -'reopen-count' is set to anything other than zero. -If 'value_mode' is 'rms', average RMS volume is used. Otherwise -peak average is used. When closed, passing audio buffers are trucated -to zero length. -If the 'reopen-count' is set to a positive number, then the gate will -restart its operation that many times. So for example, a reopen count -of 1 will cause up to 2 openings of the gate. A negative value for 'reopen-count' -will result in the gate reopening indefinitely. The 'reopen-count' is invaluable -in recording vinyl and tapes, where you can set things up and then recording -starts whenever the needle is on the vinyl, and stops when it's off. As many sides -as you like can be recorded in one session. You will need to experiment with -buffer lengths and start/stop levels to get reliable settings for your equipment. -

-

-gm:state
-Manual gate. If 'state' is 1, gate is open and all samples are -passed through. If 'state' is zero, gate is closed an no samples are -let through. This chain operator is useful when writing to an output -needs to be stopped dynamically (without stopping the whole engine). -

-

-

- -CONTROL ENVELOPE SETUP -

-

-Controllers can be used to dynamically change effect parameters -during processing. All controllers are attached to the selected -(=usually the last specified effect/controller) effect. The first -three parameters are common for all controllers. 'fx_param' -specifies the parameter to be controlled. Value '1' means -the first parameter, '2' the second and so on. 'start_value' -and 'end_value' set the value range. For examples, look at the -the EXAMPLES section. -

-

-kos:fx-param,start-value,end-value,freq,i-phase
-Sine oscillator with frequency of 'freq' Hz and initial phase -of 'i_phase' times pi. -

-

-kog:fx-param,freq,mode,point-pairs,start-value,end-value,pos1,value1,...
-Generic oscillator. Frequency 'freq' Hz, mode either '0' for -static values or '1' for linear interpolation. 'point-pairs' -specifies the number of 'posN' - 'valueN' pairs to include. -'start-value' and 'end-value' are used as border values. -All 'posN' and 'valueN' must be between 0.0 and 1.0. Also, -for all 'posN' values 'pos1 < pos2 < ... < posN' must be true. -

-

-kf:fx-param,start-value,end-value,freq,mode,genosc-number
-Generic oscillator. 'genosc_number' is the number of the -oscillator preset to be loaded. Mode is either '0' for -static values or '1' for linear interpolation. The location for -the preset file is taken from ./ecasoundrc (see ecasoundrc man page). -

-

-kl:fx-param,start-value,end-value,time-seconds
-Linear envelope that starts from 'start_value' and linearly -changes to 'end_value' during 'time_in_seconds'. Can -be used for fadeins and fadeouts. -

-

-kl2:fx-param,start-value,end-value,1st-stage-length-sec,2nd-stage-length-sec
-Two-stage linear envelope, a more versatile tool for doing fade-ins -and fade-outs. Stays at 'start_value' for '1st_stage_length' seconds -and then linearly changes towards 'end_value' during -'2nd_stage_length' seconds. -

-

-klg:fx-param,low-value,high-value,point_count,pos1,value1,...,posN,valueN
-Generic linear envelope. This controller source can be -used to map custom envelopes to chain operator parameters. Number of -envelope points is specified in 'point_count'. Each envelope point -consists of a position and a matching value. Number of pairs must -match 'point_count' (i.e. 'N==point_count'). The 'posX' parameters are given -as seconds (from start of the stream). The envelope points are specified as -float values in range '[0,1]'. Before envelope values are mapped to operator -parameters, they are mapped to the target range of '[low-value,high-value]'. E.g. -a value of '0' will set operator parameter to 'low-value' and a value of -'1' will set it to 'high-value'. For the initial segment '[0,pos1]', the envelope -will output value of 'value1' (e.g. 'low-value'). -

-

-km:fx-param,start-value,end-value,controller,channel
-MIDI continuous controller (control change messages). -Messages on the MIDI-channel 'channel' that are coming from -controller number 'controller' are used as the controller -source. As recommended by the MIDI-specification, channel -numbering goes from 1 to 16. Possible controller numbers -are values from 0 to 127. The MIDI-device where bytes -are read from can be specified using -Md option. -Otherwise the default MIDI-device is used as specified in -~ecasound/ecasoundrc (see ecasoundrc man page). -Defaults to /dev/midi. -

-

-ksv:fx-param,start-value,end-value,stamp-id,rms-toggle
-Volume analyze controller. Analyzes the audio stored in -stamp 'stamp-id' (see '-eS:id' docs), and creates -control data based on the results. If 'rms-toggle' is non-zero, -RMS-volume is used to calculate the control value. Otherwise -average peak-amplitude is used. -

-

-kx
-This is a special switch that can be used when you need -to control controller parameters with another controller. -When you specify -kx, the last specified controller -will be set as the control target. Then you just add -another controller as usual. -
-

- -INTERACTIVE MODE -

-See ecasound-iam(1) man page. -

- -

-

ENVIRONMENT

-

-

-

ECASOUND
- If defined, some utility programs and scripts will use - the ECASOUND environment as the default path to - ecasound executable. -

-

ECASOUND_LOGFILE
- Output all debugging messages to a separate log file. If defined, - ECASOUND_LOGFILE defines the logfile path. This is a good tool for - debugging ECI/EIAM scripts and applications. -

-

ECASOUND_LOGLEVEL
- Select which messages are written to the logfile defined by - ECASOUND_LOGFILE. The syntax for -d:level is used. If not - defined, all messages are written. Defaults to -d:319 (everything else - but 'functions (64)' and 'continuous (128)' class messages). -

-

COLUMNS
- Ecasound honors the COLUMNS environment variable when - formatting printed trace messages. If COLUMNS is not set, - a default of 74 is used. -

-

TMPDIR
- Some functions of Ecasound (e.g. "cs-edit" interactive command) require - creation of temporary files. By default, these files are created under - "/tmp", but this can be overridden by setting the TMPDIR environment - variable. -
-

-

RETURN VALUES

-

-In interactive mode, ecasound always returns zero. -

-In non-interactive (batch) mode, a non-zero value is returned - for the following errors: -

-

-

1
- Unable to create a valid chainsetup with the given parameters. Can be - caused by invalid option syntax, etc. -

-

2
- Unable to start processing. This can be caused by insufficient file - permissions, inability to access some system resources, etc. -

-

3
- Error during processing. Possible causes: output object has run - out of free disk space, etc. -

-

4
- Error during process termination and/or cleanup. See section - on 'SIGNALS' for further details. -

-

SIGNALS

-

-When ecasound receives any of the POSIX signals SIGINT (ctrl-c), - SIGHUP, SIGTERM or SIGQUIT, normal cleanup and exit procedure is - initiated. Here normal exit means that e.g. file headers are - updated before closing, helper processes are terminated in normal - way, and so forth. -

-If, while doing the cleanup described above, ecasound receives - another signal (of the same set of POSIX signals), ecasound - will skip the normal cleanup procedure, and terminate - immediately. Any remaining cleanup tasks will be skipped. - Depending on the runtime state and configuration, this brute - force exit may have some side-effects. Ecasound will return - exit code of '4' if normal cleanup was skipped. -

-Special case handling is applied to the SIGINT (ctrl-c) signal. - If a SIGINT signal is received during the cleanup procedure, - ecasound will ignore the signal once, and emit a notice to 'stderr' - that cleanup is already in progress. Any subsequent SIGINT signals - will no longer get special handling, and instead process will - terminate immediately (and possibly without proper cleanup). -

-

FILES

-

-~/.ecasound - The default directory for ecasound user resource files. - See the ecasoundrc (5) man page man page. -

-*.ecs - Ecasound Chainsetup files. Syntax is more or less the - same as with command-line arguments. -

-*.ecp - Ecasound Chain Preset files. Used for storing effect - and chain operator presets. See ecasound user's guide for - more better documentation. -

-*.ews - Ecasound Wave Stats. These files are used to cache - waveform data. -

-

EXAMPLES

-

-Examples of how to perform common tasks with ecasound can - be found at - http://eca.cx/ecasound/Documentation/examples.html. -

-

SEE ALSO

-

-ecatools (1) man page, - ecasound-iam (1) man page - ecasoundrc (5) man page, - "HTML docs in the Documentation subdirectory" -

-

BUGS

-

-See file BUGS. If ecasound behaves weirdly, try to - increase the debug level to see what's going on. -

-

AUTHOR

-

-Kai Vehmanen, <kvehmanen -at- eca -dot- cx> diff --git a/library/ecasound/Documentation/ecasoundrc.5 b/library/ecasound/Documentation/ecasoundrc.5 deleted file mode 100644 index 82121a0b6..000000000 --- a/library/ecasound/Documentation/ecasoundrc.5 +++ /dev/null @@ -1,226 +0,0 @@ -.TH "ecasoundrc" "5" "22\&.03\&.2009" "" "Multimedia software" - -.PP -.SH "NAME" -ecasoundrc \- ecasound rcfile -.PP -.SH "SYNOPSIS" -{prefix}/share/ecasound/ecasoundrc (for instance \&'/usr/local/share/ecasound/ecasoundrc\&') -$HOME/\&.ecasound/ecasoundrc -.PP -.SH "DESCRIPTION" - -.PP -\fBecasoundrc\fP is the main configuration file for ecasound\&. -Any user-specific modification should be done to -$HOME/\&.ecasound/ecasoundrc, not to the global resource file\&. Ecasound -also allows to disable the normal policy and only read from a specific -resource file (see ecasound (1) and documentation for the \fB-R\fP option)\&. -.PP -The format is quite simple\&. One line consists of -a configuration variable and its value\&. Variable and value -are separated with either \&'=\&' or \&' \&'\&. Lines beginning with a -"#" are ignored (comment lines)\&. -.PP -.SH "VARIABLES" - -.PP -.IP "midi-device" -MIDI-device\&. If the device name is given in \fIrawmidi,/dev/midi*\fP -format, OSS/Linux or OSS/Lite drivers are used\&. -Device \fIrawmidi,/dev/snd/midiCxDy\fP opens an ALSA raw-MIDI -device with card number \&'x\&' and device number \&'y\&'\&. -See ecasound (1) man page (the \&'-Md option) for more info\&. -Defaults to \fIrawmidi,/dev/midi\fP\&. -.IP -.IP "default-output" -Output device to use by default\&. If a chainsetup with zero -outputs, but with one or more inputs, is connected, a default output -is added and all the chains are connected to it\&. If the special-case -value \&'autodetect\&' is specified, ecasound will try to auto-detect -a suitable device (JACK -> ALSA -> OSS -> rtnull)\&. -Defaults to \fIautodetect\fP\&. -.IP -.IP "default-audio-format" -Default values for sample format, channel count, sampling rate -and channel interleaving\&. Syntax is the same as used by -ecasound\&'s \fI-f\fP option (see ecasound (1))\&. -Defaults to \fIs16_le,2,44100,i\fP\&. -.IP -.IP "default-to-precise-sample-rates" -Whether to ignore sample rate differences (and possibly avoid -resampling)\&. Currently only affects OSS-devices\&. Defaults to \fIfalse\fP\&. -.IP -.IP "default-mix-mode" -If \fIdefault-mix-mode\fP is \fIsum\fP, engine will mix multiple channels into -one output channel by summing all input channels\&. In mode \fIavg\fP, -mixing is done by taking the average of all input channels\&. The -\fIavg\fP mode is safe from clipping, while \fIsum\fP is closer -to the way analog mixers work\&. Defaults to \fIavg\fP\&. -.IP -.IP "bmode-defaults-nonrt" -Selects the default parameters to use with buffering -mode \&'nonrt\&' (other modes are \&'rt\&' and \&'rtlowlatency)\&. -Parameters are given as a comma-separated tuple of values: -1) buffersize (number,-b), 2) raised priority (true/false,-r), -3) sched_priority (number,-r:X), 4) double buffering -(true/false,-z:db), 5) db-bufsize (number,-z:db,X), and -6) max intbuf (true/false,-z:intbuf)\&. Defaults to -\fI1024,false,50,false,100000,true\fP\&. -.IP -.IP "bmode-defaults-rt" -See \&'bmode-defaults-nonrt\&'\&. Defaults to -\fI1024,true,50,true,100000,true\fP\&. -.IP -.IP "bmode-defaults-rtlowlatency" -See \&'bmode-defaults-nonrt\&'\&. Defaults to -\fI256,true,50,true,100000,false\fP\&. -.IP -.IP "resource-directory" -Directory for global ecasound configuration files\&. -Defaults to \fI{prefix-dir}/share/ecasound\fP\&. -Note! User-specific resource files can be be stored -to \&'$(HOME)/\&.ecasound/\&'\&. For instance you can -add your own presets definitions to -\&'$(HOME)/\&.ecasound/effect_presets\&'\&. -.IP -.IP "resource-file-genosc-envelopes" -Configuration file for generic oscillators\&. Is located in the -resource directory\&. Defaults to \fIgeneric_oscillators\fP\&. -.IP -.IP "resource-file-effect-presets" -Configuration file for effect presets\&. Is located in the -resource directory\&. Defaults to \fIeffect_presets\fP\&. -.IP -.IP "ladspa-plugin-directory" -Directory containing LADSPA effect plugins\&. Defaults to \fI{prefix-dir}/lib/ladspa\fP\&. -If environment variable \fILADSPA_PATH\fP exists, directories -specified in it are automatically searched for plugins\&. -Note! To match the syntax of the \fILADSPA_PATH\fP environment -variable, \&'ladspa-plugin-directory\&' can contain multiple -directories, separated by \&':\&' characters\&. -.IP -.IP "ext-cmd-text-editor" -If \fIext-cmd-text-editor-use-getenv\fP is \fIfalse\fP or "EDITOR" -is null, value of this field is used\&. -.IP -.IP "ext-cmd-text-editor-use-getenv" -Should ecasound try to query environment variable "EDITOR"\&. -Defaults to \fItrue\fP\&. -.IP -.IP "ext-cmd-mp3-input" -Command for starting mp3 input\&. Ecasound expects to read signed, -16bit, little-endian stereo audio samples from its standard -input\&. Ecsound will query other audio format parameters by parsing -the mp3 file header\&. Before execution, %f is replaced with -path to the input mp3\&. If exists, "%o" is replaced with he -start offset in mp3 frames\&. Double-quotes and backslash-espacing -can be used to include white-space to individual parameters\&. -By default, \fImpg123\fP is launched\&. -.IP -.IP "ext-cmd-mp3-output" -Command for starting mp3 output\&. Ecasound will write stereo, -signed, 16bit, little-endian samples to standard output\&. Sample -rate is configurable\&. Before execution, %f is replaced with -path to the output mp3, %S with sample rate in kHz, and -%B with encoding bitrate in kbps\&. Double-quotes and -backslash-espacing can be used to include white-space to -individual parameters\&. By default Ecasound will try to -launch \fIlame\fP\&. As a special exception (added to Ecasound -2\&.7\&.0), if the output program is "lame" and options -include "--big-endian", Ecasound will detect this and output -big-endian samples\&. -.IP -.IP "ext-cmd-ogg-input" -Command for starting Ogg Vorbis input\&. Ecasound expects that audio samples -are written to standard output\&. It should be noted that -Ecasound is not able to query the audio format parameters from -ogg files, so these need to be set manually by the user\&. -Before execution, %f is replaced with path to the input ogg\&. -Double-quotes and backslash-espacing can be used to include white-space -to individual parameters\&. By default Ecasound will try to -launch (ogg123)\&. -.IP -.IP "ext-cmd-ogg-output" -Command for starting Ogg Vorbis output\&. Ecasound will write -samples in little-endian format to standard output\&. Other -audio parameters are configurable\&. Before execution, %f is -replaced with path to the output ogg, %c, %s and %b with matching audio -format parameters, and %B with encoding bitrate in kbps\&. -Double-quotes and backslash-espacing can be used to include white-space to -individual parameters\&. By default Ecasound will try to -launch (oggenc)\&. -.IP -.IP "ext-cmd-mikmod" -Command for starting mikmod input\&. Ecasound expects that -signed, 16bit, stereo audio samples are written to standard -output\&. Before execution, %f is replaced with -file path, and %s with selected sample rate\&. Double-quotes -and backslash-espacing can be used to include white-space to -individual parameters\&. By default Ecasound will try to launch -\fImikmod\fP\&. -.IP -.IP "ext-cmd-timidity" -Command for starting timidity++ input\&. Ecasound expects that -signed, 16bit, stereo audio samples are written to standard -output\&. Before execution, %f is replaced with file path, and -%s with sample rate\&. Double-quotes and backslash-espacing can -be used to include white-space to individual parameters\&. -By default Ecasound will try to launch \fItimidity\fP\&. -.IP -.IP "ext-cmd-flac-input" -Command for starting FLAC input\&. Ecasound expects that audio samples -are written to standard output\&. It should be noted that -Ecasound is not able to query the audio format parameters from -FLAC files, so these need to be set manually by the user\&. -Before execution, %f is replaced with path to the input FLAC -file\&. Double-quotes and backslash-espacing can be used to include -white-space to individual parameters\&. By default Ecasound will -try to launch (flac)\&. -.IP -.IP "ext-cmd-flac-output" -Command for starting FLAC output\&. Ecasound will write -samples to standard output\&. All audio parameters are -configurable\&. Before execution, %f is replaced with path to -the output flac, %c, %b and %s with matching audio -format parameters, %I with either \&'signed\&' or \&'unsigned\&', and -%E with either \&'little\&' or \&'big\&'\&. Double-quotes and backslash-espacing -can be used to include white-space to individual parameters\&. By default -Ecasound will try to launch (flac)\&. -.IP -.IP "ext-cmd-aac-input" -Command for starting AAC input\&. Ecasound expects that signed, -16bit, stereo, big-endian audio samplesare written to standard -output\&. It should be noted that Ecasound is not able to query -the input sample rate, so this needs to be set manually by the user\&. -Before execution, %f is replaced with path to the input AAC -file\&. Note! FAAC must be compiled with MP4 support\&. Double-quotes -and backslash-espacing can be used to include white-space to -individual parameters\&. By default Ecasound will try to -laucnh \fIfaad\fP\&. -.IP -.IP "ext-cmd-aac-output" -Command for starting AAC output\&. Ecasound will write big-endian -audio samples to standard output\&. All other audio parameters are -configurable\&. Before execution, %f is replaced with path to -the output AAC file, %c, %b and %s with matching audio format -parameters\&. Note! FAAC must be compiled with MP4 support\&. Double-quotes -and backslash-espacing can be used to include white-space to -individual parameters\&. By default Ecasound will try to launch -\fIfaac\fP\&. -.IP -.SH "DEPRECATED" - -.PP -.IP "ext-cmd-wave-editor" - -.IP -.SH "SEE ALSO" - -.PP -ecasound (1), ecatools (1), ecasound-iam (1) -.PP -.SH "AUTHOR" - -.PP -Kai Vehmanen, > diff --git a/library/ecasound/Documentation/ecasoundrc_manpage.html b/library/ecasound/Documentation/ecasoundrc_manpage.html deleted file mode 100644 index 248526112..000000000 --- a/library/ecasound/Documentation/ecasoundrc_manpage.html +++ /dev/null @@ -1,252 +0,0 @@ - -ecasoundrc - - - -


-

ecasoundrc

-

22.03.2009

- - - - - -
-

- - -ecasoundrc(5) - - - -
-

ecasoundrc(5)

-

Multimedia software

-

22.03.2009

- - -

-

NAME

ecasoundrc - ecasound rcfile -

-

SYNOPSIS

- {prefix}/share/ecasound/ecasoundrc (for instance '/usr/local/share/ecasound/ecasoundrc') - $HOME/.ecasound/ecasoundrc -

-

DESCRIPTION

-

-ecasoundrc is the main configuration file for ecasound. - Any user-specific modification should be done to - $HOME/.ecasound/ecasoundrc, not to the global resource file. Ecasound - also allows to disable the normal policy and only read from a specific - resource file (see ecasound (1) and documentation for the -R option). -

-The format is quite simple. One line consists of - a configuration variable and its value. Variable and value - are separated with either '=' or ' '. Lines beginning with a - "#" are ignored (comment lines). -

-

VARIABLES

-

-

-

-

midi-device
- MIDI-device. If the device name is given in rawmidi,/dev/midi* - format, OSS/Linux or OSS/Lite drivers are used. - Device rawmidi,/dev/snd/midiCxDy opens an ALSA raw-MIDI - device with card number 'x' and device number 'y'. - See ecasound (1) man page (the '-Md option) for more info. - Defaults to rawmidi,/dev/midi. -

-

default-output
- Output device to use by default. If a chainsetup with zero - outputs, but with one or more inputs, is connected, a default output - is added and all the chains are connected to it. If the special-case - value 'autodetect' is specified, ecasound will try to auto-detect - a suitable device (JACK -> ALSA -> OSS -> rtnull). - Defaults to autodetect. -

-

default-audio-format
- Default values for sample format, channel count, sampling rate - and channel interleaving. Syntax is the same as used by - ecasound's -f option (see ecasound (1)). - Defaults to s16_le,2,44100,i. -

-

default-to-precise-sample-rates
- Whether to ignore sample rate differences (and possibly avoid - resampling). Currently only affects OSS-devices. Defaults to false. -

-

default-mix-mode
- If default-mix-mode is sum, engine will mix multiple channels into - one output channel by summing all input channels. In mode avg, - mixing is done by taking the average of all input channels. The - avg mode is safe from clipping, while sum is closer - to the way analog mixers work. Defaults to avg. -

-

bmode-defaults-nonrt
- Selects the default parameters to use with buffering - mode 'nonrt' (other modes are 'rt' and 'rtlowlatency). - Parameters are given as a comma-separated tuple of values: - 1) buffersize (number,-b), 2) raised priority (true/false,-r), - 3) sched_priority (number,-r:X), 4) double buffering - (true/false,-z:db), 5) db-bufsize (number,-z:db,X), and - 6) max intbuf (true/false,-z:intbuf). Defaults to - 1024,false,50,false,100000,true. -

-

bmode-defaults-rt
- See 'bmode-defaults-nonrt'. Defaults to - 1024,true,50,true,100000,true. -

-

bmode-defaults-rtlowlatency
- See 'bmode-defaults-nonrt'. Defaults to - 256,true,50,true,100000,false. -

-

resource-directory
- Directory for global ecasound configuration files. - Defaults to {prefix-dir}/share/ecasound. - Note! User-specific resource files can be be stored - to '$(HOME)/.ecasound/'. For instance you can - add your own presets definitions to - '$(HOME)/.ecasound/effect_presets'. -

-

resource-file-genosc-envelopes
- Configuration file for generic oscillators. Is located in the - resource directory. Defaults to generic_oscillators. -

-

resource-file-effect-presets
- Configuration file for effect presets. Is located in the - resource directory. Defaults to effect_presets. -

-

ladspa-plugin-directory
- Directory containing LADSPA effect plugins. Defaults to {prefix-dir}/lib/ladspa. - If environment variable LADSPA_PATH exists, directories - specified in it are automatically searched for plugins. - Note! To match the syntax of the LADSPA_PATH environment - variable, 'ladspa-plugin-directory' can contain multiple - directories, separated by ':' characters. -

-

ext-cmd-text-editor
- If ext-cmd-text-editor-use-getenv is false or "EDITOR" - is null, value of this field is used. -

-

ext-cmd-text-editor-use-getenv
- Should ecasound try to query environment variable "EDITOR". - Defaults to true. -

-

ext-cmd-mp3-input
- Command for starting mp3 input. Ecasound expects to read signed, - 16bit, little-endian stereo audio samples from its standard - input. Ecsound will query other audio format parameters by parsing - the mp3 file header. Before execution, %f is replaced with - path to the input mp3. If exists, "%o" is replaced with he - start offset in mp3 frames. Double-quotes and backslash-espacing - can be used to include white-space to individual parameters. - By default, mpg123 is launched. -

-

ext-cmd-mp3-output
- Command for starting mp3 output. Ecasound will write stereo, - signed, 16bit, little-endian samples to standard output. Sample - rate is configurable. Before execution, %f is replaced with - path to the output mp3, %S with sample rate in kHz, and - %B with encoding bitrate in kbps. Double-quotes and - backslash-espacing can be used to include white-space to - individual parameters. By default Ecasound will try to - launch lame. As a special exception (added to Ecasound - 2.7.0), if the output program is "lame" and options - include "--big-endian", Ecasound will detect this and output - big-endian samples. -

-

ext-cmd-ogg-input
- Command for starting Ogg Vorbis input. Ecasound expects that audio samples - are written to standard output. It should be noted that - Ecasound is not able to query the audio format parameters from - ogg files, so these need to be set manually by the user. - Before execution, %f is replaced with path to the input ogg. - Double-quotes and backslash-espacing can be used to include white-space - to individual parameters. By default Ecasound will try to - launch (ogg123). -

-

ext-cmd-ogg-output
- Command for starting Ogg Vorbis output. Ecasound will write - samples in little-endian format to standard output. Other - audio parameters are configurable. Before execution, %f is - replaced with path to the output ogg, %c, %s and %b with matching audio - format parameters, and %B with encoding bitrate in kbps. - Double-quotes and backslash-espacing can be used to include white-space to - individual parameters. By default Ecasound will try to - launch (oggenc). -

-

ext-cmd-mikmod
- Command for starting mikmod input. Ecasound expects that - signed, 16bit, stereo audio samples are written to standard - output. Before execution, %f is replaced with - file path, and %s with selected sample rate. Double-quotes - and backslash-espacing can be used to include white-space to - individual parameters. By default Ecasound will try to launch - mikmod. -

-

ext-cmd-timidity
- Command for starting timidity++ input. Ecasound expects that - signed, 16bit, stereo audio samples are written to standard - output. Before execution, %f is replaced with file path, and - %s with sample rate. Double-quotes and backslash-espacing can - be used to include white-space to individual parameters. - By default Ecasound will try to launch timidity. -

-

ext-cmd-flac-input
- Command for starting FLAC input. Ecasound expects that audio samples - are written to standard output. It should be noted that - Ecasound is not able to query the audio format parameters from - FLAC files, so these need to be set manually by the user. - Before execution, %f is replaced with path to the input FLAC - file. Double-quotes and backslash-espacing can be used to include - white-space to individual parameters. By default Ecasound will - try to launch (flac). -

-

ext-cmd-flac-output
- Command for starting FLAC output. Ecasound will write - samples to standard output. All audio parameters are - configurable. Before execution, %f is replaced with path to - the output flac, %c, %b and %s with matching audio - format parameters, %I with either 'signed' or 'unsigned', and - %E with either 'little' or 'big'. Double-quotes and backslash-espacing - can be used to include white-space to individual parameters. By default - Ecasound will try to launch (flac). -

-

ext-cmd-aac-input
- Command for starting AAC input. Ecasound expects that signed, - 16bit, stereo, big-endian audio samplesare written to standard - output. It should be noted that Ecasound is not able to query - the input sample rate, so this needs to be set manually by the user. - Before execution, %f is replaced with path to the input AAC - file. Note! FAAC must be compiled with MP4 support. Double-quotes - and backslash-espacing can be used to include white-space to - individual parameters. By default Ecasound will try to - laucnh faad. -

-

ext-cmd-aac-output
- Command for starting AAC output. Ecasound will write big-endian - audio samples to standard output. All other audio parameters are - configurable. Before execution, %f is replaced with path to - the output AAC file, %c, %b and %s with matching audio format - parameters. Note! FAAC must be compiled with MP4 support. Double-quotes - and backslash-espacing can be used to include white-space to - individual parameters. By default Ecasound will try to launch - faac. -

-

-

-

DEPRECATED

-

-

-

-

ext-cmd-wave-editor
-

-

-

-

SEE ALSO

-

-ecasound (1), ecatools (1), ecasound-iam (1) -

-

AUTHOR

-

-Kai Vehmanen, <kvehmanen -at- eca -dot- cx> diff --git a/library/ecasound/Documentation/ecatools.1 b/library/ecasound/Documentation/ecatools.1 deleted file mode 100644 index 824dc5713..000000000 --- a/library/ecasound/Documentation/ecatools.1 +++ /dev/null @@ -1,220 +0,0 @@ -.TH "ecatools" "1" "12\&.11\&.2005" "" "Multimedia software" - -.PP -.SH "NAME" -ecatools \- audio processing utils based on ecasound -.PP -.SH "SYNOPSIS" -\fBecaconvert\fP \&.extension file1 [ file2 \&.\&.\&. fileN ] -.PP -\fBecafixdc\fP file1 [ file2 \&.\&.\&. fileN ] -.PP -\fBecalength\fP file1 [ file2 \&.\&.\&. fileN ] -.PP -\fBecamonitor\fP [host][:port] -.PP -\fBecanormalize\fP file1 [ file2 \&.\&.\&. fileN ] -.PP -\fBecaplay\fP [-dfhklopq] [ file1 file2 \&.\&.\&. fileN ] -.PP -\fBecasignalview\fP [ options ] [ input ] [ output ] -.PP -.SH "DESCRIPTION" - -.PP -Ecatools are simple command line utils for audio file processing\&. -Each tool is designed to perform one specific operation\&. Most of -the tools also support batch processing\&. -.PP -\fBECACONVERT\fP -.PP -A tool for converting a set of files to a common target format\&. -This target format is given as the first command line -argument, and its syntax is \fI\&.ext\fP\&. -.PP -\fBECAFIXDC\fP -.PP -A simple command-line tool for fixing DC-offset\&. -.PP -\fBECALENGTH\fP -.PP -See the separate ecalength(1) man page\&. -.PP -\fBECAMONITOR\fP -.PP -Ecamonitor is a util program that can be used -to monitor an active ecasound session\&. Ecamonitor -is able to show information about the current -chainsetup such as list of inputs, outputs, -current position, effects, the engine status -and numerous other things\&. -.PP -By default ecamonitor will try to connect -to IP4 address "localhost", to port "2868"\&. -A different address can be specified when -starting ecamonitor, for example -"ecamonitor foo\&.mynetwork\&.com" or -"ecamonitor foo\&.mynetwork\&.com:4500"\&. -.PP -To enable inbound connections, ecasound has to be -started with the \fI--daemon\fP option\&. Ecamonitor is -implemented in Python using the NetECI API\&. -.PP -\fBECANORMALIZE\fP -.PP -Ecanormalize is a command-line tool for normalizing audio -files to utilize the full available sample resolution\&. Ecanormalize -first finds out how much the input file can be amplified without -clipping and if there is room for increase, a static gain will -be applied to the file\&. -.PP -\fBECAPLAY\fP -.PP -Ecaplay is a command-line tool for playing audio files\&. Ecaplay -uses the libecasound engine and is thus able to handle all audio formats -supported by the library\&. -.PP -Files can be selected for playback either by specifying the -filenames on the command-line, or by using the playlist -mechanism\&. In playlist mode, files can be added to the playlist -using the \fI-q\fP option\&. The \fI-p\fP option can then be used -to play all tracks on the playlist\&. Ecaplay will repeat the -playlist tracks until explicitly stopped (with double Ctrl-C)\&. -Playlist can be flushed with \fI-f\fP and its contents listed -with \fI-l\fP option\&. -.PP -If not otherwise specified, ecaplay will use the audio output device -specified in \fI~/\&.ecasound/ecasoundrc\fP for playback\&. A different -output device can be selected with \fIECAPLAY_OUTPUT_DEVICE\fP shell -environment variable or with the \fI-o:output_device\fP command-line -option\&. -.PP -Playback can be stopped at any time with Ctrl-C\&. If multiple -files are played, first Ctrl-C will stop the current file and move -on to play the next one\&. Issuing Ctrl-C twice (within one second), -will cause ecaplay to exit\&. -.PP -.IP "-d:debuglevel" -Set libecasound debug level\&. See ecasound(1)\&. -.IP -.IP "-f" -Flush the playlist contents\&. See also -options \fI-l, -p and -q\fP\&. -.IP -.IP "-h" -Print usage information and exit\&. -.IP -.IP "-k:number" -Skip \&'number\&' of files\&. -.IP -.IP "-l" -List the current playlist contents to stdout\&. See also -options \fI-f, -p and -q\fP\&. -.IP -.IP "-o:output_device" -Use \&'output_device\&' instead of the default output device -(as specified in \fI~/\&.ecasound/ecasoundrc\fP)\&. Syntax is same -as used by "-o" ecasound option (see ecasound(1) man page)\&. -This option overrides the \fIECAPLAY_OUTPUT_DEVICE\fP environment -variable (more info below)\&. -.IP -.IP "-p" -Play tracks in the playlist (in looped mode)\&. See also -options \fI-f, -l and -q\fP\&. -.IP -.IP "-q" -Queue new tracks to the playlist\&. All filenames given on -the command-line will be added to the the playlist\&. It is -possible to queue new tracks while another instance of -ecaplay is using the playlist\&. See also options \fI-f, -l -and -p\fP\&. -.IP -\fBECASIGNALVIEW\fP -.PP -Ecasignalview is meant for monitoring signal amplitude and peak -statistics\&. It accepts the following options: -.PP -.IP "input" -The first option not starting with a \&'-\&' is interpreted -as an input string\&. This can be a device or a filename\&. All formats -supported by libecasound are accepted\&. Defaults to \&'/dev/dsp\&'\&. -.IP -.IP "output" -Similarly to input, second option not starting with a \&'-\&' -is interpreted as output\&. Defaults to \&'null\&'\&. -.IP -.IP "-b:buffersize" -Buffersize in sample frames\&. Defaults to 128\&. -.IP -.IP "-c" -Enable cumulative mode\&. Counters are not reseted after refresh\&. -\fI*deprecated*\fP -.IP -.IP "-d" -Enable debug mode\&. -.IP -.IP "-f:format_string" -Specify default audio format\&. See ecasound(1) for details\&. -.IP -.IP "-r:rate_msec" -Specify screen refresh rate in milliseconds\&. -.IP -.IP "-I" -Use linear scale for showing audio sample amplitude\&. -.IP -.IP "-L" -Use logarithmic scale for showing audio sample amplitude\&. -.IP -.IP "-G, -B, -M*, -r, -z" -Ecasound options use to modify the engine behaviour, see -ecasound(1) manpage for details\&. -.IP -When ecasignalview is running, the following keyboard -commands can be used to control the operation (requires -system support for UNIX terminal interface control): -.PP -.IP "spacebar" -Reset statistics (max-peak, avg-amplitude and clipped -samples count)\&. -.IP -.IP "q or Q or Esc" -Quit ecasignalview\&. -.IP -It is also possible to reset the max-peak and clipped-samples -counters by sending a SIGHUP signal to the process (i\&.e\&. -from another console: "killall -v -HUP ecasignalview")\&. -.PP -More complete documentation for ecasignalview can be found -from "Ecasound User\&'s Guide" (see \&'\&'http://www\&.eca\&.cx/ecasound --> Documentation\&'\&')\&. -.PP -.SH "ENVIRONMENT" - -.PP -\fIECASOUND\fP -Path to the ecasound executable\&. Used by many ecatools\&. -.PP -\fIECAPLAY_OUTPUT_DEVICE\fP -Device ecaplay should use for audio output\&. Same syntax -as for ecaplay/ecasound "-o" option\&. -.PP -.SH "FILES" - -.PP -\fI~/\&.ecasound/ecasoundrc\fP -The default ecasound resource file\&. See ecasoundrc(5) -for details\&. -.PP -\fI~/\&.ecasound/ecaplay_queue\fP -File used to store the ecaplay playlist (one track per -line with full path)\&. -.PP -.SH "SEE ALSO" - -.PP -ecasound (1), ecalength(1), "HTML docs in the Documentation subdirectory" -.PP -.SH "AUTHOR" - -.PP -Kai Vehmanen, > diff --git a/library/ecasound/Documentation/ecatools_manpage.html b/library/ecasound/Documentation/ecatools_manpage.html deleted file mode 100644 index 4d354a758..000000000 --- a/library/ecasound/Documentation/ecatools_manpage.html +++ /dev/null @@ -1,248 +0,0 @@ - -ecatools - - - -


-

ecatools

-

12.11.2005

- - - - - -
-

- - -ecatools(1) - - - -
-

ecatools(1)

-

Multimedia software

-

12.11.2005

- - -

-

NAME

ecatools - audio processing utils based on ecasound -

-

SYNOPSIS

-ecaconvert .extension file1 [ file2 ... fileN ] -

-ecafixdc file1 [ file2 ... fileN ] -

-ecalength file1 [ file2 ... fileN ] -

-ecamonitor [host][:port] -

-ecanormalize file1 [ file2 ... fileN ] -

-ecaplay [-dfhklopq] [ file1 file2 ... fileN ] -

-ecasignalview [ options ] [ input ] [ output ] -

-

DESCRIPTION

-

-Ecatools are simple command line utils for audio file processing. -Each tool is designed to perform one specific operation. Most of -the tools also support batch processing. -

-ECACONVERT -

-A tool for converting a set of files to a common target format. -This target format is given as the first command line -argument, and its syntax is .ext. -

-ECAFIXDC -

-A simple command-line tool for fixing DC-offset. -

-ECALENGTH -

-See the separate ecalength(1) man page. -

-ECAMONITOR -

-Ecamonitor is a util program that can be used -to monitor an active ecasound session. Ecamonitor -is able to show information about the current -chainsetup such as list of inputs, outputs, -current position, effects, the engine status -and numerous other things. -

-By default ecamonitor will try to connect -to IP4 address "localhost", to port "2868". -A different address can be specified when -starting ecamonitor, for example -"ecamonitor foo.mynetwork.com" or -"ecamonitor foo.mynetwork.com:4500". -

-To enable inbound connections, ecasound has to be -started with the --daemon option. Ecamonitor is -implemented in Python using the NetECI API. -

-ECANORMALIZE -

-Ecanormalize is a command-line tool for normalizing audio -files to utilize the full available sample resolution. Ecanormalize -first finds out how much the input file can be amplified without -clipping and if there is room for increase, a static gain will -be applied to the file. -

-ECAPLAY -

-Ecaplay is a command-line tool for playing audio files. Ecaplay -uses the libecasound engine and is thus able to handle all audio formats -supported by the library. -

-Files can be selected for playback either by specifying the -filenames on the command-line, or by using the playlist -mechanism. In playlist mode, files can be added to the playlist -using the -q option. The -p option can then be used -to play all tracks on the playlist. Ecaplay will repeat the -playlist tracks until explicitly stopped (with double Ctrl-C). -Playlist can be flushed with -f and its contents listed -with -l option. -

-If not otherwise specified, ecaplay will use the audio output device -specified in ~/.ecasound/ecasoundrc for playback. A different -output device can be selected with ECAPLAY_OUTPUT_DEVICE shell -environment variable or with the -o:output_device command-line -option. -

-Playback can be stopped at any time with Ctrl-C. If multiple -files are played, first Ctrl-C will stop the current file and move -on to play the next one. Issuing Ctrl-C twice (within one second), -will cause ecaplay to exit. -

-

-

-d:debuglevel
-Set libecasound debug level. See ecasound(1). -

-

-f
-Flush the playlist contents. See also -options -l, -p and -q. -

-

-h
-Print usage information and exit. -

-

-k:number
-Skip 'number' of files. -

-

-l
-List the current playlist contents to stdout. See also -options -f, -p and -q. -

-

-o:output_device
-Use 'output_device' instead of the default output device -(as specified in ~/.ecasound/ecasoundrc). Syntax is same -as used by "-o" ecasound option (see ecasound(1) man page). -This option overrides the ECAPLAY_OUTPUT_DEVICE environment -variable (more info below). -

-

-p
-Play tracks in the playlist (in looped mode). See also -options -f, -l and -q. -

-

-q
-Queue new tracks to the playlist. All filenames given on -the command-line will be added to the the playlist. It is -possible to queue new tracks while another instance of -ecaplay is using the playlist. See also options -f, -l -and -p. -

-

-

-ECASIGNALVIEW -

-Ecasignalview is meant for monitoring signal amplitude and peak -statistics. It accepts the following options: -

-

-

input
-The first option not starting with a '-' is interpreted -as an input string. This can be a device or a filename. All formats -supported by libecasound are accepted. Defaults to '/dev/dsp'. -

-

output
-Similarly to input, second option not starting with a '-' -is interpreted as output. Defaults to 'null'. -

-

-b:buffersize
-Buffersize in sample frames. Defaults to 128. -

-

-c
-Enable cumulative mode. Counters are not reseted after refresh. -*deprecated* -

-

-d
-Enable debug mode. -

-

-f:format_string
-Specify default audio format. See ecasound(1) for details. -

-

-r:rate_msec
-Specify screen refresh rate in milliseconds. -

-

-I
-Use linear scale for showing audio sample amplitude. -

-

-L
-Use logarithmic scale for showing audio sample amplitude. -

-

-G, -B, -M*, -r, -z
-Ecasound options use to modify the engine behaviour, see -ecasound(1) manpage for details. -

-

-

-When ecasignalview is running, the following keyboard -commands can be used to control the operation (requires -system support for UNIX terminal interface control): -

-

-

spacebar
-Reset statistics (max-peak, avg-amplitude and clipped -samples count). -

-

q or Q or Esc
-Quit ecasignalview. -

-

-

-It is also possible to reset the max-peak and clipped-samples -counters by sending a SIGHUP signal to the process (i.e. -from another console: "killall -v -HUP ecasignalview"). -

-More complete documentation for ecasignalview can be found -from "Ecasound User's Guide" (see ''http://www.eca.cx/ecasound --> Documentation''). -

-

ENVIRONMENT

-

-ECASOUND - Path to the ecasound executable. Used by many ecatools. -

-ECAPLAY_OUTPUT_DEVICE - Device ecaplay should use for audio output. Same syntax - as for ecaplay/ecasound "-o" option. -

-

FILES

-

-~/.ecasound/ecasoundrc - The default ecasound resource file. See ecasoundrc(5) - for details. -

-~/.ecasound/ecaplay_queue - File used to store the ecaplay playlist (one track per - line with full path). -

-

SEE ALSO

-

-ecasound (1), ecalength(1), "HTML docs in the Documentation subdirectory" -

-

AUTHOR

-

-Kai Vehmanen, <kvehmanen -at- eca -dot- cx> diff --git a/library/ecasound/Documentation/programmers_guide/Makefile.am b/library/ecasound/Documentation/programmers_guide/Makefile.am deleted file mode 100644 index 123ba1677..000000000 --- a/library/ecasound/Documentation/programmers_guide/Makefile.am +++ /dev/null @@ -1,50 +0,0 @@ -# ---------------------------------------------------------------------- -# File: ecasound/Documentation/programmers_guide/Makefile.am -# Description: Ecasound documentation - programmer's guide -# License: GPL (see ecasound/{AUTHORS,COPYING}) -# ---------------------------------------------------------------------- - -# --------------------------------------------------------------------- -# Files going into distribution: -EXTRA_DIST = ecasound_programmers_guide.txt \ - eci_doc.latex - -DISTCLEANFILES = \ - ecasound_programmers_guide.html \ - eci_doc.log \ - eci_doc.aux \ - eci_doc.toc \ - eci_doc.dvi \ - eci_doc.ps \ - ecasound_eci_doc.pdf \ - html_ecidoc/eci_doc.html \ - html_ecidoc/eci_doc.haux \ - html_ecidoc/eci_doc.htoc - -all: - -docs: ecasound_programmers_guide.html ecasound_eci_doc.pdf - -ecasound_programmers_guide.html: $(srcdir)/ecasound_programmers_guide.txt - rst2html $(srcdir)/ecasound_programmers_guide.txt ecasound_programmers_guide.html - -# note: to create the table of contents (which spans multiple pages), and -# re-calculate the page numbers after the page offset generated by table -# of contents, latex needs to be ran 3 times. (Junichi Uekawa, 2007-08-06) - -ecasound_eci_doc.pdf: $(srcdir)/eci_doc.latex eci_doc.dvi - latex $(srcdir)/eci_doc.latex - latex $(srcdir)/eci_doc.latex - latex $(srcdir)/eci_doc.latex - dvips -Ppdf -o eci_doc.ps eci_doc.dvi - ps2pdf eci_doc.ps ecasound_eci_doc.pdf - mkdir -p html_ecidoc - hevea -o html_ecidoc/eci_doc.html $(srcdir)/eci_doc.latex - hevea -o html_ecidoc/eci_doc.html $(srcdir)/eci_doc.latex - -eci_doc.dvi: $(srcdir)/eci_doc.latex - -clean-docs: - rm -fv ecasound_programmers_guide.html ecasound_eci_doc.pdf - rm -fv eci_doc.log eci_doc.toc eci_doc.dvi eci_doc.aux eci_doc.ps eci_doc.dvi - rm -fv html_ecidoc/* diff --git a/library/ecasound/Documentation/programmers_guide/Makefile.in b/library/ecasound/Documentation/programmers_guide/Makefile.in deleted file mode 100644 index 842cae9fc..000000000 --- a/library/ecasound/Documentation/programmers_guide/Makefile.in +++ /dev/null @@ -1,435 +0,0 @@ -# Makefile.in generated by automake 1.9.6 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - -# ---------------------------------------------------------------------- -# File: ecasound/Documentation/programmers_guide/Makefile.am -# Description: Ecasound documentation - programmer's guide -# License: GPL (see ecasound/{AUTHORS,COPYING}) -# ---------------------------------------------------------------------- -srcdir = @srcdir@ -top_srcdir = @top_srcdir@ -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -top_builddir = ../.. -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -INSTALL = @INSTALL@ -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -subdir = Documentation/programmers_guide -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/configure.in -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -SOURCES = -DIST_SOURCES = -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMDEP_FALSE = @AMDEP_FALSE@ -AMDEP_TRUE = @AMDEP_TRUE@ -AMTAR = @AMTAR@ -AM_CFLAGS = @AM_CFLAGS@ -AM_CPPFLAGS = @AM_CPPFLAGS@ -AM_CXXFLAGS = @AM_CXXFLAGS@ -AM_LDFLAGS = @AM_LDFLAGS@ -AR = @AR@ -ARTSC_CONFIG = @ARTSC_CONFIG@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DSYMUTIL = @DSYMUTIL@ -ECA_AM_ALL_STATIC_FALSE = @ECA_AM_ALL_STATIC_FALSE@ -ECA_AM_ALL_STATIC_TRUE = @ECA_AM_ALL_STATIC_TRUE@ -ECA_AM_COMPILE_ALSA_FALSE = @ECA_AM_COMPILE_ALSA_FALSE@ -ECA_AM_COMPILE_ALSA_TRUE = @ECA_AM_COMPILE_ALSA_TRUE@ -ECA_AM_COMPILE_ARTS_FALSE = @ECA_AM_COMPILE_ARTS_FALSE@ -ECA_AM_COMPILE_ARTS_TRUE = @ECA_AM_COMPILE_ARTS_TRUE@ -ECA_AM_COMPILE_AUDIOFILE_FALSE = @ECA_AM_COMPILE_AUDIOFILE_FALSE@ -ECA_AM_COMPILE_AUDIOFILE_TRUE = @ECA_AM_COMPILE_AUDIOFILE_TRUE@ -ECA_AM_COMPILE_JACK_FALSE = @ECA_AM_COMPILE_JACK_FALSE@ -ECA_AM_COMPILE_JACK_TRUE = @ECA_AM_COMPILE_JACK_TRUE@ -ECA_AM_COMPILE_OSS_FALSE = @ECA_AM_COMPILE_OSS_FALSE@ -ECA_AM_COMPILE_OSS_TRUE = @ECA_AM_COMPILE_OSS_TRUE@ -ECA_AM_COMPILE_SAMPLERATE_FALSE = @ECA_AM_COMPILE_SAMPLERATE_FALSE@ -ECA_AM_COMPILE_SAMPLERATE_TRUE = @ECA_AM_COMPILE_SAMPLERATE_TRUE@ -ECA_AM_COMPILE_SNDFILE_FALSE = @ECA_AM_COMPILE_SNDFILE_FALSE@ -ECA_AM_COMPILE_SNDFILE_TRUE = @ECA_AM_COMPILE_SNDFILE_TRUE@ -ECA_AM_DEBUG_MODE_FALSE = @ECA_AM_DEBUG_MODE_FALSE@ -ECA_AM_DEBUG_MODE_TRUE = @ECA_AM_DEBUG_MODE_TRUE@ -ECA_AM_DISABLE_EFFECTS_FALSE = @ECA_AM_DISABLE_EFFECTS_FALSE@ -ECA_AM_DISABLE_EFFECTS_TRUE = @ECA_AM_DISABLE_EFFECTS_TRUE@ -ECA_AM_FEELING_EXPERIMENTAL_FALSE = @ECA_AM_FEELING_EXPERIMENTAL_FALSE@ -ECA_AM_FEELING_EXPERIMENTAL_TRUE = @ECA_AM_FEELING_EXPERIMENTAL_TRUE@ -ECA_AM_KVUTILS_INSTALLED_FALSE = @ECA_AM_KVUTILS_INSTALLED_FALSE@ -ECA_AM_KVUTILS_INSTALLED_TRUE = @ECA_AM_KVUTILS_INSTALLED_TRUE@ -ECA_AM_PYECASOUND_CEXT_FALSE = @ECA_AM_PYECASOUND_CEXT_FALSE@ -ECA_AM_PYECASOUND_CEXT_TRUE = @ECA_AM_PYECASOUND_CEXT_TRUE@ -ECA_AM_PYECASOUND_INSTALL_FALSE = @ECA_AM_PYECASOUND_INSTALL_FALSE@ -ECA_AM_PYECASOUND_INSTALL_TRUE = @ECA_AM_PYECASOUND_INSTALL_TRUE@ -ECA_AM_RUBYECASOUND_INSTALL_FALSE = @ECA_AM_RUBYECASOUND_INSTALL_FALSE@ -ECA_AM_RUBYECASOUND_INSTALL_TRUE = @ECA_AM_RUBYECASOUND_INSTALL_TRUE@ -ECA_AM_SYSTEM_READLINE_FALSE = @ECA_AM_SYSTEM_READLINE_FALSE@ -ECA_AM_SYSTEM_READLINE_TRUE = @ECA_AM_SYSTEM_READLINE_TRUE@ -ECA_AM_USE_NCURSES_FALSE = @ECA_AM_USE_NCURSES_FALSE@ -ECA_AM_USE_NCURSES_TRUE = @ECA_AM_USE_NCURSES_TRUE@ -ECA_AM_USE_TERMCAP_FALSE = @ECA_AM_USE_TERMCAP_FALSE@ -ECA_AM_USE_TERMCAP_TRUE = @ECA_AM_USE_TERMCAP_TRUE@ -ECA_S_EXTRA_CPPFLAGS = @ECA_S_EXTRA_CPPFLAGS@ -ECA_S_EXTRA_LIBS = @ECA_S_EXTRA_LIBS@ -ECA_S_JACK_INCLUDES = @ECA_S_JACK_INCLUDES@ -ECA_S_JACK_LIBS = @ECA_S_JACK_LIBS@ -ECA_S_PREFIX = @ECA_S_PREFIX@ -ECA_S_PYTHON_DLMODULES = @ECA_S_PYTHON_DLMODULES@ -ECA_S_PYTHON_INCLUDES = @ECA_S_PYTHON_INCLUDES@ -ECA_S_PYTHON_MODULES = @ECA_S_PYTHON_MODULES@ -ECA_S_READLINE_INCLUDES = @ECA_S_READLINE_INCLUDES@ -ECA_S_READLINE_LIBS = @ECA_S_READLINE_LIBS@ -ECA_S_RUBY_SITEDIR = @ECA_S_RUBY_SITEDIR@ -ECHO = @ECHO@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -F77 = @F77@ -FFLAGS = @FFLAGS@ -GREP = @GREP@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LDFLAGS = @LDFLAGS@ -LIBECASOUNDC_VERSION = @LIBECASOUNDC_VERSION@ -LIBECASOUNDC_VERSION_AGE = @LIBECASOUNDC_VERSION_AGE@ -LIBECASOUND_VERSION = @LIBECASOUND_VERSION@ -LIBECASOUND_VERSION_AGE = @LIBECASOUND_VERSION_AGE@ -LIBKVUTILS_VERSION = @LIBKVUTILS_VERSION@ -LIBKVUTILS_VERSION_AGE = @LIBKVUTILS_VERSION_AGE@ -LIBLO_CFLAGS = @LIBLO_CFLAGS@ -LIBLO_LIBS = @LIBLO_LIBS@ -LIBOBJS = @LIBOBJS@ -LIBOIL_CFLAGS = @LIBOIL_CFLAGS@ -LIBOIL_LIBS = @LIBOIL_LIBS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LN_S = @LN_S@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -NMEDIT = @NMEDIT@ -OBJEXT = @OBJEXT@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PKG_CONFIG = @PKG_CONFIG@ -PYTHONPATH = @PYTHONPATH@ -RANLIB = @RANLIB@ -RUBYPATH = @RUBYPATH@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -VERSION = @VERSION@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_CXX = @ac_ct_CXX@ -ac_ct_F77 = @ac_ct_F77@ -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ - -# --------------------------------------------------------------------- -# Files going into distribution: -EXTRA_DIST = ecasound_programmers_guide.txt \ - eci_doc.latex - -DISTCLEANFILES = \ - ecasound_programmers_guide.html \ - eci_doc.log \ - eci_doc.aux \ - eci_doc.toc \ - eci_doc.dvi \ - eci_doc.ps \ - ecasound_eci_doc.pdf \ - html_ecidoc/eci_doc.html \ - html_ecidoc/eci_doc.haux \ - html_ecidoc/eci_doc.htoc - -all: all-am - -.SUFFIXES: -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Documentation/programmers_guide/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --foreign Documentation/programmers_guide/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -distclean-libtool: - -rm -f libtool -uninstall-info-am: -tags: TAGS -TAGS: - -ctags: CTAGS -CTAGS: - - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ - list='$(DISTFILES)'; for file in $$list; do \ - case $$file in \ - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ - esac; \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test "$$dir" != "$$file" && test "$$dir" != "."; then \ - dir="/$$dir"; \ - $(mkdir_p) "$(distdir)$$dir"; \ - else \ - dir=''; \ - fi; \ - if test -d $$d/$$file; then \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ - fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ - else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile -installdirs: -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool mostlyclean-am - -distclean: distclean-am - -rm -f Makefile -distclean-am: clean-am distclean-generic distclean-libtool - -dvi: dvi-am - -dvi-am: - -html: html-am - -info: info-am - -info-am: - -install-data-am: - -install-exec-am: - -install-info: install-info-am - -install-man: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-info-am - -.PHONY: all all-am check check-am clean clean-generic clean-libtool \ - distclean distclean-generic distclean-libtool distdir dvi \ - dvi-am html html-am info info-am install install-am \ - install-data install-data-am install-exec install-exec-am \ - install-info install-info-am install-man install-strip \ - installcheck installcheck-am installdirs maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-generic \ - mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \ - uninstall-info-am - - -all: - -docs: ecasound_programmers_guide.html ecasound_eci_doc.pdf - -ecasound_programmers_guide.html: $(srcdir)/ecasound_programmers_guide.txt - rst2html $(srcdir)/ecasound_programmers_guide.txt ecasound_programmers_guide.html - -# note: to create the table of contents (which spans multiple pages), and -# re-calculate the page numbers after the page offset generated by table -# of contents, latex needs to be ran 3 times. (Junichi Uekawa, 2007-08-06) - -ecasound_eci_doc.pdf: $(srcdir)/eci_doc.latex eci_doc.dvi - latex $(srcdir)/eci_doc.latex - latex $(srcdir)/eci_doc.latex - latex $(srcdir)/eci_doc.latex - dvips -Ppdf -o eci_doc.ps eci_doc.dvi - ps2pdf eci_doc.ps ecasound_eci_doc.pdf - mkdir -p html_ecidoc - hevea -o html_ecidoc/eci_doc.html $(srcdir)/eci_doc.latex - hevea -o html_ecidoc/eci_doc.html $(srcdir)/eci_doc.latex - -eci_doc.dvi: $(srcdir)/eci_doc.latex - -clean-docs: - rm -fv ecasound_programmers_guide.html ecasound_eci_doc.pdf - rm -fv eci_doc.log eci_doc.toc eci_doc.dvi eci_doc.aux eci_doc.ps eci_doc.dvi - rm -fv html_ecidoc/* -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/library/ecasound/Documentation/programmers_guide/ecasound_programmers_guide.txt b/library/ecasound/Documentation/programmers_guide/ecasound_programmers_guide.txt deleted file mode 100644 index 6f21e7b12..000000000 --- a/library/ecasound/Documentation/programmers_guide/ecasound_programmers_guide.txt +++ /dev/null @@ -1,1207 +0,0 @@ -:editor: -*- mode: fundamental; tab-width: 4; indent-tabs-mode: nil -*- -:version: 20090419-9 -:syntax: loosely follows restructured text, http://docutils.sourceforge.net/rst.html -:author: Kai Vehmanen - -=========================== -Ecasound Programmer's Guide -=========================== - -.. ################################################################# -.. ################################################################# - -.. contents:: - -Preface -~~~~~~~ - -This document describes how Ecasound and the related libraries -work, how to use them, how to extend and add features and other -similar issues. Before reading this document, you should first take a -look at other available documentation (especially -Ecasound Users's Guide). - -If not otherwise specified, all documentation refers to the latest -Ecasound version. - -.. ################################################################# -.. ################################################################# - -Document history -~~~~~~~~~~~~~~~~ - -Hmm, why doesn't this work...? - -:: - -| 19.04.2009 - Minor updates to NetECI and ECA_CONTROL. -| 21.08.2005 - Typos fixed, removed duplicated section on audio -| routing. Minor updates to various sections. -| 25.04.2005 - Minor updates. -| 28.03.2005 - Added section about "Source code markup", update the -| "Design principles" section. -| 13.03.2005 - Converted from LaTeX to ascii. -| 23.10.2004 - Added section "EIAM commands" that covers adding -| new EIAM commands. -| 18.11.2003 - Typo fixes. Updated documentation to reflect the new -| naming convention (ecasound refers to the binary, -| Ecasound refers to the whole package). -| 07.11.2002 - Added documentation for NetECI. -| 25.10.2002 - Added "Checklist for Audio Object Implementations". -| 17.10.2002 - Added a warning against direct use of libecasound -| and libkvutils. Using ECI is from now on the -| preferred way of using ecasound as a development -| platform. Rewrote the "Versioning" section. -| 02.10.2002 - Added the "Protocols and Interfaces" chapter. -| 29.04.2002 - Added chapter about "Unit Tests". -| 28.04.2002 - Revised namespace policy (see chapter -| on namespaces), replaced references to -| obsolete ECA_DEBUG with a description -| of the new ECA_LOGGER subsystem. -| 27.02.2002 - Rewrote the "Control flows" chapter according -| to the structural changes made in 2.1dev8. Added -| a "References" section. -| 31.01.2002 - Reorganization of document structure. New chapter -| about "Library organization". -| 19.12.2001 - Added chapter about include hierarchies. -| 28.10.2001 - Lots of changes to the "Object maps" chapter. -| 21.10.2001 - Added this history section. - -.. ################################################################# -.. ################################################################# - -General programming guidelines -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -Design and programming principles -================================= - -The following sections describe some of the key design -principles that have been guiding Ecasound development. - -Open and generic design ------------------------ - -Over the years Ecasound's core design has been revised many times. -The aim has been to keep the core flexible enough, so it can -be easily adapted to new use cases. - -Object-orientation ------------------- - -Ecasound is written in C++ (as specified in 1997 ANSI/ISO C++ standard). -Common object-oriented design practices should be utilized. At same time -overuse of object-orientation should be avoided. Object-orientation is -a very effective design method, but not the only one. Sometimes other -approaches work better. - -Data hiding ------------ - -This design principle deserves to be mentioned separately. Whenever -possible, the actual data representation and implementation details -should always be hidden. This allows to make local implementation -changes without affecting other parts of the code base. It cannot -be emphasized enough how important this goal is for large software -projects like Ecasound. - -Design by contract ------------------- - -When writing a new routine, in addition to the actual code, -also routine's behaviour should be described as accurately as -possible using preconditions and postconditions to describe -the external side-effects (how it changes the object state, what -is the relation between arguments and return values). - -The preconditions should specify all requirements and -assumptions related to routine's inputs. If the caller violates -this specification, routine is not responsible for the error. - -The postconditions should specify what statements hold true -when routine has been executed. This information helps the -caller to better understand how the routine works and -to identify implementation bugs. - -Ideally, these conditions prove that the routine works -correctly. Writing a complete description of a routine can be -difficult, but the benefits of this approach should be clear. -When you call a well-defined routine, a) you know what -parameter values it accepts, b) you know what it does and c) if -errors occur, it's easier to pinpoint the faulty routine. - -In practice describing routines is done by combining verbose -comments and defining pre/postconditions. As C++ doesn't directly -support pre/postconditions, the DEFINITION_BY_CONTRACT and DBC tools -provided by libkvutils are used. - -Routine side effects --------------------- - -A clear distinction should be made between routines that -have side-effects (=methods, processors, modifiers; routines that -change object's state) and const routines (=functions, observers). - -To make monitoring side effects easier, all Ecasound classes -should be const-correct. A object is const-correct if a function -taking only a single argument that is a const reference to that object -is not able, without explicit casting, to obtain a non-const -reference to that same object (or a portion thereof) from within -the function body. - -Sanity checks -------------- - -Sanity checks are done only to prevent crashes. All effects -and operators should accept also "insane" parameters. For example, -the amplifier effect accepts -100.0% as the gain value. This of course -results in inverted sample data, which is a useful outcome. -As Ecasound is supposed to be a tool for creative work and -experimenting, the decisions on which parameters are useful -for audio processing should not be made in source code. - -Error handling --------------- - -Two specific things worth mentioning: First, the standard UNIX-style -error handling, where functions performing actions return an integer -value, is not used in Ecasound. As described in the above section -Routine side effects, all routines are either modifiers or -observers, not both. So when using Ecasound APIs, you first perform an -action (modifying function), and then afterwards check what happened -(using an observer function). - -Exceptions ----------- - -C++ exceptions are used in Ecasound. Exception based error -handling has its problems, but in some cases it is clearly the best -option. Exceptions are most useful in situations where -controlled error recovery is very difficult, and in situations -where errors occurs only very rarely. This allows callers to -avoid constantly checking returns values for functions that -in normal use never fail. Another special case is handling critical -errors that occur in class contructors. - -Using exceptions for anything other than pure error handling -is to be avoided at all cost. And when exceptions are used, -their use must be specified in function prototypes. This is important, -as clients need to know what exceptions can be thrown. C++ -unfortunately doesn't require strict exception prototypes, so -this issue requires extra care. - -A list of specific cases where exceptions are used follows: - -AUDIO_IO - open() - This method is used for initializing external connections (opening - files or devices, loading shared libraries, opening IPC connections). - It's impossible to know in advance what might happen. In many cases it - is also useful to get more verbose information about the problem - that caused open() to fail. Throwing an exception is an excellent way - to achieve this. - -ECA_CHAINSETUP - enable() - TBD - -ECA_CHAINSETUP - load_from_file, save() and save_to_file - TBD - -ECA_SESSION - constructor - TBD - - -Coding style, naming conventions and source code markup -======================================================= - -This section describes some of the conventions used in -Ecasound development. As a general rule, one should -adapt to whatever style and conventions used in -already existing code. - -Variable and type naming ------------------------- - -Variable names are all lower case and words are separated with -underscores (int very_long_variable_name_with_underscores). Class data -members are marked with "_rep" postfix. Data members which are -pointers are marked with "_repp". Index-style short variable names -(n, m, etc.) are only used in local scopes. Enum types -have capitalized names (Some_enum). - -Use of macro processing should be avoided, but when necessary, -macro names should be capitalized. - -Package specific ----------------- - -libecasound, ecasound, ecatools, libkvutils - Class names are all in upper case and words separated with underscores - (class ECA_CONTROL_BASE). This a standard style in Eiffel programming. - -libqtecasound, qtecasound, ecawave - Qt-style is used when naming classes (class QELevelMeter), otherwise - same as above. - -Private classes ---------------- - -Some classes are divided into public and private parts. This is -done to make it easier to maintain binary-level compatibility -between library versions, and to get rid of header file -dependencies. - -Private classes have a "_impl" postfix in their name. They -are usually stored into separate files which also use the -"_impl" notation. - -For instance the ECA_ENGINE class (eca-engine.h) has -a private class ECA_ENGINE_impl (eca-engine_impl.h). -Access to ECA_ENGINE_impl is only allowed to ECA_ENGINE -member functions. In addition, the private header file -(eca-engine_impl.h) is only included from the ECA_ENGINE -implementation file (eca-engine.cpp). This allows us to -add new data members to ECA_ENGINE_impl without breaking -the binary interface. - -Unit tests ----------- - -Unit tests are used for verifying that modules work as intended. -A test for component, with a public interface defined in -"prefix-component.h", should located in -"prefix-component_test.h". The test itself should implement -the ECA_TEST_CASE interface. In addition, generic test cases -should be added to ECA_TEST_REPOSITORY - see -"libecasound/eca-test-repository.cpp". - -Source code markup ------------------- - -In addition to the Javadoc-style source code documentation (see -'Documentation style' section), inline commentary markup is used -to document important code segments. Use of common markup notation -is preferred (for example it is nice to be able to grep for a list -of open items in certain part of the codebase): - -- Known bugs, unhandled cases, and missing features should - be marked with "FIXME: description" comments. - -- Explanatory notes that help to understand the code - should be marked with "NOTE: description". - -Style updates -------------- - -The general rule is to use consistant style within one -source file (i.e. compilation unit). Updates to style issues -are also done with the same granularity. The following global -updates have been made so far to the sources: - -eca-style-version: 1 - The opening braces of multi-line functions should be put on a separate - line, at column 1, instead of being on the same line with - function signature. This change only applies to functions, in - other words the K&R style is followed. - -eca-style-version: 2 - Extra parenthesis around "return" values should be removed - ("return" is a keyword, not a function). - -eca-style-version: 3 - The module name prefix, for example "(eca-session) ", should - be removed from ECA_LOG_MSG() statements. The module prefix - is added automatically to the debug messages when debug - level "module_names" is activated. - -If a file has been updated according to these guidelines, -the appropriate style version should be mentioned at the -start of the file ("Attributes: eca-style-version: XXX"). - - -Physical level organization -=========================== - -Ecasound libraries and applications are divided into distribution -packages, directories and file groups. - -Include hierarchies -------------------- - -Include statements that are not stricly necessary should be dropped! -Not only do they cause unwanted dependencies, they also create more -work for the compiler (Ecasound already takes painfully long to -compile). Some rules to follow: - -- In header files, no extra header files should be defined. - For instance in many cases it's enough to state that - object SOME_TYPE is a class without need for the full - implementation; so instead of "\#include "sometype.h", use - "class SOME_TYPE;". - -- For modules with separate implementation and header files, - dependencies to other modules need not be - stated in both. - -- Direct dependencies to outside modules must always - be mentioned directly. It's easy to unknowingly include - a required header file via some other header file. This - should be avoided as it hides real dependencies. - -- When including headers for more special services, it's - good to add a comment why this header file is needed. - -Distribution packages ---------------------- - -As an example, Ecasound and Ecawave are distributed as separate -packages. This decision has been made because a) they are clearly -independent, b) they have different external dependencies, and c) -they address different target uses. - -Directories ------------ - -It's convenient to organize larger sets of source code into separate -directories. For instance libecasound and ecatools components of -the Ecasound package are located in separate directories. - -File groups ------------ - -Although files are divided in directories and subdirectories, -there's still a need to logically group a set of source files based -on their use and role in the overall design. As the use of C++ -namespaces is very limited in Ecasound (to avoid portability -problems), filename prefixes are used for grouping files. Here's -a short list of commonly used prefixes. - -audioio*.{cpp,h} - Audio device and file input/output. -audiofx*.{cpp,h} - Audio effects and other DSP-related code. -audiogate*.{cpp,h} - Gate operators. -eca*.{cpp,h} - Core functionality. -midi*.{cpp,h} - MIDI input/output devices, handlers and controller code. -osc*.{cpp,h} - Oscillator and other controller sources. -qe*.{cpp,h} - Generic prefix for files utilizing both Qt and Ecasound libraries. -samplebuffer*.{cpp,h} - Routines and helper functions for processing audio data buffers. - -You should note that these are just recommendations - there are no -strict rules on how files should be named. - -C++ std namespace ------------------ - -The preferred way to access C++ standard library functions is -to use explicit namespace selectors ("std::string") in public -headers files, and "using declarations" in the implementation -parts ("using std::string"). It's also possible to import the -whole std namespace ("using namespace std;") in the beginning -of an implementation file (but never in headers!). - - -Documentation style -=================== - -Javadoc-style class documentation is the preferred style. -Class members can be documented either when they are declared (header -files), or when they are defined. Especially when specifying -complicated interfaces, it's better to put documentation in the -definition files. This way the header files remain compact and serve -better as a reference. - -Here's a few general documentation guide lines: - -Use of 3rd person - "Writes samples to memory." instead of "Write samples to memory." -Sentences start with a verb - "Writes samples to memory." instead of "Samples are written to memory." -Use "this" instead of "the" - "Get controllers connected to this effect." instead of "Get controllers connected to the effect. - - -Versioning -========== - -All Ecasound releases have a distinct version number. The -version number syntax is x.y[.z][-extraT], where x and -y are the major and minor numbers, and z is an optional -revision number. To test major changes, separate -preX or --rcX versions can be distributed before the official release. - -In addition, all Ecasound libraries have a separate interface -version. The libtool-style version:revision:age versioning -is used. See the libtool documentation for details. - -One important thing to note is that the library interface version -numbers are tied to the source-code level interfaces, not the binary -interfaces. Because binary interfaces are not explicitly versioned, -applications should always statically link against the Ecasound -libraries. Also, any private source-code interfaces, ie. header -files with a "_impl.h" postfix, are not part of the versioned -public interface. Applications should not rely on these interfaces! - -All changes in the public interfaces are documented in library -specific ChangeLog files. These files are usually located in the -top-level source directory of the versioned library. - -One thing to note is that Ecasound's versioning practises have -changed quite a few times during the project's history. The -rules described above only apply to Ecasound 2.2.0 and newer -releases. - -.. ################################################################# -.. ################################################################# - -How Ecasound works? -~~~~~~~~~~~~~~~~~~~ - -Example use cases -================= - -Here's a few common use cases how Ecasound can be used. - -Simple non-interactive processing ---------------------------------- - -One input is processed and then written to one output. This includes effect -processing, normal sample playback, format conversions, etc. - -Multitrack mixing ------------------ - -Multiple inputs are mixed into one output. - -Real-Time effect processing ---------------------------- - -There's at least one real-time input and one real-time output. -Signal is sampled from the real-time input, processed and -written to the real-time output. - -One-track recording -------------------- - -One real-time input is processed and written to one or -more outputs. - -Multitrack recording --------------------- - -The most common situation is that there are two separate -chains. First one consists of real-time input routed to a -non-real-time output. This is the recording chain. The -other one is the monitor chain and it consists of one or -more non-real-time inputs routed to a real-time output. -You could also route your real-time input to the monitoring -chain, but this is not recommended because of severe -timing problems. To synchronize these two separate chains, -Ecasound uses a special multitrack mode (which should be -enabled automatically). - -Recycling a signal through external devices -------------------------------------------- - -Just like multirack recording. The only difference is -that real-time input and output are externally -connected. - - -Audio signal routing -==================== - -Basic audio flow inside an Ecasound chainsetup is as follows: Audio -data is routed from input audio objects to a group of chains. In -the chains audio data is processed using chain operators. After -processing data is routed to output objects. - -Using internal loop devices, it's also possible to route signals -from one chain to another. Looping causes extra latency of one -engine cycle. - -Routing of signals is based on the ability to assign inputs and -outputs to multiple chains. Assigning an input object to multiple -chains divides the audio signal generating multiple copies of -the original input data. Similarly with an output object, data from -multiple chains is mixed together to one output object. - -Control flow -============ - -Batch operation ---------------- - -When Ecasound is run in batch mode, the program flow is simple. -To store the session data, a ECA_SESSION object is first -created. The created object is then passed as an argument for -ECA_CONTROL class constructor. - -All required configuration of inputs, outputs and chain -operators is done using the services provided by ECA_CONTROL. -Once a valid chainsetup is ready for processing, batch -operation is initiated by issuing ECA_CONTROL::run(). This -function will block until processing is finished. - -Interactive operation ---------------------- - -Interactive operation is similar to batch operation. The -important difference is that processing is started with -ECA_CONTROL::start(). Unlike run(), start() does not -block the calling thread. This makes it possible to -continue using the ECA_CONTROL interface while engine -is running in the background. - -Two important concepts to understand when -working with ECA_CONTROL are the selected -and connected chainsetups. ECA_CONTROL allows -working with multiple chainsetups, but only one -of them can be edited at a time, and similarly -only one at a time can be connected to the -processing engine. For instance if you add a new -input object with add_audio_input(), it is -added to the selected chainsetup. Similarly when -you issue start(), the connected chainsetup is -started. - -.. ################################################################# -.. ################################################################# - -Library organization -~~~~~~~~~~~~~~~~~~~~ - -The primary source for class documentation is header files. -A browsable version of header documentation is at -http://www.eca.cx/ecasound/Documentation -Anyway, let's look at the some central classes. - - -Interfaces for external use -=========================== - -The following classes of libecasound are designed as -primary interfaces for external use. The approach -is based on the Facade (GoF185) design pattern. The primary -goals are concentrating functionality, and maintaining -a higher level of interface stability. - -ECA_CONTROL - eca-control.h ---------------------------- - -ECA_CONTROL represents the whole public interface offered by -libecasound. The primary purpose of ECA_CONTROL is to offer a -consistent, straightforward interface for controlling Ecasound. -The interface is also designed to be more stable than other -parts of the library. - -On important part of ECA_CONTROL is the functionality for -interpreting EOS (Ecasound Option Syntax) and EAIM (Ecasound -Interactive Mode) commands. - -ECA_CONTROL_MAIN (eca-control-main.h) is an abstract base class that -defines a subset of core ECA_CONTROL functionality. This interface -is implemented by e.g. ECA_CONTROL (the default implementation) -and ECA_CONTROL_MT (a thread-safe variant that allows simultaneous -use from multiple threads). - -It is recommended that applications use the subset defined -by ECA_CONTROL_MAIN. - -ECA_CONTROL_INTERFACE - eca-control-interface.h ------------------------------------------------ - -C++ implementation of the Ecasound Control Interface (ECI) API. See -section "Ecasound Control Interface" for more information. - -Core classes -============ - -This section introduces the core classes, which define the -central data types and are responsible for the main program -logic. - -AUDIO_IO_PROXY_SERVER - audioio-proxy-server.h ----------------------------------------------- - -Implements a audio input/output subsystem that adds -a second layer of buffering between the main processing -engine and non-real-time audio input and output objects. - -Double buffering is needed to guarantee a real-time constrained -data stream even when dealing with non-real-time objects like -disk files. - -CHAIN - eca-chain.h -------------------- - -Class representing one abstract audio signal chain. CHAIN -objects consist of chain operators, controllers and their -state information. - -ECA_CHAINSETUP - eca-chainsetup.h ---------------------------------- - -ECA_CHAINSETUP is the central class for storing user-visible -objects. All inputs, output, chain operator and controller -objects are attached to some ECA_CHAINSETUP object. - -ECA_ENGINE - eca-engine.h -------------------------- - -ECA_ENGINE is the actual processing engine. It is initialized with -a pointer to a ECA_CHAINSETUP object, which has all information -needed at runtime. In other words ECA_ENGINE is used to execute -the chainsetup. You could say ECA_ENGINE renders the final product -according to instruction given in ECA_CHAINSETUP. - -Processing is started with the exec() member function and -after that, ECA_ENGINE runs on its own. If 'batch_mode' -is selected (parameter to exec()), one started ECA_ENGINE will -run until a 'finished' condition is met and then exit -automatically. Finished means that we have read all available data -from input sources. Of course if some input has infinite length -(soundcards for example), processing will never finish. To get -around this limitation, it's possible to set the processing -length (see ECA_CONTROL_OBJECTS::set_chainsetup_processing_length_in_seconds()). - -If batch mode is not enabled, engine will just perform -the init phase and starts waiting for further instructions. -These instructions can be send to the engine using -the ECA_ENGINE::command() member function. - -ECA_ENGINE has the following states: - -not_ready - ECA_SESSION object is not ready for processing or - ECA_ENGINE hasn't been created -running - processing -stopped - processing hasn't been started or it has been stopped - before completion -finished - processing has been completed -error - an error has occured during prosessing - -ECA_SESSION - eca-session.h ---------------------------- - -ECA_SESSION is an abtraction used to represents a group of -chainsetups. At any time, only one chainsetup object at a time -can be active (connected). For modification, one chainsetup -can be set as 'selected'. This means that all configuration -operations are targeted to the selected chainsetup. - -The only public access to ECA_SESSION objects is -through ECA_CONTROL objects. - -MIDI_SERVER - midi-server.h ---------------------------- - -Engine that handles all MIDI input and output. - -SAMPLEBUFFER - samplebuffer.h ------------------------------ - -Basic unit for representing blocks of sample data. The data type used -to represent single samples, valid value ranges, channel count and system -endianess are all specified in "samplebuffer.h" and "sample_specs.h". - - -Feature and capability interface classes -======================================== - -Many libecasound classes have similar attribute sets and capabilities. -To make use of these shared features, most common features have their -own virtual base classes. All objects that have a particular feature, -inherit the same virtual base class. This makes object grouping -and management easier and less error prone. - -DYNAMIC_PARAMETERS - dynamic-parameters.h --------------------------------------------- - -Implemented by all classes that provide a set of generic parameters -of type T. Parameter can be observed and modified, and they -usually are identified by a unique name and a more verbose -description. Number of parameters can vary dynamically. Other -objects can access these parameters without detailed knowledge of -the object itself. - -ECA_AUDIO_FORMAT - eca-audio-format.h -------------------------------------- - -Implemented by all classes that an audio format attribute -set that can be observed and modified. - -ECA_AUDIO_POSITION - eca-audio-position.h ------------------------------------------ - -Implemented by all classes that need to maintain current audio -position and length. - -ECA_SAMPLERATE_AWARE - eca-samplerate-aware.h ---------------------------------------------- - -Implemented by all classes that need knowledge of current -sampling rate. - -MIDI_CLIENT - midi-client.h ---------------------------- - -Implemented b all classes that require a connection to -an instance of MIDI_SERVER. - - -Object interfaces -================= - -Object interfaces define the behaviour for common objects used -by libecasound. The core classes rarely operate on specific -object types, but instead use object interfaces (abstract -interfaces). Object interfaces are usually abstract C++ classes -(instances of these classes cannot be created as some of functions -don't yet have a concreate implementation, ie. they pure virtual -functions). - -AUDIO_IO - audioio.h --------------------- - -Virtual base class for all audio I/O objects. Different types -of audio objects include files, audio devices, sound -producing program modules, audio server clients, and so on. - -More specialized interface classesa are AUDIO_IO_DEVICE (for -real-time audio objects) and AUDIO_IO_BUFFERED (for POSIX-style -buffered i/o). There's also a special AUDIO_IO_MANAGER -interface for managing multiple audio objects of same -type inside one chainsetup. - -CHAIN_OPERATOR - eca-chainop.h ------------------------------- - -Virtual base class for chain operators. - -CONTROLLER_SOURCE - ctrl-source.h ---------------------------------- - -Virtual base class for all controller sources. - -MIDI_IO - midiio.h ------------------- - -Virtual base for objects capable of reading and writing -raw MIDI data. - -MIDI_HANDLER - midi-server.h ----------------------------- - -Virtual base class for objects capable of receiving -and processing MIDI data. - -Object interface implementations - plugins -========================================== - -Majority of the classes in libecasound fall to this category. They -implement the behaviour of some object interface type. As other -parts of the library only use the object interfaces, these -implementation classes are fairly isolated. Changes made inside object -implementation have no effect to other parts of the library. -Similarly new object interface implementations can be added without -modifying the core classes. - - -Utility classes -=============== - -TBD - -eca-logger.h - ECA_LOGGER -------------------------- - -Singleton class that provides an interface to Ecasound's logging -subsystem. Libecasound sends all log messages to this interface. -The actual logger implementation can be done in many ways. For example -in the console mode user-interface of Ecasound, TEXTDEBUG class -implements the ECA_LOGGER_INTERFACE class interface. It sends all -messages that have a suitable debug level to the console's standard -output. On the other hand, in qtecasound, ECA_LOGGER_INTERFACE is -implemented using a Qt widget. - -New ECA_LOGGER_INTERFACE implementations can be registered at -runtime with the ECA_LOGGER::attach_logger() member -function (declared in eca-logger.h). - - -Object maps -=========== - -Object maps are central repositories for commonly used objects. -Their main purpose is to add flexibility to handling different -object types - especially to handling dynamic addition and removal -of whole object types. They provide the following services: - -- listing all object types in any of the available - categories (for instance, list all effect types) - -- creating new object instances based on keyword strings - (for instance, returns an mp3 object if "foo.mp3" is given - as keyword) - -- adding new object types (object map item is identified by - tuple of "keyword, regex expression, object type") - -- removing object types - -- reverse mapping objects back to keyword strings - -In Ecasound, all access to object maps goes throuh the library-wide -ECA_OBJECT_FACTORY class, which provides a set of static functions -to access the object maps. - -This system may sound a bit complex, but in practise it is quite -simple and makes a lot of things more easier. For instance, when -adding new object types to the library, you only have to add one -function call which registers the new object; no need to modify any -other part of the library. It also makes it possible to add new -types at runtime, including dynamically loaded plugins. - -One special use-case is where an application linked against -libecasound adds its own custom object types on startup. All parts -of libecasound can use the custom objects, although they are not -part of library itself. - -All objects defined in libecasound are registered in the file -eca-static-object-maps.cpp. - -eca-object.h - ECA_OBJECT -------------------------- - -A virtual base class that represents an Ecasound object. All objects -handled by the object factory must inherit this class. - -eca-object-factory.h - ECA_OBJECT_FACTORY ------------------------------------------ - -The public interface to Ecasound's object maps. All its functions -are static. - -.. ################################################################# -.. ################################################################# - -Adding new features and components to Ecasound? -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -Things to remember when writing new C++ classes -=============================================== - -TBD - -Copy constructor and assignment operator ----------------------------------------- - -Always take a moment to check your copy constructor and the assign -operation (=operation()). Basicly you have three alternatives: - -- Trust the automatically created default definitons. If you don't - have any pointers as data members, this isn't necessarily a bad - choice at all. At least the compiler remembers to copy all members! - -- If you have pointers to objects as class data members, you should - write definitions for both the copy-constructor and the assign - operation. - -- If you are lazy, just declare the two functions as null - functions, and put them in "private:"_ access scope. At least this way - nobody will use the functions by accident! - - -Audio objects -============= - -To implement a new audio object type, you must first select which -top-level class to derive from. Usually this is either AUDIO_IO -(the top-level class), AUDIO_IO_BUFFERED (a more low level interface) -or AUDIO_IO_DEVICE (real-time devices). - -The second step is to implement the various virtual functions declared -in the parent classes. These functions can be divided into four -categories: 1) attributes (describes the object and its capabilities), -2) configuration (routines used for setting up the object), 3) main -functionality (open, close, input, output, etc) and 4) runtime -information (status info). - -Adding the new object to Ecasound is much like adding a new effect -(see the next section). Basicly you just add it to the makefiles and -then register it to the appropriate object map (see below). - -Checklist for Audio Object Implementations ------------------------------------------- - -1. Check that read_buffer() and write_buffer() change the - internal position with either set_position_in_samples() - or change_position_in_samples() functions of ECA_AUDIO_POSITION. - Also, when writing a new file, extend_position() should - also be called. All this is done automatically if using - read_samples() and write_samples() from AUDIO_IO_BUFFERED. - -2. If implementing a proxy object, separately consider all public - functions of audioio-proxy.h (whether to reimplement or use - as they are). - -3. Check that open() and close() call AUDIO_IO::open() and - AUDIO_IO::close(), and in the right order. - -4. If the object supports seeking, seek_position() must - be implemented. - -5. Check that the set_parameter() and get_parameter() methods - work correctly when they are used for saving and restoring - audio object state (for example cs-edit EIAM command). - - -Effects and other chain operators -================================= - -Write a new class that inherits from CHAIN_OPERATOR or any of its -successors. Implement the necessary routines (init, set/get_parameter, -process and a default constructor) and add your source files to -libecasound's makefiles. Then all that's left to do is to add your -effect to libecasound/eca-static-object-maps.cpp, -register_default_objects(). Now the new effect can be used just -like any other Ecasound effect (parameters control, effect presets, etc). - -Another way to add effects to Ecasound is to write them as LADSPA -plugins. The API is well documented and there's plenty of -example code available. See http://www.ladspa.org -for more information. - - -Differences between audio objects and chain operators -===================================================== - -Design-wise, audio objects and effects (chain operators) aren't that -far away from each other. Many audio apps don't separate these -concepts at all (for instance most UG based synthesizers). In Ecasound -though, there are some differences: - -Input/output: - -- audio objects can be opened for reading writing or read\&write -- ... effects are not modal (i.e. modeless) -- audio objects read from, or write to, a buffer -- ... effects get a buffer which they operate on (in-place processing) - -Audio format: - -- audio objects have a distinct audio format (sample rate, bits, - channels) -- .... effects should be capable of accepting audio data in any format - (this is usually easy as Ecasound converts all input data to its - internal format) - -Control: - -- audio objects can be opened, closed, prepared, started and stopped -- ... effects have a much simpler running state: either uninitialized or ready-for-processing - -Position: - -- audio objects have length and position attributes -- ... effects just process buffers and don't need to care about position information - -A good example of the similarity between the two types are LADSPA -oscillator plugins. Although they are effects, you can easily use them -as audio sources (inputs) by specifying: - -:: - -"ecasound -i null -o /dev/dsp -el:sine_fcac,440,1" - - -LADSPA plugins -============== - -Ecasound supports LADSPA-effect plugins (Linux Audio Developer's Simple -Plugin API). See LAD mailing list web site for -more info about LADSPA. Other useful sites are -LADSPA home page and LADSPA documentation. - - -EIAM commands -============= - -Adding a new interactive mode commands requires changes to the -following files: - - -- libecasound/eca-iamode-parser_impl.h: Unique id for the new command - has to be added to enum Commands. - -- libecasound/eca-iamode-parser.cpp: The new command must be added - to the appropriate register_commands_*() function. - -- libecasound/eca-iamode-parser.cpp: The new command must be added - to the appropriate action_requires_*() sets. - -- libecasound/eca-control.cpp: The actual implementation of the - new command. - -- Documentation/ecasound-iam_manpage.yo: Documentation must be - added. - -.. ################################################################# -.. ################################################################# - -Application development using the Ecasound framework -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -Console mode ecasound - [all languages] -======================================= - -This is the easiest way to take advantage of Ecasound features in your -own programs. You can fork ecasound, pipe commands to ecasound's -interactive mode or you can create chainsetup (.ecs) files and load -them to ecasound. You'll be able to do practically anything. The only -real problem is getting information from ecasound. You'll have to -parse ecasound's ascii output if you want to do this. To make this -a bit easier, Ecasound offers the wellformed output mode -and dump-* commands. These can be used to easily parse configuration and -status information. - - -Ecasound Control Interface - [C++, C, Python, Perl, ...] -======================================================== - -Idea behind Ecasound Control Interface (ECI) is to take a subset of -functionality provided by libecasound, write a simple API for it, and -port it to various languages. At the moment, at least C++, C and -Python implementations of the ECI API are available and part of the -main Ecasound distribution. ECI is heavily based on the Ecasound -Interactive Mode (EIAM), and the services it provides. - -Specific tasks ECI is aimed at: - -- 1. automating (scripting in its traditional sense) -- 2. frontends (generic / specialized) -- 3. sound services to other apps - - -NetECI - [various] -================== - -NetECI is a network version of the ECI API. When Ecasound is -started in server mode (see ecasound(1) for the related options), it -listens for incoming NetECI commands on a TCP socket. Client -applications can connect to this socket and use the connection to -control and observe the active session. Multiple clients -can connect to the same session. - -The protocol is identical to one used in ECI (see section "Ecasound -Interactive Mode - Well-Formed Output Mode" below). Clients write EIAM -commands to the socket, followed by a CRLF pair. The server will reply -using the well-formed output mode syntax. - -See implementation of ecamonitor (part of ecatools), -for a working example. - - -Libecasound's ECA_CONTROL class - [C++] -=========================================== - -Note! Direct use of libecasound and libkvutils is -not recommended anymore! Please use the Ecasound Control Interface -(ECI) instead. - -By linking your program to libecasound, you can use the ECA_CONTROL -class for controlling Ecasound. This is a large interface class that -offers routines for controlling all Ecasound features. It's easy -to use while still powerful. Best examples are the utils in ecatools -directory (most of them are just a couple screenfuls of code). Also, -qtecasound and ecawave heavily use ECA_CONTROL. Here's a few lines of -example code: - -:: - -| --cut-- -| ECA_SESSION esession; -| ECA_CONTROL ctrl (&esession); -| ctrl.new_chainsetup("default"); -| [... other setup routines ] -| ctrl.start(); // starts processing in another thread (doesn't block) -| --cut-- - -If you don't want to use threads, you can run the setup in -batch mode: - -:: - -| --cut-- -| ECA_SESSION esession; -| ECA_CONTROL ctrl (&esession); -| ctrl.add_chainsetup("default"); -| [... other setup routines ] -| ctrl.run(); // blocks until processing is finished -| --cut-- - - -Ecasound classes as building blocks - [C++] -=============================================== - -Note! Direct use of libecasound and libkvutils is -not recommended anymore! Please use the Ecasound Control Interface -(ECI) instead. - -You can also use individual Ecasound classes directly. -This means more control, but it also means more work. Here's -another short sample: - -| --cut-- -| - create a SAMPLE_BUFFER object for storing the samples -| - read samples with an audio I/O object - for example WAVEFILE -| - process sample data with some effect class - for example EFFECT_LOWPASS -| - maybe change the filter frequency with EFFECT_LOWPASS::set_parameter(1, new_value) -| - write samples with an audio I/O object - OSSDEVICE, WAVEFILE, etc. -| --cut-- - -.. ################################################################# -.. ################################################################# - -Protocols and Interfaces -~~~~~~~~~~~~~~~~~~~~~~~~ - -Ecasound Interactive Mode - Well-Formed Output Mode -=================================================== - -By issuing the EIAM command "int-output-mode-wellformed", -Ecasound will start printing all messages using the following -format: - -:: - -| = ( | ) -| -| = ; loglevel number -| ; size of content in octets -| = ; generic log message -| = -| ; EIAM return value message -| = -| ; actual content of the message -| = "i" | "li" | "f" | "s" | "S" | "e" -| ; type of the return value (see ECI/EIAM docs) -| = * ; zero or more octets of message content -| -| = 0x20 ; space -| = 0x00-0xff ; 8bits of data -| = ; new line -| = 0x0d ; carriage return -| = 0x0a ; line feed -| = + ; one or more digits -| = 0x30-0x39 ; digits 0-9 diff --git a/library/ecasound/Documentation/programmers_guide/eci_doc.latex b/library/ecasound/Documentation/programmers_guide/eci_doc.latex deleted file mode 100644 index a725ca419..000000000 --- a/library/ecasound/Documentation/programmers_guide/eci_doc.latex +++ /dev/null @@ -1,714 +0,0 @@ -\documentclass{article} -\usepackage[T1]{fontenc} -\usepackage{ae} - -%\usepackage{html} -%\bodytext{link="#662a00" vlink="#666655" bgcolor="#ffffff"} - -\title{Ecasound Control Interface Guide} -\author{Kai Vehmanen, Brad Bowman, Tony Leake, Jan Weil, Mario Lang} -\date{03062006} -\begin{document} - -\maketitle -\tableofcontents -\clearpage - -% ---------------------------------------------------------------------- -% ---------------------------------------------------------------------- -\section{Introduction} -The idea behind the Ecasound Control Interface (ECI) is to take a subset of -functionality provided by libecasound, provide a simple API for it, and -port it to various languages. At the moment, implementations of the -ECI API are available for C, C++, elisp, Python and Ruby. These all -come by default with the Ecasound package. Additional implementations, -for example for Perl and PHP, are distributed independently. - -ECI is heavily based on Ecasound's interactive mode (EIAM), and the -services it provides. See \texttt{ecasound-iam(1) manual page} for -a detailed EIAM documentation. - -% ---------------------------------------------------------------------- -% ---------------------------------------------------------------------- -\section{Document history} -\begin{itemize} -\item 04.06.2006 - Added more information to the ``Tips for debugging'' section. -\item 21.03.2005 - Updated the ``Tips for debugging'' section. -\item 25.09.2004 - Updated the ``Return values'' section based on feedback - from Adam Linson. -\item 02.05.2004 - ``Emacs'' section added (written by Mario Lang). -\item 28.11.2003 - ``Ruby'' section added (written by Jan Weil). - Updated the introduction. -\item 26.11.2003 - Fix filename for the alternative Python API (eci.py). -\item 18.11.2003 - Typo fixes. Updated documentation to reflect the new - naming convention (ecasound refers to the binary, - Ecasound refers to the whole package). -\item 26.10.2002 - Changed the C++ linking example. -\item 24.10.2002 - Added ``Notes Concerning Standalone ECI Implementations'' - section. Added compilation examples. -\item 06.10.2002 - Added ``Application development'' section. -\item 05.10.2002 - Changed the libecasoundc link path. -\item 29.09.2002 - ``PHP'' section added (written by Tony Leake). -\item 25.04.2002 - Changed headers path from ``'' to - ``'' and added library version number to - link instructions. -\item 21.10.2001 - Added this history section. Minor changes to - ECI examples. -\end{itemize} - -% ---------------------------------------------------------------------- -% ---------------------------------------------------------------------- -\section{General} -ECI doesn't provide any routines that directly manipulate audio or -Ecasound objects. What it does provide is an easy and generic way -to issue EIAM (Ecasound Inter-Active Mode) commands, access the -command return-values and perform error handling. - -This approach has two benefits. First, it is possible to keep the API -small, and thus make it easier to port ECI to new languages. Secondly, -it's possible to keep ECI relatively stable. Ecasound itself is a large, -developing library. New features are added all the time, and from time -to time, older parts of the library will get rewritten to better suit -new uses. Now for application developers wanting to take advantage of -libecasound, these constant changes are very annoying, especially if -your specific app doesn't need the latest new features. In these -cases, ECI is the best platform for application development. - - -% ---------------------------------------------------------------------- -\subsection{What's it good for?} - -Specific tasks ECI is aimed at: - -\begin{itemize} -\item 1. automating (scripting in its traditional sense) -\item 2. frontends (generic / specialized) -\item 3. sound services to other apps -\end{itemize} - - -% ---------------------------------------------------------------------- -\subsection{Services and behaviour} - -Here is a list of services provided by all ECI implementations: - -\subsubsection{Actions} -\begin{description} -\item[command(string)] -Issue an EIAM command. - -\item[command\_float\_arg(string, float)] -Issue an EIAM command. This function can be used instead of -\emph{command(string)}, if the command in question requires exactly one -numerical parameter. This way it's possible to avoid the extra -string -> float conversion, which would lead to lost precision. -\end{description} - -\subsubsection{Return values} -Each EIAM command has exactly one return value type. After a command -has been issued, only one last\_type() functions returns a non-empty -value. For example, last\_float() only returns a valid value if -\emph{last\_type() == 'f'} holds true. Not all EIAM commands return -a value (return type is void). - -\begin{description} -\item[last\_string()] -Returns the last string return value. - -\item[last\_string\_list()] -Returns the last collection of strings (one or more strings). - -\item[last\_float()] -Returns the last floating-point return value. Note! last\_float() -doesn't refer to the C/C++ type 'float'. In most implementations, -floats are 64bit values (doubles in C/C++). - -\item[last\_integer()] -Returns the last integer return value. This function is also -used to return boolean values, where non-zero means 'true' -and zero 'false'. - -\item[last\_long\_integer()] -Returns the last long integer return value. Long integers are -used to pass values like 'length\_in\_samples' and 'length\_in\_bytes'. -It's implementation specific whether there's any real difference -between integers and long integers. -\end{description} - -\subsubsection{Errors} -\begin{description} -\item[error()] -Returns true (!= 0) if error has occured during the execution -of last EIAM command. Otherwise returns false (= 0). - -\item[last\_error()] -Returns a string describing the last error. If the last EIAM command -was executed succesfully, last\_error() returns an empty string. - -\end{description} - -\subsubsection{Other} -\begin{description} -\item[initialize()] -Reserve resources. - -\item[cleanup()] -Free all reserved resources. -\end{description} - - - -% ---------------------------------------------------------------------- -\subsection{Porting to new environments} -Porting ECI to new languages should be easy. All there is to do is -to implement the services listed in the previous section to the target -language. In most cases it's to easiest to use the C++ or C ECI -as the underlying implementation to build upon. - - - -% ---------------------------------------------------------------------- -% ---------------------------------------------------------------------- -\section{Implementations} - - -% ---------------------------------------------------------------------- -\subsection{General} - -\subsubsection{Overview} -This section contains overview of how ECI is implemented in the -discussed language (eg. as a single class, set of classes, set of -routines, etc). - -\subsubsection{Usage} -A quick tutorial to get you started. - -\subsubsection{Example} -Implementation of the following: -\begin{enumerate} -\item Setup ECI to read audio from file, apply a 100Hz lowpass filter, and - send it to the soundcard (/dev/dsp). -\item Every second, check the current position. If the stream has - been running for over 15 seconds, exit immediately. Also, - every second, increase the lowpass filter's cutoff frequency - by 500Hz. -\item Stop the stream (if not already finished) and disconnect the - chainsetup. Print chain operator status info. -\end{enumerate} - - -% ---------------------------------------------------------------------- -\subsection{Notes Concerning Standalone ECI Implementations} - -The C implementation of ECI is not directly linked against the main -Ecasound libraries. Instead, the ecasound executable is launched -on the background and command pipes are used to communicate with it. - -The launched ecasound executable can be selected by using the -\emph{ECASOUND} environment variable. If it is not defined, -the C ECI implementation will try to launch ``ecasound'' (ie. -has to be somewhere in PATH). - -In addition to the C implementation, this also affects all -ECI implementations that are based on the C version. Currently -this includes at least the Perl, PHP and Python ECI modules. - -% ---------------------------------------------------------------------- -\subsection{C++} -\subsubsection{Overview} -C++ implementation is based around the ECA\_CONTROL\_INTERFACE class. -STL vector is used for representing collections of objects -(last\_string\_list()). - -\subsubsection{Usage} -\begin{enumerate} -\item \#include -\item create an instance of the ECA\_CONTROL\_INTERFACE class - and use its member functions -\item link you app agains libecasoundc (-lecasoundc) -\item compilation example: \emph{c++ -o ecidoc\_example ecidoc\_example.cpp `libecasoundc-config --cflags --libs`} -\end{enumerate} - -\subsubsection{Example} -\begin{verbatim} - -#include -#include -#include - -int main(int argc, char *argv[]) -{ - double cutoff_inc = 500.0; - - ECA_CONTROL_INTERFACE e; - e.command("cs-add play_chainsetup"); - e.command("c-add 1st_chain"); - e.command("ai-add some_file.wav"); - e.command("ao-add /dev/dsp"); - e.command("cop-add -efl:100"); - e.command("cop-select 1"); - e.command("copp-select 1"); - e.command("cs-connect"); - e.command("start"); - while(1) { - sleep(1); - e.command("engine-status"); - if (e.last_string() != "running") break; - e.command("get-position"); - double curpos = e.last_float(); - if (curpos > 15.0) break; - e.command("copp-get"); - double next_cutoff = cutoff_inc + e.last_float(); - e.command_float_arg("copp-set", next_cutoff); - } - - e.command("stop"); - e.command("cs-disconnect"); - e.command("cop-status"); - cerr << "Chain operator status: " << e.last_string() << endl; - - return(0); -} - -\end{verbatim} - -% ---------------------------------------------------------------------- -\subsection{C} -\subsubsection{Overview} -All C ECI functions are prefixed with "eci\_". When returning string -values, a const pointer to a null-terminated char array (const char*) -is returned. It's important to keep in mind that these are "borrowed" -references. If you need to later use the data, you must copy -it to application's own buffers. - -Returning a list of strings is implemented using two functions: -\emph{eci\_last\_string\_list\_count()} returns the number of strings -available, and \emph{eci\_last\_string\_list\_item(int n)} returns a -pointer (const char*) to the string at index \emph{n}. - -\emph{Note!} As of Ecasound 2.0.1, the C ECI implementation also - provides reentrant access to the ECI API. These - alternative routines are marked with '\_r' postfix. - -\subsubsection{Usage} - -\begin{enumerate} -\item \#include -\item use the eci\_* routines -\item link your app against libecasoundc (-lecasoundc) -\item compilation example: \emph{gcc -o ecidoc\_example ecidoc\_example.c `libecasoundc-config --cflags --libs`} -\end{enumerate} - -\subsubsection{Example} -\begin{verbatim} - -#include -#include -#include - -int main(int argc, char *argv[]) -{ - double cutoff_inc = 500.0; - - eci_init(); - eci_command("cs-add play_chainsetup"); - eci_command("c-add 1st_chain"); - eci_command("ai-add some_file.wav"); - eci_command("ao-add /dev/dsp"); - eci_command("cop-add -efl:100"); - eci_command("cop-select 1"); - eci_command("copp-select 1"); - eci_command("cs-connect"); - eci_command("start"); - - while(1) { - double curpos, next_cutoff; - - sleep(1); - eci_command("engine-status"); - if (strcmp(eci_last_string(), "running") != 0) break; - eci_command("get-position"); - curpos = eci_last_float(); - if (curpos > 15.0) break; - eci_command("copp-get"); - next_cutoff = cutoff_inc + eci_last_float(); - eci_command_float_arg("copp-set", next_cutoff); - } - - eci_command("stop"); - eci_command("cs-disconnect"); - eci_command("cop-status"); - printf("Chain operator status: %s", eci_last_string()); - eci_cleanup(); - - return(0); -} - -\end{verbatim} - -% ---------------------------------------------------------------------- -\subsection{Emacs} -\subsubsection{Overview} -The Ecasound package comes with an 'Ecasound' library for Emacs included. -ecasound.el is a implementation of the ECI API for Emacs, as well -as an interactive interface to Ecasound sessions implemented -on top of that. Simply use "M-x ecasound RET" to fire up an -interactive Ecasound session. - -All Emacs Lisp ECI functions are prefixed with ``eci\-''. -'ecasound.el' is implemented in a high level manner which means -that you won't find most of the commands known from libecasoundc like -last\_string, last\_float, etc. -Instead of that every call to function "eci-command", which accepts all -the well known IAM commands, returns ecasound's response in an appropriate type -automatically. -If an error occurs, e. g. there's a typo in a command or a file is not found, -the function returns ``nil''. In all other cases, either an automatically -converted Lisp value is returned, or ``t'' in the case where there was no -particular value returned. - -Additionally, most of the available IAM commands have their own Emacs Lisp -function including documentation and possibly a parameter list. All these -functions are interactive, so you can use them in ecasound-iam-mode simply -by invoking them via M-x or by pressing an assigned key combination. -Emacs will prompt you for the required parameters, providing completion -wherever possible. - -As a convention, "eci-command" and its variants do take a buffer or process -as an optional last argument. If this is ``nil'', the current -buffer is assumed to be the ecasound session refered to by this call. -This makes it possible to use several ECI sessions concurrently, dispatching -on the buffer or process in use. - -\subsubsection{Usage} -\begin{enumerate} -\item make ecasound.el available in your ``load-path'' -\item (require 'ecasound) -\item create a buffer with an associated Ecasound session (``eci-init'') -\item use ``eci\-'' functions with the new buffer -\end{enumerate} - -\subsubsection{Example} -\begin{verbatim} -(require 'ecasound) - -(defun example (file &optional cutoff-increment session) - (unless cutoff-increment (setq cutoff-increment 500.0)) - (with-current-buffer (or session (eci-init)) - (eci-cs-add "play_chainsetup") - (eci-c-add "1st_chain") - (eci-ai-add file) - (eci-ao-add "/dev/dsp") - (eci-cop-add "-efl:100") - (eci-cop-select 1) - (eci-copp-select 1) - (eci-cs-connect) - (eci-start) - (sit-for 1) - (while (and (string= (eci-engine-status) "running") - (<= (eci-get-position) 15)) - (eci-copp-set (+ cutoff-increment (eci-copp-get))) - (sit-for 1)) - (eci-command "stop") - (when (eci-cs-disconnect) - (destructuring-bind - ((cop n1 (copp n2 val))) - (cdr (assoc "1st_chain" (eci-cop-status))) - (message "%s %s is now %f" cop copp val))))) -\end{verbatim} - -NOTE: function ``eci-cop-status'' is actually a very high level function -which already converts the returned information to a nested list -structure. - -For more complex examples of the Emacs Lisp ECI implementation, see function -``eci-example'', ``ecasound-normalize'' and ``ecasound-signalview'' in -ecasound.el. - -% ---------------------------------------------------------------------- -\subsection{Python} -\subsubsection{Overview} -Python implementation is based around the ECA\_CONTROL\_INTERFACE class. -Lists are used for representing collections of objects. - -Note! Eric S. Tiedemann has written an alternative Python interface - to ECI. You'll find this interface included in the main - Ecasound packege, in ``pyecasound/eci.py''. To use this instead - of the standard interface, just 'import eci' and you're set! :) - -\subsubsection{Usage} - -\begin{enumerate} -\item import pyeca -\item create an instance of the ECA\_CONTROL\_INTERFACE class - and use its member functions -\item python 'yourapp.py' and that's it :) -\end{enumerate} - -\subsubsection{Example} -\begin{verbatim} - -#!/usr/local/bin/python -import time -from pyeca import * -e = ECA_CONTROL_INTERFACE() -e.command("cs-add play_chainsetup") -e.command("c-add 1st_chain") -e.command("ai-add some_file.wav") -e.command("ao-add /dev/dsp") -e.command("cop-add -efl:100") -e.command("cop-select 1") -e.command("copp-select 1") -e.command("cs-connect") -e.command("start") -cutoff_inc = 500.0 -while 1: - time.sleep(1) - e.command("engine-status") - if e.last_string() != "running": break - e.command("get-position") - curpos = e.last_float() - if curpos > 15: break - e.command("copp-get") - next_cutoff = cutoff_inc + e.last_float() - e.command_float_arg("copp-set", next_cutoff) -e.command("stop") -e.command("cs-disconnect") -e.command("cop-status") -print "Chain operator status: ", e.last_string() - -\end{verbatim} - -% ---------------------------------------------------------------------- -\subsection{Perl} -\subsubsection{Overview} -Audio::Ecasound provides perl bindings to the Ecasound -control interface of the Ecasound program. You can use -perl to automate or interact with Ecasound so you don't -have to turn you back on the adoring masses packed into -Wembly Stadium. - -Audio::Ecasound was written by Brad Bowman. At the moment this module -is not distributed with Ecasound. To get the latest version, check the -following \texttt{CPAN link}. - -\subsubsection{Usage} -See the below example. For more info, here's another -\texttt{CPAN link}. - -\subsubsection{Example} -use Audio::Ecasound qw(:simple); - -\begin{verbatim} - -eci("cs-add play_chainsetup"); -eci("c-add 1st_chain"); -eci("ai-add some_file.wav"); -eci("ao-add /dev/dsp"); -# multiple \n separated commands -eci("cop-add -efl:100 - # with comments - cop-select 1 - copp-select 1 - cs-connect"); -eci("start"); -my $cutoff_inc = 500.0; -while (1) { - sleep(1); - last if eci("engine-status") ne "running"; - my $curpos = eci("get-position"); - last if $curpos > 15; - my $next_cutoff = $cutoff_inc + eci("copp-get"); - # Optional float argument - eci("copp-set", $next_cutoff); -} -eci("stop"); -eci("cs-disconnect"); -print "Chain operator status: ", eci("cop-status"); - -\end{verbatim} - -% ---------------------------------------------------------------------- -\subsection{PHP} -\subsubsection{Overview} -This PHP extension provides bindings to the Ecasound -control interface. It is useful both for scripting Ecasound -and for writing graphical audio applications with PHP Gtk. - -The PHP Ecasound extension was written by Tony Leake. At the moment this module -is not distributed with Ecasound. The latest version and example scripts, are -available from \texttt{http://www.webwise-data.co.uk/php\_audio/php\_audio\_extension.html}. - -\subsubsection{Usage} -\begin{enumerate} -\item Obtain and build the Ecasound PHP extension -\item Initialise Ecasound, eci\_int(); -\item Issue EAM commands eg, eci\_command("cs-add my\_chain\_setup"); -\item Free resources, eci\_cleanup(); -\end{enumerate} - -\subsubsection{Example} -\begin{verbatim} - -Implementation of the following: - -1. Setup ECI to read audio from file, apply a 100Hz lowpass filter, -and send it to the soundcard (/dev/dsp). -2. Every second, check the current position. If the stream has been -running for over 15 seconds, exit immediately. Also, every second, -increase the lowpass filter's cutoff frequency by 500Hz. -3. Stop the stream (if not already finished) and disconnect the chainsetup. -Print chain operator status info - - 15.0){ - break; - } - - eci_command("copp-get"); - $next_cutoff = $cutoff_inc + eci_last_float(); - eci_command_float_arg("copp-set",$next_cutoff); -} - -eci_command("stop"); -eci_command("cs-disconnect"); -eci_command("cop-status"); - -printf("Chain operator status: %s", eci_last_string()); - -eci_cleanup(); -?> -\end{verbatim} - -% ---------------------------------------------------------------------- -\subsection{Ruby} -\subsubsection{Overview} -The Ecasound package comes with an 'Ecasound' module for Ruby included. -If ruby is detected during the installation process it is installed -automatically (assuming you are installing ecasound from source code). -The module contains the class definition of a native ecasound control interface -called "ControlInterface". - -'Ecasound::ControlInterface' is implemented in a high level manner which means -that you won't find most of the commands known from libecasoundc like -last\_string, last\_float, etc. -Instead of that every call to the instance method "command", which accepts all -the well known IAM commands, returns ecasound's response in an appropriate type -automatically. -If an error occurs, e. g. there's a typo in a command or a file is not found, -an exception of type EcasoundError is raised. - -\subsubsection{Usage} -\begin{enumerate} -\item require 'ecasound' -\item create an instance of Ecasound::ControlInterface -\item use it's command method to send IAM commands to ecasound -\item catch an EcasoundError if necessary -\end{enumerate} - -\subsubsection{Example} -\begin{verbatim} -#!/usr/bin/env ruby -require "ecasound" - -SOME_FILE = "path/to/file.wav" - -e = Ecasound::ControlInterface.new() -e.command("cs-add play_chainsetup") -e.command("c-add 1st_chain") -e.command("ai-add #{SOME_FILE}") -e.command("ao-add /dev/dsp") -e.command("cop-add -efl:100") -e.command("cop-select 1") -e.command("copp-select 1") -e.command("cs-connect") -e.command("start") - -cutoff_inc = 500.0 - -loop do - sleep(1) - break if e.command("engine-status") != "running" - break if e.command("get-position") > 15 - e.command("copp-set #{cutoff_inc + e.command('copp-get')}") -end - -e.command("stop") -e.command("cs-disconnect") - -$stdout << "Chain operator status: " + e.command("cop-status") + "\n" -\end{verbatim} - -% ---------------------------------------------------------------------- -% ---------------------------------------------------------------------- -\section{Application development} - -% ---------------------------------------------------------------------- -\subsection{Tips for debugging} - -Here's a few tips what to do if the ECI app you have developed -is not working correctly. - -\begin{enumerate} -\item Check your Ecasound installation. Try to run the ``ecasound'' - console user-interface and verify that the basic functionality - is working (ie. something like ``ecasound -i foo.wav -o - /dev/dsp''. - -\item If developing in C or C++, check that your application - is correcly linked: ``ldd /path/to/myapp''. All the libraries - should be properly found. - -\item Check error conditions. You should remember to check - for errors in your ECI apps using the eci\_error() and - eci\_last\_error() functions. Especially when intializing - ECI for the first time and after important commands - like ``cs-connect'', you should always check for errors. - -\item Use the ECASOUND\_LOGFILE environment variable to write all - engine output to a separate logfile. See ecasound(1) manpage - for details on how to use this mechanism. Requires Ecasound - version 2.4.5 or newer. - -\item Utilize the ``int-log-history'' ECI command added to - version 2.4.0 of Ecasound. Recent messages from the - engine can help to track down the problem. Before use, you - need to first set the history length to a non-zero value with - ``int-set-log-history-length''. - -\item Launch Ecasound in interactive mode (``ecasound -c''), - and issue the commands your ECI application is using, - manually one-by-one and see what happens. If something - goes wrong, increase Ecasound's debug level (for instance - ``-ddd'') and re-run the test. - -\end{enumerate} - -\end{document} diff --git a/library/ecasound/Documentation/users_guide/Makefile.am b/library/ecasound/Documentation/users_guide/Makefile.am deleted file mode 100644 index e0ed71a9e..000000000 --- a/library/ecasound/Documentation/users_guide/Makefile.am +++ /dev/null @@ -1,50 +0,0 @@ -# ---------------------------------------------------------------------- -# File: ecasound/Documentation/users_guide/Makefile.am -# Description: Ecasound documentation - user's guide -# License: GPL (see ecasound/{AUTHORS,COPYING}) -# ---------------------------------------------------------------------- - -# --------------------------------------------------------------------- -# Files going into distribution: - -EXTRA_DIST = users_guide.latex - -DISTCLEANFILES = \ - users_guide.log \ - users_guide.aux \ - users_guide.out \ - users_guide.dvi \ - users_guide.toc \ - users_guide.ps \ - ecasound_users_guide.pdf \ - html_uguide/users_guide.html \ - html_uguide/users_guide.haux \ - html_uguide/users_guide.htoc - -all: - -docs: ecasound_users_guide.pdf - -ecasound_eci_doc.pdf: eci_doc.latex eci_doc.dvi - -# note: to create the table of contents (which spans multiple pages), and -# re-calculate the page numbers after the page offset generated by table -# of contents, latex needs to be ran 3 times. (Junichi Uekawa, 2007-08-06) - -users_guide.dvi: $(srcdir)/users_guide.latex - latex $(srcdir)/users_guide.latex - latex $(srcdir)/users_guide.latex - latex $(srcdir)/users_guide.latex - dvips -Ppdf -o users_guide.ps users_guide.dvi - ps2pdf users_guide.ps ecasound_users_guide.pdf - mkdir -p html_uguide - hevea -o html_uguide/users_guide.html $(srcdir)/users_guide.latex - hevea -o html_uguide/users_guide.html $(srcdir)/users_guide.latex - -ecasound_users_guide.pdf: users_guide.dvi - -clean-docs: - rm -fv ecasound_users_guide.pdf - rm -fv users_guide.log users_guide.toc users_guide.dvi users_guide.aux users_guide.ps users_guide.dvi - rm -fv html_uguide/* - diff --git a/library/ecasound/Documentation/users_guide/Makefile.in b/library/ecasound/Documentation/users_guide/Makefile.in deleted file mode 100644 index d56f6a673..000000000 --- a/library/ecasound/Documentation/users_guide/Makefile.in +++ /dev/null @@ -1,432 +0,0 @@ -# Makefile.in generated by automake 1.9.6 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - -# ---------------------------------------------------------------------- -# File: ecasound/Documentation/users_guide/Makefile.am -# Description: Ecasound documentation - user's guide -# License: GPL (see ecasound/{AUTHORS,COPYING}) -# ---------------------------------------------------------------------- - -# --------------------------------------------------------------------- -# Files going into distribution: -srcdir = @srcdir@ -top_srcdir = @top_srcdir@ -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -top_builddir = ../.. -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -INSTALL = @INSTALL@ -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -subdir = Documentation/users_guide -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/configure.in -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -SOURCES = -DIST_SOURCES = -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMDEP_FALSE = @AMDEP_FALSE@ -AMDEP_TRUE = @AMDEP_TRUE@ -AMTAR = @AMTAR@ -AM_CFLAGS = @AM_CFLAGS@ -AM_CPPFLAGS = @AM_CPPFLAGS@ -AM_CXXFLAGS = @AM_CXXFLAGS@ -AM_LDFLAGS = @AM_LDFLAGS@ -AR = @AR@ -ARTSC_CONFIG = @ARTSC_CONFIG@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DSYMUTIL = @DSYMUTIL@ -ECA_AM_ALL_STATIC_FALSE = @ECA_AM_ALL_STATIC_FALSE@ -ECA_AM_ALL_STATIC_TRUE = @ECA_AM_ALL_STATIC_TRUE@ -ECA_AM_COMPILE_ALSA_FALSE = @ECA_AM_COMPILE_ALSA_FALSE@ -ECA_AM_COMPILE_ALSA_TRUE = @ECA_AM_COMPILE_ALSA_TRUE@ -ECA_AM_COMPILE_ARTS_FALSE = @ECA_AM_COMPILE_ARTS_FALSE@ -ECA_AM_COMPILE_ARTS_TRUE = @ECA_AM_COMPILE_ARTS_TRUE@ -ECA_AM_COMPILE_AUDIOFILE_FALSE = @ECA_AM_COMPILE_AUDIOFILE_FALSE@ -ECA_AM_COMPILE_AUDIOFILE_TRUE = @ECA_AM_COMPILE_AUDIOFILE_TRUE@ -ECA_AM_COMPILE_JACK_FALSE = @ECA_AM_COMPILE_JACK_FALSE@ -ECA_AM_COMPILE_JACK_TRUE = @ECA_AM_COMPILE_JACK_TRUE@ -ECA_AM_COMPILE_OSS_FALSE = @ECA_AM_COMPILE_OSS_FALSE@ -ECA_AM_COMPILE_OSS_TRUE = @ECA_AM_COMPILE_OSS_TRUE@ -ECA_AM_COMPILE_SAMPLERATE_FALSE = @ECA_AM_COMPILE_SAMPLERATE_FALSE@ -ECA_AM_COMPILE_SAMPLERATE_TRUE = @ECA_AM_COMPILE_SAMPLERATE_TRUE@ -ECA_AM_COMPILE_SNDFILE_FALSE = @ECA_AM_COMPILE_SNDFILE_FALSE@ -ECA_AM_COMPILE_SNDFILE_TRUE = @ECA_AM_COMPILE_SNDFILE_TRUE@ -ECA_AM_DEBUG_MODE_FALSE = @ECA_AM_DEBUG_MODE_FALSE@ -ECA_AM_DEBUG_MODE_TRUE = @ECA_AM_DEBUG_MODE_TRUE@ -ECA_AM_DISABLE_EFFECTS_FALSE = @ECA_AM_DISABLE_EFFECTS_FALSE@ -ECA_AM_DISABLE_EFFECTS_TRUE = @ECA_AM_DISABLE_EFFECTS_TRUE@ -ECA_AM_FEELING_EXPERIMENTAL_FALSE = @ECA_AM_FEELING_EXPERIMENTAL_FALSE@ -ECA_AM_FEELING_EXPERIMENTAL_TRUE = @ECA_AM_FEELING_EXPERIMENTAL_TRUE@ -ECA_AM_KVUTILS_INSTALLED_FALSE = @ECA_AM_KVUTILS_INSTALLED_FALSE@ -ECA_AM_KVUTILS_INSTALLED_TRUE = @ECA_AM_KVUTILS_INSTALLED_TRUE@ -ECA_AM_PYECASOUND_CEXT_FALSE = @ECA_AM_PYECASOUND_CEXT_FALSE@ -ECA_AM_PYECASOUND_CEXT_TRUE = @ECA_AM_PYECASOUND_CEXT_TRUE@ -ECA_AM_PYECASOUND_INSTALL_FALSE = @ECA_AM_PYECASOUND_INSTALL_FALSE@ -ECA_AM_PYECASOUND_INSTALL_TRUE = @ECA_AM_PYECASOUND_INSTALL_TRUE@ -ECA_AM_RUBYECASOUND_INSTALL_FALSE = @ECA_AM_RUBYECASOUND_INSTALL_FALSE@ -ECA_AM_RUBYECASOUND_INSTALL_TRUE = @ECA_AM_RUBYECASOUND_INSTALL_TRUE@ -ECA_AM_SYSTEM_READLINE_FALSE = @ECA_AM_SYSTEM_READLINE_FALSE@ -ECA_AM_SYSTEM_READLINE_TRUE = @ECA_AM_SYSTEM_READLINE_TRUE@ -ECA_AM_USE_NCURSES_FALSE = @ECA_AM_USE_NCURSES_FALSE@ -ECA_AM_USE_NCURSES_TRUE = @ECA_AM_USE_NCURSES_TRUE@ -ECA_AM_USE_TERMCAP_FALSE = @ECA_AM_USE_TERMCAP_FALSE@ -ECA_AM_USE_TERMCAP_TRUE = @ECA_AM_USE_TERMCAP_TRUE@ -ECA_S_EXTRA_CPPFLAGS = @ECA_S_EXTRA_CPPFLAGS@ -ECA_S_EXTRA_LIBS = @ECA_S_EXTRA_LIBS@ -ECA_S_JACK_INCLUDES = @ECA_S_JACK_INCLUDES@ -ECA_S_JACK_LIBS = @ECA_S_JACK_LIBS@ -ECA_S_PREFIX = @ECA_S_PREFIX@ -ECA_S_PYTHON_DLMODULES = @ECA_S_PYTHON_DLMODULES@ -ECA_S_PYTHON_INCLUDES = @ECA_S_PYTHON_INCLUDES@ -ECA_S_PYTHON_MODULES = @ECA_S_PYTHON_MODULES@ -ECA_S_READLINE_INCLUDES = @ECA_S_READLINE_INCLUDES@ -ECA_S_READLINE_LIBS = @ECA_S_READLINE_LIBS@ -ECA_S_RUBY_SITEDIR = @ECA_S_RUBY_SITEDIR@ -ECHO = @ECHO@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -F77 = @F77@ -FFLAGS = @FFLAGS@ -GREP = @GREP@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LDFLAGS = @LDFLAGS@ -LIBECASOUNDC_VERSION = @LIBECASOUNDC_VERSION@ -LIBECASOUNDC_VERSION_AGE = @LIBECASOUNDC_VERSION_AGE@ -LIBECASOUND_VERSION = @LIBECASOUND_VERSION@ -LIBECASOUND_VERSION_AGE = @LIBECASOUND_VERSION_AGE@ -LIBKVUTILS_VERSION = @LIBKVUTILS_VERSION@ -LIBKVUTILS_VERSION_AGE = @LIBKVUTILS_VERSION_AGE@ -LIBLO_CFLAGS = @LIBLO_CFLAGS@ -LIBLO_LIBS = @LIBLO_LIBS@ -LIBOBJS = @LIBOBJS@ -LIBOIL_CFLAGS = @LIBOIL_CFLAGS@ -LIBOIL_LIBS = @LIBOIL_LIBS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LN_S = @LN_S@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -NMEDIT = @NMEDIT@ -OBJEXT = @OBJEXT@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PKG_CONFIG = @PKG_CONFIG@ -PYTHONPATH = @PYTHONPATH@ -RANLIB = @RANLIB@ -RUBYPATH = @RUBYPATH@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -VERSION = @VERSION@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_CXX = @ac_ct_CXX@ -ac_ct_F77 = @ac_ct_F77@ -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -EXTRA_DIST = users_guide.latex -DISTCLEANFILES = \ - users_guide.log \ - users_guide.aux \ - users_guide.out \ - users_guide.dvi \ - users_guide.toc \ - users_guide.ps \ - ecasound_users_guide.pdf \ - html_uguide/users_guide.html \ - html_uguide/users_guide.haux \ - html_uguide/users_guide.htoc - -all: all-am - -.SUFFIXES: -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Documentation/users_guide/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --foreign Documentation/users_guide/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -distclean-libtool: - -rm -f libtool -uninstall-info-am: -tags: TAGS -TAGS: - -ctags: CTAGS -CTAGS: - - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ - list='$(DISTFILES)'; for file in $$list; do \ - case $$file in \ - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ - esac; \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test "$$dir" != "$$file" && test "$$dir" != "."; then \ - dir="/$$dir"; \ - $(mkdir_p) "$(distdir)$$dir"; \ - else \ - dir=''; \ - fi; \ - if test -d $$d/$$file; then \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ - fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ - else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile -installdirs: -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool mostlyclean-am - -distclean: distclean-am - -rm -f Makefile -distclean-am: clean-am distclean-generic distclean-libtool - -dvi: dvi-am - -dvi-am: - -html: html-am - -info: info-am - -info-am: - -install-data-am: - -install-exec-am: - -install-info: install-info-am - -install-man: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-info-am - -.PHONY: all all-am check check-am clean clean-generic clean-libtool \ - distclean distclean-generic distclean-libtool distdir dvi \ - dvi-am html html-am info info-am install install-am \ - install-data install-data-am install-exec install-exec-am \ - install-info install-info-am install-man install-strip \ - installcheck installcheck-am installdirs maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-generic \ - mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \ - uninstall-info-am - - -all: - -docs: ecasound_users_guide.pdf - -ecasound_eci_doc.pdf: eci_doc.latex eci_doc.dvi - -# note: to create the table of contents (which spans multiple pages), and -# re-calculate the page numbers after the page offset generated by table -# of contents, latex needs to be ran 3 times. (Junichi Uekawa, 2007-08-06) - -users_guide.dvi: $(srcdir)/users_guide.latex - latex $(srcdir)/users_guide.latex - latex $(srcdir)/users_guide.latex - latex $(srcdir)/users_guide.latex - dvips -Ppdf -o users_guide.ps users_guide.dvi - ps2pdf users_guide.ps ecasound_users_guide.pdf - mkdir -p html_uguide - hevea -o html_uguide/users_guide.html $(srcdir)/users_guide.latex - hevea -o html_uguide/users_guide.html $(srcdir)/users_guide.latex - -ecasound_users_guide.pdf: users_guide.dvi - -clean-docs: - rm -fv ecasound_users_guide.pdf - rm -fv users_guide.log users_guide.toc users_guide.dvi users_guide.aux users_guide.ps users_guide.dvi - rm -fv html_uguide/* -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/library/ecasound/Documentation/users_guide/users_guide.latex b/library/ecasound/Documentation/users_guide/users_guide.latex deleted file mode 100644 index 88a79a2e1..000000000 --- a/library/ecasound/Documentation/users_guide/users_guide.latex +++ /dev/null @@ -1,1056 +0,0 @@ -\documentclass{report} -\usepackage[T1]{fontenc} -\usepackage{ae} -\usepackage{hevea} -\usepackage{hyperref} - -\title{Ecasound User's Guide} -\author{Kai Vehmanen} -\date{19042009} -\begin{document} - -\maketitle -\tableofcontents -\clearpage - -% ---------------------------------------------------------------------- -% ---------------------------------------------------------------------- -\chapter{Preface} - -This document describes Ecasound from the user's point of view. In -addition to the actual user/client-programs, all essential Ecasound -library concepts and features are also discussed. To avoid duplicating -documentation, I've used references to other sources whenever suitable. -For instance, Ecasound's man pages are a very good (and up-to-date!) -source of information. They are also available in HTML-format. - -If not otherwise specified, all documentation refers to the latest -Ecasound version. - -% ---------------------------------------------------------------------- -% ---------------------------------------------------------------------- -\chapter{Document history} -\begin{itemize} -\item 19.04.2009 - Removed duplicate Ecasound history section and added - more web URLs pointing to other sources of - documentation. -\item 31.01.2009 - Lots of minor improvements in preparation for - 2.6.0 release. -\item 29.01.2009 - Updated ``JACK Audio Server'' section to match - the changes in 2.6.0 release. -\item 05.08.2008 - Fixed a bug in example of loop device usage. -\item 09.03.2008 - Updated the EWF file section. Replace uses of ``/dev/dsp'' - with ``alsa'' in many examples. -\item 06.12.2006 - Added notes concerning quoting EOS arguments containing - commas. -\item 04.06.2006 - Some minor improvements to the text. Updated the descriptions of - realtime-lsm and rlimits-rtprio mechanisms. -\item 25.04.2005 - From now on, only major changes are logged to this changelog - section. For detailed change history, refer to CVS history. -\item 23.04.2005 - Started using the ``hevea'' style-package and converted - all links to use the hevea macros (resulting in real hyperlinks - in the HTML output). Renamed the section - ``Security considerations when running with root privileges'' - to shorter ``Security Considerations'', added info - about Realtime LSM module. -\item 01.04.2005 - Updated ``Ecasignalview'' documentation. -\item 30.03.2005 - Added sections on ``Preset parameters'' and - ``Parameter descriptors''. -\item 11.12.2004 - Added section ``Filenames with commas not handled correctly'' -\item 18.12.2003 - Many typo fixes and other corrections from Eric - Rzewnicki. -\item 18.11.2003 - Typo fixes. -\item 20.08.2003 - Capitalize Ecasound in all cases where talking - about the software package, not the console mode - user-interface. Updated JACK documentation with - a description of JACK and Ecasound states. -\item 13.08.2003 - Updated documentation concerning JACK transport - functions. -\item 31.10.2002 - Few section layout bugs fixed. -\item 30.10.2002 - Added JACK documentation, minor layout changes. -\item 17.10.2002 - Updated Ecasound overview. -\item 17.07.2002 - Added documentation for ecasignalview. -\item 18.05.2002 - Fixed a few typos. -\item 21.10.2001 - Added material from the Ecasound FAQ. -\item 21.10.2001 - Added this history section. Document was - restructured and all major chapters reviewed. -\item 01.02.2001 - Updated the ``Current position'' section. -\end{itemize} - -% ---------------------------------------------------------------------- -% ---------------------------------------------------------------------- -\chapter{Introduction} - -% ---------------------------------------------------------------------- -\section{What is Ecasound?} - - -Ecasound is a software package designed for multitrack audio -processing. It can be used for simple tasks like audio playback, -recording and format conversions, as well as for multitrack effect -processing, mixing, recording and signal recycling. Ecasound supports -a wide range of audio inputs, outputs and effect algorithms. -Effects and audio objects can be combined in various ways, and their -parameters can be controlled by operator objects like oscillators -and MIDI-CCs. A versatile console mode user-interface is included in -the package. - -% ---------------------------------------------------------------------- -% ---------------------------------------------------------------------- -\chapter{Ecasound concepts} - -% ---------------------------------------------------------------------- -\section{Audio object} - -Audio objects are used to transfer audio from and to Ecasound. -Usually audio objects are either files (like wav, mp3 or ogg) -or devices (soundcard input/output). There are also some -special audio object types for transferring data between -applications. - -% ---------------------------------------------------------------------- -\section{Chain} - -Chain is the central signal flow abstraction. In many ways chains -are similar to audio cables. You have one input and one output -to which you can connect audio producers and consumers -(like guitar and amplifier for instance). - -But there are some differences. First it's possible to attach -chain operators (usually effects) to chains. This is somewhat like -replacing one cable with two, and putting an effect box between -them, but with chains it's just easier. A second important difference -is that chains can transport multiple channels of audio. It's possible -to attach mono, stereo or 24ch (or bigger) audio feeds to one -chain. Also all chain operators can handle these multichannel -streams. - -In addition to chain operators, chains also have separate -``mute'' and ``bypass'' functions. - -% ---------------------------------------------------------------------- -\section{Chain operators and controllers} - -Chain operators are used to process and analyze sample data. -They can be divided into gates, converters, signal analyzers and -to traditional effects like reverbs, delays and filters. - -It's also possible to attach special controller objects to chains. -These controllers are used to control chain operator parameters. -The typical examples are various oscillators and MIDI continous -controllers (knobs, sliders, etc found on MIDI-devices). - -Both types of objects are attached to chains. The term \emph{chain object} -refers to all objects that can be attached to chains - ie. -operators and controllers. - -% ---------------------------------------------------------------------- -\section{Chainsetup} - -Chainsetup is the central data object. All other objects (inputs, -outputs, chains, etc) are connected to some chainsetup. -Many chainsetups can exist at the same time (during one session), -but only one of them can be in use. In Ecasound documentation, -the term \emph{connected} is used to describe a chainsetup that -is in use. - -Another important chainsetup concept is that of a \emph{selected} -chainsetup. All editing operations are done on the currently selected -chainsetup. It is possible to have one chainsetup connected (currently -processing audio), while editing another, chainsetup that is selected -for editing. - -Loading and saving chainsetups is the primary mechanism -for storing and restoring state information. When saving -to files, the \emph{.ecs} file format is used. The file syntax -uses the same notation as Ecasound's console (and command-line) -interface. This makes it easy to edit the chainsetup files -outside Ecasound, either manually or using external utils. -See \href{http://eca.cx/ecasound/Documentation/ecasound_manpage.html}{ecasound(1)} -man page for details. - -% ---------------------------------------------------------------------- -\section{Current position} - -Information about current position is only stored for audio -objects and chainsetups. When you change chainsetup position, -all audio objects are affected. On the other hand, positions -of different audio objects can be changed independently. - -% ---------------------------------------------------------------------- -\section{Ecasound Control Interface - ECI} - -Ecasound Control Interface is an API for application -developers who want to take advantage of libecasound -in their own apps. See ``Ecasound Control Interface Guide'' -and ``Ecasound Programmer's Guide'' for more information. - -% ---------------------------------------------------------------------- -\section{Ecasound Interactive Mode - EIAM} - -Most of Ecasound's functionality is located in one -central library (libecasound). One thing that this library -provides is a simple interpreter, which can be used for -controlling Ecasound. This mode of operation is better -known as Ecasound's Interactive Mode (EIAM) - -The most common frontend for the Interactive Mode is the console-mode -Ecasound program. You can enter its Enteractive Mode -by issuing ``ecasound -c''. For more detailed information -the available commands, see \texttt{ecasound-iam(1)} man page. - -% ---------------------------------------------------------------------- -\section{Ecasound Option Syntax - EOS} - -One very notable feature of the console-mode ecasound -program is its command-line option syntax. You can -do pretty much everything from the command-line. - -But it doesn't end with the console mode ecasound. In -fact, interpreting these options is located in -the main libecasound library, and is very closely tied -to the interactive mode. - -As a result, the same syntax (tokens that look like -``-prefix:arg1,arg2,...,argN''), is used in various -parts of libecasound. Note that if any of the arguments -contain commas, those arguments need to be enclosed in -double-quotes (for example ``-prefix:"ar,g1",arg2''). - -Following is a partial list of the places where EOS syntax -has been used: - -\begin{itemize} -\item parsing command-line options -\item the interactive-mode (as arguments to the 'cs-option' command - [2.1dev4 and newer]) -\item saved chainsetup-files (.ecs format) -\item effect preset definitions (see for example - ``/usr/share/ecasound/effect\_presets'') -\item generic oscillator definitions (see for example - ``/usr/share/ecasound/generic\_oscillators'' -\end{itemize} - -% ---------------------------------------------------------------------- -% ---------------------------------------------------------------------- -\chapter{Using} - -% ---------------------------------------------------------------------- -\section{Where to start?} - -There's no one single right way to use Ecasound. You can use it as -a simple glue component for doing tasks that aren't handled by -other applications you are using, or because Ecasound does these tasks -more easily (or better even :)). But Ecasound can also serve as the -centre of your studio setup, doing everything from effects processing -to multitrack recording and mixing. - -This flexibility doesn't come for free. It's difficult to describe -Ecasound's features in a few phrases. Because of this, new users -are encouraged to start from the \texttt{Examples page} at -\url{http://www.eca.cx/ecasound/Documentation/examples.html}. -It isn't a perfect introduction, and definitely shows only one way to -use the software, but it does give an overall view of what can be done, -and more importantly, it shows that many tasks are actually quite simple -to do. - -% ---------------------------------------------------------------------- -\section{Rules for creating and modifying chainsetups} - -Here are a few rules that help writing valid chainsetups. -Whether you are editing chainsetup files (.ecs), some -graphical frontend, just using command-line options, etc; -these rules always apply: - -\begin{itemize} -\item Every chain has exactly \_one\_ input and \_one\_ output. -\item All inputs and outputs must be connected to some chain. -\item For every input/output, there is one and only one - definition (example: ``-i:file.wav''). -\item All routing from and to chains is based on selecting a set of - chains and then specifying an input or output (example: - ``-a:1,2 -i:file.ext''). -\item All audio copying and mixing is done channel-wise. If you attach - a 4-channel input and a two-channel output to a chain, that chain - will have 4 channels of audio, but only the first two channels - will be written to the output file. -\end{itemize} - -Note that these rules are checked only when \emph{connecting} the -chainsetup (when issuing commands such as ``cs-connect'', or ``start''). - -% ---------------------------------------------------------------------- -\section{Chain operators and controllers} - -The best place to start is to read through -the \href{http://eca.cx/ecasound/Documentation/ecasound_manpage.html}{ecasound(1)} -man page, which contains documentation for all native Ecasound -chain objects. - -% ---------------------------------------------------------------------- -\section{Configuration} - -User preferences are stored in \emph{\textasciitilde /.ecasound/ecasoundrc}. -See the \href{http://eca.cx/ecasound/Documentation/ecasoundrc\_manpage.html}{ecasoundrc(5)} -manual page for details. - -By default, files for effect presets and oscillator presets are -in \emph{/usr/share/ecasound}. - -% ---------------------------------------------------------------------- -\section{Common problems} - -\subsection{I get occasional audio dropouts during operation? How to get rid of them?} - -Check \url{http://www.oreillynet.com/pub/a/linux/2000/11/17/low_latency.html} -where you'll find a very good article written by Dave Phillips on -Linux low-latency issues. If you are in a hurry (or desperate :)), -here's a quick list of things to try: - -\begin{itemize} -\item Tune your disks (see the article) -\item Enable ecasound's double-buffering system by using the \emph{-z:db} - option [note! this is only necessary with Ecasound 2.0.x and older] -\item If you're still having problems, run ecasound as root (or with SUID-bit - set) and use ecasound's \emph{-r} option. This will raise ecasound's - scheduling priority to realtime (SCHED\_FIFO). [with ecasound 2.1 - and newer, just run ecasound as root and it will take care of - tuning the settings] -\item Try increasing ecasound's buffersize with the \emph{-b:sample\_frames} - option. Something like \emph{-b:4096} should do the trick. -\item If all else fails, try the various low-latency kernel patches - (again, check the article) -\end{itemize} - -There has been a lot of discussion about tuning your system for better -performance on linux-audio-dev and linux-audio-user mailing lists. You -can browse the list archives at \url{http://www.linuxdj.com/audio/lad/archive.php}. - -Here are links to selected messages from the ecasound-list archives: -\begin{itemize} -\item Tuning parameters for reliable recording \url{http://eca.cx/ecasound-list/2005/04/0038.html}. -\item Smart Buffering \url{http://eca.cx/ecasound-list/2001/10/0020.html}. -\item Ecasound for Recording \url{http://eca.cx/ecasound-list/2001/06/0016.html}. -\end{itemize} - -\subsection{Can I use multiple soundcards?} - -This is possible, but there are some issues you should be aware of. If -you try using multiple cheap soundcards to get more simultaneous -inputs for recording, it's likely that the resulting streams will not -be in sync. This problem is explained in detail in the Linux -Audio-Quality HOWTO section "Notes on Full Duplex Recording, and Other -Realtime Issues": \url{http://karmak.org/archive/2003/02/audio_quality_HOWTO.htm}. -The original page at \url{http://www.linuxdj.com/audio/quality/} is no -longer available. - -\subsection{Problems with panning mono files} - -In situations where you need to convert mono -audio objects to multichannel objects, Ecasound -can behave in a somewhat unexpected manner. - -For instance, the correct way to set panning for -three individual mono input files, and mix the -resulting stereo output to soundcard, is: - -\begin{verbatim} -ecasound -a:1 -i:monofile1.wav -erc:1,2 -epp:0 \ - -a:2 -i:monofile2.wav -erc:1,2 -epp:50 \ - -a:3 -i:monofile3.wav -erc:1,2 -epp:100 \ - -a:all -f:16,2,44100 -o:alsa -\end{verbatim} - -The actual signal chain is something like: - -\begin{verbatim} -monofile1.wav |--'1'---- erc ----| epp |---\ - \-----| |---\\ - \\ -monofile2.wav |--'2'---- erc ----| epp |------- | alsa - \-----| |------- | - // -monofile3.wav |--'3'---- erc ----| epp |---// - \-----| |---/ - -('---' = mono channel) -\end{verbatim} - -The critical points to notice are: - -\begin{itemize} -\item ecasound automatically notices that the three - input files are mono files so chains are initialized - with one mono input -\item chains contain mono signal until -erc operator, - which transforms the chain into a stereo chain - by copying the data from ch1 to ch2 -\item now -epp works as expected (sets the stereo balance - for one input) -\item chains are mixed to the soundcard device channel-wise -\end{itemize} - -If you leave out the -erc operators, chains will still be converted -to stereo (as -epp is a stereo operator), but on each chain, only -the first channel (left) will contain any audio from the input -files. - -\subsection{Filenames with commas not handled correctly} - -There are some pitfalls in how commas in filenames are handled -by ecasound. If you have a filename ``foo,bar.ogg'', the following -will not work: - -\begin{verbatim} -ecasound -i foo,bar.ogg -o alsa -\end{verbatim} - -The only way around this is to escape all the commas with backslashes: - -\begin{verbatim} -ecasound -i foo\\,bar.ogg -o alsa -\end{verbatim} - -The backslash has to be a double-backslash as the shell strips -one of the backslashes away before passing the string to ecasound. - -% ---------------------------------------------------------------------- -% ---------------------------------------------------------------------- -\chapter{User interfaces and Applications} - -For a complete list of user-interfaces and applications built -on top of Ecasound, visit Ecasound's web site at \url{http://www.eca.cx}. - -% ---------------------------------------------------------------------- -\section{Ecasound} - -The standalone program ``ecasound'' is the primary user interface -for Ecasound. - -See \href{http://eca.cx/ecasound/Documentation/ecasound_manpage.html}{ecasound(1)} -man page and the \texttt{Examples web page} -at \url{http://www.eca.cx/ecasound/Documentation/examples.html}. - -% ---------------------------------------------------------------------- -\section{Ecasignalview} - -Ecasignalview is an utility program for monitoring signal amplitude -and peak statistics. It's primarily used when adjusting -signal levels for recording. - -\subsection{Basic use} - -The basic use scenario is to record audio from a soundcard device, -visualize it with vu-meters and write it to a null output. - -\begin{verbatim} -# OSS-drivers (or properly installed ALSA OSS-emulation) -ecasignalview /dev/dsp null - -# native ALSA-mode, recording from the 'default' device -ecasignalview alsa,default null -\end{verbatim} - -It is possible to reset the max-peak and clipped-samples -counters by sending a SIGHUP signal to the process (i.e. -from another console: "killall -v -HUP ecasignalview"). - -To monitor the input signal you can either use the soundcard's -analog (or in some cases, digital) monitoring functions by -enabling line/mic-in monitoring using \emph{alsamixer} (ALSA), -\emph{aumix} (OSS) or some other mixer application. Another option is to -use ecasignalview to do the monitoring. In this case the correct -command is: - -\begin{verbatim} -# OSS input and output -ecasignalview /dev/dsp /dev/dsp - -# corresponding ALSA command -ecasignalview alsa,default alsa,default -\end{verbatim} - -Ecasignalview command-line options allow you to fine-tune -the way monitoring is done: - -\begin{verbatim} -# increased refresh rate 20Hz -ecasignalview -r:50 alsa null - -# larger buffersize (1024 samples) -ecasignalview -b:1024 alsa null - -# recording in mode 32bit/10channels/96000Hz with -# interleaved channels -ecasignalview -f:s32,10,96000,i alsa null -\end{verbatim} - -It can also be used with files and real-time devices like -JACK inputs and outputs: -\begin{verbatim} -# monitor audio recorded by JACK system input (first 2ch) -ecasignalview -f:f32,2 jack,system null - -# monitor audio from JACK application ``foosynth'' -ecasignalview -f:f32,2 jack,foosynth null - -# play and monitor a file input -ecasignalview foo.wav alsa -\end{verbatim} - -\subsection{Further Reading} - -See \texttt{ecatools(1)} man page for a detailed listing of -available command-line options. - -% ---------------------------------------------------------------------- -\section{Ecatools} -See \texttt{ecatools(1)} man page. - -% ---------------------------------------------------------------------- -% ---------------------------------------------------------------------- -\chapter{Advanced features} - -% ---------------------------------------------------------------------- -\section{Audio loop devices} - -Just by using normal chain connections it's not possible to -route audio from one Ecasound chain to another. One way -around this limitation is loop devices. They were introduced -in Ecasound 1.7.0. - -\subsection{Example of use} - -An example use-case where we route audio from chains ``1'' and ``2'' -to chain ``3'' which is amplified and send to a soundcard output (``alsa''). - -\begin{verbatim} ---cut-- -# note, the second loop parameter is the loop id-number; -# it is used to associate loop inputs with correct loop outputs -ecasound -a:1 -i:some.mp3 - -a:2 -i:another.mp3 - -a:1,2 -o:loop,1 - -a:3 -ea:200 -i:loop,1 -o alsa ---cut-- - -\end{verbatim} - -Both inputs are eventually routed to chain "3", where a -ea:200 is -applied to the signal. This does have one downside, loop device -adds latency (-b:x -> latency of x frames). - -% ---------------------------------------------------------------------- -\section{Ecasound Wave Files - the EWF (.ewf) format} - -\subsection{General} - -Ecasound Wave File (.ewf) is a simple wrapper format for controlling -other audio objects. Ewf files are useful for offsetting or time-shifting -audio files (for instance play a short audio clip in the middle of -a long multitrack mix), for minimizing diskspace usage during -multitrack recording (output offsetting ) and looping. - -Starting from Ecasound version 2.5.0, similar functionality is -provided by special purpose audio object types 'audioloop', 'audioselect' -and others. You may choose between EWF and these audio object types -based on your specific needs. See -\href{http://eca.cx/ecasound/Documentation/ecasound_manpage.html}{ecasound(1)} -man page and the \texttt{Examples web page} -at \url{http://www.eca.cx/ecasound/Documentation/examples.html} -for many examples of using these. - -Writing to EWF file is nowadays considered to be a deprecated -feature and it may be removed in a future release. - -\subsection{File format} - -Ewf-files are stored in ascii format. The syntax is based on ``key=value'' -pairs. The same syntax is used with Ecasound resource files. See -\href{http://eca.cx/ecasound/Documentation/ecasoundrc\_manpage.html}{ecasoundrc(5)} -man page for detailed info. Currently recognized ewf keywords are: - -\begin{itemize} -\item source - audio object name (string) {[}read,write{]} -\item offset - insert audio object at offset (time) {[}read,write{]} -\item start-position - start offset inside audio object (time) {[}read{]} -\item length - how much of audio object data is used (time) {[}read{]} -\item looping - whether to loop sample data (true or false) {[}read{]} -\end{itemize} - -All time values are interpreted as seconds (need not be an integer -but can be given as a decimal number, e.g. ``1.05''). However if -the value is an integer number and has a postfix of ``sa'' (e.g. -``44100sa''), it is interpreted as time expressed as samples (in -case of a multichannel stream, time in sample frames). - -\subsection{Example of ewf use} - -Let's look at a simple example .ewf file: - -\begin{verbatim} --- test.ewf -- -source = test.wav -offset = 5.0 -start-position = 2.0 -length = 3.0 -looping = true ---cut-- -\end{verbatim} - -Now what happens when you issue "ecasound -i test.ewf -o alsa"? -Because of the ``offset'' definition, the first 5 seconds will be -silent. After that ecasound will start to read data from ``test.wav''. -But as ``start-position'' is not zero, ecasound will skip the -first 2 seconds. After 8 seconds has passed (``offset'' + -``length''), ecasound will loop back to ``start-position''. -This looping will continue until the user interrupts the operation. - -% ---------------------------------------------------------------------- -\section{Effect presets} - -\subsection{General} -Ecasound has a powerful effect preset system that allows you to create -new effects by combining basic effects and controllers. - -Presets can be stored into separate files or they can be stored -into a global database. Either way, the preset format is the same -(also see \href{http://eca.cx/ecasound/Documentation/ecasoundrc\_manpage.html}{ecasoundrc(5)} - man page, the same file format and syntax is used): - -\begin{verbatim} -preset_name = effects controllers | ... | effects controllers -\end{verbatim} - -Effects and controllers are specified using the EOS syntax, -the same syntax that is used for parsing command-line options -(``-ea:100'', ``-kl:1,0,100,5'', etc). The pipe character is -used to separate parallel chains. - -Just like in shell scripts, the '$\backslash$' character can -be used to spread definitions across multiple lines. - -\subsection{Example of preset use} -Ecasound effect presets are in fact small Ecasound engines that -behave just like native effects. Here's an example of a -multi-chain effect preset: - -\begin{verbatim} ---cut file 'bassbooster.ecp'-- -# let's put the low freqs into one chain and high freqs in another -bassbooster = -efl:2000 -ea:200 | -efh:2000 -ea:50 -# note, the '|' sign separates parallel chains ---cut-- -\end{verbatim} - -Once defined, you can use the preset in the following way: - -\begin{verbatim} ---cut-- -ecasound -a:1 -i:some.mp3 -pf:bassbooster.ecp - -a:2 -i:another.mp3 -pf:bassbooster.ecp - -a:1,2 -o:alsa ---cut-- - \end{verbatim} - -When separate files are used (the ``-pf:name'' option), -Ecasound always loads the first preset it finds. If the -file contains more presets (additional ``key=value'' -pairs), -they are ignored. - -An alternative way to define presets is to put the -definition in the global preset list (usually in -``/usr/local/share/ecasound/effect\_presets''. Once you've -added a line defining ``bassbooster'', you can use it -like: - -\begin{verbatim} ---cut-- -ecasound -a:1 -i:some.mp3 -pn:bassbooster - -a:2 -i:another.mp3 -pn:bassbooster - -a:1,2 -o:alsa ---cut-- -\end{verbatim} - -\subsection{Preset parameters} - -Parameters of operators belonging to a preset can be -exposed as preset paramters. Example: - -\begin{verbatim} ---cut preset definition-- -f_res_lowpass = -ef3:%1,1.5,0.7 ---cut-- -\end{verbatim} - -In the above example, the lowpass filter cutoff is exposed -as a parameter of the ``f\_res\_lowpass'' preset. The preset -can be used just like any other Ecasound operator. The -following two commands will results in identical output: - -\begin{verbatim} ---cut-- -ecasound -i:foo.mp3 -o:alsa -pn:f_res_lowpass,800 -ecasound -i:foo.mp3 -o:alsa -ef3:800,1.5,0.7 ---cut-- -\end{verbatim} - -\subsection{Parameter descriptors} - -Ecasound preset parameters can be described using the following -set of descriptors: - -\begin{verbatim} - -pd:name_of_preset = preset description - -ppn:par1,...,parN = parameter names (public params) - -ppd:val1,...,valN = default param values - -ppl:val1,...,valN = lower bounds for param values - -ppu:val1,...,valN = upper bounds for param values - -ppt:flags1,...,flagsN = special flags for param N - ('i'=integer, 'l'=logarithmic, 'o'=output, 't'=toggle) -\end{verbatim} - -The option can only be used inside preset definitions (in ``effect\_presets'' -files, or individual ``*.ecp'' files). An example preset parameter -definition: - -\begin{verbatim} ---cut-- -f_two_filters = -efl:800 -ea:%1 | -efh:800 -ea:%2 \ - -pd:Parallel_highpass_and_lowpass_filters \ - -ppl:0,0 -ppu:1000,- \ - -ppd:100,100 -ppn:lowgain,highgain ---cut-- -\end{verbatim} - -The above preset ``f\_two\_filters'' has two parameters, which -are described using the ``-pd'' descriptor. Recommended lower and -upper bounds for the parameters are defined with ``-ppl'' and -``-ppu'' descriptors. Default values for the parameters are -specified with ``-ppd''. - -% ---------------------------------------------------------------------- -\section{Gate operators} - -Gates are just like any other chain operators. They are assigned to -a chain, and process passing audio data buffers. One special feature -of gates is the ability to crop sections of audio files, for instance -to achieve automatic volume-based cutting of audio streams: - -\subsection{Example of use} - -The following sequence cuts the section {[}60:00 sec -> -61:00 sec{]} from ``guitar.wav'' into ``gate-test.wav'': - -\begin{verbatim} ---cut-- -|\$ ls -la guitar.wav --rw-rw-r-- 1 kaiv kaiv 15790124 Sep 30 23:27 guitar.wav - -|\$ ecasound -i guitar.wav -o gate-test.wav -gc:60,1 - -|\$ ls -la gate-test.wav --rw-rw-r-- 1 kaiv kaiv 180268 Dec 12 22:13 gate-test.wav ---cut-- -\end{verbatim} - -The threshold gate is used similarly: - -\begin{verbatim} ---cut-- -|\$ ecasound -i gate-test.wav -o gate-test-rms.wav -ge:11.2,5,1 - -|\$ ecasound -i gate-test.wav -o gate-test-peak.wav -ge:5,5,0 - -|\$ ls -la gate*wav --rw-rw-r-- 1 kaiv kaiv 163884 Dec 12 22:18 gate-test-peak.wav --rw-rw-r-- 1 kaiv kaiv 143404 Dec 12 22:17 gate-test-rms.wav --rw-rw-r-- 1 kaiv kaiv 180268 Dec 12 22:13 gate-test.wav ---cut-- - \end{verbatim} - -In the first case, the gate is opened when the RMS-volume goes over the ``11.2\%'' -threshold, and closed when RMS-volume falls below ``5\%''. In the second, -case, both entry and close thresholds are ``5\%'' (peak volume). - -% ---------------------------------------------------------------------- -\section{LADSPA plugins} - -Ecasound supports LADSPA-effect plugins (Linux Audio Developer's -Simple Plugin API). See \href{http://eca.cx/ecasound/Documentation/ecasound_manpage.html}{ecasound(1)} -man page and the LADSPA web site at ``www.ladspa.org'' for more information. - -\subsection{Ecasound is not able to find any LADSPA plugins I have installed!} - -Just installing the LADSPA SDK - ``www.ladspa.org'' -- should be enough. The plugins themselves are stored in shared library -files (.so). They are usually stored in ``/usr/local/lib/ladspa''. To test -whether Ecasound finds the plugins, issue: - -echo "ladspa-register" | ecasound -c - -You should get a list of all installed LADSPA plugins. If this doesn't -work, you need to make sure Ecasound is compiled with LADSPA enabled (ie. -ladspa.h header was present when Ecasound was compiled). The precompiled -rpm-binaries have this, but if you've compiled Ecasound yourself you -should recompile after installing the LADSPA SDK. - -Also, check Dave Phillips' great -article on Oreillynet - -\url{http://www.oreillynet.com/pub/a/linux/2001/02/02/ladspa.html}. - -% ---------------------------------------------------------------------- -\section{JACK Audio Server} -\label{JACK Audio Server} - -JACK is system for handling real-time, low latency audio. -It allows multiple independent applications to access the system -audio hardware and also to route audio between applications. - -JACK is different from other audio server efforts in that it has been -designed from the ground up to be suitable for professional audio -work. This means that it focuses on two key areas: synchronous -execution of all clients, and low latency operation. - -Note that Ecasound must be compiled with JACK support enabled -(the ``--with-jack'' configure option) to take advantage of -the functionality described in this section. - -\subsection{Basic Input and Output} - -Let's start with how to play a file using Ecasound and JACK: - -\begin{verbatim} -ecasound -i foo.wav -o jack,system -\end{verbatim} - -This will create a separate JACK output port for each channel -of ``foo.wav'', and automatically connect these Ecasound ports to -the JACK system PCM output ports. - -Note that ecasound does not allow to mix objects with different -sampling rates (without explicitly inserting ``samplerate'' -conversion objects). That means that if sampling rate of ``foo.wav'' -does not match the current JACK system rate, the above command -wil fail. - -The connections creadted are as follows: - -\begin{verbatim} -ecasound:out_1 --> system:playback_1 -ecasound:out_2 --> system:playback_2 -\end{verbatim} - -If ``foo.wav'' was a four channel file, the same command would -connect all channels: - -\begin{verbatim} -ecasound:out_1 --> system:playback_1 -ecasound:out_2 --> system:playback_2 -ecasound:out_3 --> system:playback_3 -ecasound:out_4 --> system:playback_4 -\end{verbatim} - -To record a file, you'd issue: - -\begin{verbatim} -ecasound -f:,2 -i jack,system -o foo.wav -ecasound -f:f32,2,44100 -i jack,system -o foo.wav -\end{verbatim} - -Here we use ``-f:bits,channels,srate'' to set how many channels -to record from the sound device using JACK. As described in -the \href{http://eca.cx/ecasound/Documentation/ecasound_manpage.html}{ecasound(1)} -man page, the parameters to ``-f'' may be overridden -by the audio objects. In case of JACK, the server always sets -the sampling rate, and also the sample format is fixed to 32bit -floats. Because of this, the above two examples achieve the same -result (but you may find the latter command more readable). - -It is possible to add another ``-f'' before ``-o foo.wav'' -if you want to write the file in a different format. For -example to convert the sample format to 16bit fixed: - -\begin{verbatim} -ecasound -f:f32,2 -i jack,system -f:s16,2 -o foo.wav -\end{verbatim} - -\subsection{More Advanced Port Creation} - -Ecasound also offers the following alternative ways -to create input and output ports: - -\begin{verbatim} -ecasound -i foo.wav -o jack -ecasound -i foo.wav -o jack,remote_client -ecasound -i foo.wav -o jack,remote_client,local_portprefix -ecasound -i foo.wav -o jack,,local_portprefix -ecasound -i foo.wav -o jack_multi,remote_client:port_1,system:port_2 -ecasound -i jack -o foo.wav -ecasound -i jack,remote_client -o foo.wav -ecasound -i jack,local_portprefix -o foo.wav -\end{verbatim} - -See \href{http://eca.cx/ecasound/Documentation/ecasound_manpage.html}{ecasound(1)} -manual page for descriptions of the ``jack\_multi'' audio object and the variants -of ``jack'' usage. - -\subsection{Transport Control} - -Transport controls are functions like ``start'', ``stop'', ``seek'', -etc, that are commonly available in audio applications that -maintain some kind of current position. JACK's transport -control interface allows controlling the transport state -of all the apps connected to one JACK server from a single -application. Ecasound can support this functionality in -four different modes (``notransport'', ``send'', ``recv'' -and ``sendrecv''). - -By default Ecasound will both send and reveive transport -events (position and state) to other JACK clients -(mode ``sendrecv''): - -\begin{verbatim} -ecasound -c -i null -o jack -\end{verbatim} - -To use transport control in Ecasound, you have to have at least -one published input or output JACK port. Here we publish -one null output port. After giving the initial ``engine-launch'' command -in Ecasound interactive mode, you are now able to use -further EIAM commands to control all other JACK apps connected -to the same server. Commands like -``stop'', ``setpos 20'', ``rw 10'', ``fw 10'', and so should -affect other apps. - -By default, Ecasound doesn't react to outside transport -control. To enable this: - -\begin{verbatim} -ecasound -c -i foo.wav -o jack,system -G:jack,eca_slave,recv -\end{verbatim} - -After giving an initial ``engine-launch'' to Ecasound, you should -now be able to use other JACK apps to control Ecasound's -playback of ``foo.wav''. - -To combine external control with the ability to control -the transport from ecasound's user-interface: - -\begin{verbatim} -ecasound -c -i foo.wav -o jack,system -G:jack,eca_slave,sendrecv -\end{verbatim} - -\subsection{JACK and Ecasound states} - -To have a good understanding of the overall system, it's important -to understand how Ecasound and JACK states relate to each other. - -When an Ecasound chainsetup is connected (EIAM-command ``cs-connect''), -a connection is established with the JACK server, and all the -JACK ports in that chainsetup are registered to it. -Once Ecasound's engine is launched with EIAM-command ``engine-launch'', -connections (if any are specified) are made to the ports of other -JACK clients. In this state Ecasound is ready to process -incoming transport state and position changes. - -When Ecasound processing is started (either with ``start'' or -by an incoming transport event), Ecasound's engine runs -as a node in the JACK system. When processing is stopped (either -with ``stop'', or by a transport event), Ecasound's engine is -not run. - -Any connections (initiated by Ecasound) to other clients, -are disconnected once ``engine-halt'' is issued and engine -operation is stopped. Connection to the remote JACK server -as well as unregistering any ports is performed when chainsetup -is disconnected (``cs-disconnect''). - -Note! Normally you don't need to go through all the steps one -by one. Instead issuing ``start'' will automatically connect -the chainsetup and launch the engine. Similarly ``cs-disconnect'' -will stop processing and halt the engine if needed. - -\subsection{Troubleshooting} - -Ecasound v2.2 and earlier don't have the capability to change -the engine buffersize and sampling rate dynamically during -processing. As a consequence, running Ecasound will fail if -the currrent values for these parameters do not match -the ones used by the JACK server. In other words, you have -to correctly set the buffersize (with ``-b:xxx'') and sampling -rate (with ``-f:bits,channels,srate'' and possibly using the -\emph{resample} audio object). This is the first thing to -check if communication with JACK does not work. - -Future versions of Ecasound will hopefully solve this -problem. This issue is covered by Ecasound development item -``edi-31 - Support for dynamic sampling rate and buffersize changes.''. - -\subsection{Deprecated JACK input/output syntax} -Ecasound 2.5 and older supported ``jack\_alsa'', ``jack\_auto'' -and ``jack\_generic'' object types, but these are now replaced -by a more generic ``jack'' interface. The old variants this -work, but are now considered deprecated (they work but may be -removed in a future Ecasound release). - -% ---------------------------------------------------------------------- -% ---------------------------------------------------------------------- -\chapter{Miscellaneous} - -% ---------------------------------------------------------------------- -\section{Security Considerations} - -When given the -r option (raise priority), Ecasound tries to raise -its scheduling priority (to so called SCHED\_FIFO realtime scheduling) -and to avoid swapping, locks all its memory. To do this, -root-privileges are required. So either Ecasound has to be run as -root (logged in as root, or using the 'sudo' program), it has to be -installed with the suid-root bit set, or otherwise be granted necessary -privileges to turn on real-time schedule (see below). Now is this a safe -thing to do? - -Although there are no known vulnerabilities, setting Ecasound suid-root is -not safe. Whether this is a real problem depends on the particular setup -(whether connected to a network or not, any untrusted users with shell -access, ...). - -The basic problem is that Ecasound (or at least 2.0 and earlier) -doesn't contain any code for altering privilege levels. If it is run -with root-privileges, it does everything as root - including forking -external programs such as mp3 and ogg utilities and editors. - -But all in all, this shouldn't be that big of an issue for many users. For -noncritical uses, just don't set the suid-bit, but run as a normal user. If -you have an untrusted setup, and you don't want to login as root, but still -need to run in raised-priority mode, the following can help to limit -the risk of suid-root use: - -\begin{verbatim} - cd /usr/local/bin - chown root.ecausers ecasound - chmod 4750 ecasound -\end{verbatim} - -In other words, the ecasound binary is set as suid-root (so it is run with -root-privileges), but only root and members of the 'ecausers' group can -start it. You of course first have to create the 'ecausers' group to your -system. - -The ideal solution would be that ecasound would not need full root-privileges, but -privileges for changing scheduling and locking memory. On recent Linux systems, -there are couple ways to achieve this. - -The Realtime Linux Security Module (LSM) is one practical solution -(see \url{http://sourceforge.net/projects/realtime-lsm/} and -\url{http://lwn.net/Articles/106009/}). This module is a loadable extension for -Linux 2.6 kernels. It selectively grants realtime permissions to specific user groups -or applications. Unfortunately Realtime LSM does not yet come with the standard Linux -kernel, so you need to install it separately. - -A more recent approach, and one that might be adopted by popular GNU/Linux distributions, -is the \emph{rtprio} extension to Linux resource limits. See -\href{http://lwn.net/Articles/134460/} for a good overview of this approach and how -it compared to the LSM mechanism described above. - -\end{document} diff --git a/library/ecasound/INSTALL b/library/ecasound/INSTALL deleted file mode 100644 index 8520c274c..000000000 --- a/library/ecasound/INSTALL +++ /dev/null @@ -1,279 +0,0 @@ -======================================================================= -*** Ecasound - INSTALL *** -======================================================================= - - The `configure' shell script attempts to guess correct values for -various system-dependent variables used during compilation. It uses -those values to create a `Makefile' in each directory of the package. -It also creates the file `config.h' in the top-level source directory. -This file contains system-dependent definitions. Finally, it creates -a shell script `config.status' that you can run in the future to -recreate the current configuration, a file `config.cache' that saves -the results of its tests to speed up reconfiguring, and a file -`config.log' containing compiler output (useful mainly for debugging -`configure'). - - If you need to do unusual things to compile the package, please try -to figure out how `configure' could check whether to do them, and mail -diffs or instructions to the address given in the `README' so they can -be considered for the next release. If at some point `config.cache' -contains results you don't want to keep, you may remove or edit it. - - The file `configure.in' is used to create `configure' by a program -called `autoconf'. You only need `configure.in' if you want to change -it or regenerate `configure' using a newer version of `autoconf'. - -The simplest way to compile this package is: - - 1. `cd' to the directory containing the package's source code and type - `./configure' to configure the package for your system. If you're - using `csh' on an old version of System V, you might need to type - `sh ./configure' instead to prevent `csh' from trying to execute - `configure' itself. - - Running `configure' takes awhile. While running, it prints some - messages telling which features it is checking for. - - 2. Type `make' to compile the package. - - 3. Type `make install' to install the programs and any data files and - documentation. - - 4. If you have not specified an alternative install prefix with --prefix - option, make sure that you have `/usr/local/lib´ in your - `/etc/ld.so.conf' and then run `/sbin/ldconfig´ (as root). - - 5. You can remove the program binaries and object files from the - source code directory by typing `make clean'. To also remove the - files that `configure' created (so you can compile the package for - a different kind of computer), type `make distclean'. There is - also a `make maintainer-clean' target, but that is intended mainly - for the package's developers. If you use it, you may have to get - all sorts of other programs in order to regenerate files that came - with the distribution. - -Ecasound specific options -========================= - -`--enable-all-static' - Build static binaries that are not linked against any - shared libraries. Disabled by default. Note! This is - an experimental option and may not work in all - circumstances. - -`--enable-debug' - Disables optimizations and other things preventing - efficient debugging. Created executables and libraries - have a "_debug" suffix. Disabled by default. - -`--enable-experimental' - Turns on some suspicious features. Not recommended. - Disabled by default. - -`--enable-python-force-site-packages' - Force install of python modules into site-packages - directory even when it doesn't exist. Disabled by - default. - -`--enable-sys-readline' - If installed, link to system's default libreadline. - Disabled by default. - -`--disable-alsa' - Don't compile support for ALSA-drivers (otherwise - links to libasound). By default ALSA support is - enabled if all the necessary header and library - files are found. - -`--disable-arts' - Don't compile aRts client support. See http://www.arts-project.org - for more info about aRts. By default aRts support is - enabled if all the necessary header and library - files are found. - -`--disable-audiofile' - Don't link to libaudiofile. By default libaudiofile support is - enabled if all the necessary header and library - files are found. - -`--disable-dbc' - Don't check design-by-contract assertions. Enabled by default. - -`--disable-effects' - Build ecasound without effect and controller components. - Enabled by default. - -`--disable-jack' - Don't compile JACK client support. See - http://jackit.sf.net for more info about JACK. - By default JACK support is enabled if all the - necessary header and library files are found. - -`--disable-libsamplerate' - Don't compile libsamplerate support. See - http://www.mega-nerd.com/SRC for more info about - libsamplerate. By default libsamplerate support is - enabled if all the necessary header and library files - are found. - -`--disable-ncurses' - Don't link against ncurses (known bug: even if this is - specified, you're still required to have a working - ncurses/termcap installation to compile). Enabled - by default. - -`--disable-oss' - Don't compile support for OSS-drivers. Enabled by - default. - -`--disable-osstrigger' - Disable the use of OSS trigger functions. Enabled - by default. - -`--disable-sndfile' - Don't link to libsndfile. By default libsndfile support is - enabled if all the necessary header and library - files are found. - -`--disable-largefile' - Explicitly disable large file (>2GB) support. - -`--with-jack=JACK_PREFIX' - Enable JACK support and compile against JACK installed - in 'JACK_PREFIX'. - -`--with-libsamplerate=LIBSAMPLERATE_PREFIX' - Enable libsamplerate support and compile against libsamplerate - installed in 'LIBSAMPLERATE_PREFIX'. - -`--enable-pyecasound={c,python,none}' - Enable pyecasound and select which implementation to use. - Default value based on target platform. - -`--with-python-includes=DIR' - Python include files are located in 'DIR'. - -`--with-python-modules=DIR' - Python modules should be installed to 'DIR'. - -`--enable-rubyecasound={yes,no}' - Enable rubyecasound. Defaults to yes if Ruby interpreter - is found on the system. - -`--with-extra-cppflags=ARG´ - Pass extra options to preprocessor (cpp). This option should - be used to add non-standard header paths to the search path. - -`--with-extra-libs=ARG´ - Pass extra options to linked (ld). This option should - be used to add non-standard library paths to the search - path, as well as additional libraries to link against. - -Supported automake/autoconf features -==================================== - -Ecasound uses the autotools (automake, automake and libtool) -build system framework. Standard practises (see below for -references) are followed where applicable. - -Some features offered by the autotools do not work without -explicit support from the package. Following is a short list of -features that Ecasound _does_ support. If you encounter any -problems in using these features with Ecasound, please report -them as bugs. - -1. Building Ecasound in a directory separate from the source - directory. - Example: "mkdir objdir ; cd objdir ; ../configure ; make" - -2. 'uninstall' make target - You should be able to uninstall Ecasound by running "make uninstall". - Note that if you override any make variable when running "make install", - you should specify the same variables also when running "make uninstall". - Reference: Automake manual (see below) - -3. 'DESTDIR' make variable for staging installs - Reference: http://sources.redhat.com/automake/automake.html#Install - -4. 'prefix', 'datadir', pkgdatadir' make variables - You should be able to override any of the make variables - on the make command-line. But remember to always override - the same variables when you switch between make targets (see - notes on (2)). - Example: make prefix=/tmp/ecasound-foobar install - -5. Overriding CPPFLAGS, CFLAGS, CXXFLAGS, etc variables. - It is possible to override these parameters both before - running the configure script (specify new values as - environment variables), or at make time (specify new - values on the make command-line). Note that these - mechanisms are exclusive to each other. - - To specify extra preprocessing and compile flags that are - applied when building libecasound components, but not when - building the test programs run by 'configure' script, one can - use the environment variables ECA_S_EXTRA_CPPFLAGS and - ECA_S_EXTRA_CFLAGS (define before running 'configure'). - -General references: - -o Automake manual - http://sources.redhat.com/automake/automake.html - -o Autoconf manual - http://www.gnu.org/software/autoconf/manual/ - -o GNU Coding Standards - http://www.gnu.org/prep/standards/ - - -Specifying the System Type -========================== - - There may be some features `configure' can not figure out -automatically, but needs to determine by the type of host the package -will run on. Usually `configure' can figure that out, but if it prints -a message saying it can not guess the host type, give it the -`--host=TYPE' option. TYPE can either be a short name for the system -type, such as `sun4', or a canonical name with three fields: - CPU-COMPANY-SYSTEM - -See the file `config.sub' for the possible values of each field. If -`config.sub' isn't included in this package, then this package doesn't -need to know the host type. - - If you are building compiler tools for cross-compiling, you can also -use the `--target=TYPE' option to select the type of system they will -produce code for and the `--build=TYPE' option to select the type of -system on which you are compiling the package. - -Operation Controls -================== - - `configure' recognizes the following options to control how it -operates. - -`--cache-file=FILE' - Use and save the results of the tests in FILE instead of - `./config.cache'. Set FILE to `/dev/null' to disable caching, for - debugging `configure'. - -`--help' - Print a summary of the options to `configure', and exit. - -`--quiet' -`--silent' -`-q' - Do not print messages saying which checks are being made. To - suppress all normal output, redirect it to `/dev/null' (any error - messages will still be shown). - -`--srcdir=DIR' - Look for the package's source code in directory DIR. Usually - `configure' can determine that directory automatically. - -`--version' - Print the version of Autoconf used to generate the `configure' - script, and exit. - -`configure' also accepts some other, not widely useful, options. diff --git a/library/ecasound/Makefile.am b/library/ecasound/Makefile.am deleted file mode 100644 index f413cc2d1..000000000 --- a/library/ecasound/Makefile.am +++ /dev/null @@ -1,43 +0,0 @@ -# ---------------------------------------------------------------------- -# File: ecasound/Makefile.am -# Description: Ecasound multitrack audio processing tool -# License: GPL (see ecasound/{AUTHORS,COPYING}) -# ---------------------------------------------------------------------- - -EXTRA_DIST = AUTHORS BUGS COPYING.GPL COPYING.LGPL NEWS TODO ecasoundrc.in ecasound.spec effect_presets generic_oscillators - -SUBDIRS = kvutils libecasound ecasound libecasoundc pyecasound rubyecasound ecatools Documentation examples - -AUTOMAKE_OPTIONS = foreign - -PACKAGE = @PACKAGE@ -VERSION = @VERSION@ -RELEASE = 1 - -docs: - cd Documentation ; $(MAKE) $(AM_MAKEFLAGS) docs - -install-data-local: ecasoundrc - $(INSTALL) -d $(DESTDIR)$(pkgdatadir) - $(INSTALL_DATA) $(top_builddir)/ecasoundrc $(DESTDIR)$(pkgdatadir)/ecasoundrc - $(INSTALL_DATA) $(top_srcdir)/effect_presets $(DESTDIR)$(pkgdatadir)/effect_presets - $(INSTALL_DATA) $(top_srcdir)/ecatools/ecasound.el $(DESTDIR)$(pkgdatadir)/ecasound.el - $(INSTALL_DATA) $(top_srcdir)/generic_oscillators $(DESTDIR)$(pkgdatadir)/generic_oscillators - -uninstall-local: - rm -f $(DESTDIR)$(pkgdatadir)/effect_presets \ - $(DESTDIR)$(pkgdatadir)/ecasound.el \ - $(DESTDIR)$(pkgdatadir)/generic_oscillators \ - $(DESTDIR)$(pkgdatadir)/ecasoundrc - rmdir $(DESTDIR)$(pkgdatadir) || echo "Skipping non-empty directory" - -ecasoundrc: ecasoundrc.in Makefile.am - sed -e "s%[@]VERSION[@]%$(VERSION)%" \ - -e "s%[@]prefix[@]%$(prefix)%" \ - -e "s%[@]pkgdatadir[@]%$(pkgdatadir)%" \ - < $(top_srcdir)/ecasoundrc.in > ecasoundrc - -clean-local: - rm -fv ecasoundrc - -dist-hook: docs diff --git a/library/ecasound/Makefile.in b/library/ecasound/Makefile.in deleted file mode 100644 index d90a07964..000000000 --- a/library/ecasound/Makefile.in +++ /dev/null @@ -1,726 +0,0 @@ -# Makefile.in generated by automake 1.9.6 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - -# ---------------------------------------------------------------------- -# File: ecasound/Makefile.am -# Description: Ecasound multitrack audio processing tool -# License: GPL (see ecasound/{AUTHORS,COPYING}) -# ---------------------------------------------------------------------- -srcdir = @srcdir@ -top_srcdir = @top_srcdir@ -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -top_builddir = . -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -INSTALL = @INSTALL@ -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ - $(srcdir)/Makefile.in $(srcdir)/config.h.in \ - $(srcdir)/ecasound.spec.in $(top_srcdir)/configure AUTHORS \ - COPYING INSTALL NEWS TODO compile config.guess config.sub \ - depcomp install-sh ltmain.sh missing -subdir = . -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/configure.in -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ - configure.lineno configure.status.lineno -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = config.h -CONFIG_CLEAN_FILES = ecasound.spec -SOURCES = -DIST_SOURCES = -RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ - html-recursive info-recursive install-data-recursive \ - install-exec-recursive install-info-recursive \ - install-recursive installcheck-recursive installdirs-recursive \ - pdf-recursive ps-recursive uninstall-info-recursive \ - uninstall-recursive -ETAGS = etags -CTAGS = ctags -DIST_SUBDIRS = $(SUBDIRS) -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -distdir = $(PACKAGE)-$(VERSION) -top_distdir = $(distdir) -am__remove_distdir = \ - { test ! -d $(distdir) \ - || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ - && rm -fr $(distdir); }; } -DIST_ARCHIVES = $(distdir).tar.gz -GZIP_ENV = --best -distuninstallcheck_listfiles = find . -type f -print -distcleancheck_listfiles = find . -type f -print -ACLOCAL = @ACLOCAL@ -AMDEP_FALSE = @AMDEP_FALSE@ -AMDEP_TRUE = @AMDEP_TRUE@ -AMTAR = @AMTAR@ -AM_CFLAGS = @AM_CFLAGS@ -AM_CPPFLAGS = @AM_CPPFLAGS@ -AM_CXXFLAGS = @AM_CXXFLAGS@ -AM_LDFLAGS = @AM_LDFLAGS@ -AR = @AR@ -ARTSC_CONFIG = @ARTSC_CONFIG@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DSYMUTIL = @DSYMUTIL@ -ECA_AM_ALL_STATIC_FALSE = @ECA_AM_ALL_STATIC_FALSE@ -ECA_AM_ALL_STATIC_TRUE = @ECA_AM_ALL_STATIC_TRUE@ -ECA_AM_COMPILE_ALSA_FALSE = @ECA_AM_COMPILE_ALSA_FALSE@ -ECA_AM_COMPILE_ALSA_TRUE = @ECA_AM_COMPILE_ALSA_TRUE@ -ECA_AM_COMPILE_ARTS_FALSE = @ECA_AM_COMPILE_ARTS_FALSE@ -ECA_AM_COMPILE_ARTS_TRUE = @ECA_AM_COMPILE_ARTS_TRUE@ -ECA_AM_COMPILE_AUDIOFILE_FALSE = @ECA_AM_COMPILE_AUDIOFILE_FALSE@ -ECA_AM_COMPILE_AUDIOFILE_TRUE = @ECA_AM_COMPILE_AUDIOFILE_TRUE@ -ECA_AM_COMPILE_JACK_FALSE = @ECA_AM_COMPILE_JACK_FALSE@ -ECA_AM_COMPILE_JACK_TRUE = @ECA_AM_COMPILE_JACK_TRUE@ -ECA_AM_COMPILE_OSS_FALSE = @ECA_AM_COMPILE_OSS_FALSE@ -ECA_AM_COMPILE_OSS_TRUE = @ECA_AM_COMPILE_OSS_TRUE@ -ECA_AM_COMPILE_SAMPLERATE_FALSE = @ECA_AM_COMPILE_SAMPLERATE_FALSE@ -ECA_AM_COMPILE_SAMPLERATE_TRUE = @ECA_AM_COMPILE_SAMPLERATE_TRUE@ -ECA_AM_COMPILE_SNDFILE_FALSE = @ECA_AM_COMPILE_SNDFILE_FALSE@ -ECA_AM_COMPILE_SNDFILE_TRUE = @ECA_AM_COMPILE_SNDFILE_TRUE@ -ECA_AM_DEBUG_MODE_FALSE = @ECA_AM_DEBUG_MODE_FALSE@ -ECA_AM_DEBUG_MODE_TRUE = @ECA_AM_DEBUG_MODE_TRUE@ -ECA_AM_DISABLE_EFFECTS_FALSE = @ECA_AM_DISABLE_EFFECTS_FALSE@ -ECA_AM_DISABLE_EFFECTS_TRUE = @ECA_AM_DISABLE_EFFECTS_TRUE@ -ECA_AM_FEELING_EXPERIMENTAL_FALSE = @ECA_AM_FEELING_EXPERIMENTAL_FALSE@ -ECA_AM_FEELING_EXPERIMENTAL_TRUE = @ECA_AM_FEELING_EXPERIMENTAL_TRUE@ -ECA_AM_KVUTILS_INSTALLED_FALSE = @ECA_AM_KVUTILS_INSTALLED_FALSE@ -ECA_AM_KVUTILS_INSTALLED_TRUE = @ECA_AM_KVUTILS_INSTALLED_TRUE@ -ECA_AM_PYECASOUND_CEXT_FALSE = @ECA_AM_PYECASOUND_CEXT_FALSE@ -ECA_AM_PYECASOUND_CEXT_TRUE = @ECA_AM_PYECASOUND_CEXT_TRUE@ -ECA_AM_PYECASOUND_INSTALL_FALSE = @ECA_AM_PYECASOUND_INSTALL_FALSE@ -ECA_AM_PYECASOUND_INSTALL_TRUE = @ECA_AM_PYECASOUND_INSTALL_TRUE@ -ECA_AM_RUBYECASOUND_INSTALL_FALSE = @ECA_AM_RUBYECASOUND_INSTALL_FALSE@ -ECA_AM_RUBYECASOUND_INSTALL_TRUE = @ECA_AM_RUBYECASOUND_INSTALL_TRUE@ -ECA_AM_SYSTEM_READLINE_FALSE = @ECA_AM_SYSTEM_READLINE_FALSE@ -ECA_AM_SYSTEM_READLINE_TRUE = @ECA_AM_SYSTEM_READLINE_TRUE@ -ECA_AM_USE_NCURSES_FALSE = @ECA_AM_USE_NCURSES_FALSE@ -ECA_AM_USE_NCURSES_TRUE = @ECA_AM_USE_NCURSES_TRUE@ -ECA_AM_USE_TERMCAP_FALSE = @ECA_AM_USE_TERMCAP_FALSE@ -ECA_AM_USE_TERMCAP_TRUE = @ECA_AM_USE_TERMCAP_TRUE@ -ECA_S_EXTRA_CPPFLAGS = @ECA_S_EXTRA_CPPFLAGS@ -ECA_S_EXTRA_LIBS = @ECA_S_EXTRA_LIBS@ -ECA_S_JACK_INCLUDES = @ECA_S_JACK_INCLUDES@ -ECA_S_JACK_LIBS = @ECA_S_JACK_LIBS@ -ECA_S_PREFIX = @ECA_S_PREFIX@ -ECA_S_PYTHON_DLMODULES = @ECA_S_PYTHON_DLMODULES@ -ECA_S_PYTHON_INCLUDES = @ECA_S_PYTHON_INCLUDES@ -ECA_S_PYTHON_MODULES = @ECA_S_PYTHON_MODULES@ -ECA_S_READLINE_INCLUDES = @ECA_S_READLINE_INCLUDES@ -ECA_S_READLINE_LIBS = @ECA_S_READLINE_LIBS@ -ECA_S_RUBY_SITEDIR = @ECA_S_RUBY_SITEDIR@ -ECHO = @ECHO@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -F77 = @F77@ -FFLAGS = @FFLAGS@ -GREP = @GREP@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LDFLAGS = @LDFLAGS@ -LIBECASOUNDC_VERSION = @LIBECASOUNDC_VERSION@ -LIBECASOUNDC_VERSION_AGE = @LIBECASOUNDC_VERSION_AGE@ -LIBECASOUND_VERSION = @LIBECASOUND_VERSION@ -LIBECASOUND_VERSION_AGE = @LIBECASOUND_VERSION_AGE@ -LIBKVUTILS_VERSION = @LIBKVUTILS_VERSION@ -LIBKVUTILS_VERSION_AGE = @LIBKVUTILS_VERSION_AGE@ -LIBLO_CFLAGS = @LIBLO_CFLAGS@ -LIBLO_LIBS = @LIBLO_LIBS@ -LIBOBJS = @LIBOBJS@ -LIBOIL_CFLAGS = @LIBOIL_CFLAGS@ -LIBOIL_LIBS = @LIBOIL_LIBS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LN_S = @LN_S@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -NMEDIT = @NMEDIT@ -OBJEXT = @OBJEXT@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PKG_CONFIG = @PKG_CONFIG@ -PYTHONPATH = @PYTHONPATH@ -RANLIB = @RANLIB@ -RUBYPATH = @RUBYPATH@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -VERSION = @VERSION@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_CXX = @ac_ct_CXX@ -ac_ct_F77 = @ac_ct_F77@ -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -EXTRA_DIST = AUTHORS BUGS COPYING.GPL COPYING.LGPL NEWS TODO ecasoundrc.in ecasound.spec effect_presets generic_oscillators -SUBDIRS = kvutils libecasound ecasound libecasoundc pyecasound rubyecasound ecatools Documentation examples -AUTOMAKE_OPTIONS = foreign -RELEASE = 1 -all: config.h - $(MAKE) $(AM_MAKEFLAGS) all-recursive - -.SUFFIXES: -am--refresh: - @: -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \ - cd $(srcdir) && $(AUTOMAKE) --foreign \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --foreign Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - echo ' $(SHELL) ./config.status'; \ - $(SHELL) ./config.status;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - $(SHELL) ./config.status --recheck - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(srcdir) && $(AUTOCONF) -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) - -config.h: stamp-h1 - @if test ! -f $@; then \ - rm -f stamp-h1; \ - $(MAKE) stamp-h1; \ - else :; fi - -stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status - @rm -f stamp-h1 - cd $(top_builddir) && $(SHELL) ./config.status config.h -$(srcdir)/config.h.in: $(am__configure_deps) - cd $(top_srcdir) && $(AUTOHEADER) - rm -f stamp-h1 - touch $@ - -distclean-hdr: - -rm -f config.h stamp-h1 -ecasound.spec: $(top_builddir)/config.status $(srcdir)/ecasound.spec.in - cd $(top_builddir) && $(SHELL) ./config.status $@ - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -distclean-libtool: - -rm -f libtool -uninstall-info-am: - -# This directory's subdirectories are mostly independent; you can cd -# into them and run `make' without going through this Makefile. -# To change the values of `make' variables: instead of editing Makefiles, -# (1) if the variable is set in `config.status', edit `config.status' -# (which will cause the Makefiles to be regenerated when you run `make'); -# (2) otherwise, pass the desired values on the `make' command line. -$(RECURSIVE_TARGETS): - @failcom='exit 1'; \ - for f in x $$MAKEFLAGS; do \ - case $$f in \ - *=* | --[!k]*);; \ - *k*) failcom='fail=yes';; \ - esac; \ - done; \ - dot_seen=no; \ - target=`echo $@ | sed s/-recursive//`; \ - list='$(SUBDIRS)'; for subdir in $$list; do \ - echo "Making $$target in $$subdir"; \ - if test "$$subdir" = "."; then \ - dot_seen=yes; \ - local_target="$$target-am"; \ - else \ - local_target="$$target"; \ - fi; \ - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ - || eval $$failcom; \ - done; \ - if test "$$dot_seen" = "no"; then \ - $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ - fi; test -z "$$fail" - -mostlyclean-recursive clean-recursive distclean-recursive \ -maintainer-clean-recursive: - @failcom='exit 1'; \ - for f in x $$MAKEFLAGS; do \ - case $$f in \ - *=* | --[!k]*);; \ - *k*) failcom='fail=yes';; \ - esac; \ - done; \ - dot_seen=no; \ - case "$@" in \ - distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ - *) list='$(SUBDIRS)' ;; \ - esac; \ - rev=''; for subdir in $$list; do \ - if test "$$subdir" = "."; then :; else \ - rev="$$subdir $$rev"; \ - fi; \ - done; \ - rev="$$rev ."; \ - target=`echo $@ | sed s/-recursive//`; \ - for subdir in $$rev; do \ - echo "Making $$target in $$subdir"; \ - if test "$$subdir" = "."; then \ - local_target="$$target-am"; \ - else \ - local_target="$$target"; \ - fi; \ - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ - || eval $$failcom; \ - done && test -z "$$fail" -tags-recursive: - list='$(SUBDIRS)'; for subdir in $$list; do \ - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ - done -ctags-recursive: - list='$(SUBDIRS)'; for subdir in $$list; do \ - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ - done - -ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - mkid -fID $$unique -tags: TAGS - -TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ - include_option=--etags-include; \ - empty_fix=.; \ - else \ - include_option=--include; \ - empty_fix=; \ - fi; \ - list='$(SUBDIRS)'; for subdir in $$list; do \ - if test "$$subdir" = .; then :; else \ - test ! -f $$subdir/TAGS || \ - tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ - fi; \ - done; \ - list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ - test -n "$$unique" || unique=$$empty_fix; \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$tags $$unique; \ - fi -ctags: CTAGS -CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(CTAGS_ARGS)$$tags$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$tags $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && cd $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) $$here - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -distdir: $(DISTFILES) - $(am__remove_distdir) - mkdir $(distdir) - $(mkdir_p) $(distdir)/. $(distdir)/libecasound $(distdir)/libecasoundc - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ - list='$(DISTFILES)'; for file in $$list; do \ - case $$file in \ - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ - esac; \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test "$$dir" != "$$file" && test "$$dir" != "."; then \ - dir="/$$dir"; \ - $(mkdir_p) "$(distdir)$$dir"; \ - else \ - dir=''; \ - fi; \ - if test -d $$d/$$file; then \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ - fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ - else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ - || exit 1; \ - fi; \ - done - list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ - if test "$$subdir" = .; then :; else \ - test -d "$(distdir)/$$subdir" \ - || $(mkdir_p) "$(distdir)/$$subdir" \ - || exit 1; \ - distdir=`$(am__cd) $(distdir) && pwd`; \ - top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ - (cd $$subdir && \ - $(MAKE) $(AM_MAKEFLAGS) \ - top_distdir="$$top_distdir" \ - distdir="$$distdir/$$subdir" \ - distdir) \ - || exit 1; \ - fi; \ - done - $(MAKE) $(AM_MAKEFLAGS) \ - top_distdir="$(top_distdir)" distdir="$(distdir)" \ - dist-hook - -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ - ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ - ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ - ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \ - || chmod -R a+r $(distdir) -dist-gzip: distdir - tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz - $(am__remove_distdir) - -dist-bzip2: distdir - tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 - $(am__remove_distdir) - -dist-tarZ: distdir - tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z - $(am__remove_distdir) - -dist-shar: distdir - shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz - $(am__remove_distdir) - -dist-zip: distdir - -rm -f $(distdir).zip - zip -rq $(distdir).zip $(distdir) - $(am__remove_distdir) - -dist dist-all: distdir - tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz - $(am__remove_distdir) - -# This target untars the dist file and tries a VPATH configuration. Then -# it guarantees that the distribution is self-contained by making another -# tarfile. -distcheck: dist - case '$(DIST_ARCHIVES)' in \ - *.tar.gz*) \ - GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ - *.tar.bz2*) \ - bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ - *.tar.Z*) \ - uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ - *.shar.gz*) \ - GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ - *.zip*) \ - unzip $(distdir).zip ;;\ - esac - chmod -R a-w $(distdir); chmod a+w $(distdir) - mkdir $(distdir)/_build - mkdir $(distdir)/_inst - chmod a-w $(distdir) - dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ - && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ - && cd $(distdir)/_build \ - && ../configure --srcdir=.. --prefix="$$dc_install_base" \ - $(DISTCHECK_CONFIGURE_FLAGS) \ - && $(MAKE) $(AM_MAKEFLAGS) \ - && $(MAKE) $(AM_MAKEFLAGS) dvi \ - && $(MAKE) $(AM_MAKEFLAGS) check \ - && $(MAKE) $(AM_MAKEFLAGS) install \ - && $(MAKE) $(AM_MAKEFLAGS) installcheck \ - && $(MAKE) $(AM_MAKEFLAGS) uninstall \ - && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ - distuninstallcheck \ - && chmod -R a-w "$$dc_install_base" \ - && ({ \ - (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ - && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ - && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ - && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ - distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ - } || { rm -rf "$$dc_destdir"; exit 1; }) \ - && rm -rf "$$dc_destdir" \ - && $(MAKE) $(AM_MAKEFLAGS) dist \ - && rm -rf $(DIST_ARCHIVES) \ - && $(MAKE) $(AM_MAKEFLAGS) distcleancheck - $(am__remove_distdir) - @(echo "$(distdir) archives ready for distribution: "; \ - list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ - sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}' -distuninstallcheck: - @cd $(distuninstallcheck_dir) \ - && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ - || { echo "ERROR: files left after uninstall:" ; \ - if test -n "$(DESTDIR)"; then \ - echo " (check DESTDIR support)"; \ - fi ; \ - $(distuninstallcheck_listfiles) ; \ - exit 1; } >&2 -distcleancheck: distclean - @if test '$(srcdir)' = . ; then \ - echo "ERROR: distcleancheck can only run from a VPATH build" ; \ - exit 1 ; \ - fi - @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ - || { echo "ERROR: files left in build directory after distclean:" ; \ - $(distcleancheck_listfiles) ; \ - exit 1; } >&2 -check-am: all-am -check: check-recursive -all-am: Makefile config.h -installdirs: installdirs-recursive -installdirs-am: -install: install-recursive -install-exec: install-exec-recursive -install-data: install-data-recursive -uninstall: uninstall-recursive - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-recursive -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-recursive - -clean-am: clean-generic clean-libtool clean-local mostlyclean-am - -distclean: distclean-recursive - -rm -f $(am__CONFIG_DISTCLEAN_FILES) - -rm -f Makefile -distclean-am: clean-am distclean-generic distclean-hdr \ - distclean-libtool distclean-tags - -dvi: dvi-recursive - -dvi-am: - -html: html-recursive - -info: info-recursive - -info-am: - -install-data-am: install-data-local - -install-exec-am: - -install-info: install-info-recursive - -install-man: - -installcheck-am: - -maintainer-clean: maintainer-clean-recursive - -rm -f $(am__CONFIG_DISTCLEAN_FILES) - -rm -rf $(top_srcdir)/autom4te.cache - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-recursive - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-recursive - -pdf-am: - -ps: ps-recursive - -ps-am: - -uninstall-am: uninstall-info-am uninstall-local - -uninstall-info: uninstall-info-recursive - -.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \ - check-am clean clean-generic clean-libtool clean-local \ - clean-recursive ctags ctags-recursive dist dist-all dist-bzip2 \ - dist-gzip dist-hook dist-shar dist-tarZ dist-zip distcheck \ - distclean distclean-generic distclean-hdr distclean-libtool \ - distclean-recursive distclean-tags distcleancheck distdir \ - distuninstallcheck dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am \ - install-data-local install-exec install-exec-am install-info \ - install-info-am install-man install-strip installcheck \ - installcheck-am installdirs installdirs-am maintainer-clean \ - maintainer-clean-generic maintainer-clean-recursive \ - mostlyclean mostlyclean-generic mostlyclean-libtool \ - mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \ - uninstall uninstall-am uninstall-info-am uninstall-local - - -docs: - cd Documentation ; $(MAKE) $(AM_MAKEFLAGS) docs - -install-data-local: ecasoundrc - $(INSTALL) -d $(DESTDIR)$(pkgdatadir) - $(INSTALL_DATA) $(top_builddir)/ecasoundrc $(DESTDIR)$(pkgdatadir)/ecasoundrc - $(INSTALL_DATA) $(top_srcdir)/effect_presets $(DESTDIR)$(pkgdatadir)/effect_presets - $(INSTALL_DATA) $(top_srcdir)/ecatools/ecasound.el $(DESTDIR)$(pkgdatadir)/ecasound.el - $(INSTALL_DATA) $(top_srcdir)/generic_oscillators $(DESTDIR)$(pkgdatadir)/generic_oscillators - -uninstall-local: - rm -f $(DESTDIR)$(pkgdatadir)/effect_presets \ - $(DESTDIR)$(pkgdatadir)/ecasound.el \ - $(DESTDIR)$(pkgdatadir)/generic_oscillators \ - $(DESTDIR)$(pkgdatadir)/ecasoundrc - rmdir $(DESTDIR)$(pkgdatadir) || echo "Skipping non-empty directory" - -ecasoundrc: ecasoundrc.in Makefile.am - sed -e "s%[@]VERSION[@]%$(VERSION)%" \ - -e "s%[@]prefix[@]%$(prefix)%" \ - -e "s%[@]pkgdatadir[@]%$(pkgdatadir)%" \ - < $(top_srcdir)/ecasoundrc.in > ecasoundrc - -clean-local: - rm -fv ecasoundrc - -dist-hook: docs -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/library/ecasound/NEWS b/library/ecasound/NEWS deleted file mode 100644 index d011ff822..000000000 --- a/library/ecasound/NEWS +++ /dev/null @@ -1,2861 +0,0 @@ ------------------------------------------------------------------------ -** Ecasound - User-visible changes (NEWS) ** ------------------------------------------------------------------------ - -About the version numbers... "vX.Y[.Z[.R]][+extraT]" : ------------------------------------------------------- - - X = major version - incremented after major redesigns - Y = minor version - incremented when new features are added - Z = micro version - incremented if major.minor version is not - modified (optional) - R = revision - urgent fixes to planned releases (optional) - - extraT - 'beta', 'pre' and 'rc' releases (optional) - -Quick overview of various sources of change info ------------------------------------------------- - - - NEWS. This file. Lists all user-visible changes, with a brief - description. - - Release notes. Describes the most important changes in a bit - more detail. - - http://eca.cx/relnotes/ - - Version control history. Describes all changes in implementation. - - http://ecasound.git.sourceforge.net/git/gitweb.cgi?p=ecasound - - Library interface changes are documented in ChangeLog files (these - are distributed along with the source code). - -Howto for reading the entries: ------------------------------- - - added/removed = a new/removed feature, interfaces, or new - implementation of some feature - changed = changed behaviour, modified implementation, APIs, etc - fixed = fixed bugs, "features" and other sources of problems - - [foobar] = tag identifying the author of the change; see - README for a complete list contributor tags; entries - with no tags are from the main author(s) - -*********************************************************************** - -19082010 (v2.7.2) -** stable release **- - - added: manual gate (-gm); see ecasound(1) man page - - changed: liboil now enabled by default if the library - development files are available when running - configure - - fixed: bug with 'resample' objects and early seeks (e.g. - with '-y' offsets); reported by Artur - - fixed: bugs in kvutils that broke some old/non-glibc - builds (e.g. cygwin); bug reported by Al Oomens - - fixed: bugs in saving chainsetups with stacked audio - objects ("audioloop", "select", "playat") -20022010 (v2.7.1) -** stable release **- - - note: key changes are described in more detail at: - http://eca.cx/relnotes/ecasound_v2_7_1_relnotes.txt - - fixed: glitches in ALSA capture/playback with some sound - hardware/configurations, and using alsa-lib - older than 1.0.15; related to deprecated ALSA API - function snd_pcm_sw_params_set_xfer_align() - - fixed: bug in removing audio objects when disk double - buffering is used (-z:db); could cause a segfault - in some scenarios (e.g. with ecasignalview) - - fixed: interactive mode; c-selected segfauls if issued - with no chainsetup selected - - fixed: build errors when no liblo is available - - fixed: interactive-mode; cs-setpos, cs-rewind and cs-forward - did not work if chainsetup was connected, and no - chains (or an invalid chain) was selected; bug - reported by Joel Roth - - fixed: ecalength choked filenames with whitespace; patch - from FUJI project - (http://students.mimuw.edu.pl/~tk197881/a8cas/) -17102009 (v2.7.0) -** stable release **- - - note: key changes are described in more detail at: - http://eca.cx/relnotes/ecasound_v2_7_0_relnotes.txt - - added: new exit code of '4' to ecasound; see entry below - about signal handling changes and ecasound(1) for - more details - - added: -eadb chainop, like -ea/-eac, but gain given in dB; - documented in ecasound(1) - - added: -chorder chainop; see ecasound(1) - - added: optional inner loop optimizations using liboil; - enable with '--enable-liboil' - - added: OSC support added, see ecasound(1) and - Documentation/ecasound_osc_interface.txt; sffeat:2541462 - - added: in ncurses mode, honor COLUMNS environment variable - - added: configure - added '--with-extra-cppflags' and - '--with-extra-libs' options - - added: new 'cop-get' command; see ecasound-iam(1) [alinson] - - changed: ecasound now defines "-D_XOPEN_SOURCE=500" for - all builds, expressing that the codebase expects - the build environment be compatible with the Single - UNIX Spec v2 (1998); thanks to Jussi Laako for - reminding about this - - changed: yet another change to signal handling in ecasound; - now two level response to signals is supported in - all stages of process termination -> first starting - normal cleanup and exit procudere, and with - second signal terminate immediately; see ecasound(1) - for the full story (new 'SIGNALS' section) - - changed: dropped "-funroll-loops" from the set of default - compiler options - - changed: comment out many entries in the global installed - 'ecasoundrc' file (entries are redundant as the same - defaults are already set in the program binaries) - - changed: optimized inner loops in core chain routing and - mixdown functions (with liboil if available) - - changed: optimized inner loops of -ea, -eadb, -eac, and -epp - - changed: dropped tracking of 'clipped samples' from -ev as - the results were of little use (and misleading) - - changed: '-ev' status output - - changed: cosmetic changes to the default ncurses trace output; - reduced number of subsystem-level trace messages - - changed: the name for default chainsetup created from command - line is now "untitled-chainsetup" - - changed: do not automatically connect chainsetups loaded - with '-s' - - fixed: mp3 output was broken with lame 3.98 (and newer); - the default lame parameters have now been updated - and have been tested with lame 3.96, 3.97 and with - the latest 3.98.2 - - fixed: bad audio with 'resample' object, non-integer sampling - rate change ratios and output to JACK; ecasound did - emit warning about this, but did not raise a fatal - error; now the underlying problem is fixed and now - 'resample' and 'jack' objects maybe safely used - together - - fixed: minor bug in ecamonitor; "cop-status" was used with - multiple chains selected - - fixed: don't use '--ignore-fail-on-non-empty' rmdir option - as it is not available on many platforms (e.g. OS X) - and this breaks the uninstall target; sfbug:2772628 - - fixed: bug in ecasound frontend parser for '-E' option that - broken passing arguments containing the substring - "-E"; introduced in 2.5.2 release - - fixed: stale audio was written to JACK output ports in case - of multiple streams, connected to different JACK ports, - reaching end-of-stream at different times [jedahu] -08022009 (v2.6.0) -** stable release **- - - note: key changes are described in more detail at: - http://eca.cx/relnotes/ecasound_v2_6_0_relnotes.txt - - added: new optional params to 'jack' -> 'jack,clientname,portprefix'; - replaces old interfaces 'jack_auto', 'jack_generic' - and 'jack_alsa'; see ecasound(1) for more details - - added: interactive mode - new commands 'jack-connect', - 'jack-disconnect' and 'jack-list-connections'; see - ecasound-iam(1) for details; closes sffeat:2134183 - - added: 'jack_multi', see ecasound(1); closes sffeat:1415822 - - added: ecasound options '--server', '--server-tcp-port' and - '--no-server'; these replace the misleading old - options '--daemon', '--nodaemon' and '--daemon-port', - which are now deprecated - - added: extended unit tests to cover option parsing, with - some initial test cases - - added: unit test framework - minor improvements including - abilitity to select which cases to run - - added: ECI - functions eci_ready() and eci_ready_r() added - to ecasoundc.h, and ECA_CONTROL_INTERACE::ready() - to the C++ API - - changed: deprecated 'jack_auto', 'jack_generic' and - 'jack_alsa' - - changed: numbering of JACK ports created with 'jack' and - 'jack_generic' starts from "_1" separately for - each prefix [dsacre] - - changed: deprecated 'ai-wave-edit', 'ao-wave-edit' commands - and the 'ext-cmd-wave-editor' ecasoundrc field - - changed: emit a 'subsystem' level trace message when - engine state changes to finished - - changed: interactive mode - minor update to 'status' command - output - - changed: compile libecasoundc as PIC code to make it possible - to use it from shared libraries; fixes problems - with e.g. Audio::Ecasound on amd64 architecture ; - closes sfbug:2505551 - - changed: ecasound option -f now accepts empty arguments for - sample format, channel count and sampling rate; empty - argument states that ecasound can pick a suitable - value, either the default value or e.g. the JACK - system sampling rate; updated documentation, see - ecasound(1) - - changed: minor update to ecasound's "--help" - - changed: when reading RIFF WAVE files, properly ignore - any unknown subchunk types - - changed: largefile support (+2GiB files) is now enabled - by default and configure uses's default autoconf - macro AC_SYS_LARGEFILE to perform the checks; - to explicitly disable, use '--disable-largefile'; - the old '--with-largefile' no longer has any effect - - changed: refactored ECI C impl code to get rid of all - fixed size buffers from the parser; this makes - the implementation more robust, reduces memory - usage and provides a small speed-up to most ECI - apps; closes sfbug:1412409 - - fixed: do not limit max-gain reported by '-ev' to [1,max] - value range - - fixed: avoid denormal numbers in '-ete' (leads to unusually - high CPU load) - - fixed: 'dump-cop-value' did not work as documented - - fixed: ECI - signal an error (e.g. eci_error() returns true) - if connection is lost to engine process (sync lost - or an other error) - - fixed: ecasignalview - exit if engine reports an error - during operation - - fixed: interactive mode - loop devices saved with incorrect - syntax, affects cs-save, cs-save-as and cs-edit ; see - http://eca.cx/ecasound-list/2009/01/0058.html - - fixed: problems when seeking back to start with setups using - loop devices; closes sfbug:2527049 - - fixed: segfault if using a tone generator input with a fixed - lenght, and a seek past the end of stream was performed - - fixed: aac/ogg/mikmod/mid inputs - once object reached state - 'finished' (all samples played), it cannot be played - again by reconnecting the chainsetup - - fixed: combination of '--server' and '-C' (disable interactive - mode) had a bug that prevented processing of commands - received over the server socket while the engine - was running the batchmode - - fixed: a nasty bug in 'playat' implementation causing audible - artifacts ; see - http://eca.cx/ecasound-list/2009/01/0089.html - - fixed: sndfile and audiofile backends - emit a warning if - a seek fails (e.g. when seeking beyond current - end-of-file for output objects) - - fixed: various improvements and fixes related to using - non-seekable audio objects (especially interactive - use); in most cases this means graceful recovery - from failed seek attempts, and correct reporting of - the objects actual current position - - fixed: error is emitted if trying to use 'select' with - objects that do not support seeking - - fixed: bugs with passing 'auto' as the 2nd parameter of - 'resample' - - fixed: bug with seeking resampled audio objects - - fixed: bug in combined use of 'audioloop' and 'resample' - - fixed: catch and warn about various errors cases when - given incorrect or missing params to audio - types: typeselect, resample, reverse, playat, - audioloop, select -24082008 (v2.5.2) -** stable release **- - - more verbose description of change available at: - http://eca.cx/relnotes/ecasound_v2_5_2_relnotes.txt - - fixed: bug in channel routing of LADSPA plugins that have - more audio output ports than input ports -21082008 (v2.5.1) -** stable release **- - - more verbose description of change available at: - http://eca.cx/relnotes/ecasound_v2_5_1_relnotes.txt - - fixed: a last minute change in 2.5.0 that caused build errors - with gcc-4.3.1 if ALSA support is disabled - - fixed: a change in 2.5.0 how process cleanup is initiated from - the signal handler caused severe problems on some - systems when ecasound was interrupted with e.g. - ctrl-c/SIGINT; worst case was a crashed X session which - is of course really, really bad - - fixed: a bug in registering LADSPA plugins; on some systems - not all found plugins were registered properly to - ecasound's object maps causing some plugins to be - unusable; errors -16082008 (v2.5.0) -** stable release **- - - more verbose description of change available at: - http://eca.cx/relnotes/ecasound_v2_5_0_relnotes.txt - - notice: slightly modified the version numbering scheme - - minor version is incremented whenever non-trivial - new features are added - - notice: verified to compile with minimal warnings with - gcc-4.3.1 - - edi-entries: edi-40 closed (Update to error and warning - reporting mechanisms), edi-38 closed (see - edi-7 partially implemented - - added: ecasound.el: added missing ECI commands cs-option, - cs-set-length, cs-set-position-samples, ai-get-length, - ai-set-position, and ai-set-position-samples [dto, - mlang] - - added: tone generator input; '-i:tone,sine,440,10.3' will - create a 440Hz sine tone with duration of 10.3 seconds; - this input type will be especially useful for reproducing - bugs in complicated chainsetups, without the need to - exchange complete session data (which usually are composed - of large amounts of audio data) - - added: audio looper object; "-i:audioloop,foo.wav" will play - 'foo.wav' and loop it indefinitely - - added: audio selector object; "-i:select,5,15.2,foo.wav" will - play 15.2sec of "foo.wav", starting at position 5sec; - relates to (edi-7) - - added: audio play-at object; "-i:playat,5,foo.wav" will - start playing "foo.wav" after position reaches 5sec - - added: EWF files; ability to specify positions in time in - sample frames; "2.0" is interpreted as 2.0secs while - "88200sa" is interpreted as 88200 samples - - added: 'reopen-count' parameter to threshold gate (-ge); - for instance when recording vinyl/tapes, this allows - to automatically restart recording when a new track - is started [andrewl] - - added: ecasound frontend option '-E "cmds"' that allows - to run a set of interactive mode commands at - startup; see ecasound(1) for details; closes (edi-38) - - added: a notice is printed in case audio object's audio - format parameters differ from the chainsetup's default - values (audio object's own params always override - any value set by e.g. '-f:...'). - - changed: most of the EWF support (Ecasound Wave Files, .ewf) - has been rewritten in this version; numerous bugs - are fixed - - changed: eaim - commands 'cop-add' and 'ctrl-add' now allow - an alternate syntax: both "-:par1,...,parN" - and ":par1,...,parN" are now accepted - - changed: ability to write to EWF file is now marked as - a deprecated feature which will be removed in - a later release - - changed: mechanism to terminate forked child processes; - properly wait for process termination in all - circumstances (previously there were some - unhandled corner cases) - - changed: major updates to the examples.html page (available - also at http://eca.cx/examples ) - - changed: refactored logic for propagating seek events - across chainsetups; warnings are now issued if - one tries to seek objects that do not supports - seeking; similarly warning is issued if a given - audio object type doesn't support sample accurate - seeks (for example mp3 inputs have this limitation) - - changed: updated ecasound(1) man page description of '-klg' - - changed: separate global (-d, -R, ...) and ecasound frontend - specific (-c, --daemon, -s, ...) options in - ecasound(1) man page - - changed: changes to "cs-status" (aka "status", "st") - output formatting; now more information about - selected and connected setups is printed out - - changed: minor changes to the information printed out when - open audio input/outputs - - changed: pipes, sockets and device nodes in LADSPA plugin - directories are skipped (previously hidden files - were already skipped) - - changed: loop device identifier was changed from an integer - to a generic string; both "-i:loop,1" and - "-i:loop,myloop" are now valid - - fixed: incorrect usage of the Python C API, which leads to - segfaults when pyecasound is used under python2.5; - fixes Debian bug #468965 - - fixed: bugs in ewf-looping code - - fixed: avoid terminating processing when invalid parameters are - passed to channel copy (chcopy/erc), mix (chmix/erm) and - move (chmove) chainops - - fixed: eaim - buffering mode was sometimes incorrectly - reported in 'cs-status' output (-B:auto instead of - the actual set buffering mode) output; bug reported by - Jan Weil - - fixed: compilation warnings from GCC-4.3; fixes Debian bug - #454890, patch from Cyril Brulebois - - fixed: bug in passing multiple arguments to 'typeselect', - 'resample', and 'resample' objects - - fixed: with some glibc versions (tested with 2.3.6.ds1-13etch5), - ecasound did not fully clean up all threads when - it received a signal and terminated; the bug showed - up as a stuck thread, with backtrace pointing to - pthread_onexit_process() - - fixed: compilation issue on Mac OS X 10.5 [grobian] - - fixed: bug in saving control state with 'cs-save' or - 'cs-save-as'; triggered if controller was followed - by more chainops on the same chain - - fixed: bugs with preserving state across seeks with - many controller objects (-kl, -kl2 and -kos) - - fixed: a bug in ecasound user's guide w.r.t. usage of - loop devices - - fixed: sloppy parsing of "-i:loop" and "-o:loop" arguments - leading to confusing error messages when invalid input/output - objects, containing the substring "loop" were passed - as arguments to "-i" and "-o" -14082007 (v2.4.6.1) -** stable release **- - - fixed: extra debugging, printed to stderr, for resource file - values was accidentally left enabled in the 2.4.6 release -14082007 (v2.4.6) -** stable release **- - - more verbose description of change available at: - http://eca.cx/relnotes/ecasound_v2_4_6_relnotes.txt - - added: new option '-R:path-to-resource-file' to use a custom - resource file and disable querying of global and user - resource files; as a special case, by setting this - to '/dev/null', one disable all access to resource - files; requested by Klaus Schulz and Keith Creasy - - added: eiam - new command 'resource-file'; see ecasoundrc(5) - man page; related to previous item - - changed: license of rubyecasound, the Ruby ECI API - implementation, has been changed from GPL to LGPL - - fixed: build errors caused by missing #includes, reported - by GCC 4.3; bug report from Debian, bug #417178 - - fixed: rounding errors with small buffersizes caused time crop - gate (-gc) to function incorrectly; reported by Joe - Planisky - - fixed: force localization of decimal numbers to "POSIX" (i.e. - use period as the separator) to avoid bugs with - e.g. LADSPA plugins that call setlocale and break - the ecasound option parser; for instance all swh-plugins - call setlocale; reported by Rémi Rouaud - - fixed: printing chain operator (e.g. the '-ev' operator) status - at end of sessions was broken in 2.4.5; reported by - Julien Claassen - - fixed: bugs that led to infinitely running chainsetups when - loop input/outputs were used; reported by Aaron Heller - and Etienne Deleflie - - fixed: incorrect page numbers in table of contents of - the Ecasound Programmer's and User's Guides; patch - from Junichi Uekawa - - fixed: segfault when removing a chain operator with multiple - associated controllers; reported by Adam Linson -07122006 (v2.4.5) -** stable release **- - - more verbose description of change available at: - http://eca.cx/relnotes/ecasound_v2_4_5_relnotes.txt - - added: ability to compile without a readline library (will - disable the curses based console user-interface) - - added: if libsndfile is found and supports flac (sndfile - 1.0.12 or newer), it will be used as the default - handler for flac files; use of sndfile makes random - access for flac files possible (for example seeking - in interactive mode) - - added: section on 'RETURN VALUES' to ecasound(1) man page - - added: ecasound-iam(1) - added documentation for error - return values for 'run', 'start' and 'cs-connect' - - added: ECASOUND_LOGFILE and ECASOUND_LOGLEVEL environment - variables; see ecasound(1) for documentation - - added: more detailed description of debug levels that - can be set with 'd' to ecasound(1) manpage - - added: examples section to ecasound(1), which points to - the examples page at eca.cx/ecasound - - added: new chain operators '-chmove' and '-chmute' - - added: new aliases for chain operators: '-chmix' for '-erm', - and '-chcopy' for '-erc' - - added: ability to protect EOS arguments, like filenames, with - double quotes, closes bug #1456510; see also the related - BUGS entry about handling commas in filenames, and - updated documentation in ecasound(1), ecasond-iam(1) - and the User's Guide - - removed: readline-4.0 subdir from the dist package; system - readline library is now the only build option - - changed: ecasoundrc - added "-f" to the default flac - output exec command (although now libsndfile's - flac support is the default) - - changed: improved libsndfile integration, any libsndfile - supported file format can be used as output for - 'sndfile,foo.ext' (format selected based on filename - extension) - - changed: eiam - default int-log-history length set to zero - - changed: updated config.guess and config.sub to more recent - versions (timestamp 2006-07-02) - - changed: updated the documentation for 'ai-select/ao-select', - it is no longer required that input/outputs have - a unique name within one chainsetup; problem reported - by Kurt Konolige - - changed: replaced the ECI C implementation's (libecasoundc) - engine cleanup mechanism with a much more robust one - - changed: the engine will now refuse to start if a start offset - is given with '-y:secs' for an object not supporting - seeking; this has been a very common source of - end-user confusion - - fixed: segfault when removing loop devices with a[io]-remove, - reported by Pedro Antonio Fructuoso Merino - - fixed: incorrect headers in created flac files (not related - to sndfile/flac); fix can possibly affect other file - formats handled by external apps (aac, midi, mikmod, - mp3 and ogg files), problem reported by Florian Ladstaedter - - fixed: errors during batch processing (running out of file - space, etc) were not reported as a non-zero process - return value, problem reported by Zrajm Akfohg - - fixed: possible segfaults with ctrl-select, ctrlp-select - and ctrlp-value [allies] - - fixed: loop devices were not correctly saved with cs-save - and cs-save-as [allies] - - fixed: bug in handling big-ending 24/32bit samples [aheller] - - fixed: ecasignalview build errors on cygwin [hawk777] - - fixed: segfault when parsing "\" in interactive mode, reported - by Koen [pfructuoso] - - fixed: a subtle race-condition in the cleanup routines leading - to segfaults when breaking a batch run with ctrl-c - - fixed: bug causing audible glitching when seeking with - chainsetups containing loop devices [pfructuoso] - - fixed: "rw 0" caused the engine to skip ahead multiple - seconds (reported by Kurt Konolige) - - fixed: segfaults from invalid params to -f option, for - example "-f:16" or "-f:16,2", reported by peppo on - #lad at freenode.org - - fixed: a severe string termination bug in libecasoundc - that led to garbled output from ECI commands - returning lists of strings, reported by Brad Bowman, - Joel Roth and Stuart Allie -27012006 (v2.4.4) -** stable release **- - - more verbose description of change available at: - http://eca.cx/relnotes/ecasound_v2_4_4_relnotes.txt - - added: eiam - ai-describe, ao-describe, cop-describe and - ctrl-describe commands; see ecasound-iam(1) - - added: ecasignalview - ability to pass ecasound options - -G, -B, -M*, -r and -z - - added: BUGS file - added 'Reporting bugs' section - - added: updated RPM spec-file for x86_64 support [grabner] - - changed: minor changes to ecaplay console output - - changed: ECI C impl. - increased the time engine has - for processing ECI commands; fixes problems - with the 'cs-disconnect' command with complex - setups involving connections to external - resources such as jackd - - changed: error is raised if one tries to add chainops or - controllers when multiple (or zero) chains are - selected - - changed: increased size of buffers used by the ECI-C - parser (sfbug:1412409) [allies] - - changed: it's now possible to set initial values for - operator parameters controlled by MIDI-CCs - - fixed: compile-time bug in ecasignalview.cpp - - fixed: saving chainsetups in cases where a ctrl is - connected to a effect preset - - fixed: DBC_CHECK failure from eca-chainsetup.cpp when - running cs-edit on a non-connected chainsetup - - fixed: bug in seeking mp3 files - - fixed: eiam - 'c-select' caused a segfault if no chainsetup - was selected - - fixed: -etf:0 caused a segfault - - fixed: severe bug in mixdown code - in cases where an input - is connected to multiple chains, and one or more inputs - have reached end of stream, the resulting mix is not - handled properly - - fixed: bug in freeing references to buffers in effect preset - code; triggered by externally terminating an ecasound - session containing preset objects (sfbug:1412200) - - fixed: ECI-C memory access errors reported by valgrind - - fixed: allow commas in ecasignalview input/output params; - makes it again possible to specify ALSA devices, etc -21082005 (v2.4.3) -** stable release **- - - more verbose description of change available at: - http://eca.cx/relnotes/ecasound_v2_4_3_relnotes.txt - - added: support for ALSA sequencer support; see ecasound(1) - and examples.html [pedrolc] - - added: runtime warning about possible problems when mixing - resample and jack objects - - changed: scheduling changes for MIDI and disk i/o subsystems; - possibly affects performance in certain use-scenarios; - fixes debian bug #317900 - - changed: updated config.guess and config.sub to more recent - versions (timestamp 2005-04-22) - - fixed: failed runtime check from eca-fileio-stream.cpp:159 - - fixed: eiam - ao-remove'ing JACK input/outputs caused a segfault - - fixed: --disable-jack/--enable-jack did not work - - fixed: system-hangs when run in realtime mode and using a large - disk i/o double-buffer (-z:db) - - fixed: ewf-debugging output was left enabled in 2.4.2 release - - fixed: bug in detecting finished-state with .ewf files when - used with -z:db mode enabled -> caused flood of underrun - warnings with multi .ewf file sessions - - fixed: externally terminating, e.g. via JACK transport system, - a batch chainsetup would cause a segfault -07082005 (v2.4.2) -** stable release **- - - more verbose description of change available at: - http://eca.cx/relnotes/ecasound_v2_4_2_relnotes.txt - - note: verified to compile ok with gcc-4.0.0 and gcc-4.0.1 [kaiv] - - added: eiam - ctrlp-list, ctrlp-selected, ctrlp-get, ctrlp-select - and ctrlp-set commands; the last two are RT-commands; - see ecasound-iam(1) for more info [allies] - - added: ecasignalview - ability to reset stats with 'spacebar' - and quit with 'q/Q/Esc'; separate logarithmic mode (enable - with -L, see also -I which is still the default); - display of per-channel average amplitude; see - ecasignalview(1) man page for details [jeffrey] - - added: ecatrimsilence.sh to examples subdir [kaiv] - - added: --keep-running (or -K) option to ecasound, do not exit - from batch mode when processing is finished/stopped; - especially useful when used in combination with JACK - inputs/outputs [kaiv] - - changed: various small updates to User's Guide [kaiv] - - changed: ecasound user-visible copyright string changed [kaiv] - - changed: minor changes to ecasignalview user-interface - [jeffrey,kaiv] - - changed: --daemon-mode does not anymore require running in - interactive mode [kaiv] - - fixed: using ecasound.spec with recent versions of rpm - results in a "%package debuginfo" error [kaiv] - - fixed: problems in saving ewf objects with cs-save, - cs-save-as and cs-edit [kaiv] - - fixed: controllers were always added to the last - chainop, not to the selected chain operator [allies] - - fixed: --enable-jack and --disable-jack both disabled JACK - support [kaiv] - - fixed: serious bug in the "reverse" audio objects, caused - audible noise in the reversed signal [kaiv] - - fixed: segfaults at exit when LADSPA plugins had been used; - the error did not happen every time and with every type - of plugin; problem was a race between atexit handlers - of ecasound, and the dynamically loaded plugins [kaiv] - - fixed: ecasignalview - do not send or receive transport - events [kaiv] - - fixed: ecasound daemon mode, correctly print hostnames without - resolvable hostname -08042005 (v2.4.1) -** stable release **- - - more verbose description of change available at: - http://eca.cx/relnotes/ecasound_v2_4_1_relnotes.txt - - note: verified to work with automake versions 1.6 and 1.9; - automake 1.5 and older, as well as autoconf versions - older than 2.50, are no longer supported; these - changes only affect users of Ecasound CVS checkouts - - added: ecaplay - better error reporting, feature to reset - output device audio parameters for each new input - file, support for ECAPLAY_OUTPUT_DEVICE environment - variable; see ecatools(1) for more info - - added: playlist mode to ecaplay (new -q, and -p options; - see ecaplay(1) for more info) - - added: "Supported automake/autoconf features" section to - the INSTALL file - - added: new presets to the default effect_presets file - - added: support for describing full range of preset parameter - flags with -ppt (see effect_presets file and the - relevant sections in User's Guide) - - added: new sections on preset parameters to User's Guide - - added: allow reseting ecasignalview max-peak and clipped-samples - counters by sending a SIGHUP to the process - - changed: moved definitions from acconfig.h to configure.in; - gets rid of the AC_DEFINE warnings produced by - recent versions of autoheader - - changed: Ecasound Programmer's Guide converted from LaTeX - to ascii/rst - - changed: sed is used to generate ecasoundrc at make; allows to - specify a custom pkgdatadir when running make [junichi] - - changed: various small improvements to all ecatools and - the related manpages - - changed: updated config.guess and config.sub to more recent - versions (timestamp 2005-03-24) - - changed: various updates to the README file - - fixed: sources for the aRts plugin were not present in the - 2.4.0 release package - - fixed: mp3-header parsing code has been partly rewritten; - the new parser is designed to better handle garbage - and unknown frame types in mp3 files [juliand,kaiv] - - fixed: compile errors with egcs-2.91.66 - - fixed: current position of the time crop gate (-gc) was - incorrecly increased [alexey] - - fixed: compilation failed if building outside srcdir - - fixed: ECI C impl. did not properly release all file handles - in eci_cleanup(); for example playing thousands of - files with ecaplay would cause the system to run - out of file descriptors (too many open files error) - - fixed: bug in handling LADSPA plugins with colon chars in - their port descriptions (such as the SC1-4 - compressors) - - fixed: do not print "Session created" even if -q option has - been given (quiet output mode) -12032005 (v2.4.0) -** stable release **- - - more verbose description of change available at: - http://eca.cx/relnotes/ecasound_v2_4_0_relnotes.txt - - edi-entries: edi-40 progress - - added: support for having commas in arguments by escaping - them with a backslash (example: "ai-add foo\,bar.wav") - - added: pretty-printing of ecasound output; wrap output so - so that all lines fit into 74 columns; does not affect - wellformed output mode nor stderr output (-D) - - added: new section about handling commas in filenames to - Ecasound User's Guide - - added: eiam - new 'int-log-history' command to query - recent log messages sent by libecasound; this is a very - useful tool for debugging ECI scripts and apps - - added: eiam - new 'int-set-log-history-length' command to set - log history length; default to 5 items - - added: resample-lq (low-quality) audio object to force using - the internal resampler even though support for - libsamplerate is enabled at build time - - added: support for sum-mixmode; enabled with -z:mixmode,sum; - the old average mixing is still the default; see - ecasound(1) - - added: ecasoundrc - 'mix-mode' setting; see ecasoundrc(5) - - changed: more helpful messages to explain why a chainsetup - cannot be connected to the engine - - changed: EIAM - when returning a list of strings, all commas - in list elements are now escaped with backslashes; - this is done to avoid ambiguity in parsing - - changed: new default debug level of 271 - - changed: new optimized message queue implementation used in - communication between the engine and the interface - subsystems; solves a few remaining corner cases - where ecasound could block in real-time critical - code-paths - - changed: better error message if unable to load LADSPA plugin - with -el/-eli - - changed: removed hard upper-limit for -ei scale-factor, - modified both the upper and lower soft limits - - changed: updated config.guess and config.sub to more recent - versions - - fixed: correctly interpret EIAM command arguments containing - whitespace (example: "ai-add foo bar.wav") - - fixed: denormal problems in filter and delay operators - - fixex: setting radius params of -etc comb filter - - fixed: make check target failed in readline-4.0 subdir - - fixed: avoid segfault when receiving a bufsize or srate - change event from JACK; ecasound still cannot change - bufsize or srate on the fly, but at least it now fails - gracefully - - fixed: always pass filename (%f) as one parameter to the - external apps; fixes bug present in 2.3.4 and 2.3.5 - releases which broke handling spaces in filenames; - affected all file formats handled via external tools - (ogg/mp3/flac/m4a/...); also a separate bug in handling - spaces in ogg output filenames was fixed - - fixed: occasional bugs with rubyecasound in handling the - EIAM 'quit' command; this also fixes the errors in - running 'make check' in ecasound/rubyecasound - - fixed: serious bugs in resampling between 96000 and 44100/48000 - rates when using libsamplerate; upgraded Ecasound to use - the libsamplerate 'full API' - - fixed: options "-b:", "-b" and "-b:0" caused a segfault - - fixed: aac/m4a encoder was not stopped properly after - processing was finished -12112004 (v2.3.5) -** stable release **- - - note: main website address has changed to www.eca.cx/ecasound - - changed: collected all email addresses from source files to - the AUTHORS file and added some antispam measures - - changed: do not raise an error when opening an OSS device that - does not support SNDCTL_DSP_GETBLKSIZE - - changed: updated all the html-docs to match the new website - style - - fixed: default to native-python ECI implementation on MacOSX - - fixed: link against coreaudio libs if JACK enabled on MacOSX - - fixed: ecasignalview build error if compiling without - ncurses [mb] - - fixed: bug in ecasound/rubyecasound 'make check' target -27102004 (v2.3.4) -** stable release **- - - edi-entries: edi-14 and edi-32 closed, edi-40 added - - note: verified to compile ok on MacOS X 10.3.2 [smbolton] - - note: verified to compile ok with gcc-3.4.1 - - added: basic FLAC input/output support using flac utils; - new flac specific options to ecasoundrc - - added: basic AAC/M4A/MP4 input/output support faac/faad - utils; new options to ecasoundrc - - added: optional 3rd parameter to 'sndfile' for specifying - audio file format (see ecasound(1)) [jesse] - - added: documentation on adding new EIAM commands to the - programmer's guide - - added: eaim - new 'int-set-float-to-string-precision' command - - changed: set srate for mp3 input based on mp3 header - - changed: increased precision of floating point return values - in the C ECI implementation - - fixed: multitrack offset was calculated incorrectly for - ALSA devices which limit buffer period count to 2 - - fixed: bugs in .wav, .cdr, JACK code, and in internal sample - conversion routines that occur on big-endian - machines [smbolton] - - fixed: ogg input failed if requested sample-format had non-native - endianess; new default-cmd for ogg-input, see - ecasoundrc(5) - - fixed: build failed on MacOSX/freebsd because of undefined - mlockall and related defines - - fixed: errors in ecasound(1) man page and the examples.html; - adding chain operators to multiple chains at once - is not supported anymore - - fixed: engine state not fully updated after a 'run' - command has completed; caused commands such as - 'cs-set-position' to fail when used after 'run' - - fixed: ecasound sample formats s24_le/_be were mapped - to 4-byte ALSA formats S24_LE/_BE; now mapped - to the correct 3-byte S24_3LE/_3BE formats - - fixed: bug in C ECI impl that caused sync-loss errors between - ECI clients and the engine [jesse] - - fixed: ECI session corruption after processing 'long int' - return values [jesse] -05052004 (v2.3.3) -** stable release **- - - note: verified to compile ok with gcc-3.4 - - added: eiam - 'map-ladspa-id-list' command - - added: special-case value of '-1' to 'cs-set-length' or - '-t:xxx' will set the chainsetup length according - to the longest input object - - added: ECI guide - a new section on ecasound.el [mlang] - - added: ecasoundrc - a new special-case value 'autodetect' to - the 'default-output' setting; 'autodetect' is also - the new default ecasoundrc value; see ecasoundrc(5) - for details - - changed: lots of typo fixes and other corrections to - the user's guide [ericdr] - - changed: minor configure.in cleanup relating to handling - CFLAGS, CXXFLAGS and LDFLAGS - - fixed: building against libsndfile-1.0.4 and older; if - libsndfile older than 1.0.0 is detected, sndfile - support is disabled altogether - - fixed: bug in ECI C impl that could cause segfaults [mewe] - - fixed: signal handling bugs in ecasignalview and ECI C - impl [mewe] - - fixed: bug in ecasound(1) caused man to not show the - last three pages - - fixed: bug in the daemon-mode (NetECI) protocol parser - that caused parsing long (over 32 chars) commands - to fail - - fixed: 'libecasound-config --libs' did not list all - external libraries used - - fixed: assign default param-names to effect presets - - fixed: preset parameters were not saved by 'cs-save' and - 'cs-save-as' -06122003 (v2.3.2) -** stable release **- - - edi-entries: edi-33 closed - - added: support for libsndfile; enabled if libsndfile is - detected succesfully by configure; can be disabled - with --disable-sndfile - - added: added new audio input/output types 'audiofile', - 'sndfile' and 'mikmod'; see ecasound(1) for more - details - - added: pyecasound/test2_stresstest.py new test case - - added: initial Ruby ECI impl added; see rubyecasound/README - for details [janweil] - - added: --enable-rubyecasound configure option; defaults to - yes if ruby interpreter found on the system - - added: resampling examples to Documentation/examples.html - - changed: increased default buffer sizes for 'rtnull' objects - to avoid too many xrun warnings; warnings are also - no longer printed to stderr - instead a summary - is printed at the end of the session if any xruns - have occured - - changed: Ecasound PDF docs (user's, programmer's and ECI - guides) are now generated using AE fonts; the PDFs - can now be read with readers like xpdf and - probably look better in others [janweil] - - fixed: pyecasound/test1_stresstest.py was not included in - the dist package - - fixed: libaudiofile - input file audio parameters - parsed incorrectly - - fixed: -x option - truncate outputs - was not working - - fixed: preset.h and other related headers were not installed - during install-data phase - - fixed: pyecasound - the critical native python bugs found - in earlier releases are now fixed - - fixed: ecasoundc - serious memory leak in handling string - list return types - - fixed: typo in libecasoundc-config usage [koraq] - - fixed: bugs with resample that caused audible artifacts - with certain srcrate-dstrate combinations -19112003 (v2.3.1) -** stable release **- - - added: --disable-effects configure option; build ecasound - without effect and controller components - - changed: libtool is setup to only create object files for - static linkage; you can revert to the old behaviour - with the --enable-shared configure option - - changed: ecasound.el updated to 0.8.3, lots of small - changes, see ecasound.el for details [mlang] - - changed: pyecasound - due to bugs found in the native python - impl, the C ECI impl is again set as the default; - can be overridden using --enable-pyecasound=IMPL - - changed: pyecasound - the native python impl (ecacontrol.py) - now returns an error if communication with the - ecasound process times out - - changed: html versions of programmer's, user's and ECI - developer's guide are generated with Hevea instead - of latex2html [juekawa] - - changed: updated config.guess and config.sub to more recent - versions - - fixed: makefile errors when building against system libreadline - - fixed: processing did not start in the default transport mode - with JACK versions 0.80 and older - - fixed: recording failed with a WinTv 401dbx and the btaudio - OSS driver - - fixed: compilation against alsa-lib-1.0.x - - fixed: default ratio value incorrectly set for -eca; does - not affect presets using -eca [remon] -29082003 (v2.3.0) -** stable release **- - - edi-entries: edi-4, edi-19 and edi-35 frozen, edi-38 added - and frozen immediately, edi-39 added; frozen is - a new status for items that probably won't be - ever implemented - - note: verified to compile ok with gcc-3.3 - - note: verified to work with python-2.3 - - added: eaim - command 'engine-launch' to inialize engine - without starting actual processing, and 'engine-halt' - for halting it without disconnecting; useful with - JACK transport functions - - added: separate AUTHORS file; also added to the website - - added: -d, -dd and -d command-line options, see ecasound(1) - - added: recording offset parameter -z:multitrack,offset option - - changed: to avoid resampling faults, upper limit of 2000% - set for pitchshifter's (-ei) shift-% arg; note! high - values of shift-% can still cause crashes if using - libsamplerate - - changed: if available, use pthread API for setting scheduler - params; might improve real-time reliability on - rh9.0 machines and others that have NPTL - - changed: pyecasound - redefined configure option - --enable-pyecasound=IMPL where 'IMPL' is either - 'c' or 'python'; --disable-pyecasound disables - them both - - changed: pyecasound - if ecasound's build prefix does not - match the python prefix, /usr or /usr/local, - pyecasound will be disabled; you can override - this by specifying the python module directory - explicitly with the --with-python-modules=DIR - option - - changed: JACK transport support code to the new API - introduced in 0.76.1 and newer - - changed: ecasound.spec; added 'AUTHORS' - - changed: JACK transport modes redefined; new modes are - 'notransport', 'send', 'recv' and 'sendrecv' - - changed: major updates to README file - - changed: improved check for aRts; now verifies that linking - against libartcs actually works before enabling - the arts plugin - - fixed: use of the JACK transport API was never actually - enabled in 2.2.3 - - fixed: .aiff/.snd/.au input/output was not working at all - due to a typo in source code - - fixed: a chain with a short input file could cause a nasty - feedback loop if processed with certain effects - and mixed with audio from other chains - - fixed: ewf length and offset errors with sample rates - different from default (usually 44.1kHz) - - fixed: chainsetup samplerate incorrectly set with some - configurations; caused problems with -t:xxx and - other functions related to chainsetup level position - and length - - fixed: serious bug in mixing down multiple chains with - different number of channels to one output; audio - from previous mixdown rounds leaked to unused - source channels - - fixed: some chainsetup parsing errors were totally ignored - and not reported to the user - - fixed: eiam - output of map-* commands was broken in - certain locales (for example "fi_FI") - - fixed: without at least one '-Md' or one '-km' option - specified, MIDI-services did not work - - fixed: pulse gate timing inaccuracy (-eemp); also affected - the bpm pulse gate (-eemb) and thus the metronome - preset (-pn:metronome) - - fixed: a 'setpos' on a not yet connected chainsetup would - cause seeks to the wrong position for objects with - non-default samplerates - - fixed: pay regard to -z:multitrack and -z:nomultitrack when - saving chainsetups to .ecs files -27042003 (v2.2.3) -** stable release **- - - added: support for both -0.64 and 0.65- JACK versions; - transport functionality is only enabled with the - newer versions - - added: automatic query of child object sample rate by - giving 'auto' as 2nd arg to resample object - - changed: by default python version of ECI is used; the C - python module for ECI, pyecasound, is only compiled - if --enable-pyecasound is specified - - changed: jack_auto,dstclient input/output object now - automatically connects to matching ports of JACK - dstclient (no longer requires dstclient to have - in_X/out_X port names) - - fixed: yet another fix for creating temporary files in - ecanormalize and ecafixdc; now both LOGNAME and USER - are checked for a valid user name - - fixed: prefer usleep over nanosleep on cygwin; avoids - the excessive-cpu-usage problem - - fixed: work-around for a bug in the pcm plugin of ALSA 0.9.1 - and earlier that caused recording/playback to - stop to an audio i/o error - - fixed: inconsistencies in how configure --disable/enable-feat - options were handled - - fixed: if pyecasound was disabled at build time, make - install target failed in ecasound/pyecasound -18032003 (v2.2.2) -** stable release **- - - edi-entries: edi-35 and edi-36 added - - added: ecacontrol.py - a native python implementation of - the ECI API [jhalttun] - - added: stream ogg/mp3/mid directly from network if the - filename has a url-prefix - - added: author name to the description of LADSPA plugins - - added: latest config.guess and config.sub added to - the dist package - - added: ecamonitor - a warning is printed if you try to - run with python-1.x; python-2.x is required - - added: new tutorials page added to documentation; - see Documentation/index.html - - changed: ecasound.el updated to 0.8.2, lots of small - changes, see ecasound.el for details [mlang] - - changed: alsa-0.9 - better support for pcm devices such as - dmix which have strict period size constraints - - fixed: libecasound sample conversion unit test failed when - compiled with gcc-2.91.66 on certain platforms - - fixed: compile failed on systems that don't have nanosleep() - - fixed: subtle bug in -kl and -kl2 (and possibly others) - with fade lengths under 1s - - fixed: alsa-0.9 - prevent ecasound from prefilling too - much data to output devices - - fixed: a ':' in LADSPA plugins parameter name confused - ecasound (swh's sc4 is one example) - - fixed: theoretical problem with ecalength argument - parsing - - fixed: use LOGNAME instead of USER for creating temporary - files for ecanormalize and ecafixdc - - fixed: -tl has been broken since 2.2.0-pre5 - - fixed: copp-list dumped core if no cop was selected -15022003 (v2.2.1) -** stable release **- - - added: sane default param hints for chainops: -ec, -etd, - -ete, -etf, -etl, -etm, -etp, -etr and -epp - - added: if configured with JACK-support, ecasound will - fetch the correct bufsize and srate parameters from - the JACK server when connecting a chainsetup with - JACK inputs or outputs - - added: support for Erik de Castro Lopo's libsamplerate - resampling library; used both by the resample - audio i/o object and the pitch shifter chainop (-ei); - enable with --with-libsamplerate - - added: --disable-libsamplerate; don't enable libsamplerate - support even if the library is found during configure - - added: resample-hq audio object type; like resample, but - use the highest available resampling quality; - currently only has an effect if libsamplerate - support is enabled - - added: alternative UNIX signal handling for platforms that - don't provide sigwait() (cygwin is one) - - changed: ecasoundrc - ladspa-plugin-directory can contain - multiple directories, separated by colons; this - change was done to avoid any confusion with - the LADSPA_PATH syntax and ecasoundrc - - changed: rewritten much of the JACK slave-mode code; enables - much faster and reliable transport-sync - - fixed: compiling pyecasound failed on alpha w/ gcc-3.2 - - fixed: -t:xxx option did not work if chainsetup samplerate - differed from the default; for instance rate change - from 44100 to 22050 doubled the run length - - fixed: make uninstall in kvutils failed if non-identified - files from old releases were detected - - fixed: excessive dbc warnings when using the jack plugin - - fixed: core dump if -eac:x,y was given an invalid channel - index - - fixed: compile failed if JACK support was enabled, but no - explicit --with-jack option was given - - fixed: rounding errors fixed in the resample object - - fixed: terminal was not properly resetted after a ctrl-c - in interactive mode - - fixed: handle /dev/dsp drivers that don't support - DSP_GETCAPS (cygwin is one) - - fixed: don't link with rpath if target prefix is /usr [juekawa] - - fixed: -kl2 didn't work at all in some circumstances -09012003 (v2.2.0) -** stable release **- - - edi-entries: edi-1 closed - - changed: ecasound.el updated to version 0.8.1 [mlang] - - changed: more user-friednly errormsg when trying to open - a nonexistent ogg/mid/mod file - - changed: eiam - all instances of 'c-mute' in code and docs - changed to 'c-muting', although now officially - deprecated, 'c-mute' will continue to work as - an alias to 'c-muting' - - fixed: edi-1 - crackle at start of processing with -ete - removed [hgfischer] - - fixed: various small fixes to remove uncalled for - dbc warnings - - fixed: -b:0 caused a segfault - - fixed: compile error with gcc-2.95.4 concerning eca-curses.cpp - and the 'erase' symbol - - fixed: compile error with freebsd-4.7 concerning - eca-chainsetup.cpp/eca-fileio-stream.cpp and - the header file 'sys/mman.h' - - fixed: resample audio object set the child srate incorrectly - for mp3 and headerless audio files -28112002 (v2.2.0-rc1) - - edi-entries: edi-35 added - - fixed: more curses fixes - - fixed: ecaplay - -k and ctrl-c cleanup bugs - - fixed: ecaplay - accept filenames containing whitespace - - fixed: ecafixdc - don't process files that have zero - dc-offset - - fixed: compilation fixes for solaris+gcc combo - - fixed: -y option was not working; broken since 2.2.0-pre1 - - fixed: seg.faults when finishing processing a setup with - -t:x defined, -z:db, no rt-inputs and one or more - rt-outputs - - fixed: restarting processing from a new position after - processing had reached the finished state - - fixed: banner was printed to stdout even in quiet mode - - fixed: -etc (chorus), -etp (phaser) and -etl (flanger) - broken by edi-21 work -07112002 (v2.2.0-pre5) - - edi-entries: edi-29 closed - - added: ecasound emacs interface, ecasound.el, is now - distributed with ecasound (ecatools/ecasound.el); - ecasound.el is installed to ecasound's data - directory (default /usr/local/share/ecasound) - - added: libkvutils_tester, unit tester for libkvutils - - added: ecamonitor - 'q' to quit - - added: --nodaemon and --daemon-port=XXX ecasound options - - added: documentation about the daemon functionality - to ecasound(1) - - added: ecamonitor.1 man page - - added: NetECI documentation to programmer's guide - - changed: rpm spec file unified with the spec file used - to build PlanetCCRMA's ecasound packages - - changed: pyecasound license from GPL to LGPL - - changed: the C++ ECI implementation, the - ECA_CONTROL_INTERFACE class, moved from libecasound - to libecasoundc; now also under LGPL - - changed: asm/atomic.h kernel header no longer used - - changed: ecaplay - improved ctrl-c handling - - fixed: cleanup of curses/ncurses detection in configure.in; - this also fixes ecasound compilation on mandrake9.x - systems - - fixed: controller source positions were not always updated - when global chainsetup position was changed - - fixed: controllers weren't properly initialized before use; - this bug caused real harm only to -klg objects; - only the first defined -klg worked as expected - - fixed: increased the max message size in ECI-standalone; - ecasetupedit-0.2.3 caused the parsing buffers to - overflow -31102002 (v2.2.0-pre4) - - edi-entries: edi-27, edi-28, edi-29, edi-30 - - added: eiam - commands 'map-cop-list', 'map-ctrl-list', - 'map-ladspa-list' and 'map-preset-list'; see - ecasound-iam(1) man page for details - - added: eiam - 'ao-add-default' command - - added: ecicpp_tester, a unit test program for C++ ECI - - changed: libecasoundc now LGPL licensed - - changed: edi-30 done; ecaplay, ecaconvert, ecafixdc and - ecanormalize rewritten using the new standalone - ECI api - - changed: reimplemented the C++ ECI interface on top of - the new standalone C ECI interface - - changed: implementation level improvements to db, ewf, - resample, reverse and typeselect audio object - types - - changed: edi-28 done; ECI standalone now the only ECI - implementation - - changed: ecasound now uses the new JACK (0.40.0 and newer) - ALSA PCM port names (alsa_pcm:capture_X and - alsa_pcm:playback_X) - - changed: number of channels must be given as the first - parameter to -ezx; this was needed to implement - true multichannel support - - changed: syntax used for JACK inputs/outputs, see - ecasound(1) and ecasound user's guide for - details - - changed: ecasound JACK transport master mode now follows - the new pending-timebase model - - changed: edi-27 done; the NetECI protocol replaced with the - ECI standalone protocol defined in ecasound - programmer's guide - - changed: edi-29; major updates to ecamonitor; moved back - to ecasound/ecamonitor - - fixed: libecasoundc return value sync problem; return - value for command wasn't returned until command n+1 - was issued - - fixed: -etc, -etl and -etp crashes if delay parameter - was set to zero - - fixed: -ezf didn't report the correct dcfic for the - first channel - - fixed: LADSPA param descriptions were incorrectly - parsed - - fixed: ecasound ended up in a cpu-intensive loop if - the standard input suddenly disappeared in - the -D output mode; this happened every now - and then with ECI apps - - fixed: eiam - missing newlines in output of 'cop-status' - and 'ctrl-status' -19102002 (v2.2.0-pre3) - - fixed: reverted to using old ALSA 0.9 hw-params API, - ecasound agains works with old 0.9beta and 0.9rc - ALSA versions -18102002 (v2.2.0-pre2) - - fixed: ALSA objects weren't properly registered as audio - object types - - fixed: debug level was resetted to 0 after issuing - 'int-output-mode-wellformed' - - fixed: automake complained about multiple definition - of ecasoundc_sa -17102002 (v2.2.0-pre1) - - edi-entries: edi-24, edi-28, edi-29, edi-30 - - note: libecasound and libkvutils interface version numbers - will from now on track API changes instead of ABI - changes - - added: edi-24; resample audio object added - - added: edi-29; initial version of ecamonitor - - added: edi-28; eiam-command 'int-output-mode-wellformed' - - removed: edi-30; ecasound internal plugins no longer - installed separately - - changed: ALSA support requires alsa-lib version - 0.9rc4 or newer - - changed: libecasoundc versioning back to normal libtool - style; interface version reverted back to 1:0:0 - - changed: edi-28; C implementation of ECI, libecasoundc, - is rewritten to not depend on libecasound - - changed: edi-28; pyecasound is rewritten to use the - new C ECI implementation instead of direct - use of libecasound - - changed: edi-30; removed all shared libs and subpackages - containing them from ecasound.spec.in - - changed: added ecamonitor to ecasound.spec.in - - changed: edi-30; libecasound and libkvutils - versioning back to normal libtool style - - fixed: unnecessary warnings when closing OSS - audio objects - - fixed: unnecessary warnings when adding audio - objects to a chainsetup with no chains - currently selected - - fixed: resample, reverse and typeselect audio objects - types were broken in 2.1dev11 - - fixed: removing audio inputs and outputs didn't work - as specified - - fixed: bugs in multitrack-mode operation; processing - would stop once all input objects were - finished - - fixed: pyeca.py - correct handling of 'e' and '-' - return types [jhalttun] - - fixed: eiam - removed the extra newline char from output - of 'cop-status' and 'ctrl-status' - - fixed: loglevel settings were lost when output mode - was changed - - fixed: ecamonitor was missing from the dist package -22082002 (v2.1dev11) - - added: configure-check for socket libraries - - added: -evp - volume peak watcher operator - - added: initial support for LADSPA v1.1 API for plugin - parameter defaults (as used in swh-0.2.8 plugin - set); updated ladspa.h included in the source tree - - changed: rewrite of all user-interface code that's - in the ecasound-x.y.z/ecasound directory - - changed: added chainop and controller parameter - descriptions back to ecasound's command-line - help (--help/-h) - - changed: ecasignalview rewritten; segfault bugs fixed, - consumes less cpu-resources, better interface - - changed: ecasoundrc - default command for ogg playback - to catch up with the ogg 1.0 release - - changed: new sample format conversion routines along - with unit tests - - fixed: a long-standing bug in ecaplay that caused it - to segfault with big playlists - - fixed: LADSPA_PATH env.variable not parsed correctly - - fixed: floating-point exceptions when run on alpha-linux - - fixed: libecasound_tester failed on machines without - the LADSPA SDK plugins installed - - fixed: ia-mode - ctrl-d didn't exit as it should; this - broke shell scripts that used pipes to communicate - with ecasound -24062002 (v2.1dev10) - - added: -G:mgrtype,optstring switch for setting - audio object manager level options - - added: -G:jack,client_name,operation_mode option; see - ecasound(1) for details - - added: --enable-all-static configure option - - added: --disable-jack configure option; disable JACK - support even if all required libs and headers - are found - - changed: major data structure cleanup in the JACK - plugin - - changed: JACK support is now enabled if 'jack/jack.h' - is found; also --with-jack=PATH still works - - fixed: 'unknown device state' errors with multichannel - soundcards like midiman deltaXX and rme - when starting processing and if -z:intbuf mode - was selected - - fixed: due to changes in autoconf variables, non-atomic - locking was always used instead of atomic locking - in 2.1dev8 and 2.1dev9 - - fixed: configure failed if an old (<0.9) ALSA version was - installed even if --disable-alsa was specified - - fixed: loading chainsetup from interactive mode failed - both with cs-load and after cs-edit - - fixed: compiling against readline 4.2 with - --enable-sys-readline failed - - fixed: bugs in the -z:db subsystem caused segfaults - - fixed: problems with -z:db and small files - - fixed: eiam - 'cs-get-length' always returned 0 -17052002 (v2.1dev9) - - edi-entries: edi-22 - - changed: optimized disk i/o subsystem (-z:db) performance - - changed: edi-22 fully implemented (JACK-support) - - fixed: disk i/o subsystem didn't discard all old data - after a seek to a new location - - fixed: installing pyeca.py failed if ecasound was - built outside srcdir - - fixed: timeouts when starting chainsetups with JACK - input/outputs - - fixed: bug in stopping JACK input/outputs; affects - seeking in interactive mode -13052002 (v2.1dev8) - - edi-entries: edi-13, edi-18, edi-21, edi-22 - - added: reverse audio object type; see the ecasound(1) - man page for better documentation - - added: pyecasound - if python version is 2.2 or higher, - pyeca.py sets custom dlopen flags before importing - the actual pyecasound python module; this makes it - possible to access ecasound's plugins (ALSA, JACK, - libaudiofile) from python ECI apps - - added: ecasoundrc - 'default-audio-format'; same syntax - as with the -f option; defaults to s16_le,2,44100,i - - added: edi-18 implemented; engine samplerate is now - set automatically - if object sample rates don't - match, an error is printed - - added: edi-21 implemented; a much improved framework - for handling audio position information is now - in place; -kl, -kl2 and -klg are now position - aware - changing chainsetup position also affects - controller sources - - added: initial implementation of edi-22 - - added: support for devfs /dev/sound/dsp devices [karmak] - - added: new debugging system in libecasound; semantics - of -d:xxx debug levels have changed - - added: 'make check' target builds and runs - libecasound/libecasound_tester, which performs - a set of functionality tests - - removed: support for old ALSA driver versions 0.3.x, - 0.4.x and 0.5.x - - removed: ecasoundrc - 'default-samplerate' - - removed: -sr option; not needed anymore - - removed: ia-mode - 'c-rewind', 'c-forward' and - 'c-setpos' - - removed: ecasoundrc - default-to-interactive-mode - - removed: mixmode switch (-m) - - removed: ecasound/contrib directory - - changed: JACK support updated to match JACK's 13/May/02 - CVS-tree - - changed: pyecasound - module libpyecasound.so renamed - to pyecasound.so - - changed: programmer's guide updated; added a new chapter - about library organization - - changed: minor user's guide update - - changed: looping with -tl always loops from the start; - -y can't be used for setting the loop start - offset -> ewf-files should be used instead - - changed: s24_le and s24_be sample formats are interpreted - as three-byte values, not as four-byte - 24-in-32bits values as before; to access - unpacked 24bit data, use s32_le and s32_be - formats instead - - changed: configure.in cleanup - - changed: the libkvutils binary API has changes so its - version number was changed from 3:0:1 to 3:0:0 - (libkvutils.so.3); this interface will be - frozen together with libecasound.so.8 - - changed: rewritten rtnull implementation; now imitates - soundcard behaviour much more accurately - - changed: numerous portability improvements to the - autoconf scripts - - changed: new rpm-spec file; libraries are now located - in separate rpm-packages - - changed: ecasound-config renamed to libecasoundX-config - - changed: ecasoundc-config renamed to libecasoundcX-config - - changed: libecasound headers are now installed to - incdir/libecasound, similarly libecasoundc headers - to incdir/libecasoundc - - changed: plugin directory name from prefix/lib/ecasound-plugins - to prefix/lib/libecasoundX-plugins, where X is - the library interface number - - fixed: -[io]:alsaplugin,x,y didn't work with latest ALSA - 0.9betaX releases - - fixed: serious bug in setting up ALSA 0.9.x buffering params - - fixed: rare bug with sampling rate changes - - fixed: autoconf 2.5x fixes [iondiode] - - fixed: typeselect - opening and closing a typeselect - device multiple times caused a seg.fault - - fixed: some ECI apps dumped core when executing their - first command - - fixed: after mp3/ogg/mikmod/timidity objects had reached - finished state, playback couldn't be started - without doing a disconnect-connect - - fixed: better handling of situations where JACK server - is abruptly shutdown and then restarted - - fixed: sometimes an incorrect length-field was written to - newly created wav-files - - fixed: problems with using ewf-files with doublebuffering - - fixed: loop devices didn't work; resulted in 'explicit - exception' errors - - fixed: configure failed if neither ncurses nor termcap - was installed - - fixed: compile failed if ALSA was not installed (even - with --disable-alsa) - - fixed: if compiled with --with-largefile, when closing - output wav files, riff header block was written - over start of audio data - - fixed: -eemb wasn't working properly, this broke the - 'metronome' preset - - fixed: recording offset not set when not in - multitrack mode - - fixed: incorrect parsing of wav headers on big-endian - machines - - fixed: various small fixes to make ecasound compile - with Sun's Workshop6 C5.2 C++ compiler under - 64bit Solaris 2.8 (sparc ultra-250) - - fixed: ecasoundrc - ext-cmd-text-editor and - ext-cmd-wave-editor were incorrectly parsed - - fixed: cs-edit didn't preserve chainsetup position - - fixed: cs-edit discarded all changes if the original - chainsetup was connected but the resulting - setup was not valid for reconnection - - fixed: -klg didn't work as documented -16012002 (v2.1dev7) - - edi-entries: edi-12 - - added: a watchdog thread that handles thread cleanup; - this is needed especially for audio and chainop - objects which create their own threads (like jack) - - changed: unification of interactive and passive - modes; running ecasound without -c is now - pretty close to "echo run | ecasound -c cmds" - - changed: if an invalid chainsetup is given on the command - line, and -c is given, ecasound will print an - error but will not exit as it did before; you - can continue editing in the ia-mode to check - what was wrong in the setup - - changed: compilation of eca-iamode-parser.cpp is now - significantly faster and takes less resources; - this should fix problems with compiling ecasound - on machines with <256MB of memory - - fixed: audio-manager.h was missing from the dist-package - - fixed: critical bug that prevented writing to - double-buffered non-realtime output objects - - fixed: chainsetups with multiple controller objects of - the same type didn't work in 2.1dev6 [jesse] - - fixed: edi-12 - multichannel, noninterleaved ALSA 0.9 input - and output not working properly -22122001 (v2.1dev6) - - edi-entries: edi-8, edi-11, edi-17 - - note: review of all samplebuffer-related code; - lots of code-cleanups and minor improvements - - added: edi-11; hierarchy-based config file system; - default values now stored to - '{prefix}/share/ecasound/ecasoundrc' while - individual values can be overridden in - '~/.ecasound/ecasoundrc' - - added: bitrate (kbps) params to mp3 and ogg outputs - - added: initial JACK support; enable by giving - --with-jack=install_prefix configure option - - added: edi-8; ia-mode - support for parsing args - containing white-space; either by quoting - with ("a token") or backslash espacing - (a\ token) [junichi] - - removed: ecasoundrc - 'user-resource-directory' tag - removed; user-specific preset/oscillator - definition directory now '~/.ecasound' - - changed: ecasoundrc - to avoid versioning conflicts, - all 'ext-*' tags are renamed; see ecasoundrc(5) - - changed: 'make install' will now overwrite old - data files ({prefix}/share/ecasound/*) - - fixed: problems with automake1.5 - - fixed: eiam - 'ao-get-position' returned an integer - value instead of a float as it should - - fixed: bugs with combining -ei and LADSPA plugins - - fixed: 2.1dev5 wrote broken wav-headers - - fixed: minor changes to posix signal handling - - fixed: seg.faults with -ei:x where x < 50 -05122001 (v2.1dev5) - - added: docs - Documentation/manpages.html - - added: ecalength - -su option added [smassy] - - added: experimental support for largefiles (>2GB); - enabled with --with-largefile configure option - - changed: most preset names changed in 'effect_presets' - - changed: ecasoundrc - new defaults for mp3 and ogg - output - - changed: unified kvutils build process; added separate - libkvutils_debug target; CXXFLAGS shared with - ecasound build configuration - - fixed: processing didn't stop with setups that had loop- - devices connected to multiple input objects - - fixed: using loop devices in setups with non-default - internal sample rate could cause unwanted - resampling - - fixed: -kog and -f were broken (since dev4) - - fixed: bugs in passing audio format params to - mp3 and ogg encoders; note! update your - ~/.ecasoundrc to match the new defaults, - see ecasoundrc(5) man page - - fixed: ecasound wrote to ewf-files opened in read-only mode - - fixed: work-around for environments without the C99 stdint.h - header file [anarcat] - - fixed: eiam - problems with 'cs-set-position-samples', - 'cs-rewind' and 'cs-forward' with unconnected - chainsetups -31102001 (v2.1dev4) - - added: eiam - 'cs-option' commmand; although explicit use - of cmd-line options as iactive-mod commands (like - "-i:file.wav") is still supported, "cs-option - -i:file.wav" is now the preferred syntax - - removed: ecasound FAQ file - it only contains about - a pageful of useful text - I moved that - precious piece of content to the user's - guide :) - - changed: uses of '-i' an '-o' replaced with 'ai-add' - and 'ao-add' in ECI documentation and - code examples in 'ecasound/examples' - - changed: user's and programmer's guides updated - - changed: bug-alert; major rewrite of ecasound's - internal object factory code - - changed: eiam - output of aio-register, cop-register, - ladspa-register and preset-register commands - - fixed: multitrack mode was not properly detected if - buffering mode was selected explicitly (-B) - - fixed: eiam - minor 'cs-edit' bugs fixed - - fixed: 'make install' failed if srcdir != objdir - - fixed: didn't work with ALSA +0.9b8 CVS-tree - - fixed: additional noises when mixing mono and stereo - streams in ecasound chains - - fixed: better handling of situations where ecasound - can't execute ogg123 for ogg input -21102001 (v2.1dev3) - - note: major changes to effect preset system which - break some old preset definitions - - edi-entries: edi-3 - - added: ecasound-config - --ldflags and --prefix - - added: engine profiling info (printed to stderr) - - added: -z:multitrack, -z:nomultitrack for forced enabling - and disabling of multitrack-mode - - added: variable-like preset parameters; it's now possible - to bind one preset parameter to multiple chainops' - parameters (control multiple settings with one - parameter) - - added: support for describing preset parameters (edi-3) - - changed: pyecasound - makefile-hack that allows pyecasound - to work even though compiled against libecasound - and libkvutils that are not installed to - a directory listed in /etc/ld.so.conf - - changed: db-subsystem - is put to sleep more - aggressively, which should further decrease - its cpu-load - - changed: db-subsystem - runs once again under sched_fifo - scheduling if -r is enabled - - changed: ALSA xrun reports are now printed to stderr - instead of ecasound debug-subsystem - - changed: -B:rt selected as the default bmode for - multitrack-setups (instead of -B:lowlatency) - - changed: preset definitions in 'effect_presets' changed - to take advantage of the preset system improvements - - fixed: major bugs in interpreting LADSPA plugin - parameter hint flags - - fixed: a nasty bug in bufmode activation code prevented - -kos, -kl, and others from working properly - - fixed: loop devices didn't work well with -z:db; fixes - ecasound testsuite case con_test1-8 - - fixed: memory leak in LADSPA handling code; was triggered - by recent versions of ecamegapedal - - fixed: pyecasound - make target 'install-exec-hook' failed - if --disable-pyecasound was given to configure -14102001 (v2.1dev2) - - added: ecaplay - -k, -d and -h options, see 'man ecaplay' - - added: eiam - ai-get-length-samples, ao-get-length-samples, - cs-get-length-samples, cs-set-length-samples [smassy] - - added: support for variable length buffer's for ALSA 0.9 - output (required by -ei:xx type effects) - - changed: tuned prefill-parameters for double-buffering - - changed: when saving chainsetups, if no parameters - are overridden, buffermode definition (-B) is - saved instead of individual parameters - - changed: yet more changes to the multitrack-mode - - changed: eiam - output of *-status commands - - fixed: -r option wasn't saved to chainsetups (used - to be a session-level option) - - fixed: typeselect problems when used for outputs - - fixed: system lockups with -B:rtlowlatency and - rt-object-only chainsetups - - fixed: misplaced tab prevented eci.py from working - with python 2.1 (nested scopes) - - fixed: if a monitor track input ended before recording - stopped in multitrack mode and -z:db was enabled, - it continued producing unwanted noise to the - monitor output - - fixed: eiam - ladspa-register output had plugin names - and descriptions mixed -09102001 (v2.1dev1) - - added: chainsetup parser prints a warning if an unknown - buffering mode is given to -B:mode - - changed: 'rt' buffering mode is preferred over - 'rtlowlatency' if no chain operators are - present, and multitrack mode is not active - - changed: more improvements to double-buffering - - fixed: critical bug when running in -B:rtlowlatency - mode (caused system-lockups with ALSA 0.9.x - oss-emulation) - - fixed: explicitly specifying -z:nointbuf had no - effect - - fixed: setting double-buffer length didn't have - any effect (given either in bmode defaults - or as -z:db,dbsize) -06102001 (v2.1dev0) - - edi-entries: edi-2, edi-6, edi-10, edi-15 - - added: more recent config.guess and config.sub to - the dist package [juekawa] - - added: new feedback-% param to -etd effect, doesn't - affect old presets using -etd [smassy] - - added: ALSA device name 'default' is used if no - other name is given ('-o:alsa' is equivalent - to '-o:alsa,default') - - added: special case for mapping "ecasound file.ecs" - to "ecasound -s:file.ecs" - - added: implementation of edi-6; the -z:db - is now completely transparent to other - parts of ecasound - - added: eiam - new commands: cs-set-position-samples, - cs-get-position-samples, ai-set-position-samples, - ai-get-position-samples, ao-set-position-samples, - ao-get-position-samples - - added: edi-15 - '-B' option for selecting default - buffering mode (see ecasound man page) - - added: edi-15 - ecasoundrc bmode-defaults options; - obsoletes old default-buffersize, etc options - - added: various improvements to multitrack sync-mechanism - to make it work reliably in all buffering modes - - added: ladspa.h added back to distribution; it is however - not installed to incdir/ecasound/ladspa; also - already installed ladspa.h is preferred over - the local header file version - - added: S.Massy's ecalength added to ecatools - - see ecalength(1) manual page (edi-10) - - added: new 'typeselect' audio object type that can - be used to override the object type; see - man ecasound(1) for details - - changed: library version changed to 8.0.0 - - changed: use of kvutils/definition_by_contract - dropped; more lightweight kvutils/dbc.h - will be used from now on - - changed: more strict option parsing; now a warning - is printed if an unknown option is seen; - parser also won't accept known options - with invalid or incorrect parameters - - changed: use of libstdc++ namespace now explicitly - marked using the 'std::' prefix [rpolton] - - changed: new layout for saved ecs-files - - changed: docs - converted ecasound user's and - programmer's guide from yodl to latex - - changed: shocking changes to startup printouts :) - - fixed: gcc3.x fixes to ALSA 0.5.x plugin [juekawa] - - fixed: problems with ALSA 0.9beta7 (dlopen() issue) - - fixed: minor samplerated bug with LADSPA plugins - - fixed: gcc3.x failed on certain glibc2.1 headers - if optimization was enabled (-O2) - - fixed: pyecasound linking failed in certain - circumstances - - fixed: ecasound.spec - dropped the hardcoded python - module path that was passed to configure - - fixed: seg.fault if opening wav/raw files for - output failed for some reason (access - denied, etc) - - fixed: non-zero defaults for -r:x and -z:db,y [smassy] -16012002 (v2.0.4) -** stable release **- - - edi-entries: edi-12 - - added: docs - Documentation/manpages.html - - fixed: ecasound.spec - dropped the hardcoded python - module path that was passed to configure - - fixed: seg.fault if opening wav/raw files for - output failed for some reason (access - denied, etc) - - fixed: misplaced tab prevented eci.py from working - with python 2.1 - - fixed: major bugs in interpreting LADSPA plugin - parameter hint flags - - fixed: memory leak in LADSPA handling code; was triggered - by recent versions of ecamegapedal - - fixed: edi-12 - multichannel, noninterleaved ALSA 0.9 input - and output not working properly -28092001 (v2.0.3) -** stable release **- - - added: more recent config.guess and config.sub to - the dist package [juekawa] - - changed: -z:intbuf made the default once again - - changed: ecasoundrc - default-to-internal-buffering - renamed to default-to-max-internal-buffering - to avoid conflicts with the old defaults - - fixed: gcc3.x fixes to ALSA 0.5.x plugin [juekawa] - - fixed: problems with ALSA 0.9beta7 (dlopen() issue) - - fixed: minor samplerated bug with LADSPA plugins - - fixed: gcc3.x failed on certain glibc2.1 headers - if optimization was enabled (-O2) - - fixed: pyecasound linking failed in certain - circumstances -17082001 (v2.0.2) -** stable release **- - - added: current position tracking to loop devices - - added: more verbose xrun info from ALSA 0.9.x devices - - added: info about the new perl bindings to ECI API docs - - added: Eric Tiedemann's alternative Python ECI - interface, eci.py, added to pyecasound [est] - - added: support for gcc 3.0 [juekawa] - - changed: improved configure checks for python include - and library directories - - changed: -tl now works without -t - - changed: new algorithm for selecting initial param - values for LADSPA plugins - - changed: update ogg input and output support to - work with ogg vorbis 1.0rc2 - - changed: changed some of the returned error codes - - fixed: selecting a non-existant chainsetup could crash - ecasound - - fixed: --enable-audiofile actually disabled the use of - libaudiofile (!) - - fixed: ecaplay - if ecaplay is unable to play a file, - instead of exiting it now skips to the next file - - fixed: giving a non-integer number of delays to -etd - caused a seg.fault - - fixed: eiam - issuing copp-select + copp-get caused - a crash if no cop was selected - - fixed: bugs in handling infinite length ewf sources - - fixed: --disable-oss still required to sys/soundcard.h - to be present [rob] - - fixed: bug in sending MIDI-MMC messages [robstr] - - fixed: bug in ecasoundc cleanup routines [rjpoelstra] -05062001 (v2.0.1) -** stable release **- - - added: ecasoundrc - default-to-internal-buffering; select - the default between -z:intbuf and -z:nointbuf - - added: alternative C ECI implementation providing reentrant - access to the library; the new routines have a '_r' - postfix and are located in libecasoundc [ajeanneau] - - changed: completely rewritten mp3 header parsing; should - fix most of the compatibility problems - - fixed: disk buffers weren't properly flushed in -z:db mode - when changing or setting processing position - - fixed: bugs in assigning LADSPA plugin audio ports to - ecasound chain channels - - fixed: configure script failed if arts was installed - without the devel files (arts-devel) - - fixed: bug in the MIDI-server code caused core dumps in - certain situations - - fixed: bug in querying -klg parameter status - - fixed: eiam - giving certain invalid arguments to 'cop-add' - and 'ctrl-add' crashed ecasound - - fixed: bug in closing .raw files [smassy] - - fixed: eiam - cop-inxed-select renamed to cop-index-select - - fixed: bugs in loop device channel handling - - fixed: changing internal sample rate caused problems to - the noise gate effect (-enm) -02052001 (v2.0.0) -** stable release **- - - added: -klg - a generic linear envelope; a controller source - that can be used to map custom envelopes to chain - operator parameters [artham] - - fixed: segfaults when trying to access non-existing preset - parameters - - fixed: segfault if tried to copp-get without first - selecting a parameter with copp-select - - fixed: few bugs in ewf looping routines - - fixed: 'make uninstall' forgot some files and dirs - - fixed: bug in ALSA 0.9.x xrun handling -24042001 (v1.9dev6) - - added: eiam - cs-setpos, cs-set-position; aliases for setpos - - added: eiam - cs-getpos, cs-get-position; aliases for getpos - - added: eiam - cs-rewind and cs-forward; aliases for rewind - and forward - - added: eiam - cs-get-length; alias for get-length - - added: ecatools - repeated ctrl-c causes ecaplay to exit - immediately (like mpg123) - - added: MIDI options now properly saved to ecs files - - added: eiam - c-index-select, c-iselect, cs-iselect, - cs-list, ai-list, ao-list, ai-iselect, ao-iselect - - added: eiam - cop-index-select, cop-iselect as aliases for - cop-select - - added: eiam - copp-index-select, copp-iselect as aliases for - copp-select - - added: eiam - ctrl-index-select, ctrl-iselect as aliases for - ctrl-select - - added: eiam - ai-get-format and ao-get-format - - added: eiam - cop-selected, copp-selected and ctrl-selected - - added: eiam - cop-list, copp-list, ctrl-list - - removed: because of the continuing licensing problems, - ladspa.h was removed; to compile ecasound with - LADSPA support, the LADSPA SDK has to be installed - - changed: eiam - separate commands sets for operating on audio - inputs (ai-) and outputs (ao-); affects all aio-* - commands except aio-register and aio-status - - changed: eiam - dump-aio-* separated into dump-ai-* and - dump-ao-* - - changed: eiam - cs-length renamed to cs-set-length - - changed: updated ecafixdc and ecanormalize to use the new - temp file creation routines - - changed: -z:nointbuf is now the default; use -z:intbuf to - enable the old default behaviour - - changed: eiam - ai-index-select and ao-index-select now - take an integer parameter - - changed: eiam - c-name renamed to c-rename - - changed: eiam - cs-set renamed cs-set-param - - changed: eiam - cs-format renamed cs-set-audio-format - - changed: eiam - cs-loop renamed to cs-toggle-loop - - fixed: small bug fix to ALSA 0.9.x support - - fixed: eiam - ctrl-remove bug fix, take two :) -22032001 (v1.9dev5) - - added: eiam - new aliases 'getpos', 'c-set-position', - 'aio-set-position', 'aio-getpos' - - added: eiam - 'int-cmd-list', 'int-version-string'. - 'int-version-lib-current', 'int-version-lib-revision', - 'int-version-lib-age' - - added: eiam - added a section about 'realtime commands' - to ecasound-iam(1) man page - - changed: new system for creating temporary files; - all temps are put into a separate directory; - $TMPDIR and $TMP are used if available, otherwise - defaults to /tmp - - fixed: mp3 output broken - - fixed: more zombie-problems with mpg123, lame, ogg123 - and others - - fixed: eiam - 'fw' and 'rw' commands didn't work properly - if -z:db was enabled and audio object sample rate - was different than internal sample rate - - fixed: eiam - 'ctrl-remove' removed the selected chainop, - not the controller as it should have - - fixed: eiam - seg.fault when using 'cs-edit' to configure - a connected chainsetup -06032001 (v1.9dev4) - - added: -C - disable interactive mode; reverse op. for -c - - added: -X - open outputs for updating; rev.op. for -x - - added: -r:-1 to disable raised-priority mode - - added: -z:nopsr, -z:noxruns and -z:intbuf ; rev.ops for - existing -z options - - added: 'user-resource-directory' define to ~/.ecasoundrc; - see ecasoundrc(5) for details - - changed: ecasoundrc - the default midi-device has to be - given using the new 'type,device' syntax; defaults - to 'rawmidi,/dev/midi' - - changed: man pages are now distributed in nroff 'man' format - - changed: audio object regexps are now case insensitive - - for instance both file.mp3 and file.MP3 are now - recognized as mp3 files - - fixed: mpg123 instances weren't always properly cleaned - - fixed: loop-device code wasn't working - - fixed: more ewf-fixes - - fixed: removal of static object maps might cure some - C++ compatibility problems (no user-visible changes) - - fixed: if connected, trying to remove the last chainsetup - failed (possible core dump if debug disabled) - - fixed: when used as inputs, 'null' and 'rtnull' now produce - silence instead of random data (=noise) -02032001 (v1.9dev3) - - added: ecaplay - ctrl-c skips to the next file - - changed: -Md syntax to '-Md:rawmidi,device_name', where - 'rawmidi' specifies the type while 'device_name' - refers to a file/device name - - fixed: MIDI-thread hang when exiting ecasound - - fixed: various ewf-related fixes - - fixed: eiam - rounding errors with 'rw' and 'fw' commands - - fixed: ecaplay - seg.faults when playing multiple files - - fixed: object cleanup was not properly done if ecasound - received signals while multiple threads were - running ("pure virtual method called" warnings) -14022001 (v1.9dev2) - - added: -z:nointbuf - minimize the use of internal buffering - done by rt-devices - - added: -z:xruns - stop processing if an xrun occurs - - added: '--disable-ncurses' configure switch; ncurses/termcap - is still required during compiling, but with this, - ncurses/termcap is ignored during linking - - added: -Md:device option for specifying MIDI-devices - - added: -Mms:device_id; send MMC start/stop to MIDI devices - - added: -Mss; send MIDI-start/stop (note! MIDI-clock is - not sent) - - added: support for ALSA 0.6.x named pcm-devices; the new - syntax is '-[io]:alsa,pcm_name'; alternatively, - '-[io]:alsahw,card,dev,subdev' and '-[io]:alsaplugin, - c,d,sd' can also be used; doesn't affect 0.5.x and - older ALSA plugins - - added: eiam-cmds; cs-is-valid - - changed: support for -z:nointbuf to OSS-devices (/dev/dsp) - and ALSA 0.5.x plugin - - fixed: severe bugs with -km (midi-routines) -07022001 (v1.9dev1) - - notice: new version numbering scheme - - added: eiam-cmds; set-position, get-position, get-length, - cs-connected, cs-selected, engine-status, - aio-get-position, aio-get-length, aio-selected, - ctrl-select, ctrl-remove, cop-select, copp-select, - copp-set, copp-get, c-list, cs-list - - added: eiam command return type documentation to - ecasound-iam man page - - added: ecasound detects all eiam return types and - automatically prints their values after commands - are issued - - added: example code (under ./examples) - ecidoc_example.c, - ecidoc_example.cpp, ecidoc_example.py, normalize.py - - added: -kog - a new generic oscillator - - added: lots of new documentation - check the examples page, - user's guide and the ecasound faq - - added: better handling of output error conditions (out of - disk space, etc) - - added: -eS - audio stamper - - added: -ksv - control source that analyzes audio stamp - volume statistics and creates control data from - the results - - added: -z:nodb - disable double-buffering - - removed: eiam-cmds; u, a, cstatus, l, fstatus, estatus - - changed: -kf - 'mode' parameter added - - changed: format of the file 'generic_oscillators' - - changed: ECI - last_list_of_strings() to last_string_list() - - changed: the way gate operators work; instead of muting - the chain, they now truncate the passing buffers - - in future, amplify+controller (-ea + -k) - combinations can be used in the same manner as the - old gate operators - - changed: 'ecasound-config --flags' now prints includedir - instead of includedir/ecasound - - changed: updated ALSA 0.6.x support to match CVS-20010122 - - changed: a better implementation of MIDI i/o routines - - fixed: "-x -i file.ext" style cmd-line arg sequences weren't - parsed correctly [jhall] - - fixed: ECI - command_float_arg() was broken (all languages) - - fixed: when exiting console-mode ecasound with "quit", - ecasound object weren't properly destructed causing - all kinds of weird behavious (especially with wav- - files) - [smassy] - - fixed: more FreeBSD 4.x related fixes [beaupran] - - fixed: ogg vorbis output fixes [nolan_d] - - fixed: gcc 2.96 (RH7.0) related fixes [swharris] - - fixed: ewf-file parsing not working [smorris] -07122000 (v1.8.5d15) - - added: tremolo effect (-eemt) [rcs] - - added: -z:db; i/o double buffering layer is back! - - after complete rewrite, db-mode now supports all - non-realtime audio objects, and works both for - input and output - - added: default-double-buffer-size added to ~/.ecasoundrc - - added: double buffer size can be given as the 2nd - argument of -z:db,dbsize - - added: optional argument for -r:sched_priority; specify - the static rt-priority; see ecasound(1) - - added: default-schedpriority added to ~/.ecasoundrc - - added: 32bit support for OSS/Linux - - added: comments lines (#-prefixed lines) allowed when - loading chainsetups from file - - added: ecatools - ecasignalview added to the package; - see ecatools(1) man page for details - - added: new modules - libecasoundc and pyecasound - - added: --disable-pyecasound configure switch - - added: './contrib' and './examples' directories added - to the distribution package - - added: ecasound control interface documentation added - - see 'Documentation/programmers_guide/eci_doc.html' - - added: eiam - new commands; c-selected - - added: extended support for parameter descriptions; - all LADSPA parameter hints now supported - - added: support for result paramerers, ie. values resulted - from processing/analyzing - - added: ECI - error() added - - removed: the "LADSPA/" prefix removed from plugin labels - - removed: support for underscores in EIAM-commands - - changed: more intelligent handling of resource files - (for instance ~/.ecasoundrc and preset files) - - changed: output produced by -ev - - changed: updated ALSA 0.6.x support to match pcmfinal-state - - changed: minor changes to multitrack sync code; should - now be even more accurate - - changed: triggering of realtime outputs; now all rt-outputs - are prefilled with two buffers before triggering - - changed: Mandrake and PLD Linux RPM-spec files moved into - the new './contrib' directory - - changed: -ev and -ezf now report their results as - output parameters (normal chainop params) - - fixed: nasty bug in effect preset mapping - - fixed: -ei:0 caused problems - - fixed: cdr-file endianess (should be _always_ big endian) - - fixed: yet more fixes to mono mp3 input handling - - fixed: input problems (easily triggered by using -sr) - with .mp3, .mid and mikmod modules - - fixed: c-setpos didn't work if chainsetup wasn't connected - - fixed: commas in descriptions of LADSPA plugin parameters - confused ecasound, and usually ended up crashing - (triggered at least by the hermes filter) -07112000 (v1.8.4d15) - - added: pulse gate (-eemp); can be used to generate a - metronome signal [rcs] - - added: support for preset parameters - see file - 'effect_presets' for examples [artham] - - added: support for MIDI files using Timidity++ - - added: input and output of Ogg Vorbis files (.ogg) using - ogg123 and vorbize - - added: version control to internal plugins; when compiling, - libecasound libtool interface number is stored to - the plugin object files - - added: updates and additions to ecasound programmer's guide - - added: support for noninterleaved streams to ALSA 0.6.x plugin - - added: 4th parameter to -f, 'i' (default) indicates interleaved - stream format while 'n' refers to noninterleaved - - added: -D option; prints debug messages to stderr - - removed: -m:mthreaded and -z:db (obsolete) - - changed: tries to load all internal plugins even if some - plugins were disabled during compile-time; this - makes it possible to have multiple versions of same - plugin tupe (for instance, plugins for different - ALSA versions, etc) - - changed: ecasoundrc - mikmod-path and -args combined into - more general mikmod-cmd - - fixed: compile time problems under Solaris 2.6 and FreeBSD - 4.1 [beaupran, rcampbel] - - fixed: ncurses fixes (the ever-bold bug) [artham] - - fixed: cs-loop seg.faulted - - fixed: stripped libtool version info from plugins [wrobell] - - fixed: configure-time relocations didn't affect the default - paths of effects presets and LADSPA plugins [juekawa] - - fixed: invalid/non-existant files caused problems for all - utils in ecatools package - - fixed: sync-related ALSA 0.6.x fixes - - fixed: better handling of mp3, ogg, timidity and mikmod - related errors - - fixed: -sr:srate didn't work (broken in 1.8.3d15) - - fixed: problems with ALSA 0.6.x pcm plugins -26092000 (v1.8.3d15) - - changed: code for parsing command-line arguments rewritten; - now reports about invalid arguments - - changed: default precision when printing time in seconds - changed to 3 (msec precision) - - fixed: ALSA 0.6.x updates - - fixed: few bugs in aRts plugin -16092000 (v1.8.2r14) -** public release **- - - added: --enable-alsa-rawmidi configure option - this is a - temporary solution for supporting ALSA rawmidi until - we have a proper plugin-based MIDI-subsystem - - fixed: some broken mp3 headers caused ecasound to misinterpret - mp3 sampling rate - - fixed: problems when handling mp3 files with white-space in - the filename [rsassman] - - fixed: incorrect riff-wave header bug fixed [artham] - - fixed: in some cases, controllers weren't parsed correctly - - fixed: annoying clicks with phaser, flanger and chorus -01092000 (v1.8.1d14) - - notice: all qt-related stuff put to separate packages - - added: support for internal plugins; modules using external - libraries (ALSA, aRts, libaudiofile, etc) are now - dynamically loaded on runtime (no unnecessary - dependencies); installed by default to - (prefixdir)/lib/ecasound-plugins; see also - ecasoundrc(5) man page for related entries - - added: new ecasound-plugins rpm package - - added: mp3 channel-count and sampling rate from mp3 header - - added: notifies user if internal-plugin directory isn't found - - removed: support for native ALSA rawmidi temporarily removed - (while waiting, use ALSA's OSS-emulation) - - changed: aRts support enabled by default - - changed: behaviour of -ete effect's wet-% parameter - - fixed: system readline related fixes (wrobell) - - fixed: ewf - crashed if looping was enabled and - 'start-position' > 'length' - - fixed: few ewf output fixes - - fixed: compile problems with ALSA 0.5.x - - fixed: ecatools hang if interactive-mode enabled by default - - fixed: ALSA 0.6.x support working again -25062000 (v1.8.0d14) - - added: ecaconvert - a new ecatools app; converts a set of - files to target file format - - added: support for ALSA 0.6.x (plugin and direct) [jhall] - - added: ia-mode - 'cs-list', 'c-list', 'aio-list', - 'cop-list'; nothing new, but some might find these - a bit more intuitive to use than various status cmds - - added: more info about audio object status - - added: --enable-sys-readline (compile against already - installed libreadline) [wrobell] - - added: rpm-spec file for PLD-Linux - ecasound.pld.spec [wrobell] - - added: support for destdir env.variable [wrobell] - - added: support for float samples (-f:f32_le and -f:f32_be) - - added: support for IEEE754 wav files (float) - - added: --enable-arts - use aRts daemon for audio input and - output, see ecasound(1) man page for more info - - added: limiter effect (-eal:limit-%) - - changed: major changes in source tree organization - - changed: mp3 input and output now possible with all decoders - and encoders which support standards i/o streams; - still defaults to mpg123 and lame - see - ecasoundrc(5) for details - - changed: qtecasound - all shortcut keys are now ctrl-some_key -23062000 (v1.7.9r13) -** public release **- - - fixed: stdin, stdout and '-' were all more or less broken - - fixed: loop devices weren't saved correctly -05062000 (v1.7.8r12) -** public release **- - - added: files 'TODO' and 'ecasound.mdk.spec' - - added: support for LADSPA_PATH env.variable - - added: support for multichannel LADSPA plugins - - added: -eli options, select a LADSPA plugin using its - unique id-number - - added: -ete - a new, more advanced reverb (thanks to - Stefan M. Fendt for the algorithm!) - - changed: qtecasound - major layout changes - - changed: ecatools renamed to ecaplay, ecanormalize and - ecafixdc - - changed: updated the 'INSTALL' file - - fixed: qtecasound - bugs in debug output - - fixed: some minor bugs in LADSPA support - - fixed: compile problems with 2.95.x - - fixed: errors loading some LADSPA plugins - - fixed: the ".mp3.wav" bug - - fixed: config.h fixes -03052000 (v1.7.7r11) -** public release **- - - added: --version and --help command-line options (for GNU - compliance) - - changed: documentation updates - - fixed: some compile-time problems - - fixed: chain-muting wasn't working properly -26042000 (v1.7.6d11) - - added: new input/output device 'alsaplugin' - similar to - normal ALSA pcm-devices, but uses the pcm-plugin - layer (automatic sample rate and format conversions) - - added: safety-checks against invalid command-line parameters - and ia-mode commands (adding inputs, outputs, - parameter control) - - changed: much faster communication between engine and ui - - changed: qtecasound - replaced some old widgets with - new libqtecasound widgets - - changed: ia-mode - c-clear now works on-the-fly - - fixed: qtecasound - core dumps when removing audio objects - - fixed: qtecasound - many minor bugs - - fixed: core dumps when adding parameter controllers for - non-existent chainops - - fixed: include-file problems when compiling in a separate dir - - fixed: problems in mixing multiple mono-inputs -12042000 (v1.7.5d11) - - added: ALSA support for s32_le and s32_be sample formats - - added: numerous fixes and small improvements to ALSA 0.5.x - support - - removed: dynamic loading of ALSA support - as ALSA is - getting bigger and bigger, maintaining dynamic - support has become more and more difficult - - this means that ALSA support isn't anymore included - in binary distribution packages - to get native - ALSA support, you have to compile ecasound from - sources - of course you can always use ALSA's - OSS-emulation layer - - changed: pitch-shifter (-ei) improvements [artham] - - changed: above improvements also affect normal resampling - - changed: ia-mode commands cop-add, cop-remove and ctrl-add - can now be used with connected chainsetups (add - effects on-the-fly, etc) - - changed: updated LADSPA support to v1 -24032000 (v1.7.4d11) - - added: summary info to configure-script - - changed: upgraded LADSPA support to API v1-rel1 - - changed: default directory for LADSPA plugins is now - /usr/local/lib/ladspa (see ecasoundrc(5)) - - fixed: latency-problems with ALSA pcm-loopback - - fixed: thread scheduling problems with '-r' - - fixed: compile problems under Solaris - - fixed: many .ewf bugs - - fixed: compile problems with ALSA 0.4.x - - fixed: few minor bugs in -ev and -ezf -21032000 (v1.7.3d11) - - added: initial LADSPA support (-el), see ecasound(1) man page - - added: 'ladspa-plugin-directory' entry to ~/.ecasoundrc - - added: ia-mode commands 'aio-register', 'cop-register', - 'ctrl-register', 'preset-register', 'ladspa-register'- - these commands list all registered object types - - changed: a more compact command-line help - - fixed: nasty bug when adding effects on-the-fly (caused - infinite recursion inside the object maps) -19032000 (v1.7.2d11) - - added: support for ALSA 0.5.x pcm-loopback - - added: more effect presets - - added: ia-mode - 'aio-select-input' and 'aio-select-output' - - added: ia-mode - dump-* commands, see ecasound-iam(5) for - the details - - removed: /dev/snd/pcmCxDy notation for specifying ALSA - devices - - changed: ia-mode - if aio-add-output is executed without - arguments, the default output is used - - fixed: libqtecasound was compiled even if --disable-qt - was specified - - fixed: qtecasound - libqtecasound header include path - was wrong - - fixed: ia-mode - problems with '_' -> '-' conversions - - fixed: -erc, -erm and -epp didn't work as expected if - both mono and stereo files were present in the - active setup - - fixed: minor bugs in ALSA pcm2 support - - fixed: bugs in OSS capability checking (triggering and - realtime caps), thanks to Rui Sousa for the fix - - fixed: bugs in internal looping -26022000 (v1.7.1d11) - - added: a new effect preset system, see user's guide and - ecasound man page for more info - - added: lots of default presets, see file 'effect_presets' - - added: an allpass filter (-efa) - - added: a comb filter (-efc) - - added: a simple pitch shifter (-ei) - - added: flanger (-etl), chorus (-etc) and phaser (-etp) - - added: a new, faster multi-tap delay (-etm) - - removed: old effect preset files and command line options - - changed: rewrote the normal compressor (-ec), now takes - the threshold argument as percents - - changed: updated Stefan Fendt's rc-lowpass, now a 3rd - stage, 36dB lowpass filter - - changed: parsing of command line parameters - most changes - don't affect the user-interface side - - fixed: ecatools crashed with multiple inputs -17022000 (v1.7.0d11) - - added: qtecasound - chainsetup status - - added: automatic grouping of realtime and non-realtime - audio objects for better performance - - added: two-stage linear envelope (-kl2) - - added: 'run' command to ia-mode - like 'start' but blocks - until processing is finished - - added: '-kx' option - this can be used for controlling - controller parameters with other controllers - - added: ia-mode command "ctrl-status" (controller status) - - added: qtecasound - controller status pushbutton - - added: qtecasound - a nicer looking debug-window - - added: libqtecasound - a new subpackage containing - generic GUI objects - - added: support for chain-to-chain looping, see ecasound(1) - manual page for more info - - removed: qtecasound - waveform view - - changed: ecawave is now the default ext. wave-editor - - changed: all shortcuts are now alt+key combinations - - changed: renamed ia-mode commands "cop-add-controller" - to "ctrl-add" and "cop-remove-controller" to - "ctrl-remove" - - changed: qtecasound - some renamed pushbuttons and - reassigned shortcut keys - - changed: changes in debugging subsystem, affects '-d' - behaviour, see ecasound man page - - changed: rewritten .ewf support with lots of new - features - see ecasound user's guide for more - detailed info - - fixed: qtecasound - position slider wasn't working - - fixed: instead of just outputting raw ANSI-codes, - standard ncurses routines are now used - - fixed: recording from realtime inputs didn't work - when processing length was not set - - fixed: setting processing length didn't work in normal - passive mixing mode (multiple chains) - - fixed: overrun/underrun problems with ALSA 0.5.x -30012000 (v1.6.13d11) - - changed: rtnull reports about over/underruns now - level-4 debug messages - - fixed: some problems in mixmode selection -29012000 (v1.6.12r10) -** public release **- - - added: support for s24_le, s24_be, s32_le and s32_be - sample formats - - added: support for ALSA-subdevices (-o:alsa,card,dev,subdev) - - added: to ia-mode - 'c-deselect', 'c-select-add' - - added: improved multitrack-sync - - added: 'default-double-buffer-size' added to .ecasoundrc - - changed: ALSA pcm2-devices now opened in nonblock-mode - - changed: ecasound can now be compiled in a separate obj dir - - fixed: bugs in channel routing and output mixing - - fixed: delay effects dumped core with mono inputs -14012000 (v1.6.11d10) - - added: -ef4 - 2th-order, 24dB filter which simulates - an analog active RC-lowpass filter - submitted by - Stefan Fendt - - added: support for ALSA 0.5.x (pcm2, no loopback) - - removed: support for ALSA 0.3.1 and older - - changed: 'cs-edit' now possible while processing - - changed: raised-priority mode moved from chainsetups - to session-level (isn't saved to ecs-files, etc) - - fixed: removed the huge delay in (dis)connecting chainsetups - - fixed: 'fw', 'rw', 'setpos' crashed if executed without - parameters - - fixed: under/overrun problems with ALSA drivers - - fixed: stdin/stdout not working - - fixed: c-add and c-select didn't accept multiple parameters - - fixed: problems with -etf memory handling -03012000 (v1.6.10d10) - - added: a realtime null audio device 'rtnull' - simulates - soundcard behaviour (warns about over/underruns) - - changed: 'make install' isn't forced anymore - - changed: mono noisegate (-enm) replaced with a new - multichannel noisegate - - changed: behaviour of -r; now changes scheduling policy - to SCHED_FIFO (realtime) - beware! this gives - better performance, but might cause total - lock-ups if something goes wrong - - fixed: improvements to autoconf scripts; --enable-qt and - --disable-qt now work as expected - thanks to - Vadim Tkachenko for the patch - - fixed: seg.faults with some files when using -z:db - - fixed: many bug fixes to delay effects (-etf, -etr and -etd) - - fixed: nasty bug in ewf-routines - - fixed: double-buffered mode (-z:db) sometimes discarded the - last few bytes before end-of-file -151299 (v1.6.9r9) -** public release **- - - notice: changes in version numbering - - added: linear envelope (-kl), useful for fade-ins/outs - - changed: signal limiting code moved from chains to output - mixing stage - when processing multichain setups, - this is faster and gives more dynamic headroom - - changed: mikmod default args now "-p 0 --noloops" - - changed: many improvements to input double-buffering (-z:db) - and multithreaded mixmode (-m:mthreaded) - - fixed: bug in testing chainsetup validity - - fixed: piping bugs that caused mpg123, lame and mikmod - to hang in some situations - - fixed: mono noise-gate (-enm) wasn't working - - fixed: changes to -s broke -sr in 1.6.8r8 -041299 (v1.6.8r8) -** public release **- - - added: cs-index-select (see ecasound-iam(1)) - - added: more info fiels to cs-status - - added: configure check for Qt version (must be >= 2.x) - - fixed: cs-status didn't show all chainsetups - - fixed: problems with cs-load - - fixed: processing ended prematurely when mixing - multiple chains to one output - - fixed: some uses of C++ namespaces caused compile errors - with older gcc versions - - fixed: in addition to '-s:cs_file.ecs', '-s cs_file.ecs' - is now also accepted -251199 (v1.6.7r7) -** public release **- - - changed: some not-so-important runtime info (opening and - closing devices, etc) is now considered to be - debug info and is not printed by default - - changed: position is printed as a floating-point value - - fixed: qtecasound - lots of bugs -221199 (v1.6.6d6) - - fixed: cs-save and cs-save-as didn't work as expected - - fixed: cs-load didn't work properly -221199 (v1.6.5d6) - - added: safety-checks to prevent users from connecting - invalid chainsetups - - added: underlines are accepted in ia-mode commands - - fixed: problems with -ev - - fixed: minor bugs in audvvio object positioning -191199 (v1.6.4d6) - - added: -erc - channel copy (one-to-one) and - -erm - mix all channels (all-to-one) ; these are - meant for handling multichannel files - - added: -y option - set starting position for last specified - input/output - - added: -t option - set processing time in seconds (makes - multitrack cut&paste possible when used with -y) - - added: -tl option - enable looping (see -y and -t) - - added: ia-mode: cs-length (like -t), cs-loop (like -tl) - - added: you can now pass additional options to external - programs (mpg123, lame, mikmod), specified - in ~/.ecasoundrc - - changed: mute + unmute -> mute (on/off toggle) - - changed: bypass-enable + bypass-disable -> bypass - - changed: minor changes in ~/.ecasoundrc format (see - ecasoundrc(5)) - - fixed: tried to reconnect invalid chainsetups - - fixed: global forward and rewind weren't working - - fixed: dumped core if number of delays (-etd) was changed - during processing - - fixed: gates are working once again - - fixed: minor bugs in output mixing - - fixed: -s option wasn't working properly - - fixed: 8<->16bit conversion - - fixed: bugs in AIFF output -161199 (v1.6.3d6) - - added: new ia-mode commands: aio-forward, aio-rewind, - aio-setpos, aio-index-select and aio-wave-edit - (load currently selected audio object into an - external wave editor) - - added: support for using tracker modules as input - sources - uses mikmod (mikmod 3.1.6 + libmikmod - 3.1.7 or newer required) - - changed: cleaned up the audio object interface - - changed: -f parameter format has changed - instead of - bits, sample type is now specified as a formatted - string ("u8", "s16_le", "s24_le" and so on) - - changed: in precise-sample-rate mode, removed all implicit - sample rate conversions - instead a warning is issued -121199 (v1.6.2d6) - - added: all ia-mode commands now implemented&documented - - added: a little bit of artificial intelligence to command - interpreting :) - as an example, if you want to start - processing but no chainsetup is connected, ecasound - tries to connect the currently selected setup, etc - - fixed: given a certain combination of forward and rewind - commands, processing wouldn't start anymore - - fixed: delay surround mode now works normally - - fixed: ecatools - files not in the default sample format - were not handled properly - - fixed: some bugs in double-buffering - - removed: adding chain operators to multiple chains is no - longer possile - this makes the library interface - more powerful as client programs can have direct - access to chainops they've added (see - eca-controller.h for details) -101199 (v1.6.1d6) - - added: most interactive-mode commands are now implemented - - added: new ia-mode commands: c-mute, c-unmute, c-process, - c-select-all, cs-save-as, - - added: documentation for nearly all implemented ia-mode - commands, see ecasound-aim(1) - - changes: major changes in RPM-packaging - - fixed: a very nasty bug in dynamic ALSA-support - - fixed: some effects caused core dumps (bug in the sbuf - iterator routines) - - fixed: many minor bug fixes - - removed: ia-mode commands: exec, end -081199 (v1.6.0d6) - - added: iactive mode now uses GNU readline for user input - - command-line editing, command history and command - completion (use .inputrc for configuring) - - added: 30-40 new interactive-mode commands - - added: ecasound-iam(1) manual page - interactive mode - documentation - - added: ecasound user's guide and programmer's guide - - added: 'default-to-precise-sample-rates' to ecasoundrc - - whether to ignore sample rate differences (and - possibly avoid resampling), affects OSS-devices, - defaults to 'false' - - added: -z:psr option (see above) - - changed: reimplemented signal handling using POSIX - signal handlers (ANSI interface was used before) - - changed: divided all the bigger modules into smaller - classes and files (these big modules were - causing lots of compiler and resource problems) - - changed: major internal changes (multichannel chain operators, - improved mixing algorithms, etc) - - changed: rewritten mp3-support (still using mpg123 and lame) - - changed: lots of changes in handling external resources - (wave and text editors, mpg123 and lame parameters, - etc.) - see 'man ecasoundrc' - - removed: looping (interactive-mode loop commands) - - removed: 'sfx' command (iactive-mode) -011099 (v1.5.16d6) - - added: changes and additions to libecasound interface are - from now on logged to libecasound/ChangeLog - - fixed: errors in -kf documentation -270999 (v1.5.15d6) - - changed: optimized various engine and effect routines - to improve ecasound's performance with - complex setups - - fixed: "-ev" max-amplitude wasn't reseted - - fixed: some finetuning of ALSA buffer handling -210999 (v1.5.14d6) - - notice: from now on development versions will be marked - with a 'd' in the version number - - added: configure check for libdl library - - added: "-eac:amp-%,channel" channel amplify - - changed: "-ea" to "-eaw", amplify with clipping control - - changed: "-eas" to "-ea", normal amplify -180999 (v1.5.13r6) - - added: -sr:srate option - set chainsetup sample rate - - added: 'default-samplerate' to ~/.ecasoundrc - - fixed: problems with OSS es1370 drivers (thanks to Billy - Biggs for the patch) - - fixed: resonant bandpass wasn't working (-ef1) -140999 (v1.5.12r6) -** public release **- - - fixed: problems with libaudiofile (.aiff and .au/.snd - support) - - fixed: extra noise when upsampling - - fixed: qtecasound - chainsetup's name was changed to - tempfile name if edited with an external editor - - fixed: qtecasound - conflict with Qt-libs when - stopping processing (resulted in abort) -120999 (v1.5.11r5) - - added: ldconfig is now always run after (un)install of - binary RPM packages - - added: if underruns/overruns occur when using ALSA devices, - a warning message is given on exit (stderr) - - changed: gcc's -fomit-frame-pointer isn't used anymore - (caused lots of problems with exceptions) - - fixed: ecasound tried to use ALSA headers even though - --disable-alsa was given (eca-alsa-dyn.h and - eca-midi.h) - - fixed: audiofx_compressor.h tried to include obsolete - error.h header file - - fixed: pan effect (-epp) decreased overall volume level - - fixed: fake-stereo effect (-etf) wasn't working properly - - fixed: "make install" created (prefix)/share/ecasound - with permission mode 644 (only root could access - the directory) - - fixed: some problems with effect option parsing - - removed: simple lowpass filter (-ef2) -070999 (v1.5.10r5) - - added: qtecasound - file dialogs now remember the current - directory - - added: a much more elegant system for dynamically loading - ALSA support - - added: support for ALSA MIDI devices (/dev/snd/midiCxDy) - - changed: rewrote the MIDI-input sybsystem (works better - with multiple controllers) - - fixed: kvutils -package also needed configure script fixes - to recognise FreeBSD's pthread implementation - - fixed: although "make install" worked in all cases, - plain "make" didn't work if installing ecasound - 1.5.x for the first time - - fixed: crashed if you had two chainsetups with ALSA devices - and you tried to delete the other one - - fixed: crashed in some conditions when closing .wav and - .raw files -040999 (v1.5.9r5) - - changed: qtecasound - in all windows with list widgets, - if no item is selected, current item (if any) - is used for all operations - - changed: in most cases, '-r' option (raise priority) isn't - needed anymore (see ecasound and ecasoundrc man - pages for more info) - - changed ecasoundrc - 'x-text-editor-use-getenv' is now - 'true' by default - - fixed: resonant lowpass filter was once again broken - - fixed: configure should now recognise FreeBSD's pthread - implementation (not tested yet) - - fixed: in some rare cases, engine was started in interactive - mixmode while the interface was in passive mode - (-> program started but didn't do anything) -030999 (v1.5.8r5) - - added: '!' shortcut to all windows (keyboard focus to - control panel) - - changed: some Makefile changes for excluding static - ecasound libraries from the binary dist packages - (managed to shrink binary-rpms by nearly a 1MB!) - - fixed: qtecasound - shortcut-key fixes in chainsetup window - - fixed: qtecasound - waveform view positioning is now much - more precise than before - - fixed: qtecasound - core dumps when exiting -020999 (v1.5.7r5) - - added: qtecasound - chainsetup window now has a wave-edit - button which loads the active file into a external - wave editor; defaults to "snd", can be changed by - changing the value of "x-wave-editor" in - ~/.ecasoundrc - - added: qtecasound - support for external text editors - (can be launched from session window) - saves the - active chainsetup to a text file, loads it to an - editor and afterwards updates file's content back - to ecasound - if "x-text-editor-use-getenv true" - is specified in ~/.ecasoundrc, ecasound uses - EDITOR environment variable if it's available, - otherwise value of "x-default-text-editor" is - used ... an of course, default value for this is - the ultimate musicians tool: emacs! ;) - - changed: qtecasound - some minor changes to session and - chainsetup widgets - - changed: .ews format (wave view cache files) has changed, - ecasound can still read the old format - - changed: qtecasound - "activate" button changed to a - "change status" button which rotates through - inactive->active->connected->inactive ... - - fixed: qtecasound - enabling/disabling chains sometimes - resulted in program crashes - - fixed: all structs found in ecasound source code now - use the standard type definations from sys/type.h - (format "[u_]int'bits'_t") - this should solve some - compatibility problems with non-x86 platforms - - thanks for Guenter Geiger for notifying about these - - fixed: a few fixes to the new double-buffering system - - lots of buffer parameter fine-tuning -290899 (v1.5.6r5) - - added: "-z:feature" command line option for enabling - misc features - - added: mmap-based double-buffering now disabled by - default, enable it with "-z:db" or by putting - "default-to-double-buffering true" to your - ~/.ecasoundrc - - added: when upgrading ecasound, new resource values - will be automatically added to your ~/.ecasoundrc - - fixed: crashes when getting error messages from alsa-lib - (for instance when using invalid card and device - numbers) - - fixed: a few Makefile problems in 1.5.x versions - (thanks for Vadim Tkachenko for reporting these) -280899 (v1.5.5r5) - - added: improvements to resource file (~/.ecasoundrc) - handling - resource files can now have comment - lines (lines beginning with a '#'); resource - files are rewritten only if resource values are - changed directly from ecasound; '=' sign can be - used as a name-value separator - - fixed: since version 1.5.2r5, .cdr input/output hasn't - worked (reversed byteorder when reading .crd - files, .cdr output files weren't padded correctly) -270899 (v1.5.4r5) - - added: experimental support for double-buffered - mmap() file i/o (currently implemented - for .wav/.raw input only) - - fixed: thread-priority was always risen (once again) -210899 (v1.5.3r5) - - added: a lowpass filter effect (-ef2); not as good - as the other lowpass filters (-efl and -ef3), but - should be a bit faster - - fixed: 1.5.2r5 was really _slow_ (a file seek bug) -200899 (v1.5.2r5) - - added: "-x" command line option - truncate outputs - - added: sample rate conversion (resampling) - if audio - object's sample rate differs from ecasound's - internal rate the signal gets resampled - (internal rate is currently 44100; can be - changed from samplebuffer.h) - - changed: gcc 2.95.1 is now used when developing - ecasound; precompiled packages require libstdc++ - 2.10.0 (comes with gcc 2.95.1) or newer - - fixed: few minor fixes to the noisegate effect - - fixed: upon creation, more precision is used to print - effect parameters -190899 (v1.5.1r5) - - fixed: problems with filters -180899 (v1.5.0r5) - - added: ecatools package which now consists of programs - ecatools_normalize, ecatools_fixdc and - ecatools_play - see ecatools(1) man page - - changed: ecasound and qtecasound now have their own - source trees; rest of ecasound is compiled - into the libecasound.so shared library - - changed: to make ecasound relocatable, preset files are now - installed to standard data dir (defaults to - /usr/local/share/ecasound) - - changed: lot of source file name changes - - changed: ALSA support (libasound.so library) is now loaded - dynamically at runtime - - fixed: you had to have yodl installed to to install ecasound - man pages -150899 (v1.4.6r5) -** public release **- - - added: qtecasound - along with some other improvements, - waveform widget now uses cache files to store - wave statistics; for file "somefile.wav", cache - file "somefile.wav.ews" is used - - fixed: reading and writing aiff files works again; - some aiff files created with sox still seem to - cause trouble (might be a problem with - libaudiofile) - - fixed: qtecasound - a nasty mutex bug which caused ecasound - to crash if you tried to use a chainsetup which has - more inputs than chains -120899 (v1.4.5r4): - - added: qtecasound - dialogs for adding, removing and - attaching inputs and outputs - - added: support for null inputs/outputs - - added: effect status is now printed when exiting ecasound - (doesn't affect interactive mode) - - added: if OSS drivers for your soundcard don't support - trigger functions, you can disable these with - configure option "--disable-osstrigger" - - added: -ev effect (analyze sample data) now also tells - how much the analyzed signal can be amplified - without clipping - - added: debug level can now be set in iactive mode with - "debug level" command - - changed: qtecasound - shortcuts a, A and ctrl-a now do - the same thing; applies to all shortcuts - - fixed: adding a chain without a valid output resulted in - hangs when using multithreaded mixmode - - fixed: didn't compile with alsa-lib versions older than 0.3.1 - - fixed: "ecasound -h" dumped core -010899 (v1.4.4r4) - - added: qtecasound - now asks for a name when adding chainsetups - - added: qtecasound - adding and deleting chains - - changed: some layout changes -290799 (v1.4.3r4) - - changed: if format supports it, outputs are now opened in - read-write mode; currently supported by .wav, - .cdr and .raw; when you use these as outputs, files - aren't truncated if they exist - - fixed: qtecasound - active chainsetup was always saved even - if some other chainsetup was selected - - fixed: qtecasound - crashed if you changed the active - chainsetup and you had a waveform window open - - fixed: qtecasound - crashed if tried to activate - a invalid chainsetup - - fixed: if you wrote to a output file, its length was - not changed (from ecasound's viewpoint) -270799 (v1.4.2r4) - - fixed: samplebuffer.h still tried to include , - which is both not necessary and a wrong place to - look for it; thanks to Torbjorn Tornkvist and - Xavier Hosxe for notifying me - - fixed: qtecasound - using multithreaded mixmode, changing - chainsetups on the fly caused a lot of problems - - fixed: qtecasound - shortcut keys didn't work with CLI -270799 (v1.4.1r4) - - added: qtecasound - chain widget now monitors effect - parameters - - added: qtecasound - support for double clicks and return - presses for various widgets - - added: qtecasound - some new features to the waveform widget - - changed: from now on, interactive mode isn't automatically - enabled, if a realtime input is specified - - changed: names of some functions (I'm trying to be careful - how I use 'new' and 'add', 'load' and 'open', etc - - fixed: qtecasound - waveform widget crashed qtecasound if - the analyzed file had less than 76800 samples - - fixed: if processing was completed and was restarted without - a rewind/setpos, ecasound crashed/hang - - fixed: raised-priority mode was sometimes enabled even - without the -r option - - fixed: qtecasound - when using multithreaded mixmode, - exiting sometimes resulted in core dump or segfault -250799 (v1.4.0r4) - - added: qtecasound - waveform widget; graphical representation - for input/output objects - - added: qtecasound - chain widget; view chain status - - added: qtecasound - chainsetup widget; status of input, - output and chain objects, enable/disable chains - - added: qtecasound - session-setup widget; load and save - chainsetups, create new ones, etc - - changed: can now be started without a valid chainsetup if - interactive mode is enabled - - fixed: *serious bug* if end of input was reached, - that input remained silent until ecasound was - restarted (has been broken since 1.3.0r3) -240799 (v1.3.3r4) - - added: -n option, sets chainsetup's name -230799 (v1.3.2r4) - - added: a new compressor - thanks for Viktor Endersz for - sending it to me and John S. Dyson for coding it; - it really works like a dream! (option -eca) - - fixed: some fixes to my old compressor (now that we - have a better one, this should be used only if - you really want brutal results :)) - - fixed: due to some changes in ALSA libs, ecasound - wouldn't compile with ALSA versions >0.3.2; - haven't tested it, but should now work with both - new and old ALSA libs -200799 (v1.3.1r4) -** public release **- - - fixed: delay effect was broken; while fixing this I also - added a new surround mode, 2 = stereo-spread - - fixed: more bugs with ALSA and OSS input routines; - did some multitrack recording with both of them - and got suprisingly good results (it seems that - finding the optimal buffer size is the key to success) -190799 (v1.3.0r3) - - added: support for sessions and chainsetups; now you can - store the whole runtime setup to an ascii file and - load it back; the syntax used is exactly the - same as the command line syntax so editing these - saved chainsetup files is easy - - added: "-s[:]filename" command line option for loading - chainsetup files - - added: "load filename" and "save filename" commands to - the interactive-mode (for chainsetups) - - added: support for libaudiofile (SGI audiofile) library; - new file formats: .aiff, .au and .snd; (linking to - audiofile can be prevented with --disable-audiofile - option to the configure script) - - added: -q option (quiet mode), disables all output - - added: support for raw/headerless (.raw) input/output files - - added: support for using standard system input and output - streams (-i:stdin, -o:stdout) - - added: finished the man pages, all important options and - features should now be covered - - fixed: file name ending with a upper-case extension - wasn't recognised - - fixed: when using multithreaded mixmode with complex setups, - threads sometimes went out of sync causing strange - behaviour - - changed: size of sample buffer objects can now be changed - on-the-fly (output files are not aligned to - buffersize anymore) -> this makes ecasound more - usable as a format conversion tool - - changed: compressor wasn't working, decided to code - a new one (still experimental but works better - than the last one) -140799 (v1.2.3r3) - - added: support for .mp2 files - - fixed: still some bugs in selecting mixmode - - fixed: automatic stereo-mono conversion wasn't working - at all (as all chains are internally stereo, this - occured everytime you specified a mono output, even - if the input was mono, too) -130799 (v1.2.2r3) - - added: ALSA devices can now also be opened by specifying - the actual device name (/dev/snd/pcm...) - - changed: default output is now always attached to chain 'all' - - fixed: start/stop/forward/rewind with ALSA-output sometimes - resulted in loud crackle - - fixed: some bugs in the position slider of qtecasound - - fixed: 'noise-gate-mono' effect was rewritten as it didn't - seem to work very well -120799 (v1.2.1r3) -** public release **- - - added: 'make install' now creates /etc/ecasound directory - and copies all the configuration/preset files - to this directory (existing files/dirs are skipped) - - added: lots of crash-guards to command line parsing - - added: frequently-asked-questions file (both txt and html) - - added: new options to the configure script: --disable-alsa, - --disable-oss and --disable-qt - - fixed: bugs in mixmode multithreaded-iactive (crashed - pretty much everytime) - - fixed: estatus output was sometimes pretty messy -110799 (v1.2.0r2) - - added: support for ALSA input/output - - added: a lot of new documentation to the man pages - - added: new configurable options to ~/.ecasoundrc - (default-buffersize, default-to-interactive-mode, - default-to-raisepriority) - - added: finally implemented the 'help' command in - the interactive-mode; also added a prompt, which - should help a bit :) - - added: autoconf and automake additions; now qtecasound is - compiled only if qt library is found, OSS and - ALSA modules are compiled if the necessary - headers and libraries are available - - added: support for single-chain effect presets (-ps command - line option) - - fixed: bugs with OSS-input (device was sometimes closed - multiple times resulting in core dumps) - - fixed: auto-runmode used 'simple-iactive' mixmode - although iactive-mode wasn't set - - fixed: looping wasn't working properly - - fixed: -m option wasn't working - - removed: simple filter effect (not really useful) - - removed: 'Waiting for the processing thread' - messagebox (qtecasound) -100799 (v1.1.8r2) - - fixed: more synchronisation bugs -050799 (v1.1.6r2) - - added: rewrote the man-pages using Yodl; now they're - also available in HTML-format - - fixed: OSS-output module used a non-standard location - for soundcard.h (noticed by D.Phillips) -010799 (v1.1.5r2) -** public release **- - - tested: did some real recording and mixing work with this - version and after a few fixes, everything seems - to work ok - - added: now checks whether a chainop supports parameter - controlling or not - - added: a lot of new documentation (especially to - 'Documentation/examples.html') - - fixed: chain 'all' wasn't working properly - - fixed: multitrack chain synchronization was broken; should - now work even with complex setups - - fixed: a serious bug in OSS-input: ecasound always threw - an "read-error" exception when trying to read from - OSS input - - fixed: analyze effect (-ev) output didn't work -300699 (v1.1.4r1) -** public release **- - - notice! first release; should be considered beta - - fixed: if mp3 files had white-spaces in their filenames, - filenames weren't interpreted correctly -250699 (v1.1.3r0) - - more bug fixes - - tested rpm-packaging and seemed to work ok -230699 (v1.1.2r0) - - bug fixes -190699 (v1.1.1r0) - - fixed: some bugs in exception handling - - qtecasound: added a not-implemented message screen! ;) -180699 (v1.1.0r0) - - all major features of ecasound v0.9.x and earlier are - now implemented to the new program design - - support for gates (time crop gate and threshold gate - implemented) - - support for ~/.ecasoundrc configuration file - - support for GNU autoconf and automake - - added some new command line shortcuts - - qtecasound: added a position slider widget (displays and - enables to change current position) - - qtecasound: removed waveform and volume meter widgets; - they will reappear in the "Chain Setup" - window (still under work) -160699 (v1.0.8r0) - - mp3 output support (using lame) -150699 (v1.0.7r0) - - fixed: waveform -output now works with all inputs - (for instance showing mp3 waveforms is now possible) - - routines for interfacing with mpg123 recoded; - a lot more stable than before - - qtecasound now uses the new qt library (v2.0beta2) - - support for various controllers (sine oscillator, MIDI - cc-controllers, generic oscillator etc) - - fixed: when ecasound was stopped with ctrl-c or kill, - proper cleanup wasn't done -100699 (v1.0.6r0) - - a new wave-form view -080699 (v1.0.5r0) - - multitrack-mode sync-routines rewritten and tested - - various mixmode bugs fixed -040699 (v1.0.4r0) - - simple graphical vu-meters added to test the new io-system -030699 (v1.0.3r0): - - multithread-io mode: one chain can be processed and mixed - while waiting for getting data from other chains -020699 (v1.0.2r0): - - a better way to deal with system endianess - - new chain-operator routines; unless there are no no chainops, - signal is always put through a clip control routine which - ensures that all sample values fit the value range -010699 (v1.0.1r0) - - fixed a _lot_ of bugs -310599 (v1.0.0r0) - - changed version numbering - - major changes in nearly all program modules aiming at - a more modular and abstract design - - fix: resonant_bandpass_filter wasn't working anymore -190599 (v0.9.10) - - mp3 support using mpg123 (readonly) - - X-Window GUI added (using Qt-libraries) -260499 (v0.9.x) - - support for multitrack recording - - independent effect chains - - interactive command-line-interface (CLI) - - looping (loop, loop_start, loop_end) - - new debug -system - - man -pages -311098 (v0.80) - - support for MIDI-controllers - - now uses glibc v2.0 and linuxthread libraries -041098 (v0.70) - - began to upkeep this history file - - fixing the gate-functions ---- -1998: - changed development platform from Os/2 to Linux -1997-98: - complete rewrite in C++; name changed from "wavstat" to "ecasound" -1995-97: - started working with this project; original program - was called "wavstat" and it basicly was just - a very simple command line DSP util (running under Os/2) - ------------------------------------------------------------------------ diff --git a/library/ecasound/README b/library/ecasound/README deleted file mode 100644 index 190055d15..000000000 --- a/library/ecasound/README +++ /dev/null @@ -1,323 +0,0 @@ -======================================================================= -*** Ecasound - README (author/maintainer: Kai Vehmanen) *** -======================================================================= ------------------------------------------------------------------------ - What is it? ------------------------------------------------------------------------ - -Ecasound is a software package designed for multitrack audio -processing. It can be used for simple tasks like audio playback, -recording and format conversions, as well as for multitrack effect -processing, mixing, recording and signal recycling. Ecasound supports -a wide range of audio inputs, outputs and effect algorithms. -Effects and audio objects can be combined in various ways, and their -parameters can be controlled by operator objects like oscillators -and MIDI-CCs. A versatile console mode user-interface is included -in the package. - -Primary platform for running Ecasound is Linux. Ecasound also -works on many UNIX-derived systems such as FreeBSD and Solaris. -Limited support for Windows is available through Cygwin. - ------------------------------------------------------------------------ - How do you... (author: Kai Vehmanen) ------------------------------------------------------------------------ - -... spell the name? - -I haven't been very consistent with this, but at least in principle, -when capitalized, the name refers to the whole package. When in lower -case, it refers to the console mode application which happens to have -the same name. - -"Ecasound" = the whole package -"ecasound" = the console mode client application (binary) - -... pronounce the name? - -Any way you want! :) Personally I say something to the effect of -"eck-uh-sound". Start from "megasound", and omit pronouncing the -'m' at the start, and replace 'g' with a sharper 'k' sound, like -in the word "car". - ------------------------------------------------------------------------ - Story behind Ecasound (author: Kai Vehmanen) ------------------------------------------------------------------------ - -I started developing Ecasound because I needed an application to -record, process and mix my own music. The first versions of Ecasound -ran under IBM OS/2. I used those versions for finalizing my analog -4-track recordings. - -The analog 4-track - Tascam 414 - was a nice tool, but it -had its limits. So eventually I started looking for PC software -that supported multitrack recording. The first programs I used were -for Windows. I still used the OS/2 version of Ecasound for effects -processing and finalizing my mixes. Although I'm not fanatical -about operating systems, I did prefer (and still do) to use Linux -for my computing needs. I also hate rebooting between multiple -systems all the time, so it was time to do a port. - -When I ported Ecasound to Linux, a lot of functionality was rewritten -from scratch. During this work I also added multitrack capabilities -to Ecasound. It took quite a lot of effort to put it all back -together, but in the end I reached the point where I could do -all the audio processing tasks on Linux. As an additional benefit -I now had source code for - and thus control over - all tools I used -for audio processing. - -Nowadays I still use Ecasound for my music projects. This is also -the primary motivation for continuing the development work. There is -always something to improve. - ------------------------------------------------------------------------ - Requirements ------------------------------------------------------------------------ - -To run Ecasound, you need...: - -- Operating system that provides standard POSIX/SUS interfaces. Ecasound - has been reported to run succefully on various combinations of GNU/Linux - (starting from Linux 2.2+ and glibc 2.1+), FreeBSD 4.x+, Solaris 2.6+, - Mac OS X 10.3+ and Win32/Cygwin 1.3.20+. - -Optional when running Ecasound: - -- for real-time audio input/output: ALSA, JACK or OSS runtime -- for mp3 support: mpg123 (input) and lame (output) packages -- for Ogg Vorbis support, the vorbis-tools package (ogg123 and oggenc) -- for .aac/.m4a/.mp4 file support, the FAAC/FAAD2 tools -- for .flac support, the FLAC package - - note: since ecasound 2.4.5, libsndfile is the preferred - way for reading and writing FLAC files -- for MIDI .mid file input: Timidity++ -- for tracker module support: MikMod package -- for aRts (legacy KDE) support: the aRts server suntime - -To compile Ecasound, you also need...: - -- POSIX/SUS development environment, compatible with - 'The Single UNIX Specification, Version 2' (UNIX98): - - http://www.unix.org/version2/ - - http://www.opengroup.org/onlinepubs/007908799/index.html - Ecasound requires the following feature groups: - - "Realtime": - http://www.opengroup.org/onlinepubs/007908799/xsh/realtime.html - - "Realtime Threads": - http://www.opengroup.org/onlinepubs/007908799/xsh/feature.html#tag_000_005_003 -- Standard C++ build environment (with support for STL and - exceptions); tested with egcs 1.1.2, gcc versions 2.91.66, - 2.95.X, 3.0-3.4, 4.0-4.3, and Sun Workshop 6 C5.2 C++. -- GNU make - - http://www.gnu.org/software/make/ - -Optional when compiling Ecasound: - -- for extented file format support (aiff, snd, w64 and so forth): - - libaudiofile (SGI audio file library) runtime, and/or - - libsndfile -- for higher quality resampling: libsamplerate -- for pyecasound, the Python devel package -- for curses support, the ncurses devel package -- for LADSPA support, the LADSPA SDK package -- for ALSA support, the ALSA devel package -- for JACK support, the JACK devel package -- for aRts support, the aRts C-API devel package -- for inner loop optimizations (performance improvements), - the liboil package -- for Open Sound Control (OSC) support, liblo package - -Additional packages needed, when building Ecasound from a clean -version control checkout: - -- automake - - http://www.gnu.org/software/automake/ -- autoconf 2.50+ - - http://www.gnu.org/software/autoconf/ -- libtool - - http://www.gnu.org/software/libtool/ -- pkg-config - - http://pkg-config.freedesktop.org/wiki/ - ------------------------------------------------------------------------ - Installing ------------------------------------------------------------------------ - -You should first try installing Ecasound from a binary package (files -in rpm, dpkg, etc format -- depends on your system). On some systems -Ecasound is part of the distribution and can be installed easily with -tools such as apt-get, yum and others. This is probably the easiest and -most straightforward way to install Ecasound. - -If you need to compile Ecasound, the file 'INSTALL' contains detailed -instructions on how to do this. - ------------------------------------------------------------------------ - Documentation ------------------------------------------------------------------------ - -Ecasound documentation is updated whenever new features are added -or existing features are modified. Some things are not documented -in great detail, but on the other hand, documentation is kept -up-to-date. So in short, correctness over volume. The primary -documentation sources are: - -- Ecasound User's Guide -- Ecasound Programmer's Guide -- Ecasound Control Interface Guide -- manual pages - - ecasound(1) - - ecatools(1): ecaplay(1), ecaconvert(1), ... - - ecasound-iam(1) - - ecasoundrc(5) -- misc HTML-formatted docs (Documentation/*.html) -- command line help - - ecasound --help - -Probably the best place to start is the examples section of -Ecasound's HTML-documentation (Documentation/examples.html). - ------------------------------------------------------------------------ - Mailing lists ------------------------------------------------------------------------ - -- ecasound-list at lists dot sourceforge dot net: - -A general discussion forum for developers and users of Ecasound and -related tools. Announcements of new versions, bug warnings, etc will be -posted to this list. If you have problems compiling, installing or -using Ecasound, this is a good place to ask for help. Reports of -working software/hardware combinations are also welcome. You can -browse the message archives at http://eca.cx/ecasound-list/ - -You can join the lists using the following web front-end: -http://eca.cx/ecasound/mlists.php - -- linux-audio-announce at lists.linuxaudio.org - -Announcements of Ecasound releases will, in addition to -ecasound-list, be sent to the linux-audio-announce list. See the -list home page at http://www.linuxdj.com/audio/lad/subscribelaa.php -for more information. - -You can also subscribe to Ecasound releases at http://freshmeat.net . -All Ecasound releases will be announced at Freshmeat. - ------------------------------------------------------------------------ - Reporting bugs ------------------------------------------------------------------------ - -See the 'BUGS' files. - ------------------------------------------------------------------------ - Web sites ------------------------------------------------------------------------ - -Ecasound home site -- http://eca.cx/ecasound - -Download releases -- http://ecasound.seul.org/download/ (primary site) -- http://ecawave.sf.net/download/ (mirror) -- http://eca.cx/download/ (mirror) - -Eca projects portal (links, apps based on Ecasound, etc) -- http://eca.cx -- http://ecasound.seul.org (US mirror) -- http://ecasound.sourceforge.net (another US mirror) - -Examples of real-life Ecasound usage -- http://eca.cx/ecasound_users.html - ------------------------------------------------------------------------ - About free open-source software (FOSS) development ------------------------------------------------------------------------ - -You should keep in mind that FOSS [1] development process differs -greatly from closed commercial development. Active participation, -both from developers and users, is what pushes a FOSS project forward. - -Every succesful FOSS project has an active userbase behind it. This -means that your comments, ideas and bug reports are extremely -important. If something does not work, or some feature is missing, -be active. Either try to fix the problem yourself, or report it -on the ecasound-list mailing list. - -[1] Although Ecasound is free software (http://www.gnu.org), it also - fits the definition of open-source software (http://www.opensource.org/). - Although the two initiatives have different goals, they also share - a lot in common. The term FOSS is used to refer to both of them, - while still acknowledging the difference between the two. - ------------------------------------------------------------------------ - How stable is stable? ------------------------------------------------------------------------ - -Although publically released versions are called stable, this is not -a guarantee of any kind. Before releases, a small set of test cases is -run to verify that all basic features are working. The developers -also use the very latest versions themselves, so hopefully at least -all obvious bugs are found before stable releases are made. But -otherwise no guarantees are given. - -On the other hand, as Ecasound is free software, you have the -possibility to review the code yourself, perform tests, and fix any -bugs you might find, or get someone to fix them for you. In the end -you have the control. - -The more people there are participate in Ecasound development, testing -and related discussions, the better Ecasound will become! - ------------------------------------------------------------------------ - Authors ------------------------------------------------------------------------ - -See the file 'AUTHORS'. - ------------------------------------------------------------------------ - Thanks to ------------------------------------------------------------------------ - -DotCX (www.nic.cx) - For providing 'eca.cx' domain free of charge 2000-2004. -SEUL (www.seul.org) - For hosting Ecasound CVS, ftp, and http services since 1999. -SourceForge.net - For hosting Ecasound, Ecawave and Ecamegapedal ftp and - http mirror sites since 1999. -Wakkanet Oy (www.wakkanet.fi) - For various hosting services 1999-2004. - -Linux-audio-dev community - Always a great source of inspiration! Special thanks - to Paul Davis, who has kept on pushing Linux audio - forward all these years. - -Endersz, Viktor - For sending me the adv.compressor source code! -Phillips, Dave - The 'Linux Sound & MIDI' website was the reason - why I initially got interested in Linux audio! - -And of course, to all the contributors (see the file 'AUTHORS') -and to users who have given feedback, ideas and helped with testing! - ------------------------------------------------------------------------ - Licensing/distribution policy ------------------------------------------------------------------------ - -Copyright (C) 1997-2010 Kai Vehmanen and others (see the file -'AUTHORS' for full list of copyright holders). - -Ecasound is freely distributable according to the terms of the -GNU General Public License (see the file 'COPYING.GPL'). - -This program is distributed without any warranty. See the file -'COPYING.GPL' for details. - -As an exception to the above, the C, C++ and python implementations -of the Ecasound Control Interface (ECI) are licensed under the LGPL -(see the file 'COPYING.LGPL'). This allows writing ECI applications -that are not licensed under GPL. - -======================================================================= diff --git a/library/ecasound/TODO b/library/ecasound/TODO deleted file mode 100644 index 0cd6ca52e..000000000 --- a/library/ecasound/TODO +++ /dev/null @@ -1,23 +0,0 @@ ------------------------------------------------------------------------ -*** Ecasound - To do list / Plans *** ------------------------------------------------------------------------ - -Ecasound bug tracker at sourceforge.net ------------------------------------------------------------------------ - -The Ecasound bug tracker at sourceforge.net is also used to track -feature requests: - - - https://sourceforge.net/tracker/?group_id=4605&atid=104605 - -This same tracker is used for both longstanding bugs, as well as -for keeping tracking of feature/improvement requests. It replaces -the old Ecasound Development Item practise (items marked with 'edi-x' -tags) that was used during years 2002-08. - -Active development areas ------------------------------------------------------------------------ - -Probably the best way to follow active development is to -subscribe to the ecasound-list mailing list (see the "Mailing -lists" section in README). diff --git a/library/ecasound/acinclude.m4 b/library/ecasound/acinclude.m4 deleted file mode 100644 index 627dc9a8b..000000000 --- a/library/ecasound/acinclude.m4 +++ /dev/null @@ -1,219 +0,0 @@ -dnl --- -dnl acinclude.m4 for ecasound -dnl last modified: 20050816-13 -dnl --- - -## ------------------------------------------------------------------------ -## Check for JACK support -## -## defines: ECA_AM_COMPILE_JACK, ECA_S_JACK_LIBS, ECA_S_JACK_INCLUDES, -## ECA_COMPILE_JACK, ECA_JACK_TRANSPORT_API -## ------------------------------------------------------------------------ - -AC_DEFUN([AC_CHECK_JACK], -[ -AC_CHECK_HEADER(jack/jack.h,jack_support=yes,jack_support=no) - -AC_ARG_WITH(jack, - [ --with-jack=DIR Compile against JACK installed in DIR], - [ - ECA_S_JACK_LIBS="-L${withval}/lib" - ECA_S_JACK_INCLUDES="-I${withval}/include" - jack_support=yes - ]) - -AC_ARG_ENABLE(jack, - [ --enable-jack Enable JACK support (default=yes, if found)], - [ - case "$enableval" in - y | yes) - AC_MSG_RESULT(yes) - jack_support=yes - ;; - - n | no) - AC_MSG_RESULT(no) - jack_support=no - ;; - - *) - AC_MSG_ERROR([Invalid parameter value for --enable-jack: $enableval]) - ;; - esac - ]) - -AM_CONDITIONAL(ECA_AM_COMPILE_JACK, test x$jack_support = xyes) - -if test x$jack_support = xyes; then - AC_DEFINE([ECA_COMPILE_JACK], 1, [enable JACK support]) - ECA_S_JACK_LIBS="${ECA_S_JACK_LIBS} -ljack" - case "$host" in - *darwin*) - AM_LDFLAGS="$AM_LDFLAGS -framework CoreAudio" - ;; - esac -fi - -AC_LANG_C -old_cppflags=$CPPFLAGS -old_ldflags=$LDFLAGS -old_INCLUDES=$INCLUDES -CPPFLAGS="$CPPFLAGS $ECA_S_JACK_INCLUDES" -LDFLAGS="$LDFLAGS $ECA_S_JACK_LIBS" -INCLUDES="--host=a.out-i386-linux" - -AC_TRY_LINK( -[ #include ], -[ - jack_position_t t; - int *a = (void*)&jack_transport_query; - int *b = (void*)&jack_transport_start; - int *c = (void*)&jack_transport_stop; - int *d = (void*)&jack_transport_locate; - t.frame = 0; - t.valid = 0; - return 0; -], -[ ECA_JACK_TRANSPORT_API="3" ], -[ ECA_JACK_TRANSPORT_API="2" ] -) - -AC_TRY_LINK( -[ #include ], -[ - jack_transport_info_t t; - t.state = 0; - return 0; -], -[ ECA_JACK_TRANSPORT_API="1" ], -[ true ] -) - -CPPFLAGS="$old_cppflags" -LDFLAGS="$old_ldflags" -INCLUDES="$old_INCLUDES" - -echo "Using JACK transport API version:" ${ECA_JACK_TRANSPORT_API} -AC_DEFINE_UNQUOTED([ECA_JACK_TRANSPORT_API], ${ECA_JACK_TRANSPORT_API}, [version of JACK transport API to use]) - -AC_SUBST(ECA_S_JACK_LIBS) -AC_SUBST(ECA_S_JACK_INCLUDES) -]) - -## ------------------------------------------------------------------------ -## Check for LFS (now deprecated, v3 is only a stub that doesn't -## peform any checks) -## -## version: 3 -## -## refs: -## - http://www.gnu.org/software/libtool/manual/libc/Feature-Test-Macros.html -## - http://www.suse.de/~aj/linux_lfs.html -## - http://en.wikipedia.org/wiki/Large_file_support -## -## modifies: AM_CXXFLAGS, AM_CFLAGS -## defines: enable_largefile -## ------------------------------------------------------------------------ -## - -AC_DEFUN([AC_CHECK_LARGEFILE], -[ - echo "checking for largefile support (>2GB files)..." - - dnl note: this is only for backwards compatibility - AC_ARG_WITH(largefile, - [ --with-largefile deprecated option, now used by default], []) - - AC_SYS_LARGEFILE - if test x$ac_cv_sys_file_offset_bits = x64 ; then - dnl note: Just to be sure that the define is there even - dnl if config.h is not included in right order w.r.t. - dnl the system headers. - AM_CXXFLAGS="$AM_CXXFLAGS -D_FILE_OFFSET_BITS=64" - AM_CFLAGS="$AM_CFLAGS -D_FILE_OFFSET_BITS=64" - - enable_largefile=yes - fi - - dnl old checks - dnl ---------- - dnl [ if test "x$withval" = "xyes" ; then - dnl enable_largefile="yes" - dnl fi - dnl ] - dnl if test "x$enable_largefile" = "xyes"; then - dnl dnl AC_DEFINE(_FILE_OFFSET_BITS, 64) - dnl dnl AC_DEFINE(_LARGEFILE_SOURCE) - dnl AM_CXXFLAGS="$AM_CXXFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE" - dnl AM_CFLAGS="$AM_CFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE" - dnl AC_MSG_RESULT(yes.) - dnl else - dnl AC_MSG_RESULT(no.) - dnl fi - -]) - -## ------------------------------------------------------------------------ -## Check whether namespaces are supported. -## -## version: 3 -## -## defines: ECA_USE_CXX_STD_NAMESPACE -## ------------------------------------------------------------------------ -## -AC_DEFUN([AC_CHECK_CXX_NAMESPACE_SUPPORT], -[ -AC_MSG_CHECKING(if C++ compiler supports namespaces) -AC_LANG_CPLUSPLUS -old_cxx_flags=$CXXFLAGS -CXXFLAGS="-fno-exceptions $CXXFLAGS" # hack around gcc3.x feature -AC_TRY_RUN( -[ -#include -#include - -using std::string; - -int main(void) -{ - string s ("foo"); - std::vector v; - return(0); -} -], -[ - AC_MSG_RESULT(yes.) - AC_DEFINE([ECA_USE_CXX_STD_NAMESPACE], 1, [use C++ std namespace]) -], -[ - AC_MSG_RESULT(no.) - AC_MSG_WARN([C++ compiler has problems with namespaces. Build process can fail because of this.]) -] -, -[ - AC_MSG_RESULT(no.) -] -) -CXXFLAGS=$old_cxx_flags -]) - -## ------------------------------------------------------------------------ -## Find a file (or one of more files in a list of dirs) -## -## version: 1 -## ------------------------------------------------------------------------ -## -AC_DEFUN([AC_FIND_FILE], -[ -$3=NO -for i in $2; -do - for j in $1; - do - if test -r "$i/$j"; then - $3=$i - break 2 - fi - done -done -]) diff --git a/library/ecasound/aclocal.m4 b/library/ecasound/aclocal.m4 deleted file mode 100644 index 0ebc51b21..000000000 --- a/library/ecasound/aclocal.m4 +++ /dev/null @@ -1,7673 +0,0 @@ -# generated automatically by aclocal 1.9.6 -*- Autoconf -*- - -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, -# 2005 Free Software Foundation, Inc. -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- - -# serial 52 Debian 1.5.26-4+lenny1 AC_PROG_LIBTOOL - - -# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) -# ----------------------------------------------------------- -# If this macro is not defined by Autoconf, define it here. -m4_ifdef([AC_PROVIDE_IFELSE], - [], - [m4_define([AC_PROVIDE_IFELSE], - [m4_ifdef([AC_PROVIDE_$1], - [$2], [$3])])]) - - -# AC_PROG_LIBTOOL -# --------------- -AC_DEFUN([AC_PROG_LIBTOOL], -[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl -dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX -dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. - AC_PROVIDE_IFELSE([AC_PROG_CXX], - [AC_LIBTOOL_CXX], - [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX - ])]) -dnl And a similar setup for Fortran 77 support - AC_PROVIDE_IFELSE([AC_PROG_F77], - [AC_LIBTOOL_F77], - [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77 -])]) - -dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. -dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run -dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. - AC_PROVIDE_IFELSE([AC_PROG_GCJ], - [AC_LIBTOOL_GCJ], - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], - [AC_LIBTOOL_GCJ], - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], - [AC_LIBTOOL_GCJ], - [ifdef([AC_PROG_GCJ], - [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) - ifdef([A][M_PROG_GCJ], - [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) - ifdef([LT_AC_PROG_GCJ], - [define([LT_AC_PROG_GCJ], - defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) -])])# AC_PROG_LIBTOOL - - -# _AC_PROG_LIBTOOL -# ---------------- -AC_DEFUN([_AC_PROG_LIBTOOL], -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl -AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl -AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl -AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl - -# This can be used to rebuild libtool when needed -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" - -# Always use our own libtool. -LIBTOOL='$(SHELL) $(top_builddir)/libtool' -AC_SUBST(LIBTOOL)dnl - -# Prevent multiple expansion -define([AC_PROG_LIBTOOL], []) -])# _AC_PROG_LIBTOOL - - -# AC_LIBTOOL_SETUP -# ---------------- -AC_DEFUN([AC_LIBTOOL_SETUP], -[AC_PREREQ(2.50)dnl -AC_REQUIRE([AC_ENABLE_SHARED])dnl -AC_REQUIRE([AC_ENABLE_STATIC])dnl -AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl -AC_REQUIRE([AC_CANONICAL_HOST])dnl -AC_REQUIRE([AC_CANONICAL_BUILD])dnl -AC_REQUIRE([AC_PROG_CC])dnl -AC_REQUIRE([AC_PROG_LD])dnl -AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl -AC_REQUIRE([AC_PROG_NM])dnl - -AC_REQUIRE([AC_PROG_LN_S])dnl -AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! -AC_REQUIRE([AC_OBJEXT])dnl -AC_REQUIRE([AC_EXEEXT])dnl -dnl -AC_LIBTOOL_SYS_MAX_CMD_LEN -AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE -AC_LIBTOOL_OBJDIR - -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl -_LT_AC_PROG_ECHO_BACKSLASH - -case $host_os in -aix3*) - # AIX sometimes has problems with the GCC collect2 program. For some - # reason, if we set the COLLECT_NAMES environment variable, the problems - # vanish in a puff of smoke. - if test "X${COLLECT_NAMES+set}" != Xset; then - COLLECT_NAMES= - export COLLECT_NAMES - fi - ;; -esac - -# Sed substitution that helps us do robust quoting. It backslashifies -# metacharacters that are still active within double-quoted strings. -Xsed='sed -e 1s/^X//' -[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] - -# Same as above, but do not quote variable references. -[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] - -# Sed substitution to delay expansion of an escaped shell variable in a -# double_quote_subst'ed string. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' - -# Sed substitution to avoid accidental globbing in evaled expressions -no_glob_subst='s/\*/\\\*/g' - -# Constants: -rm="rm -f" - -# Global variables: -default_ofile=libtool -can_build_shared=yes - -# All known linkers require a `.a' archive for static linking (except MSVC, -# which needs '.lib'). -libext=a -ltmain="$ac_aux_dir/ltmain.sh" -ofile="$default_ofile" -with_gnu_ld="$lt_cv_prog_gnu_ld" - -AC_CHECK_TOOL(AR, ar, false) -AC_CHECK_TOOL(RANLIB, ranlib, :) -AC_CHECK_TOOL(STRIP, strip, :) - -old_CC="$CC" -old_CFLAGS="$CFLAGS" - -# Set sane defaults for various variables -test -z "$AR" && AR=ar -test -z "$AR_FLAGS" && AR_FLAGS=cru -test -z "$AS" && AS=as -test -z "$CC" && CC=cc -test -z "$LTCC" && LTCC=$CC -test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS -test -z "$DLLTOOL" && DLLTOOL=dlltool -test -z "$LD" && LD=ld -test -z "$LN_S" && LN_S="ln -s" -test -z "$MAGIC_CMD" && MAGIC_CMD=file -test -z "$NM" && NM=nm -test -z "$SED" && SED=sed -test -z "$OBJDUMP" && OBJDUMP=objdump -test -z "$RANLIB" && RANLIB=: -test -z "$STRIP" && STRIP=: -test -z "$ac_objext" && ac_objext=o - -# Determine commands to create old-style static archives. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' -old_postinstall_cmds='chmod 644 $oldlib' -old_postuninstall_cmds= - -if test -n "$RANLIB"; then - case $host_os in - openbsd*) - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" - ;; - *) - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" - ;; - esac - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" -fi - -_LT_CC_BASENAME([$compiler]) - -# Only perform the check for file, if the check method requires it -case $deplibs_check_method in -file_magic*) - if test "$file_magic_cmd" = '$MAGIC_CMD'; then - AC_PATH_MAGIC - fi - ;; -esac - -_LT_REQUIRED_DARWIN_CHECKS - -AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], -enable_win32_dll=yes, enable_win32_dll=no) - -AC_ARG_ENABLE([libtool-lock], - [AC_HELP_STRING([--disable-libtool-lock], - [avoid locking (might break parallel builds)])]) -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes - -AC_ARG_WITH([pic], - [AC_HELP_STRING([--with-pic], - [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], - [pic_mode="$withval"], - [pic_mode=default]) -test -z "$pic_mode" && pic_mode=default - -# Use C for the default configuration in the libtool script -tagname= -AC_LIBTOOL_LANG_C_CONFIG -_LT_AC_TAGCONFIG -])# AC_LIBTOOL_SETUP - - -# _LT_AC_SYS_COMPILER -# ------------------- -AC_DEFUN([_LT_AC_SYS_COMPILER], -[AC_REQUIRE([AC_PROG_CC])dnl - -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} - -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} - -# Allow CC to be a program name with arguments. -compiler=$CC -])# _LT_AC_SYS_COMPILER - - -# _LT_CC_BASENAME(CC) -# ------------------- -# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. -AC_DEFUN([_LT_CC_BASENAME], -[for cc_temp in $1""; do - case $cc_temp in - compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; - distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` -]) - - -# _LT_COMPILER_BOILERPLATE -# ------------------------ -# Check for compiler boilerplate output or warnings with -# the simple compiler test code. -AC_DEFUN([_LT_COMPILER_BOILERPLATE], -[AC_REQUIRE([LT_AC_PROG_SED])dnl -ac_outfile=conftest.$ac_objext -echo "$lt_simple_compile_test_code" >conftest.$ac_ext -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_compiler_boilerplate=`cat conftest.err` -$rm conftest* -])# _LT_COMPILER_BOILERPLATE - - -# _LT_LINKER_BOILERPLATE -# ---------------------- -# Check for linker boilerplate output or warnings with -# the simple link test code. -AC_DEFUN([_LT_LINKER_BOILERPLATE], -[AC_REQUIRE([LT_AC_PROG_SED])dnl -ac_outfile=conftest.$ac_objext -echo "$lt_simple_link_test_code" >conftest.$ac_ext -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_linker_boilerplate=`cat conftest.err` -$rm -r conftest* -])# _LT_LINKER_BOILERPLATE - -# _LT_REQUIRED_DARWIN_CHECKS -# -------------------------- -# Check for some things on darwin -AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[ - case $host_os in - rhapsody* | darwin*) - AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) - AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) - - AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], - [lt_cv_apple_cc_single_mod=no - if test -z "${LT_MULTI_MODULE}"; then - # By default we will add the -single_module flag. You can override - # by either setting the environment variable LT_MULTI_MODULE - # non-empty at configure time, or by adding -multi_module to the - # link flags. - echo "int foo(void){return 1;}" > conftest.c - $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ - -dynamiclib ${wl}-single_module conftest.c - if test -f libconftest.dylib; then - lt_cv_apple_cc_single_mod=yes - rm -rf libconftest.dylib* - fi - rm conftest.c - fi]) - AC_CACHE_CHECK([for -exported_symbols_list linker flag], - [lt_cv_ld_exported_symbols_list], - [lt_cv_ld_exported_symbols_list=no - save_LDFLAGS=$LDFLAGS - echo "_main" > conftest.sym - LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" - AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], - [lt_cv_ld_exported_symbols_list=yes], - [lt_cv_ld_exported_symbols_list=no]) - LDFLAGS="$save_LDFLAGS" - ]) - case $host_os in - rhapsody* | darwin1.[[0123]]) - _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; - darwin1.*) - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; - darwin*) - # if running on 10.5 or later, the deployment target defaults - # to the OS version, if on x86, and 10.4, the deployment - # target defaults to 10.4. Don't you love it? - case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in - 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; - 10.[[012]]*) - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; - 10.*) - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; - esac - ;; - esac - if test "$lt_cv_apple_cc_single_mod" = "yes"; then - _lt_dar_single_mod='$single_module' - fi - if test "$lt_cv_ld_exported_symbols_list" = "yes"; then - _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' - else - _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}" - fi - if test "$DSYMUTIL" != ":"; then - _lt_dsymutil="~$DSYMUTIL \$lib || :" - else - _lt_dsymutil= - fi - ;; - esac -]) - -# _LT_AC_SYS_LIBPATH_AIX -# ---------------------- -# Links a minimal program and checks the executable -# for the system default hardcoded library path. In most cases, -# this is /usr/lib:/lib, but when the MPI compilers are used -# the location of the communication and MPI libs are included too. -# If we don't find anything, use the default library path according -# to the aix ld manual. -AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], -[AC_REQUIRE([LT_AC_PROG_SED])dnl -AC_LINK_IFELSE(AC_LANG_PROGRAM,[ -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi],[]) -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi -])# _LT_AC_SYS_LIBPATH_AIX - - -# _LT_AC_SHELL_INIT(ARG) -# ---------------------- -AC_DEFUN([_LT_AC_SHELL_INIT], -[ifdef([AC_DIVERSION_NOTICE], - [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], - [AC_DIVERT_PUSH(NOTICE)]) -$1 -AC_DIVERT_POP -])# _LT_AC_SHELL_INIT - - -# _LT_AC_PROG_ECHO_BACKSLASH -# -------------------------- -# Add some code to the start of the generated configure script which -# will find an echo command which doesn't interpret backslashes. -AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], -[_LT_AC_SHELL_INIT([ -# Check that we are running under the correct shell. -SHELL=${CONFIG_SHELL-/bin/sh} - -case X$ECHO in -X*--fallback-echo) - # Remove one level of quotation (which was required for Make). - ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` - ;; -esac - -echo=${ECHO-echo} -if test "X[$]1" = X--no-reexec; then - # Discard the --no-reexec flag, and continue. - shift -elif test "X[$]1" = X--fallback-echo; then - # Avoid inline document here, it may be left over - : -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then - # Yippee, $echo works! - : -else - # Restart under the correct shell. - exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} -fi - -if test "X[$]1" = X--fallback-echo; then - # used as fallback echo - shift - cat </dev/null 2>&1 && unset CDPATH - -if test -z "$ECHO"; then -if test "X${echo_test_string+set}" != Xset; then -# find a string as large as possible, as long as the shell can cope with it - for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... - if (echo_test_string=`eval $cmd`) 2>/dev/null && - echo_test_string=`eval $cmd` && - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null - then - break - fi - done -fi - -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - : -else - # The Solaris, AIX, and Digital Unix default echo programs unquote - # backslashes. This makes it impossible to quote backslashes using - # echo "$something" | sed 's/\\/\\\\/g' - # - # So, first we look for a working echo in the user's PATH. - - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for dir in $PATH /usr/ucb; do - IFS="$lt_save_ifs" - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - echo="$dir/echo" - break - fi - done - IFS="$lt_save_ifs" - - if test "X$echo" = Xecho; then - # We didn't find a better echo, so look for alternatives. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - # This shell has a builtin print -r that does the trick. - echo='print -r' - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && - test "X$CONFIG_SHELL" != X/bin/ksh; then - # If we have ksh, try running configure again with it. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} - export ORIGINAL_CONFIG_SHELL - CONFIG_SHELL=/bin/ksh - export CONFIG_SHELL - exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} - else - # Try using printf. - echo='printf %s\n' - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - # Cool, printf works - : - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && - test "X$echo_testing_string" = 'X\t' && - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL - export CONFIG_SHELL - SHELL="$CONFIG_SHELL" - export SHELL - echo="$CONFIG_SHELL [$]0 --fallback-echo" - elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && - test "X$echo_testing_string" = 'X\t' && - echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - echo="$CONFIG_SHELL [$]0 --fallback-echo" - else - # maybe with a smaller string... - prev=: - - for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null - then - break - fi - prev="$cmd" - done - - if test "$prev" != 'sed 50q "[$]0"'; then - echo_test_string=`eval $prev` - export echo_test_string - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} - else - # Oops. We lost completely, so just stick with echo. - echo=echo - fi - fi - fi - fi -fi -fi - -# Copy echo and quote the copy suitably for passing to libtool from -# the Makefile, instead of quoting the original, which is used later. -ECHO=$echo -if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then - ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" -fi - -AC_SUBST(ECHO) -])])# _LT_AC_PROG_ECHO_BACKSLASH - - -# _LT_AC_LOCK -# ----------- -AC_DEFUN([_LT_AC_LOCK], -[AC_ARG_ENABLE([libtool-lock], - [AC_HELP_STRING([--disable-libtool-lock], - [avoid locking (might break parallel builds)])]) -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes - -# Some flags need to be propagated to the compiler or linker for good -# libtool support. -case $host in -ia64-*-hpux*) - # Find out which ABI we are using. - echo 'int i;' > conftest.$ac_ext - if AC_TRY_EVAL(ac_compile); then - case `/usr/bin/file conftest.$ac_objext` in - *ELF-32*) - HPUX_IA64_MODE="32" - ;; - *ELF-64*) - HPUX_IA64_MODE="64" - ;; - esac - fi - rm -rf conftest* - ;; -*-*-irix6*) - # Find out which ABI we are using. - echo '[#]line __oline__ "configure"' > conftest.$ac_ext - if AC_TRY_EVAL(ac_compile); then - if test "$lt_cv_prog_gnu_ld" = yes; then - case `/usr/bin/file conftest.$ac_objext` in - *32-bit*) - LD="${LD-ld} -melf32bsmip" - ;; - *N32*) - LD="${LD-ld} -melf32bmipn32" - ;; - *64-bit*) - LD="${LD-ld} -melf64bmip" - ;; - esac - else - case `/usr/bin/file conftest.$ac_objext` in - *32-bit*) - LD="${LD-ld} -32" - ;; - *N32*) - LD="${LD-ld} -n32" - ;; - *64-bit*) - LD="${LD-ld} -64" - ;; - esac - fi - fi - rm -rf conftest* - ;; - -x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ -s390*-*linux*|sparc*-*linux*) - # Find out which ABI we are using. - echo 'int i;' > conftest.$ac_ext - if AC_TRY_EVAL(ac_compile); then - case `/usr/bin/file conftest.o` in - *32-bit*) - case $host in - x86_64-*kfreebsd*-gnu) - LD="${LD-ld} -m elf_i386_fbsd" - ;; - x86_64-*linux*) - LD="${LD-ld} -m elf_i386" - ;; - ppc64-*linux*|powerpc64-*linux*) - LD="${LD-ld} -m elf32ppclinux" - ;; - s390x-*linux*) - LD="${LD-ld} -m elf_s390" - ;; - sparc64-*linux*) - LD="${LD-ld} -m elf32_sparc" - ;; - esac - ;; - *64-bit*) - case $host in - x86_64-*kfreebsd*-gnu) - LD="${LD-ld} -m elf_x86_64_fbsd" - ;; - x86_64-*linux*) - LD="${LD-ld} -m elf_x86_64" - ;; - ppc*-*linux*|powerpc*-*linux*) - LD="${LD-ld} -m elf64ppc" - ;; - s390*-*linux*) - LD="${LD-ld} -m elf64_s390" - ;; - sparc*-*linux*) - LD="${LD-ld} -m elf64_sparc" - ;; - esac - ;; - esac - fi - rm -rf conftest* - ;; - -*-*-sco3.2v5*) - # On SCO OpenServer 5, we need -belf to get full-featured binaries. - SAVE_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS -belf" - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, - [AC_LANG_PUSH(C) - AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) - AC_LANG_POP]) - if test x"$lt_cv_cc_needs_belf" != x"yes"; then - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf - CFLAGS="$SAVE_CFLAGS" - fi - ;; -sparc*-*solaris*) - # Find out which ABI we are using. - echo 'int i;' > conftest.$ac_ext - if AC_TRY_EVAL(ac_compile); then - case `/usr/bin/file conftest.o` in - *64-bit*) - case $lt_cv_prog_gnu_ld in - yes*) LD="${LD-ld} -m elf64_sparc" ;; - *) - if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then - LD="${LD-ld} -64" - fi - ;; - esac - ;; - esac - fi - rm -rf conftest* - ;; - -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], -[*-*-cygwin* | *-*-mingw* | *-*-pw32*) - AC_CHECK_TOOL(DLLTOOL, dlltool, false) - AC_CHECK_TOOL(AS, as, false) - AC_CHECK_TOOL(OBJDUMP, objdump, false) - ;; - ]) -esac - -need_locks="$enable_libtool_lock" - -])# _LT_AC_LOCK - - -# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, -# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) -# ---------------------------------------------------------------- -# Check whether the given compiler option works -AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], -[AC_REQUIRE([LT_AC_PROG_SED]) -AC_CACHE_CHECK([$1], [$2], - [$2=no - ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="$3" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&AS_MESSAGE_LOG_FD - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - $2=yes - fi - fi - $rm conftest* -]) - -if test x"[$]$2" = xyes; then - ifelse([$5], , :, [$5]) -else - ifelse([$6], , :, [$6]) -fi -])# AC_LIBTOOL_COMPILER_OPTION - - -# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, -# [ACTION-SUCCESS], [ACTION-FAILURE]) -# ------------------------------------------------------------ -# Check whether the given compiler option works -AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], -[AC_REQUIRE([LT_AC_PROG_SED])dnl -AC_CACHE_CHECK([$1], [$2], - [$2=no - save_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS $3" - echo "$lt_simple_link_test_code" > conftest.$ac_ext - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then - # The linker can only warn and ignore the option if not recognized - # So say no if there are warnings - if test -s conftest.err; then - # Append any errors to the config.log. - cat conftest.err 1>&AS_MESSAGE_LOG_FD - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if diff conftest.exp conftest.er2 >/dev/null; then - $2=yes - fi - else - $2=yes - fi - fi - $rm -r conftest* - LDFLAGS="$save_LDFLAGS" -]) - -if test x"[$]$2" = xyes; then - ifelse([$4], , :, [$4]) -else - ifelse([$5], , :, [$5]) -fi -])# AC_LIBTOOL_LINKER_OPTION - - -# AC_LIBTOOL_SYS_MAX_CMD_LEN -# -------------------------- -AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], -[# find the maximum length of command line arguments -AC_MSG_CHECKING([the maximum length of command line arguments]) -AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl - i=0 - teststring="ABCD" - - case $build_os in - msdosdjgpp*) - # On DJGPP, this test can blow up pretty badly due to problems in libc - # (any single argument exceeding 2000 bytes causes a buffer overrun - # during glob expansion). Even if it were fixed, the result of this - # check would be larger than it should be. - lt_cv_sys_max_cmd_len=12288; # 12K is about right - ;; - - gnu*) - # Under GNU Hurd, this test is not required because there is - # no limit to the length of command line arguments. - # Libtool will interpret -1 as no limit whatsoever - lt_cv_sys_max_cmd_len=-1; - ;; - - cygwin* | mingw*) - # On Win9x/ME, this test blows up -- it succeeds, but takes - # about 5 minutes as the teststring grows exponentially. - # Worse, since 9x/ME are not pre-emptively multitasking, - # you end up with a "frozen" computer, even though with patience - # the test eventually succeeds (with a max line length of 256k). - # Instead, let's just punt: use the minimum linelength reported by - # all of the supported platforms: 8192 (on NT/2K/XP). - lt_cv_sys_max_cmd_len=8192; - ;; - - amigaos*) - # On AmigaOS with pdksh, this test takes hours, literally. - # So we just punt and use a minimum line length of 8192. - lt_cv_sys_max_cmd_len=8192; - ;; - - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) - # This has been around since 386BSD, at least. Likely further. - if test -x /sbin/sysctl; then - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` - elif test -x /usr/sbin/sysctl; then - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` - else - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs - fi - # And add a safety zone - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` - ;; - - interix*) - # We know the value 262144 and hardcode it with a safety zone (like BSD) - lt_cv_sys_max_cmd_len=196608 - ;; - - osf*) - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not - # nice to cause kernel panics so lets avoid the loop below. - # First set a reasonable default. - lt_cv_sys_max_cmd_len=16384 - # - if test -x /sbin/sysconfig; then - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in - *1*) lt_cv_sys_max_cmd_len=-1 ;; - esac - fi - ;; - sco3.2v5*) - lt_cv_sys_max_cmd_len=102400 - ;; - sysv5* | sco5v6* | sysv4.2uw2*) - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` - if test -n "$kargmax"; then - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` - else - lt_cv_sys_max_cmd_len=32768 - fi - ;; - *) - lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` - if test -n "$lt_cv_sys_max_cmd_len"; then - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` - else - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} - while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ - = "XX$teststring") >/dev/null 2>&1 && - new_result=`expr "X$teststring" : ".*" 2>&1` && - lt_cv_sys_max_cmd_len=$new_result && - test $i != 17 # 1/2 MB should be enough - do - i=`expr $i + 1` - teststring=$teststring$teststring - done - teststring= - # Add a significant safety factor because C++ compilers can tack on massive - # amounts of additional arguments before passing them to the linker. - # It appears as though 1/2 is a usable value. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` - fi - ;; - esac -]) -if test -n $lt_cv_sys_max_cmd_len ; then - AC_MSG_RESULT($lt_cv_sys_max_cmd_len) -else - AC_MSG_RESULT(none) -fi -])# AC_LIBTOOL_SYS_MAX_CMD_LEN - - -# _LT_AC_CHECK_DLFCN -# ------------------ -AC_DEFUN([_LT_AC_CHECK_DLFCN], -[AC_CHECK_HEADERS(dlfcn.h)dnl -])# _LT_AC_CHECK_DLFCN - - -# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) -# --------------------------------------------------------------------- -AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl -if test "$cross_compiling" = yes; then : - [$4] -else - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 - lt_status=$lt_dlunknown - cat > conftest.$ac_ext < -#endif - -#include - -#ifdef RTLD_GLOBAL -# define LT_DLGLOBAL RTLD_GLOBAL -#else -# ifdef DL_GLOBAL -# define LT_DLGLOBAL DL_GLOBAL -# else -# define LT_DLGLOBAL 0 -# endif -#endif - -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we - find out it does not work in some platform. */ -#ifndef LT_DLLAZY_OR_NOW -# ifdef RTLD_LAZY -# define LT_DLLAZY_OR_NOW RTLD_LAZY -# else -# ifdef DL_LAZY -# define LT_DLLAZY_OR_NOW DL_LAZY -# else -# ifdef RTLD_NOW -# define LT_DLLAZY_OR_NOW RTLD_NOW -# else -# ifdef DL_NOW -# define LT_DLLAZY_OR_NOW DL_NOW -# else -# define LT_DLLAZY_OR_NOW 0 -# endif -# endif -# endif -# endif -#endif - -#ifdef __cplusplus -extern "C" void exit (int); -#endif - -void fnord() { int i=42;} -int main () -{ - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); - int status = $lt_dlunknown; - - if (self) - { - if (dlsym (self,"fnord")) status = $lt_dlno_uscore; - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; - /* dlclose (self); */ - } - else - puts (dlerror ()); - - exit (status); -}] -EOF - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then - (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null - lt_status=$? - case x$lt_status in - x$lt_dlno_uscore) $1 ;; - x$lt_dlneed_uscore) $2 ;; - x$lt_dlunknown|x*) $3 ;; - esac - else : - # compilation failed - $3 - fi -fi -rm -fr conftest* -])# _LT_AC_TRY_DLOPEN_SELF - - -# AC_LIBTOOL_DLOPEN_SELF -# ---------------------- -AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl -if test "x$enable_dlopen" != xyes; then - enable_dlopen=unknown - enable_dlopen_self=unknown - enable_dlopen_self_static=unknown -else - lt_cv_dlopen=no - lt_cv_dlopen_libs= - - case $host_os in - beos*) - lt_cv_dlopen="load_add_on" - lt_cv_dlopen_libs= - lt_cv_dlopen_self=yes - ;; - - mingw* | pw32*) - lt_cv_dlopen="LoadLibrary" - lt_cv_dlopen_libs= - ;; - - cygwin*) - lt_cv_dlopen="dlopen" - lt_cv_dlopen_libs= - ;; - - darwin*) - # if libdl is installed we need to link against it - AC_CHECK_LIB([dl], [dlopen], - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ - lt_cv_dlopen="dyld" - lt_cv_dlopen_libs= - lt_cv_dlopen_self=yes - ]) - ;; - - *) - AC_CHECK_FUNC([shl_load], - [lt_cv_dlopen="shl_load"], - [AC_CHECK_LIB([dld], [shl_load], - [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], - [AC_CHECK_FUNC([dlopen], - [lt_cv_dlopen="dlopen"], - [AC_CHECK_LIB([dl], [dlopen], - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], - [AC_CHECK_LIB([svld], [dlopen], - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], - [AC_CHECK_LIB([dld], [dld_link], - [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) - ]) - ]) - ]) - ]) - ]) - ;; - esac - - if test "x$lt_cv_dlopen" != xno; then - enable_dlopen=yes - else - enable_dlopen=no - fi - - case $lt_cv_dlopen in - dlopen) - save_CPPFLAGS="$CPPFLAGS" - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" - - save_LDFLAGS="$LDFLAGS" - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" - - save_LIBS="$LIBS" - LIBS="$lt_cv_dlopen_libs $LIBS" - - AC_CACHE_CHECK([whether a program can dlopen itself], - lt_cv_dlopen_self, [dnl - _LT_AC_TRY_DLOPEN_SELF( - lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, - lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) - ]) - - if test "x$lt_cv_dlopen_self" = xyes; then - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" - AC_CACHE_CHECK([whether a statically linked program can dlopen itself], - lt_cv_dlopen_self_static, [dnl - _LT_AC_TRY_DLOPEN_SELF( - lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, - lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) - ]) - fi - - CPPFLAGS="$save_CPPFLAGS" - LDFLAGS="$save_LDFLAGS" - LIBS="$save_LIBS" - ;; - esac - - case $lt_cv_dlopen_self in - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; - *) enable_dlopen_self=unknown ;; - esac - - case $lt_cv_dlopen_self_static in - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; - *) enable_dlopen_self_static=unknown ;; - esac -fi -])# AC_LIBTOOL_DLOPEN_SELF - - -# AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) -# --------------------------------- -# Check to see if options -c and -o are simultaneously supported by compiler -AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], -[AC_REQUIRE([LT_AC_PROG_SED])dnl -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl -AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no - $rm -r conftest 2>/dev/null - mkdir conftest - cd conftest - mkdir out - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - lt_compiler_flag="-o out/conftest2.$ac_objext" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) - (eval "$lt_compile" 2>out/conftest.err) - ac_status=$? - cat out/conftest.err >&AS_MESSAGE_LOG_FD - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD - if (exit $ac_status) && test -s out/conftest2.$ac_objext - then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes - fi - fi - chmod u+w . 2>&AS_MESSAGE_LOG_FD - $rm conftest* - # SGI C++ compiler will create directory out/ii_files/ for - # template instantiation - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files - $rm out/* && rmdir out - cd .. - rmdir conftest - $rm conftest* -]) -])# AC_LIBTOOL_PROG_CC_C_O - - -# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) -# ----------------------------------------- -# Check to see if we can do hard links to lock some files if needed -AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], -[AC_REQUIRE([_LT_AC_LOCK])dnl - -hard_links="nottested" -if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then - # do not overwrite the value of need_locks provided by the user - AC_MSG_CHECKING([if we can lock with hard links]) - hard_links=yes - $rm conftest* - ln conftest.a conftest.b 2>/dev/null && hard_links=no - touch conftest.a - ln conftest.a conftest.b 2>&5 || hard_links=no - ln conftest.a conftest.b 2>/dev/null && hard_links=no - AC_MSG_RESULT([$hard_links]) - if test "$hard_links" = no; then - AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) - need_locks=warn - fi -else - need_locks=no -fi -])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS - - -# AC_LIBTOOL_OBJDIR -# ----------------- -AC_DEFUN([AC_LIBTOOL_OBJDIR], -[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], -[rm -f .libs 2>/dev/null -mkdir .libs 2>/dev/null -if test -d .libs; then - lt_cv_objdir=.libs -else - # MS-DOS does not allow filenames that begin with a dot. - lt_cv_objdir=_libs -fi -rmdir .libs 2>/dev/null]) -objdir=$lt_cv_objdir -])# AC_LIBTOOL_OBJDIR - - -# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) -# ---------------------------------------------- -# Check hardcoding attributes. -AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], -[AC_MSG_CHECKING([how to hardcode library paths into programs]) -_LT_AC_TAGVAR(hardcode_action, $1)= -if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ - test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ - test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then - - # We can hardcode non-existant directories. - if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && - # If the only mechanism to avoid hardcoding is shlibpath_var, we - # have to relink, otherwise we might link with an installed library - # when we should be linking with a yet-to-be-installed one - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no && - test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then - # Linking always hardcodes the temporary library directory. - _LT_AC_TAGVAR(hardcode_action, $1)=relink - else - # We can link without hardcoding, and we can hardcode nonexisting dirs. - _LT_AC_TAGVAR(hardcode_action, $1)=immediate - fi -else - # We cannot hardcode anything, or else we can only hardcode existing - # directories. - _LT_AC_TAGVAR(hardcode_action, $1)=unsupported -fi -AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) - -if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then - # Fast installation is not supported - enable_fast_install=no -elif test "$shlibpath_overrides_runpath" = yes || - test "$enable_shared" = no; then - # Fast installation is not necessary - enable_fast_install=needless -fi -])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH - - -# AC_LIBTOOL_SYS_LIB_STRIP -# ------------------------ -AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], -[striplib= -old_striplib= -AC_MSG_CHECKING([whether stripping libraries is possible]) -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" - test -z "$striplib" && striplib="$STRIP --strip-unneeded" - AC_MSG_RESULT([yes]) -else -# FIXME - insert some real tests, host_os isn't really good enough - case $host_os in - darwin*) - if test -n "$STRIP" ; then - striplib="$STRIP -x" - old_striplib="$STRIP -S" - AC_MSG_RESULT([yes]) - else - AC_MSG_RESULT([no]) -fi - ;; - *) - AC_MSG_RESULT([no]) - ;; - esac -fi -])# AC_LIBTOOL_SYS_LIB_STRIP - - -# AC_LIBTOOL_SYS_DYNAMIC_LINKER -# ----------------------------- -# PORTME Fill in your ld.so characteristics -AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], -[AC_REQUIRE([LT_AC_PROG_SED])dnl -AC_MSG_CHECKING([dynamic linker characteristics]) -library_names_spec= -libname_spec='lib$name' -soname_spec= -shrext_cmds=".so" -postinstall_cmds= -postuninstall_cmds= -finish_cmds= -finish_eval= -shlibpath_var= -shlibpath_overrides_runpath=unknown -version_type=none -dynamic_linker="$host_os ld.so" -sys_lib_dlsearch_path_spec="/lib /usr/lib" -m4_if($1,[],[ -if test "$GCC" = yes; then - case $host_os in - darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; - *) lt_awk_arg="/^libraries:/" ;; - esac - lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` - if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then - # if the path contains ";" then we assume it to be the separator - # otherwise default to the standard path separator (i.e. ":") - it is - # assumed that no part of a normal pathname contains ";" but that should - # okay in the real world where ";" in dirpaths is itself problematic. - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` - else - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi - # Ok, now we have the path, separated by spaces, we can step through it - # and add multilib dir if necessary. - lt_tmp_lt_search_path_spec= - lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` - for lt_sys_path in $lt_search_path_spec; do - if test -d "$lt_sys_path/$lt_multi_os_dir"; then - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" - else - test -d "$lt_sys_path" && \ - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" - fi - done - lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' -BEGIN {RS=" "; FS="/|\n";} { - lt_foo=""; - lt_count=0; - for (lt_i = NF; lt_i > 0; lt_i--) { - if ($lt_i != "" && $lt_i != ".") { - if ($lt_i == "..") { - lt_count++; - } else { - if (lt_count == 0) { - lt_foo="/" $lt_i lt_foo; - } else { - lt_count--; - } - } - } - } - if (lt_foo != "") { lt_freq[[lt_foo]]++; } - if (lt_freq[[lt_foo]] == 1) { print lt_foo; } -}'` - sys_lib_search_path_spec=`echo $lt_search_path_spec` -else - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" -fi]) -need_lib_prefix=unknown -hardcode_into_libs=no - -# when you set need_version to no, make sure it does not cause -set_version -# flags to be left without arguments -need_version=unknown - -case $host_os in -aix3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' - shlibpath_var=LIBPATH - - # AIX 3 has no versioning support, so we append a major version to the name. - soname_spec='${libname}${release}${shared_ext}$major' - ;; - -aix[[4-9]]*) - version_type=linux - need_lib_prefix=no - need_version=no - hardcode_into_libs=yes - if test "$host_cpu" = ia64; then - # AIX 5 supports IA64 - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - else - # With GCC up to 2.95.x, collect2 would create an import file - # for dependence libraries. The import file would start with - # the line `#! .'. This would cause the generated library to - # depend on `.', always an invalid library. This was fixed in - # development snapshots of GCC prior to 3.0. - case $host_os in - aix4 | aix4.[[01]] | aix4.[[01]].*) - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' - echo ' yes ' - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then - : - else - can_build_shared=no - fi - ;; - esac - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct - # soname into executable. Probably we can add versioning support to - # collect2, so additional links can be useful in future. - if test "$aix_use_runtimelinking" = yes; then - # If using run time linking (on AIX 4.2 or later) use lib.so - # instead of lib.a to let people know that these are not - # typical AIX shared libraries. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - else - # We preserve .a as extension for shared libraries through AIX4.2 - # and later when we are not doing run time linking. - library_names_spec='${libname}${release}.a $libname.a' - soname_spec='${libname}${release}${shared_ext}$major' - fi - shlibpath_var=LIBPATH - fi - ;; - -amigaos*) - library_names_spec='$libname.ixlibrary $libname.a' - # Create ${libname}_ixlibrary.a entries in /sys/libs. - 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' - ;; - -beos*) - library_names_spec='${libname}${shared_ext}' - dynamic_linker="$host_os ld.so" - shlibpath_var=LIBRARY_PATH - ;; - -bsdi[[45]]*) - version_type=linux - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" - # the default ld.so.conf also contains /usr/contrib/lib and - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow - # libtool to hard-code these into programs - ;; - -cygwin* | mingw* | pw32*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in - yes,cygwin* | yes,mingw* | yes,pw32*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname~ - chmod a+x \$dldir/$dlname' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $rm \$dlpath' - shlibpath_overrides_runpath=yes - - case $host_os in - cygwin*) - # Cygwin DLLs use 'cyg' prefix rather than 'lib' - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" - ;; - mingw*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` - if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then - # It is most probably a Windows format PATH printed by - # mingw gcc, but we are running on Cygwin. Gcc prints its search - # path with ; separators, and with drive letters. We can handle the - # drive letters (cygwin fileutils understands them), so leave them, - # especially as we might pass files found there to a mingw objdump, - # which wouldn't understand a cygwinified path. Ahh. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` - else - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi - ;; - pw32*) - # pw32 DLLs use 'pw' prefix rather than 'lib' - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' - ;; - esac - ;; - - *) - library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' - ;; - esac - dynamic_linker='Win32 ld.exe' - # FIXME: first we should search . and the directory the executable is in - shlibpath_var=PATH - ;; - -darwin* | rhapsody*) - dynamic_linker="$host_os dyld" - version_type=darwin - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' - soname_spec='${libname}${release}${major}$shared_ext' - shlibpath_overrides_runpath=yes - shlibpath_var=DYLD_LIBRARY_PATH - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' - m4_if([$1], [],[ - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' - ;; - -dgux*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -freebsd1*) - dynamic_linker=no - ;; - -freebsd* | dragonfly*) - # DragonFly does not have aout. When/if they implement a new - # versioning mechanism, adjust this. - if test -x /usr/bin/objformat; then - objformat=`/usr/bin/objformat` - else - case $host_os in - freebsd[[123]]*) objformat=aout ;; - *) objformat=elf ;; - esac - fi - version_type=freebsd-$objformat - case $version_type in - freebsd-elf*) - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - need_version=no - need_lib_prefix=no - ;; - freebsd-*) - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' - need_version=yes - ;; - esac - shlibpath_var=LD_LIBRARY_PATH - case $host_os in - freebsd2*) - shlibpath_overrides_runpath=yes - ;; - freebsd3.[[01]]* | freebsdelf3.[[01]]*) - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ - freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - *) # from 4.6 on, and DragonFly - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - esac - ;; - -gnu*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - ;; - -hpux9* | hpux10* | hpux11*) - # Give a soname corresponding to the major version so that dld.sl refuses to - # link against other versions. - version_type=sunos - need_lib_prefix=no - need_version=no - case $host_cpu in - ia64*) - shrext_cmds='.so' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.so" - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - if test "X$HPUX_IA64_MODE" = X32; then - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" - else - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" - fi - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - hppa*64*) - shrext_cmds='.sl' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.sl" - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - *) - shrext_cmds='.sl' - dynamic_linker="$host_os dld.sl" - shlibpath_var=SHLIB_PATH - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - ;; - esac - # HP-UX runs *really* slowly unless shared libraries are mode 555. - postinstall_cmds='chmod 555 $lib' - ;; - -interix[[3-9]]*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - -irix5* | irix6* | nonstopux*) - case $host_os in - nonstopux*) version_type=nonstopux ;; - *) - if test "$lt_cv_prog_gnu_ld" = yes; then - version_type=linux - else - version_type=irix - fi ;; - esac - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' - case $host_os in - irix5* | nonstopux*) - libsuff= shlibsuff= - ;; - *) - case $LD in # libtool.m4 will add one of these switches to LD - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") - libsuff= shlibsuff= libmagic=32-bit;; - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") - libsuff=32 shlibsuff=N32 libmagic=N32;; - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") - libsuff=64 shlibsuff=64 libmagic=64-bit;; - *) libsuff= shlibsuff= libmagic=never-match;; - esac - ;; - esac - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH - shlibpath_overrides_runpath=no - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" - hardcode_into_libs=yes - ;; - -# No shared lib support for Linux oldld, aout, or coff. -linux*oldld* | linux*aout* | linux*coff*) - dynamic_linker=no - ;; - -# This must be Linux ELF. -linux* | k*bsd*-gnu) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - # This implies no fast_install, which is unacceptable. - # Some rework will be needed to allow for fast_install - # before this can be enabled. - hardcode_into_libs=yes - - # Append ld.so.conf contents to the search path - if test -f /etc/ld.so.conf; then - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" - fi - - # We used to test for /lib/ld.so.1 and disable shared libraries on - # powerpc, because MkLinux only supported shared libraries with the - # GNU dynamic linker. Since this was broken with cross compilers, - # most powerpc-linux boxes support dynamic linking these days and - # people can always --disable-shared, the test was removed, and we - # assume the GNU/Linux dynamic linker is in use. - dynamic_linker='GNU/Linux ld.so' - ;; - -netbsdelf*-gnu) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - dynamic_linker='NetBSD ld.elf_so' - ;; - -netbsd*) - version_type=sunos - need_lib_prefix=no - need_version=no - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - dynamic_linker='NetBSD (a.out) ld.so' - else - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='NetBSD ld.elf_so' - fi - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - -newsos6) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -nto-qnx*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -openbsd*) - version_type=sunos - sys_lib_dlsearch_path_spec="/usr/lib" - need_lib_prefix=no - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. - case $host_os in - openbsd3.3 | openbsd3.3.*) need_version=yes ;; - *) need_version=no ;; - esac - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - shlibpath_var=LD_LIBRARY_PATH - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - case $host_os in - openbsd2.[[89]] | openbsd2.[[89]].*) - shlibpath_overrides_runpath=no - ;; - *) - shlibpath_overrides_runpath=yes - ;; - esac - else - shlibpath_overrides_runpath=yes - fi - ;; - -os2*) - libname_spec='$name' - shrext_cmds=".dll" - need_lib_prefix=no - library_names_spec='$libname${shared_ext} $libname.a' - dynamic_linker='OS/2 ld.exe' - shlibpath_var=LIBPATH - ;; - -osf3* | osf4* | osf5*) - version_type=osf - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" - ;; - -rdos*) - dynamic_linker=no - ;; - -solaris*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - # ldd complains unless libraries are executable - postinstall_cmds='chmod +x $lib' - ;; - -sunos4*) - version_type=sunos - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - if test "$with_gnu_ld" = yes; then - need_lib_prefix=no - fi - need_version=yes - ;; - -sysv4 | sysv4.3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - case $host_vendor in - sni) - shlibpath_overrides_runpath=no - need_lib_prefix=no - export_dynamic_flag_spec='${wl}-Blargedynsym' - runpath_var=LD_RUN_PATH - ;; - siemens) - need_lib_prefix=no - ;; - motorola) - need_lib_prefix=no - need_version=no - shlibpath_overrides_runpath=no - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' - ;; - esac - ;; - -sysv4*MP*) - if test -d /usr/nec ;then - version_type=linux - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' - soname_spec='$libname${shared_ext}.$major' - shlibpath_var=LD_LIBRARY_PATH - fi - ;; - -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - version_type=freebsd-elf - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - if test "$with_gnu_ld" = yes; then - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' - shlibpath_overrides_runpath=no - else - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' - shlibpath_overrides_runpath=yes - case $host_os in - sco3.2v5*) - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" - ;; - esac - fi - sys_lib_dlsearch_path_spec='/usr/lib' - ;; - -uts4*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -*) - dynamic_linker=no - ;; -esac -AC_MSG_RESULT([$dynamic_linker]) -test "$dynamic_linker" = no && can_build_shared=no - -AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec], -[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"]) -sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" -AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec], -[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"]) -sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" - -variables_saved_for_relink="PATH $shlibpath_var $runpath_var" -if test "$GCC" = yes; then - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" -fi -])# AC_LIBTOOL_SYS_DYNAMIC_LINKER - - -# _LT_AC_TAGCONFIG -# ---------------- -AC_DEFUN([_LT_AC_TAGCONFIG], -[AC_REQUIRE([LT_AC_PROG_SED])dnl -AC_ARG_WITH([tags], - [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], - [include additional configurations @<:@automatic@:>@])], - [tagnames="$withval"]) - -if test -f "$ltmain" && test -n "$tagnames"; then - if test ! -f "${ofile}"; then - AC_MSG_WARN([output file `$ofile' does not exist]) - fi - - if test -z "$LTCC"; then - eval "`$SHELL ${ofile} --config | grep '^LTCC='`" - if test -z "$LTCC"; then - AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) - else - AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) - fi - fi - if test -z "$LTCFLAGS"; then - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" - fi - - # Extract list of available tagged configurations in $ofile. - # Note that this assumes the entire list is on one line. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` - - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for tagname in $tagnames; do - IFS="$lt_save_ifs" - # Check whether tagname contains only valid characters - case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in - "") ;; - *) AC_MSG_ERROR([invalid tag name: $tagname]) - ;; - esac - - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null - then - AC_MSG_ERROR([tag name \"$tagname\" already exists]) - fi - - # Update the list of available tags. - if test -n "$tagname"; then - echo appending configuration tag \"$tagname\" to $ofile - - case $tagname in - CXX) - if test -n "$CXX" && ( test "X$CXX" != "Xno" && - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || - (test "X$CXX" != "Xg++"))) ; then - AC_LIBTOOL_LANG_CXX_CONFIG - else - tagname="" - fi - ;; - - F77) - if test -n "$F77" && test "X$F77" != "Xno"; then - AC_LIBTOOL_LANG_F77_CONFIG - else - tagname="" - fi - ;; - - GCJ) - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then - AC_LIBTOOL_LANG_GCJ_CONFIG - else - tagname="" - fi - ;; - - RC) - AC_LIBTOOL_LANG_RC_CONFIG - ;; - - *) - AC_MSG_ERROR([Unsupported tag name: $tagname]) - ;; - esac - - # Append the new tag name to the list of available tags. - if test -n "$tagname" ; then - available_tags="$available_tags $tagname" - fi - fi - done - IFS="$lt_save_ifs" - - # Now substitute the updated list of available tags. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then - mv "${ofile}T" "$ofile" - chmod +x "$ofile" - else - rm -f "${ofile}T" - AC_MSG_ERROR([unable to update list of available tagged configurations.]) - fi -fi -])# _LT_AC_TAGCONFIG - - -# AC_LIBTOOL_DLOPEN -# ----------------- -# enable checks for dlopen support -AC_DEFUN([AC_LIBTOOL_DLOPEN], - [AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) -])# AC_LIBTOOL_DLOPEN - - -# AC_LIBTOOL_WIN32_DLL -# -------------------- -# declare package support for building win32 DLLs -AC_DEFUN([AC_LIBTOOL_WIN32_DLL], -[AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) -])# AC_LIBTOOL_WIN32_DLL - - -# AC_ENABLE_SHARED([DEFAULT]) -# --------------------------- -# implement the --enable-shared flag -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. -AC_DEFUN([AC_ENABLE_SHARED], -[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl -AC_ARG_ENABLE([shared], - [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], - [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])], - [p=${PACKAGE-default} - case $enableval in - yes) enable_shared=yes ;; - no) enable_shared=no ;; - *) - enable_shared=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for pkg in $enableval; do - IFS="$lt_save_ifs" - if test "X$pkg" = "X$p"; then - enable_shared=yes - fi - done - IFS="$lt_save_ifs" - ;; - esac], - [enable_shared=]AC_ENABLE_SHARED_DEFAULT) -])# AC_ENABLE_SHARED - - -# AC_DISABLE_SHARED -# ----------------- -# set the default shared flag to --disable-shared -AC_DEFUN([AC_DISABLE_SHARED], -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl -AC_ENABLE_SHARED(no) -])# AC_DISABLE_SHARED - - -# AC_ENABLE_STATIC([DEFAULT]) -# --------------------------- -# implement the --enable-static flag -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. -AC_DEFUN([AC_ENABLE_STATIC], -[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl -AC_ARG_ENABLE([static], - [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@], - [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])], - [p=${PACKAGE-default} - case $enableval in - yes) enable_static=yes ;; - no) enable_static=no ;; - *) - enable_static=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for pkg in $enableval; do - IFS="$lt_save_ifs" - if test "X$pkg" = "X$p"; then - enable_static=yes - fi - done - IFS="$lt_save_ifs" - ;; - esac], - [enable_static=]AC_ENABLE_STATIC_DEFAULT) -])# AC_ENABLE_STATIC - - -# AC_DISABLE_STATIC -# ----------------- -# set the default static flag to --disable-static -AC_DEFUN([AC_DISABLE_STATIC], -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl -AC_ENABLE_STATIC(no) -])# AC_DISABLE_STATIC - - -# AC_ENABLE_FAST_INSTALL([DEFAULT]) -# --------------------------------- -# implement the --enable-fast-install flag -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. -AC_DEFUN([AC_ENABLE_FAST_INSTALL], -[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl -AC_ARG_ENABLE([fast-install], - [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], - [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], - [p=${PACKAGE-default} - case $enableval in - yes) enable_fast_install=yes ;; - no) enable_fast_install=no ;; - *) - enable_fast_install=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for pkg in $enableval; do - IFS="$lt_save_ifs" - if test "X$pkg" = "X$p"; then - enable_fast_install=yes - fi - done - IFS="$lt_save_ifs" - ;; - esac], - [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT) -])# AC_ENABLE_FAST_INSTALL - - -# AC_DISABLE_FAST_INSTALL -# ----------------------- -# set the default to --disable-fast-install -AC_DEFUN([AC_DISABLE_FAST_INSTALL], -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl -AC_ENABLE_FAST_INSTALL(no) -])# AC_DISABLE_FAST_INSTALL - - -# AC_LIBTOOL_PICMODE([MODE]) -# -------------------------- -# implement the --with-pic flag -# MODE is either `yes' or `no'. If omitted, it defaults to `both'. -AC_DEFUN([AC_LIBTOOL_PICMODE], -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl -pic_mode=ifelse($#,1,$1,default) -])# AC_LIBTOOL_PICMODE - - -# AC_PROG_EGREP -# ------------- -# This is predefined starting with Autoconf 2.54, so this conditional -# definition can be removed once we require Autoconf 2.54 or later. -m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP], -[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep], - [if echo a | (grep -E '(a|b)') >/dev/null 2>&1 - then ac_cv_prog_egrep='grep -E' - else ac_cv_prog_egrep='egrep' - fi]) - EGREP=$ac_cv_prog_egrep - AC_SUBST([EGREP]) -])]) - - -# AC_PATH_TOOL_PREFIX -# ------------------- -# find a file program which can recognize shared library -AC_DEFUN([AC_PATH_TOOL_PREFIX], -[AC_REQUIRE([AC_PROG_EGREP])dnl -AC_MSG_CHECKING([for $1]) -AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, -[case $MAGIC_CMD in -[[\\/*] | ?:[\\/]*]) - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. - ;; -*) - lt_save_MAGIC_CMD="$MAGIC_CMD" - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR -dnl $ac_dummy forces splitting on constant user-supplied paths. -dnl POSIX.2 word splitting is done only on the output of word expansions, -dnl not every word. This closes a longstanding sh security hole. - ac_dummy="ifelse([$2], , $PATH, [$2])" - for ac_dir in $ac_dummy; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$1; then - lt_cv_path_MAGIC_CMD="$ac_dir/$1" - if test -n "$file_magic_test_file"; then - case $deplibs_check_method in - "file_magic "*) - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` - MAGIC_CMD="$lt_cv_path_MAGIC_CMD" - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | - $EGREP "$file_magic_regex" > /dev/null; then - : - else - cat <&2 - -*** Warning: the command libtool uses to detect shared libraries, -*** $file_magic_cmd, produces output that libtool cannot recognize. -*** The result is that libtool may fail to recognize shared libraries -*** as such. This will affect the creation of libtool libraries that -*** depend on shared libraries, but programs linked with such libtool -*** libraries will work regardless of this problem. Nevertheless, you -*** may want to report the problem to your system manager and/or to -*** bug-libtool@gnu.org - -EOF - fi ;; - esac - fi - break - fi - done - IFS="$lt_save_ifs" - MAGIC_CMD="$lt_save_MAGIC_CMD" - ;; -esac]) -MAGIC_CMD="$lt_cv_path_MAGIC_CMD" -if test -n "$MAGIC_CMD"; then - AC_MSG_RESULT($MAGIC_CMD) -else - AC_MSG_RESULT(no) -fi -])# AC_PATH_TOOL_PREFIX - - -# AC_PATH_MAGIC -# ------------- -# find a file program which can recognize a shared library -AC_DEFUN([AC_PATH_MAGIC], -[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) -if test -z "$lt_cv_path_MAGIC_CMD"; then - if test -n "$ac_tool_prefix"; then - AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) - else - MAGIC_CMD=: - fi -fi -])# AC_PATH_MAGIC - - -# AC_PROG_LD -# ---------- -# find the pathname to the GNU or non-GNU linker -AC_DEFUN([AC_PROG_LD], -[AC_ARG_WITH([gnu-ld], - [AC_HELP_STRING([--with-gnu-ld], - [assume the C compiler uses GNU ld @<:@default=no@:>@])], - [test "$withval" = no || with_gnu_ld=yes], - [with_gnu_ld=no]) -AC_REQUIRE([LT_AC_PROG_SED])dnl -AC_REQUIRE([AC_PROG_CC])dnl -AC_REQUIRE([AC_CANONICAL_HOST])dnl -AC_REQUIRE([AC_CANONICAL_BUILD])dnl -ac_prog=ld -if test "$GCC" = yes; then - # Check if gcc -print-prog-name=ld gives a path. - AC_MSG_CHECKING([for ld used by $CC]) - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [[\\/]]* | ?:[[\\/]]*) - re_direlt='/[[^/]][[^/]]*/\.\./' - # Canonicalize the pathname of ld - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` - done - test -z "$LD" && LD="$ac_prog" - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac -elif test "$with_gnu_ld" = yes; then - AC_MSG_CHECKING([for GNU ld]) -else - AC_MSG_CHECKING([for non-GNU ld]) -fi -AC_CACHE_VAL(lt_cv_path_LD, -[if test -z "$LD"; then - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in $PATH; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - lt_cv_path_LD="$ac_dir/$ac_prog" - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some variants of GNU ld only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - case `"$lt_cv_path_LD" -v 2>&1 &1 /dev/null 2>&1; then - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' - else - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' - lt_cv_file_magic_cmd='$OBJDUMP -f' - fi - ;; - -darwin* | rhapsody*) - lt_cv_deplibs_check_method=pass_all - ;; - -freebsd* | dragonfly*) - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then - case $host_cpu in - i*86 ) - # Not sure whether the presence of OpenBSD here was a mistake. - # Let's accept both of them until this is cleared up. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' - lt_cv_file_magic_cmd=/usr/bin/file - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` - ;; - esac - else - lt_cv_deplibs_check_method=pass_all - fi - ;; - -gnu*) - lt_cv_deplibs_check_method=pass_all - ;; - -hpux10.20* | hpux11*) - lt_cv_file_magic_cmd=/usr/bin/file - case $host_cpu in - ia64*) - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so - ;; - hppa*64*) - [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]'] - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl - ;; - *) - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' - lt_cv_file_magic_test_file=/usr/lib/libc.sl - ;; - esac - ;; - -interix[[3-9]]*) - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' - ;; - -irix5* | irix6* | nonstopux*) - case $LD in - *-32|*"-32 ") libmagic=32-bit;; - *-n32|*"-n32 ") libmagic=N32;; - *-64|*"-64 ") libmagic=64-bit;; - *) libmagic=never-match;; - esac - lt_cv_deplibs_check_method=pass_all - ;; - -# This must be Linux ELF. -linux* | k*bsd*-gnu) - lt_cv_deplibs_check_method=pass_all - ;; - -netbsd* | netbsdelf*-gnu) - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' - else - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' - fi - ;; - -newos6*) - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' - lt_cv_file_magic_cmd=/usr/bin/file - lt_cv_file_magic_test_file=/usr/lib/libnls.so - ;; - -nto-qnx*) - lt_cv_deplibs_check_method=unknown - ;; - -openbsd*) - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' - else - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' - fi - ;; - -osf3* | osf4* | osf5*) - lt_cv_deplibs_check_method=pass_all - ;; - -rdos*) - lt_cv_deplibs_check_method=pass_all - ;; - -solaris*) - lt_cv_deplibs_check_method=pass_all - ;; - -sysv4 | sysv4.3*) - case $host_vendor in - motorola) - 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]]' - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` - ;; - ncr) - lt_cv_deplibs_check_method=pass_all - ;; - sequent) - lt_cv_file_magic_cmd='/bin/file' - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' - ;; - sni) - lt_cv_file_magic_cmd='/bin/file' - lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" - lt_cv_file_magic_test_file=/lib/libc.so - ;; - siemens) - lt_cv_deplibs_check_method=pass_all - ;; - pc) - lt_cv_deplibs_check_method=pass_all - ;; - esac - ;; - -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - lt_cv_deplibs_check_method=pass_all - ;; -esac -]) -file_magic_cmd=$lt_cv_file_magic_cmd -deplibs_check_method=$lt_cv_deplibs_check_method -test -z "$deplibs_check_method" && deplibs_check_method=unknown -])# AC_DEPLIBS_CHECK_METHOD - - -# AC_PROG_NM -# ---------- -# find the pathname to a BSD-compatible name lister -AC_DEFUN([AC_PROG_NM], -[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, -[if test -n "$NM"; then - # Let the user override the test. - lt_cv_path_NM="$NM" -else - lt_nm_to_check="${ac_tool_prefix}nm" - if test -n "$ac_tool_prefix" && test "$build" = "$host"; then - lt_nm_to_check="$lt_nm_to_check nm" - fi - for lt_tmp_nm in $lt_nm_to_check; do - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - tmp_nm="$ac_dir/$lt_tmp_nm" - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then - # Check to see if the nm accepts a BSD-compat flag. - # Adding the `sed 1q' prevents false positives on HP-UX, which says: - # nm: unknown option "B" ignored - # Tru64's nm complains that /dev/null is an invalid object file - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in - */dev/null* | *'Invalid file or object type'*) - lt_cv_path_NM="$tmp_nm -B" - break - ;; - *) - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in - */dev/null*) - lt_cv_path_NM="$tmp_nm -p" - break - ;; - *) - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but - continue # so that we can try to find one that supports BSD flags - ;; - esac - ;; - esac - fi - done - IFS="$lt_save_ifs" - done - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm -fi]) -NM="$lt_cv_path_NM" -])# AC_PROG_NM - - -# AC_CHECK_LIBM -# ------------- -# check for math library -AC_DEFUN([AC_CHECK_LIBM], -[AC_REQUIRE([AC_CANONICAL_HOST])dnl -LIBM= -case $host in -*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) - # These system don't have libm, or don't need it - ;; -*-ncr-sysv4.3*) - AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") - AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") - ;; -*) - AC_CHECK_LIB(m, cos, LIBM="-lm") - ;; -esac -])# AC_CHECK_LIBM - - -# AC_LIBLTDL_CONVENIENCE([DIRECTORY]) -# ----------------------------------- -# sets LIBLTDL to the link flags for the libltdl convenience library and -# LTDLINCL to the include flags for the libltdl header and adds -# --enable-ltdl-convenience to the configure arguments. Note that -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, -# it is assumed to be `libltdl'. LIBLTDL will be prefixed with -# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/' -# (note the single quotes!). If your package is not flat and you're not -# using automake, define top_builddir and top_srcdir appropriately in -# the Makefiles. -AC_DEFUN([AC_LIBLTDL_CONVENIENCE], -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl - case $enable_ltdl_convenience in - no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; - "") enable_ltdl_convenience=yes - ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; - esac - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) - # For backwards non-gettext consistent compatibility... - INCLTDL="$LTDLINCL" -])# AC_LIBLTDL_CONVENIENCE - - -# AC_LIBLTDL_INSTALLABLE([DIRECTORY]) -# ----------------------------------- -# sets LIBLTDL to the link flags for the libltdl installable library and -# LTDLINCL to the include flags for the libltdl header and adds -# --enable-ltdl-install to the configure arguments. Note that -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, -# and an installed libltdl is not found, it is assumed to be `libltdl'. -# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with -# '${top_srcdir}/' (note the single quotes!). If your package is not -# flat and you're not using automake, define top_builddir and top_srcdir -# appropriately in the Makefiles. -# In the future, this macro may have to be called after AC_PROG_LIBTOOL. -AC_DEFUN([AC_LIBLTDL_INSTALLABLE], -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl - AC_CHECK_LIB(ltdl, lt_dlinit, - [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], - [if test x"$enable_ltdl_install" = xno; then - AC_MSG_WARN([libltdl not installed, but installation disabled]) - else - enable_ltdl_install=yes - fi - ]) - if test x"$enable_ltdl_install" = x"yes"; then - ac_configure_args="$ac_configure_args --enable-ltdl-install" - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) - else - ac_configure_args="$ac_configure_args --enable-ltdl-install=no" - LIBLTDL="-lltdl" - LTDLINCL= - fi - # For backwards non-gettext consistent compatibility... - INCLTDL="$LTDLINCL" -])# AC_LIBLTDL_INSTALLABLE - - -# AC_LIBTOOL_CXX -# -------------- -# enable support for C++ libraries -AC_DEFUN([AC_LIBTOOL_CXX], -[AC_REQUIRE([_LT_AC_LANG_CXX]) -])# AC_LIBTOOL_CXX - - -# _LT_AC_LANG_CXX -# --------------- -AC_DEFUN([_LT_AC_LANG_CXX], -[AC_REQUIRE([AC_PROG_CXX]) -AC_REQUIRE([_LT_AC_PROG_CXXCPP]) -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) -])# _LT_AC_LANG_CXX - -# _LT_AC_PROG_CXXCPP -# ------------------ -AC_DEFUN([_LT_AC_PROG_CXXCPP], -[ -AC_REQUIRE([AC_PROG_CXX]) -if test -n "$CXX" && ( test "X$CXX" != "Xno" && - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || - (test "X$CXX" != "Xg++"))) ; then - AC_PROG_CXXCPP -fi -])# _LT_AC_PROG_CXXCPP - -# AC_LIBTOOL_F77 -# -------------- -# enable support for Fortran 77 libraries -AC_DEFUN([AC_LIBTOOL_F77], -[AC_REQUIRE([_LT_AC_LANG_F77]) -])# AC_LIBTOOL_F77 - - -# _LT_AC_LANG_F77 -# --------------- -AC_DEFUN([_LT_AC_LANG_F77], -[AC_REQUIRE([AC_PROG_F77]) -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77]) -])# _LT_AC_LANG_F77 - - -# AC_LIBTOOL_GCJ -# -------------- -# enable support for GCJ libraries -AC_DEFUN([AC_LIBTOOL_GCJ], -[AC_REQUIRE([_LT_AC_LANG_GCJ]) -])# AC_LIBTOOL_GCJ - - -# _LT_AC_LANG_GCJ -# --------------- -AC_DEFUN([_LT_AC_LANG_GCJ], -[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[], - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[], - [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], - [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], - [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) -])# _LT_AC_LANG_GCJ - - -# AC_LIBTOOL_RC -# ------------- -# enable support for Windows resource files -AC_DEFUN([AC_LIBTOOL_RC], -[AC_REQUIRE([LT_AC_PROG_RC]) -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC]) -])# AC_LIBTOOL_RC - - -# AC_LIBTOOL_LANG_C_CONFIG -# ------------------------ -# Ensure that the configuration vars for the C compiler are -# suitably defined. Those variables are subsequently used by -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. -AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG]) -AC_DEFUN([_LT_AC_LANG_C_CONFIG], -[lt_save_CC="$CC" -AC_LANG_PUSH(C) - -# Source file extension for C test sources. -ac_ext=c - -# Object file extension for compiled C test sources. -objext=o -_LT_AC_TAGVAR(objext, $1)=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code="int some_variable = 0;" - -# Code to be used in simple link tests -lt_simple_link_test_code='int main(){return(0);}' - -_LT_AC_SYS_COMPILER - -# save warnings/boilerplate of simple test code -_LT_COMPILER_BOILERPLATE -_LT_LINKER_BOILERPLATE - -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) -AC_LIBTOOL_PROG_COMPILER_PIC($1) -AC_LIBTOOL_PROG_CC_C_O($1) -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) -AC_LIBTOOL_PROG_LD_SHLIBS($1) -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) -AC_LIBTOOL_SYS_LIB_STRIP -AC_LIBTOOL_DLOPEN_SELF - -# Report which library types will actually be built -AC_MSG_CHECKING([if libtool supports shared libraries]) -AC_MSG_RESULT([$can_build_shared]) - -AC_MSG_CHECKING([whether to build shared libraries]) -test "$can_build_shared" = "no" && enable_shared=no - -# On AIX, shared libraries and static libraries use the same namespace, and -# are all built from PIC. -case $host_os in -aix3*) - test "$enable_shared" = yes && enable_static=no - if test -n "$RANLIB"; then - archive_cmds="$archive_cmds~\$RANLIB \$lib" - postinstall_cmds='$RANLIB $lib' - fi - ;; - -aix[[4-9]]*) - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then - test "$enable_shared" = yes && enable_static=no - fi - ;; -esac -AC_MSG_RESULT([$enable_shared]) - -AC_MSG_CHECKING([whether to build static libraries]) -# Make sure either enable_shared or enable_static is yes. -test "$enable_shared" = yes || enable_static=yes -AC_MSG_RESULT([$enable_static]) - -AC_LIBTOOL_CONFIG($1) - -AC_LANG_POP -CC="$lt_save_CC" -])# AC_LIBTOOL_LANG_C_CONFIG - - -# AC_LIBTOOL_LANG_CXX_CONFIG -# -------------------------- -# Ensure that the configuration vars for the C compiler are -# suitably defined. Those variables are subsequently used by -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. -AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) -AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], -[AC_LANG_PUSH(C++) -AC_REQUIRE([AC_PROG_CXX]) -AC_REQUIRE([_LT_AC_PROG_CXXCPP]) - -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no -_LT_AC_TAGVAR(allow_undefined_flag, $1)= -_LT_AC_TAGVAR(always_export_symbols, $1)=no -_LT_AC_TAGVAR(archive_expsym_cmds, $1)= -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= -_LT_AC_TAGVAR(hardcode_direct, $1)=no -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no -_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported -_LT_AC_TAGVAR(hardcode_automatic, $1)=no -_LT_AC_TAGVAR(module_cmds, $1)= -_LT_AC_TAGVAR(module_expsym_cmds, $1)= -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds -_LT_AC_TAGVAR(no_undefined_flag, $1)= -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no - -# Dependencies to place before and after the object being linked: -_LT_AC_TAGVAR(predep_objects, $1)= -_LT_AC_TAGVAR(postdep_objects, $1)= -_LT_AC_TAGVAR(predeps, $1)= -_LT_AC_TAGVAR(postdeps, $1)= -_LT_AC_TAGVAR(compiler_lib_search_path, $1)= -_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)= - -# Source file extension for C++ test sources. -ac_ext=cpp - -# Object file extension for compiled C++ test sources. -objext=o -_LT_AC_TAGVAR(objext, $1)=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code="int some_variable = 0;" - -# Code to be used in simple link tests -lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' - -# ltmain only uses $CC for tagged configurations so make sure $CC is set. -_LT_AC_SYS_COMPILER - -# save warnings/boilerplate of simple test code -_LT_COMPILER_BOILERPLATE -_LT_LINKER_BOILERPLATE - -# Allow CC to be a program name with arguments. -lt_save_CC=$CC -lt_save_LD=$LD -lt_save_GCC=$GCC -GCC=$GXX -lt_save_with_gnu_ld=$with_gnu_ld -lt_save_path_LD=$lt_cv_path_LD -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx -else - $as_unset lt_cv_prog_gnu_ld -fi -if test -n "${lt_cv_path_LDCXX+set}"; then - lt_cv_path_LD=$lt_cv_path_LDCXX -else - $as_unset lt_cv_path_LD -fi -test -z "${LDCXX+set}" || LD=$LDCXX -CC=${CXX-"c++"} -compiler=$CC -_LT_AC_TAGVAR(compiler, $1)=$CC -_LT_CC_BASENAME([$compiler]) - -# We don't want -fno-exception wen compiling C++ code, so set the -# no_builtin_flag separately -if test "$GXX" = yes; then - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' -else - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= -fi - -if test "$GXX" = yes; then - # Set up default GNU C++ configuration - - AC_PROG_LD - - # Check if GNU C++ uses GNU ld as the underlying linker, since the - # archiving commands below assume that GNU ld is being used. - if test "$with_gnu_ld" = yes; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' - - # If archive_cmds runs LD, not CC, wlarc should be empty - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to - # investigate it a little bit more. (MM) - wlarc='${wl}' - - # ancient GNU ld didn't support --whole-archive et. al. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ - grep 'no-whole-archive' > /dev/null; then - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - else - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= - fi - else - with_gnu_ld=no - wlarc= - - # A generic and very simple default shared library creation - # command for GNU C++ for the case where it uses the native - # linker, instead of GNU ld. If possible, this setting should - # overridden to take advantage of the native linker features on - # the platform it is being used on. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' - fi - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' - -else - GXX=no - with_gnu_ld=no - wlarc= -fi - -# PORTME: fill in a description of your system's C++ link characteristics -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) -_LT_AC_TAGVAR(ld_shlibs, $1)=yes -case $host_os in - aix3*) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - aix[[4-9]]*) - if test "$host_cpu" = ia64; then - # On IA64, the linker does run time linking by default, so we don't - # have to do anything special. - aix_use_runtimelinking=no - exp_sym_flag='-Bexport' - no_entry_flag="" - else - aix_use_runtimelinking=no - - # Test if we are trying to use run time linking or normal - # AIX style linking. If -brtl is somewhere in LDFLAGS, we - # need to do runtime linking. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) - for ld_flag in $LDFLAGS; do - case $ld_flag in - *-brtl*) - aix_use_runtimelinking=yes - break - ;; - esac - done - ;; - esac - - exp_sym_flag='-bexport' - no_entry_flag='-bnoentry' - fi - - # When large executables or shared objects are built, AIX ld can - # have problems creating the table of contents. If linking a library - # or program results in "error TOC overflow" add -mminimal-toc to - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. - - _LT_AC_TAGVAR(archive_cmds, $1)='' - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes - - if test "$GXX" = yes; then - case $host_os in aix4.[[012]]|aix4.[[012]].*) - # We only want to do this on AIX 4.2 and lower, the check - # below for broken collect2 doesn't work under 4.3+ - collect2name=`${CC} -print-prog-name=collect2` - if test -f "$collect2name" && \ - strings "$collect2name" | grep resolve_lib_name >/dev/null - then - # We have reworked collect2 - : - else - # We have old collect2 - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported - # It fails to find uninstalled libraries when the uninstalled - # path is not listed in the libpath. Setting hardcode_minus_L - # to unsupported forces relinking - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= - fi - ;; - esac - shared_flag='-shared' - if test "$aix_use_runtimelinking" = yes; then - shared_flag="$shared_flag "'${wl}-G' - fi - else - # not using gcc - if test "$host_cpu" = ia64; then - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release - # chokes on -Wl,-G. The following line is correct: - shared_flag='-G' - else - if test "$aix_use_runtimelinking" = yes; then - shared_flag='${wl}-G' - else - shared_flag='${wl}-bM:SRE' - fi - fi - fi - - # It seems that -bexpall does not export symbols beginning with - # underscore (_), so it is better to generate a list of symbols to export. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes - if test "$aix_use_runtimelinking" = yes; then - # Warning - without using the other runtime loading flags (-brtl), - # -berok will link without error, but may produce a broken library. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' - # Determine the default libpath from the value encoded in an empty executable. - _LT_AC_SYS_LIBPATH_AIX - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" - - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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" - else - if test "$host_cpu" = ia64; then - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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" - else - # Determine the default libpath from the value encoded in an empty executable. - _LT_AC_SYS_LIBPATH_AIX - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" - # Warning - without using the other run time loading flags, - # -berok will link without error, but may produce a broken library. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' - # Exported symbols can be pulled into shared objects from archives - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes - # This is similar to how AIX traditionally builds its shared libraries. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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' - fi - fi - ;; - - beos*) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported - # Joseph Beckenbach says some releases of gcc - # support --undefined. This deserves some investigation. FIXME - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - else - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - - chorus*) - case $cc_basename in - *) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - esac - ;; - - cygwin* | mingw* | pw32*) - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, - # as there is no search path for DLLs. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported - _LT_AC_TAGVAR(always_export_symbols, $1)=no - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes - - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then - _LT_AC_TAGVAR(archive_cmds, $1)='$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' - # If the export-symbols file already is a .def file (1st line - # is EXPORTS), use it as is; otherwise, prepend... - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then - cp $export_symbols $output_objdir/$soname.def; - else - echo EXPORTS > $output_objdir/$soname.def; - cat $export_symbols >> $output_objdir/$soname.def; - fi~ - $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' - else - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - darwin* | rhapsody*) - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_AC_TAGVAR(hardcode_direct, $1)=no - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes - _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" - if test "$GXX" = yes ; then - output_verbose_link_cmd='echo' - _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" - _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" - _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" - if test "$lt_cv_apple_cc_single_mod" != "yes"; then - _LT_AC_TAGVAR(archive_cmds, $1)="\$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${_lt_dsymutil}" - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed '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${_lt_dar_export_syms}${_lt_dsymutil}" - fi - else - case $cc_basename in - xlc*) - output_verbose_link_cmd='echo' - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - _LT_AC_TAGVAR(module_expsym_cmds, $1)='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}' - ;; - *) - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - esac - fi - ;; - - dgux*) - case $cc_basename in - ec++*) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - ghcx*) - # Green Hills C++ Compiler - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - *) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - esac - ;; - freebsd[[12]]*) - # C++ shared libraries reported to be fairly broken before switch to ELF - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - freebsd-elf*) - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no - ;; - freebsd* | dragonfly*) - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF - # conventions - _LT_AC_TAGVAR(ld_shlibs, $1)=yes - ;; - gnu*) - ;; - hpux9*) - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, - # but as the default - # location of the library. - - case $cc_basename in - CC*) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - aCC*) - _LT_AC_TAGVAR(archive_cmds, $1)='$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' - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - 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' - ;; - *) - if test "$GXX" = yes; then - _LT_AC_TAGVAR(archive_cmds, $1)='$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' - else - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - esac - ;; - hpux10*|hpux11*) - if test $with_gnu_ld = no; then - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - - case $host_cpu in - hppa*64*|ia64*) ;; - *) - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - ;; - esac - fi - case $host_cpu in - hppa*64*|ia64*) - _LT_AC_TAGVAR(hardcode_direct, $1)=no - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - *) - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, - # but as the default - # location of the library. - ;; - esac - - case $cc_basename in - CC*) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - aCC*) - case $host_cpu in - hppa*64*) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - ia64*) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - *) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - esac - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - 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' - ;; - *) - if test "$GXX" = yes; then - if test $with_gnu_ld = no; then - case $host_cpu in - hppa*64*) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - ia64*) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - *) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - esac - fi - else - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - esac - ;; - interix[[3-9]]*) - _LT_AC_TAGVAR(hardcode_direct, $1)=no - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. - # Instead, shared libraries are loaded at an image base (0x10000000 by - # default) and relocated if they conflict, which is a slow very memory - # consuming and fragmenting process. To avoid this, we pick a random, - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link - # time. Moving up from 0x10000000 also allows more sbrk(2) space. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='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' - ;; - irix5* | irix6*) - case $cc_basename in - CC*) - # SGI C++ - _LT_AC_TAGVAR(archive_cmds, $1)='$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' - - # Archives containing C++ object files must be created using - # "CC -ar", where "CC" is the IRIX C++ compiler. This is - # necessary to make sure instantiated templates are included - # in the archive. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' - ;; - *) - if test "$GXX" = yes; then - if test "$with_gnu_ld" = no; then - _LT_AC_TAGVAR(archive_cmds, $1)='$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' - else - _LT_AC_TAGVAR(archive_cmds, $1)='$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' - fi - fi - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes - ;; - esac - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - ;; - linux* | k*bsd*-gnu) - case $cc_basename in - KCC*) - # Kuck and Associates, Inc. (KAI) C++ Compiler - - # KCC will only create a shared library if the output file - # ends with ".so" (or ".sl" for HP-UX), so rename the library - # to its proper name (with version) after linking. - _LT_AC_TAGVAR(archive_cmds, $1)='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' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='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' - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - 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' - - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir' - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' - - # Archives containing C++ object files must be created using - # "CC -Bstatic", where "CC" is the KAI C++ compiler. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' - ;; - icpc*) - # Intel C++ - with_gnu_ld=yes - # version 8.0 and above of icpc choke on multiply defined symbols - # if we add $predep_objects and $postdep_objects, however 7.1 and - # earlier do not add the objects themselves. - case `$CC -V 2>&1` in - *"Version 7."*) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - ;; - *) # Version 8.0 or newer - tmp_idyn= - case $host_cpu in - ia64*) tmp_idyn=' -i_dynamic';; - esac - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - ;; - esac - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' - ;; - pgCC* | pgcpp*) - # Portland Group C++ compiler - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$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' - - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - ;; - cxx*) - # Compaq C++ - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' - - runpath_var=LD_RUN_PATH - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - 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' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C++ 5.9 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - - # Not sure whether something based on - # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 - # would be better. - output_verbose_link_cmd='echo' - - # Archives containing C++ object files must be created using - # "CC -xar", where "CC" is the Sun C++ compiler. This is - # necessary to make sure instantiated templates are included - # in the archive. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' - ;; - esac - ;; - esac - ;; - lynxos*) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - m88k*) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - mvs*) - case $cc_basename in - cxx*) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - *) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - esac - ;; - netbsd* | netbsdelf*-gnu) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' - wlarc= - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - fi - # Workaround some broken pre-1.5 toolchains - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' - ;; - openbsd2*) - # C++ shared libraries are fairly broken - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - openbsd*) - if test -f /usr/libexec/ld.so; then - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - fi - output_verbose_link_cmd='echo' - else - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - osf3*) - case $cc_basename in - KCC*) - # Kuck and Associates, Inc. (KAI) C++ Compiler - - # KCC will only create a shared library if the output file - # ends with ".so" (or ".sl" for HP-UX), so rename the library - # to its proper name (with version) after linking. - _LT_AC_TAGVAR(archive_cmds, $1)='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' - - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - - # Archives containing C++ object files must be created using - # "CC -Bstatic", where "CC" is the KAI C++ compiler. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' - - ;; - RCC*) - # Rational C++ 2.4.1 - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - cxx*) - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' - _LT_AC_TAGVAR(archive_cmds, $1)='$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' - - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - 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' - ;; - *) - if test "$GXX" = yes && test "$with_gnu_ld" = no; then - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' - _LT_AC_TAGVAR(archive_cmds, $1)='$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' - - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' - - else - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - esac - ;; - osf4* | osf5*) - case $cc_basename in - KCC*) - # Kuck and Associates, Inc. (KAI) C++ Compiler - - # KCC will only create a shared library if the output file - # ends with ".so" (or ".sl" for HP-UX), so rename the library - # to its proper name (with version) after linking. - _LT_AC_TAGVAR(archive_cmds, $1)='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' - - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - - # Archives containing C++ object files must be created using - # the KAI C++ compiler. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' - ;; - RCC*) - # Rational C++ 2.4.1 - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - cxx*) - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' - _LT_AC_TAGVAR(archive_cmds, $1)='$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' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ - echo "-hidden">> $lib.exp~ - $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~ - $rm $lib.exp' - - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - 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' - ;; - *) - if test "$GXX" = yes && test "$with_gnu_ld" = no; then - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' - _LT_AC_TAGVAR(archive_cmds, $1)='$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' - - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' - - else - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - esac - ;; - psos*) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - sunos4*) - case $cc_basename in - CC*) - # Sun C++ 4.x - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - lcc*) - # Lucid - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - *) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - esac - ;; - solaris*) - case $cc_basename in - CC*) - # Sun C++ 4.2, 5.x and Centerline C++ - _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $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' - - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - case $host_os in - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; - *) - # The compiler driver will combine and reorder linker options, - # but understands `-z linker_flag'. - # Supported since Solaris 2.6 (maybe 2.5.1?) - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' - ;; - esac - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes - - output_verbose_link_cmd='echo' - - # Archives containing C++ object files must be created using - # "CC -xar", where "CC" is the Sun C++ compiler. This is - # necessary to make sure instantiated templates are included - # in the archive. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' - ;; - gcx*) - # Green Hills C++ Compiler - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' - - # The C++ compiler must be used to create the archive. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' - ;; - *) - # GNU C++ compiler with Solaris linker - if test "$GXX" = yes && test "$with_gnu_ld" = no; then - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' - if $CC --version | grep -v '^2\.7' > /dev/null; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" - else - # g++ 2.7 appears to require `-G' NOT `-shared' on this - # platform. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" - fi - - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' - case $host_os in - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; - *) - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' - ;; - esac - fi - ;; - esac - ;; - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - runpath_var='LD_RUN_PATH' - - case $cc_basename in - CC*) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - ;; - sysv5* | sco3.2v5* | sco5v6*) - # Note: We can NOT use -z defs as we might desire, because we do not - # link with -lc, and that would cause any symbols used from libc to - # always be unresolved, which means just about no library would - # ever link correctly. If we're not using GNU ld we use -z text - # though, which does catch some bad symbols but isn't as heavy-handed - # as -z defs. - # For security reasons, it is highly recommended that you always - # use absolute paths for naming shared libraries, and exclude the - # DT_RUNPATH tag from executables and libraries. But doing so - # requires that you compile everything twice, which is a pain. - # So that behaviour is only enabled if SCOABSPATH is set to a - # non-empty value in the environment. Most likely only useful for - # creating official distributions of packages. - # This is a hack until libtool officially supports absolute path - # names for shared libraries. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' - runpath_var='LD_RUN_PATH' - - case $cc_basename in - CC*) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - ;; - tandem*) - case $cc_basename in - NCC*) - # NonStop-UX NCC 3.20 - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - *) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - esac - ;; - vxworks*) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - *) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; -esac -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no - -_LT_AC_TAGVAR(GCC, $1)="$GXX" -_LT_AC_TAGVAR(LD, $1)="$LD" - -AC_LIBTOOL_POSTDEP_PREDEP($1) -AC_LIBTOOL_PROG_COMPILER_PIC($1) -AC_LIBTOOL_PROG_CC_C_O($1) -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) -AC_LIBTOOL_PROG_LD_SHLIBS($1) -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) - -AC_LIBTOOL_CONFIG($1) - -AC_LANG_POP -CC=$lt_save_CC -LDCXX=$LD -LD=$lt_save_LD -GCC=$lt_save_GCC -with_gnu_ldcxx=$with_gnu_ld -with_gnu_ld=$lt_save_with_gnu_ld -lt_cv_path_LDCXX=$lt_cv_path_LD -lt_cv_path_LD=$lt_save_path_LD -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld -])# AC_LIBTOOL_LANG_CXX_CONFIG - -# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) -# ------------------------------------ -# Figure out "hidden" library dependencies from verbose -# compiler output when linking a shared library. -# Parse the compiler output and extract the necessary -# objects, libraries and library flags. -AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP], -[AC_REQUIRE([LT_AC_PROG_SED])dnl -dnl we can't use the lt_simple_compile_test_code here, -dnl because it contains code intended for an executable, -dnl not a library. It's possible we should let each -dnl tag define a new lt_????_link_test_code variable, -dnl but it's only used here... -ifelse([$1],[],[cat > conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext <&1 | sed 5q` in - *Sun\ C*) - # Sun C++ 5.9 - # - # The more standards-conforming stlport4 library is - # incompatible with the Cstd library. Avoid specifying - # it if it's in CXXFLAGS. Ignore libCrun as - # -library=stlport4 depends on it. - case " $CXX $CXXFLAGS " in - *" -library=stlport4 "*) - solaris_use_stlport4=yes - ;; - esac - if test "$solaris_use_stlport4" != yes; then - _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' - fi - ;; - esac - ;; - -solaris*) - case $cc_basename in - CC*) - # The more standards-conforming stlport4 library is - # incompatible with the Cstd library. Avoid specifying - # it if it's in CXXFLAGS. Ignore libCrun as - # -library=stlport4 depends on it. - case " $CXX $CXXFLAGS " in - *" -library=stlport4 "*) - solaris_use_stlport4=yes - ;; - esac - - # Adding this requires a known-good setup of shared libraries for - # Sun compiler versions before 5.6, else PIC objects from an old - # archive will be linked into the output, leading to subtle bugs. - if test "$solaris_use_stlport4" != yes; then - _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' - fi - ;; - esac - ;; -esac -]) -case " $_LT_AC_TAGVAR(postdeps, $1) " in -*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; -esac -])# AC_LIBTOOL_POSTDEP_PREDEP - -# AC_LIBTOOL_LANG_F77_CONFIG -# -------------------------- -# Ensure that the configuration vars for the C compiler are -# suitably defined. Those variables are subsequently used by -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. -AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)]) -AC_DEFUN([_LT_AC_LANG_F77_CONFIG], -[AC_REQUIRE([AC_PROG_F77]) -AC_LANG_PUSH(Fortran 77) - -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no -_LT_AC_TAGVAR(allow_undefined_flag, $1)= -_LT_AC_TAGVAR(always_export_symbols, $1)=no -_LT_AC_TAGVAR(archive_expsym_cmds, $1)= -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= -_LT_AC_TAGVAR(hardcode_direct, $1)=no -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no -_LT_AC_TAGVAR(hardcode_automatic, $1)=no -_LT_AC_TAGVAR(module_cmds, $1)= -_LT_AC_TAGVAR(module_expsym_cmds, $1)= -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds -_LT_AC_TAGVAR(no_undefined_flag, $1)= -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no - -# Source file extension for f77 test sources. -ac_ext=f - -# Object file extension for compiled f77 test sources. -objext=o -_LT_AC_TAGVAR(objext, $1)=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code="\ - subroutine t - return - end -" - -# Code to be used in simple link tests -lt_simple_link_test_code="\ - program t - end -" - -# ltmain only uses $CC for tagged configurations so make sure $CC is set. -_LT_AC_SYS_COMPILER - -# save warnings/boilerplate of simple test code -_LT_COMPILER_BOILERPLATE -_LT_LINKER_BOILERPLATE - -# Allow CC to be a program name with arguments. -lt_save_CC="$CC" -CC=${F77-"f77"} -compiler=$CC -_LT_AC_TAGVAR(compiler, $1)=$CC -_LT_CC_BASENAME([$compiler]) - -AC_MSG_CHECKING([if libtool supports shared libraries]) -AC_MSG_RESULT([$can_build_shared]) - -AC_MSG_CHECKING([whether to build shared libraries]) -test "$can_build_shared" = "no" && enable_shared=no - -# On AIX, shared libraries and static libraries use the same namespace, and -# are all built from PIC. -case $host_os in -aix3*) - test "$enable_shared" = yes && enable_static=no - if test -n "$RANLIB"; then - archive_cmds="$archive_cmds~\$RANLIB \$lib" - postinstall_cmds='$RANLIB $lib' - fi - ;; -aix[[4-9]]*) - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then - test "$enable_shared" = yes && enable_static=no - fi - ;; -esac -AC_MSG_RESULT([$enable_shared]) - -AC_MSG_CHECKING([whether to build static libraries]) -# Make sure either enable_shared or enable_static is yes. -test "$enable_shared" = yes || enable_static=yes -AC_MSG_RESULT([$enable_static]) - -_LT_AC_TAGVAR(GCC, $1)="$G77" -_LT_AC_TAGVAR(LD, $1)="$LD" - -AC_LIBTOOL_PROG_COMPILER_PIC($1) -AC_LIBTOOL_PROG_CC_C_O($1) -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) -AC_LIBTOOL_PROG_LD_SHLIBS($1) -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) - -AC_LIBTOOL_CONFIG($1) - -AC_LANG_POP -CC="$lt_save_CC" -])# AC_LIBTOOL_LANG_F77_CONFIG - - -# AC_LIBTOOL_LANG_GCJ_CONFIG -# -------------------------- -# Ensure that the configuration vars for the C compiler are -# suitably defined. Those variables are subsequently used by -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. -AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)]) -AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG], -[AC_LANG_SAVE - -# Source file extension for Java test sources. -ac_ext=java - -# Object file extension for compiled Java test sources. -objext=o -_LT_AC_TAGVAR(objext, $1)=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code="class foo {}" - -# Code to be used in simple link tests -lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' - -# ltmain only uses $CC for tagged configurations so make sure $CC is set. -_LT_AC_SYS_COMPILER - -# save warnings/boilerplate of simple test code -_LT_COMPILER_BOILERPLATE -_LT_LINKER_BOILERPLATE - -# Allow CC to be a program name with arguments. -lt_save_CC="$CC" -CC=${GCJ-"gcj"} -compiler=$CC -_LT_AC_TAGVAR(compiler, $1)=$CC -_LT_CC_BASENAME([$compiler]) - -# GCJ did not exist at the time GCC didn't implicitly link libc in. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no - -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds - -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) -AC_LIBTOOL_PROG_COMPILER_PIC($1) -AC_LIBTOOL_PROG_CC_C_O($1) -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) -AC_LIBTOOL_PROG_LD_SHLIBS($1) -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) - -AC_LIBTOOL_CONFIG($1) - -AC_LANG_RESTORE -CC="$lt_save_CC" -])# AC_LIBTOOL_LANG_GCJ_CONFIG - - -# AC_LIBTOOL_LANG_RC_CONFIG -# ------------------------- -# Ensure that the configuration vars for the Windows resource compiler are -# suitably defined. Those variables are subsequently used by -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. -AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)]) -AC_DEFUN([_LT_AC_LANG_RC_CONFIG], -[AC_LANG_SAVE - -# Source file extension for RC test sources. -ac_ext=rc - -# Object file extension for compiled RC test sources. -objext=o -_LT_AC_TAGVAR(objext, $1)=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' - -# Code to be used in simple link tests -lt_simple_link_test_code="$lt_simple_compile_test_code" - -# ltmain only uses $CC for tagged configurations so make sure $CC is set. -_LT_AC_SYS_COMPILER - -# save warnings/boilerplate of simple test code -_LT_COMPILER_BOILERPLATE -_LT_LINKER_BOILERPLATE - -# Allow CC to be a program name with arguments. -lt_save_CC="$CC" -CC=${RC-"windres"} -compiler=$CC -_LT_AC_TAGVAR(compiler, $1)=$CC -_LT_CC_BASENAME([$compiler]) -_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes - -AC_LIBTOOL_CONFIG($1) - -AC_LANG_RESTORE -CC="$lt_save_CC" -])# AC_LIBTOOL_LANG_RC_CONFIG - - -# AC_LIBTOOL_CONFIG([TAGNAME]) -# ---------------------------- -# If TAGNAME is not passed, then create an initial libtool script -# with a default configuration from the untagged config vars. Otherwise -# add code to config.status for appending the configuration named by -# TAGNAME from the matching tagged config vars. -AC_DEFUN([AC_LIBTOOL_CONFIG], -[# The else clause should only fire when bootstrapping the -# libtool distribution, otherwise you forgot to ship ltmain.sh -# with your package, and you will get complaints that there are -# no rules to generate ltmain.sh. -if test -f "$ltmain"; then - # See if we are running on zsh, and set the options which allow our commands through - # without removal of \ escapes. - if test -n "${ZSH_VERSION+set}" ; then - setopt NO_GLOB_SUBST - fi - # Now quote all the things that may contain metacharacters while being - # careful not to overquote the AC_SUBSTed values. We take copies of the - # variables and quote the copies for generation of the libtool script. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ - SED SHELL STRIP \ - libname_spec library_names_spec soname_spec extract_expsyms_cmds \ - old_striplib striplib file_magic_cmd finish_cmds finish_eval \ - deplibs_check_method reload_flag reload_cmds need_locks \ - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ - lt_cv_sys_global_symbol_to_c_name_address \ - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ - old_postinstall_cmds old_postuninstall_cmds \ - _LT_AC_TAGVAR(compiler, $1) \ - _LT_AC_TAGVAR(CC, $1) \ - _LT_AC_TAGVAR(LD, $1) \ - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \ - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \ - _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \ - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \ - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \ - _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \ - _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \ - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \ - _LT_AC_TAGVAR(old_archive_cmds, $1) \ - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \ - _LT_AC_TAGVAR(predep_objects, $1) \ - _LT_AC_TAGVAR(postdep_objects, $1) \ - _LT_AC_TAGVAR(predeps, $1) \ - _LT_AC_TAGVAR(postdeps, $1) \ - _LT_AC_TAGVAR(compiler_lib_search_path, $1) \ - _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \ - _LT_AC_TAGVAR(archive_cmds, $1) \ - _LT_AC_TAGVAR(archive_expsym_cmds, $1) \ - _LT_AC_TAGVAR(postinstall_cmds, $1) \ - _LT_AC_TAGVAR(postuninstall_cmds, $1) \ - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \ - _LT_AC_TAGVAR(allow_undefined_flag, $1) \ - _LT_AC_TAGVAR(no_undefined_flag, $1) \ - _LT_AC_TAGVAR(export_symbols_cmds, $1) \ - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \ - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \ - _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \ - _LT_AC_TAGVAR(hardcode_automatic, $1) \ - _LT_AC_TAGVAR(module_cmds, $1) \ - _LT_AC_TAGVAR(module_expsym_cmds, $1) \ - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \ - _LT_AC_TAGVAR(fix_srcfile_path, $1) \ - _LT_AC_TAGVAR(exclude_expsyms, $1) \ - _LT_AC_TAGVAR(include_expsyms, $1); do - - case $var in - _LT_AC_TAGVAR(old_archive_cmds, $1) | \ - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \ - _LT_AC_TAGVAR(archive_cmds, $1) | \ - _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \ - _LT_AC_TAGVAR(module_cmds, $1) | \ - _LT_AC_TAGVAR(module_expsym_cmds, $1) | \ - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \ - _LT_AC_TAGVAR(export_symbols_cmds, $1) | \ - extract_expsyms_cmds | reload_cmds | finish_cmds | \ - postinstall_cmds | postuninstall_cmds | \ - old_postinstall_cmds | old_postuninstall_cmds | \ - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) - # Double-quote double-evaled strings. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" - ;; - *) - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" - ;; - esac - done - - case $lt_echo in - *'\[$]0 --fallback-echo"') - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'` - ;; - esac - -ifelse([$1], [], - [cfgfile="${ofile}T" - trap "$rm \"$cfgfile\"; exit 1" 1 2 15 - $rm -f "$cfgfile" - AC_MSG_NOTICE([creating $ofile])], - [cfgfile="$ofile"]) - - cat <<__EOF__ >> "$cfgfile" -ifelse([$1], [], -[#! $SHELL - -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) -# NOTE: Changes made to this file will be lost: look at ltmain.sh. -# -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 -# Free Software Foundation, Inc. -# -# This file is part of GNU Libtool: -# Originally by Gordon Matzigkeit , 1996 -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -# -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - -# A sed program that does not truncate output. -SED=$lt_SED - -# Sed that helps us avoid accidentally triggering echo(1) options like -n. -Xsed="$SED -e 1s/^X//" - -# The HP-UX ksh and POSIX shell print the target directory to stdout -# if CDPATH is set. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH - -# The names of the tagged configurations supported by this script. -available_tags= - -# ### BEGIN LIBTOOL CONFIG], -[# ### BEGIN LIBTOOL TAG CONFIG: $tagname]) - -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: - -# Shell to use when invoking shell scripts. -SHELL=$lt_SHELL - -# Whether or not to build shared libraries. -build_libtool_libs=$enable_shared - -# Whether or not to build static libraries. -build_old_libs=$enable_static - -# Whether or not to add -lc for building shared libraries. -build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1) - -# Whether or not to disallow shared libs when runtime libs are static -allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) - -# Whether or not to optimize for fast installation. -fast_install=$enable_fast_install - -# The host system. -host_alias=$host_alias -host=$host -host_os=$host_os - -# The build system. -build_alias=$build_alias -build=$build -build_os=$build_os - -# An echo program that does not interpret backslashes. -echo=$lt_echo - -# The archiver. -AR=$lt_AR -AR_FLAGS=$lt_AR_FLAGS - -# A C compiler. -LTCC=$lt_LTCC - -# LTCC compiler flags. -LTCFLAGS=$lt_LTCFLAGS - -# A language-specific compiler. -CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) - -# Is the compiler the GNU C compiler? -with_gcc=$_LT_AC_TAGVAR(GCC, $1) - -# An ERE matcher. -EGREP=$lt_EGREP - -# The linker used to build libraries. -LD=$lt_[]_LT_AC_TAGVAR(LD, $1) - -# Whether we need hard or soft links. -LN_S=$lt_LN_S - -# A BSD-compatible nm program. -NM=$lt_NM - -# A symbol stripping program -STRIP=$lt_STRIP - -# Used to examine libraries when file_magic_cmd begins "file" -MAGIC_CMD=$MAGIC_CMD - -# Used on cygwin: DLL creation program. -DLLTOOL="$DLLTOOL" - -# Used on cygwin: object dumper. -OBJDUMP="$OBJDUMP" - -# Used on cygwin: assembler. -AS="$AS" - -# The name of the directory that contains temporary libtool files. -objdir=$objdir - -# How to create reloadable object files. -reload_flag=$lt_reload_flag -reload_cmds=$lt_reload_cmds - -# How to pass a linker flag through the compiler. -wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) - -# Object file suffix (normally "o"). -objext="$ac_objext" - -# Old archive suffix (normally "a"). -libext="$libext" - -# Shared library suffix (normally ".so"). -shrext_cmds='$shrext_cmds' - -# Executable file suffix (normally ""). -exeext="$exeext" - -# Additional compiler flags for building library objects. -pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) -pic_mode=$pic_mode - -# What is the maximum length of a command? -max_cmd_len=$lt_cv_sys_max_cmd_len - -# Does compiler simultaneously support -c and -o options? -compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) - -# Must we lock files when doing compilation? -need_locks=$lt_need_locks - -# Do we need the lib prefix for modules? -need_lib_prefix=$need_lib_prefix - -# Do we need a version for libraries? -need_version=$need_version - -# Whether dlopen is supported. -dlopen_support=$enable_dlopen - -# Whether dlopen of programs is supported. -dlopen_self=$enable_dlopen_self - -# Whether dlopen of statically linked programs is supported. -dlopen_self_static=$enable_dlopen_self_static - -# Compiler flag to prevent dynamic linking. -link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1) - -# Compiler flag to turn off builtin functions. -no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) - -# Compiler flag to allow reflexive dlopens. -export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) - -# Compiler flag to generate shared objects directly from archives. -whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1) - -# Compiler flag to generate thread-safe objects. -thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1) - -# Library versioning type. -version_type=$version_type - -# Format of library name prefix. -libname_spec=$lt_libname_spec - -# List of archive names. First name is the real one, the rest are links. -# The last name is the one that the linker finds with -lNAME. -library_names_spec=$lt_library_names_spec - -# The coded name of the library, if different from the real name. -soname_spec=$lt_soname_spec - -# Commands used to build and install an old-style archive. -RANLIB=$lt_RANLIB -old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1) -old_postinstall_cmds=$lt_old_postinstall_cmds -old_postuninstall_cmds=$lt_old_postuninstall_cmds - -# Create an old-style archive from a shared archive. -old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) - -# Create a temporary old-style archive to link instead of a shared archive. -old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) - -# Commands used to build and install a shared archive. -archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1) -archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1) -postinstall_cmds=$lt_postinstall_cmds -postuninstall_cmds=$lt_postuninstall_cmds - -# Commands used to build a loadable module (assumed same as above if empty) -module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1) -module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1) - -# Commands to strip libraries. -old_striplib=$lt_old_striplib -striplib=$lt_striplib - -# Dependencies to place before the objects being linked to create a -# shared library. -predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1) - -# Dependencies to place after the objects being linked to create a -# shared library. -postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1) - -# Dependencies to place before the objects being linked to create a -# shared library. -predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1) - -# Dependencies to place after the objects being linked to create a -# shared library. -postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1) - -# The directories searched by this compiler when creating a shared -# library -compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1) - -# The library search path used internally by the compiler when linking -# a shared library. -compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1) - -# Method to check whether dependent libraries are shared objects. -deplibs_check_method=$lt_deplibs_check_method - -# Command to use when deplibs_check_method == file_magic. -file_magic_cmd=$lt_file_magic_cmd - -# Flag that allows shared libraries with undefined symbols to be built. -allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1) - -# Flag that forces no undefined symbols. -no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1) - -# Commands used to finish a libtool library installation in a directory. -finish_cmds=$lt_finish_cmds - -# Same as above, but a single script fragment to be evaled but not shown. -finish_eval=$lt_finish_eval - -# Take the output of nm and produce a listing of raw symbols and C names. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe - -# Transform the output of nm in a proper C declaration -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl - -# Transform the output of nm in a C name address pair -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address - -# This is the shared library runtime path variable. -runpath_var=$runpath_var - -# This is the shared library path variable. -shlibpath_var=$shlibpath_var - -# Is shlibpath searched before the hard-coded library search path? -shlibpath_overrides_runpath=$shlibpath_overrides_runpath - -# How to hardcode a shared library path into an executable. -hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1) - -# Whether we should hardcode library paths into libraries. -hardcode_into_libs=$hardcode_into_libs - -# Flag to hardcode \$libdir into a binary during linking. -# This must work even if \$libdir does not exist. -hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) - -# If ld is used when linking, flag to hardcode \$libdir into -# a binary during linking. This must work even if \$libdir does -# not exist. -hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) - -# Whether we need a single -rpath flag with a separated argument. -hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1) - -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the -# resulting binary. -hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1) - -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the -# resulting binary. -hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1) - -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into -# the resulting binary. -hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1) - -# Set to yes if building a shared library automatically hardcodes DIR into the library -# and all subsequent libraries and executables linked against it. -hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1) - -# Variables whose values should be saved in libtool wrapper scripts and -# restored at relink time. -variables_saved_for_relink="$variables_saved_for_relink" - -# Whether libtool must link a program against all its dependency libraries. -link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1) - -# Compile-time system search path for libraries -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec - -# Run-time system search path for libraries -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec - -# Fix the shell variable \$srcfile for the compiler. -fix_srcfile_path=$lt_fix_srcfile_path - -# Set to yes if exported symbols are required. -always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1) - -# The commands to list exported symbols. -export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1) - -# The commands to extract the exported symbol list from a shared archive. -extract_expsyms_cmds=$lt_extract_expsyms_cmds - -# Symbols that should not be listed in the preloaded symbols. -exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1) - -# Symbols that must always be exported. -include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1) - -ifelse([$1],[], -[# ### END LIBTOOL CONFIG], -[# ### END LIBTOOL TAG CONFIG: $tagname]) - -__EOF__ - -ifelse([$1],[], [ - case $host_os in - aix3*) - cat <<\EOF >> "$cfgfile" - -# AIX sometimes has problems with the GCC collect2 program. For some -# reason, if we set the COLLECT_NAMES environment variable, the problems -# vanish in a puff of smoke. -if test "X${COLLECT_NAMES+set}" != Xset; then - COLLECT_NAMES= - export COLLECT_NAMES -fi -EOF - ;; - esac - - # We use sed instead of cat because bash on DJGPP gets confused if - # if finds mixed CR/LF and LF-only lines. Since sed operates in - # text mode, it properly converts lines to CR/LF. This bash problem - # is reportedly fixed, but why not run on old versions too? - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) - - mv -f "$cfgfile" "$ofile" || \ - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") - chmod +x "$ofile" -]) -else - # If there is no Makefile yet, we rely on a make rule to execute - # `config.status --recheck' to rerun these tests and create the - # libtool script then. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` - if test -f "$ltmain_in"; then - test -f Makefile && make "$ltmain" - fi -fi -])# AC_LIBTOOL_CONFIG - - -# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME]) -# ------------------------------------------- -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl - -_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= - -if test "$GCC" = yes; then - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' - - AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], - lt_cv_prog_compiler_rtti_exceptions, - [-fno-rtti -fno-exceptions], [], - [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) -fi -])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI - - -# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE -# --------------------------------- -AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], -[AC_REQUIRE([AC_CANONICAL_HOST]) -AC_REQUIRE([LT_AC_PROG_SED]) -AC_REQUIRE([AC_PROG_NM]) -AC_REQUIRE([AC_OBJEXT]) -# Check for command to grab the raw symbol name followed by C symbol from nm. -AC_MSG_CHECKING([command to parse $NM output from $compiler object]) -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], -[ -# These are sane defaults that work on at least a few old systems. -# [They come from Ultrix. What could be older than Ultrix?!! ;)] - -# Character class describing NM global symbol codes. -symcode='[[BCDEGRST]]' - -# Regexp to match symbols that can be accessed directly from C. -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' - -# Transform an extracted symbol line into a proper C declaration -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" - -# Transform an extracted symbol line into symbol name and symbol address -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'" - -# Define system-specific variables. -case $host_os in -aix*) - symcode='[[BCDT]]' - ;; -cygwin* | mingw* | pw32*) - symcode='[[ABCDGISTW]]' - ;; -hpux*) # Its linker distinguishes data from code symbols - if test "$host_cpu" = ia64; then - symcode='[[ABCDEGRST]]' - fi - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" - 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'" - ;; -linux* | k*bsd*-gnu) - if test "$host_cpu" = ia64; then - symcode='[[ABCDGIRSTW]]' - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" - 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'" - fi - ;; -irix* | nonstopux*) - symcode='[[BCDEGRST]]' - ;; -osf*) - symcode='[[BCDEGQRST]]' - ;; -solaris*) - symcode='[[BDRT]]' - ;; -sco3.2v5*) - symcode='[[DT]]' - ;; -sysv4.2uw2*) - symcode='[[DT]]' - ;; -sysv5* | sco5v6* | unixware* | OpenUNIX*) - symcode='[[ABDT]]' - ;; -sysv4) - symcode='[[DFNSTU]]' - ;; -esac - -# Handle CRLF in mingw tool chain -opt_cr= -case $build_os in -mingw*) - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp - ;; -esac - -# If we're using GNU nm, then use its standard symbol codes. -case `$NM -V 2>&1` in -*GNU* | *'with BFD'*) - symcode='[[ABCDGIRSTW]]' ;; -esac - -# Try without a prefix undercore, then with it. -for ac_symprfx in "" "_"; do - - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. - symxfrm="\\1 $ac_symprfx\\2 \\2" - - # Write the raw and C identifiers. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" - - # Check to see that the pipe works correctly. - pipe_works=no - - rm -f conftest* - cat > conftest.$ac_ext < $nlist) && test -s "$nlist"; then - # Try sorting and uniquifying the output. - if sort "$nlist" | uniq > "$nlist"T; then - mv -f "$nlist"T "$nlist" - else - rm -f "$nlist"T - fi - - # Make sure that we snagged all the symbols we need. - if grep ' nm_test_var$' "$nlist" >/dev/null; then - if grep ' nm_test_func$' "$nlist" >/dev/null; then - cat < conftest.$ac_ext -#ifdef __cplusplus -extern "C" { -#endif - -EOF - # Now generate the symbol file. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' - - cat <> conftest.$ac_ext -#if defined (__STDC__) && __STDC__ -# define lt_ptr_t void * -#else -# define lt_ptr_t char * -# define const -#endif - -/* The mapping between symbol names and symbols. */ -const struct { - const char *name; - lt_ptr_t address; -} -lt_preloaded_symbols[[]] = -{ -EOF - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext - cat <<\EOF >> conftest.$ac_ext - {0, (lt_ptr_t) 0} -}; - -#ifdef __cplusplus -} -#endif -EOF - # Now try linking the two files. - mv conftest.$ac_objext conftstm.$ac_objext - lt_save_LIBS="$LIBS" - lt_save_CFLAGS="$CFLAGS" - LIBS="conftstm.$ac_objext" - CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then - pipe_works=yes - fi - LIBS="$lt_save_LIBS" - CFLAGS="$lt_save_CFLAGS" - else - echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD - fi - else - echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD - fi - else - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD - fi - else - echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD - cat conftest.$ac_ext >&5 - fi - rm -rf conftest* conftst* - - # Do not use the global_symbol_pipe unless it works. - if test "$pipe_works" = yes; then - break - else - lt_cv_sys_global_symbol_pipe= - fi -done -]) -if test -z "$lt_cv_sys_global_symbol_pipe"; then - lt_cv_sys_global_symbol_to_cdecl= -fi -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then - AC_MSG_RESULT(failed) -else - AC_MSG_RESULT(ok) -fi -]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE - - -# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME]) -# --------------------------------------- -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC], -[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)= -_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= -_LT_AC_TAGVAR(lt_prog_compiler_static, $1)= - -AC_MSG_CHECKING([for $compiler option to produce PIC]) - ifelse([$1],[CXX],[ - # C++ specific cases for pic, static, wl, etc. - if test "$GXX" = yes; then - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' - - case $host_os in - aix*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - fi - ;; - amigaos*) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the `-m68020' flag to GCC prevents building anything better, - # like `-m68040'. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' - ;; - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; - mingw* | cygwin* | os2* | pw32*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style - # (--disable-auto-import) libraries - m4_if([$1], [GCJ], [], - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) - ;; - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' - ;; - *djgpp*) - # DJGPP does not support shared libraries at all - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= - ;; - interix[[3-9]]*) - # Interix 3.x gcc -fpic/-fPIC options generate broken code. - # Instead, we relocate shared libraries at runtime. - ;; - sysv4*MP*) - if test -d /usr/nec; then - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic - fi - ;; - hpux*) - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - ;; - *) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - esac - ;; - *) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - esac - else - case $host_os in - aix[[4-9]]*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - else - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' - fi - ;; - chorus*) - case $cc_basename in - cxch68*) - # Green Hills C++ Compiler - # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--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" - ;; - esac - ;; - darwin*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - case $cc_basename in - xlc*) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - ;; - esac - ;; - dgux*) - case $cc_basename in - ec++*) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - ;; - ghcx*) - # Green Hills C++ Compiler - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' - ;; - *) - ;; - esac - ;; - freebsd* | dragonfly*) - # FreeBSD uses GNU C++ - ;; - hpux9* | hpux10* | hpux11*) - case $cc_basename in - CC*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' - if test "$host_cpu" != ia64; then - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' - fi - ;; - aCC*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' - ;; - esac - ;; - *) - ;; - esac - ;; - interix*) - # This is c89, which is MS Visual C++ (no shared libs) - # Anyone wants to do a port? - ;; - irix5* | irix6* | nonstopux*) - case $cc_basename in - CC*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - # CC pic flag -KPIC is the default. - ;; - *) - ;; - esac - ;; - linux* | k*bsd*-gnu) - case $cc_basename in - KCC*) - # KAI C++ Compiler - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - icpc* | ecpc*) - # Intel C++ - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' - ;; - pgCC* | pgcpp*) - # Portland Group C++ compiler. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - cxx*) - # Compaq C++ - # Make sure the PIC flag is empty. It appears that all Alpha - # Linux and Compaq Tru64 Unix objects are PIC. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C++ 5.9 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' - ;; - esac - ;; - esac - ;; - lynxos*) - ;; - m88k*) - ;; - mvs*) - case $cc_basename in - cxx*) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' - ;; - *) - ;; - esac - ;; - netbsd* | netbsdelf*-gnu) - ;; - osf3* | osf4* | osf5*) - case $cc_basename in - KCC*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' - ;; - RCC*) - # Rational C++ 2.4.1 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' - ;; - cxx*) - # Digital/Compaq C++ - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - # Make sure the PIC flag is empty. It appears that all Alpha - # Linux and Compaq Tru64 Unix objects are PIC. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - ;; - *) - ;; - esac - ;; - psos*) - ;; - solaris*) - case $cc_basename in - CC*) - # Sun C++ 4.2, 5.x and Centerline C++ - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' - ;; - gcx*) - # Green Hills C++ Compiler - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' - ;; - *) - ;; - esac - ;; - sunos4*) - case $cc_basename in - CC*) - # Sun C++ 4.x - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - lcc*) - # Lucid - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' - ;; - *) - ;; - esac - ;; - tandem*) - case $cc_basename in - NCC*) - # NonStop-UX NCC 3.20 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - ;; - *) - ;; - esac - ;; - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) - case $cc_basename in - CC*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - esac - ;; - vxworks*) - ;; - *) - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no - ;; - esac - fi -], -[ - if test "$GCC" = yes; then - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' - - case $host_os in - aix*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - fi - ;; - - amigaos*) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the `-m68020' flag to GCC prevents building anything better, - # like `-m68040'. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' - ;; - - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; - - mingw* | cygwin* | pw32* | os2*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style - # (--disable-auto-import) libraries - m4_if([$1], [GCJ], [], - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) - ;; - - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' - ;; - - interix[[3-9]]*) - # Interix 3.x gcc -fpic/-fPIC options generate broken code. - # Instead, we relocate shared libraries at runtime. - ;; - - msdosdjgpp*) - # Just because we use GCC doesn't mean we suddenly get shared libraries - # on systems that don't support them. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no - enable_shared=no - ;; - - sysv4*MP*) - if test -d /usr/nec; then - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic - fi - ;; - - hpux*) - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - esac - ;; - - *) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - esac - else - # PORTME Check for flag to pass linker flags through the system compiler. - case $host_os in - aix*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - else - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' - fi - ;; - darwin*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - case $cc_basename in - xlc*) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - ;; - esac - ;; - - mingw* | cygwin* | pw32* | os2*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - m4_if([$1], [GCJ], [], - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) - ;; - - hpux9* | hpux10* | hpux11*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' - ;; - esac - # Is there a better lt_prog_compiler_static that works with the bundled CC? - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' - ;; - - irix5* | irix6* | nonstopux*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - # PIC (with -KPIC) is the default. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - ;; - - newsos6) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - - linux* | k*bsd*-gnu) - case $cc_basename in - icc* | ecc*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' - ;; - pgcc* | pgf77* | pgf90* | pgf95*) - # Portland Group compilers (*not* the Pentium gcc compiler, - # which looks to be a dead project) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - ccc*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - # All Alpha code is PIC. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C 5.9 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - ;; - *Sun\ F*) - # Sun Fortran 8.3 passes all unrecognized flags to the linker - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='' - ;; - esac - ;; - esac - ;; - - osf3* | osf4* | osf5*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - # All OSF/1 code is PIC. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - ;; - - rdos*) - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - ;; - - solaris*) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - case $cc_basename in - f77* | f90* | f95*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; - *) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; - esac - ;; - - sunos4*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - - sysv4 | sysv4.2uw2* | sysv4.3*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - - sysv4*MP*) - if test -d /usr/nec ;then - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - fi - ;; - - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - - unicos*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no - ;; - - uts4*) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - - *) - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no - ;; - esac - fi -]) -AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)]) - -# -# Check to make sure the PIC flag actually works. -# -if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then - AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works], - _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1), - [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [], - [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in - "" | " "*) ;; - *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;; - esac], - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) -fi -case $host_os in - # For platforms which do not support PIC, -DPIC is meaningless: - *djgpp*) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= - ;; - *) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" - ;; -esac - -# -# Check to make sure the static flag actually works. -# -wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\" -AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], - _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1), - $lt_tmp_static_flag, - [], - [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) -]) - - -# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]) -# ------------------------------------ -# See if the linker supports building shared libraries. -AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS], -[AC_REQUIRE([LT_AC_PROG_SED])dnl -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) -ifelse([$1],[CXX],[ - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - case $host_os in - aix[[4-9]]*) - # If we're using GNU nm, then we don't want the "-C" option. - # -C means demangle to AIX nm, but means don't demangle with GNU nm - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' - else - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' - fi - ;; - pw32*) - _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" - ;; - cygwin* | mingw*) - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$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' - ;; - linux* | k*bsd*-gnu) - _LT_AC_TAGVAR(link_all_deplibs, $1)=no - ;; - *) - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - ;; - esac - _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] -],[ - runpath_var= - _LT_AC_TAGVAR(allow_undefined_flag, $1)= - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no - _LT_AC_TAGVAR(archive_cmds, $1)= - _LT_AC_TAGVAR(archive_expsym_cmds, $1)= - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)= - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)= - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= - _LT_AC_TAGVAR(thread_safe_flag_spec, $1)= - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= - _LT_AC_TAGVAR(hardcode_direct, $1)=no - _LT_AC_TAGVAR(hardcode_minus_L, $1)=no - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported - _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown - _LT_AC_TAGVAR(hardcode_automatic, $1)=no - _LT_AC_TAGVAR(module_cmds, $1)= - _LT_AC_TAGVAR(module_expsym_cmds, $1)= - _LT_AC_TAGVAR(always_export_symbols, $1)=no - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - # include_expsyms should be a list of space-separated symbols to be *always* - # included in the symbol list - _LT_AC_TAGVAR(include_expsyms, $1)= - # exclude_expsyms can be an extended regexp of symbols to exclude - # it will be wrapped by ` (' and `)$', so one must not match beginning or - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', - # as well as any symbol that contains `d'. - _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out - # platforms (ab)use it in PIC code, but their linkers get confused if - # the symbol is explicitly referenced. Since portable code cannot - # rely on this symbol name, it's probably fine to never include it in - # preloaded symbol tables. - # Exclude shared library initialization/finalization symbols. -dnl Note also adjust exclude_expsyms for C++ above. - extract_expsyms_cmds= - # Just being paranoid about ensuring that cc_basename is set. - _LT_CC_BASENAME([$compiler]) - case $host_os in - cygwin* | mingw* | pw32*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - if test "$GCC" != yes; then - with_gnu_ld=no - fi - ;; - interix*) - # we just hope/assume this is gcc and not c89 (= MSVC++) - with_gnu_ld=yes - ;; - openbsd*) - with_gnu_ld=no - ;; - esac - - _LT_AC_TAGVAR(ld_shlibs, $1)=yes - if test "$with_gnu_ld" = yes; then - # If archive_cmds runs LD, not CC, wlarc should be empty - wlarc='${wl}' - - # Set some defaults for GNU ld with shared library support. These - # are reset later if shared libraries are not supported. Putting them - # here allows them to be overridden if necessary. - runpath_var=LD_RUN_PATH - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' - # ancient GNU ld didn't support --whole-archive et. al. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - else - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= - fi - supports_anon_versioning=no - case `$LD -v 2>/dev/null` in - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... - *\ 2.11.*) ;; # other 2.11 versions - *) supports_anon_versioning=yes ;; - esac - - # See if GNU ld supports shared libraries. - case $host_os in - aix[[3-9]]*) - # On AIX/PPC, the GNU linker is very broken - if test "$host_cpu" != ia64; then - _LT_AC_TAGVAR(ld_shlibs, $1)=no - cat <&2 - -*** Warning: the GNU linker, at least up to release 2.9.1, is reported -*** to be unable to reliably create shared libraries on AIX. -*** Therefore, libtool is disabling shared libraries support. If you -*** really care for shared libraries, you may want to modify your PATH -*** so that a non-GNU linker is found, and then restart. - -EOF - fi - ;; - - amigaos*) - _LT_AC_TAGVAR(archive_cmds, $1)='$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)' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes - - # Samuel A. Falvo II reports - # that the semantics of dynamic libraries on AmigaOS, at least up - # to version 4, is to share data among multiple programs linked - # with the same dynamic library. Since this doesn't match the - # behavior of shared libraries on other platforms, we can't use - # them. - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - - beos*) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported - # Joseph Beckenbach says some releases of gcc - # support --undefined. This deserves some investigation. FIXME - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - else - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - - cygwin* | mingw* | pw32*) - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, - # as there is no search path for DLLs. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported - _LT_AC_TAGVAR(always_export_symbols, $1)=no - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' - - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - # If the export-symbols file already is a .def file (1st line - # is EXPORTS), use it as is; otherwise, prepend... - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then - cp $export_symbols $output_objdir/$soname.def; - else - echo EXPORTS > $output_objdir/$soname.def; - cat $export_symbols >> $output_objdir/$soname.def; - fi~ - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - else - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - - interix[[3-9]]*) - _LT_AC_TAGVAR(hardcode_direct, $1)=no - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. - # Instead, shared libraries are loaded at an image base (0x10000000 by - # default) and relocated if they conflict, which is a slow very memory - # consuming and fragmenting process. To avoid this, we pick a random, - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link - # time. Moving up from 0x10000000 also allows more sbrk(2) space. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='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' - ;; - - gnu* | linux* | k*bsd*-gnu) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - tmp_addflag= - case $cc_basename,$host_cpu in - pgcc*) # Portland Group C compiler - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_addflag=' $pic_flag' - ;; - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_addflag=' $pic_flag -Mnomain' ;; - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 - tmp_addflag=' -i_dynamic' ;; - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 - tmp_addflag=' -i_dynamic -nofor_main' ;; - ifc* | ifort*) # Intel Fortran compiler - tmp_addflag=' -nofor_main' ;; - esac - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) # Sun C 5.9 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_sharedflag='-G' ;; - *Sun\ F*) # Sun Fortran 8.3 - tmp_sharedflag='-G' ;; - *) - tmp_sharedflag='-shared' ;; - esac - _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - - if test $supports_anon_versioning = yes; then - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ - $echo "local: *; };" >> $output_objdir/$libname.ver~ - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' - fi - _LT_AC_TAGVAR(link_all_deplibs, $1)=no - else - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - - netbsd* | netbsdelf*-gnu) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' - wlarc= - else - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - fi - ;; - - solaris*) - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then - _LT_AC_TAGVAR(ld_shlibs, $1)=no - cat <&2 - -*** Warning: The releases 2.8.* of the GNU linker cannot reliably -*** create shared libraries on Solaris systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.9.1 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. - -EOF - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) - case `$LD -v 2>&1` in - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) - _LT_AC_TAGVAR(ld_shlibs, $1)=no - cat <<_LT_EOF 1>&2 - -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not -*** reliably create shared libraries on SCO systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. - -_LT_EOF - ;; - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' - else - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - esac - ;; - - sunos4*) - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' - wlarc= - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - esac - - if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then - runpath_var= - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= - fi - else - # PORTME fill in a description of your system's linker (not GNU ld) - case $host_os in - aix3*) - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported - _LT_AC_TAGVAR(always_export_symbols, $1)=yes - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' - # Note: this linker hardcodes the directories in LIBPATH if there - # are no directories specified by -L. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then - # Neither direct hardcoding nor static linking is supported with a - # broken collect2. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported - fi - ;; - - aix[[4-9]]*) - if test "$host_cpu" = ia64; then - # On IA64, the linker does run time linking by default, so we don't - # have to do anything special. - aix_use_runtimelinking=no - exp_sym_flag='-Bexport' - no_entry_flag="" - else - # If we're using GNU nm, then we don't want the "-C" option. - # -C means demangle to AIX nm, but means don't demangle with GNU nm - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' - else - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' - fi - aix_use_runtimelinking=no - - # Test if we are trying to use run time linking or normal - # AIX style linking. If -brtl is somewhere in LDFLAGS, we - # need to do runtime linking. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) - for ld_flag in $LDFLAGS; do - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then - aix_use_runtimelinking=yes - break - fi - done - ;; - esac - - exp_sym_flag='-bexport' - no_entry_flag='-bnoentry' - fi - - # When large executables or shared objects are built, AIX ld can - # have problems creating the table of contents. If linking a library - # or program results in "error TOC overflow" add -mminimal-toc to - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. - - _LT_AC_TAGVAR(archive_cmds, $1)='' - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes - - if test "$GCC" = yes; then - case $host_os in aix4.[[012]]|aix4.[[012]].*) - # We only want to do this on AIX 4.2 and lower, the check - # below for broken collect2 doesn't work under 4.3+ - collect2name=`${CC} -print-prog-name=collect2` - if test -f "$collect2name" && \ - strings "$collect2name" | grep resolve_lib_name >/dev/null - then - # We have reworked collect2 - : - else - # We have old collect2 - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported - # It fails to find uninstalled libraries when the uninstalled - # path is not listed in the libpath. Setting hardcode_minus_L - # to unsupported forces relinking - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= - fi - ;; - esac - shared_flag='-shared' - if test "$aix_use_runtimelinking" = yes; then - shared_flag="$shared_flag "'${wl}-G' - fi - else - # not using gcc - if test "$host_cpu" = ia64; then - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release - # chokes on -Wl,-G. The following line is correct: - shared_flag='-G' - else - if test "$aix_use_runtimelinking" = yes; then - shared_flag='${wl}-G' - else - shared_flag='${wl}-bM:SRE' - fi - fi - fi - - # It seems that -bexpall does not export symbols beginning with - # underscore (_), so it is better to generate a list of symbols to export. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes - if test "$aix_use_runtimelinking" = yes; then - # Warning - without using the other runtime loading flags (-brtl), - # -berok will link without error, but may produce a broken library. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' - # Determine the default libpath from the value encoded in an empty executable. - _LT_AC_SYS_LIBPATH_AIX - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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" - else - if test "$host_cpu" = ia64; then - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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" - else - # Determine the default libpath from the value encoded in an empty executable. - _LT_AC_SYS_LIBPATH_AIX - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" - # Warning - without using the other run time loading flags, - # -berok will link without error, but may produce a broken library. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' - # Exported symbols can be pulled into shared objects from archives - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes - # This is similar to how AIX traditionally builds its shared libraries. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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' - fi - fi - ;; - - amigaos*) - _LT_AC_TAGVAR(archive_cmds, $1)='$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)' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes - # see comment about different semantics on the GNU ld section - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - - bsdi[[45]]*) - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic - ;; - - cygwin* | mingw* | pw32*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is - # no search path for DLLs. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported - # Tell ltmain to make .lib files, not .a files. - libext=lib - # Tell ltmain to make .dll files, not .so files. - shrext_cmds=".dll" - # FIXME: Setting linknames here is a bad hack. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' - # The linker will automatically build a .lib file if we build a DLL. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' - # FIXME: Should let the user specify the lib program. - _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' - _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes - ;; - - darwin* | rhapsody*) - case $host_os in - rhapsody* | darwin1.[[012]]) - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' - ;; - *) # Darwin 1.3 on - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - else - case ${MACOSX_DEPLOYMENT_TARGET} in - 10.[[012]]) - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - ;; - 10.*) - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' - ;; - esac - fi - ;; - esac - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_AC_TAGVAR(hardcode_direct, $1)=no - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes - if test "$GCC" = yes ; then - output_verbose_link_cmd='echo' - _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" - _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" - _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" - else - case $cc_basename in - xlc*) - output_verbose_link_cmd='echo' - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - _LT_AC_TAGVAR(module_expsym_cmds, $1)='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}' - ;; - *) - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - esac - fi - ;; - - dgux*) - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - freebsd1*) - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor - # support. Future versions do this automatically, but an explicit c++rt0.o - # does not break anything, and helps significantly (at the cost of a little - # extra space). - freebsd2.2*) - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - # Unfortunately, older versions of FreeBSD 2 do not have this feature. - freebsd2*) - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - # FreeBSD 3 and greater uses gcc -shared to do shared libraries. - freebsd* | dragonfly*) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - hpux9*) - if test "$GCC" = yes; then - _LT_AC_TAGVAR(archive_cmds, $1)='$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' - else - _LT_AC_TAGVAR(archive_cmds, $1)='$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' - fi - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - ;; - - hpux10*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - else - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' - fi - if test "$with_gnu_ld" = no; then - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes - fi - ;; - - hpux11*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then - case $host_cpu in - hppa*64*) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - else - case $host_cpu in - hppa*64*) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - fi - if test "$with_gnu_ld" = no; then - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - - case $host_cpu in - hppa*64*|ia64*) - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' - _LT_AC_TAGVAR(hardcode_direct, $1)=no - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - *) - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes - ;; - esac - fi - ;; - - irix5* | irix6* | nonstopux*) - if test "$GCC" = yes; then - _LT_AC_TAGVAR(archive_cmds, $1)='$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' - else - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' - fi - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes - ;; - - netbsd* | netbsdelf*-gnu) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out - else - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF - fi - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - newsos6) - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - openbsd*) - if test -f /usr/libexec/ld.so; then - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - else - case $host_os in - openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - ;; - *) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - ;; - esac - fi - else - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - - os2*) - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported - _LT_AC_TAGVAR(archive_cmds, $1)='$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' - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' - ;; - - osf3*) - if test "$GCC" = yes; then - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' - _LT_AC_TAGVAR(archive_cmds, $1)='$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' - else - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' - _LT_AC_TAGVAR(archive_cmds, $1)='$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' - fi - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - ;; - - osf4* | osf5*) # as osf3* with the addition of -msym flag - if test "$GCC" = yes; then - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' - _LT_AC_TAGVAR(archive_cmds, $1)='$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' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - else - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' - _LT_AC_TAGVAR(archive_cmds, $1)='$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' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ - $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' - - # Both c and cxx compiler support -rpath directly - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' - fi - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - ;; - - solaris*) - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' - if test "$GCC" = yes; then - wlarc='${wl}' - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' - else - wlarc='' - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' - fi - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - case $host_os in - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; - *) - # The compiler driver will combine and reorder linker options, - # but understands `-z linker_flag'. GCC discards it without `$wl', - # but is careful enough not to reorder. - # Supported since Solaris 2.6 (maybe 2.5.1?) - if test "$GCC" = yes; then - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' - else - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' - fi - ;; - esac - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes - ;; - - sunos4*) - if test "x$host_vendor" = xsequent; then - # Use $CC to link under sequent, because it throws in some extra .o - # files that make .init and .fini sections work. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' - else - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' - fi - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - sysv4) - case $host_vendor in - sni) - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true??? - ;; - siemens) - ## LD is ld it makes a PLAMLIB - ## CC just makes a GrossModule. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' - _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' - _LT_AC_TAGVAR(hardcode_direct, $1)=no - ;; - motorola) - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie - ;; - esac - runpath_var='LD_RUN_PATH' - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - sysv4.3*) - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' - ;; - - sysv4*MP*) - if test -d /usr/nec; then - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - runpath_var=LD_RUN_PATH - hardcode_runpath_var=yes - _LT_AC_TAGVAR(ld_shlibs, $1)=yes - fi - ;; - - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - runpath_var='LD_RUN_PATH' - - if test "$GCC" = yes; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - else - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - - sysv5* | sco3.2v5* | sco5v6*) - # Note: We can NOT use -z defs as we might desire, because we do not - # link with -lc, and that would cause any symbols used from libc to - # always be unresolved, which means just about no library would - # ever link correctly. If we're not using GNU ld we use -z text - # though, which does catch some bad symbols but isn't as heavy-handed - # as -z defs. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' - runpath_var='LD_RUN_PATH' - - if test "$GCC" = yes; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - else - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - - uts4*) - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - *) - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - esac - fi -]) -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no - -# -# Do we need to explicitly link libc? -# -case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in -x|xyes) - # Assume -lc should be added - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes - - if test "$enable_shared" = yes && test "$GCC" = yes; then - case $_LT_AC_TAGVAR(archive_cmds, $1) in - *'~'*) - # FIXME: we may have to deal with multi-command sequences. - ;; - '$CC '*) - # Test whether the compiler implicitly links with -lc since on some - # systems, -lgcc has to come before -lc. If gcc already passes -lc - # to ld, don't add -lc before -lgcc. - AC_MSG_CHECKING([whether -lc should be explicitly linked in]) - $rm conftest* - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - if AC_TRY_EVAL(ac_compile) 2>conftest.err; then - soname=conftest - lib=conftest - libobjs=conftest.$ac_objext - deplibs= - wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) - pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) - compiler_flags=-v - linker_flags=-v - verstring= - output_objdir=. - libname=conftest - lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1) - _LT_AC_TAGVAR(allow_undefined_flag, $1)= - if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) - then - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no - else - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes - fi - _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag - else - cat conftest.err 1>&5 - fi - $rm conftest* - AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)]) - ;; - esac - fi - ;; -esac -])# AC_LIBTOOL_PROG_LD_SHLIBS - - -# _LT_AC_FILE_LTDLL_C -# ------------------- -# Be careful that the start marker always follows a newline. -AC_DEFUN([_LT_AC_FILE_LTDLL_C], [ -# /* ltdll.c starts here */ -# #define WIN32_LEAN_AND_MEAN -# #include -# #undef WIN32_LEAN_AND_MEAN -# #include -# -# #ifndef __CYGWIN__ -# # ifdef __CYGWIN32__ -# # define __CYGWIN__ __CYGWIN32__ -# # endif -# #endif -# -# #ifdef __cplusplus -# extern "C" { -# #endif -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); -# #ifdef __cplusplus -# } -# #endif -# -# #ifdef __CYGWIN__ -# #include -# DECLARE_CYGWIN_DLL( DllMain ); -# #endif -# HINSTANCE __hDllInstance_base; -# -# BOOL APIENTRY -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) -# { -# __hDllInstance_base = hInst; -# return TRUE; -# } -# /* ltdll.c ends here */ -])# _LT_AC_FILE_LTDLL_C - - -# _LT_AC_TAGVAR(VARNAME, [TAGNAME]) -# --------------------------------- -AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])]) - - -# old names -AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL]) -AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) -AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) -AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) -AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) -AC_DEFUN([AM_PROG_LD], [AC_PROG_LD]) -AC_DEFUN([AM_PROG_NM], [AC_PROG_NM]) - -# This is just to silence aclocal about the macro not being used -ifelse([AC_DISABLE_FAST_INSTALL]) - -AC_DEFUN([LT_AC_PROG_GCJ], -[AC_CHECK_TOOL(GCJ, gcj, no) - test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" - AC_SUBST(GCJFLAGS) -]) - -AC_DEFUN([LT_AC_PROG_RC], -[AC_CHECK_TOOL(RC, windres, no) -]) - - -# Cheap backport of AS_EXECUTABLE_P and required macros -# from Autoconf 2.59; we should not use $as_executable_p directly. - -# _AS_TEST_PREPARE -# ---------------- -m4_ifndef([_AS_TEST_PREPARE], -[m4_defun([_AS_TEST_PREPARE], -[if test -x / >/dev/null 2>&1; then - as_executable_p='test -x' -else - as_executable_p='test -f' -fi -])])# _AS_TEST_PREPARE - -# AS_EXECUTABLE_P -# --------------- -# Check whether a file is executable. -m4_ifndef([AS_EXECUTABLE_P], -[m4_defun([AS_EXECUTABLE_P], -[AS_REQUIRE([_AS_TEST_PREPARE])dnl -$as_executable_p $1[]dnl -])])# AS_EXECUTABLE_P - -# NOTE: This macro has been submitted for inclusion into # -# GNU Autoconf as AC_PROG_SED. When it is available in # -# a released version of Autoconf we should remove this # -# macro and use it instead. # -# LT_AC_PROG_SED -# -------------- -# Check for a fully-functional sed program, that truncates -# as few characters as possible. Prefer GNU sed if found. -AC_DEFUN([LT_AC_PROG_SED], -[AC_MSG_CHECKING([for a sed that does not truncate output]) -AC_CACHE_VAL(lt_cv_path_SED, -[# Loop through the user's path and test for sed and gsed. -# Then use that list of sed's as ones to test for truncation. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for lt_ac_prog in sed gsed; do - for ac_exec_ext in '' $ac_executable_extensions; do - if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" - fi - done - done -done -IFS=$as_save_IFS -lt_ac_max=0 -lt_ac_count=0 -# Add /usr/xpg4/bin/sed as it is typically found on Solaris -# along with /bin/sed that truncates output. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do - test ! -f $lt_ac_sed && continue - cat /dev/null > conftest.in - lt_ac_count=0 - echo $ECHO_N "0123456789$ECHO_C" >conftest.in - # Check for GNU sed and select it if it is found. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then - lt_cv_path_SED=$lt_ac_sed - break - fi - while true; do - cat conftest.in conftest.in >conftest.tmp - mv conftest.tmp conftest.in - cp conftest.in conftest.nl - echo >>conftest.nl - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break - cmp -s conftest.out conftest.nl || break - # 10000 chars as input seems more than enough - test $lt_ac_count -gt 10 && break - lt_ac_count=`expr $lt_ac_count + 1` - if test $lt_ac_count -gt $lt_ac_max; then - lt_ac_max=$lt_ac_count - lt_cv_path_SED=$lt_ac_sed - fi - done -done -]) -SED=$lt_cv_path_SED -AC_SUBST([SED]) -AC_MSG_RESULT([$SED]) -]) - -# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- -# -# Copyright © 2004 Scott James Remnant . -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -# -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - -# PKG_PROG_PKG_CONFIG([MIN-VERSION]) -# ---------------------------------- -AC_DEFUN([PKG_PROG_PKG_CONFIG], -[m4_pattern_forbid([^_?PKG_[A-Z_]+$]) -m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) -AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl -if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then - AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) -fi -if test -n "$PKG_CONFIG"; then - _pkg_min_version=m4_default([$1], [0.9.0]) - AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) - if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then - AC_MSG_RESULT([yes]) - else - AC_MSG_RESULT([no]) - PKG_CONFIG="" - fi - -fi[]dnl -])# PKG_PROG_PKG_CONFIG - -# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) -# -# Check to see whether a particular set of modules exists. Similar -# to PKG_CHECK_MODULES(), but does not set variables or print errors. -# -# -# Similar to PKG_CHECK_MODULES, make sure that the first instance of -# this or PKG_CHECK_MODULES is called, or make sure to call -# PKG_CHECK_EXISTS manually -# -------------------------------------------------------------- -AC_DEFUN([PKG_CHECK_EXISTS], -[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl -if test -n "$PKG_CONFIG" && \ - AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then - m4_ifval([$2], [$2], [:]) -m4_ifvaln([$3], [else - $3])dnl -fi]) - - -# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) -# --------------------------------------------- -m4_define([_PKG_CONFIG], -[if test -n "$PKG_CONFIG"; then - if test -n "$$1"; then - pkg_cv_[]$1="$$1" - else - PKG_CHECK_EXISTS([$3], - [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], - [pkg_failed=yes]) - fi -else - pkg_failed=untried -fi[]dnl -])# _PKG_CONFIG - -# _PKG_SHORT_ERRORS_SUPPORTED -# ----------------------------- -AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], -[AC_REQUIRE([PKG_PROG_PKG_CONFIG]) -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then - _pkg_short_errors_supported=yes -else - _pkg_short_errors_supported=no -fi[]dnl -])# _PKG_SHORT_ERRORS_SUPPORTED - - -# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], -# [ACTION-IF-NOT-FOUND]) -# -# -# Note that if there is a possibility the first call to -# PKG_CHECK_MODULES might not happen, you should be sure to include an -# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac -# -# -# -------------------------------------------------------------- -AC_DEFUN([PKG_CHECK_MODULES], -[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl -AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl -AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl - -pkg_failed=no -AC_MSG_CHECKING([for $1]) - -_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) -_PKG_CONFIG([$1][_LIBS], [libs], [$2]) - -m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS -and $1[]_LIBS to avoid the need to call pkg-config. -See the pkg-config man page for more details.]) - -if test $pkg_failed = yes; then - _PKG_SHORT_ERRORS_SUPPORTED - if test $_pkg_short_errors_supported = yes; then - $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"` - else - $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"` - fi - # Put the nasty error message in config.log where it belongs - echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD - - ifelse([$4], , [AC_MSG_ERROR(dnl -[Package requirements ($2) were not met: - -$$1_PKG_ERRORS - -Consider adjusting the PKG_CONFIG_PATH environment variable if you -installed software in a non-standard prefix. - -_PKG_TEXT -])], - [AC_MSG_RESULT([no]) - $4]) -elif test $pkg_failed = untried; then - ifelse([$4], , [AC_MSG_FAILURE(dnl -[The pkg-config script could not be found or is too old. Make sure it -is in your PATH or set the PKG_CONFIG environment variable to the full -path to pkg-config. - -_PKG_TEXT - -To get pkg-config, see .])], - [$4]) -else - $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS - $1[]_LIBS=$pkg_cv_[]$1[]_LIBS - AC_MSG_RESULT([yes]) - ifelse([$3], , :, [$3]) -fi[]dnl -])# PKG_CHECK_MODULES - -# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_AUTOMAKE_VERSION(VERSION) -# ---------------------------- -# Automake X.Y traces this macro to ensure aclocal.m4 has been -# generated from the m4 files accompanying Automake X.Y. -AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"]) - -# AM_SET_CURRENT_AUTOMAKE_VERSION -# ------------------------------- -# Call AM_AUTOMAKE_VERSION so it can be traced. -# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. -AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], - [AM_AUTOMAKE_VERSION([1.9.6])]) - -# AM_AUX_DIR_EXPAND -*- Autoconf -*- - -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets -# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to -# `$srcdir', `$srcdir/..', or `$srcdir/../..'. -# -# Of course, Automake must honor this variable whenever it calls a -# tool from the auxiliary directory. The problem is that $srcdir (and -# therefore $ac_aux_dir as well) can be either absolute or relative, -# depending on how configure is run. This is pretty annoying, since -# it makes $ac_aux_dir quite unusable in subdirectories: in the top -# source directory, any form will work fine, but in subdirectories a -# relative path needs to be adjusted first. -# -# $ac_aux_dir/missing -# fails when called from a subdirectory if $ac_aux_dir is relative -# $top_srcdir/$ac_aux_dir/missing -# fails if $ac_aux_dir is absolute, -# fails when called from a subdirectory in a VPATH build with -# a relative $ac_aux_dir -# -# The reason of the latter failure is that $top_srcdir and $ac_aux_dir -# are both prefixed by $srcdir. In an in-source build this is usually -# harmless because $srcdir is `.', but things will broke when you -# start a VPATH build or use an absolute $srcdir. -# -# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, -# iff we strip the leading $srcdir from $ac_aux_dir. That would be: -# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` -# and then we would define $MISSING as -# MISSING="\${SHELL} $am_aux_dir/missing" -# This will work as long as MISSING is not called from configure, because -# unfortunately $(top_srcdir) has no meaning in configure. -# However there are other variables, like CC, which are often used in -# configure, and could therefore not use this "fixed" $ac_aux_dir. -# -# Another solution, used here, is to always expand $ac_aux_dir to an -# absolute PATH. The drawback is that using absolute paths prevent a -# configured tree to be moved without reconfiguration. - -AC_DEFUN([AM_AUX_DIR_EXPAND], -[dnl Rely on autoconf to set up CDPATH properly. -AC_PREREQ([2.50])dnl -# expand $ac_aux_dir to an absolute path -am_aux_dir=`cd $ac_aux_dir && pwd` -]) - -# AM_CONDITIONAL -*- Autoconf -*- - -# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 7 - -# AM_CONDITIONAL(NAME, SHELL-CONDITION) -# ------------------------------------- -# Define a conditional. -AC_DEFUN([AM_CONDITIONAL], -[AC_PREREQ(2.52)dnl - ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], - [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl -AC_SUBST([$1_TRUE]) -AC_SUBST([$1_FALSE]) -if $2; then - $1_TRUE= - $1_FALSE='#' -else - $1_TRUE='#' - $1_FALSE= -fi -AC_CONFIG_COMMANDS_PRE( -[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then - AC_MSG_ERROR([[conditional "$1" was never defined. -Usually this means the macro was only invoked conditionally.]]) -fi])]) - - -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 8 - -# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be -# written in clear, in which case automake, when reading aclocal.m4, -# will think it sees a *use*, and therefore will trigger all it's -# C support machinery. Also note that it means that autoscan, seeing -# CC etc. in the Makefile, will ask for an AC_PROG_CC use... - - -# _AM_DEPENDENCIES(NAME) -# ---------------------- -# See how the compiler implements dependency checking. -# NAME is "CC", "CXX", "GCJ", or "OBJC". -# We try a few techniques and use that to set a single cache variable. -# -# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was -# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular -# dependency, and given that the user is not expected to run this macro, -# just rely on AC_PROG_CC. -AC_DEFUN([_AM_DEPENDENCIES], -[AC_REQUIRE([AM_SET_DEPDIR])dnl -AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl -AC_REQUIRE([AM_MAKE_INCLUDE])dnl -AC_REQUIRE([AM_DEP_TRACK])dnl - -ifelse([$1], CC, [depcc="$CC" am_compiler_list=], - [$1], CXX, [depcc="$CXX" am_compiler_list=], - [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], - [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], - [depcc="$$1" am_compiler_list=]) - -AC_CACHE_CHECK([dependency style of $depcc], - [am_cv_$1_dependencies_compiler_type], -[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then - # We make a subdir and do the tests there. Otherwise we can end up - # making bogus files that we don't know about and never remove. For - # instance it was reported that on HP-UX the gcc test will end up - # making a dummy file named `D' -- because `-MD' means `put the output - # in D'. - mkdir conftest.dir - # Copy depcomp to subdir because otherwise we won't find it if we're - # using a relative directory. - cp "$am_depcomp" conftest.dir - cd conftest.dir - # We will build objects and dependencies in a subdirectory because - # it helps to detect inapplicable dependency modes. For instance - # both Tru64's cc and ICC support -MD to output dependencies as a - # side effect of compilation, but ICC will put the dependencies in - # the current directory while Tru64 will put them in the object - # directory. - mkdir sub - - am_cv_$1_dependencies_compiler_type=none - if test "$am_compiler_list" = ""; then - am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` - fi - for depmode in $am_compiler_list; do - # Setup a source with many dependencies, because some compilers - # like to wrap large dependency lists on column 80 (with \), and - # we should not choose a depcomp mode which is confused by this. - # - # We need to recreate these files for each test, as the compiler may - # overwrite some of them when testing with obscure command lines. - # This happens at least with the AIX C compiler. - : > sub/conftest.c - for i in 1 2 3 4 5 6; do - echo '#include "conftst'$i'.h"' >> sub/conftest.c - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with - # Solaris 8's {/usr,}/bin/sh. - touch sub/conftst$i.h - done - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf - - case $depmode in - nosideeffect) - # after this tag, mechanisms are not by side-effect, so they'll - # only be used when explicitly requested - if test "x$enable_dependency_tracking" = xyes; then - continue - else - break - fi - ;; - none) break ;; - esac - # We check with `-c' and `-o' for the sake of the "dashmstdout" - # mode. It turns out that the SunPro C++ compiler does not properly - # handle `-M -o', and we need to detect this. - if depmode=$depmode \ - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ - >/dev/null 2>conftest.err && - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then - # icc doesn't choke on unknown options, it will just issue warnings - # or remarks (even with -Werror). So we grep stderr for any message - # that says an option was ignored or not supported. - # When given -MP, icc 7.0 and 7.1 complain thusly: - # icc: Command line warning: ignoring option '-M'; no argument required - # The diagnosis changed in icc 8.0: - # icc: Command line remark: option '-MP' not supported - if (grep 'ignoring option' conftest.err || - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else - am_cv_$1_dependencies_compiler_type=$depmode - break - fi - fi - done - - cd .. - rm -rf conftest.dir -else - am_cv_$1_dependencies_compiler_type=none -fi -]) -AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) -AM_CONDITIONAL([am__fastdep$1], [ - test "x$enable_dependency_tracking" != xno \ - && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) -]) - - -# AM_SET_DEPDIR -# ------------- -# Choose a directory name for dependency files. -# This macro is AC_REQUIREd in _AM_DEPENDENCIES -AC_DEFUN([AM_SET_DEPDIR], -[AC_REQUIRE([AM_SET_LEADING_DOT])dnl -AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl -]) - - -# AM_DEP_TRACK -# ------------ -AC_DEFUN([AM_DEP_TRACK], -[AC_ARG_ENABLE(dependency-tracking, -[ --disable-dependency-tracking speeds up one-time build - --enable-dependency-tracking do not reject slow dependency extractors]) -if test "x$enable_dependency_tracking" != xno; then - am_depcomp="$ac_aux_dir/depcomp" - AMDEPBACKSLASH='\' -fi -AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) -AC_SUBST([AMDEPBACKSLASH]) -]) - -# Generate code to set up dependency tracking. -*- Autoconf -*- - -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -#serial 3 - -# _AM_OUTPUT_DEPENDENCY_COMMANDS -# ------------------------------ -AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], -[for mf in $CONFIG_FILES; do - # Strip MF so we end up with the name of the file. - mf=`echo "$mf" | sed -e 's/:.*$//'` - # Check whether this is an Automake generated Makefile or not. - # We used to match only the files named `Makefile.in', but - # some people rename them; so instead we look at the file content. - # Grep'ing the first line is not enough: some people post-process - # each Makefile.in and add a new line on top of each file to say so. - # So let's grep whole file. - if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then - dirpart=`AS_DIRNAME("$mf")` - else - continue - fi - # Extract the definition of DEPDIR, am__include, and am__quote - # from the Makefile without running `make'. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` - test -z "$DEPDIR" && continue - am__include=`sed -n 's/^am__include = //p' < "$mf"` - test -z "am__include" && continue - am__quote=`sed -n 's/^am__quote = //p' < "$mf"` - # When using ansi2knr, U may be empty or an underscore; expand it - U=`sed -n 's/^U = //p' < "$mf"` - # Find all dependency output files, they are included files with - # $(DEPDIR) in their names. We invoke sed twice because it is the - # simplest approach to changing $(DEPDIR) to its actual value in the - # expansion. - for file in `sed -n " - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do - # Make sure the directory exists. - test -f "$dirpart/$file" && continue - fdir=`AS_DIRNAME(["$file"])` - AS_MKDIR_P([$dirpart/$fdir]) - # echo "creating $dirpart/$file" - echo '# dummy' > "$dirpart/$file" - done -done -])# _AM_OUTPUT_DEPENDENCY_COMMANDS - - -# AM_OUTPUT_DEPENDENCY_COMMANDS -# ----------------------------- -# This macro should only be invoked once -- use via AC_REQUIRE. -# -# This code is only required when automatic dependency tracking -# is enabled. FIXME. This creates each `.P' file that we will -# need in order to bootstrap the dependency handling code. -AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], -[AC_CONFIG_COMMANDS([depfiles], - [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], - [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) -]) - -# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 8 - -# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. -AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) - -# Do all the work for Automake. -*- Autoconf -*- - -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 12 - -# This macro actually does too much. Some checks are only needed if -# your package does certain things. But this isn't really a big deal. - -# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) -# AM_INIT_AUTOMAKE([OPTIONS]) -# ----------------------------------------------- -# The call with PACKAGE and VERSION arguments is the old style -# call (pre autoconf-2.50), which is being phased out. PACKAGE -# and VERSION should now be passed to AC_INIT and removed from -# the call to AM_INIT_AUTOMAKE. -# We support both call styles for the transition. After -# the next Automake release, Autoconf can make the AC_INIT -# arguments mandatory, and then we can depend on a new Autoconf -# release and drop the old call support. -AC_DEFUN([AM_INIT_AUTOMAKE], -[AC_PREREQ([2.58])dnl -dnl Autoconf wants to disallow AM_ names. We explicitly allow -dnl the ones we care about. -m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl -AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl -AC_REQUIRE([AC_PROG_INSTALL])dnl -# test to see if srcdir already configured -if test "`cd $srcdir && pwd`" != "`pwd`" && - test -f $srcdir/config.status; then - AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) -fi - -# test whether we have cygpath -if test -z "$CYGPATH_W"; then - if (cygpath --version) >/dev/null 2>/dev/null; then - CYGPATH_W='cygpath -w' - else - CYGPATH_W=echo - fi -fi -AC_SUBST([CYGPATH_W]) - -# Define the identity of the package. -dnl Distinguish between old-style and new-style calls. -m4_ifval([$2], -[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl - AC_SUBST([PACKAGE], [$1])dnl - AC_SUBST([VERSION], [$2])], -[_AM_SET_OPTIONS([$1])dnl - AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl - AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl - -_AM_IF_OPTION([no-define],, -[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) - AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl - -# Some tools Automake needs. -AC_REQUIRE([AM_SANITY_CHECK])dnl -AC_REQUIRE([AC_ARG_PROGRAM])dnl -AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) -AM_MISSING_PROG(AUTOCONF, autoconf) -AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) -AM_MISSING_PROG(AUTOHEADER, autoheader) -AM_MISSING_PROG(MAKEINFO, makeinfo) -AM_PROG_INSTALL_SH -AM_PROG_INSTALL_STRIP -AC_REQUIRE([AM_PROG_MKDIR_P])dnl -# We need awk for the "check" target. The system "awk" is bad on -# some platforms. -AC_REQUIRE([AC_PROG_AWK])dnl -AC_REQUIRE([AC_PROG_MAKE_SET])dnl -AC_REQUIRE([AM_SET_LEADING_DOT])dnl -_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], - [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], - [_AM_PROG_TAR([v7])])]) -_AM_IF_OPTION([no-dependencies],, -[AC_PROVIDE_IFELSE([AC_PROG_CC], - [_AM_DEPENDENCIES(CC)], - [define([AC_PROG_CC], - defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl -AC_PROVIDE_IFELSE([AC_PROG_CXX], - [_AM_DEPENDENCIES(CXX)], - [define([AC_PROG_CXX], - defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl -]) -]) - - -# When config.status generates a header, we must update the stamp-h file. -# This file resides in the same directory as the config header -# that is generated. The stamp files are numbered to have different names. - -# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the -# loop where config.status creates the headers, so we can generate -# our stamp files there. -AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], -[# Compute $1's index in $config_headers. -_am_stamp_count=1 -for _am_header in $config_headers :; do - case $_am_header in - $1 | $1:* ) - break ;; - * ) - _am_stamp_count=`expr $_am_stamp_count + 1` ;; - esac -done -echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) - -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_INSTALL_SH -# ------------------ -# Define $install_sh. -AC_DEFUN([AM_PROG_INSTALL_SH], -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -install_sh=${install_sh-"$am_aux_dir/install-sh"} -AC_SUBST(install_sh)]) - -# Copyright (C) 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 2 - -# Check whether the underlying file-system supports filenames -# with a leading dot. For instance MS-DOS doesn't. -AC_DEFUN([AM_SET_LEADING_DOT], -[rm -rf .tst 2>/dev/null -mkdir .tst 2>/dev/null -if test -d .tst; then - am__leading_dot=. -else - am__leading_dot=_ -fi -rmdir .tst 2>/dev/null -AC_SUBST([am__leading_dot])]) - -# Check to see how 'make' treats includes. -*- Autoconf -*- - -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 3 - -# AM_MAKE_INCLUDE() -# ----------------- -# Check to see how make treats includes. -AC_DEFUN([AM_MAKE_INCLUDE], -[am_make=${MAKE-make} -cat > confinc << 'END' -am__doit: - @echo done -.PHONY: am__doit -END -# If we don't find an include directive, just comment out the code. -AC_MSG_CHECKING([for style of include used by $am_make]) -am__include="#" -am__quote= -_am_result=none -# First try GNU make style include. -echo "include confinc" > confmf -# We grep out `Entering directory' and `Leaving directory' -# messages which can occur if `w' ends up in MAKEFLAGS. -# In particular we don't look at `^make:' because GNU make might -# be invoked under some other name (usually "gmake"), in which -# case it prints its new name instead of `make'. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then - am__include=include - am__quote= - _am_result=GNU -fi -# Now try BSD make style include. -if test "$am__include" = "#"; then - echo '.include "confinc"' > confmf - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then - am__include=.include - am__quote="\"" - _am_result=BSD - fi -fi -AC_SUBST([am__include]) -AC_SUBST([am__quote]) -AC_MSG_RESULT([$_am_result]) -rm -f confinc confmf -]) - -# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- - -# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 4 - -# AM_MISSING_PROG(NAME, PROGRAM) -# ------------------------------ -AC_DEFUN([AM_MISSING_PROG], -[AC_REQUIRE([AM_MISSING_HAS_RUN]) -$1=${$1-"${am_missing_run}$2"} -AC_SUBST($1)]) - - -# AM_MISSING_HAS_RUN -# ------------------ -# Define MISSING if not defined so far and test if it supports --run. -# If it does, set am_missing_run to use it, otherwise, to nothing. -AC_DEFUN([AM_MISSING_HAS_RUN], -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" -# Use eval to expand $SHELL -if eval "$MISSING --run true"; then - am_missing_run="$MISSING --run " -else - am_missing_run= - AC_MSG_WARN([`missing' script is too old or missing]) -fi -]) - -# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_MKDIR_P -# --------------- -# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise. -# -# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories -# created by `make install' are always world readable, even if the -# installer happens to have an overly restrictive umask (e.g. 077). -# This was a mistake. There are at least two reasons why we must not -# use `-m 0755': -# - it causes special bits like SGID to be ignored, -# - it may be too restrictive (some setups expect 775 directories). -# -# Do not use -m 0755 and let people choose whatever they expect by -# setting umask. -# -# We cannot accept any implementation of `mkdir' that recognizes `-p'. -# Some implementations (such as Solaris 8's) are not thread-safe: if a -# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c' -# concurrently, both version can detect that a/ is missing, but only -# one can create it and the other will error out. Consequently we -# restrict ourselves to GNU make (using the --version option ensures -# this.) -AC_DEFUN([AM_PROG_MKDIR_P], -[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then - # We used to keeping the `.' as first argument, in order to - # allow $(mkdir_p) to be used without argument. As in - # $(mkdir_p) $(somedir) - # where $(somedir) is conditionally defined. However this is wrong - # for two reasons: - # 1. if the package is installed by a user who cannot write `.' - # make install will fail, - # 2. the above comment should most certainly read - # $(mkdir_p) $(DESTDIR)$(somedir) - # so it does not work when $(somedir) is undefined and - # $(DESTDIR) is not. - # To support the latter case, we have to write - # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), - # so the `.' trick is pointless. - mkdir_p='mkdir -p --' -else - # On NextStep and OpenStep, the `mkdir' command does not - # recognize any option. It will interpret all options as - # directories to create, and then abort because `.' already - # exists. - for d in ./-p ./--version; - do - test -d $d && rmdir $d - done - # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. - if test -f "$ac_aux_dir/mkinstalldirs"; then - mkdir_p='$(mkinstalldirs)' - else - mkdir_p='$(install_sh) -d' - fi -fi -AC_SUBST([mkdir_p])]) - -# Helper functions for option handling. -*- Autoconf -*- - -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 3 - -# _AM_MANGLE_OPTION(NAME) -# ----------------------- -AC_DEFUN([_AM_MANGLE_OPTION], -[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) - -# _AM_SET_OPTION(NAME) -# ------------------------------ -# Set option NAME. Presently that only means defining a flag for this option. -AC_DEFUN([_AM_SET_OPTION], -[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) - -# _AM_SET_OPTIONS(OPTIONS) -# ---------------------------------- -# OPTIONS is a space-separated list of Automake options. -AC_DEFUN([_AM_SET_OPTIONS], -[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) - -# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) -# ------------------------------------------- -# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. -AC_DEFUN([_AM_IF_OPTION], -[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) - -# Check to make sure that the build environment is sane. -*- Autoconf -*- - -# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 4 - -# AM_SANITY_CHECK -# --------------- -AC_DEFUN([AM_SANITY_CHECK], -[AC_MSG_CHECKING([whether build environment is sane]) -# Just in case -sleep 1 -echo timestamp > conftest.file -# Do `set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` - if test "$[*]" = "X"; then - # -L didn't work. - set X `ls -t $srcdir/configure conftest.file` - fi - rm -f conftest.file - if test "$[*]" != "X $srcdir/configure conftest.file" \ - && test "$[*]" != "X conftest.file $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken -alias in your environment]) - fi - - test "$[2]" = conftest.file - ) -then - # Ok. - : -else - AC_MSG_ERROR([newly created file is older than distributed files! -Check your system clock]) -fi -AC_MSG_RESULT(yes)]) - -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_INSTALL_STRIP -# --------------------- -# One issue with vendor `install' (even GNU) is that you can't -# specify the program used to strip binaries. This is especially -# annoying in cross-compiling environments, where the build's strip -# is unlikely to handle the host's binaries. -# Fortunately install-sh will honor a STRIPPROG variable, so we -# always use install-sh in `make install-strip', and initialize -# STRIPPROG with the value of the STRIP variable (set by the user). -AC_DEFUN([AM_PROG_INSTALL_STRIP], -[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl -# Installed binaries are usually stripped using `strip' when the user -# run `make install-strip'. However `strip' might not be the right -# tool to use in cross-compilation environments, therefore Automake -# will honor the `STRIP' environment variable to overrule this program. -dnl Don't test for $cross_compiling = yes, because it might be `maybe'. -if test "$cross_compiling" != no; then - AC_CHECK_TOOL([STRIP], [strip], :) -fi -INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" -AC_SUBST([INSTALL_STRIP_PROGRAM])]) - -# Check how to create a tarball. -*- Autoconf -*- - -# Copyright (C) 2004, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 2 - -# _AM_PROG_TAR(FORMAT) -# -------------------- -# Check how to create a tarball in format FORMAT. -# FORMAT should be one of `v7', `ustar', or `pax'. -# -# Substitute a variable $(am__tar) that is a command -# writing to stdout a FORMAT-tarball containing the directory -# $tardir. -# tardir=directory && $(am__tar) > result.tar -# -# Substitute a variable $(am__untar) that extract such -# a tarball read from stdin. -# $(am__untar) < result.tar -AC_DEFUN([_AM_PROG_TAR], -[# Always define AMTAR for backward compatibility. -AM_MISSING_PROG([AMTAR], [tar]) -m4_if([$1], [v7], - [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], - [m4_case([$1], [ustar],, [pax],, - [m4_fatal([Unknown tar format])]) -AC_MSG_CHECKING([how to create a $1 tar archive]) -# Loop over all known methods to create a tar archive until one works. -_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' -_am_tools=${am_cv_prog_tar_$1-$_am_tools} -# Do not fold the above two line into one, because Tru64 sh and -# Solaris sh will not grok spaces in the rhs of `-'. -for _am_tool in $_am_tools -do - case $_am_tool in - gnutar) - for _am_tar in tar gnutar gtar; - do - AM_RUN_LOG([$_am_tar --version]) && break - done - am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' - am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' - am__untar="$_am_tar -xf -" - ;; - plaintar) - # Must skip GNU tar: if it does not support --format= it doesn't create - # ustar tarball either. - (tar --version) >/dev/null 2>&1 && continue - am__tar='tar chf - "$$tardir"' - am__tar_='tar chf - "$tardir"' - am__untar='tar xf -' - ;; - pax) - am__tar='pax -L -x $1 -w "$$tardir"' - am__tar_='pax -L -x $1 -w "$tardir"' - am__untar='pax -r' - ;; - cpio) - am__tar='find "$$tardir" -print | cpio -o -H $1 -L' - am__tar_='find "$tardir" -print | cpio -o -H $1 -L' - am__untar='cpio -i -H $1 -d' - ;; - none) - am__tar=false - am__tar_=false - am__untar=false - ;; - esac - - # If the value was cached, stop now. We just wanted to have am__tar - # and am__untar set. - test -n "${am_cv_prog_tar_$1}" && break - - # tar/untar a dummy directory, and stop if the command works - rm -rf conftest.dir - mkdir conftest.dir - echo GrepMe > conftest.dir/file - AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) - rm -rf conftest.dir - if test -s conftest.tar; then - AM_RUN_LOG([$am__untar /dev/null 2>&1 && break - fi -done -rm -rf conftest.dir - -AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) -AC_MSG_RESULT([$am_cv_prog_tar_$1])]) -AC_SUBST([am__tar]) -AC_SUBST([am__untar]) -]) # _AM_PROG_TAR - -m4_include([acinclude.m4]) diff --git a/library/ecasound/compile b/library/ecasound/compile deleted file mode 100755 index 1b1d23216..000000000 --- a/library/ecasound/compile +++ /dev/null @@ -1,142 +0,0 @@ -#! /bin/sh -# Wrapper for compilers which do not understand `-c -o'. - -scriptversion=2005-05-14.22 - -# Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc. -# Written by Tom Tromey . -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - -# This file is maintained in Automake, please report -# bugs to or send patches to -# . - -case $1 in - '') - echo "$0: No command. Try \`$0 --help' for more information." 1>&2 - exit 1; - ;; - -h | --h*) - cat <<\EOF -Usage: compile [--help] [--version] PROGRAM [ARGS] - -Wrapper for compilers which do not understand `-c -o'. -Remove `-o dest.o' from ARGS, run PROGRAM with the remaining -arguments, and rename the output as expected. - -If you are trying to build a whole package this is not the -right script to run: please start by reading the file `INSTALL'. - -Report bugs to . -EOF - exit $? - ;; - -v | --v*) - echo "compile $scriptversion" - exit $? - ;; -esac - -ofile= -cfile= -eat= - -for arg -do - if test -n "$eat"; then - eat= - else - case $1 in - -o) - # configure might choose to run compile as `compile cc -o foo foo.c'. - # So we strip `-o arg' only if arg is an object. - eat=1 - case $2 in - *.o | *.obj) - ofile=$2 - ;; - *) - set x "$@" -o "$2" - shift - ;; - esac - ;; - *.c) - cfile=$1 - set x "$@" "$1" - shift - ;; - *) - set x "$@" "$1" - shift - ;; - esac - fi - shift -done - -if test -z "$ofile" || test -z "$cfile"; then - # If no `-o' option was seen then we might have been invoked from a - # pattern rule where we don't need one. That is ok -- this is a - # normal compilation that the losing compiler can handle. If no - # `.c' file was seen then we are probably linking. That is also - # ok. - exec "$@" -fi - -# Name of file we expect compiler to create. -cofile=`echo "$cfile" | sed -e 's|^.*/||' -e 's/\.c$/.o/'` - -# Create the lock directory. -# Note: use `[/.-]' here to ensure that we don't use the same name -# that we are using for the .o file. Also, base the name on the expected -# object file name, since that is what matters with a parallel build. -lockdir=`echo "$cofile" | sed -e 's|[/.-]|_|g'`.d -while true; do - if mkdir "$lockdir" >/dev/null 2>&1; then - break - fi - sleep 1 -done -# FIXME: race condition here if user kills between mkdir and trap. -trap "rmdir '$lockdir'; exit 1" 1 2 15 - -# Run the compile. -"$@" -ret=$? - -if test -f "$cofile"; then - mv "$cofile" "$ofile" -elif test -f "${cofile}bj"; then - mv "${cofile}bj" "$ofile" -fi - -rmdir "$lockdir" -exit $ret - -# Local Variables: -# mode: shell-script -# sh-indentation: 2 -# eval: (add-hook 'write-file-hooks 'time-stamp) -# time-stamp-start: "scriptversion=" -# time-stamp-format: "%:y-%02m-%02d.%02H" -# time-stamp-end: "$" -# End: diff --git a/library/ecasound/config.guess b/library/ecasound/config.guess deleted file mode 100755 index 396482d6c..000000000 --- a/library/ecasound/config.guess +++ /dev/null @@ -1,1500 +0,0 @@ -#! /bin/sh -# Attempt to guess a canonical system name. -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, -# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, -# Inc. - -timestamp='2006-07-02' - -# This file is free software; you can redistribute it and/or modify it -# under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA -# 02110-1301, USA. -# -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - - -# Originally written by Per Bothner . -# Please send patches to . Submit a context -# diff and a properly formatted ChangeLog entry. -# -# This script attempts to guess a canonical system name similar to -# config.sub. If it succeeds, it prints the system name on stdout, and -# exits with 0. Otherwise, it exits with 1. -# -# The plan is that this can be called by configure scripts if you -# don't specify an explicit build system type. - -me=`echo "$0" | sed -e 's,.*/,,'` - -usage="\ -Usage: $0 [OPTION] - -Output the configuration name of the system \`$me' is run on. - -Operation modes: - -h, --help print this help, then exit - -t, --time-stamp print date of last modification, then exit - -v, --version print version number, then exit - -Report bugs and patches to ." - -version="\ -GNU config.guess ($timestamp) - -Originally written by Per Bothner. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 -Free Software Foundation, Inc. - -This is free software; see the source for copying conditions. There is NO -warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." - -help=" -Try \`$me --help' for more information." - -# Parse command line -while test $# -gt 0 ; do - case $1 in - --time-stamp | --time* | -t ) - echo "$timestamp" ; exit ;; - --version | -v ) - echo "$version" ; exit ;; - --help | --h* | -h ) - echo "$usage"; exit ;; - -- ) # Stop option processing - shift; break ;; - - ) # Use stdin as input. - break ;; - -* ) - echo "$me: invalid option $1$help" >&2 - exit 1 ;; - * ) - break ;; - esac -done - -if test $# != 0; then - echo "$me: too many arguments$help" >&2 - exit 1 -fi - -trap 'exit 1' 1 2 15 - -# CC_FOR_BUILD -- compiler used by this script. Note that the use of a -# compiler to aid in system detection is discouraged as it requires -# temporary files to be created and, as you can see below, it is a -# headache to deal with in a portable fashion. - -# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still -# use `HOST_CC' if defined, but it is deprecated. - -# Portable tmp directory creation inspired by the Autoconf team. - -set_cc_for_build=' -trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; -trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; -: ${TMPDIR=/tmp} ; - { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || - { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || - { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || - { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; -dummy=$tmp/dummy ; -tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; -case $CC_FOR_BUILD,$HOST_CC,$CC in - ,,) echo "int x;" > $dummy.c ; - for c in cc gcc c89 c99 ; do - if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then - CC_FOR_BUILD="$c"; break ; - fi ; - done ; - if test x"$CC_FOR_BUILD" = x ; then - CC_FOR_BUILD=no_compiler_found ; - fi - ;; - ,,*) CC_FOR_BUILD=$CC ;; - ,*,*) CC_FOR_BUILD=$HOST_CC ;; -esac ; set_cc_for_build= ;' - -# This is needed to find uname on a Pyramid OSx when run in the BSD universe. -# (ghazi@noc.rutgers.edu 1994-08-24) -if (test -f /.attbin/uname) >/dev/null 2>&1 ; then - PATH=$PATH:/.attbin ; export PATH -fi - -UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown -UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown -UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown -UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown - -# Note: order is significant - the case branches are not exclusive. - -case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in - *:NetBSD:*:*) - # NetBSD (nbsd) targets should (where applicable) match one or - # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, - # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently - # switched to ELF, *-*-netbsd* would select the old - # object file format. This provides both forward - # compatibility and a consistent mechanism for selecting the - # object file format. - # - # Note: NetBSD doesn't particularly care about the vendor - # portion of the name. We always set it to "unknown". - sysctl="sysctl -n hw.machine_arch" - UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ - /usr/sbin/$sysctl 2>/dev/null || echo unknown)` - case "${UNAME_MACHINE_ARCH}" in - armeb) machine=armeb-unknown ;; - arm*) machine=arm-unknown ;; - sh3el) machine=shl-unknown ;; - sh3eb) machine=sh-unknown ;; - *) machine=${UNAME_MACHINE_ARCH}-unknown ;; - esac - # The Operating System including object format, if it has switched - # to ELF recently, or will in the future. - case "${UNAME_MACHINE_ARCH}" in - arm*|i386|m68k|ns32k|sh3*|sparc|vax) - eval $set_cc_for_build - if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ - | grep __ELF__ >/dev/null - then - # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). - # Return netbsd for either. FIX? - os=netbsd - else - os=netbsdelf - fi - ;; - *) - os=netbsd - ;; - esac - # The OS release - # Debian GNU/NetBSD machines have a different userland, and - # thus, need a distinct triplet. However, they do not need - # kernel version information, so it can be replaced with a - # suitable tag, in the style of linux-gnu. - case "${UNAME_VERSION}" in - Debian*) - release='-gnu' - ;; - *) - release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` - ;; - esac - # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: - # contains redundant information, the shorter form: - # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. - echo "${machine}-${os}${release}" - exit ;; - *:OpenBSD:*:*) - UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` - echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} - exit ;; - *:ekkoBSD:*:*) - echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} - exit ;; - *:SolidBSD:*:*) - echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} - exit ;; - macppc:MirBSD:*:*) - echo powerpc-unknown-mirbsd${UNAME_RELEASE} - exit ;; - *:MirBSD:*:*) - echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} - exit ;; - alpha:OSF1:*:*) - case $UNAME_RELEASE in - *4.0) - UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` - ;; - *5.*) - UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` - ;; - esac - # According to Compaq, /usr/sbin/psrinfo has been available on - # OSF/1 and Tru64 systems produced since 1995. I hope that - # covers most systems running today. This code pipes the CPU - # types through head -n 1, so we only detect the type of CPU 0. - ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` - case "$ALPHA_CPU_TYPE" in - "EV4 (21064)") - UNAME_MACHINE="alpha" ;; - "EV4.5 (21064)") - UNAME_MACHINE="alpha" ;; - "LCA4 (21066/21068)") - UNAME_MACHINE="alpha" ;; - "EV5 (21164)") - UNAME_MACHINE="alphaev5" ;; - "EV5.6 (21164A)") - UNAME_MACHINE="alphaev56" ;; - "EV5.6 (21164PC)") - UNAME_MACHINE="alphapca56" ;; - "EV5.7 (21164PC)") - UNAME_MACHINE="alphapca57" ;; - "EV6 (21264)") - UNAME_MACHINE="alphaev6" ;; - "EV6.7 (21264A)") - UNAME_MACHINE="alphaev67" ;; - "EV6.8CB (21264C)") - UNAME_MACHINE="alphaev68" ;; - "EV6.8AL (21264B)") - UNAME_MACHINE="alphaev68" ;; - "EV6.8CX (21264D)") - UNAME_MACHINE="alphaev68" ;; - "EV6.9A (21264/EV69A)") - UNAME_MACHINE="alphaev69" ;; - "EV7 (21364)") - UNAME_MACHINE="alphaev7" ;; - "EV7.9 (21364A)") - UNAME_MACHINE="alphaev79" ;; - esac - # A Pn.n version is a patched version. - # A Vn.n version is a released version. - # A Tn.n version is a released field test version. - # A Xn.n version is an unreleased experimental baselevel. - # 1.2 uses "1.2" for uname -r. - echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` - exit ;; - Alpha\ *:Windows_NT*:*) - # How do we know it's Interix rather than the generic POSIX subsystem? - # Should we change UNAME_MACHINE based on the output of uname instead - # of the specific Alpha model? - echo alpha-pc-interix - exit ;; - 21064:Windows_NT:50:3) - echo alpha-dec-winnt3.5 - exit ;; - Amiga*:UNIX_System_V:4.0:*) - echo m68k-unknown-sysv4 - exit ;; - *:[Aa]miga[Oo][Ss]:*:*) - echo ${UNAME_MACHINE}-unknown-amigaos - exit ;; - *:[Mm]orph[Oo][Ss]:*:*) - echo ${UNAME_MACHINE}-unknown-morphos - exit ;; - *:OS/390:*:*) - echo i370-ibm-openedition - exit ;; - *:z/VM:*:*) - echo s390-ibm-zvmoe - exit ;; - *:OS400:*:*) - echo powerpc-ibm-os400 - exit ;; - arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) - echo arm-acorn-riscix${UNAME_RELEASE} - exit ;; - arm:riscos:*:*|arm:RISCOS:*:*) - echo arm-unknown-riscos - exit ;; - SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) - echo hppa1.1-hitachi-hiuxmpp - exit ;; - Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) - # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. - if test "`(/bin/universe) 2>/dev/null`" = att ; then - echo pyramid-pyramid-sysv3 - else - echo pyramid-pyramid-bsd - fi - exit ;; - NILE*:*:*:dcosx) - echo pyramid-pyramid-svr4 - exit ;; - DRS?6000:unix:4.0:6*) - echo sparc-icl-nx6 - exit ;; - DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) - case `/usr/bin/uname -p` in - sparc) echo sparc-icl-nx7; exit ;; - esac ;; - sun4H:SunOS:5.*:*) - echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit ;; - sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) - echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit ;; - i86pc:SunOS:5.*:*) - echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit ;; - sun4*:SunOS:6*:*) - # According to config.sub, this is the proper way to canonicalize - # SunOS6. Hard to guess exactly what SunOS6 will be like, but - # it's likely to be more like Solaris than SunOS4. - echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit ;; - sun4*:SunOS:*:*) - case "`/usr/bin/arch -k`" in - Series*|S4*) - UNAME_RELEASE=`uname -v` - ;; - esac - # Japanese Language versions have a version number like `4.1.3-JL'. - echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` - exit ;; - sun3*:SunOS:*:*) - echo m68k-sun-sunos${UNAME_RELEASE} - exit ;; - sun*:*:4.2BSD:*) - UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` - test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 - case "`/bin/arch`" in - sun3) - echo m68k-sun-sunos${UNAME_RELEASE} - ;; - sun4) - echo sparc-sun-sunos${UNAME_RELEASE} - ;; - esac - exit ;; - aushp:SunOS:*:*) - echo sparc-auspex-sunos${UNAME_RELEASE} - exit ;; - # The situation for MiNT is a little confusing. The machine name - # can be virtually everything (everything which is not - # "atarist" or "atariste" at least should have a processor - # > m68000). The system name ranges from "MiNT" over "FreeMiNT" - # to the lowercase version "mint" (or "freemint"). Finally - # the system name "TOS" denotes a system which is actually not - # MiNT. But MiNT is downward compatible to TOS, so this should - # be no problem. - atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) - echo m68k-atari-mint${UNAME_RELEASE} - exit ;; - atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) - echo m68k-atari-mint${UNAME_RELEASE} - exit ;; - *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) - echo m68k-atari-mint${UNAME_RELEASE} - exit ;; - milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) - echo m68k-milan-mint${UNAME_RELEASE} - exit ;; - hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) - echo m68k-hades-mint${UNAME_RELEASE} - exit ;; - *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) - echo m68k-unknown-mint${UNAME_RELEASE} - exit ;; - m68k:machten:*:*) - echo m68k-apple-machten${UNAME_RELEASE} - exit ;; - powerpc:machten:*:*) - echo powerpc-apple-machten${UNAME_RELEASE} - exit ;; - RISC*:Mach:*:*) - echo mips-dec-mach_bsd4.3 - exit ;; - RISC*:ULTRIX:*:*) - echo mips-dec-ultrix${UNAME_RELEASE} - exit ;; - VAX*:ULTRIX*:*:*) - echo vax-dec-ultrix${UNAME_RELEASE} - exit ;; - 2020:CLIX:*:* | 2430:CLIX:*:*) - echo clipper-intergraph-clix${UNAME_RELEASE} - exit ;; - mips:*:*:UMIPS | mips:*:*:RISCos) - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c -#ifdef __cplusplus -#include /* for printf() prototype */ - int main (int argc, char *argv[]) { -#else - int main (argc, argv) int argc; char *argv[]; { -#endif - #if defined (host_mips) && defined (MIPSEB) - #if defined (SYSTYPE_SYSV) - printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); - #endif - #if defined (SYSTYPE_SVR4) - printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); - #endif - #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) - printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); - #endif - #endif - exit (-1); - } -EOF - $CC_FOR_BUILD -o $dummy $dummy.c && - dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && - SYSTEM_NAME=`$dummy $dummyarg` && - { echo "$SYSTEM_NAME"; exit; } - echo mips-mips-riscos${UNAME_RELEASE} - exit ;; - Motorola:PowerMAX_OS:*:*) - echo powerpc-motorola-powermax - exit ;; - Motorola:*:4.3:PL8-*) - echo powerpc-harris-powermax - exit ;; - Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) - echo powerpc-harris-powermax - exit ;; - Night_Hawk:Power_UNIX:*:*) - echo powerpc-harris-powerunix - exit ;; - m88k:CX/UX:7*:*) - echo m88k-harris-cxux7 - exit ;; - m88k:*:4*:R4*) - echo m88k-motorola-sysv4 - exit ;; - m88k:*:3*:R3*) - echo m88k-motorola-sysv3 - exit ;; - AViiON:dgux:*:*) - # DG/UX returns AViiON for all architectures - UNAME_PROCESSOR=`/usr/bin/uname -p` - if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] - then - if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ - [ ${TARGET_BINARY_INTERFACE}x = x ] - then - echo m88k-dg-dgux${UNAME_RELEASE} - else - echo m88k-dg-dguxbcs${UNAME_RELEASE} - fi - else - echo i586-dg-dgux${UNAME_RELEASE} - fi - exit ;; - M88*:DolphinOS:*:*) # DolphinOS (SVR3) - echo m88k-dolphin-sysv3 - exit ;; - M88*:*:R3*:*) - # Delta 88k system running SVR3 - echo m88k-motorola-sysv3 - exit ;; - XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) - echo m88k-tektronix-sysv3 - exit ;; - Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) - echo m68k-tektronix-bsd - exit ;; - *:IRIX*:*:*) - echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` - exit ;; - ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. - echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id - exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' - i*86:AIX:*:*) - echo i386-ibm-aix - exit ;; - ia64:AIX:*:*) - if [ -x /usr/bin/oslevel ] ; then - IBM_REV=`/usr/bin/oslevel` - else - IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} - fi - echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} - exit ;; - *:AIX:2:3) - if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c - #include - - main() - { - if (!__power_pc()) - exit(1); - puts("powerpc-ibm-aix3.2.5"); - exit(0); - } -EOF - if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` - then - echo "$SYSTEM_NAME" - else - echo rs6000-ibm-aix3.2.5 - fi - elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then - echo rs6000-ibm-aix3.2.4 - else - echo rs6000-ibm-aix3.2 - fi - exit ;; - *:AIX:*:[45]) - IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` - if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then - IBM_ARCH=rs6000 - else - IBM_ARCH=powerpc - fi - if [ -x /usr/bin/oslevel ] ; then - IBM_REV=`/usr/bin/oslevel` - else - IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} - fi - echo ${IBM_ARCH}-ibm-aix${IBM_REV} - exit ;; - *:AIX:*:*) - echo rs6000-ibm-aix - exit ;; - ibmrt:4.4BSD:*|romp-ibm:BSD:*) - echo romp-ibm-bsd4.4 - exit ;; - ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and - echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to - exit ;; # report: romp-ibm BSD 4.3 - *:BOSX:*:*) - echo rs6000-bull-bosx - exit ;; - DPX/2?00:B.O.S.:*:*) - echo m68k-bull-sysv3 - exit ;; - 9000/[34]??:4.3bsd:1.*:*) - echo m68k-hp-bsd - exit ;; - hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) - echo m68k-hp-bsd4.4 - exit ;; - 9000/[34678]??:HP-UX:*:*) - HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` - case "${UNAME_MACHINE}" in - 9000/31? ) HP_ARCH=m68000 ;; - 9000/[34]?? ) HP_ARCH=m68k ;; - 9000/[678][0-9][0-9]) - if [ -x /usr/bin/getconf ]; then - sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` - sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` - case "${sc_cpu_version}" in - 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 - 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 - 532) # CPU_PA_RISC2_0 - case "${sc_kernel_bits}" in - 32) HP_ARCH="hppa2.0n" ;; - 64) HP_ARCH="hppa2.0w" ;; - '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 - esac ;; - esac - fi - if [ "${HP_ARCH}" = "" ]; then - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c - - #define _HPUX_SOURCE - #include - #include - - int main () - { - #if defined(_SC_KERNEL_BITS) - long bits = sysconf(_SC_KERNEL_BITS); - #endif - long cpu = sysconf (_SC_CPU_VERSION); - - switch (cpu) - { - case CPU_PA_RISC1_0: puts ("hppa1.0"); break; - case CPU_PA_RISC1_1: puts ("hppa1.1"); break; - case CPU_PA_RISC2_0: - #if defined(_SC_KERNEL_BITS) - switch (bits) - { - case 64: puts ("hppa2.0w"); break; - case 32: puts ("hppa2.0n"); break; - default: puts ("hppa2.0"); break; - } break; - #else /* !defined(_SC_KERNEL_BITS) */ - puts ("hppa2.0"); break; - #endif - default: puts ("hppa1.0"); break; - } - exit (0); - } -EOF - (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` - test -z "$HP_ARCH" && HP_ARCH=hppa - fi ;; - esac - if [ ${HP_ARCH} = "hppa2.0w" ] - then - eval $set_cc_for_build - - # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating - # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler - # generating 64-bit code. GNU and HP use different nomenclature: - # - # $ CC_FOR_BUILD=cc ./config.guess - # => hppa2.0w-hp-hpux11.23 - # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess - # => hppa64-hp-hpux11.23 - - if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | - grep __LP64__ >/dev/null - then - HP_ARCH="hppa2.0w" - else - HP_ARCH="hppa64" - fi - fi - echo ${HP_ARCH}-hp-hpux${HPUX_REV} - exit ;; - ia64:HP-UX:*:*) - HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` - echo ia64-hp-hpux${HPUX_REV} - exit ;; - 3050*:HI-UX:*:*) - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c - #include - int - main () - { - long cpu = sysconf (_SC_CPU_VERSION); - /* The order matters, because CPU_IS_HP_MC68K erroneously returns - true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct - results, however. */ - if (CPU_IS_PA_RISC (cpu)) - { - switch (cpu) - { - case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; - case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; - case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; - default: puts ("hppa-hitachi-hiuxwe2"); break; - } - } - else if (CPU_IS_HP_MC68K (cpu)) - puts ("m68k-hitachi-hiuxwe2"); - else puts ("unknown-hitachi-hiuxwe2"); - exit (0); - } -EOF - $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && - { echo "$SYSTEM_NAME"; exit; } - echo unknown-hitachi-hiuxwe2 - exit ;; - 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) - echo hppa1.1-hp-bsd - exit ;; - 9000/8??:4.3bsd:*:*) - echo hppa1.0-hp-bsd - exit ;; - *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) - echo hppa1.0-hp-mpeix - exit ;; - hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) - echo hppa1.1-hp-osf - exit ;; - hp8??:OSF1:*:*) - echo hppa1.0-hp-osf - exit ;; - i*86:OSF1:*:*) - if [ -x /usr/sbin/sysversion ] ; then - echo ${UNAME_MACHINE}-unknown-osf1mk - else - echo ${UNAME_MACHINE}-unknown-osf1 - fi - exit ;; - parisc*:Lites*:*:*) - echo hppa1.1-hp-lites - exit ;; - C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) - echo c1-convex-bsd - exit ;; - C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) - if getsysinfo -f scalar_acc - then echo c32-convex-bsd - else echo c2-convex-bsd - fi - exit ;; - C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) - echo c34-convex-bsd - exit ;; - C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) - echo c38-convex-bsd - exit ;; - C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) - echo c4-convex-bsd - exit ;; - CRAY*Y-MP:*:*:*) - echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit ;; - CRAY*[A-Z]90:*:*:*) - echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ - | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ - -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ - -e 's/\.[^.]*$/.X/' - exit ;; - CRAY*TS:*:*:*) - echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit ;; - CRAY*T3E:*:*:*) - echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit ;; - CRAY*SV1:*:*:*) - echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit ;; - *:UNICOS/mp:*:*) - echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit ;; - F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) - FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` - FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` - FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` - echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" - exit ;; - 5000:UNIX_System_V:4.*:*) - FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` - FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` - echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" - exit ;; - i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) - echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} - exit ;; - sparc*:BSD/OS:*:*) - echo sparc-unknown-bsdi${UNAME_RELEASE} - exit ;; - *:BSD/OS:*:*) - echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} - exit ;; - *:FreeBSD:*:*) - case ${UNAME_MACHINE} in - pc98) - echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; - amd64) - echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; - *) - echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; - esac - exit ;; - i*:CYGWIN*:*) - echo ${UNAME_MACHINE}-pc-cygwin - exit ;; - i*:MINGW*:*) - echo ${UNAME_MACHINE}-pc-mingw32 - exit ;; - i*:windows32*:*) - # uname -m includes "-pc" on this system. - echo ${UNAME_MACHINE}-mingw32 - exit ;; - i*:PW*:*) - echo ${UNAME_MACHINE}-pc-pw32 - exit ;; - x86:Interix*:[3456]*) - echo i586-pc-interix${UNAME_RELEASE} - exit ;; - EM64T:Interix*:[3456]*) - echo x86_64-unknown-interix${UNAME_RELEASE} - exit ;; - [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) - echo i${UNAME_MACHINE}-pc-mks - exit ;; - i*:Windows_NT*:* | Pentium*:Windows_NT*:*) - # How do we know it's Interix rather than the generic POSIX subsystem? - # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we - # UNAME_MACHINE based on the output of uname instead of i386? - echo i586-pc-interix - exit ;; - i*:UWIN*:*) - echo ${UNAME_MACHINE}-pc-uwin - exit ;; - amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) - echo x86_64-unknown-cygwin - exit ;; - p*:CYGWIN*:*) - echo powerpcle-unknown-cygwin - exit ;; - prep*:SunOS:5.*:*) - echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit ;; - *:GNU:*:*) - # the GNU system - echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` - exit ;; - *:GNU/*:*:*) - # other systems with GNU libc and userland - echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu - exit ;; - i*86:Minix:*:*) - echo ${UNAME_MACHINE}-pc-minix - exit ;; - arm*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; - avr32*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; - cris:Linux:*:*) - echo cris-axis-linux-gnu - exit ;; - crisv32:Linux:*:*) - echo crisv32-axis-linux-gnu - exit ;; - frv:Linux:*:*) - echo frv-unknown-linux-gnu - exit ;; - ia64:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; - m32r*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; - m68*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; - mips:Linux:*:*) - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c - #undef CPU - #undef mips - #undef mipsel - #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) - CPU=mipsel - #else - #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) - CPU=mips - #else - CPU= - #endif - #endif -EOF - eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' - /^CPU/{ - s: ::g - p - }'`" - test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } - ;; - mips64:Linux:*:*) - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c - #undef CPU - #undef mips64 - #undef mips64el - #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) - CPU=mips64el - #else - #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) - CPU=mips64 - #else - CPU= - #endif - #endif -EOF - eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' - /^CPU/{ - s: ::g - p - }'`" - test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } - ;; - or32:Linux:*:*) - echo or32-unknown-linux-gnu - exit ;; - ppc:Linux:*:*) - echo powerpc-unknown-linux-gnu - exit ;; - ppc64:Linux:*:*) - echo powerpc64-unknown-linux-gnu - exit ;; - alpha:Linux:*:*) - case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in - EV5) UNAME_MACHINE=alphaev5 ;; - EV56) UNAME_MACHINE=alphaev56 ;; - PCA56) UNAME_MACHINE=alphapca56 ;; - PCA57) UNAME_MACHINE=alphapca56 ;; - EV6) UNAME_MACHINE=alphaev6 ;; - EV67) UNAME_MACHINE=alphaev67 ;; - EV68*) UNAME_MACHINE=alphaev68 ;; - esac - objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null - if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi - echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} - exit ;; - parisc:Linux:*:* | hppa:Linux:*:*) - # Look for CPU level - case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in - PA7*) echo hppa1.1-unknown-linux-gnu ;; - PA8*) echo hppa2.0-unknown-linux-gnu ;; - *) echo hppa-unknown-linux-gnu ;; - esac - exit ;; - parisc64:Linux:*:* | hppa64:Linux:*:*) - echo hppa64-unknown-linux-gnu - exit ;; - s390:Linux:*:* | s390x:Linux:*:*) - echo ${UNAME_MACHINE}-ibm-linux - exit ;; - sh64*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; - sh*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; - sparc:Linux:*:* | sparc64:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; - vax:Linux:*:*) - echo ${UNAME_MACHINE}-dec-linux-gnu - exit ;; - x86_64:Linux:*:*) - echo x86_64-unknown-linux-gnu - exit ;; - i*86:Linux:*:*) - # The BFD linker knows what the default object file format is, so - # first see if it will tell us. cd to the root directory to prevent - # problems with other programs or directories called `ld' in the path. - # Set LC_ALL=C to ensure ld outputs messages in English. - ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ - | sed -ne '/supported targets:/!d - s/[ ][ ]*/ /g - s/.*supported targets: *// - s/ .*// - p'` - case "$ld_supported_targets" in - elf32-i386) - TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" - ;; - a.out-i386-linux) - echo "${UNAME_MACHINE}-pc-linux-gnuaout" - exit ;; - coff-i386) - echo "${UNAME_MACHINE}-pc-linux-gnucoff" - exit ;; - "") - # Either a pre-BFD a.out linker (linux-gnuoldld) or - # one that does not give us useful --help. - echo "${UNAME_MACHINE}-pc-linux-gnuoldld" - exit ;; - esac - # Determine whether the default compiler is a.out or elf - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c - #include - #ifdef __ELF__ - # ifdef __GLIBC__ - # if __GLIBC__ >= 2 - LIBC=gnu - # else - LIBC=gnulibc1 - # endif - # else - LIBC=gnulibc1 - # endif - #else - #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) - LIBC=gnu - #else - LIBC=gnuaout - #endif - #endif - #ifdef __dietlibc__ - LIBC=dietlibc - #endif -EOF - eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' - /^LIBC/{ - s: ::g - p - }'`" - test x"${LIBC}" != x && { - echo "${UNAME_MACHINE}-pc-linux-${LIBC}" - exit - } - test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } - ;; - i*86:DYNIX/ptx:4*:*) - # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. - # earlier versions are messed up and put the nodename in both - # sysname and nodename. - echo i386-sequent-sysv4 - exit ;; - i*86:UNIX_SV:4.2MP:2.*) - # Unixware is an offshoot of SVR4, but it has its own version - # number series starting with 2... - # I am not positive that other SVR4 systems won't match this, - # I just have to hope. -- rms. - # Use sysv4.2uw... so that sysv4* matches it. - echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} - exit ;; - i*86:OS/2:*:*) - # If we were able to find `uname', then EMX Unix compatibility - # is probably installed. - echo ${UNAME_MACHINE}-pc-os2-emx - exit ;; - i*86:XTS-300:*:STOP) - echo ${UNAME_MACHINE}-unknown-stop - exit ;; - i*86:atheos:*:*) - echo ${UNAME_MACHINE}-unknown-atheos - exit ;; - i*86:syllable:*:*) - echo ${UNAME_MACHINE}-pc-syllable - exit ;; - i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) - echo i386-unknown-lynxos${UNAME_RELEASE} - exit ;; - i*86:*DOS:*:*) - echo ${UNAME_MACHINE}-pc-msdosdjgpp - exit ;; - i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) - UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` - if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then - echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} - else - echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} - fi - exit ;; - i*86:*:5:[678]*) - # UnixWare 7.x, OpenUNIX and OpenServer 6. - case `/bin/uname -X | grep "^Machine"` in - *486*) UNAME_MACHINE=i486 ;; - *Pentium) UNAME_MACHINE=i586 ;; - *Pent*|*Celeron) UNAME_MACHINE=i686 ;; - esac - echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} - exit ;; - i*86:*:3.2:*) - if test -f /usr/options/cb.name; then - UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then - UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` - (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 - (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ - && UNAME_MACHINE=i586 - (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ - && UNAME_MACHINE=i686 - (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ - && UNAME_MACHINE=i686 - echo ${UNAME_MACHINE}-pc-sco$UNAME_REL - else - echo ${UNAME_MACHINE}-pc-sysv32 - fi - exit ;; - pc:*:*:*) - # Left here for compatibility: - # uname -m prints for DJGPP always 'pc', but it prints nothing about - # the processor, so we play safe by assuming i386. - echo i386-pc-msdosdjgpp - exit ;; - Intel:Mach:3*:*) - echo i386-pc-mach3 - exit ;; - paragon:*:*:*) - echo i860-intel-osf1 - exit ;; - i860:*:4.*:*) # i860-SVR4 - if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then - echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 - else # Add other i860-SVR4 vendors below as they are discovered. - echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 - fi - exit ;; - mini*:CTIX:SYS*5:*) - # "miniframe" - echo m68010-convergent-sysv - exit ;; - mc68k:UNIX:SYSTEM5:3.51m) - echo m68k-convergent-sysv - exit ;; - M680?0:D-NIX:5.3:*) - echo m68k-diab-dnix - exit ;; - M68*:*:R3V[5678]*:*) - test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; - 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) - OS_REL='' - test -r /etc/.relid \ - && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` - /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ - && { echo i486-ncr-sysv4.3${OS_REL}; exit; } - /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ - && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; - 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) - /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ - && { echo i486-ncr-sysv4; exit; } ;; - m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) - echo m68k-unknown-lynxos${UNAME_RELEASE} - exit ;; - mc68030:UNIX_System_V:4.*:*) - echo m68k-atari-sysv4 - exit ;; - TSUNAMI:LynxOS:2.*:*) - echo sparc-unknown-lynxos${UNAME_RELEASE} - exit ;; - rs6000:LynxOS:2.*:*) - echo rs6000-unknown-lynxos${UNAME_RELEASE} - exit ;; - PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) - echo powerpc-unknown-lynxos${UNAME_RELEASE} - exit ;; - SM[BE]S:UNIX_SV:*:*) - echo mips-dde-sysv${UNAME_RELEASE} - exit ;; - RM*:ReliantUNIX-*:*:*) - echo mips-sni-sysv4 - exit ;; - RM*:SINIX-*:*:*) - echo mips-sni-sysv4 - exit ;; - *:SINIX-*:*:*) - if uname -p 2>/dev/null >/dev/null ; then - UNAME_MACHINE=`(uname -p) 2>/dev/null` - echo ${UNAME_MACHINE}-sni-sysv4 - else - echo ns32k-sni-sysv - fi - exit ;; - PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort - # says - echo i586-unisys-sysv4 - exit ;; - *:UNIX_System_V:4*:FTX*) - # From Gerald Hewes . - # How about differentiating between stratus architectures? -djm - echo hppa1.1-stratus-sysv4 - exit ;; - *:*:*:FTX*) - # From seanf@swdc.stratus.com. - echo i860-stratus-sysv4 - exit ;; - i*86:VOS:*:*) - # From Paul.Green@stratus.com. - echo ${UNAME_MACHINE}-stratus-vos - exit ;; - *:VOS:*:*) - # From Paul.Green@stratus.com. - echo hppa1.1-stratus-vos - exit ;; - mc68*:A/UX:*:*) - echo m68k-apple-aux${UNAME_RELEASE} - exit ;; - news*:NEWS-OS:6*:*) - echo mips-sony-newsos6 - exit ;; - R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) - if [ -d /usr/nec ]; then - echo mips-nec-sysv${UNAME_RELEASE} - else - echo mips-unknown-sysv${UNAME_RELEASE} - fi - exit ;; - BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. - echo powerpc-be-beos - exit ;; - BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. - echo powerpc-apple-beos - exit ;; - BePC:BeOS:*:*) # BeOS running on Intel PC compatible. - echo i586-pc-beos - exit ;; - SX-4:SUPER-UX:*:*) - echo sx4-nec-superux${UNAME_RELEASE} - exit ;; - SX-5:SUPER-UX:*:*) - echo sx5-nec-superux${UNAME_RELEASE} - exit ;; - SX-6:SUPER-UX:*:*) - echo sx6-nec-superux${UNAME_RELEASE} - exit ;; - Power*:Rhapsody:*:*) - echo powerpc-apple-rhapsody${UNAME_RELEASE} - exit ;; - *:Rhapsody:*:*) - echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} - exit ;; - *:Darwin:*:*) - UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown - case $UNAME_PROCESSOR in - unknown) UNAME_PROCESSOR=powerpc ;; - esac - echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} - exit ;; - *:procnto*:*:* | *:QNX:[0123456789]*:*) - UNAME_PROCESSOR=`uname -p` - if test "$UNAME_PROCESSOR" = "x86"; then - UNAME_PROCESSOR=i386 - UNAME_MACHINE=pc - fi - echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} - exit ;; - *:QNX:*:4*) - echo i386-pc-qnx - exit ;; - NSE-?:NONSTOP_KERNEL:*:*) - echo nse-tandem-nsk${UNAME_RELEASE} - exit ;; - NSR-?:NONSTOP_KERNEL:*:*) - echo nsr-tandem-nsk${UNAME_RELEASE} - exit ;; - *:NonStop-UX:*:*) - echo mips-compaq-nonstopux - exit ;; - BS2000:POSIX*:*:*) - echo bs2000-siemens-sysv - exit ;; - DS/*:UNIX_System_V:*:*) - echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} - exit ;; - *:Plan9:*:*) - # "uname -m" is not consistent, so use $cputype instead. 386 - # is converted to i386 for consistency with other x86 - # operating systems. - if test "$cputype" = "386"; then - UNAME_MACHINE=i386 - else - UNAME_MACHINE="$cputype" - fi - echo ${UNAME_MACHINE}-unknown-plan9 - exit ;; - *:TOPS-10:*:*) - echo pdp10-unknown-tops10 - exit ;; - *:TENEX:*:*) - echo pdp10-unknown-tenex - exit ;; - KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) - echo pdp10-dec-tops20 - exit ;; - XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) - echo pdp10-xkl-tops20 - exit ;; - *:TOPS-20:*:*) - echo pdp10-unknown-tops20 - exit ;; - *:ITS:*:*) - echo pdp10-unknown-its - exit ;; - SEI:*:*:SEIUX) - echo mips-sei-seiux${UNAME_RELEASE} - exit ;; - *:DragonFly:*:*) - echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` - exit ;; - *:*VMS:*:*) - UNAME_MACHINE=`(uname -p) 2>/dev/null` - case "${UNAME_MACHINE}" in - A*) echo alpha-dec-vms ; exit ;; - I*) echo ia64-dec-vms ; exit ;; - V*) echo vax-dec-vms ; exit ;; - esac ;; - *:XENIX:*:SysV) - echo i386-pc-xenix - exit ;; - i*86:skyos:*:*) - echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' - exit ;; - i*86:rdos:*:*) - echo ${UNAME_MACHINE}-pc-rdos - exit ;; -esac - -#echo '(No uname command or uname output not recognized.)' 1>&2 -#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 - -eval $set_cc_for_build -cat >$dummy.c < -# include -#endif -main () -{ -#if defined (sony) -#if defined (MIPSEB) - /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, - I don't know.... */ - printf ("mips-sony-bsd\n"); exit (0); -#else -#include - printf ("m68k-sony-newsos%s\n", -#ifdef NEWSOS4 - "4" -#else - "" -#endif - ); exit (0); -#endif -#endif - -#if defined (__arm) && defined (__acorn) && defined (__unix) - printf ("arm-acorn-riscix\n"); exit (0); -#endif - -#if defined (hp300) && !defined (hpux) - printf ("m68k-hp-bsd\n"); exit (0); -#endif - -#if defined (NeXT) -#if !defined (__ARCHITECTURE__) -#define __ARCHITECTURE__ "m68k" -#endif - int version; - version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; - if (version < 4) - printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); - else - printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); - exit (0); -#endif - -#if defined (MULTIMAX) || defined (n16) -#if defined (UMAXV) - printf ("ns32k-encore-sysv\n"); exit (0); -#else -#if defined (CMU) - printf ("ns32k-encore-mach\n"); exit (0); -#else - printf ("ns32k-encore-bsd\n"); exit (0); -#endif -#endif -#endif - -#if defined (__386BSD__) - printf ("i386-pc-bsd\n"); exit (0); -#endif - -#if defined (sequent) -#if defined (i386) - printf ("i386-sequent-dynix\n"); exit (0); -#endif -#if defined (ns32000) - printf ("ns32k-sequent-dynix\n"); exit (0); -#endif -#endif - -#if defined (_SEQUENT_) - struct utsname un; - - uname(&un); - - if (strncmp(un.version, "V2", 2) == 0) { - printf ("i386-sequent-ptx2\n"); exit (0); - } - if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ - printf ("i386-sequent-ptx1\n"); exit (0); - } - printf ("i386-sequent-ptx\n"); exit (0); - -#endif - -#if defined (vax) -# if !defined (ultrix) -# include -# if defined (BSD) -# if BSD == 43 - printf ("vax-dec-bsd4.3\n"); exit (0); -# else -# if BSD == 199006 - printf ("vax-dec-bsd4.3reno\n"); exit (0); -# else - printf ("vax-dec-bsd\n"); exit (0); -# endif -# endif -# else - printf ("vax-dec-bsd\n"); exit (0); -# endif -# else - printf ("vax-dec-ultrix\n"); exit (0); -# endif -#endif - -#if defined (alliant) && defined (i860) - printf ("i860-alliant-bsd\n"); exit (0); -#endif - - exit (1); -} -EOF - -$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && - { echo "$SYSTEM_NAME"; exit; } - -# Apollos put the system type in the environment. - -test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } - -# Convex versions that predate uname can use getsysinfo(1) - -if [ -x /usr/convex/getsysinfo ] -then - case `getsysinfo -f cpu_type` in - c1*) - echo c1-convex-bsd - exit ;; - c2*) - if getsysinfo -f scalar_acc - then echo c32-convex-bsd - else echo c2-convex-bsd - fi - exit ;; - c34*) - echo c34-convex-bsd - exit ;; - c38*) - echo c38-convex-bsd - exit ;; - c4*) - echo c4-convex-bsd - exit ;; - esac -fi - -cat >&2 < in order to provide the needed -information to handle your system. - -config.guess timestamp = $timestamp - -uname -m = `(uname -m) 2>/dev/null || echo unknown` -uname -r = `(uname -r) 2>/dev/null || echo unknown` -uname -s = `(uname -s) 2>/dev/null || echo unknown` -uname -v = `(uname -v) 2>/dev/null || echo unknown` - -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` -/bin/uname -X = `(/bin/uname -X) 2>/dev/null` - -hostinfo = `(hostinfo) 2>/dev/null` -/bin/universe = `(/bin/universe) 2>/dev/null` -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` -/bin/arch = `(/bin/arch) 2>/dev/null` -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` - -UNAME_MACHINE = ${UNAME_MACHINE} -UNAME_RELEASE = ${UNAME_RELEASE} -UNAME_SYSTEM = ${UNAME_SYSTEM} -UNAME_VERSION = ${UNAME_VERSION} -EOF - -exit 1 - -# Local variables: -# eval: (add-hook 'write-file-hooks 'time-stamp) -# time-stamp-start: "timestamp='" -# time-stamp-format: "%:y-%02m-%02d" -# time-stamp-end: "'" -# End: diff --git a/library/ecasound/config.h.in b/library/ecasound/config.h.in deleted file mode 100644 index 8ae231d52..000000000 --- a/library/ecasound/config.h.in +++ /dev/null @@ -1,269 +0,0 @@ -/* config.h.in. Generated from configure.in by autoheader. */ - -/* disable all use of shared libs */ -#undef ECA_ALL_STATIC - -/* enable ALSA support */ -#undef ECA_COMPILE_ALSA - -/* enable aRts support */ -#undef ECA_COMPILE_ARTS - -/* enable libaudiofile support */ -#undef ECA_COMPILE_AUDIOFILE - -/* enable JACK support */ -#undef ECA_COMPILE_JACK - -/* enable OSS audio input/output */ -#undef ECA_COMPILE_OSS - -/* enable libsamplerate support */ -#undef ECA_COMPILE_SAMPLERATE - -/* enable libsndfile support */ -#undef ECA_COMPILE_SNDFILE - -/* debugging mode build */ -#undef ECA_DEBUG_MODE - -/* disable all effects */ -#undef ECA_DISABLE_EFFECTS - -/* disable use of OSS trigger API */ -#undef ECA_DISABLE_OSS_TRIGGER - -/* enable experimental features */ -#undef ECA_FEELING_EXPERIMENTAL - -/* version of JACK transport API to use */ -#undef ECA_JACK_TRANSPORT_API - -/* enable ecasound curses console interface */ -#undef ECA_PLATFORM_CURSES - -/* Ecasound configure script prefix */ -#undef ECA_PREFIX - -/* use ncurses.h for curses interface */ -#undef ECA_USE_CURSES_H - -/* use C++ std namespace */ -#undef ECA_USE_CXX_STD_NAMESPACE - -/* Use liblo for OSC support */ -#undef ECA_USE_LIBLO - -/* Use liboil */ -#undef ECA_USE_LIBOIL - -/* use curses.h for curses interface */ -#undef ECA_USE_NCURSES_H - -/* ncurses headers are installed in ncurses subdir */ -#undef ECA_USE_NCURSES_NCURSES_H - -/* Define to 1 if you have the `clock_gettime' function. */ -#undef HAVE_CLOCK_GETTIME - -/* Define to 1 if you have the header file. */ -#undef HAVE_DLFCN_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_ERRNO_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_EXECINFO_H - -/* Define to 1 if you have the `execvp' function. */ -#undef HAVE_EXECVP - -/* Define to 1 if you have the header file. */ -#undef HAVE_FCNTL_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_FEATURES_H - -/* Define to 1 if you have the `getpagesize' function. */ -#undef HAVE_GETPAGESIZE - -/* Define to 1 if you have the `gettimeofday' function. */ -#undef HAVE_GETTIMEOFDAY - -/* Define to 1 if you have the header file. */ -#undef HAVE_INTTYPES_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_LADSPA_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_LOCALE_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_MEMORY_H - -/* Define to 1 if you have the `mlockall' function. */ -#undef HAVE_MLOCKALL - -/* Define to 1 if you have a working `mmap' system call. */ -#undef HAVE_MMAP - -/* Define to 1 if you have the `munlockall' function. */ -#undef HAVE_MUNLOCKALL - -/* Define to 1 if you have the `nanosleep' function. */ -#undef HAVE_NANOSLEEP - -/* Define to 1 if you have the `pause' function. */ -#undef HAVE_PAUSE - -/* Define to 1 if you have the `posix_memalign' function. */ -#undef HAVE_POSIX_MEMALIGN - -/* Define to 1 if you have the `pthread_getschedparam' function. */ -#undef HAVE_PTHREAD_GETSCHEDPARAM - -/* Define to 1 if you have the `pthread_kill' function. */ -#undef HAVE_PTHREAD_KILL - -/* Define to 1 if you have the `pthread_mutexattr_init' function. */ -#undef HAVE_PTHREAD_MUTEXATTR_INIT - -/* Define to 1 if you have the `pthread_self' function. */ -#undef HAVE_PTHREAD_SELF - -/* Define to 1 if you have the `pthread_setschedparam' function. */ -#undef HAVE_PTHREAD_SETSCHEDPARAM - -/* Define to 1 if you have the `pthread_sigmask' function. */ -#undef HAVE_PTHREAD_SIGMASK - -/* Define to 1 if you have the header file. */ -#undef HAVE_REGEX_H - -/* Define to 1 if you have the `sched_getparam' function. */ -#undef HAVE_SCHED_GETPARAM - -/* Define to 1 if you have the `sched_getscheduler' function. */ -#undef HAVE_SCHED_GETSCHEDULER - -/* Define to 1 if you have the `sched_get_priority_max' function. */ -#undef HAVE_SCHED_GET_PRIORITY_MAX - -/* Define to 1 if you have the header file. */ -#undef HAVE_SCHED_H - -/* Define to 1 if you have the `sched_setscheduler' function. */ -#undef HAVE_SCHED_SETSCHEDULER - -/* Define to 1 if you have the `setlocale' function. */ -#undef HAVE_SETLOCALE - -/* Define to 1 if you have the header file. */ -#undef HAVE_SIGNAL_H - -/* Define to 1 if you have the `sigprocmask' function. */ -#undef HAVE_SIGPROCMASK - -/* Define to 1 if you have the `sigwait' function. */ -#undef HAVE_SIGWAIT - -/* Define to 1 if you have the header file. */ -#undef HAVE_STDINT_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_STDLIB_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_STRINGS_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_STRING_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_MMAN_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_POLL_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_SELECT_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_SOCKET_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_STAT_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_TIME_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_TYPES_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_WAIT_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_TERMIOS_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_UNISTD_H - -/* Define to 1 if you have the `usleep' function. */ -#undef HAVE_USLEEP - -/* libecasoundc interface version */ -#undef LIBECASOUNDC_VERSION - -/* libecasound interface version */ -#undef LIBECASOUND_VERSION - -/* libecasound interface age */ -#undef LIBECASOUND_VERSION_AGE - -/* libkvutils interface version */ -#undef LIBKVUTILS_VERSION - -/* libkvutils interface age */ -#undef LIBKVUTILS_VERSION_AGE - -/* Name of package */ -#undef PACKAGE - -/* Define to the address where bug reports for this package should be sent. */ -#undef PACKAGE_BUGREPORT - -/* Define to the full name of this package. */ -#undef PACKAGE_NAME - -/* Define to the full name and version of this package. */ -#undef PACKAGE_STRING - -/* Define to the one symbol short name of this package. */ -#undef PACKAGE_TARNAME - -/* Define to the version of this package. */ -#undef PACKAGE_VERSION - -/* Define to 1 if you have the ANSI C header files. */ -#undef STDC_HEADERS - -/* Define to 1 if you can safely include both and . */ -#undef TIME_WITH_SYS_TIME - -/* Version number of package */ -#undef VERSION - -/* Define to 1 if your processor stores words with the most significant byte - first (like Motorola and SPARC, unlike Intel and VAX). */ -#undef WORDS_BIGENDIAN - -/* Number of bits in a file offset, on hosts where this is settable. */ -#undef _FILE_OFFSET_BITS - -/* Define for large files, on AIX-style hosts. */ -#undef _LARGE_FILES - -/* Define to `unsigned int' if does not define. */ -#undef size_t diff --git a/library/ecasound/config.sub b/library/ecasound/config.sub deleted file mode 100755 index 387c18d1a..000000000 --- a/library/ecasound/config.sub +++ /dev/null @@ -1,1608 +0,0 @@ -#! /bin/sh -# Configuration validation subroutine script. -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, -# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, -# Inc. - -timestamp='2006-07-02' - -# This file is (in principle) common to ALL GNU software. -# The presence of a machine in this file suggests that SOME GNU software -# can handle that machine. It does not imply ALL GNU software can. -# -# This file is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA -# 02110-1301, USA. -# -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - - -# Please send patches to . Submit a context -# diff and a properly formatted ChangeLog entry. -# -# Configuration subroutine to validate and canonicalize a configuration type. -# Supply the specified configuration type as an argument. -# If it is invalid, we print an error message on stderr and exit with code 1. -# Otherwise, we print the canonical config type on stdout and succeed. - -# This file is supposed to be the same for all GNU packages -# and recognize all the CPU types, system types and aliases -# that are meaningful with *any* GNU software. -# Each package is responsible for reporting which valid configurations -# it does not support. The user should be able to distinguish -# a failure to support a valid configuration from a meaningless -# configuration. - -# The goal of this file is to map all the various variations of a given -# machine specification into a single specification in the form: -# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM -# or in some cases, the newer four-part form: -# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM -# It is wrong to echo any other type of specification. - -me=`echo "$0" | sed -e 's,.*/,,'` - -usage="\ -Usage: $0 [OPTION] CPU-MFR-OPSYS - $0 [OPTION] ALIAS - -Canonicalize a configuration name. - -Operation modes: - -h, --help print this help, then exit - -t, --time-stamp print date of last modification, then exit - -v, --version print version number, then exit - -Report bugs and patches to ." - -version="\ -GNU config.sub ($timestamp) - -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 -Free Software Foundation, Inc. - -This is free software; see the source for copying conditions. There is NO -warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." - -help=" -Try \`$me --help' for more information." - -# Parse command line -while test $# -gt 0 ; do - case $1 in - --time-stamp | --time* | -t ) - echo "$timestamp" ; exit ;; - --version | -v ) - echo "$version" ; exit ;; - --help | --h* | -h ) - echo "$usage"; exit ;; - -- ) # Stop option processing - shift; break ;; - - ) # Use stdin as input. - break ;; - -* ) - echo "$me: invalid option $1$help" - exit 1 ;; - - *local*) - # First pass through any local machine types. - echo $1 - exit ;; - - * ) - break ;; - esac -done - -case $# in - 0) echo "$me: missing argument$help" >&2 - exit 1;; - 1) ;; - *) echo "$me: too many arguments$help" >&2 - exit 1;; -esac - -# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). -# Here we must recognize all the valid KERNEL-OS combinations. -maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` -case $maybe_os in - nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ - uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ - storm-chaos* | os2-emx* | rtmk-nova*) - os=-$maybe_os - basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` - ;; - *) - basic_machine=`echo $1 | sed 's/-[^-]*$//'` - if [ $basic_machine != $1 ] - then os=`echo $1 | sed 's/.*-/-/'` - else os=; fi - ;; -esac - -### Let's recognize common machines as not being operating systems so -### that things like config.sub decstation-3100 work. We also -### recognize some manufacturers as not being operating systems, so we -### can provide default operating systems below. -case $os in - -sun*os*) - # Prevent following clause from handling this invalid input. - ;; - -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ - -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ - -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ - -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ - -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ - -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ - -apple | -axis | -knuth | -cray) - os= - basic_machine=$1 - ;; - -sim | -cisco | -oki | -wec | -winbond) - os= - basic_machine=$1 - ;; - -scout) - ;; - -wrs) - os=-vxworks - basic_machine=$1 - ;; - -chorusos*) - os=-chorusos - basic_machine=$1 - ;; - -chorusrdb) - os=-chorusrdb - basic_machine=$1 - ;; - -hiux*) - os=-hiuxwe2 - ;; - -sco6) - os=-sco5v6 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco5) - os=-sco3.2v5 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco4) - os=-sco3.2v4 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco3.2.[4-9]*) - os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco3.2v[4-9]*) - # Don't forget version if it is 3.2v4 or newer. - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco5v6*) - # Don't forget version if it is 3.2v4 or newer. - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco*) - os=-sco3.2v2 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -udk*) - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -isc) - os=-isc2.2 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -clix*) - basic_machine=clipper-intergraph - ;; - -isc*) - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -lynx*) - os=-lynxos - ;; - -ptx*) - basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` - ;; - -windowsnt*) - os=`echo $os | sed -e 's/windowsnt/winnt/'` - ;; - -psos*) - os=-psos - ;; - -mint | -mint[0-9]*) - basic_machine=m68k-atari - os=-mint - ;; -esac - -# Decode aliases for certain CPU-COMPANY combinations. -case $basic_machine in - # Recognize the basic CPU types without company name. - # Some are omitted here because they have special meanings below. - 1750a | 580 \ - | a29k \ - | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ - | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ - | am33_2.0 \ - | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ - | bfin \ - | c4x | clipper \ - | d10v | d30v | dlx | dsp16xx \ - | fr30 | frv \ - | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ - | i370 | i860 | i960 | ia64 \ - | ip2k | iq2000 \ - | m32c | m32r | m32rle | m68000 | m68k | m88k \ - | maxq | mb | microblaze | mcore \ - | mips | mipsbe | mipseb | mipsel | mipsle \ - | mips16 \ - | mips64 | mips64el \ - | mips64vr | mips64vrel \ - | mips64orion | mips64orionel \ - | mips64vr4100 | mips64vr4100el \ - | mips64vr4300 | mips64vr4300el \ - | mips64vr5000 | mips64vr5000el \ - | mips64vr5900 | mips64vr5900el \ - | mipsisa32 | mipsisa32el \ - | mipsisa32r2 | mipsisa32r2el \ - | mipsisa64 | mipsisa64el \ - | mipsisa64r2 | mipsisa64r2el \ - | mipsisa64sb1 | mipsisa64sb1el \ - | mipsisa64sr71k | mipsisa64sr71kel \ - | mipstx39 | mipstx39el \ - | mn10200 | mn10300 \ - | mt \ - | msp430 \ - | nios | nios2 \ - | ns16k | ns32k \ - | or32 \ - | pdp10 | pdp11 | pj | pjl \ - | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ - | pyramid \ - | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ - | sh64 | sh64le \ - | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ - | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ - | spu | strongarm \ - | tahoe | thumb | tic4x | tic80 | tron \ - | v850 | v850e \ - | we32k \ - | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \ - | z8k) - basic_machine=$basic_machine-unknown - ;; - m6811 | m68hc11 | m6812 | m68hc12) - # Motorola 68HC11/12. - basic_machine=$basic_machine-unknown - os=-none - ;; - m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) - ;; - ms1) - basic_machine=mt-unknown - ;; - - # We use `pc' rather than `unknown' - # because (1) that's what they normally are, and - # (2) the word "unknown" tends to confuse beginning users. - i*86 | x86_64) - basic_machine=$basic_machine-pc - ;; - # Object if more than one company name word. - *-*-*) - echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 - exit 1 - ;; - # Recognize the basic CPU types with company name. - 580-* \ - | a29k-* \ - | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ - | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ - | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ - | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ - | avr-* | avr32-* \ - | bfin-* | bs2000-* \ - | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ - | clipper-* | craynv-* | cydra-* \ - | d10v-* | d30v-* | dlx-* \ - | elxsi-* \ - | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ - | h8300-* | h8500-* \ - | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ - | i*86-* | i860-* | i960-* | ia64-* \ - | ip2k-* | iq2000-* \ - | m32c-* | m32r-* | m32rle-* \ - | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ - | m88110-* | m88k-* | maxq-* | mcore-* \ - | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ - | mips16-* \ - | mips64-* | mips64el-* \ - | mips64vr-* | mips64vrel-* \ - | mips64orion-* | mips64orionel-* \ - | mips64vr4100-* | mips64vr4100el-* \ - | mips64vr4300-* | mips64vr4300el-* \ - | mips64vr5000-* | mips64vr5000el-* \ - | mips64vr5900-* | mips64vr5900el-* \ - | mipsisa32-* | mipsisa32el-* \ - | mipsisa32r2-* | mipsisa32r2el-* \ - | mipsisa64-* | mipsisa64el-* \ - | mipsisa64r2-* | mipsisa64r2el-* \ - | mipsisa64sb1-* | mipsisa64sb1el-* \ - | mipsisa64sr71k-* | mipsisa64sr71kel-* \ - | mipstx39-* | mipstx39el-* \ - | mmix-* \ - | mt-* \ - | msp430-* \ - | nios-* | nios2-* \ - | none-* | np1-* | ns16k-* | ns32k-* \ - | orion-* \ - | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ - | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ - | pyramid-* \ - | romp-* | rs6000-* \ - | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ - | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ - | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ - | sparclite-* \ - | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ - | tahoe-* | thumb-* \ - | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ - | tron-* \ - | v850-* | v850e-* | vax-* \ - | we32k-* \ - | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \ - | xstormy16-* | xtensa-* \ - | ymp-* \ - | z8k-*) - ;; - # Recognize the various machine names and aliases which stand - # for a CPU type and a company and sometimes even an OS. - 386bsd) - basic_machine=i386-unknown - os=-bsd - ;; - 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) - basic_machine=m68000-att - ;; - 3b*) - basic_machine=we32k-att - ;; - a29khif) - basic_machine=a29k-amd - os=-udi - ;; - abacus) - basic_machine=abacus-unknown - ;; - adobe68k) - basic_machine=m68010-adobe - os=-scout - ;; - alliant | fx80) - basic_machine=fx80-alliant - ;; - altos | altos3068) - basic_machine=m68k-altos - ;; - am29k) - basic_machine=a29k-none - os=-bsd - ;; - amd64) - basic_machine=x86_64-pc - ;; - amd64-*) - basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - amdahl) - basic_machine=580-amdahl - os=-sysv - ;; - amiga | amiga-*) - basic_machine=m68k-unknown - ;; - amigaos | amigados) - basic_machine=m68k-unknown - os=-amigaos - ;; - amigaunix | amix) - basic_machine=m68k-unknown - os=-sysv4 - ;; - apollo68) - basic_machine=m68k-apollo - os=-sysv - ;; - apollo68bsd) - basic_machine=m68k-apollo - os=-bsd - ;; - aux) - basic_machine=m68k-apple - os=-aux - ;; - balance) - basic_machine=ns32k-sequent - os=-dynix - ;; - c90) - basic_machine=c90-cray - os=-unicos - ;; - convex-c1) - basic_machine=c1-convex - os=-bsd - ;; - convex-c2) - basic_machine=c2-convex - os=-bsd - ;; - convex-c32) - basic_machine=c32-convex - os=-bsd - ;; - convex-c34) - basic_machine=c34-convex - os=-bsd - ;; - convex-c38) - basic_machine=c38-convex - os=-bsd - ;; - cray | j90) - basic_machine=j90-cray - os=-unicos - ;; - craynv) - basic_machine=craynv-cray - os=-unicosmp - ;; - cr16c) - basic_machine=cr16c-unknown - os=-elf - ;; - crds | unos) - basic_machine=m68k-crds - ;; - crisv32 | crisv32-* | etraxfs*) - basic_machine=crisv32-axis - ;; - cris | cris-* | etrax*) - basic_machine=cris-axis - ;; - crx) - basic_machine=crx-unknown - os=-elf - ;; - da30 | da30-*) - basic_machine=m68k-da30 - ;; - decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) - basic_machine=mips-dec - ;; - decsystem10* | dec10*) - basic_machine=pdp10-dec - os=-tops10 - ;; - decsystem20* | dec20*) - basic_machine=pdp10-dec - os=-tops20 - ;; - delta | 3300 | motorola-3300 | motorola-delta \ - | 3300-motorola | delta-motorola) - basic_machine=m68k-motorola - ;; - delta88) - basic_machine=m88k-motorola - os=-sysv3 - ;; - djgpp) - basic_machine=i586-pc - os=-msdosdjgpp - ;; - dpx20 | dpx20-*) - basic_machine=rs6000-bull - os=-bosx - ;; - dpx2* | dpx2*-bull) - basic_machine=m68k-bull - os=-sysv3 - ;; - ebmon29k) - basic_machine=a29k-amd - os=-ebmon - ;; - elxsi) - basic_machine=elxsi-elxsi - os=-bsd - ;; - encore | umax | mmax) - basic_machine=ns32k-encore - ;; - es1800 | OSE68k | ose68k | ose | OSE) - basic_machine=m68k-ericsson - os=-ose - ;; - fx2800) - basic_machine=i860-alliant - ;; - genix) - basic_machine=ns32k-ns - ;; - gmicro) - basic_machine=tron-gmicro - os=-sysv - ;; - go32) - basic_machine=i386-pc - os=-go32 - ;; - h3050r* | hiux*) - basic_machine=hppa1.1-hitachi - os=-hiuxwe2 - ;; - h8300hms) - basic_machine=h8300-hitachi - os=-hms - ;; - h8300xray) - basic_machine=h8300-hitachi - os=-xray - ;; - h8500hms) - basic_machine=h8500-hitachi - os=-hms - ;; - harris) - basic_machine=m88k-harris - os=-sysv3 - ;; - hp300-*) - basic_machine=m68k-hp - ;; - hp300bsd) - basic_machine=m68k-hp - os=-bsd - ;; - hp300hpux) - basic_machine=m68k-hp - os=-hpux - ;; - hp3k9[0-9][0-9] | hp9[0-9][0-9]) - basic_machine=hppa1.0-hp - ;; - hp9k2[0-9][0-9] | hp9k31[0-9]) - basic_machine=m68000-hp - ;; - hp9k3[2-9][0-9]) - basic_machine=m68k-hp - ;; - hp9k6[0-9][0-9] | hp6[0-9][0-9]) - basic_machine=hppa1.0-hp - ;; - hp9k7[0-79][0-9] | hp7[0-79][0-9]) - basic_machine=hppa1.1-hp - ;; - hp9k78[0-9] | hp78[0-9]) - # FIXME: really hppa2.0-hp - basic_machine=hppa1.1-hp - ;; - hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) - # FIXME: really hppa2.0-hp - basic_machine=hppa1.1-hp - ;; - hp9k8[0-9][13679] | hp8[0-9][13679]) - basic_machine=hppa1.1-hp - ;; - hp9k8[0-9][0-9] | hp8[0-9][0-9]) - basic_machine=hppa1.0-hp - ;; - hppa-next) - os=-nextstep3 - ;; - hppaosf) - basic_machine=hppa1.1-hp - os=-osf - ;; - hppro) - basic_machine=hppa1.1-hp - os=-proelf - ;; - i370-ibm* | ibm*) - basic_machine=i370-ibm - ;; -# I'm not sure what "Sysv32" means. Should this be sysv3.2? - i*86v32) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` - os=-sysv32 - ;; - i*86v4*) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` - os=-sysv4 - ;; - i*86v) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` - os=-sysv - ;; - i*86sol2) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` - os=-solaris2 - ;; - i386mach) - basic_machine=i386-mach - os=-mach - ;; - i386-vsta | vsta) - basic_machine=i386-unknown - os=-vsta - ;; - iris | iris4d) - basic_machine=mips-sgi - case $os in - -irix*) - ;; - *) - os=-irix4 - ;; - esac - ;; - isi68 | isi) - basic_machine=m68k-isi - os=-sysv - ;; - m88k-omron*) - basic_machine=m88k-omron - ;; - magnum | m3230) - basic_machine=mips-mips - os=-sysv - ;; - merlin) - basic_machine=ns32k-utek - os=-sysv - ;; - mingw32) - basic_machine=i386-pc - os=-mingw32 - ;; - miniframe) - basic_machine=m68000-convergent - ;; - *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) - basic_machine=m68k-atari - os=-mint - ;; - mips3*-*) - basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` - ;; - mips3*) - basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown - ;; - monitor) - basic_machine=m68k-rom68k - os=-coff - ;; - morphos) - basic_machine=powerpc-unknown - os=-morphos - ;; - msdos) - basic_machine=i386-pc - os=-msdos - ;; - ms1-*) - basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` - ;; - mvs) - basic_machine=i370-ibm - os=-mvs - ;; - ncr3000) - basic_machine=i486-ncr - os=-sysv4 - ;; - netbsd386) - basic_machine=i386-unknown - os=-netbsd - ;; - netwinder) - basic_machine=armv4l-rebel - os=-linux - ;; - news | news700 | news800 | news900) - basic_machine=m68k-sony - os=-newsos - ;; - news1000) - basic_machine=m68030-sony - os=-newsos - ;; - news-3600 | risc-news) - basic_machine=mips-sony - os=-newsos - ;; - necv70) - basic_machine=v70-nec - os=-sysv - ;; - next | m*-next ) - basic_machine=m68k-next - case $os in - -nextstep* ) - ;; - -ns2*) - os=-nextstep2 - ;; - *) - os=-nextstep3 - ;; - esac - ;; - nh3000) - basic_machine=m68k-harris - os=-cxux - ;; - nh[45]000) - basic_machine=m88k-harris - os=-cxux - ;; - nindy960) - basic_machine=i960-intel - os=-nindy - ;; - mon960) - basic_machine=i960-intel - os=-mon960 - ;; - nonstopux) - basic_machine=mips-compaq - os=-nonstopux - ;; - np1) - basic_machine=np1-gould - ;; - nsr-tandem) - basic_machine=nsr-tandem - ;; - op50n-* | op60c-*) - basic_machine=hppa1.1-oki - os=-proelf - ;; - openrisc | openrisc-*) - basic_machine=or32-unknown - ;; - os400) - basic_machine=powerpc-ibm - os=-os400 - ;; - OSE68000 | ose68000) - basic_machine=m68000-ericsson - os=-ose - ;; - os68k) - basic_machine=m68k-none - os=-os68k - ;; - pa-hitachi) - basic_machine=hppa1.1-hitachi - os=-hiuxwe2 - ;; - paragon) - basic_machine=i860-intel - os=-osf - ;; - pbd) - basic_machine=sparc-tti - ;; - pbb) - basic_machine=m68k-tti - ;; - pc532 | pc532-*) - basic_machine=ns32k-pc532 - ;; - pc98) - basic_machine=i386-pc - ;; - pc98-*) - basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - pentium | p5 | k5 | k6 | nexgen | viac3) - basic_machine=i586-pc - ;; - pentiumpro | p6 | 6x86 | athlon | athlon_*) - basic_machine=i686-pc - ;; - pentiumii | pentium2 | pentiumiii | pentium3) - basic_machine=i686-pc - ;; - pentium4) - basic_machine=i786-pc - ;; - pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) - basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - pentiumpro-* | p6-* | 6x86-* | athlon-*) - basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) - basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - pentium4-*) - basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - pn) - basic_machine=pn-gould - ;; - power) basic_machine=power-ibm - ;; - ppc) basic_machine=powerpc-unknown - ;; - ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - ppcle | powerpclittle | ppc-le | powerpc-little) - basic_machine=powerpcle-unknown - ;; - ppcle-* | powerpclittle-*) - basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - ppc64) basic_machine=powerpc64-unknown - ;; - ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - ppc64le | powerpc64little | ppc64-le | powerpc64-little) - basic_machine=powerpc64le-unknown - ;; - ppc64le-* | powerpc64little-*) - basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - ps2) - basic_machine=i386-ibm - ;; - pw32) - basic_machine=i586-unknown - os=-pw32 - ;; - rdos) - basic_machine=i386-pc - os=-rdos - ;; - rom68k) - basic_machine=m68k-rom68k - os=-coff - ;; - rm[46]00) - basic_machine=mips-siemens - ;; - rtpc | rtpc-*) - basic_machine=romp-ibm - ;; - s390 | s390-*) - basic_machine=s390-ibm - ;; - s390x | s390x-*) - basic_machine=s390x-ibm - ;; - sa29200) - basic_machine=a29k-amd - os=-udi - ;; - sb1) - basic_machine=mipsisa64sb1-unknown - ;; - sb1el) - basic_machine=mipsisa64sb1el-unknown - ;; - sei) - basic_machine=mips-sei - os=-seiux - ;; - sequent) - basic_machine=i386-sequent - ;; - sh) - basic_machine=sh-hitachi - os=-hms - ;; - sh64) - basic_machine=sh64-unknown - ;; - sparclite-wrs | simso-wrs) - basic_machine=sparclite-wrs - os=-vxworks - ;; - sps7) - basic_machine=m68k-bull - os=-sysv2 - ;; - spur) - basic_machine=spur-unknown - ;; - st2000) - basic_machine=m68k-tandem - ;; - stratus) - basic_machine=i860-stratus - os=-sysv4 - ;; - sun2) - basic_machine=m68000-sun - ;; - sun2os3) - basic_machine=m68000-sun - os=-sunos3 - ;; - sun2os4) - basic_machine=m68000-sun - os=-sunos4 - ;; - sun3os3) - basic_machine=m68k-sun - os=-sunos3 - ;; - sun3os4) - basic_machine=m68k-sun - os=-sunos4 - ;; - sun4os3) - basic_machine=sparc-sun - os=-sunos3 - ;; - sun4os4) - basic_machine=sparc-sun - os=-sunos4 - ;; - sun4sol2) - basic_machine=sparc-sun - os=-solaris2 - ;; - sun3 | sun3-*) - basic_machine=m68k-sun - ;; - sun4) - basic_machine=sparc-sun - ;; - sun386 | sun386i | roadrunner) - basic_machine=i386-sun - ;; - sv1) - basic_machine=sv1-cray - os=-unicos - ;; - symmetry) - basic_machine=i386-sequent - os=-dynix - ;; - t3e) - basic_machine=alphaev5-cray - os=-unicos - ;; - t90) - basic_machine=t90-cray - os=-unicos - ;; - tic54x | c54x*) - basic_machine=tic54x-unknown - os=-coff - ;; - tic55x | c55x*) - basic_machine=tic55x-unknown - os=-coff - ;; - tic6x | c6x*) - basic_machine=tic6x-unknown - os=-coff - ;; - tx39) - basic_machine=mipstx39-unknown - ;; - tx39el) - basic_machine=mipstx39el-unknown - ;; - toad1) - basic_machine=pdp10-xkl - os=-tops20 - ;; - tower | tower-32) - basic_machine=m68k-ncr - ;; - tpf) - basic_machine=s390x-ibm - os=-tpf - ;; - udi29k) - basic_machine=a29k-amd - os=-udi - ;; - ultra3) - basic_machine=a29k-nyu - os=-sym1 - ;; - v810 | necv810) - basic_machine=v810-nec - os=-none - ;; - vaxv) - basic_machine=vax-dec - os=-sysv - ;; - vms) - basic_machine=vax-dec - os=-vms - ;; - vpp*|vx|vx-*) - basic_machine=f301-fujitsu - ;; - vxworks960) - basic_machine=i960-wrs - os=-vxworks - ;; - vxworks68) - basic_machine=m68k-wrs - os=-vxworks - ;; - vxworks29k) - basic_machine=a29k-wrs - os=-vxworks - ;; - w65*) - basic_machine=w65-wdc - os=-none - ;; - w89k-*) - basic_machine=hppa1.1-winbond - os=-proelf - ;; - xbox) - basic_machine=i686-pc - os=-mingw32 - ;; - xps | xps100) - basic_machine=xps100-honeywell - ;; - ymp) - basic_machine=ymp-cray - os=-unicos - ;; - z8k-*-coff) - basic_machine=z8k-unknown - os=-sim - ;; - none) - basic_machine=none-none - os=-none - ;; - -# Here we handle the default manufacturer of certain CPU types. It is in -# some cases the only manufacturer, in others, it is the most popular. - w89k) - basic_machine=hppa1.1-winbond - ;; - op50n) - basic_machine=hppa1.1-oki - ;; - op60c) - basic_machine=hppa1.1-oki - ;; - romp) - basic_machine=romp-ibm - ;; - mmix) - basic_machine=mmix-knuth - ;; - rs6000) - basic_machine=rs6000-ibm - ;; - vax) - basic_machine=vax-dec - ;; - pdp10) - # there are many clones, so DEC is not a safe bet - basic_machine=pdp10-unknown - ;; - pdp11) - basic_machine=pdp11-dec - ;; - we32k) - basic_machine=we32k-att - ;; - sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele) - basic_machine=sh-unknown - ;; - sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) - basic_machine=sparc-sun - ;; - cydra) - basic_machine=cydra-cydrome - ;; - orion) - basic_machine=orion-highlevel - ;; - orion105) - basic_machine=clipper-highlevel - ;; - mac | mpw | mac-mpw) - basic_machine=m68k-apple - ;; - pmac | pmac-mpw) - basic_machine=powerpc-apple - ;; - *-unknown) - # Make sure to match an already-canonicalized machine name. - ;; - *) - echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 - exit 1 - ;; -esac - -# Here we canonicalize certain aliases for manufacturers. -case $basic_machine in - *-digital*) - basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` - ;; - *-commodore*) - basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` - ;; - *) - ;; -esac - -# Decode manufacturer-specific aliases for certain operating systems. - -if [ x"$os" != x"" ] -then -case $os in - # First match some system type aliases - # that might get confused with valid system types. - # -solaris* is a basic system type, with this one exception. - -solaris1 | -solaris1.*) - os=`echo $os | sed -e 's|solaris1|sunos4|'` - ;; - -solaris) - os=-solaris2 - ;; - -svr4*) - os=-sysv4 - ;; - -unixware*) - os=-sysv4.2uw - ;; - -gnu/linux*) - os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` - ;; - # First accept the basic system types. - # The portable systems comes first. - # Each alternative MUST END IN A *, to match a version number. - # -sysv* is not here because it comes later, after sysvr4. - -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ - | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ - | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ - | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ - | -aos* \ - | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ - | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ - | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ - | -openbsd* | -solidbsd* \ - | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ - | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ - | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ - | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ - | -chorusos* | -chorusrdb* \ - | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ - | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ - | -uxpv* | -beos* | -mpeix* | -udk* \ - | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ - | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ - | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ - | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ - | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ - | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ - | -skyos* | -haiku* | -rdos* | -toppers*) - # Remember, each alternative MUST END IN *, to match a version number. - ;; - -qnx*) - case $basic_machine in - x86-* | i*86-*) - ;; - *) - os=-nto$os - ;; - esac - ;; - -nto-qnx*) - ;; - -nto*) - os=`echo $os | sed -e 's|nto|nto-qnx|'` - ;; - -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ - | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ - | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) - ;; - -mac*) - os=`echo $os | sed -e 's|mac|macos|'` - ;; - -linux-dietlibc) - os=-linux-dietlibc - ;; - -linux*) - os=`echo $os | sed -e 's|linux|linux-gnu|'` - ;; - -sunos5*) - os=`echo $os | sed -e 's|sunos5|solaris2|'` - ;; - -sunos6*) - os=`echo $os | sed -e 's|sunos6|solaris3|'` - ;; - -opened*) - os=-openedition - ;; - -os400*) - os=-os400 - ;; - -wince*) - os=-wince - ;; - -osfrose*) - os=-osfrose - ;; - -osf*) - os=-osf - ;; - -utek*) - os=-bsd - ;; - -dynix*) - os=-bsd - ;; - -acis*) - os=-aos - ;; - -atheos*) - os=-atheos - ;; - -syllable*) - os=-syllable - ;; - -386bsd) - os=-bsd - ;; - -ctix* | -uts*) - os=-sysv - ;; - -nova*) - os=-rtmk-nova - ;; - -ns2 ) - os=-nextstep2 - ;; - -nsk*) - os=-nsk - ;; - # Preserve the version number of sinix5. - -sinix5.*) - os=`echo $os | sed -e 's|sinix|sysv|'` - ;; - -sinix*) - os=-sysv4 - ;; - -tpf*) - os=-tpf - ;; - -triton*) - os=-sysv3 - ;; - -oss*) - os=-sysv3 - ;; - -svr4) - os=-sysv4 - ;; - -svr3) - os=-sysv3 - ;; - -sysvr4) - os=-sysv4 - ;; - # This must come after -sysvr4. - -sysv*) - ;; - -ose*) - os=-ose - ;; - -es1800*) - os=-ose - ;; - -xenix) - os=-xenix - ;; - -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) - os=-mint - ;; - -aros*) - os=-aros - ;; - -kaos*) - os=-kaos - ;; - -zvmoe) - os=-zvmoe - ;; - -none) - ;; - *) - # Get rid of the `-' at the beginning of $os. - os=`echo $os | sed 's/[^-]*-//'` - echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 - exit 1 - ;; -esac -else - -# Here we handle the default operating systems that come with various machines. -# The value should be what the vendor currently ships out the door with their -# machine or put another way, the most popular os provided with the machine. - -# Note that if you're going to try to match "-MANUFACTURER" here (say, -# "-sun"), then you have to tell the case statement up towards the top -# that MANUFACTURER isn't an operating system. Otherwise, code above -# will signal an error saying that MANUFACTURER isn't an operating -# system, and we'll never get to this point. - -case $basic_machine in - spu-*) - os=-elf - ;; - *-acorn) - os=-riscix1.2 - ;; - arm*-rebel) - os=-linux - ;; - arm*-semi) - os=-aout - ;; - c4x-* | tic4x-*) - os=-coff - ;; - # This must come before the *-dec entry. - pdp10-*) - os=-tops20 - ;; - pdp11-*) - os=-none - ;; - *-dec | vax-*) - os=-ultrix4.2 - ;; - m68*-apollo) - os=-domain - ;; - i386-sun) - os=-sunos4.0.2 - ;; - m68000-sun) - os=-sunos3 - # This also exists in the configure program, but was not the - # default. - # os=-sunos4 - ;; - m68*-cisco) - os=-aout - ;; - mips*-cisco) - os=-elf - ;; - mips*-*) - os=-elf - ;; - or32-*) - os=-coff - ;; - *-tti) # must be before sparc entry or we get the wrong os. - os=-sysv3 - ;; - sparc-* | *-sun) - os=-sunos4.1.1 - ;; - *-be) - os=-beos - ;; - *-haiku) - os=-haiku - ;; - *-ibm) - os=-aix - ;; - *-knuth) - os=-mmixware - ;; - *-wec) - os=-proelf - ;; - *-winbond) - os=-proelf - ;; - *-oki) - os=-proelf - ;; - *-hp) - os=-hpux - ;; - *-hitachi) - os=-hiux - ;; - i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) - os=-sysv - ;; - *-cbm) - os=-amigaos - ;; - *-dg) - os=-dgux - ;; - *-dolphin) - os=-sysv3 - ;; - m68k-ccur) - os=-rtu - ;; - m88k-omron*) - os=-luna - ;; - *-next ) - os=-nextstep - ;; - *-sequent) - os=-ptx - ;; - *-crds) - os=-unos - ;; - *-ns) - os=-genix - ;; - i370-*) - os=-mvs - ;; - *-next) - os=-nextstep3 - ;; - *-gould) - os=-sysv - ;; - *-highlevel) - os=-bsd - ;; - *-encore) - os=-bsd - ;; - *-sgi) - os=-irix - ;; - *-siemens) - os=-sysv4 - ;; - *-masscomp) - os=-rtu - ;; - f30[01]-fujitsu | f700-fujitsu) - os=-uxpv - ;; - *-rom68k) - os=-coff - ;; - *-*bug) - os=-coff - ;; - *-apple) - os=-macos - ;; - *-atari*) - os=-mint - ;; - *) - os=-none - ;; -esac -fi - -# Here we handle the case where we know the os, and the CPU type, but not the -# manufacturer. We pick the logical manufacturer. -vendor=unknown -case $basic_machine in - *-unknown) - case $os in - -riscix*) - vendor=acorn - ;; - -sunos*) - vendor=sun - ;; - -aix*) - vendor=ibm - ;; - -beos*) - vendor=be - ;; - -hpux*) - vendor=hp - ;; - -mpeix*) - vendor=hp - ;; - -hiux*) - vendor=hitachi - ;; - -unos*) - vendor=crds - ;; - -dgux*) - vendor=dg - ;; - -luna*) - vendor=omron - ;; - -genix*) - vendor=ns - ;; - -mvs* | -opened*) - vendor=ibm - ;; - -os400*) - vendor=ibm - ;; - -ptx*) - vendor=sequent - ;; - -tpf*) - vendor=ibm - ;; - -vxsim* | -vxworks* | -windiss*) - vendor=wrs - ;; - -aux*) - vendor=apple - ;; - -hms*) - vendor=hitachi - ;; - -mpw* | -macos*) - vendor=apple - ;; - -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) - vendor=atari - ;; - -vos*) - vendor=stratus - ;; - esac - basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` - ;; -esac - -echo $basic_machine$os -exit - -# Local variables: -# eval: (add-hook 'write-file-hooks 'time-stamp) -# time-stamp-start: "timestamp='" -# time-stamp-format: "%:y-%02m-%02d" -# time-stamp-end: "'" -# End: diff --git a/library/ecasound/configure b/library/ecasound/configure deleted file mode 100755 index ba84f9449..000000000 --- a/library/ecasound/configure +++ /dev/null @@ -1,30153 +0,0 @@ -#! /bin/sh -# Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.61 for ecasound 2.7.2. -# -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, -# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. -# This configure script is free software; the Free Software Foundation -# gives unlimited permission to copy, distribute and modify it. -## --------------------- ## -## M4sh Initialization. ## -## --------------------- ## - -# Be more Bourne compatible -DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac - -fi - - - - -# PATH needs CR -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi - -# Support unset when possible. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false -fi - - -# IFS -# We need space, tab and new line, in precisely that order. Quoting is -# there to prevent editors from complaining about space-tab. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word -# splitting by setting IFS to empty value.) -as_nl=' -' -IFS=" "" $as_nl" - -# Find who we are. Look in the path if we contain no directory separator. -case $0 in - *[\\/]* ) as_myself=$0 ;; - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break -done -IFS=$as_save_IFS - - ;; -esac -# We did not find ourselves, most probably we were run as `sh COMMAND' -# in which case we are not to be found in the path. -if test "x$as_myself" = x; then - as_myself=$0 -fi -if test ! -f "$as_myself"; then - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 - { (exit 1); exit 1; } -fi - -# Work around bugs in pre-3.0 UWIN ksh. -for as_var in ENV MAIL MAILPATH -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var -done -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -for as_var in \ - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ - LC_TELEPHONE LC_TIME -do - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then - eval $as_var=C; export $as_var - else - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var - fi -done - -# Required to use basename. -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then - as_basename=basename -else - as_basename=false -fi - - -# Name of the executable. -as_me=`$as_basename -- "$0" || -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -echo X/"$0" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ - s//\1/ - q - } - /^X\/\(\/\/\)$/{ - s//\1/ - q - } - /^X\/\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - -# CDPATH. -$as_unset CDPATH - - -if test "x$CONFIG_SHELL" = x; then - if (eval ":") 2>/dev/null; then - as_have_required=yes -else - as_have_required=no -fi - - if test $as_have_required = yes && (eval ": -(as_func_return () { - (exit \$1) -} -as_func_success () { - as_func_return 0 -} -as_func_failure () { - as_func_return 1 -} -as_func_ret_success () { - return 0 -} -as_func_ret_failure () { - return 1 -} - -exitcode=0 -if as_func_success; then - : -else - exitcode=1 - echo as_func_success failed. -fi - -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. -fi - -if as_func_ret_success; then - : -else - exitcode=1 - echo as_func_ret_success failed. -fi - -if as_func_ret_failure; then - exitcode=1 - echo as_func_ret_failure succeeded. -fi - -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then - : -else - exitcode=1 - echo positional parameters were not saved. -fi - -test \$exitcode = 0) || { (exit 1); exit 1; } - -( - as_lineno_1=\$LINENO - as_lineno_2=\$LINENO - test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && - test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } -") 2> /dev/null; then - : -else - as_candidate_shells= - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - case $as_dir in - /*) - for as_base in sh bash ksh sh5; do - as_candidate_shells="$as_candidate_shells $as_dir/$as_base" - done;; - esac -done -IFS=$as_save_IFS - - - for as_shell in $as_candidate_shells $SHELL; do - # Try only shells that exist, to save several forks. - if { test -f "$as_shell" || test -f "$as_shell.exe"; } && - { ("$as_shell") 2> /dev/null <<\_ASEOF -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac - -fi - - -: -_ASEOF -}; then - CONFIG_SHELL=$as_shell - as_have_required=yes - if { "$as_shell" 2> /dev/null <<\_ASEOF -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac - -fi - - -: -(as_func_return () { - (exit $1) -} -as_func_success () { - as_func_return 0 -} -as_func_failure () { - as_func_return 1 -} -as_func_ret_success () { - return 0 -} -as_func_ret_failure () { - return 1 -} - -exitcode=0 -if as_func_success; then - : -else - exitcode=1 - echo as_func_success failed. -fi - -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. -fi - -if as_func_ret_success; then - : -else - exitcode=1 - echo as_func_ret_success failed. -fi - -if as_func_ret_failure; then - exitcode=1 - echo as_func_ret_failure succeeded. -fi - -if ( set x; as_func_ret_success y && test x = "$1" ); then - : -else - exitcode=1 - echo positional parameters were not saved. -fi - -test $exitcode = 0) || { (exit 1); exit 1; } - -( - as_lineno_1=$LINENO - as_lineno_2=$LINENO - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } - -_ASEOF -}; then - break -fi - -fi - - done - - if test "x$CONFIG_SHELL" != x; then - for as_var in BASH_ENV ENV - do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var - done - export CONFIG_SHELL - exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} -fi - - - if test $as_have_required = no; then - echo This script requires a shell more modern than all the - echo shells that I found on your system. Please install a - echo modern shell, or manually run the script under such a - echo shell if you do have one. - { (exit 1); exit 1; } -fi - - -fi - -fi - - - -(eval "as_func_return () { - (exit \$1) -} -as_func_success () { - as_func_return 0 -} -as_func_failure () { - as_func_return 1 -} -as_func_ret_success () { - return 0 -} -as_func_ret_failure () { - return 1 -} - -exitcode=0 -if as_func_success; then - : -else - exitcode=1 - echo as_func_success failed. -fi - -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. -fi - -if as_func_ret_success; then - : -else - exitcode=1 - echo as_func_ret_success failed. -fi - -if as_func_ret_failure; then - exitcode=1 - echo as_func_ret_failure succeeded. -fi - -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then - : -else - exitcode=1 - echo positional parameters were not saved. -fi - -test \$exitcode = 0") || { - echo No shell found that supports shell functions. - echo Please tell autoconf@gnu.org about your system, - echo including any error possibly output before this - echo message -} - - - - as_lineno_1=$LINENO - as_lineno_2=$LINENO - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { - - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO - # uniformly replaced by the line number. The first 'sed' inserts a - # line-number line after each line using $LINENO; the second 'sed' - # does the real work. The second script uses 'N' to pair each - # line-number line with the line containing $LINENO, and appends - # trailing '-' during substitution so that $LINENO is not a special - # case at line end. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the - # scripts with optimization help from Paolo Bonzini. Blame Lee - # E. McMahon (1931-1989) for sed's syntax. :-) - sed -n ' - p - /[$]LINENO/= - ' <$as_myself | - sed ' - s/[$]LINENO.*/&-/ - t lineno - b - :lineno - N - :loop - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ - t loop - s/-\n.*// - ' >$as_me.lineno && - chmod +x "$as_me.lineno" || - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 - { (exit 1); exit 1; }; } - - # Don't try to exec as it changes $[0], causing all sort of problems - # (the dirname of $[0] is not the place where we might find the - # original and so on. Autoconf is especially sensitive to this). - . "./$as_me.lineno" - # Exit status is that of the last command. - exit -} - - -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then - as_dirname=dirname -else - as_dirname=false -fi - -ECHO_C= ECHO_N= ECHO_T= -case `echo -n x` in --n*) - case `echo 'x\c'` in - *c*) ECHO_T=' ';; # ECHO_T is single tab character. - *) ECHO_C='\c';; - esac;; -*) - ECHO_N='-n';; -esac - -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -rm -f conf$$ conf$$.exe conf$$.file -if test -d conf$$.dir; then - rm -f conf$$.dir/conf$$.file -else - rm -f conf$$.dir - mkdir conf$$.dir -fi -echo >conf$$.file -if ln -s conf$$.file conf$$ 2>/dev/null; then - as_ln_s='ln -s' - # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -p'. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || - as_ln_s='cp -p' -elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln -else - as_ln_s='cp -p' -fi -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file -rmdir conf$$.dir 2>/dev/null - -if mkdir -p . 2>/dev/null; then - as_mkdir_p=: -else - test -d ./-p && rmdir ./-p - as_mkdir_p=false -fi - -if test -x / >/dev/null 2>&1; then - as_test_x='test -x' -else - if ls -dL / >/dev/null 2>&1; then - as_ls_L_option=L - else - as_ls_L_option= - fi - as_test_x=' - eval sh -c '\'' - if test -d "$1"; then - test -d "$1/."; - else - case $1 in - -*)set "./$1";; - esac; - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in - ???[sx]*):;;*)false;;esac;fi - '\'' sh - ' -fi -as_executable_p=$as_test_x - -# Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" - -# Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - - - - -# Check that we are running under the correct shell. -SHELL=${CONFIG_SHELL-/bin/sh} - -case X$ECHO in -X*--fallback-echo) - # Remove one level of quotation (which was required for Make). - ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` - ;; -esac - -echo=${ECHO-echo} -if test "X$1" = X--no-reexec; then - # Discard the --no-reexec flag, and continue. - shift -elif test "X$1" = X--fallback-echo; then - # Avoid inline document here, it may be left over - : -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then - # Yippee, $echo works! - : -else - # Restart under the correct shell. - exec $SHELL "$0" --no-reexec ${1+"$@"} -fi - -if test "X$1" = X--fallback-echo; then - # used as fallback echo - shift - cat </dev/null 2>&1 && unset CDPATH - -if test -z "$ECHO"; then -if test "X${echo_test_string+set}" != Xset; then -# find a string as large as possible, as long as the shell can cope with it - for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... - if (echo_test_string=`eval $cmd`) 2>/dev/null && - echo_test_string=`eval $cmd` && - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null - then - break - fi - done -fi - -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - : -else - # The Solaris, AIX, and Digital Unix default echo programs unquote - # backslashes. This makes it impossible to quote backslashes using - # echo "$something" | sed 's/\\/\\\\/g' - # - # So, first we look for a working echo in the user's PATH. - - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for dir in $PATH /usr/ucb; do - IFS="$lt_save_ifs" - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - echo="$dir/echo" - break - fi - done - IFS="$lt_save_ifs" - - if test "X$echo" = Xecho; then - # We didn't find a better echo, so look for alternatives. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - # This shell has a builtin print -r that does the trick. - echo='print -r' - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && - test "X$CONFIG_SHELL" != X/bin/ksh; then - # If we have ksh, try running configure again with it. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} - export ORIGINAL_CONFIG_SHELL - CONFIG_SHELL=/bin/ksh - export CONFIG_SHELL - exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} - else - # Try using printf. - echo='printf %s\n' - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - # Cool, printf works - : - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && - test "X$echo_testing_string" = 'X\t' && - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL - export CONFIG_SHELL - SHELL="$CONFIG_SHELL" - export SHELL - echo="$CONFIG_SHELL $0 --fallback-echo" - elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && - test "X$echo_testing_string" = 'X\t' && - echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - echo="$CONFIG_SHELL $0 --fallback-echo" - else - # maybe with a smaller string... - prev=: - - for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null - then - break - fi - prev="$cmd" - done - - if test "$prev" != 'sed 50q "$0"'; then - echo_test_string=`eval $prev` - export echo_test_string - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} - else - # Oops. We lost completely, so just stick with echo. - echo=echo - fi - fi - fi - fi -fi -fi - -# Copy echo and quote the copy suitably for passing to libtool from -# the Makefile, instead of quoting the original, which is used later. -ECHO=$echo -if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then - ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" -fi - - - - -tagnames=${tagnames+${tagnames},}CXX - -tagnames=${tagnames+${tagnames},}F77 - -exec 7<&0 &1 - -# Name of the host. -# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, -# so uname gets run too. -ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` - -# -# Initializations. -# -ac_default_prefix=/usr/local -ac_clean_files= -ac_config_libobj_dir=. -LIBOBJS= -cross_compiling=no -subdirs= -MFLAGS= -MAKEFLAGS= -SHELL=${CONFIG_SHELL-/bin/sh} - -# Identity of this package. -PACKAGE_NAME='ecasound' -PACKAGE_TARNAME='ecasound' -PACKAGE_VERSION='2.7.2' -PACKAGE_STRING='ecasound 2.7.2' -PACKAGE_BUGREPORT='' - -ac_unique_file="libecasound/audiofx.h" -# Factoring default headers for most tests. -ac_includes_default="\ -#include -#ifdef HAVE_SYS_TYPES_H -# include -#endif -#ifdef HAVE_SYS_STAT_H -# include -#endif -#ifdef STDC_HEADERS -# include -# include -#else -# ifdef HAVE_STDLIB_H -# include -# endif -#endif -#ifdef HAVE_STRING_H -# if !defined STDC_HEADERS && defined HAVE_MEMORY_H -# include -# endif -# include -#endif -#ifdef HAVE_STRINGS_H -# include -#endif -#ifdef HAVE_INTTYPES_H -# include -#endif -#ifdef HAVE_STDINT_H -# include -#endif -#ifdef HAVE_UNISTD_H -# include -#endif" - -ac_subst_vars='SHELL -PATH_SEPARATOR -PACKAGE_NAME -PACKAGE_TARNAME -PACKAGE_VERSION -PACKAGE_STRING -PACKAGE_BUGREPORT -exec_prefix -prefix -program_transform_name -bindir -sbindir -libexecdir -datarootdir -datadir -sysconfdir -sharedstatedir -localstatedir -includedir -oldincludedir -docdir -infodir -htmldir -dvidir -pdfdir -psdir -libdir -localedir -mandir -DEFS -ECHO_C -ECHO_N -ECHO_T -LIBS -build_alias -host_alias -target_alias -INSTALL_PROGRAM -INSTALL_SCRIPT -INSTALL_DATA -CYGPATH_W -PACKAGE -VERSION -ACLOCAL -AUTOCONF -AUTOMAKE -AUTOHEADER -MAKEINFO -install_sh -STRIP -INSTALL_STRIP_PROGRAM -mkdir_p -AWK -SET_MAKE -am__leading_dot -AMTAR -am__tar -am__untar -LIBECASOUND_VERSION -LIBECASOUND_VERSION_AGE -LIBECASOUNDC_VERSION -LIBECASOUNDC_VERSION_AGE -LIBKVUTILS_VERSION -LIBKVUTILS_VERSION_AGE -CC -CFLAGS -LDFLAGS -CPPFLAGS -ac_ct_CC -EXEEXT -OBJEXT -DEPDIR -am__include -am__quote -AMDEP_TRUE -AMDEP_FALSE -AMDEPBACKSLASH -CCDEPMODE -am__fastdepCC_TRUE -am__fastdepCC_FALSE -CXX -CXXFLAGS -ac_ct_CXX -CXXDEPMODE -am__fastdepCXX_TRUE -am__fastdepCXX_FALSE -CPP -build -build_cpu -build_vendor -build_os -host -host_cpu -host_vendor -host_os -AM_CFLAGS -AM_CXXFLAGS -AM_CPPFLAGS -AM_LDFLAGS -ECA_AM_DEBUG_MODE_TRUE -ECA_AM_DEBUG_MODE_FALSE -ECA_AM_FEELING_EXPERIMENTAL_TRUE -ECA_AM_FEELING_EXPERIMENTAL_FALSE -ECA_S_PREFIX -ECA_AM_DISABLE_EFFECTS_TRUE -ECA_AM_DISABLE_EFFECTS_FALSE -CXXCPP -GREP -EGREP -ECA_AM_COMPILE_OSS_TRUE -ECA_AM_COMPILE_OSS_FALSE -ARTSC_CONFIG -ECA_AM_COMPILE_ARTS_TRUE -ECA_AM_COMPILE_ARTS_FALSE -ECA_AM_COMPILE_SAMPLERATE_TRUE -ECA_AM_COMPILE_SAMPLERATE_FALSE -PYTHONPATH -ECA_S_PYTHON_INCLUDES -ECA_S_PYTHON_MODULES -ECA_S_PYTHON_DLMODULES -ECA_AM_PYECASOUND_CEXT_TRUE -ECA_AM_PYECASOUND_CEXT_FALSE -ECA_AM_PYECASOUND_INSTALL_TRUE -ECA_AM_PYECASOUND_INSTALL_FALSE -RUBYPATH -ECA_S_RUBY_SITEDIR -ECA_AM_RUBYECASOUND_INSTALL_TRUE -ECA_AM_RUBYECASOUND_INSTALL_FALSE -SED -LN_S -ECHO -AR -RANLIB -DSYMUTIL -NMEDIT -F77 -FFLAGS -ac_ct_F77 -LIBTOOL -ECA_AM_USE_NCURSES_TRUE -ECA_AM_USE_NCURSES_FALSE -ECA_AM_USE_TERMCAP_TRUE -ECA_AM_USE_TERMCAP_FALSE -ECA_AM_COMPILE_AUDIOFILE_TRUE -ECA_AM_COMPILE_AUDIOFILE_FALSE -ECA_AM_COMPILE_SNDFILE_TRUE -ECA_AM_COMPILE_SNDFILE_FALSE -ECA_AM_COMPILE_ALSA_TRUE -ECA_AM_COMPILE_ALSA_FALSE -ECA_AM_COMPILE_JACK_TRUE -ECA_AM_COMPILE_JACK_FALSE -ECA_S_JACK_LIBS -ECA_S_JACK_INCLUDES -ECA_AM_KVUTILS_INSTALLED_TRUE -ECA_AM_KVUTILS_INSTALLED_FALSE -ECA_AM_SYSTEM_READLINE_TRUE -ECA_AM_SYSTEM_READLINE_FALSE -ECA_S_READLINE_INCLUDES -ECA_S_READLINE_LIBS -PKG_CONFIG -LIBOIL_CFLAGS -LIBOIL_LIBS -LIBLO_CFLAGS -LIBLO_LIBS -ECA_S_EXTRA_CPPFLAGS -ECA_S_EXTRA_LIBS -ECA_AM_ALL_STATIC_TRUE -ECA_AM_ALL_STATIC_FALSE -LIBOBJS -LTLIBOBJS' -ac_subst_files='' - ac_precious_vars='build_alias -host_alias -target_alias -CC -CFLAGS -LDFLAGS -LIBS -CPPFLAGS -CXX -CXXFLAGS -CCC -CPP -CXXCPP -F77 -FFLAGS -PKG_CONFIG -LIBOIL_CFLAGS -LIBOIL_LIBS -LIBLO_CFLAGS -LIBLO_LIBS' - - -# Initialize some variables set by options. -ac_init_help= -ac_init_version=false -# The variables have the same names as the options, with -# dashes changed to underlines. -cache_file=/dev/null -exec_prefix=NONE -no_create= -no_recursion= -prefix=NONE -program_prefix=NONE -program_suffix=NONE -program_transform_name=s,x,x, -silent= -site= -srcdir= -verbose= -x_includes=NONE -x_libraries=NONE - -# Installation directory options. -# These are left unexpanded so users can "make install exec_prefix=/foo" -# and all the variables that are supposed to be based on exec_prefix -# by default will actually change. -# Use braces instead of parens because sh, perl, etc. also accept them. -# (The list follows the same order as the GNU Coding Standards.) -bindir='${exec_prefix}/bin' -sbindir='${exec_prefix}/sbin' -libexecdir='${exec_prefix}/libexec' -datarootdir='${prefix}/share' -datadir='${datarootdir}' -sysconfdir='${prefix}/etc' -sharedstatedir='${prefix}/com' -localstatedir='${prefix}/var' -includedir='${prefix}/include' -oldincludedir='/usr/include' -docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' -infodir='${datarootdir}/info' -htmldir='${docdir}' -dvidir='${docdir}' -pdfdir='${docdir}' -psdir='${docdir}' -libdir='${exec_prefix}/lib' -localedir='${datarootdir}/locale' -mandir='${datarootdir}/man' - -ac_prev= -ac_dashdash= -for ac_option -do - # If the previous option needs an argument, assign it. - if test -n "$ac_prev"; then - eval $ac_prev=\$ac_option - ac_prev= - continue - fi - - case $ac_option in - *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; - *) ac_optarg=yes ;; - esac - - # Accept the important Cygnus configure options, so we can diagnose typos. - - case $ac_dashdash$ac_option in - --) - ac_dashdash=yes ;; - - -bindir | --bindir | --bindi | --bind | --bin | --bi) - ac_prev=bindir ;; - -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) - bindir=$ac_optarg ;; - - -build | --build | --buil | --bui | --bu) - ac_prev=build_alias ;; - -build=* | --build=* | --buil=* | --bui=* | --bu=*) - build_alias=$ac_optarg ;; - - -cache-file | --cache-file | --cache-fil | --cache-fi \ - | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) - ac_prev=cache_file ;; - -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ - | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) - cache_file=$ac_optarg ;; - - --config-cache | -C) - cache_file=config.cache ;; - - -datadir | --datadir | --datadi | --datad) - ac_prev=datadir ;; - -datadir=* | --datadir=* | --datadi=* | --datad=*) - datadir=$ac_optarg ;; - - -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ - | --dataroo | --dataro | --datar) - ac_prev=datarootdir ;; - -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ - | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) - datarootdir=$ac_optarg ;; - - -disable-* | --disable-*) - ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid feature name: $ac_feature" >&2 - { (exit 1); exit 1; }; } - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` - eval enable_$ac_feature=no ;; - - -docdir | --docdir | --docdi | --doc | --do) - ac_prev=docdir ;; - -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) - docdir=$ac_optarg ;; - - -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) - ac_prev=dvidir ;; - -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) - dvidir=$ac_optarg ;; - - -enable-* | --enable-*) - ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid feature name: $ac_feature" >&2 - { (exit 1); exit 1; }; } - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` - eval enable_$ac_feature=\$ac_optarg ;; - - -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ - | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ - | --exec | --exe | --ex) - ac_prev=exec_prefix ;; - -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ - | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ - | --exec=* | --exe=* | --ex=*) - exec_prefix=$ac_optarg ;; - - -gas | --gas | --ga | --g) - # Obsolete; use --with-gas. - with_gas=yes ;; - - -help | --help | --hel | --he | -h) - ac_init_help=long ;; - -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) - ac_init_help=recursive ;; - -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) - ac_init_help=short ;; - - -host | --host | --hos | --ho) - ac_prev=host_alias ;; - -host=* | --host=* | --hos=* | --ho=*) - host_alias=$ac_optarg ;; - - -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) - ac_prev=htmldir ;; - -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ - | --ht=*) - htmldir=$ac_optarg ;; - - -includedir | --includedir | --includedi | --included | --include \ - | --includ | --inclu | --incl | --inc) - ac_prev=includedir ;; - -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ - | --includ=* | --inclu=* | --incl=* | --inc=*) - includedir=$ac_optarg ;; - - -infodir | --infodir | --infodi | --infod | --info | --inf) - ac_prev=infodir ;; - -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) - infodir=$ac_optarg ;; - - -libdir | --libdir | --libdi | --libd) - ac_prev=libdir ;; - -libdir=* | --libdir=* | --libdi=* | --libd=*) - libdir=$ac_optarg ;; - - -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ - | --libexe | --libex | --libe) - ac_prev=libexecdir ;; - -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ - | --libexe=* | --libex=* | --libe=*) - libexecdir=$ac_optarg ;; - - -localedir | --localedir | --localedi | --localed | --locale) - ac_prev=localedir ;; - -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) - localedir=$ac_optarg ;; - - -localstatedir | --localstatedir | --localstatedi | --localstated \ - | --localstate | --localstat | --localsta | --localst | --locals) - ac_prev=localstatedir ;; - -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ - | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) - localstatedir=$ac_optarg ;; - - -mandir | --mandir | --mandi | --mand | --man | --ma | --m) - ac_prev=mandir ;; - -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) - mandir=$ac_optarg ;; - - -nfp | --nfp | --nf) - # Obsolete; use --without-fp. - with_fp=no ;; - - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c | -n) - no_create=yes ;; - - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) - no_recursion=yes ;; - - -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ - | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ - | --oldin | --oldi | --old | --ol | --o) - ac_prev=oldincludedir ;; - -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ - | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ - | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) - oldincludedir=$ac_optarg ;; - - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) - ac_prev=prefix ;; - -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - prefix=$ac_optarg ;; - - -program-prefix | --program-prefix | --program-prefi | --program-pref \ - | --program-pre | --program-pr | --program-p) - ac_prev=program_prefix ;; - -program-prefix=* | --program-prefix=* | --program-prefi=* \ - | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) - program_prefix=$ac_optarg ;; - - -program-suffix | --program-suffix | --program-suffi | --program-suff \ - | --program-suf | --program-su | --program-s) - ac_prev=program_suffix ;; - -program-suffix=* | --program-suffix=* | --program-suffi=* \ - | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) - program_suffix=$ac_optarg ;; - - -program-transform-name | --program-transform-name \ - | --program-transform-nam | --program-transform-na \ - | --program-transform-n | --program-transform- \ - | --program-transform | --program-transfor \ - | --program-transfo | --program-transf \ - | --program-trans | --program-tran \ - | --progr-tra | --program-tr | --program-t) - ac_prev=program_transform_name ;; - -program-transform-name=* | --program-transform-name=* \ - | --program-transform-nam=* | --program-transform-na=* \ - | --program-transform-n=* | --program-transform-=* \ - | --program-transform=* | --program-transfor=* \ - | --program-transfo=* | --program-transf=* \ - | --program-trans=* | --program-tran=* \ - | --progr-tra=* | --program-tr=* | --program-t=*) - program_transform_name=$ac_optarg ;; - - -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) - ac_prev=pdfdir ;; - -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) - pdfdir=$ac_optarg ;; - - -psdir | --psdir | --psdi | --psd | --ps) - ac_prev=psdir ;; - -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) - psdir=$ac_optarg ;; - - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - silent=yes ;; - - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) - ac_prev=sbindir ;; - -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ - | --sbi=* | --sb=*) - sbindir=$ac_optarg ;; - - -sharedstatedir | --sharedstatedir | --sharedstatedi \ - | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ - | --sharedst | --shareds | --shared | --share | --shar \ - | --sha | --sh) - ac_prev=sharedstatedir ;; - -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ - | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ - | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ - | --sha=* | --sh=*) - sharedstatedir=$ac_optarg ;; - - -site | --site | --sit) - ac_prev=site ;; - -site=* | --site=* | --sit=*) - site=$ac_optarg ;; - - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) - ac_prev=srcdir ;; - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - srcdir=$ac_optarg ;; - - -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ - | --syscon | --sysco | --sysc | --sys | --sy) - ac_prev=sysconfdir ;; - -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ - | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) - sysconfdir=$ac_optarg ;; - - -target | --target | --targe | --targ | --tar | --ta | --t) - ac_prev=target_alias ;; - -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) - target_alias=$ac_optarg ;; - - -v | -verbose | --verbose | --verbos | --verbo | --verb) - verbose=yes ;; - - -version | --version | --versio | --versi | --vers | -V) - ac_init_version=: ;; - - -with-* | --with-*) - ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid package name: $ac_package" >&2 - { (exit 1); exit 1; }; } - ac_package=`echo $ac_package | sed 's/[-.]/_/g'` - eval with_$ac_package=\$ac_optarg ;; - - -without-* | --without-*) - ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid package name: $ac_package" >&2 - { (exit 1); exit 1; }; } - ac_package=`echo $ac_package | sed 's/[-.]/_/g'` - eval with_$ac_package=no ;; - - --x) - # Obsolete; use --with-x. - with_x=yes ;; - - -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ - | --x-incl | --x-inc | --x-in | --x-i) - ac_prev=x_includes ;; - -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ - | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) - x_includes=$ac_optarg ;; - - -x-libraries | --x-libraries | --x-librarie | --x-librari \ - | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) - ac_prev=x_libraries ;; - -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ - | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) - x_libraries=$ac_optarg ;; - - -*) { echo "$as_me: error: unrecognized option: $ac_option -Try \`$0 --help' for more information." >&2 - { (exit 1); exit 1; }; } - ;; - - *=*) - ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` - # Reject names that are not valid shell variable names. - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 - { (exit 1); exit 1; }; } - eval $ac_envvar=\$ac_optarg - export $ac_envvar ;; - - *) - # FIXME: should be removed in autoconf 3.0. - echo "$as_me: WARNING: you should use --build, --host, --target" >&2 - expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && - echo "$as_me: WARNING: invalid host type: $ac_option" >&2 - : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} - ;; - - esac -done - -if test -n "$ac_prev"; then - ac_option=--`echo $ac_prev | sed 's/_/-/g'` - { echo "$as_me: error: missing argument to $ac_option" >&2 - { (exit 1); exit 1; }; } -fi - -# Be sure to have absolute directory names. -for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ - datadir sysconfdir sharedstatedir localstatedir includedir \ - oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ - libdir localedir mandir -do - eval ac_val=\$$ac_var - case $ac_val in - [\\/$]* | ?:[\\/]* ) continue;; - NONE | '' ) case $ac_var in *prefix ) continue;; esac;; - esac - { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 - { (exit 1); exit 1; }; } -done - -# There might be people who depend on the old broken behavior: `$host' -# used to hold the argument of --host etc. -# FIXME: To remove some day. -build=$build_alias -host=$host_alias -target=$target_alias - -# FIXME: To remove some day. -if test "x$host_alias" != x; then - if test "x$build_alias" = x; then - cross_compiling=maybe - echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. - If a cross compiler is detected then cross compile mode will be used." >&2 - elif test "x$build_alias" != "x$host_alias"; then - cross_compiling=yes - fi -fi - -ac_tool_prefix= -test -n "$host_alias" && ac_tool_prefix=$host_alias- - -test "$silent" = yes && exec 6>/dev/null - - -ac_pwd=`pwd` && test -n "$ac_pwd" && -ac_ls_di=`ls -di .` && -ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || - { echo "$as_me: error: Working directory cannot be determined" >&2 - { (exit 1); exit 1; }; } -test "X$ac_ls_di" = "X$ac_pwd_ls_di" || - { echo "$as_me: error: pwd does not report name of working directory" >&2 - { (exit 1); exit 1; }; } - - -# Find the source files, if location was not specified. -if test -z "$srcdir"; then - ac_srcdir_defaulted=yes - # Try the directory containing this script, then the parent directory. - ac_confdir=`$as_dirname -- "$0" || -$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$0" : 'X\(//\)[^/]' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -echo X"$0" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - srcdir=$ac_confdir - if test ! -r "$srcdir/$ac_unique_file"; then - srcdir=.. - fi -else - ac_srcdir_defaulted=no -fi -if test ! -r "$srcdir/$ac_unique_file"; then - test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 - { (exit 1); exit 1; }; } -fi -ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" -ac_abs_confdir=`( - cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 - { (exit 1); exit 1; }; } - pwd)` -# When building in place, set srcdir=. -if test "$ac_abs_confdir" = "$ac_pwd"; then - srcdir=. -fi -# Remove unnecessary trailing slashes from srcdir. -# Double slashes in file names in object file debugging info -# mess up M-x gdb in Emacs. -case $srcdir in -*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; -esac -for ac_var in $ac_precious_vars; do - eval ac_env_${ac_var}_set=\${${ac_var}+set} - eval ac_env_${ac_var}_value=\$${ac_var} - eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} - eval ac_cv_env_${ac_var}_value=\$${ac_var} -done - -# -# Report the --help message. -# -if test "$ac_init_help" = "long"; then - # Omit some internal or obsolete options to make the list less imposing. - # This message is too long to be a string in the A/UX 3.1 sh. - cat <<_ACEOF -\`configure' configures ecasound 2.7.2 to adapt to many kinds of systems. - -Usage: $0 [OPTION]... [VAR=VALUE]... - -To assign environment variables (e.g., CC, CFLAGS...), specify them as -VAR=VALUE. See below for descriptions of some of the useful variables. - -Defaults for the options are specified in brackets. - -Configuration: - -h, --help display this help and exit - --help=short display options specific to this package - --help=recursive display the short help of all the included packages - -V, --version display version information and exit - -q, --quiet, --silent do not print \`checking...' messages - --cache-file=FILE cache test results in FILE [disabled] - -C, --config-cache alias for \`--cache-file=config.cache' - -n, --no-create do not create output files - --srcdir=DIR find the sources in DIR [configure dir or \`..'] - -Installation directories: - --prefix=PREFIX install architecture-independent files in PREFIX - [$ac_default_prefix] - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX - [PREFIX] - -By default, \`make install' will install all the files in -\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify -an installation prefix other than \`$ac_default_prefix' using \`--prefix', -for instance \`--prefix=\$HOME'. - -For better control, use the options below. - -Fine tuning of the installation directories: - --bindir=DIR user executables [EPREFIX/bin] - --sbindir=DIR system admin executables [EPREFIX/sbin] - --libexecdir=DIR program executables [EPREFIX/libexec] - --sysconfdir=DIR read-only single-machine data [PREFIX/etc] - --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] - --localstatedir=DIR modifiable single-machine data [PREFIX/var] - --libdir=DIR object code libraries [EPREFIX/lib] - --includedir=DIR C header files [PREFIX/include] - --oldincludedir=DIR C header files for non-gcc [/usr/include] - --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] - --datadir=DIR read-only architecture-independent data [DATAROOTDIR] - --infodir=DIR info documentation [DATAROOTDIR/info] - --localedir=DIR locale-dependent data [DATAROOTDIR/locale] - --mandir=DIR man documentation [DATAROOTDIR/man] - --docdir=DIR documentation root [DATAROOTDIR/doc/ecasound] - --htmldir=DIR html documentation [DOCDIR] - --dvidir=DIR dvi documentation [DOCDIR] - --pdfdir=DIR pdf documentation [DOCDIR] - --psdir=DIR ps documentation [DOCDIR] -_ACEOF - - cat <<\_ACEOF - -Program names: - --program-prefix=PREFIX prepend PREFIX to installed program names - --program-suffix=SUFFIX append SUFFIX to installed program names - --program-transform-name=PROGRAM run sed PROGRAM on installed program names - -System types: - --build=BUILD configure for building on BUILD [guessed] - --host=HOST cross-compile to build programs to run on HOST [BUILD] -_ACEOF -fi - -if test -n "$ac_init_help"; then - case $ac_init_help in - short | recursive ) echo "Configuration of ecasound 2.7.2:";; - esac - cat <<\_ACEOF - -Optional Features: - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) - --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --disable-dependency-tracking speeds up one-time build - --enable-dependency-tracking do not reject slow dependency extractors - --enable-debug Enable debugging (default = no) - --enable-experimental Enable experimental code (default = no) - --disable-dbc Don't check design-by-contract assertions (default = check) - --disable-effects Disable effects (default = no) - --disable-largefile omit support for large files - --disable-oss Disable OSS (default = no) - --disable-osstrigger Disable the use of OSS trigger functions (default = no) - --disable-arts Disable aRts support (default = no) - --disable-libsamplerate Disable libsamplerate support (default = no) - --enable-pyecasound Enable compilation of pyecasound (default = python) - --enable-python-force-site-packages force install Python modules into site-packages even when it doesn't exist default=no - --enable-rubyecasound Enable rubyecasound (default = yes) - --enable-shared[=PKGS] build shared libraries [default=yes] - --enable-static[=PKGS] build static libraries [default=yes] - --enable-fast-install[=PKGS] - optimize for fast installation [default=yes] - --disable-libtool-lock avoid locking (might break parallel builds) - --disable-ncurses Disable ncurses (default = no) - --disable-audiofile Disable libaudiofile (default = no) - --disable-sndfile Disable libsndfile (default = no) - --disable-alsa Disable ALSA (default = no) - --enable-jack Enable JACK support (default=yes, if found) - --enable-sys-readline Compile with system readline (default=yes) - --enable-liboil Use liboil if available (default=no) - --enable-liblo Use liblo if available (default=yes) - --enable-all-static Build only static binaries (default = no) - -Optional Packages: - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --with-extra-cppflags=FLAGS pass extra flags to cpp - --with-extra-libs=FLAGS pass extra flags to linker - --with-largefile deprecated option, now used by default - --with-libsamplerate=DIR Compile against libsamplerate installed in DIR - --with-python-includes=DIR Python include files are in DIR - --with-python-modules=DIR install Python modules in DIR - --with-gnu-ld assume the C compiler uses GNU ld [default=no] - --with-pic try to use only PIC/non-PIC objects [default=use - both] - --with-tags[=TAGS] include additional configurations [automatic] - --with-jack=DIR Compile against JACK installed in DIR - -Some influential environment variables: - CC C compiler command - CFLAGS C compiler flags - LDFLAGS linker flags, e.g. -L if you have libraries in a - nonstandard directory - LIBS libraries to pass to the linker, e.g. -l - CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I if - you have headers in a nonstandard directory - CXX C++ compiler command - CXXFLAGS C++ compiler flags - CPP C preprocessor - CXXCPP C++ preprocessor - F77 Fortran 77 compiler command - FFLAGS Fortran 77 compiler flags - PKG_CONFIG path to pkg-config utility - LIBOIL_CFLAGS - C compiler flags for LIBOIL, overriding pkg-config - LIBOIL_LIBS linker flags for LIBOIL, overriding pkg-config - LIBLO_CFLAGS - C compiler flags for LIBLO, overriding pkg-config - LIBLO_LIBS linker flags for LIBLO, overriding pkg-config - -Use these variables to override the choices made by `configure' or to help -it to find libraries and programs with nonstandard names/locations. - -_ACEOF -ac_status=$? -fi - -if test "$ac_init_help" = "recursive"; then - # If there are subdirs, report their specific --help. - for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue - test -d "$ac_dir" || continue - ac_builddir=. - -case "$ac_dir" in -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; -*) - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` - # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` - case $ac_top_builddir_sub in - "") ac_top_builddir_sub=. ac_top_build_prefix= ;; - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; - esac ;; -esac -ac_abs_top_builddir=$ac_pwd -ac_abs_builddir=$ac_pwd$ac_dir_suffix -# for backward compatibility: -ac_top_builddir=$ac_top_build_prefix - -case $srcdir in - .) # We are building in place. - ac_srcdir=. - ac_top_srcdir=$ac_top_builddir_sub - ac_abs_top_srcdir=$ac_pwd ;; - [\\/]* | ?:[\\/]* ) # Absolute name. - ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir - ac_abs_top_srcdir=$srcdir ;; - *) # Relative name. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_build_prefix$srcdir - ac_abs_top_srcdir=$ac_pwd/$srcdir ;; -esac -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix - - cd "$ac_dir" || { ac_status=$?; continue; } - # Check for guested configure. - if test -f "$ac_srcdir/configure.gnu"; then - echo && - $SHELL "$ac_srcdir/configure.gnu" --help=recursive - elif test -f "$ac_srcdir/configure"; then - echo && - $SHELL "$ac_srcdir/configure" --help=recursive - else - echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 - fi || ac_status=$? - cd "$ac_pwd" || { ac_status=$?; break; } - done -fi - -test -n "$ac_init_help" && exit $ac_status -if $ac_init_version; then - cat <<\_ACEOF -ecasound configure 2.7.2 -generated by GNU Autoconf 2.61 - -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, -2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. -This configure script is free software; the Free Software Foundation -gives unlimited permission to copy, distribute and modify it. -_ACEOF - exit -fi -cat >config.log <<_ACEOF -This file contains any messages produced by compilers while -running configure, to aid debugging if configure makes a mistake. - -It was created by ecasound $as_me 2.7.2, which was -generated by GNU Autoconf 2.61. Invocation command line was - - $ $0 $@ - -_ACEOF -exec 5>>config.log -{ -cat <<_ASUNAME -## --------- ## -## Platform. ## -## --------- ## - -hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` -uname -m = `(uname -m) 2>/dev/null || echo unknown` -uname -r = `(uname -r) 2>/dev/null || echo unknown` -uname -s = `(uname -s) 2>/dev/null || echo unknown` -uname -v = `(uname -v) 2>/dev/null || echo unknown` - -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` -/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` - -/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` -/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` -/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` -/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` - -_ASUNAME - -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - echo "PATH: $as_dir" -done -IFS=$as_save_IFS - -} >&5 - -cat >&5 <<_ACEOF - - -## ----------- ## -## Core tests. ## -## ----------- ## - -_ACEOF - - -# Keep a trace of the command line. -# Strip out --no-create and --no-recursion so they do not pile up. -# Strip out --silent because we don't want to record it for future runs. -# Also quote any args containing shell meta-characters. -# Make two passes to allow for proper duplicate-argument suppression. -ac_configure_args= -ac_configure_args0= -ac_configure_args1= -ac_must_keep_next=false -for ac_pass in 1 2 -do - for ac_arg - do - case $ac_arg in - -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - continue ;; - *\'*) - ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; - esac - case $ac_pass in - 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; - 2) - ac_configure_args1="$ac_configure_args1 '$ac_arg'" - if test $ac_must_keep_next = true; then - ac_must_keep_next=false # Got value, back to normal. - else - case $ac_arg in - *=* | --config-cache | -C | -disable-* | --disable-* \ - | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ - | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ - | -with-* | --with-* | -without-* | --without-* | --x) - case "$ac_configure_args0 " in - "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; - esac - ;; - -* ) ac_must_keep_next=true ;; - esac - fi - ac_configure_args="$ac_configure_args '$ac_arg'" - ;; - esac - done -done -$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } -$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } - -# When interrupted or exit'd, cleanup temporary files, and complete -# config.log. We remove comments because anyway the quotes in there -# would cause problems or look ugly. -# WARNING: Use '\'' to represent an apostrophe within the trap. -# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. -trap 'exit_status=$? - # Save into config.log some information that might help in debugging. - { - echo - - cat <<\_ASBOX -## ---------------- ## -## Cache variables. ## -## ---------------- ## -_ASBOX - echo - # The following way of writing the cache mishandles newlines in values, -( - for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do - eval ac_val=\$$ac_var - case $ac_val in #( - *${as_nl}*) - case $ac_var in #( - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; - esac - case $ac_var in #( - _ | IFS | as_nl) ;; #( - *) $as_unset $ac_var ;; - esac ;; - esac - done - (set) 2>&1 | - case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( - *${as_nl}ac_space=\ *) - sed -n \ - "s/'\''/'\''\\\\'\'''\''/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" - ;; #( - *) - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" - ;; - esac | - sort -) - echo - - cat <<\_ASBOX -## ----------------- ## -## Output variables. ## -## ----------------- ## -_ASBOX - echo - for ac_var in $ac_subst_vars - do - eval ac_val=\$$ac_var - case $ac_val in - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; - esac - echo "$ac_var='\''$ac_val'\''" - done | sort - echo - - if test -n "$ac_subst_files"; then - cat <<\_ASBOX -## ------------------- ## -## File substitutions. ## -## ------------------- ## -_ASBOX - echo - for ac_var in $ac_subst_files - do - eval ac_val=\$$ac_var - case $ac_val in - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; - esac - echo "$ac_var='\''$ac_val'\''" - done | sort - echo - fi - - if test -s confdefs.h; then - cat <<\_ASBOX -## ----------- ## -## confdefs.h. ## -## ----------- ## -_ASBOX - echo - cat confdefs.h - echo - fi - test "$ac_signal" != 0 && - echo "$as_me: caught signal $ac_signal" - echo "$as_me: exit $exit_status" - } >&5 - rm -f core *.core core.conftest.* && - rm -f -r conftest* confdefs* conf$$* $ac_clean_files && - exit $exit_status -' 0 -for ac_signal in 1 2 13 15; do - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal -done -ac_signal=0 - -# confdefs.h avoids OS command line length limits that DEFS can exceed. -rm -f -r conftest* confdefs.h - -# Predefined preprocessor variables. - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_NAME "$PACKAGE_NAME" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_TARNAME "$PACKAGE_TARNAME" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_VERSION "$PACKAGE_VERSION" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_STRING "$PACKAGE_STRING" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" -_ACEOF - - -# Let the site file select an alternate cache file if it wants to. -# Prefer explicitly selected file to automatically selected ones. -if test -n "$CONFIG_SITE"; then - set x "$CONFIG_SITE" -elif test "x$prefix" != xNONE; then - set x "$prefix/share/config.site" "$prefix/etc/config.site" -else - set x "$ac_default_prefix/share/config.site" \ - "$ac_default_prefix/etc/config.site" -fi -shift -for ac_site_file -do - if test -r "$ac_site_file"; then - { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 -echo "$as_me: loading site script $ac_site_file" >&6;} - sed 's/^/| /' "$ac_site_file" >&5 - . "$ac_site_file" - fi -done - -if test -r "$cache_file"; then - # Some versions of bash will fail to source /dev/null (special - # files actually), so we avoid doing that. - if test -f "$cache_file"; then - { echo "$as_me:$LINENO: loading cache $cache_file" >&5 -echo "$as_me: loading cache $cache_file" >&6;} - case $cache_file in - [\\/]* | ?:[\\/]* ) . "$cache_file";; - *) . "./$cache_file";; - esac - fi -else - { echo "$as_me:$LINENO: creating cache $cache_file" >&5 -echo "$as_me: creating cache $cache_file" >&6;} - >$cache_file -fi - -# Check that the precious variables saved in the cache have kept the same -# value. -ac_cache_corrupted=false -for ac_var in $ac_precious_vars; do - eval ac_old_set=\$ac_cv_env_${ac_var}_set - eval ac_new_set=\$ac_env_${ac_var}_set - eval ac_old_val=\$ac_cv_env_${ac_var}_value - eval ac_new_val=\$ac_env_${ac_var}_value - case $ac_old_set,$ac_new_set in - set,) - { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 -echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,set) - { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 -echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,);; - *) - if test "x$ac_old_val" != "x$ac_new_val"; then - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 -echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 -echo "$as_me: former value: $ac_old_val" >&2;} - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 -echo "$as_me: current value: $ac_new_val" >&2;} - ac_cache_corrupted=: - fi;; - esac - # Pass precious variables to config.status. - if test "$ac_new_set" = set; then - case $ac_new_val in - *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; - *) ac_arg=$ac_var=$ac_new_val ;; - esac - case " $ac_configure_args " in - *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. - *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; - esac - fi -done -if $ac_cache_corrupted; then - { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 -echo "$as_me: error: changes in the environment can compromise the build" >&2;} - { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 -echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} - { (exit 1); exit 1; }; } -fi - - - - - - - - - - - - - - - - - - - - - - - - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - - - -am__api_version="1.9" -ac_aux_dir= -for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do - if test -f "$ac_dir/install-sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f "$ac_dir/install.sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - elif test -f "$ac_dir/shtool"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/shtool install -c" - break - fi -done -if test -z "$ac_aux_dir"; then - { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 -echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} - { (exit 1); exit 1; }; } -fi - -# These three variables are undocumented and unsupported, -# and are intended to be withdrawn in a future Autoconf release. -# They can cause serious problems if a builder's source tree is in a directory -# whose full name contains unusual characters. -ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. -ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. -ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. - - -# Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AmigaOS /C/install, which installs bootblocks on floppy discs -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# OS/2's system install, which has a completely different semantic -# ./install, which can be erroneously created by make from ./install.sh. -{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } -if test -z "$INSTALL"; then -if test "${ac_cv_path_install+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - # Account for people who put trailing slashes in PATH elements. -case $as_dir/ in - ./ | .// | /cC/* | \ - /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ - /usr/ucb/* ) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then - if test $ac_prog = install && - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - elif test $ac_prog = install && - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # program-specific install script used by HP pwplus--don't use. - : - else - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" - break 3 - fi - fi - done - done - ;; -esac -done -IFS=$as_save_IFS - - -fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL=$ac_cv_path_install - else - # As a last resort, use the slow shell script. Don't cache a - # value for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - INSTALL=$ac_install_sh - fi -fi -{ echo "$as_me:$LINENO: result: $INSTALL" >&5 -echo "${ECHO_T}$INSTALL" >&6; } - -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' - -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' - -{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 -echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } -# Just in case -sleep 1 -echo timestamp > conftest.file -# Do `set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` - if test "$*" = "X"; then - # -L didn't work. - set X `ls -t $srcdir/configure conftest.file` - fi - rm -f conftest.file - if test "$*" != "X $srcdir/configure conftest.file" \ - && test "$*" != "X conftest.file $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken -alias in your environment" >&5 -echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken -alias in your environment" >&2;} - { (exit 1); exit 1; }; } - fi - - test "$2" = conftest.file - ) -then - # Ok. - : -else - { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! -Check your system clock" >&5 -echo "$as_me: error: newly created file is older than distributed files! -Check your system clock" >&2;} - { (exit 1); exit 1; }; } -fi -{ echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } -test "$program_prefix" != NONE && - program_transform_name="s&^&$program_prefix&;$program_transform_name" -# Use a double $ so make ignores it. -test "$program_suffix" != NONE && - program_transform_name="s&\$&$program_suffix&;$program_transform_name" -# Double any \ or $. echo might interpret backslashes. -# By default was `s,x,x', remove it if useless. -cat <<\_ACEOF >conftest.sed -s/[\\$]/&&/g;s/;s,x,x,$// -_ACEOF -program_transform_name=`echo $program_transform_name | sed -f conftest.sed` -rm -f conftest.sed - -# expand $ac_aux_dir to an absolute path -am_aux_dir=`cd $ac_aux_dir && pwd` - -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" -# Use eval to expand $SHELL -if eval "$MISSING --run true"; then - am_missing_run="$MISSING --run " -else - am_missing_run= - { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 -echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} -fi - -if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then - # We used to keeping the `.' as first argument, in order to - # allow $(mkdir_p) to be used without argument. As in - # $(mkdir_p) $(somedir) - # where $(somedir) is conditionally defined. However this is wrong - # for two reasons: - # 1. if the package is installed by a user who cannot write `.' - # make install will fail, - # 2. the above comment should most certainly read - # $(mkdir_p) $(DESTDIR)$(somedir) - # so it does not work when $(somedir) is undefined and - # $(DESTDIR) is not. - # To support the latter case, we have to write - # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), - # so the `.' trick is pointless. - mkdir_p='mkdir -p --' -else - # On NextStep and OpenStep, the `mkdir' command does not - # recognize any option. It will interpret all options as - # directories to create, and then abort because `.' already - # exists. - for d in ./-p ./--version; - do - test -d $d && rmdir $d - done - # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. - if test -f "$ac_aux_dir/mkinstalldirs"; then - mkdir_p='$(mkinstalldirs)' - else - mkdir_p='$(install_sh) -d' - fi -fi - -for ac_prog in gawk mawk nawk awk -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_AWK+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$AWK"; then - ac_cv_prog_AWK="$AWK" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_AWK="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -AWK=$ac_cv_prog_AWK -if test -n "$AWK"; then - { echo "$as_me:$LINENO: result: $AWK" >&5 -echo "${ECHO_T}$AWK" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$AWK" && break -done - -{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } -set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` -if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.make <<\_ACEOF -SHELL = /bin/sh -all: - @echo '@@@%%%=$(MAKE)=@@@%%%' -_ACEOF -# GNU make sometimes prints "make[1]: Entering...", which would confuse us. -case `${MAKE-make} -f conftest.make 2>/dev/null` in - *@@@%%%=?*=@@@%%%*) - eval ac_cv_prog_make_${ac_make}_set=yes;; - *) - eval ac_cv_prog_make_${ac_make}_set=no;; -esac -rm -f conftest.make -fi -if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - SET_MAKE= -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - SET_MAKE="MAKE=${MAKE-make}" -fi - -rm -rf .tst 2>/dev/null -mkdir .tst 2>/dev/null -if test -d .tst; then - am__leading_dot=. -else - am__leading_dot=_ -fi -rmdir .tst 2>/dev/null - -# test to see if srcdir already configured -if test "`cd $srcdir && pwd`" != "`pwd`" && - test -f $srcdir/config.status; then - { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 -echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} - { (exit 1); exit 1; }; } -fi - -# test whether we have cygpath -if test -z "$CYGPATH_W"; then - if (cygpath --version) >/dev/null 2>/dev/null; then - CYGPATH_W='cygpath -w' - else - CYGPATH_W=echo - fi -fi - - -# Define the identity of the package. - PACKAGE='ecasound' - VERSION='2.7.2' - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE "$PACKAGE" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define VERSION "$VERSION" -_ACEOF - -# Some tools Automake needs. - -ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} - - -AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} - - -AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} - - -AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} - - -MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} - -install_sh=${install_sh-"$am_aux_dir/install-sh"} - -# Installed binaries are usually stripped using `strip' when the user -# run `make install-strip'. However `strip' might not be the right -# tool to use in cross-compilation environments, therefore Automake -# will honor the `STRIP' environment variable to overrule this program. -if test "$cross_compiling" != no; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. -set dummy ${ac_tool_prefix}strip; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$STRIP"; then - ac_cv_prog_STRIP="$STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_STRIP="${ac_tool_prefix}strip" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -STRIP=$ac_cv_prog_STRIP -if test -n "$STRIP"; then - { echo "$as_me:$LINENO: result: $STRIP" >&5 -echo "${ECHO_T}$STRIP" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_STRIP"; then - ac_ct_STRIP=$STRIP - # Extract the first word of "strip", so it can be a program name with args. -set dummy strip; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_STRIP"; then - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_STRIP="strip" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP -if test -n "$ac_ct_STRIP"; then - { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 -echo "${ECHO_T}$ac_ct_STRIP" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_ct_STRIP" = x; then - STRIP=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - STRIP=$ac_ct_STRIP - fi -else - STRIP="$ac_cv_prog_STRIP" -fi - -fi -INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" - -# We need awk for the "check" target. The system "awk" is bad on -# some platforms. -# Always define AMTAR for backward compatibility. - -AMTAR=${AMTAR-"${am_missing_run}tar"} - -am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' - - - - - - -ac_config_headers="$ac_config_headers config.h" - - - -echo "------------------------------------------------------------------" -echo "1. Section: Basic setup" -echo "------------------------------------------------------------------" - - -LIBECASOUND_VERSION=22 -LIBECASOUND_VERSION_AGE=0 -LIBECASOUNDC_VERSION=2 -LIBECASOUNDC_VERSION_AGE=1 -LIBKVUTILS_VERSION=9 -LIBKVUTILS_VERSION_AGE=5 - - - - - - - - - -cat >>confdefs.h <<_ACEOF -#define LIBECASOUND_VERSION ${LIBECASOUND_VERSION} -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define LIBECASOUND_VERSION_AGE ${LIBECASOUND_VERSION_AGE} -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define LIBECASOUNDC_VERSION ${LIBECASOUNDC_VERSION} -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define LIBKVUTILS_VERSION ${LIBKVUTILS_VERSION} -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define LIBKVUTILS_VERSION_AGE ${LIBKVUTILS_VERSION_AGE} -_ACEOF - - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. -set dummy ${ac_tool_prefix}gcc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CC="${ac_tool_prefix}gcc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_CC"; then - ac_ct_CC=$CC - # Extract the first word of "gcc", so it can be a program name with args. -set dummy gcc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_CC="gcc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 -echo "${ECHO_T}$ac_ct_CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_ct_CC" = x; then - CC="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - CC=$ac_ct_CC - fi -else - CC="$ac_cv_prog_CC" -fi - -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. -set dummy ${ac_tool_prefix}cc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CC="${ac_tool_prefix}cc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - fi -fi -if test -z "$CC"; then - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - ac_prog_rejected=no -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then - ac_prog_rejected=yes - continue - fi - ac_cv_prog_CC="cc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -if test $ac_prog_rejected = yes; then - # We found a bogon in the path, so make sure we never use it. - set dummy $ac_cv_prog_CC - shift - if test $# != 0; then - # We chose a different compiler from the bogus one. - # However, it has the same basename, so the bogon will be chosen - # first if we set CC to just the basename; use the full file name. - shift - ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" - fi -fi -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - for ac_prog in cl.exe - do - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CC="$ac_tool_prefix$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$CC" && break - done -fi -if test -z "$CC"; then - ac_ct_CC=$CC - for ac_prog in cl.exe -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_CC="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 -echo "${ECHO_T}$ac_ct_CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$ac_ct_CC" && break -done - - if test "x$ac_ct_CC" = x; then - CC="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - CC=$ac_ct_CC - fi -fi - -fi - - -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH -See \`config.log' for more details." >&5 -echo "$as_me: error: no acceptable C compiler found in \$PATH -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } - -# Provide some information about the compiler. -echo "$as_me:$LINENO: checking for C compiler version" >&5 -ac_compiler=`set X $ac_compile; echo $2` -{ (ac_try="$ac_compiler --version >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler --version >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -v >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler -v >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -V >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler -V >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files a.out a.exe b.out" -# Try to create an executable without -o first, disregard a.out. -# It will help us diagnose broken compilers, and finding out an intuition -# of exeext. -{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } -ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` -# -# List of possible output files, starting from the most likely. -# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) -# only as a last resort. b.out is created by i960 compilers. -ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' -# -# The IRIX 6 linker writes into existing files which may not be -# executable, retaining their permissions. Remove them first so a -# subsequent execution test works. -ac_rmfiles= -for ac_file in $ac_files -do - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; - * ) ac_rmfiles="$ac_rmfiles $ac_file";; - esac -done -rm -f $ac_rmfiles - -if { (ac_try="$ac_link_default" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link_default") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. -# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' -# in a Makefile. We should not override ac_cv_exeext if it was cached, -# so that the user can short-circuit this test for compilers unknown to -# Autoconf. -for ac_file in $ac_files '' -do - test -f "$ac_file" || continue - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) - ;; - [ab].out ) - # We found the default executable, but exeext='' is most - # certainly right. - break;; - *.* ) - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; - then :; else - ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` - fi - # We set ac_cv_exeext here because the later test for it is not - # safe: cross compilers may not add the suffix if given an `-o' - # argument, so we may need to know it at that point already. - # Even if this section looks crufty: it has the advantage of - # actually working. - break;; - * ) - break;; - esac -done -test "$ac_cv_exeext" = no && ac_cv_exeext= - -else - ac_file='' -fi - -{ echo "$as_me:$LINENO: result: $ac_file" >&5 -echo "${ECHO_T}$ac_file" >&6; } -if test -z "$ac_file"; then - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -{ { echo "$as_me:$LINENO: error: C compiler cannot create executables -See \`config.log' for more details." >&5 -echo "$as_me: error: C compiler cannot create executables -See \`config.log' for more details." >&2;} - { (exit 77); exit 77; }; } -fi - -ac_exeext=$ac_cv_exeext - -# Check that the compiler produces executables we can run. If not, either -# the compiler is broken, or we cross compile. -{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 -# If not cross compiling, check that we can run a simple program. -if test "$cross_compiling" != yes; then - if { ac_try='./$ac_file' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - cross_compiling=no - else - if test "$cross_compiling" = maybe; then - cross_compiling=yes - else - { { echo "$as_me:$LINENO: error: cannot run C compiled programs. -If you meant to cross compile, use \`--host'. -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot run C compiled programs. -If you meant to cross compile, use \`--host'. -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } - fi - fi -fi -{ echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - -rm -f a.out a.exe conftest$ac_cv_exeext b.out -ac_clean_files=$ac_clean_files_save -# Check that the compiler produces executables we can run. If not, either -# the compiler is broken, or we cross compile. -{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } -{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 -echo "${ECHO_T}$cross_compiling" >&6; } - -{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - # If both `conftest.exe' and `conftest' are `present' (well, observable) -# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will -# work properly (i.e., refer to `conftest.exe'), while it won't with -# `rm'. -for ac_file in conftest.exe conftest conftest.*; do - test -f "$ac_file" || continue - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; - *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` - break;; - * ) break;; - esac -done -else - { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot compute suffix of executables: cannot compile and link -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -fi - -rm -f conftest$ac_cv_exeext -{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 -echo "${ECHO_T}$ac_cv_exeext" >&6; } - -rm -f conftest.$ac_ext -EXEEXT=$ac_cv_exeext -ac_exeext=$EXEEXT -{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } -if test "${ac_cv_objext+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.o conftest.obj -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - for ac_file in conftest.o conftest.obj conftest.*; do - test -f "$ac_file" || continue; - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; - *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` - break;; - esac -done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot compute suffix of object files: cannot compile -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -fi - -rm -f conftest.$ac_cv_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 -echo "${ECHO_T}$ac_cv_objext" >&6; } -OBJEXT=$ac_cv_objext -ac_objext=$OBJEXT -{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } -if test "${ac_cv_c_compiler_gnu+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ -#ifndef __GNUC__ - choke me -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_compiler_gnu=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_compiler_gnu=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -ac_cv_c_compiler_gnu=$ac_compiler_gnu - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } -GCC=`test $ac_compiler_gnu = yes && echo yes` -ac_test_CFLAGS=${CFLAGS+set} -ac_save_CFLAGS=$CFLAGS -{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } -if test "${ac_cv_prog_cc_g+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_save_c_werror_flag=$ac_c_werror_flag - ac_c_werror_flag=yes - ac_cv_prog_cc_g=no - CFLAGS="-g" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cc_g=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - CFLAGS="" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_c_werror_flag=$ac_save_c_werror_flag - CFLAGS="-g" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cc_g=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_c_werror_flag=$ac_save_c_werror_flag -fi -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } -if test "$ac_test_CFLAGS" = set; then - CFLAGS=$ac_save_CFLAGS -elif test $ac_cv_prog_cc_g = yes; then - if test "$GCC" = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-g" - fi -else - if test "$GCC" = yes; then - CFLAGS="-O2" - else - CFLAGS= - fi -fi -{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 -echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } -if test "${ac_cv_prog_cc_c89+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_prog_cc_c89=no -ac_save_CC=$CC -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -#include -#include -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ -struct buf { int x; }; -FILE * (*rcsopen) (struct buf *, struct stat *, int); -static char *e (p, i) - char **p; - int i; -{ - return p[i]; -} -static char *f (char * (*g) (char **, int), char **p, ...) -{ - char *s; - va_list v; - va_start (v,p); - s = g (p, va_arg (v,int)); - va_end (v); - return s; -} - -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has - function prototypes and stuff, but not '\xHH' hex character constants. - These don't provoke an error unfortunately, instead are silently treated - as 'x'. The following induces an error, until -std is added to get - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an - array size at least. It's necessary to write '\x00'==0 to get something - that's true only with -std. */ -int osf4_cc_array ['\x00' == 0 ? 1 : -1]; - -/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters - inside strings and character constants. */ -#define FOO(x) 'x' -int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; - -int test (int i, double x); -struct s1 {int (*f) (int a);}; -struct s2 {int (*f) (double a);}; -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); -int argc; -char **argv; -int -main () -{ -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; - ; - return 0; -} -_ACEOF -for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" -do - CC="$ac_save_CC $ac_arg" - rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cc_c89=$ac_arg -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext - test "x$ac_cv_prog_cc_c89" != "xno" && break -done -rm -f conftest.$ac_ext -CC=$ac_save_CC - -fi -# AC_CACHE_VAL -case "x$ac_cv_prog_cc_c89" in - x) - { echo "$as_me:$LINENO: result: none needed" >&5 -echo "${ECHO_T}none needed" >&6; } ;; - xno) - { echo "$as_me:$LINENO: result: unsupported" >&5 -echo "${ECHO_T}unsupported" >&6; } ;; - *) - CC="$CC $ac_cv_prog_cc_c89" - { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 -echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; -esac - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -DEPDIR="${am__leading_dot}deps" - -ac_config_commands="$ac_config_commands depfiles" - - -am_make=${MAKE-make} -cat > confinc << 'END' -am__doit: - @echo done -.PHONY: am__doit -END -# If we don't find an include directive, just comment out the code. -{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 -echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } -am__include="#" -am__quote= -_am_result=none -# First try GNU make style include. -echo "include confinc" > confmf -# We grep out `Entering directory' and `Leaving directory' -# messages which can occur if `w' ends up in MAKEFLAGS. -# In particular we don't look at `^make:' because GNU make might -# be invoked under some other name (usually "gmake"), in which -# case it prints its new name instead of `make'. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then - am__include=include - am__quote= - _am_result=GNU -fi -# Now try BSD make style include. -if test "$am__include" = "#"; then - echo '.include "confinc"' > confmf - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then - am__include=.include - am__quote="\"" - _am_result=BSD - fi -fi - - -{ echo "$as_me:$LINENO: result: $_am_result" >&5 -echo "${ECHO_T}$_am_result" >&6; } -rm -f confinc confmf - -# Check whether --enable-dependency-tracking was given. -if test "${enable_dependency_tracking+set}" = set; then - enableval=$enable_dependency_tracking; -fi - -if test "x$enable_dependency_tracking" != xno; then - am_depcomp="$ac_aux_dir/depcomp" - AMDEPBACKSLASH='\' -fi - - -if test "x$enable_dependency_tracking" != xno; then - AMDEP_TRUE= - AMDEP_FALSE='#' -else - AMDEP_TRUE='#' - AMDEP_FALSE= -fi - - - - -depcc="$CC" am_compiler_list= - -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then - # We make a subdir and do the tests there. Otherwise we can end up - # making bogus files that we don't know about and never remove. For - # instance it was reported that on HP-UX the gcc test will end up - # making a dummy file named `D' -- because `-MD' means `put the output - # in D'. - mkdir conftest.dir - # Copy depcomp to subdir because otherwise we won't find it if we're - # using a relative directory. - cp "$am_depcomp" conftest.dir - cd conftest.dir - # We will build objects and dependencies in a subdirectory because - # it helps to detect inapplicable dependency modes. For instance - # both Tru64's cc and ICC support -MD to output dependencies as a - # side effect of compilation, but ICC will put the dependencies in - # the current directory while Tru64 will put them in the object - # directory. - mkdir sub - - am_cv_CC_dependencies_compiler_type=none - if test "$am_compiler_list" = ""; then - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` - fi - for depmode in $am_compiler_list; do - # Setup a source with many dependencies, because some compilers - # like to wrap large dependency lists on column 80 (with \), and - # we should not choose a depcomp mode which is confused by this. - # - # We need to recreate these files for each test, as the compiler may - # overwrite some of them when testing with obscure command lines. - # This happens at least with the AIX C compiler. - : > sub/conftest.c - for i in 1 2 3 4 5 6; do - echo '#include "conftst'$i'.h"' >> sub/conftest.c - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with - # Solaris 8's {/usr,}/bin/sh. - touch sub/conftst$i.h - done - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf - - case $depmode in - nosideeffect) - # after this tag, mechanisms are not by side-effect, so they'll - # only be used when explicitly requested - if test "x$enable_dependency_tracking" = xyes; then - continue - else - break - fi - ;; - none) break ;; - esac - # We check with `-c' and `-o' for the sake of the "dashmstdout" - # mode. It turns out that the SunPro C++ compiler does not properly - # handle `-M -o', and we need to detect this. - if depmode=$depmode \ - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ - >/dev/null 2>conftest.err && - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then - # icc doesn't choke on unknown options, it will just issue warnings - # or remarks (even with -Werror). So we grep stderr for any message - # that says an option was ignored or not supported. - # When given -MP, icc 7.0 and 7.1 complain thusly: - # icc: Command line warning: ignoring option '-M'; no argument required - # The diagnosis changed in icc 8.0: - # icc: Command line remark: option '-MP' not supported - if (grep 'ignoring option' conftest.err || - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else - am_cv_CC_dependencies_compiler_type=$depmode - break - fi - fi - done - - cd .. - rm -rf conftest.dir -else - am_cv_CC_dependencies_compiler_type=none -fi - -fi -{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } -CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type - - - -if - test "x$enable_dependency_tracking" != xno \ - && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then - am__fastdepCC_TRUE= - am__fastdepCC_FALSE='#' -else - am__fastdepCC_TRUE='#' - am__fastdepCC_FALSE= -fi - - -ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -if test -z "$CXX"; then - if test -n "$CCC"; then - CXX=$CCC - else - if test -n "$ac_tool_prefix"; then - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC - do - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CXX+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CXX"; then - ac_cv_prog_CXX="$CXX" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -CXX=$ac_cv_prog_CXX -if test -n "$CXX"; then - { echo "$as_me:$LINENO: result: $CXX" >&5 -echo "${ECHO_T}$CXX" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$CXX" && break - done -fi -if test -z "$CXX"; then - ac_ct_CXX=$CXX - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_CXX"; then - ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_CXX="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_CXX=$ac_cv_prog_ac_ct_CXX -if test -n "$ac_ct_CXX"; then - { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 -echo "${ECHO_T}$ac_ct_CXX" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$ac_ct_CXX" && break -done - - if test "x$ac_ct_CXX" = x; then - CXX="g++" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - CXX=$ac_ct_CXX - fi -fi - - fi -fi -# Provide some information about the compiler. -echo "$as_me:$LINENO: checking for C++ compiler version" >&5 -ac_compiler=`set X $ac_compile; echo $2` -{ (ac_try="$ac_compiler --version >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler --version >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -v >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler -v >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -V >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler -V >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - -{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 -echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } -if test "${ac_cv_cxx_compiler_gnu+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ -#ifndef __GNUC__ - choke me -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_compiler_gnu=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_compiler_gnu=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -ac_cv_cxx_compiler_gnu=$ac_compiler_gnu - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 -echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } -GXX=`test $ac_compiler_gnu = yes && echo yes` -ac_test_CXXFLAGS=${CXXFLAGS+set} -ac_save_CXXFLAGS=$CXXFLAGS -{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 -echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } -if test "${ac_cv_prog_cxx_g+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_save_cxx_werror_flag=$ac_cxx_werror_flag - ac_cxx_werror_flag=yes - ac_cv_prog_cxx_g=no - CXXFLAGS="-g" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cxx_g=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - CXXFLAGS="" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cxx_werror_flag=$ac_save_cxx_werror_flag - CXXFLAGS="-g" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cxx_g=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_cxx_werror_flag=$ac_save_cxx_werror_flag -fi -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 -echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } -if test "$ac_test_CXXFLAGS" = set; then - CXXFLAGS=$ac_save_CXXFLAGS -elif test $ac_cv_prog_cxx_g = yes; then - if test "$GXX" = yes; then - CXXFLAGS="-g -O2" - else - CXXFLAGS="-g" - fi -else - if test "$GXX" = yes; then - CXXFLAGS="-O2" - else - CXXFLAGS= - fi -fi -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -depcc="$CXX" am_compiler_list= - -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } -if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then - # We make a subdir and do the tests there. Otherwise we can end up - # making bogus files that we don't know about and never remove. For - # instance it was reported that on HP-UX the gcc test will end up - # making a dummy file named `D' -- because `-MD' means `put the output - # in D'. - mkdir conftest.dir - # Copy depcomp to subdir because otherwise we won't find it if we're - # using a relative directory. - cp "$am_depcomp" conftest.dir - cd conftest.dir - # We will build objects and dependencies in a subdirectory because - # it helps to detect inapplicable dependency modes. For instance - # both Tru64's cc and ICC support -MD to output dependencies as a - # side effect of compilation, but ICC will put the dependencies in - # the current directory while Tru64 will put them in the object - # directory. - mkdir sub - - am_cv_CXX_dependencies_compiler_type=none - if test "$am_compiler_list" = ""; then - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` - fi - for depmode in $am_compiler_list; do - # Setup a source with many dependencies, because some compilers - # like to wrap large dependency lists on column 80 (with \), and - # we should not choose a depcomp mode which is confused by this. - # - # We need to recreate these files for each test, as the compiler may - # overwrite some of them when testing with obscure command lines. - # This happens at least with the AIX C compiler. - : > sub/conftest.c - for i in 1 2 3 4 5 6; do - echo '#include "conftst'$i'.h"' >> sub/conftest.c - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with - # Solaris 8's {/usr,}/bin/sh. - touch sub/conftst$i.h - done - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf - - case $depmode in - nosideeffect) - # after this tag, mechanisms are not by side-effect, so they'll - # only be used when explicitly requested - if test "x$enable_dependency_tracking" = xyes; then - continue - else - break - fi - ;; - none) break ;; - esac - # We check with `-c' and `-o' for the sake of the "dashmstdout" - # mode. It turns out that the SunPro C++ compiler does not properly - # handle `-M -o', and we need to detect this. - if depmode=$depmode \ - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ - >/dev/null 2>conftest.err && - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then - # icc doesn't choke on unknown options, it will just issue warnings - # or remarks (even with -Werror). So we grep stderr for any message - # that says an option was ignored or not supported. - # When given -MP, icc 7.0 and 7.1 complain thusly: - # icc: Command line warning: ignoring option '-M'; no argument required - # The diagnosis changed in icc 8.0: - # icc: Command line remark: option '-MP' not supported - if (grep 'ignoring option' conftest.err || - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else - am_cv_CXX_dependencies_compiler_type=$depmode - break - fi - fi - done - - cd .. - rm -rf conftest.dir -else - am_cv_CXX_dependencies_compiler_type=none -fi - -fi -{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 -echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } -CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type - - - -if - test "x$enable_dependency_tracking" != xno \ - && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then - am__fastdepCXX_TRUE= - am__fastdepCXX_FALSE='#' -else - am__fastdepCXX_TRUE='#' - am__fastdepCXX_FALSE= -fi - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } -# On Suns, sometimes $CPP names a directory. -if test -n "$CPP" && test -d "$CPP"; then - CPP= -fi -if test -z "$CPP"; then - if test "${ac_cv_prog_CPP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # Double quotes because CPP needs to be expanded - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" - do - ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Broken: fails on valid input. -continue -fi - -rm -f conftest.err conftest.$ac_ext - - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - # Broken: success on invalid input. -continue -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Passes both tests. -ac_preproc_ok=: -break -fi - -rm -f conftest.err conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -if $ac_preproc_ok; then - break -fi - - done - ac_cv_prog_CPP=$CPP - -fi - CPP=$ac_cv_prog_CPP -else - ac_cv_prog_CPP=$CPP -fi -{ echo "$as_me:$LINENO: result: $CPP" >&5 -echo "${ECHO_T}$CPP" >&6; } -ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Broken: fails on valid input. -continue -fi - -rm -f conftest.err conftest.$ac_ext - - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - # Broken: success on invalid input. -continue -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Passes both tests. -ac_preproc_ok=: -break -fi - -rm -f conftest.err conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -if $ac_preproc_ok; then - : -else - { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check -See \`config.log' for more details." >&5 -echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -fi - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - -# Make sure we can run config.sub. -$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || - { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 -echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} - { (exit 1); exit 1; }; } - -{ echo "$as_me:$LINENO: checking build system type" >&5 -echo $ECHO_N "checking build system type... $ECHO_C" >&6; } -if test "${ac_cv_build+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_build_alias=$build_alias -test "x$ac_build_alias" = x && - ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` -test "x$ac_build_alias" = x && - { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 -echo "$as_me: error: cannot guess build type; you must specify one" >&2;} - { (exit 1); exit 1; }; } -ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} - { (exit 1); exit 1; }; } - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 -echo "${ECHO_T}$ac_cv_build" >&6; } -case $ac_cv_build in -*-*-*) ;; -*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 -echo "$as_me: error: invalid value of canonical build" >&2;} - { (exit 1); exit 1; }; };; -esac -build=$ac_cv_build -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_build -shift -build_cpu=$1 -build_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -build_os=$* -IFS=$ac_save_IFS -case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac - - -{ echo "$as_me:$LINENO: checking host system type" >&5 -echo $ECHO_N "checking host system type... $ECHO_C" >&6; } -if test "${ac_cv_host+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "x$host_alias" = x; then - ac_cv_host=$ac_cv_build -else - ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} - { (exit 1); exit 1; }; } -fi - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 -echo "${ECHO_T}$ac_cv_host" >&6; } -case $ac_cv_host in -*-*-*) ;; -*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 -echo "$as_me: error: invalid value of canonical host" >&2;} - { (exit 1); exit 1; }; };; -esac -host=$ac_cv_host -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_host -shift -host_cpu=$1 -host_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -host_os=$* -IFS=$ac_save_IFS -case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac - - - -EXTRACPPFLAGS="-D_REENTRANT -D_XOPEN_SOURCE=500" -EXTRAGCCFLAGS="-ffast-math -fstrict-aliasing" -if test x${GXX} = xyes; then - AM_CXXFLAGS="$AM_CXXFLAGS $EXTRAGCCFLAGS" -fi -if test x${GCC} = xyes; then - AM_CFLAGS="$AM_CFLAGS $EXTRAGCCFLAGS" -fi -AM_CPPFLAGS="$AM_CPPFLAGS $EXTRACPPFLAGS" - - - - - - - - -eca_platform_python_impl="python" - -eca_platform_curses_support="yes" - - -case "$host" in - *-*-openbsd*) - AM_CFLAGS="$AM_CFLAGS -pthread" - AM_CXXFLAGS="$AM_CXXFLAGS -pthread" - echo "Setting OpenBSD compilation options for POSIX threads" - ;; - *-*-freebsd*) - AM_CFLAGS="$AM_CFLAGS -pthread" - AM_CPPFLAGS="$AM_CPPFLAGS -D_THREAD_SAFE -D_P1003_1B_VISIBLE" - AM_CXXFLAGS="$AM_CXXFLAGS -pthread" - echo "Setting FreeBSD compilation options for POSIX threads" - ;; - *-*-solaris*) - AM_CPPFLAGS="$AM_CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS -DUSE_SOLARIS" - LIBS="$LIBS -lposix4 -lpthread" - echo "Setting Solaris compilation options for POSIX threads" - if test x$CXX = xCC; then - LIBS="$LIBS -mt" - AM_CXXFLAGS="$AM_CXXFLAGS -instances=static" - echo "Sun Workshop C++ compiler detected. Enabling static template instantation." - fi - ;; - *-*-linux-gnu) - eca_platform_python_impl="c" - ;; - alpha*-*-linux-*) - AM_CFLAGS="$AM_CFLAGS -mieee" - AM_CXXFLAGS="$AM_CXXFLAGS -mieee" - echo "Enabling fully IEEE compliant floating-point code generation on Alpha." - ;; - *darwin*) - if test "$GCC" = yes; then - AM_CPPFLAGS="$AM_CPPFLAGS -D_P1003_1B_VISIBLE" - fi - ;; - *) - echo "Using generic settings for POSIX thread support." - ;; -esac - - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -{ echo "$as_me:$LINENO: checking for library containing pthread_create" >&5 -echo $ECHO_N "checking for library containing pthread_create... $ECHO_C" >&6; } -if test "${ac_cv_search_pthread_create+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_func_search_save_LIBS=$LIBS -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char pthread_create (); -int -main () -{ -return pthread_create (); - ; - return 0; -} -_ACEOF -for ac_lib in '' pthread c_r; do - if test -z "$ac_lib"; then - ac_res="none required" - else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - fi - rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_search_pthread_create=$ac_res -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext - if test "${ac_cv_search_pthread_create+set}" = set; then - break -fi -done -if test "${ac_cv_search_pthread_create+set}" = set; then - : -else - ac_cv_search_pthread_create=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_create" >&5 -echo "${ECHO_T}$ac_cv_search_pthread_create" >&6; } -ac_res=$ac_cv_search_pthread_create -if test "$ac_res" != no; then - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - -else - { { echo "$as_me:$LINENO: error: ** POSIX.4 threads not installed or broken **" >&5 -echo "$as_me: error: ** POSIX.4 threads not installed or broken **" >&2;} - { (exit 1); exit 1; }; } -fi - -{ echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5 -echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; } -if test "${ac_cv_search_clock_gettime+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_func_search_save_LIBS=$LIBS -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char clock_gettime (); -int -main () -{ -return clock_gettime (); - ; - return 0; -} -_ACEOF -for ac_lib in '' rt; do - if test -z "$ac_lib"; then - ac_res="none required" - else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - fi - rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_search_clock_gettime=$ac_res -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext - if test "${ac_cv_search_clock_gettime+set}" = set; then - break -fi -done -if test "${ac_cv_search_clock_gettime+set}" = set; then - : -else - ac_cv_search_clock_gettime=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5 -echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; } -ac_res=$ac_cv_search_clock_gettime -if test "$ac_res" != no; then - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - -fi - -ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - - -echo "------------------------------------------------------------------" -echo "2. Section: Options for the configure script" -echo "------------------------------------------------------------------" - - - -{ echo "$as_me:$LINENO: checking whether to enable debugging" >&5 -echo $ECHO_N "checking whether to enable debugging... $ECHO_C" >&6; } -# Check whether --enable-debug was given. -if test "${enable_debug+set}" = set; then - enableval=$enable_debug; - case "$enableval" in - y | yes) - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - include_debug=yes - ;; - - n | no) - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - include_debug=no - ;; - - *) - { { echo "$as_me:$LINENO: error: Invalid parameter value for --enable-debug: $enableval" >&5 -echo "$as_me: error: Invalid parameter value for --enable-debug: $enableval" >&2;} - { (exit 1); exit 1; }; } - ;; - esac - - - -fi - - - -if test x$include_debug = xyes; then - ECA_AM_DEBUG_MODE_TRUE= - ECA_AM_DEBUG_MODE_FALSE='#' -else - ECA_AM_DEBUG_MODE_TRUE='#' - ECA_AM_DEBUG_MODE_FALSE= -fi - -if test x$include_debug = xyes; then - EXTRADEBUGFLAGS="-Wall -O" - -cat >>confdefs.h <<\_ACEOF -#define ECA_DEBUG_MODE 1 -_ACEOF - -else - EXTRADEBUGFLAGS="-DNDEBUG" -fi -AM_CXXFLAGS="$AM_CXXFLAGS $EXTRADEBUGFLAGS" -AM_CFLAGS="$AM_CFLAGS $EXTRADEBUGFLAGS" - - -# Check whether --enable-experimental was given. -if test "${enable_experimental+set}" = set; then - enableval=$enable_experimental; - case "$enableval" in - y | yes) - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - experimental=yes - ;; - - n | no) - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - experimental=no - ;; - - *) - { { echo "$as_me:$LINENO: error: Invalid parameter value for --enable-experimental: $enableval" >&5 -echo "$as_me: error: Invalid parameter value for --enable-experimental: $enableval" >&2;} - { (exit 1); exit 1; }; } - ;; - esac - -fi - -if test x$experimental = xyes; then - -cat >>confdefs.h <<\_ACEOF -#define ECA_FEELING_EXPERIMENTAL 1 -_ACEOF - -fi - - -if test x$experimental = xyes; then - ECA_AM_FEELING_EXPERIMENTAL_TRUE= - ECA_AM_FEELING_EXPERIMENTAL_FALSE='#' -else - ECA_AM_FEELING_EXPERIMENTAL_TRUE='#' - ECA_AM_FEELING_EXPERIMENTAL_FALSE= -fi - - - - -if test "x${prefix}" = "xNONE"; then - ecaprefix=${ac_default_prefix} -else - ecaprefix=${prefix} -fi -ECA_S_PREFIX=${ecaprefix} - - - -cat >>confdefs.h <<_ACEOF -#define ECA_PREFIX "${ecaprefix}" -_ACEOF - - - - -{ echo "$as_me:$LINENO: checking whether to check design-by-contract assertions" >&5 -echo $ECHO_N "checking whether to check design-by-contract assertions... $ECHO_C" >&6; } -enable_dbc_d=yes -# Check whether --enable-dbc was given. -if test "${enable_dbc+set}" = set; then - enableval=$enable_dbc; - case "$enableval" in - y | yes) - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - enable_dbc_d=yes - ;; - - n | no) - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - enable_dbc_d=no - ;; - - *) - { { echo "$as_me:$LINENO: error: Invalid parameter value for --enable-dbc: $enableval" >&5 -echo "$as_me: error: Invalid parameter value for --enable-dbc: $enableval" >&2;} - { (exit 1); exit 1; }; } - ;; - esac - -else - - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - - -fi - -if test x$enable_dbc_d = xyes; then -AM_CXXFLAGS="$AM_CXXFLAGS -DENABLE_DBC" -AM_CFLAGS="$AM_CFLAGS -DENABLE_DBC" -fi - - - -{ echo "$as_me:$LINENO: checking whether to enable effects" >&5 -echo $ECHO_N "checking whether to enable effects... $ECHO_C" >&6; } -# Check whether --enable-effects was given. -if test "${enable_effects+set}" = set; then - enableval=$enable_effects; - echo "Enableval: ${enableval}." - case "$enableval" in - y | yes) - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - enable_effects_d=yes - ;; - - n | no) - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - enable_effects_d=no - ;; - - *) - { { echo "$as_me:$LINENO: error: Invalid parameter value for --enable-effects: $enableval" >&5 -echo "$as_me: error: Invalid parameter value for --enable-effects: $enableval" >&2;} - { (exit 1); exit 1; }; } - ;; - esac - -else - - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - enable_effects_d=yes - - -fi - - - -if test x$enable_effects_d = xno; then - ECA_AM_DISABLE_EFFECTS_TRUE= - ECA_AM_DISABLE_EFFECTS_FALSE='#' -else - ECA_AM_DISABLE_EFFECTS_TRUE='#' - ECA_AM_DISABLE_EFFECTS_FALSE= -fi - -if test x$enable_effects_d = xno; then - -cat >>confdefs.h <<\_ACEOF -#define ECA_DISABLE_EFFECTS 1 -_ACEOF - -fi - - - - -# Check whether --with-extra-cppflags was given. -if test "${with_extra_cppflags+set}" = set; then - withval=$with_extra_cppflags; - ECA_S_EXTRA_CPPFLAGS="${ECA_S_EXTRA_CPPFLAGS} ${withval}" - -fi - - -# Check whether --with-extra-libs was given. -if test "${with_extra_libs+set}" = set; then - withval=$with_extra_libs; - ECA_S_EXTRA_LIBS="${ECA_S_EXTRA_LIBS} ${withval}" - -fi - - - - - - echo "checking for largefile support (>2GB files)..." - - -# Check whether --with-largefile was given. -if test "${with_largefile+set}" = set; then - withval=$with_largefile; -fi - - - # Check whether --enable-largefile was given. -if test "${enable_largefile+set}" = set; then - enableval=$enable_largefile; -fi - -if test "$enable_largefile" != no; then - - { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 -echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; } -if test "${ac_cv_sys_largefile_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_sys_largefile_CC=no - if test "$GCC" != yes; then - ac_save_CC=$CC - while :; do - # IRIX 6.2 and later do not support large files by default, - # so use the C compiler's -n32 option if that helps. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - /* Check that off_t can represent 2**63 - 1 correctly. - We can't simply define LARGE_OFF_T to be 9223372036854775807, - since some C++ compilers masquerading as C compilers - incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 - && LARGE_OFF_T % 2147483647 == 1) - ? 1 : -1]; -int -main () -{ - - ; - return 0; -} -_ACEOF - rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext - CC="$CC -n32" - rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_sys_largefile_CC=' -n32'; break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext - break - done - CC=$ac_save_CC - rm -f conftest.$ac_ext - fi -fi -{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 -echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; } - if test "$ac_cv_sys_largefile_CC" != no; then - CC=$CC$ac_cv_sys_largefile_CC - fi - - { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 -echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; } -if test "${ac_cv_sys_file_offset_bits+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - /* Check that off_t can represent 2**63 - 1 correctly. - We can't simply define LARGE_OFF_T to be 9223372036854775807, - since some C++ compilers masquerading as C compilers - incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 - && LARGE_OFF_T % 2147483647 == 1) - ? 1 : -1]; -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_sys_file_offset_bits=no; break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#define _FILE_OFFSET_BITS 64 -#include - /* Check that off_t can represent 2**63 - 1 correctly. - We can't simply define LARGE_OFF_T to be 9223372036854775807, - since some C++ compilers masquerading as C compilers - incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 - && LARGE_OFF_T % 2147483647 == 1) - ? 1 : -1]; -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_sys_file_offset_bits=64; break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_cv_sys_file_offset_bits=unknown - break -done -fi -{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 -echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; } -case $ac_cv_sys_file_offset_bits in #( - no | unknown) ;; - *) -cat >>confdefs.h <<_ACEOF -#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits -_ACEOF -;; -esac -rm -f conftest* - if test $ac_cv_sys_file_offset_bits = unknown; then - { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 -echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; } -if test "${ac_cv_sys_large_files+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - /* Check that off_t can represent 2**63 - 1 correctly. - We can't simply define LARGE_OFF_T to be 9223372036854775807, - since some C++ compilers masquerading as C compilers - incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 - && LARGE_OFF_T % 2147483647 == 1) - ? 1 : -1]; -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_sys_large_files=no; break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#define _LARGE_FILES 1 -#include - /* Check that off_t can represent 2**63 - 1 correctly. - We can't simply define LARGE_OFF_T to be 9223372036854775807, - since some C++ compilers masquerading as C compilers - incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 - && LARGE_OFF_T % 2147483647 == 1) - ? 1 : -1]; -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_sys_large_files=1; break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_cv_sys_large_files=unknown - break -done -fi -{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 -echo "${ECHO_T}$ac_cv_sys_large_files" >&6; } -case $ac_cv_sys_large_files in #( - no | unknown) ;; - *) -cat >>confdefs.h <<_ACEOF -#define _LARGE_FILES $ac_cv_sys_large_files -_ACEOF -;; -esac -rm -f conftest* - fi -fi - - if test x$ac_cv_sys_file_offset_bits = x64 ; then - AM_CXXFLAGS="$AM_CXXFLAGS -D_FILE_OFFSET_BITS=64" - AM_CFLAGS="$AM_CFLAGS -D_FILE_OFFSET_BITS=64" - - enable_largefile=yes - fi - - - - - - - - -ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 -echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } -if test -z "$CXXCPP"; then - if test "${ac_cv_prog_CXXCPP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # Double quotes because CXXCPP needs to be expanded - for CXXCPP in "$CXX -E" "/lib/cpp" - do - ac_preproc_ok=false -for ac_cxx_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || - test ! -s conftest.err - }; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Broken: fails on valid input. -continue -fi - -rm -f conftest.err conftest.$ac_ext - - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || - test ! -s conftest.err - }; then - # Broken: success on invalid input. -continue -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Passes both tests. -ac_preproc_ok=: -break -fi - -rm -f conftest.err conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -if $ac_preproc_ok; then - break -fi - - done - ac_cv_prog_CXXCPP=$CXXCPP - -fi - CXXCPP=$ac_cv_prog_CXXCPP -else - ac_cv_prog_CXXCPP=$CXXCPP -fi -{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 -echo "${ECHO_T}$CXXCPP" >&6; } -ac_preproc_ok=false -for ac_cxx_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || - test ! -s conftest.err - }; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Broken: fails on valid input. -continue -fi - -rm -f conftest.err conftest.$ac_ext - - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || - test ! -s conftest.err - }; then - # Broken: success on invalid input. -continue -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Passes both tests. -ac_preproc_ok=: -break -fi - -rm -f conftest.err conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -if $ac_preproc_ok; then - : -else - { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check -See \`config.log' for more details." >&5 -echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -fi - -ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - - -{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 -echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } -if test "${ac_cv_path_GREP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # Extract the first word of "grep ggrep" to use in msg output -if test -z "$GREP"; then -set dummy grep ggrep; ac_prog_name=$2 -if test "${ac_cv_path_GREP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_path_GREP_found=false -# Loop through the user's path and test for each of PROGNAME-LIST -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in grep ggrep; do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" - { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue - # Check for GNU ac_path_GREP and select it if it is found. - # Check for GNU $ac_path_GREP -case `"$ac_path_GREP" --version 2>&1` in -*GNU*) - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; -*) - ac_count=0 - echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - echo 'GREP' >> "conftest.nl" - "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - ac_count=`expr $ac_count + 1` - if test $ac_count -gt ${ac_path_GREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_GREP="$ac_path_GREP" - ac_path_GREP_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - - $ac_path_GREP_found && break 3 - done -done - -done -IFS=$as_save_IFS - - -fi - -GREP="$ac_cv_path_GREP" -if test -z "$GREP"; then - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 -echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} - { (exit 1); exit 1; }; } -fi - -else - ac_cv_path_GREP=$GREP -fi - - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 -echo "${ECHO_T}$ac_cv_path_GREP" >&6; } - GREP="$ac_cv_path_GREP" - - -{ echo "$as_me:$LINENO: checking for egrep" >&5 -echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } -if test "${ac_cv_path_EGREP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 - then ac_cv_path_EGREP="$GREP -E" - else - # Extract the first word of "egrep" to use in msg output -if test -z "$EGREP"; then -set dummy egrep; ac_prog_name=$2 -if test "${ac_cv_path_EGREP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_path_EGREP_found=false -# Loop through the user's path and test for each of PROGNAME-LIST -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in egrep; do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" - { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue - # Check for GNU ac_path_EGREP and select it if it is found. - # Check for GNU $ac_path_EGREP -case `"$ac_path_EGREP" --version 2>&1` in -*GNU*) - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; -*) - ac_count=0 - echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - echo 'EGREP' >> "conftest.nl" - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - ac_count=`expr $ac_count + 1` - if test $ac_count -gt ${ac_path_EGREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_EGREP="$ac_path_EGREP" - ac_path_EGREP_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - - $ac_path_EGREP_found && break 3 - done -done - -done -IFS=$as_save_IFS - - -fi - -EGREP="$ac_cv_path_EGREP" -if test -z "$EGREP"; then - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 -echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} - { (exit 1); exit 1; }; } -fi - -else - ac_cv_path_EGREP=$EGREP -fi - - - fi -fi -{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 -echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } - EGREP="$ac_cv_path_EGREP" - - -{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } -if test "${ac_cv_header_stdc+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -#include -#include - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_header_stdc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_header_stdc=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -if test $ac_cv_header_stdc = yes; then - # SunOS 4.x string.h does not declare mem*, contrary to ANSI. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "memchr" >/dev/null 2>&1; then - : -else - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "free" >/dev/null 2>&1; then - : -else - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. - if test "$cross_compiling" = yes; then - : -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -#if ((' ' & 0x0FF) == 0x020) -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) -#else -# define ISLOWER(c) \ - (('a' <= (c) && (c) <= 'i') \ - || ('j' <= (c) && (c) <= 'r') \ - || ('s' <= (c) && (c) <= 'z')) -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) -#endif - -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) -int -main () -{ - int i; - for (i = 0; i < 256; i++) - if (XOR (islower (i), ISLOWER (i)) - || toupper (i) != TOUPPER (i)) - return 2; - return 0; -} -_ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - : -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -ac_cv_header_stdc=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi - - -fi -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 -echo "${ECHO_T}$ac_cv_header_stdc" >&6; } -if test $ac_cv_header_stdc = yes; then - -cat >>confdefs.h <<\_ACEOF -#define STDC_HEADERS 1 -_ACEOF - -fi - -# On IRIX 5.3, sys/types and inttypes.h are conflicting. - - - - - - - - - -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ - inttypes.h stdint.h unistd.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default - -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - eval "$as_ac_Header=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_Header=no" -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - - -if test "${ac_cv_header_sys_soundcard_h+set}" = set; then - { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5 -echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; } -if test "${ac_cv_header_sys_soundcard_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5 -echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5 -echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_compiler=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } - -# Is the header present? -{ echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5 -echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_preproc=no -fi - -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;} - - ;; -esac -{ echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5 -echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; } -if test "${ac_cv_header_sys_soundcard_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_sys_soundcard_h=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5 -echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; } - -fi -if test $ac_cv_header_sys_soundcard_h = yes; then - oss_support=yes -else - oss_support=no -fi - - -# Check whether --enable-oss was given. -if test "${enable_oss+set}" = set; then - enableval=$enable_oss; - case "$enableval" in - y | yes) - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - oss_support=yes - ;; - - n | no) - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - oss_support=no - ;; - - *) - { { echo "$as_me:$LINENO: error: Invalid parameter value for --enable-oss: $enableval" >&5 -echo "$as_me: error: Invalid parameter value for --enable-oss: $enableval" >&2;} - { (exit 1); exit 1; }; } - ;; - esac - -fi - - - -if test x$oss_support = xyes; then - ECA_AM_COMPILE_OSS_TRUE= - ECA_AM_COMPILE_OSS_FALSE='#' -else - ECA_AM_COMPILE_OSS_TRUE='#' - ECA_AM_COMPILE_OSS_FALSE= -fi - -if test x$oss_support = xyes; then - -cat >>confdefs.h <<\_ACEOF -#define ECA_COMPILE_OSS 1 -_ACEOF - -fi - -# Check whether --enable-osstrigger was given. -if test "${enable_osstrigger+set}" = set; then - enableval=$enable_osstrigger; - case "$enableval" in - y | yes) - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - osstrigger=yes - ;; - - n | no) - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - osstrigger=no - ;; - - *) - { { echo "$as_me:$LINENO: error: Invalid parameter value for --enable-osstrigger: $enableval" >&5 -echo "$as_me: error: Invalid parameter value for --enable-osstrigger: $enableval" >&2;} - { (exit 1); exit 1; }; } - ;; - esac - -fi - -if test x$osstrigger = xyes; then - -cat >>confdefs.h <<\_ACEOF -#define ECA_DISABLE_OSS_TRIGGER 1 -_ACEOF - -fi - - -# Extract the first word of "artsc-config", so it can be a program name with args. -set dummy artsc-config; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_path_ARTSC_CONFIG+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $ARTSC_CONFIG in - [\\/]* | ?:[\\/]*) - ac_cv_path_ARTSC_CONFIG="$ARTSC_CONFIG" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_ARTSC_CONFIG="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - - test -z "$ac_cv_path_ARTSC_CONFIG" && ac_cv_path_ARTSC_CONFIG="none" - ;; -esac -fi -ARTSC_CONFIG=$ac_cv_path_ARTSC_CONFIG -if test -n "$ARTSC_CONFIG"; then - { echo "$as_me:$LINENO: result: $ARTSC_CONFIG" >&5 -echo "${ECHO_T}$ARTSC_CONFIG" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -if test x$ARTSC_CONFIG = xnone; then - arts_support=no -else - arts_support=yes - ECA_ARTSC_CFLAGS="`$ARTSC_CONFIG --cflags`" - ECA_ARTSC_LIBS="`$ARTSC_CONFIG --libs`" -fi - -if test x$arts_support = xyes; then - old_LIBS=$LIBS - LIBS="$LIBS $ECA_ARTSC_LIBS" - old_CFLAGS=$CFLAGS - CFLAGS="$CFLAGS $ECA_ARTSC_CFLAGS" - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - #include -int -main () -{ - - arts_init(); - return 0; - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - /bin/true -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - arts_support=no - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - - LIBS=${old_LIBS} - CFLAGS=${old_CFLAGS} -fi - -# Check whether --enable-arts was given. -if test "${enable_arts+set}" = set; then - enableval=$enable_arts; - case "$enableval" in - y | yes) - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - arts_support=yes - ;; - - n | no) - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - arts_support=no - ;; - - *) - { { echo "$as_me:$LINENO: error: Invalid parameter value for --enable-arts: $enableval" >&5 -echo "$as_me: error: Invalid parameter value for --enable-arts: $enableval" >&2;} - { (exit 1); exit 1; }; } - ;; - esac - -fi - - - -if test x$arts_support = xyes; then - ECA_AM_COMPILE_ARTS_TRUE= - ECA_AM_COMPILE_ARTS_FALSE='#' -else - ECA_AM_COMPILE_ARTS_TRUE='#' - ECA_AM_COMPILE_ARTS_FALSE= -fi - -if test x$arts_support = xyes; then - ECA_S_EXTRA_CPPFLAGS="${ECA_S_EXTRA_CPPFLAGS} ${ECA_ARTSC_CFLAGS}" - ECA_S_EXTRA_LIBS="${ECA_S_EXTRA_LIBS} ${ECA_ARTSC_LIBS}" - -cat >>confdefs.h <<\_ACEOF -#define ECA_COMPILE_ARTS 1 -_ACEOF - -fi - - -if test "${ac_cv_header_samplerate_h+set}" = set; then - { echo "$as_me:$LINENO: checking for samplerate.h" >&5 -echo $ECHO_N "checking for samplerate.h... $ECHO_C" >&6; } -if test "${ac_cv_header_samplerate_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_samplerate_h" >&5 -echo "${ECHO_T}$ac_cv_header_samplerate_h" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking samplerate.h usability" >&5 -echo $ECHO_N "checking samplerate.h usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_compiler=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } - -# Is the header present? -{ echo "$as_me:$LINENO: checking samplerate.h presence" >&5 -echo $ECHO_N "checking samplerate.h presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_preproc=no -fi - -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: samplerate.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: samplerate.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: samplerate.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: samplerate.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: samplerate.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: samplerate.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: samplerate.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: samplerate.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: samplerate.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: samplerate.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: samplerate.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: samplerate.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: samplerate.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: samplerate.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: samplerate.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: samplerate.h: in the future, the compiler will take precedence" >&2;} - - ;; -esac -{ echo "$as_me:$LINENO: checking for samplerate.h" >&5 -echo $ECHO_N "checking for samplerate.h... $ECHO_C" >&6; } -if test "${ac_cv_header_samplerate_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_samplerate_h=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_samplerate_h" >&5 -echo "${ECHO_T}$ac_cv_header_samplerate_h" >&6; } - -fi -if test $ac_cv_header_samplerate_h = yes; then - samplerate_support=yes -else - samplerate_support=no -fi - - - -# Check whether --with-libsamplerate was given. -if test "${with_libsamplerate+set}" = set; then - withval=$with_libsamplerate; - ECA_SAMPLERATE_LIBS="-L${withval}/lib" - ECA_SAMPLERATE_INCLUDES="-I${withval}/include" - samplerate_support=yes - -fi - -# Check whether --enable-libsamplerate was given. -if test "${enable_libsamplerate+set}" = set; then - enableval=$enable_libsamplerate; - case "$enableval" in - y | yes) - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - samplerate_support=yes - ;; - - n | no) - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - samplerate_support=no - ;; - - *) - { { echo "$as_me:$LINENO: error: Invalid parameter value for --enable-samplerate: $enableval" >&5 -echo "$as_me: error: Invalid parameter value for --enable-samplerate: $enableval" >&2;} - { (exit 1); exit 1; }; } - ;; - esac - -fi - - - -if test x$samplerate_support = xyes; then - ECA_AM_COMPILE_SAMPLERATE_TRUE= - ECA_AM_COMPILE_SAMPLERATE_FALSE='#' -else - ECA_AM_COMPILE_SAMPLERATE_TRUE='#' - ECA_AM_COMPILE_SAMPLERATE_FALSE= -fi - - -if test x$samplerate_support = xyes; then - ECA_S_EXTRA_CPPFLAGS="${ECA_S_EXTRA_CPPFLAGS} ${ECA_SAMPLERATE_INCLUDES}" - ECA_SAMPLERATE_LIBS="${ECA_SAMPLERATE_LIBS} -lsamplerate" - ECA_S_EXTRA_LIBS="${ECA_S_EXTRA_LIBS} ${ECA_SAMPLERATE_LIBS}" - -cat >>confdefs.h <<\_ACEOF -#define ECA_COMPILE_SAMPLERATE 1 -_ACEOF - -fi - - - -pyecasound_support=${eca_platform_python_impl} - -# Check whether --enable-pyecasound was given. -if test "${enable_pyecasound+set}" = set; then - enableval=$enable_pyecasound; - case "$enableval" in - y | yes) - pyecasound_support=c - ;; - - n | no | none) - pyecasound_support=none - ;; - - python) - pyecasound_support=python - ;; - - c) - pyecasound_support=c - ;; - - *) - pyecasound_support=python - ;; - esac - -fi - - - -# Extract the first word of "python", so it can be a program name with args. -set dummy python; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_path_PYTHONPATH+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $PYTHONPATH in - [\\/]* | ?:[\\/]*) - ac_cv_path_PYTHONPATH="$PYTHONPATH" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_PYTHONPATH="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - - test -z "$ac_cv_path_PYTHONPATH" && ac_cv_path_PYTHONPATH="none" - ;; -esac -fi -PYTHONPATH=$ac_cv_path_PYTHONPATH -if test -n "$PYTHONPATH"; then - { echo "$as_me:$LINENO: result: $PYTHONPATH" >&5 -echo "${ECHO_T}$PYTHONPATH" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -if test x$PYTHONPATH = xnone; then - pyecasound_support=none - python_install_prefix="" -else - python_install_prefix=`python -c "import sys; print (sys.prefix)"` -fi - - -ECA_S_PYTHON_INCLUDES= -{ echo "$as_me:$LINENO: checking for Python include files" >&5 -echo $ECHO_N "checking for Python include files... $ECHO_C" >&6; } - - -# Check whether --with-python-includes was given. -if test "${with_python_includes+set}" = set; then - withval=$with_python_includes; -fi - -if test ! "X$with_python_includes" = "X" -then - python_incdirs=$with_python_includes -else - python_incdirs="/usr/local/include /usr/include" - python_incdirsmore=`python -c "import sys; print (sys.prefix + '/include/python' + sys.version[:3])"` - python_incdirs="$python_incdirs $python_incdirsmore" -fi - -for d in $python_incdirs -do - if test -r $d/Python.h - then - ECA_S_PYTHON_INCLUDES=$d - break - fi -done - - -if test "X$ECA_S_PYTHON_INCLUDES" = "X" -then - { echo "$as_me:$LINENO: WARNING: Python.h not found" >&5 -echo "$as_me: WARNING: Python.h not found" >&2;} - if test x${pyecasound_support} = xc; then - pyecasound_support=python - fi -else - { echo "$as_me:$LINENO: result: $ECA_S_PYTHON_INCLUDES" >&5 -echo "${ECHO_T}$ECA_S_PYTHON_INCLUDES" >&6; } -fi - - -{ echo "$as_me:$LINENO: checking for Python libraries" >&5 -echo $ECHO_N "checking for Python libraries... $ECHO_C" >&6; } - -# Check whether --with-python-modules was given. -if test "${with_python_modules+set}" = set; then - withval=$with_python_modules; -fi - - -if test "X$with_python_modules" = "X" -then - if test x${python_install_prefix} != x${ecaprefix} -a \ - x${ecaprefix} != x/usr -a \ - x${ecaprefix} != x/usr/local ; then - pyecasound_support=none - { echo "$as_me:$LINENO: result: none" >&5 -echo "${ECHO_T}none" >&6; } - if test x$PYTHONPATH != xnone; then - python_prefix_tmp=`python -c "import sys; print (sys.prefix + '/lib/python' + sys.version[:3])"` - else - python_prefix_tmp="DIR" - fi - { echo "$as_me:$LINENO: WARNING: - *** - *** Python modules won't be installed as the module install prefix does - *** not match ecasound's build prefix! To override, set python - *** module directory explicitly (for example - *** \"--with-python-modules=${python_prefix_tmp}\"). - *** - " >&5 -echo "$as_me: WARNING: - *** - *** Python modules won't be installed as the module install prefix does - *** not match ecasound's build prefix! To override, set python - *** module directory explicitly (for example - *** \"--with-python-modules=${python_prefix_tmp}\"). - *** - " >&2;} - else - pymoddirs="/usr/local/lib /usr/lib" - pymoddirsmore=`python -c "import sys; print (sys.prefix + '/lib/python' + sys.version[:3])"` - pymoddirs="$pymoddirs $pymoddirsmore" - { echo "$as_me:$LINENO: result: $pymoddirs" >&5 -echo "${ECHO_T}$pymoddirs" >&6; } - fi -else - pymoddirs=$with_python_modules - { echo "$as_me:$LINENO: result: $pymoddirs" >&5 -echo "${ECHO_T}$pymoddirs" >&6; } -fi - - -# Check whether --enable-python-force-site-packages was given. -if test "${enable_python_force_site_packages+set}" = set; then - enableval=$enable_python_force_site_packages; - case "$enableval" in - y | yes) - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - python_force_site_packages=yes - ;; - - n | no) - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - python_force_site_packages=no - ;; - - *) - { { echo "$as_me:$LINENO: error: Invalid parameter value for --enable-python-force-site-packages: $enableval" >&5 -echo "$as_me: error: Invalid parameter value for --enable-python-force-site-packages: $enableval" >&2;} - { (exit 1); exit 1; }; } - ;; - esac - -fi - - - -ECA_S_PYTHON_MODULES=NO -for i in $pymoddirs; -do - for j in lib-dynload; - do - if test -r "$i/$j"; then - ECA_S_PYTHON_MODULES=$i - break 2 - fi - done -done - -if test -d $ECA_S_PYTHON_MODULES/site-packages -o "X$python_force_site_packages" = "Xyes" -then - ECA_S_PYTHON_MODULES=$ECA_S_PYTHON_MODULES/site-packages - ECA_S_PYTHON_DLMODULES=$ECA_S_PYTHON_MODULES -else - ECA_S_PYTHON_DLMODULES=$ECA_S_PYTHON_MODULES/lib-dynload -fi - - - - - -if test x$pyecasound_support = xc; then - ECA_AM_PYECASOUND_CEXT_TRUE= - ECA_AM_PYECASOUND_CEXT_FALSE='#' -else - ECA_AM_PYECASOUND_CEXT_TRUE='#' - ECA_AM_PYECASOUND_CEXT_FALSE= -fi - - - -if test x$pyecasound_support != xnone; then - ECA_AM_PYECASOUND_INSTALL_TRUE= - ECA_AM_PYECASOUND_INSTALL_FALSE='#' -else - ECA_AM_PYECASOUND_INSTALL_TRUE='#' - ECA_AM_PYECASOUND_INSTALL_FALSE= -fi - - - - -rubyecasound_support=yes - -# Check whether --enable-rubyecasound was given. -if test "${enable_rubyecasound+set}" = set; then - enableval=$enable_rubyecasound; - case "$enableval" in - y | yes) - rubyecasound_support=yes - ;; - - n | no | none) - rubyecasound_support=no - ;; - - *) - rubyecasound_support=no - ;; - esac - -fi - - - -# Extract the first word of "ruby", so it can be a program name with args. -set dummy ruby; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_path_RUBYPATH+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $RUBYPATH in - [\\/]* | ?:[\\/]*) - ac_cv_path_RUBYPATH="$RUBYPATH" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_RUBYPATH="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - - test -z "$ac_cv_path_RUBYPATH" && ac_cv_path_RUBYPATH="none" - ;; -esac -fi -RUBYPATH=$ac_cv_path_RUBYPATH -if test -n "$RUBYPATH"; then - { echo "$as_me:$LINENO: result: $RUBYPATH" >&5 -echo "${ECHO_T}$RUBYPATH" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -if test x$RUBYPATH = xnone; then - rubyecasound_support=no - ECA_S_RUBY_SITEDIR="" -else - ECA_S_RUBY_SITEDIR="`ruby -e 'require "rbconfig"; include Config; print CONFIG["sitedir"] + "/" + CONFIG["MAJOR"] + "." + CONFIG["MINOR"]'`" -fi - - - - -if test x$rubyecasound_support = xyes; then - ECA_AM_RUBYECASOUND_INSTALL_TRUE= - ECA_AM_RUBYECASOUND_INSTALL_FALSE='#' -else - ECA_AM_RUBYECASOUND_INSTALL_TRUE='#' - ECA_AM_RUBYECASOUND_INSTALL_FALSE= -fi - - - -echo "------------------------------------------------------------------" -echo "3. Section: Programs " -echo "------------------------------------------------------------------" - - - -{ echo "$as_me:$LINENO: checking if C++ compiler supports namespaces" >&5 -echo $ECHO_N "checking if C++ compiler supports namespaces... $ECHO_C" >&6; } -ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - -old_cxx_flags=$CXXFLAGS -CXXFLAGS="-fno-exceptions $CXXFLAGS" # hack around gcc3.x feature -if test "$cross_compiling" = yes; then - - { echo "$as_me:$LINENO: result: no." >&5 -echo "${ECHO_T}no." >&6; } - - -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -#include -#include - -using std::string; - -int main(void) -{ - string s ("foo"); - std::vector v; - return(0); -} - -_ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - - { echo "$as_me:$LINENO: result: yes." >&5 -echo "${ECHO_T}yes." >&6; } - -cat >>confdefs.h <<\_ACEOF -#define ECA_USE_CXX_STD_NAMESPACE 1 -_ACEOF - - -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) - - { echo "$as_me:$LINENO: result: no." >&5 -echo "${ECHO_T}no." >&6; } - { echo "$as_me:$LINENO: WARNING: C++ compiler has problems with namespaces. Build process can fail because of this." >&5 -echo "$as_me: WARNING: C++ compiler has problems with namespaces. Build process can fail because of this." >&2;} - - -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi - - -CXXFLAGS=$old_cxx_flags - - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -# Check whether --enable-shared was given. -if test "${enable_shared+set}" = set; then - enableval=$enable_shared; p=${PACKAGE-default} - case $enableval in - yes) enable_shared=yes ;; - no) enable_shared=no ;; - *) - enable_shared=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for pkg in $enableval; do - IFS="$lt_save_ifs" - if test "X$pkg" = "X$p"; then - enable_shared=yes - fi - done - IFS="$lt_save_ifs" - ;; - esac -else - enable_shared=yes -fi - - -# Check whether --enable-static was given. -if test "${enable_static+set}" = set; then - enableval=$enable_static; p=${PACKAGE-default} - case $enableval in - yes) enable_static=yes ;; - no) enable_static=no ;; - *) - enable_static=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for pkg in $enableval; do - IFS="$lt_save_ifs" - if test "X$pkg" = "X$p"; then - enable_static=yes - fi - done - IFS="$lt_save_ifs" - ;; - esac -else - enable_static=yes -fi - - -# Check whether --enable-fast-install was given. -if test "${enable_fast_install+set}" = set; then - enableval=$enable_fast_install; p=${PACKAGE-default} - case $enableval in - yes) enable_fast_install=yes ;; - no) enable_fast_install=no ;; - *) - enable_fast_install=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for pkg in $enableval; do - IFS="$lt_save_ifs" - if test "X$pkg" = "X$p"; then - enable_fast_install=yes - fi - done - IFS="$lt_save_ifs" - ;; - esac -else - enable_fast_install=yes -fi - - -{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 -echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } -if test "${lt_cv_path_SED+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # Loop through the user's path and test for sed and gsed. -# Then use that list of sed's as ones to test for truncation. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for lt_ac_prog in sed gsed; do - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" - fi - done - done -done -IFS=$as_save_IFS -lt_ac_max=0 -lt_ac_count=0 -# Add /usr/xpg4/bin/sed as it is typically found on Solaris -# along with /bin/sed that truncates output. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do - test ! -f $lt_ac_sed && continue - cat /dev/null > conftest.in - lt_ac_count=0 - echo $ECHO_N "0123456789$ECHO_C" >conftest.in - # Check for GNU sed and select it if it is found. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then - lt_cv_path_SED=$lt_ac_sed - break - fi - while true; do - cat conftest.in conftest.in >conftest.tmp - mv conftest.tmp conftest.in - cp conftest.in conftest.nl - echo >>conftest.nl - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break - cmp -s conftest.out conftest.nl || break - # 10000 chars as input seems more than enough - test $lt_ac_count -gt 10 && break - lt_ac_count=`expr $lt_ac_count + 1` - if test $lt_ac_count -gt $lt_ac_max; then - lt_ac_max=$lt_ac_count - lt_cv_path_SED=$lt_ac_sed - fi - done -done - -fi - -SED=$lt_cv_path_SED - -{ echo "$as_me:$LINENO: result: $SED" >&5 -echo "${ECHO_T}$SED" >&6; } - - -# Check whether --with-gnu-ld was given. -if test "${with_gnu_ld+set}" = set; then - withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes -else - with_gnu_ld=no -fi - -ac_prog=ld -if test "$GCC" = yes; then - # Check if gcc -print-prog-name=ld gives a path. - { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [\\/]* | ?:[\\/]*) - re_direlt='/[^/][^/]*/\.\./' - # Canonicalize the pathname of ld - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` - done - test -z "$LD" && LD="$ac_prog" - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac -elif test "$with_gnu_ld" = yes; then - { echo "$as_me:$LINENO: checking for GNU ld" >&5 -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } -else - { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } -fi -if test "${lt_cv_path_LD+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -z "$LD"; then - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in $PATH; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - lt_cv_path_LD="$ac_dir/$ac_prog" - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some variants of GNU ld only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - case `"$lt_cv_path_LD" -v 2>&1 &5 -echo "${ECHO_T}$LD" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} - { (exit 1); exit 1; }; } -{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } -if test "${lt_cv_prog_gnu_ld+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # I'd rather use --version here, but apparently some GNU lds only accept -v. -case `$LD -v 2>&1 &5 -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } -with_gnu_ld=$lt_cv_prog_gnu_ld - - -{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 -echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } -if test "${lt_cv_ld_reload_flag+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_ld_reload_flag='-r' -fi -{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 -echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } -reload_flag=$lt_cv_ld_reload_flag -case $reload_flag in -"" | " "*) ;; -*) reload_flag=" $reload_flag" ;; -esac -reload_cmds='$LD$reload_flag -o $output$reload_objs' -case $host_os in - darwin*) - if test "$GCC" = yes; then - reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' - else - reload_cmds='$LD$reload_flag -o $output$reload_objs' - fi - ;; -esac - -{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 -echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } -if test "${lt_cv_path_NM+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$NM"; then - # Let the user override the test. - lt_cv_path_NM="$NM" -else - lt_nm_to_check="${ac_tool_prefix}nm" - if test -n "$ac_tool_prefix" && test "$build" = "$host"; then - lt_nm_to_check="$lt_nm_to_check nm" - fi - for lt_tmp_nm in $lt_nm_to_check; do - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - tmp_nm="$ac_dir/$lt_tmp_nm" - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then - # Check to see if the nm accepts a BSD-compat flag. - # Adding the `sed 1q' prevents false positives on HP-UX, which says: - # nm: unknown option "B" ignored - # Tru64's nm complains that /dev/null is an invalid object file - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in - */dev/null* | *'Invalid file or object type'*) - lt_cv_path_NM="$tmp_nm -B" - break - ;; - *) - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in - */dev/null*) - lt_cv_path_NM="$tmp_nm -p" - break - ;; - *) - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but - continue # so that we can try to find one that supports BSD flags - ;; - esac - ;; - esac - fi - done - IFS="$lt_save_ifs" - done - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm -fi -fi -{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 -echo "${ECHO_T}$lt_cv_path_NM" >&6; } -NM="$lt_cv_path_NM" - -{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 -echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } -LN_S=$as_ln_s -if test "$LN_S" = "ln -s"; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } -else - { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 -echo "${ECHO_T}no, using $LN_S" >&6; } -fi - -{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 -echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } -if test "${lt_cv_deplibs_check_method+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_file_magic_cmd='$MAGIC_CMD' -lt_cv_file_magic_test_file= -lt_cv_deplibs_check_method='unknown' -# Need to set the preceding variable on all platforms that support -# interlibrary dependencies. -# 'none' -- dependencies not supported. -# `unknown' -- same as none, but documents that we really don't know. -# 'pass_all' -- all dependencies passed with no checks. -# 'test_compile' -- check by making test program. -# 'file_magic [[regex]]' -- check by looking for files in library path -# which responds to the $file_magic_cmd with a given extended regex. -# If you have `file' or equivalent on your system and you're not sure -# whether `pass_all' will *always* work, you probably want this one. - -case $host_os in -aix[4-9]*) - lt_cv_deplibs_check_method=pass_all - ;; - -beos*) - lt_cv_deplibs_check_method=pass_all - ;; - -bsdi[45]*) - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' - lt_cv_file_magic_cmd='/usr/bin/file -L' - lt_cv_file_magic_test_file=/shlib/libc.so - ;; - -cygwin*) - # func_win32_libid is a shell function defined in ltmain.sh - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' - ;; - -mingw* | pw32*) - # Base MSYS/MinGW do not provide the 'file' command needed by - # func_win32_libid shell function, so use a weaker test based on 'objdump', - # unless we find 'file', for example because we are cross-compiling. - if ( file / ) >/dev/null 2>&1; then - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' - else - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' - lt_cv_file_magic_cmd='$OBJDUMP -f' - fi - ;; - -darwin* | rhapsody*) - lt_cv_deplibs_check_method=pass_all - ;; - -freebsd* | dragonfly*) - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then - case $host_cpu in - i*86 ) - # Not sure whether the presence of OpenBSD here was a mistake. - # Let's accept both of them until this is cleared up. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' - lt_cv_file_magic_cmd=/usr/bin/file - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` - ;; - esac - else - lt_cv_deplibs_check_method=pass_all - fi - ;; - -gnu*) - lt_cv_deplibs_check_method=pass_all - ;; - -hpux10.20* | hpux11*) - lt_cv_file_magic_cmd=/usr/bin/file - case $host_cpu in - ia64*) - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so - ;; - hppa*64*) - 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]' - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl - ;; - *) - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' - lt_cv_file_magic_test_file=/usr/lib/libc.sl - ;; - esac - ;; - -interix[3-9]*) - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' - ;; - -irix5* | irix6* | nonstopux*) - case $LD in - *-32|*"-32 ") libmagic=32-bit;; - *-n32|*"-n32 ") libmagic=N32;; - *-64|*"-64 ") libmagic=64-bit;; - *) libmagic=never-match;; - esac - lt_cv_deplibs_check_method=pass_all - ;; - -# This must be Linux ELF. -linux* | k*bsd*-gnu) - lt_cv_deplibs_check_method=pass_all - ;; - -netbsd* | netbsdelf*-gnu) - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' - else - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' - fi - ;; - -newos6*) - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' - lt_cv_file_magic_cmd=/usr/bin/file - lt_cv_file_magic_test_file=/usr/lib/libnls.so - ;; - -nto-qnx*) - lt_cv_deplibs_check_method=unknown - ;; - -openbsd*) - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' - else - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' - fi - ;; - -osf3* | osf4* | osf5*) - lt_cv_deplibs_check_method=pass_all - ;; - -rdos*) - lt_cv_deplibs_check_method=pass_all - ;; - -solaris*) - lt_cv_deplibs_check_method=pass_all - ;; - -sysv4 | sysv4.3*) - case $host_vendor in - motorola) - 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]' - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` - ;; - ncr) - lt_cv_deplibs_check_method=pass_all - ;; - sequent) - lt_cv_file_magic_cmd='/bin/file' - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' - ;; - sni) - lt_cv_file_magic_cmd='/bin/file' - lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" - lt_cv_file_magic_test_file=/lib/libc.so - ;; - siemens) - lt_cv_deplibs_check_method=pass_all - ;; - pc) - lt_cv_deplibs_check_method=pass_all - ;; - esac - ;; - -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - lt_cv_deplibs_check_method=pass_all - ;; -esac - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 -echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } -file_magic_cmd=$lt_cv_file_magic_cmd -deplibs_check_method=$lt_cv_deplibs_check_method -test -z "$deplibs_check_method" && deplibs_check_method=unknown - - - - -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} - -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} - -# Allow CC to be a program name with arguments. -compiler=$CC - -# Check whether --enable-libtool-lock was given. -if test "${enable_libtool_lock+set}" = set; then - enableval=$enable_libtool_lock; -fi - -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes - -# Some flags need to be propagated to the compiler or linker for good -# libtool support. -case $host in -ia64-*-hpux*) - # Find out which ABI we are using. - echo 'int i;' > conftest.$ac_ext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - case `/usr/bin/file conftest.$ac_objext` in - *ELF-32*) - HPUX_IA64_MODE="32" - ;; - *ELF-64*) - HPUX_IA64_MODE="64" - ;; - esac - fi - rm -rf conftest* - ;; -*-*-irix6*) - # Find out which ABI we are using. - echo '#line 7482 "configure"' > conftest.$ac_ext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - if test "$lt_cv_prog_gnu_ld" = yes; then - case `/usr/bin/file conftest.$ac_objext` in - *32-bit*) - LD="${LD-ld} -melf32bsmip" - ;; - *N32*) - LD="${LD-ld} -melf32bmipn32" - ;; - *64-bit*) - LD="${LD-ld} -melf64bmip" - ;; - esac - else - case `/usr/bin/file conftest.$ac_objext` in - *32-bit*) - LD="${LD-ld} -32" - ;; - *N32*) - LD="${LD-ld} -n32" - ;; - *64-bit*) - LD="${LD-ld} -64" - ;; - esac - fi - fi - rm -rf conftest* - ;; - -x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ -s390*-*linux*|sparc*-*linux*) - # Find out which ABI we are using. - echo 'int i;' > conftest.$ac_ext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - case `/usr/bin/file conftest.o` in - *32-bit*) - case $host in - x86_64-*kfreebsd*-gnu) - LD="${LD-ld} -m elf_i386_fbsd" - ;; - x86_64-*linux*) - LD="${LD-ld} -m elf_i386" - ;; - ppc64-*linux*|powerpc64-*linux*) - LD="${LD-ld} -m elf32ppclinux" - ;; - s390x-*linux*) - LD="${LD-ld} -m elf_s390" - ;; - sparc64-*linux*) - LD="${LD-ld} -m elf32_sparc" - ;; - esac - ;; - *64-bit*) - case $host in - x86_64-*kfreebsd*-gnu) - LD="${LD-ld} -m elf_x86_64_fbsd" - ;; - x86_64-*linux*) - LD="${LD-ld} -m elf_x86_64" - ;; - ppc*-*linux*|powerpc*-*linux*) - LD="${LD-ld} -m elf64ppc" - ;; - s390*-*linux*) - LD="${LD-ld} -m elf64_s390" - ;; - sparc*-*linux*) - LD="${LD-ld} -m elf64_sparc" - ;; - esac - ;; - esac - fi - rm -rf conftest* - ;; - -*-*-sco3.2v5*) - # On SCO OpenServer 5, we need -belf to get full-featured binaries. - SAVE_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS -belf" - { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 -echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } -if test "${lt_cv_cc_needs_belf+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - lt_cv_cc_needs_belf=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - lt_cv_cc_needs_belf=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 -echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } - if test x"$lt_cv_cc_needs_belf" != x"yes"; then - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf - CFLAGS="$SAVE_CFLAGS" - fi - ;; -sparc*-*solaris*) - # Find out which ABI we are using. - echo 'int i;' > conftest.$ac_ext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - case `/usr/bin/file conftest.o` in - *64-bit*) - case $lt_cv_prog_gnu_ld in - yes*) LD="${LD-ld} -m elf64_sparc" ;; - *) - if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then - LD="${LD-ld} -64" - fi - ;; - esac - ;; - esac - fi - rm -rf conftest* - ;; - - -esac - -need_locks="$enable_libtool_lock" - - - - -for ac_header in dlfcn.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_compiler=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } - -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_preproc=no -fi - -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } - -fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - - - -if test -n "$CXX" && ( test "X$CXX" != "Xno" && - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || - (test "X$CXX" != "Xg++"))) ; then - ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 -echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } -if test -z "$CXXCPP"; then - if test "${ac_cv_prog_CXXCPP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # Double quotes because CXXCPP needs to be expanded - for CXXCPP in "$CXX -E" "/lib/cpp" - do - ac_preproc_ok=false -for ac_cxx_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || - test ! -s conftest.err - }; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Broken: fails on valid input. -continue -fi - -rm -f conftest.err conftest.$ac_ext - - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || - test ! -s conftest.err - }; then - # Broken: success on invalid input. -continue -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Passes both tests. -ac_preproc_ok=: -break -fi - -rm -f conftest.err conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -if $ac_preproc_ok; then - break -fi - - done - ac_cv_prog_CXXCPP=$CXXCPP - -fi - CXXCPP=$ac_cv_prog_CXXCPP -else - ac_cv_prog_CXXCPP=$CXXCPP -fi -{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 -echo "${ECHO_T}$CXXCPP" >&6; } -ac_preproc_ok=false -for ac_cxx_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || - test ! -s conftest.err - }; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Broken: fails on valid input. -continue -fi - -rm -f conftest.err conftest.$ac_ext - - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || - test ! -s conftest.err - }; then - # Broken: success on invalid input. -continue -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Passes both tests. -ac_preproc_ok=: -break -fi - -rm -f conftest.err conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -if $ac_preproc_ok; then - : -else - { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check -See \`config.log' for more details." >&5 -echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -fi - -ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - -fi - -ac_ext=f -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_f77_compiler_gnu -if test -n "$ac_tool_prefix"; then - for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn - do - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_F77+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$F77"; then - ac_cv_prog_F77="$F77" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_F77="$ac_tool_prefix$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -F77=$ac_cv_prog_F77 -if test -n "$F77"; then - { echo "$as_me:$LINENO: result: $F77" >&5 -echo "${ECHO_T}$F77" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$F77" && break - done -fi -if test -z "$F77"; then - ac_ct_F77=$F77 - for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_F77+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_F77"; then - ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_F77="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_F77=$ac_cv_prog_ac_ct_F77 -if test -n "$ac_ct_F77"; then - { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 -echo "${ECHO_T}$ac_ct_F77" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$ac_ct_F77" && break -done - - if test "x$ac_ct_F77" = x; then - F77="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - F77=$ac_ct_F77 - fi -fi - - -# Provide some information about the compiler. -echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 -ac_compiler=`set X $ac_compile; echo $2` -{ (ac_try="$ac_compiler --version >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler --version >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -v >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler -v >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -V >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler -V >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -rm -f a.out - -# If we don't use `.F' as extension, the preprocessor is not run on the -# input file. (Note that this only needs to work for GNU compilers.) -ac_save_ext=$ac_ext -ac_ext=F -{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 -echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } -if test "${ac_cv_f77_compiler_gnu+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF - program main -#ifndef __GNUC__ - choke me -#endif - - end -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_f77_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_compiler_gnu=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_compiler_gnu=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -ac_cv_f77_compiler_gnu=$ac_compiler_gnu - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 -echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } -ac_ext=$ac_save_ext -ac_test_FFLAGS=${FFLAGS+set} -ac_save_FFLAGS=$FFLAGS -FFLAGS= -{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 -echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } -if test "${ac_cv_prog_f77_g+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - FFLAGS=-g -cat >conftest.$ac_ext <<_ACEOF - program main - - end -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_f77_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_f77_g=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_prog_f77_g=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 -echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } -if test "$ac_test_FFLAGS" = set; then - FFLAGS=$ac_save_FFLAGS -elif test $ac_cv_prog_f77_g = yes; then - if test "x$ac_cv_f77_compiler_gnu" = xyes; then - FFLAGS="-g -O2" - else - FFLAGS="-g" - fi -else - if test "x$ac_cv_f77_compiler_gnu" = xyes; then - FFLAGS="-O2" - else - FFLAGS= - fi -fi - -G77=`test $ac_compiler_gnu = yes && echo yes` -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - - -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! -# find the maximum length of command line arguments -{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 -echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } -if test "${lt_cv_sys_max_cmd_len+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - i=0 - teststring="ABCD" - - case $build_os in - msdosdjgpp*) - # On DJGPP, this test can blow up pretty badly due to problems in libc - # (any single argument exceeding 2000 bytes causes a buffer overrun - # during glob expansion). Even if it were fixed, the result of this - # check would be larger than it should be. - lt_cv_sys_max_cmd_len=12288; # 12K is about right - ;; - - gnu*) - # Under GNU Hurd, this test is not required because there is - # no limit to the length of command line arguments. - # Libtool will interpret -1 as no limit whatsoever - lt_cv_sys_max_cmd_len=-1; - ;; - - cygwin* | mingw*) - # On Win9x/ME, this test blows up -- it succeeds, but takes - # about 5 minutes as the teststring grows exponentially. - # Worse, since 9x/ME are not pre-emptively multitasking, - # you end up with a "frozen" computer, even though with patience - # the test eventually succeeds (with a max line length of 256k). - # Instead, let's just punt: use the minimum linelength reported by - # all of the supported platforms: 8192 (on NT/2K/XP). - lt_cv_sys_max_cmd_len=8192; - ;; - - amigaos*) - # On AmigaOS with pdksh, this test takes hours, literally. - # So we just punt and use a minimum line length of 8192. - lt_cv_sys_max_cmd_len=8192; - ;; - - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) - # This has been around since 386BSD, at least. Likely further. - if test -x /sbin/sysctl; then - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` - elif test -x /usr/sbin/sysctl; then - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` - else - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs - fi - # And add a safety zone - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` - ;; - - interix*) - # We know the value 262144 and hardcode it with a safety zone (like BSD) - lt_cv_sys_max_cmd_len=196608 - ;; - - osf*) - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not - # nice to cause kernel panics so lets avoid the loop below. - # First set a reasonable default. - lt_cv_sys_max_cmd_len=16384 - # - if test -x /sbin/sysconfig; then - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in - *1*) lt_cv_sys_max_cmd_len=-1 ;; - esac - fi - ;; - sco3.2v5*) - lt_cv_sys_max_cmd_len=102400 - ;; - sysv5* | sco5v6* | sysv4.2uw2*) - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` - if test -n "$kargmax"; then - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` - else - lt_cv_sys_max_cmd_len=32768 - fi - ;; - *) - lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` - if test -n "$lt_cv_sys_max_cmd_len"; then - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` - else - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} - while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ - = "XX$teststring") >/dev/null 2>&1 && - new_result=`expr "X$teststring" : ".*" 2>&1` && - lt_cv_sys_max_cmd_len=$new_result && - test $i != 17 # 1/2 MB should be enough - do - i=`expr $i + 1` - teststring=$teststring$teststring - done - teststring= - # Add a significant safety factor because C++ compilers can tack on massive - # amounts of additional arguments before passing them to the linker. - # It appears as though 1/2 is a usable value. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` - fi - ;; - esac - -fi - -if test -n $lt_cv_sys_max_cmd_len ; then - { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 -echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } -else - { echo "$as_me:$LINENO: result: none" >&5 -echo "${ECHO_T}none" >&6; } -fi - - - - - -# Check for command to grab the raw symbol name followed by C symbol from nm. -{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 -echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } -if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - -# These are sane defaults that work on at least a few old systems. -# [They come from Ultrix. What could be older than Ultrix?!! ;)] - -# Character class describing NM global symbol codes. -symcode='[BCDEGRST]' - -# Regexp to match symbols that can be accessed directly from C. -sympat='\([_A-Za-z][_A-Za-z0-9]*\)' - -# Transform an extracted symbol line into a proper C declaration -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" - -# Transform an extracted symbol line into symbol name and symbol address -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'" - -# Define system-specific variables. -case $host_os in -aix*) - symcode='[BCDT]' - ;; -cygwin* | mingw* | pw32*) - symcode='[ABCDGISTW]' - ;; -hpux*) # Its linker distinguishes data from code symbols - if test "$host_cpu" = ia64; then - symcode='[ABCDEGRST]' - fi - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" - 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'" - ;; -linux* | k*bsd*-gnu) - if test "$host_cpu" = ia64; then - symcode='[ABCDGIRSTW]' - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" - 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'" - fi - ;; -irix* | nonstopux*) - symcode='[BCDEGRST]' - ;; -osf*) - symcode='[BCDEGQRST]' - ;; -solaris*) - symcode='[BDRT]' - ;; -sco3.2v5*) - symcode='[DT]' - ;; -sysv4.2uw2*) - symcode='[DT]' - ;; -sysv5* | sco5v6* | unixware* | OpenUNIX*) - symcode='[ABDT]' - ;; -sysv4) - symcode='[DFNSTU]' - ;; -esac - -# Handle CRLF in mingw tool chain -opt_cr= -case $build_os in -mingw*) - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp - ;; -esac - -# If we're using GNU nm, then use its standard symbol codes. -case `$NM -V 2>&1` in -*GNU* | *'with BFD'*) - symcode='[ABCDGIRSTW]' ;; -esac - -# Try without a prefix undercore, then with it. -for ac_symprfx in "" "_"; do - - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. - symxfrm="\\1 $ac_symprfx\\2 \\2" - - # Write the raw and C identifiers. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" - - # Check to see that the pipe works correctly. - pipe_works=no - - rm -f conftest* - cat > conftest.$ac_ext <&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - # Now try to grab the symbols. - nlist=conftest.nm - if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 - (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && test -s "$nlist"; then - # Try sorting and uniquifying the output. - if sort "$nlist" | uniq > "$nlist"T; then - mv -f "$nlist"T "$nlist" - else - rm -f "$nlist"T - fi - - # Make sure that we snagged all the symbols we need. - if grep ' nm_test_var$' "$nlist" >/dev/null; then - if grep ' nm_test_func$' "$nlist" >/dev/null; then - cat < conftest.$ac_ext -#ifdef __cplusplus -extern "C" { -#endif - -EOF - # Now generate the symbol file. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' - - cat <> conftest.$ac_ext -#if defined (__STDC__) && __STDC__ -# define lt_ptr_t void * -#else -# define lt_ptr_t char * -# define const -#endif - -/* The mapping between symbol names and symbols. */ -const struct { - const char *name; - lt_ptr_t address; -} -lt_preloaded_symbols[] = -{ -EOF - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext - cat <<\EOF >> conftest.$ac_ext - {0, (lt_ptr_t) 0} -}; - -#ifdef __cplusplus -} -#endif -EOF - # Now try linking the two files. - mv conftest.$ac_objext conftstm.$ac_objext - lt_save_LIBS="$LIBS" - lt_save_CFLAGS="$CFLAGS" - LIBS="conftstm.$ac_objext" - CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && test -s conftest${ac_exeext}; then - pipe_works=yes - fi - LIBS="$lt_save_LIBS" - CFLAGS="$lt_save_CFLAGS" - else - echo "cannot find nm_test_func in $nlist" >&5 - fi - else - echo "cannot find nm_test_var in $nlist" >&5 - fi - else - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 - fi - else - echo "$progname: failed program was:" >&5 - cat conftest.$ac_ext >&5 - fi - rm -rf conftest* conftst* - - # Do not use the global_symbol_pipe unless it works. - if test "$pipe_works" = yes; then - break - else - lt_cv_sys_global_symbol_pipe= - fi -done - -fi - -if test -z "$lt_cv_sys_global_symbol_pipe"; then - lt_cv_sys_global_symbol_to_cdecl= -fi -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then - { echo "$as_me:$LINENO: result: failed" >&5 -echo "${ECHO_T}failed" >&6; } -else - { echo "$as_me:$LINENO: result: ok" >&5 -echo "${ECHO_T}ok" >&6; } -fi - -{ echo "$as_me:$LINENO: checking for objdir" >&5 -echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } -if test "${lt_cv_objdir+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - rm -f .libs 2>/dev/null -mkdir .libs 2>/dev/null -if test -d .libs; then - lt_cv_objdir=.libs -else - # MS-DOS does not allow filenames that begin with a dot. - lt_cv_objdir=_libs -fi -rmdir .libs 2>/dev/null -fi -{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 -echo "${ECHO_T}$lt_cv_objdir" >&6; } -objdir=$lt_cv_objdir - - - - - -case $host_os in -aix3*) - # AIX sometimes has problems with the GCC collect2 program. For some - # reason, if we set the COLLECT_NAMES environment variable, the problems - # vanish in a puff of smoke. - if test "X${COLLECT_NAMES+set}" != Xset; then - COLLECT_NAMES= - export COLLECT_NAMES - fi - ;; -esac - -# Sed substitution that helps us do robust quoting. It backslashifies -# metacharacters that are still active within double-quoted strings. -Xsed='sed -e 1s/^X//' -sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' - -# Same as above, but do not quote variable references. -double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' - -# Sed substitution to delay expansion of an escaped shell variable in a -# double_quote_subst'ed string. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' - -# Sed substitution to avoid accidental globbing in evaled expressions -no_glob_subst='s/\*/\\\*/g' - -# Constants: -rm="rm -f" - -# Global variables: -default_ofile=libtool -can_build_shared=yes - -# All known linkers require a `.a' archive for static linking (except MSVC, -# which needs '.lib'). -libext=a -ltmain="$ac_aux_dir/ltmain.sh" -ofile="$default_ofile" -with_gnu_ld="$lt_cv_prog_gnu_ld" - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. -set dummy ${ac_tool_prefix}ar; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_AR+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$AR"; then - ac_cv_prog_AR="$AR" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_AR="${ac_tool_prefix}ar" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -AR=$ac_cv_prog_AR -if test -n "$AR"; then - { echo "$as_me:$LINENO: result: $AR" >&5 -echo "${ECHO_T}$AR" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_AR"; then - ac_ct_AR=$AR - # Extract the first word of "ar", so it can be a program name with args. -set dummy ar; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_AR+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_AR"; then - ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_AR="ar" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_AR=$ac_cv_prog_ac_ct_AR -if test -n "$ac_ct_AR"; then - { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 -echo "${ECHO_T}$ac_ct_AR" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_ct_AR" = x; then - AR="false" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - AR=$ac_ct_AR - fi -else - AR="$ac_cv_prog_AR" -fi - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. -set dummy ${ac_tool_prefix}ranlib; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_RANLIB+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$RANLIB"; then - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -RANLIB=$ac_cv_prog_RANLIB -if test -n "$RANLIB"; then - { echo "$as_me:$LINENO: result: $RANLIB" >&5 -echo "${ECHO_T}$RANLIB" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_RANLIB"; then - ac_ct_RANLIB=$RANLIB - # Extract the first word of "ranlib", so it can be a program name with args. -set dummy ranlib; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_RANLIB"; then - ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_RANLIB="ranlib" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB -if test -n "$ac_ct_RANLIB"; then - { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 -echo "${ECHO_T}$ac_ct_RANLIB" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_ct_RANLIB" = x; then - RANLIB=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - RANLIB=$ac_ct_RANLIB - fi -else - RANLIB="$ac_cv_prog_RANLIB" -fi - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. -set dummy ${ac_tool_prefix}strip; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$STRIP"; then - ac_cv_prog_STRIP="$STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_STRIP="${ac_tool_prefix}strip" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -STRIP=$ac_cv_prog_STRIP -if test -n "$STRIP"; then - { echo "$as_me:$LINENO: result: $STRIP" >&5 -echo "${ECHO_T}$STRIP" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_STRIP"; then - ac_ct_STRIP=$STRIP - # Extract the first word of "strip", so it can be a program name with args. -set dummy strip; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_STRIP"; then - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_STRIP="strip" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP -if test -n "$ac_ct_STRIP"; then - { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 -echo "${ECHO_T}$ac_ct_STRIP" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_ct_STRIP" = x; then - STRIP=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - STRIP=$ac_ct_STRIP - fi -else - STRIP="$ac_cv_prog_STRIP" -fi - - -old_CC="$CC" -old_CFLAGS="$CFLAGS" - -# Set sane defaults for various variables -test -z "$AR" && AR=ar -test -z "$AR_FLAGS" && AR_FLAGS=cru -test -z "$AS" && AS=as -test -z "$CC" && CC=cc -test -z "$LTCC" && LTCC=$CC -test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS -test -z "$DLLTOOL" && DLLTOOL=dlltool -test -z "$LD" && LD=ld -test -z "$LN_S" && LN_S="ln -s" -test -z "$MAGIC_CMD" && MAGIC_CMD=file -test -z "$NM" && NM=nm -test -z "$SED" && SED=sed -test -z "$OBJDUMP" && OBJDUMP=objdump -test -z "$RANLIB" && RANLIB=: -test -z "$STRIP" && STRIP=: -test -z "$ac_objext" && ac_objext=o - -# Determine commands to create old-style static archives. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' -old_postinstall_cmds='chmod 644 $oldlib' -old_postuninstall_cmds= - -if test -n "$RANLIB"; then - case $host_os in - openbsd*) - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" - ;; - *) - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" - ;; - esac - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" -fi - -for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` - - -# Only perform the check for file, if the check method requires it -case $deplibs_check_method in -file_magic*) - if test "$file_magic_cmd" = '$MAGIC_CMD'; then - { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 -echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $MAGIC_CMD in -[\\/*] | ?:[\\/]*) - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. - ;; -*) - lt_save_MAGIC_CMD="$MAGIC_CMD" - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" - for ac_dir in $ac_dummy; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/${ac_tool_prefix}file; then - lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" - if test -n "$file_magic_test_file"; then - case $deplibs_check_method in - "file_magic "*) - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` - MAGIC_CMD="$lt_cv_path_MAGIC_CMD" - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | - $EGREP "$file_magic_regex" > /dev/null; then - : - else - cat <&2 - -*** Warning: the command libtool uses to detect shared libraries, -*** $file_magic_cmd, produces output that libtool cannot recognize. -*** The result is that libtool may fail to recognize shared libraries -*** as such. This will affect the creation of libtool libraries that -*** depend on shared libraries, but programs linked with such libtool -*** libraries will work regardless of this problem. Nevertheless, you -*** may want to report the problem to your system manager and/or to -*** bug-libtool@gnu.org - -EOF - fi ;; - esac - fi - break - fi - done - IFS="$lt_save_ifs" - MAGIC_CMD="$lt_save_MAGIC_CMD" - ;; -esac -fi - -MAGIC_CMD="$lt_cv_path_MAGIC_CMD" -if test -n "$MAGIC_CMD"; then - { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 -echo "${ECHO_T}$MAGIC_CMD" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - -if test -z "$lt_cv_path_MAGIC_CMD"; then - if test -n "$ac_tool_prefix"; then - { echo "$as_me:$LINENO: checking for file" >&5 -echo $ECHO_N "checking for file... $ECHO_C" >&6; } -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $MAGIC_CMD in -[\\/*] | ?:[\\/]*) - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. - ;; -*) - lt_save_MAGIC_CMD="$MAGIC_CMD" - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" - for ac_dir in $ac_dummy; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/file; then - lt_cv_path_MAGIC_CMD="$ac_dir/file" - if test -n "$file_magic_test_file"; then - case $deplibs_check_method in - "file_magic "*) - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` - MAGIC_CMD="$lt_cv_path_MAGIC_CMD" - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | - $EGREP "$file_magic_regex" > /dev/null; then - : - else - cat <&2 - -*** Warning: the command libtool uses to detect shared libraries, -*** $file_magic_cmd, produces output that libtool cannot recognize. -*** The result is that libtool may fail to recognize shared libraries -*** as such. This will affect the creation of libtool libraries that -*** depend on shared libraries, but programs linked with such libtool -*** libraries will work regardless of this problem. Nevertheless, you -*** may want to report the problem to your system manager and/or to -*** bug-libtool@gnu.org - -EOF - fi ;; - esac - fi - break - fi - done - IFS="$lt_save_ifs" - MAGIC_CMD="$lt_save_MAGIC_CMD" - ;; -esac -fi - -MAGIC_CMD="$lt_cv_path_MAGIC_CMD" -if test -n "$MAGIC_CMD"; then - { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 -echo "${ECHO_T}$MAGIC_CMD" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - else - MAGIC_CMD=: - fi -fi - - fi - ;; -esac - - - case $host_os in - rhapsody* | darwin*) - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. -set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_DSYMUTIL+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$DSYMUTIL"; then - ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -DSYMUTIL=$ac_cv_prog_DSYMUTIL -if test -n "$DSYMUTIL"; then - { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 -echo "${ECHO_T}$DSYMUTIL" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_DSYMUTIL"; then - ac_ct_DSYMUTIL=$DSYMUTIL - # Extract the first word of "dsymutil", so it can be a program name with args. -set dummy dsymutil; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_DSYMUTIL"; then - ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL -if test -n "$ac_ct_DSYMUTIL"; then - { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 -echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_ct_DSYMUTIL" = x; then - DSYMUTIL=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - DSYMUTIL=$ac_ct_DSYMUTIL - fi -else - DSYMUTIL="$ac_cv_prog_DSYMUTIL" -fi - - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. -set dummy ${ac_tool_prefix}nmedit; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_NMEDIT+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$NMEDIT"; then - ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -NMEDIT=$ac_cv_prog_NMEDIT -if test -n "$NMEDIT"; then - { echo "$as_me:$LINENO: result: $NMEDIT" >&5 -echo "${ECHO_T}$NMEDIT" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_NMEDIT"; then - ac_ct_NMEDIT=$NMEDIT - # Extract the first word of "nmedit", so it can be a program name with args. -set dummy nmedit; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_NMEDIT"; then - ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_NMEDIT="nmedit" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT -if test -n "$ac_ct_NMEDIT"; then - { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 -echo "${ECHO_T}$ac_ct_NMEDIT" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_ct_NMEDIT" = x; then - NMEDIT=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - NMEDIT=$ac_ct_NMEDIT - fi -else - NMEDIT="$ac_cv_prog_NMEDIT" -fi - - - { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 -echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; } -if test "${lt_cv_apple_cc_single_mod+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_apple_cc_single_mod=no - if test -z "${LT_MULTI_MODULE}"; then - # By default we will add the -single_module flag. You can override - # by either setting the environment variable LT_MULTI_MODULE - # non-empty at configure time, or by adding -multi_module to the - # link flags. - echo "int foo(void){return 1;}" > conftest.c - $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ - -dynamiclib ${wl}-single_module conftest.c - if test -f libconftest.dylib; then - lt_cv_apple_cc_single_mod=yes - rm -rf libconftest.dylib* - fi - rm conftest.c - fi -fi -{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 -echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; } - { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 -echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; } -if test "${lt_cv_ld_exported_symbols_list+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_ld_exported_symbols_list=no - save_LDFLAGS=$LDFLAGS - echo "_main" > conftest.sym - LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - lt_cv_ld_exported_symbols_list=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - lt_cv_ld_exported_symbols_list=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - LDFLAGS="$save_LDFLAGS" - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 -echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; } - case $host_os in - rhapsody* | darwin1.[0123]) - _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; - darwin1.*) - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; - darwin*) - # if running on 10.5 or later, the deployment target defaults - # to the OS version, if on x86, and 10.4, the deployment - # target defaults to 10.4. Don't you love it? - case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in - 10.0,*86*-darwin8*|10.0,*-darwin[91]*) - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; - 10.[012]*) - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; - 10.*) - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; - esac - ;; - esac - if test "$lt_cv_apple_cc_single_mod" = "yes"; then - _lt_dar_single_mod='$single_module' - fi - if test "$lt_cv_ld_exported_symbols_list" = "yes"; then - _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' - else - _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}" - fi - if test "$DSYMUTIL" != ":"; then - _lt_dsymutil="~$DSYMUTIL \$lib || :" - else - _lt_dsymutil= - fi - ;; - esac - - -enable_dlopen=no -enable_win32_dll=no - -# Check whether --enable-libtool-lock was given. -if test "${enable_libtool_lock+set}" = set; then - enableval=$enable_libtool_lock; -fi - -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes - - -# Check whether --with-pic was given. -if test "${with_pic+set}" = set; then - withval=$with_pic; pic_mode="$withval" -else - pic_mode=default -fi - -test -z "$pic_mode" && pic_mode=default - -# Use C for the default configuration in the libtool script -tagname= -lt_save_CC="$CC" -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -# Source file extension for C test sources. -ac_ext=c - -# Object file extension for compiled C test sources. -objext=o -objext=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code="int some_variable = 0;" - -# Code to be used in simple link tests -lt_simple_link_test_code='int main(){return(0);}' - - -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} - -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} - -# Allow CC to be a program name with arguments. -compiler=$CC - - -# save warnings/boilerplate of simple test code -ac_outfile=conftest.$ac_objext -echo "$lt_simple_compile_test_code" >conftest.$ac_ext -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_compiler_boilerplate=`cat conftest.err` -$rm conftest* - -ac_outfile=conftest.$ac_objext -echo "$lt_simple_link_test_code" >conftest.$ac_ext -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_linker_boilerplate=`cat conftest.err` -$rm -r conftest* - - - -lt_prog_compiler_no_builtin_flag= - -if test "$GCC" = yes; then - lt_prog_compiler_no_builtin_flag=' -fno-builtin' - - -{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_prog_compiler_rtti_exceptions=no - ac_outfile=conftest.$ac_objext - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="-fno-rtti -fno-exceptions" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:9588: $lt_compile\"" >&5) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&5 - echo "$as_me:9592: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - lt_cv_prog_compiler_rtti_exceptions=yes - fi - fi - $rm conftest* - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } - -if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then - lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" -else - : -fi - -fi - -lt_prog_compiler_wl= -lt_prog_compiler_pic= -lt_prog_compiler_static= - -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } - - if test "$GCC" = yes; then - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_static='-static' - - case $host_os in - aix*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static='-Bstatic' - fi - ;; - - amigaos*) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the `-m68020' flag to GCC prevents building anything better, - # like `-m68040'. - lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' - ;; - - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; - - mingw* | cygwin* | pw32* | os2*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style - # (--disable-auto-import) libraries - lt_prog_compiler_pic='-DDLL_EXPORT' - ;; - - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - lt_prog_compiler_pic='-fno-common' - ;; - - interix[3-9]*) - # Interix 3.x gcc -fpic/-fPIC options generate broken code. - # Instead, we relocate shared libraries at runtime. - ;; - - msdosdjgpp*) - # Just because we use GCC doesn't mean we suddenly get shared libraries - # on systems that don't support them. - lt_prog_compiler_can_build_shared=no - enable_shared=no - ;; - - sysv4*MP*) - if test -d /usr/nec; then - lt_prog_compiler_pic=-Kconform_pic - fi - ;; - - hpux*) - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic='-fPIC' - ;; - esac - ;; - - *) - lt_prog_compiler_pic='-fPIC' - ;; - esac - else - # PORTME Check for flag to pass linker flags through the system compiler. - case $host_os in - aix*) - lt_prog_compiler_wl='-Wl,' - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static='-Bstatic' - else - lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' - fi - ;; - darwin*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - case $cc_basename in - xlc*) - lt_prog_compiler_pic='-qnocommon' - lt_prog_compiler_wl='-Wl,' - ;; - esac - ;; - - mingw* | cygwin* | pw32* | os2*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - lt_prog_compiler_pic='-DDLL_EXPORT' - ;; - - hpux9* | hpux10* | hpux11*) - lt_prog_compiler_wl='-Wl,' - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic='+Z' - ;; - esac - # Is there a better lt_prog_compiler_static that works with the bundled CC? - lt_prog_compiler_static='${wl}-a ${wl}archive' - ;; - - irix5* | irix6* | nonstopux*) - lt_prog_compiler_wl='-Wl,' - # PIC (with -KPIC) is the default. - lt_prog_compiler_static='-non_shared' - ;; - - newsos6) - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - ;; - - linux* | k*bsd*-gnu) - case $cc_basename in - icc* | ecc*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-static' - ;; - pgcc* | pgf77* | pgf90* | pgf95*) - # Portland Group compilers (*not* the Pentium gcc compiler, - # which looks to be a dead project) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-fpic' - lt_prog_compiler_static='-Bstatic' - ;; - ccc*) - lt_prog_compiler_wl='-Wl,' - # All Alpha code is PIC. - lt_prog_compiler_static='-non_shared' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C 5.9 - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - lt_prog_compiler_wl='-Wl,' - ;; - *Sun\ F*) - # Sun Fortran 8.3 passes all unrecognized flags to the linker - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - lt_prog_compiler_wl='' - ;; - esac - ;; - esac - ;; - - osf3* | osf4* | osf5*) - lt_prog_compiler_wl='-Wl,' - # All OSF/1 code is PIC. - lt_prog_compiler_static='-non_shared' - ;; - - rdos*) - lt_prog_compiler_static='-non_shared' - ;; - - solaris*) - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - case $cc_basename in - f77* | f90* | f95*) - lt_prog_compiler_wl='-Qoption ld ';; - *) - lt_prog_compiler_wl='-Wl,';; - esac - ;; - - sunos4*) - lt_prog_compiler_wl='-Qoption ld ' - lt_prog_compiler_pic='-PIC' - lt_prog_compiler_static='-Bstatic' - ;; - - sysv4 | sysv4.2uw2* | sysv4.3*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - ;; - - sysv4*MP*) - if test -d /usr/nec ;then - lt_prog_compiler_pic='-Kconform_pic' - lt_prog_compiler_static='-Bstatic' - fi - ;; - - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - ;; - - unicos*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_can_build_shared=no - ;; - - uts4*) - lt_prog_compiler_pic='-pic' - lt_prog_compiler_static='-Bstatic' - ;; - - *) - lt_prog_compiler_can_build_shared=no - ;; - esac - fi - -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 -echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } - -# -# Check to make sure the PIC flag actually works. -# -if test -n "$lt_prog_compiler_pic"; then - -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } -if test "${lt_cv_prog_compiler_pic_works+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_prog_compiler_pic_works=no - ac_outfile=conftest.$ac_objext - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="$lt_prog_compiler_pic -DPIC" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:9878: $lt_compile\"" >&5) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&5 - echo "$as_me:9882: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - lt_cv_prog_compiler_pic_works=yes - fi - fi - $rm conftest* - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 -echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; } - -if test x"$lt_cv_prog_compiler_pic_works" = xyes; then - case $lt_prog_compiler_pic in - "" | " "*) ;; - *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; - esac -else - lt_prog_compiler_pic= - lt_prog_compiler_can_build_shared=no -fi - -fi -case $host_os in - # For platforms which do not support PIC, -DPIC is meaningless: - *djgpp*) - lt_prog_compiler_pic= - ;; - *) - lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" - ;; -esac - -# -# Check to make sure the static flag actually works. -# -wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } -if test "${lt_cv_prog_compiler_static_works+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_prog_compiler_static_works=no - save_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS $lt_tmp_static_flag" - echo "$lt_simple_link_test_code" > conftest.$ac_ext - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then - # The linker can only warn and ignore the option if not recognized - # So say no if there are warnings - if test -s conftest.err; then - # Append any errors to the config.log. - cat conftest.err 1>&5 - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if diff conftest.exp conftest.er2 >/dev/null; then - lt_cv_prog_compiler_static_works=yes - fi - else - lt_cv_prog_compiler_static_works=yes - fi - fi - $rm -r conftest* - LDFLAGS="$save_LDFLAGS" - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 -echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; } - -if test x"$lt_cv_prog_compiler_static_works" = xyes; then - : -else - lt_prog_compiler_static= -fi - - -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } -if test "${lt_cv_prog_compiler_c_o+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_prog_compiler_c_o=no - $rm -r conftest 2>/dev/null - mkdir conftest - cd conftest - mkdir out - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - lt_compiler_flag="-o out/conftest2.$ac_objext" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:9982: $lt_compile\"" >&5) - (eval "$lt_compile" 2>out/conftest.err) - ac_status=$? - cat out/conftest.err >&5 - echo "$as_me:9986: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s out/conftest2.$ac_objext - then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then - lt_cv_prog_compiler_c_o=yes - fi - fi - chmod u+w . 2>&5 - $rm conftest* - # SGI C++ compiler will create directory out/ii_files/ for - # template instantiation - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files - $rm out/* && rmdir out - cd .. - rmdir conftest - $rm conftest* - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 -echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } - - -hard_links="nottested" -if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then - # do not overwrite the value of need_locks provided by the user - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } - hard_links=yes - $rm conftest* - ln conftest.a conftest.b 2>/dev/null && hard_links=no - touch conftest.a - ln conftest.a conftest.b 2>&5 || hard_links=no - ln conftest.a conftest.b 2>/dev/null && hard_links=no - { echo "$as_me:$LINENO: result: $hard_links" >&5 -echo "${ECHO_T}$hard_links" >&6; } - if test "$hard_links" = no; then - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} - need_locks=warn - fi -else - need_locks=no -fi - -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } - - runpath_var= - allow_undefined_flag= - enable_shared_with_static_runtimes=no - archive_cmds= - archive_expsym_cmds= - old_archive_From_new_cmds= - old_archive_from_expsyms_cmds= - export_dynamic_flag_spec= - whole_archive_flag_spec= - thread_safe_flag_spec= - hardcode_libdir_flag_spec= - hardcode_libdir_flag_spec_ld= - hardcode_libdir_separator= - hardcode_direct=no - hardcode_minus_L=no - hardcode_shlibpath_var=unsupported - link_all_deplibs=unknown - hardcode_automatic=no - module_cmds= - module_expsym_cmds= - always_export_symbols=no - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - # include_expsyms should be a list of space-separated symbols to be *always* - # included in the symbol list - include_expsyms= - # exclude_expsyms can be an extended regexp of symbols to exclude - # it will be wrapped by ` (' and `)$', so one must not match beginning or - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', - # as well as any symbol that contains `d'. - exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out - # platforms (ab)use it in PIC code, but their linkers get confused if - # the symbol is explicitly referenced. Since portable code cannot - # rely on this symbol name, it's probably fine to never include it in - # preloaded symbol tables. - # Exclude shared library initialization/finalization symbols. - extract_expsyms_cmds= - # Just being paranoid about ensuring that cc_basename is set. - for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` - - case $host_os in - cygwin* | mingw* | pw32*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - if test "$GCC" != yes; then - with_gnu_ld=no - fi - ;; - interix*) - # we just hope/assume this is gcc and not c89 (= MSVC++) - with_gnu_ld=yes - ;; - openbsd*) - with_gnu_ld=no - ;; - esac - - ld_shlibs=yes - if test "$with_gnu_ld" = yes; then - # If archive_cmds runs LD, not CC, wlarc should be empty - wlarc='${wl}' - - # Set some defaults for GNU ld with shared library support. These - # are reset later if shared libraries are not supported. Putting them - # here allows them to be overridden if necessary. - runpath_var=LD_RUN_PATH - hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' - export_dynamic_flag_spec='${wl}--export-dynamic' - # ancient GNU ld didn't support --whole-archive et. al. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then - whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - else - whole_archive_flag_spec= - fi - supports_anon_versioning=no - case `$LD -v 2>/dev/null` in - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... - *\ 2.11.*) ;; # other 2.11 versions - *) supports_anon_versioning=yes ;; - esac - - # See if GNU ld supports shared libraries. - case $host_os in - aix[3-9]*) - # On AIX/PPC, the GNU linker is very broken - if test "$host_cpu" != ia64; then - ld_shlibs=no - cat <&2 - -*** Warning: the GNU linker, at least up to release 2.9.1, is reported -*** to be unable to reliably create shared libraries on AIX. -*** Therefore, libtool is disabling shared libraries support. If you -*** really care for shared libraries, you may want to modify your PATH -*** so that a non-GNU linker is found, and then restart. - -EOF - fi - ;; - - amigaos*) - 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)' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes - - # Samuel A. Falvo II reports - # that the semantics of dynamic libraries on AmigaOS, at least up - # to version 4, is to share data among multiple programs linked - # with the same dynamic library. Since this doesn't match the - # behavior of shared libraries on other platforms, we can't use - # them. - ld_shlibs=no - ;; - - beos*) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - allow_undefined_flag=unsupported - # Joseph Beckenbach says some releases of gcc - # support --undefined. This deserves some investigation. FIXME - archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - else - ld_shlibs=no - fi - ;; - - cygwin* | mingw* | pw32*) - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec='-L$libdir' - allow_undefined_flag=unsupported - always_export_symbols=no - enable_shared_with_static_runtimes=yes - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' - - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - # If the export-symbols file already is a .def file (1st line - # is EXPORTS), use it as is; otherwise, prepend... - archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then - cp $export_symbols $output_objdir/$soname.def; - else - echo EXPORTS > $output_objdir/$soname.def; - cat $export_symbols >> $output_objdir/$soname.def; - fi~ - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - else - ld_shlibs=no - fi - ;; - - interix[3-9]*) - hardcode_direct=no - hardcode_shlibpath_var=no - hardcode_libdir_flag_spec='${wl}-rpath,$libdir' - export_dynamic_flag_spec='${wl}-E' - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. - # Instead, shared libraries are loaded at an image base (0x10000000 by - # default) and relocated if they conflict, which is a slow very memory - # consuming and fragmenting process. To avoid this, we pick a random, - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link - # time. Moving up from 0x10000000 also allows more sbrk(2) space. - archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - 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' - ;; - - gnu* | linux* | k*bsd*-gnu) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - tmp_addflag= - case $cc_basename,$host_cpu in - pgcc*) # Portland Group C compiler - 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' - tmp_addflag=' $pic_flag' - ;; - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers - 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' - tmp_addflag=' $pic_flag -Mnomain' ;; - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 - tmp_addflag=' -i_dynamic' ;; - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 - tmp_addflag=' -i_dynamic -nofor_main' ;; - ifc* | ifort*) # Intel Fortran compiler - tmp_addflag=' -nofor_main' ;; - esac - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) # Sun C 5.9 - whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_sharedflag='-G' ;; - *Sun\ F*) # Sun Fortran 8.3 - tmp_sharedflag='-G' ;; - *) - tmp_sharedflag='-shared' ;; - esac - archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - - if test $supports_anon_versioning = yes; then - archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ - $echo "local: *; };" >> $output_objdir/$libname.ver~ - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' - fi - link_all_deplibs=no - else - ld_shlibs=no - fi - ;; - - netbsd* | netbsdelf*-gnu) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' - wlarc= - else - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - fi - ;; - - solaris*) - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then - ld_shlibs=no - cat <&2 - -*** Warning: The releases 2.8.* of the GNU linker cannot reliably -*** create shared libraries on Solaris systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.9.1 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. - -EOF - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs=no - fi - ;; - - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) - case `$LD -v 2>&1` in - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) - ld_shlibs=no - cat <<_LT_EOF 1>&2 - -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not -*** reliably create shared libraries on SCO systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. - -_LT_EOF - ;; - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' - else - ld_shlibs=no - fi - ;; - esac - ;; - - sunos4*) - archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' - wlarc= - hardcode_direct=yes - hardcode_shlibpath_var=no - ;; - - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs=no - fi - ;; - esac - - if test "$ld_shlibs" = no; then - runpath_var= - hardcode_libdir_flag_spec= - export_dynamic_flag_spec= - whole_archive_flag_spec= - fi - else - # PORTME fill in a description of your system's linker (not GNU ld) - case $host_os in - aix3*) - allow_undefined_flag=unsupported - always_export_symbols=yes - 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' - # Note: this linker hardcodes the directories in LIBPATH if there - # are no directories specified by -L. - hardcode_minus_L=yes - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then - # Neither direct hardcoding nor static linking is supported with a - # broken collect2. - hardcode_direct=unsupported - fi - ;; - - aix[4-9]*) - if test "$host_cpu" = ia64; then - # On IA64, the linker does run time linking by default, so we don't - # have to do anything special. - aix_use_runtimelinking=no - exp_sym_flag='-Bexport' - no_entry_flag="" - else - # If we're using GNU nm, then we don't want the "-C" option. - # -C means demangle to AIX nm, but means don't demangle with GNU nm - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then - 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' - else - 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' - fi - aix_use_runtimelinking=no - - # Test if we are trying to use run time linking or normal - # AIX style linking. If -brtl is somewhere in LDFLAGS, we - # need to do runtime linking. - case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) - for ld_flag in $LDFLAGS; do - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then - aix_use_runtimelinking=yes - break - fi - done - ;; - esac - - exp_sym_flag='-bexport' - no_entry_flag='-bnoentry' - fi - - # When large executables or shared objects are built, AIX ld can - # have problems creating the table of contents. If linking a library - # or program results in "error TOC overflow" add -mminimal-toc to - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. - - archive_cmds='' - hardcode_direct=yes - hardcode_libdir_separator=':' - link_all_deplibs=yes - - if test "$GCC" = yes; then - case $host_os in aix4.[012]|aix4.[012].*) - # We only want to do this on AIX 4.2 and lower, the check - # below for broken collect2 doesn't work under 4.3+ - collect2name=`${CC} -print-prog-name=collect2` - if test -f "$collect2name" && \ - strings "$collect2name" | grep resolve_lib_name >/dev/null - then - # We have reworked collect2 - : - else - # We have old collect2 - hardcode_direct=unsupported - # It fails to find uninstalled libraries when the uninstalled - # path is not listed in the libpath. Setting hardcode_minus_L - # to unsupported forces relinking - hardcode_minus_L=yes - hardcode_libdir_flag_spec='-L$libdir' - hardcode_libdir_separator= - fi - ;; - esac - shared_flag='-shared' - if test "$aix_use_runtimelinking" = yes; then - shared_flag="$shared_flag "'${wl}-G' - fi - else - # not using gcc - if test "$host_cpu" = ia64; then - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release - # chokes on -Wl,-G. The following line is correct: - shared_flag='-G' - else - if test "$aix_use_runtimelinking" = yes; then - shared_flag='${wl}-G' - else - shared_flag='${wl}-bM:SRE' - fi - fi - fi - - # It seems that -bexpall does not export symbols beginning with - # underscore (_), so it is better to generate a list of symbols to export. - always_export_symbols=yes - if test "$aix_use_runtimelinking" = yes; then - # Warning - without using the other runtime loading flags (-brtl), - # -berok will link without error, but may produce a broken library. - allow_undefined_flag='-berok' - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" - 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" - else - if test "$host_cpu" = ia64; then - hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' - allow_undefined_flag="-z nodefs" - 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" - else - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" - # Warning - without using the other run time loading flags, - # -berok will link without error, but may produce a broken library. - no_undefined_flag=' ${wl}-bernotok' - allow_undefined_flag=' ${wl}-berok' - # Exported symbols can be pulled into shared objects from archives - whole_archive_flag_spec='$convenience' - archive_cmds_need_lc=yes - # This is similar to how AIX traditionally builds its shared libraries. - 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' - fi - fi - ;; - - amigaos*) - 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)' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes - # see comment about different semantics on the GNU ld section - ld_shlibs=no - ;; - - bsdi[45]*) - export_dynamic_flag_spec=-rdynamic - ;; - - cygwin* | mingw* | pw32*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is - # no search path for DLLs. - hardcode_libdir_flag_spec=' ' - allow_undefined_flag=unsupported - # Tell ltmain to make .lib files, not .a files. - libext=lib - # Tell ltmain to make .dll files, not .so files. - shrext_cmds=".dll" - # FIXME: Setting linknames here is a bad hack. - archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' - # The linker will automatically build a .lib file if we build a DLL. - old_archive_From_new_cmds='true' - # FIXME: Should let the user specify the lib program. - old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' - fix_srcfile_path='`cygpath -w "$srcfile"`' - enable_shared_with_static_runtimes=yes - ;; - - darwin* | rhapsody*) - case $host_os in - rhapsody* | darwin1.[012]) - allow_undefined_flag='${wl}-undefined ${wl}suppress' - ;; - *) # Darwin 1.3 on - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - else - case ${MACOSX_DEPLOYMENT_TARGET} in - 10.[012]) - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - ;; - 10.*) - allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' - ;; - esac - fi - ;; - esac - archive_cmds_need_lc=no - hardcode_direct=no - hardcode_automatic=yes - hardcode_shlibpath_var=unsupported - whole_archive_flag_spec='' - link_all_deplibs=yes - if test "$GCC" = yes ; then - output_verbose_link_cmd='echo' - archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" - module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" - archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" - module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" - else - case $cc_basename in - xlc*) - output_verbose_link_cmd='echo' - archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' - module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - 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}' - ;; - *) - ld_shlibs=no - ;; - esac - fi - ;; - - dgux*) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_shlibpath_var=no - ;; - - freebsd1*) - ld_shlibs=no - ;; - - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor - # support. Future versions do this automatically, but an explicit c++rt0.o - # does not break anything, and helps significantly (at the cost of a little - # extra space). - freebsd2.2*) - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' - hardcode_libdir_flag_spec='-R$libdir' - hardcode_direct=yes - hardcode_shlibpath_var=no - ;; - - # Unfortunately, older versions of FreeBSD 2 do not have this feature. - freebsd2*) - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct=yes - hardcode_minus_L=yes - hardcode_shlibpath_var=no - ;; - - # FreeBSD 3 and greater uses gcc -shared to do shared libraries. - freebsd* | dragonfly*) - archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' - hardcode_libdir_flag_spec='-R$libdir' - hardcode_direct=yes - hardcode_shlibpath_var=no - ;; - - hpux9*) - if test "$GCC" = yes; then - 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' - else - 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' - fi - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' - hardcode_libdir_separator=: - hardcode_direct=yes - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L=yes - export_dynamic_flag_spec='${wl}-E' - ;; - - hpux10*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' - fi - if test "$with_gnu_ld" = no; then - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' - hardcode_libdir_separator=: - - hardcode_direct=yes - export_dynamic_flag_spec='${wl}-E' - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L=yes - fi - ;; - - hpux11*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then - case $host_cpu in - hppa*64*) - archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - else - case $host_cpu in - hppa*64*) - archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - fi - if test "$with_gnu_ld" = no; then - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' - hardcode_libdir_separator=: - - case $host_cpu in - hppa*64*|ia64*) - hardcode_libdir_flag_spec_ld='+b $libdir' - hardcode_direct=no - hardcode_shlibpath_var=no - ;; - *) - hardcode_direct=yes - export_dynamic_flag_spec='${wl}-E' - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L=yes - ;; - esac - fi - ;; - - irix5* | irix6* | nonstopux*) - if test "$GCC" = yes; then - 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' - else - 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' - hardcode_libdir_flag_spec_ld='-rpath $libdir' - fi - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator=: - link_all_deplibs=yes - ;; - - netbsd* | netbsdelf*-gnu) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out - else - archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF - fi - hardcode_libdir_flag_spec='-R$libdir' - hardcode_direct=yes - hardcode_shlibpath_var=no - ;; - - newsos6) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct=yes - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator=: - hardcode_shlibpath_var=no - ;; - - openbsd*) - if test -f /usr/libexec/ld.so; then - hardcode_direct=yes - hardcode_shlibpath_var=no - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' - hardcode_libdir_flag_spec='${wl}-rpath,$libdir' - export_dynamic_flag_spec='${wl}-E' - else - case $host_os in - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec='-R$libdir' - ;; - *) - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - hardcode_libdir_flag_spec='${wl}-rpath,$libdir' - ;; - esac - fi - else - ld_shlibs=no - fi - ;; - - os2*) - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes - allow_undefined_flag=unsupported - 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' - old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' - ;; - - osf3*) - if test "$GCC" = yes; then - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' - 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' - else - allow_undefined_flag=' -expect_unresolved \*' - 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' - fi - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator=: - ;; - - osf4* | osf5*) # as osf3* with the addition of -msym flag - if test "$GCC" = yes; then - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' - 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' - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - else - allow_undefined_flag=' -expect_unresolved \*' - 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' - archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ - $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' - - # Both c and cxx compiler support -rpath directly - hardcode_libdir_flag_spec='-rpath $libdir' - fi - hardcode_libdir_separator=: - ;; - - solaris*) - no_undefined_flag=' -z text' - if test "$GCC" = yes; then - wlarc='${wl}' - archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' - else - wlarc='' - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' - fi - hardcode_libdir_flag_spec='-R$libdir' - hardcode_shlibpath_var=no - case $host_os in - solaris2.[0-5] | solaris2.[0-5].*) ;; - *) - # The compiler driver will combine and reorder linker options, - # but understands `-z linker_flag'. GCC discards it without `$wl', - # but is careful enough not to reorder. - # Supported since Solaris 2.6 (maybe 2.5.1?) - if test "$GCC" = yes; then - whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' - else - whole_archive_flag_spec='-z allextract$convenience -z defaultextract' - fi - ;; - esac - link_all_deplibs=yes - ;; - - sunos4*) - if test "x$host_vendor" = xsequent; then - # Use $CC to link under sequent, because it throws in some extra .o - # files that make .init and .fini sections work. - archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' - fi - hardcode_libdir_flag_spec='-L$libdir' - hardcode_direct=yes - hardcode_minus_L=yes - hardcode_shlibpath_var=no - ;; - - sysv4) - case $host_vendor in - sni) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct=yes # is this really true??? - ;; - siemens) - ## LD is ld it makes a PLAMLIB - ## CC just makes a GrossModule. - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' - reload_cmds='$CC -r -o $output$reload_objs' - hardcode_direct=no - ;; - motorola) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct=no #Motorola manual says yes, but my tests say they lie - ;; - esac - runpath_var='LD_RUN_PATH' - hardcode_shlibpath_var=no - ;; - - sysv4.3*) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_shlibpath_var=no - export_dynamic_flag_spec='-Bexport' - ;; - - sysv4*MP*) - if test -d /usr/nec; then - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_shlibpath_var=no - runpath_var=LD_RUN_PATH - hardcode_runpath_var=yes - ld_shlibs=yes - fi - ;; - - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) - no_undefined_flag='${wl}-z,text' - archive_cmds_need_lc=no - hardcode_shlibpath_var=no - runpath_var='LD_RUN_PATH' - - if test "$GCC" = yes; then - archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - - sysv5* | sco3.2v5* | sco5v6*) - # Note: We can NOT use -z defs as we might desire, because we do not - # link with -lc, and that would cause any symbols used from libc to - # always be unresolved, which means just about no library would - # ever link correctly. If we're not using GNU ld we use -z text - # though, which does catch some bad symbols but isn't as heavy-handed - # as -z defs. - no_undefined_flag='${wl}-z,text' - allow_undefined_flag='${wl}-z,nodefs' - archive_cmds_need_lc=no - hardcode_shlibpath_var=no - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' - hardcode_libdir_separator=':' - link_all_deplibs=yes - export_dynamic_flag_spec='${wl}-Bexport' - runpath_var='LD_RUN_PATH' - - if test "$GCC" = yes; then - archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - - uts4*) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_shlibpath_var=no - ;; - - *) - ld_shlibs=no - ;; - esac - fi - -{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 -echo "${ECHO_T}$ld_shlibs" >&6; } -test "$ld_shlibs" = no && can_build_shared=no - -# -# Do we need to explicitly link libc? -# -case "x$archive_cmds_need_lc" in -x|xyes) - # Assume -lc should be added - archive_cmds_need_lc=yes - - if test "$enable_shared" = yes && test "$GCC" = yes; then - case $archive_cmds in - *'~'*) - # FIXME: we may have to deal with multi-command sequences. - ;; - '$CC '*) - # Test whether the compiler implicitly links with -lc since on some - # systems, -lgcc has to come before -lc. If gcc already passes -lc - # to ld, don't add -lc before -lgcc. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } - $rm conftest* - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } 2>conftest.err; then - soname=conftest - lib=conftest - libobjs=conftest.$ac_objext - deplibs= - wl=$lt_prog_compiler_wl - pic_flag=$lt_prog_compiler_pic - compiler_flags=-v - linker_flags=-v - verstring= - output_objdir=. - libname=conftest - lt_save_allow_undefined_flag=$allow_undefined_flag - allow_undefined_flag= - if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 - (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - then - archive_cmds_need_lc=no - else - archive_cmds_need_lc=yes - fi - allow_undefined_flag=$lt_save_allow_undefined_flag - else - cat conftest.err 1>&5 - fi - $rm conftest* - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 -echo "${ECHO_T}$archive_cmds_need_lc" >&6; } - ;; - esac - fi - ;; -esac - -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } -library_names_spec= -libname_spec='lib$name' -soname_spec= -shrext_cmds=".so" -postinstall_cmds= -postuninstall_cmds= -finish_cmds= -finish_eval= -shlibpath_var= -shlibpath_overrides_runpath=unknown -version_type=none -dynamic_linker="$host_os ld.so" -sys_lib_dlsearch_path_spec="/lib /usr/lib" - -if test "$GCC" = yes; then - case $host_os in - darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; - *) lt_awk_arg="/^libraries:/" ;; - esac - lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` - if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then - # if the path contains ";" then we assume it to be the separator - # otherwise default to the standard path separator (i.e. ":") - it is - # assumed that no part of a normal pathname contains ";" but that should - # okay in the real world where ";" in dirpaths is itself problematic. - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` - else - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi - # Ok, now we have the path, separated by spaces, we can step through it - # and add multilib dir if necessary. - lt_tmp_lt_search_path_spec= - lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` - for lt_sys_path in $lt_search_path_spec; do - if test -d "$lt_sys_path/$lt_multi_os_dir"; then - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" - else - test -d "$lt_sys_path" && \ - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" - fi - done - lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' -BEGIN {RS=" "; FS="/|\n";} { - lt_foo=""; - lt_count=0; - for (lt_i = NF; lt_i > 0; lt_i--) { - if ($lt_i != "" && $lt_i != ".") { - if ($lt_i == "..") { - lt_count++; - } else { - if (lt_count == 0) { - lt_foo="/" $lt_i lt_foo; - } else { - lt_count--; - } - } - } - } - if (lt_foo != "") { lt_freq[lt_foo]++; } - if (lt_freq[lt_foo] == 1) { print lt_foo; } -}'` - sys_lib_search_path_spec=`echo $lt_search_path_spec` -else - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" -fi -need_lib_prefix=unknown -hardcode_into_libs=no - -# when you set need_version to no, make sure it does not cause -set_version -# flags to be left without arguments -need_version=unknown - -case $host_os in -aix3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' - shlibpath_var=LIBPATH - - # AIX 3 has no versioning support, so we append a major version to the name. - soname_spec='${libname}${release}${shared_ext}$major' - ;; - -aix[4-9]*) - version_type=linux - need_lib_prefix=no - need_version=no - hardcode_into_libs=yes - if test "$host_cpu" = ia64; then - # AIX 5 supports IA64 - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - else - # With GCC up to 2.95.x, collect2 would create an import file - # for dependence libraries. The import file would start with - # the line `#! .'. This would cause the generated library to - # depend on `.', always an invalid library. This was fixed in - # development snapshots of GCC prior to 3.0. - case $host_os in - aix4 | aix4.[01] | aix4.[01].*) - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' - echo ' yes ' - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then - : - else - can_build_shared=no - fi - ;; - esac - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct - # soname into executable. Probably we can add versioning support to - # collect2, so additional links can be useful in future. - if test "$aix_use_runtimelinking" = yes; then - # If using run time linking (on AIX 4.2 or later) use lib.so - # instead of lib.a to let people know that these are not - # typical AIX shared libraries. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - else - # We preserve .a as extension for shared libraries through AIX4.2 - # and later when we are not doing run time linking. - library_names_spec='${libname}${release}.a $libname.a' - soname_spec='${libname}${release}${shared_ext}$major' - fi - shlibpath_var=LIBPATH - fi - ;; - -amigaos*) - library_names_spec='$libname.ixlibrary $libname.a' - # Create ${libname}_ixlibrary.a entries in /sys/libs. - 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' - ;; - -beos*) - library_names_spec='${libname}${shared_ext}' - dynamic_linker="$host_os ld.so" - shlibpath_var=LIBRARY_PATH - ;; - -bsdi[45]*) - version_type=linux - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" - # the default ld.so.conf also contains /usr/contrib/lib and - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow - # libtool to hard-code these into programs - ;; - -cygwin* | mingw* | pw32*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in - yes,cygwin* | yes,mingw* | yes,pw32*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname~ - chmod a+x \$dldir/$dlname' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $rm \$dlpath' - shlibpath_overrides_runpath=yes - - case $host_os in - cygwin*) - # Cygwin DLLs use 'cyg' prefix rather than 'lib' - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" - ;; - mingw*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then - # It is most probably a Windows format PATH printed by - # mingw gcc, but we are running on Cygwin. Gcc prints its search - # path with ; separators, and with drive letters. We can handle the - # drive letters (cygwin fileutils understands them), so leave them, - # especially as we might pass files found there to a mingw objdump, - # which wouldn't understand a cygwinified path. Ahh. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` - else - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi - ;; - pw32*) - # pw32 DLLs use 'pw' prefix rather than 'lib' - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - ;; - esac - ;; - - *) - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' - ;; - esac - dynamic_linker='Win32 ld.exe' - # FIXME: first we should search . and the directory the executable is in - shlibpath_var=PATH - ;; - -darwin* | rhapsody*) - dynamic_linker="$host_os dyld" - version_type=darwin - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' - soname_spec='${libname}${release}${major}$shared_ext' - shlibpath_overrides_runpath=yes - shlibpath_var=DYLD_LIBRARY_PATH - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' - - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' - ;; - -dgux*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -freebsd1*) - dynamic_linker=no - ;; - -freebsd* | dragonfly*) - # DragonFly does not have aout. When/if they implement a new - # versioning mechanism, adjust this. - if test -x /usr/bin/objformat; then - objformat=`/usr/bin/objformat` - else - case $host_os in - freebsd[123]*) objformat=aout ;; - *) objformat=elf ;; - esac - fi - version_type=freebsd-$objformat - case $version_type in - freebsd-elf*) - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - need_version=no - need_lib_prefix=no - ;; - freebsd-*) - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' - need_version=yes - ;; - esac - shlibpath_var=LD_LIBRARY_PATH - case $host_os in - freebsd2*) - shlibpath_overrides_runpath=yes - ;; - freebsd3.[01]* | freebsdelf3.[01]*) - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - *) # from 4.6 on, and DragonFly - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - esac - ;; - -gnu*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - ;; - -hpux9* | hpux10* | hpux11*) - # Give a soname corresponding to the major version so that dld.sl refuses to - # link against other versions. - version_type=sunos - need_lib_prefix=no - need_version=no - case $host_cpu in - ia64*) - shrext_cmds='.so' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.so" - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - if test "X$HPUX_IA64_MODE" = X32; then - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" - else - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" - fi - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - hppa*64*) - shrext_cmds='.sl' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.sl" - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - *) - shrext_cmds='.sl' - dynamic_linker="$host_os dld.sl" - shlibpath_var=SHLIB_PATH - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - ;; - esac - # HP-UX runs *really* slowly unless shared libraries are mode 555. - postinstall_cmds='chmod 555 $lib' - ;; - -interix[3-9]*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - -irix5* | irix6* | nonstopux*) - case $host_os in - nonstopux*) version_type=nonstopux ;; - *) - if test "$lt_cv_prog_gnu_ld" = yes; then - version_type=linux - else - version_type=irix - fi ;; - esac - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' - case $host_os in - irix5* | nonstopux*) - libsuff= shlibsuff= - ;; - *) - case $LD in # libtool.m4 will add one of these switches to LD - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") - libsuff= shlibsuff= libmagic=32-bit;; - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") - libsuff=32 shlibsuff=N32 libmagic=N32;; - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") - libsuff=64 shlibsuff=64 libmagic=64-bit;; - *) libsuff= shlibsuff= libmagic=never-match;; - esac - ;; - esac - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH - shlibpath_overrides_runpath=no - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" - hardcode_into_libs=yes - ;; - -# No shared lib support for Linux oldld, aout, or coff. -linux*oldld* | linux*aout* | linux*coff*) - dynamic_linker=no - ;; - -# This must be Linux ELF. -linux* | k*bsd*-gnu) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - # This implies no fast_install, which is unacceptable. - # Some rework will be needed to allow for fast_install - # before this can be enabled. - hardcode_into_libs=yes - - # Append ld.so.conf contents to the search path - if test -f /etc/ld.so.conf; then - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" - fi - - # We used to test for /lib/ld.so.1 and disable shared libraries on - # powerpc, because MkLinux only supported shared libraries with the - # GNU dynamic linker. Since this was broken with cross compilers, - # most powerpc-linux boxes support dynamic linking these days and - # people can always --disable-shared, the test was removed, and we - # assume the GNU/Linux dynamic linker is in use. - dynamic_linker='GNU/Linux ld.so' - ;; - -netbsdelf*-gnu) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - dynamic_linker='NetBSD ld.elf_so' - ;; - -netbsd*) - version_type=sunos - need_lib_prefix=no - need_version=no - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - dynamic_linker='NetBSD (a.out) ld.so' - else - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='NetBSD ld.elf_so' - fi - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - -newsos6) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -nto-qnx*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -openbsd*) - version_type=sunos - sys_lib_dlsearch_path_spec="/usr/lib" - need_lib_prefix=no - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. - case $host_os in - openbsd3.3 | openbsd3.3.*) need_version=yes ;; - *) need_version=no ;; - esac - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - shlibpath_var=LD_LIBRARY_PATH - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - case $host_os in - openbsd2.[89] | openbsd2.[89].*) - shlibpath_overrides_runpath=no - ;; - *) - shlibpath_overrides_runpath=yes - ;; - esac - else - shlibpath_overrides_runpath=yes - fi - ;; - -os2*) - libname_spec='$name' - shrext_cmds=".dll" - need_lib_prefix=no - library_names_spec='$libname${shared_ext} $libname.a' - dynamic_linker='OS/2 ld.exe' - shlibpath_var=LIBPATH - ;; - -osf3* | osf4* | osf5*) - version_type=osf - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" - ;; - -rdos*) - dynamic_linker=no - ;; - -solaris*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - # ldd complains unless libraries are executable - postinstall_cmds='chmod +x $lib' - ;; - -sunos4*) - version_type=sunos - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - if test "$with_gnu_ld" = yes; then - need_lib_prefix=no - fi - need_version=yes - ;; - -sysv4 | sysv4.3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - case $host_vendor in - sni) - shlibpath_overrides_runpath=no - need_lib_prefix=no - export_dynamic_flag_spec='${wl}-Blargedynsym' - runpath_var=LD_RUN_PATH - ;; - siemens) - need_lib_prefix=no - ;; - motorola) - need_lib_prefix=no - need_version=no - shlibpath_overrides_runpath=no - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' - ;; - esac - ;; - -sysv4*MP*) - if test -d /usr/nec ;then - version_type=linux - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' - soname_spec='$libname${shared_ext}.$major' - shlibpath_var=LD_LIBRARY_PATH - fi - ;; - -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - version_type=freebsd-elf - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - if test "$with_gnu_ld" = yes; then - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' - shlibpath_overrides_runpath=no - else - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' - shlibpath_overrides_runpath=yes - case $host_os in - sco3.2v5*) - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" - ;; - esac - fi - sys_lib_dlsearch_path_spec='/usr/lib' - ;; - -uts4*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -*) - dynamic_linker=no - ;; -esac -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 -echo "${ECHO_T}$dynamic_linker" >&6; } -test "$dynamic_linker" = no && can_build_shared=no - -if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" -fi - -sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" -if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" -fi - -sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" - -variables_saved_for_relink="PATH $shlibpath_var $runpath_var" -if test "$GCC" = yes; then - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" -fi - -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } -hardcode_action= -if test -n "$hardcode_libdir_flag_spec" || \ - test -n "$runpath_var" || \ - test "X$hardcode_automatic" = "Xyes" ; then - - # We can hardcode non-existant directories. - if test "$hardcode_direct" != no && - # If the only mechanism to avoid hardcoding is shlibpath_var, we - # have to relink, otherwise we might link with an installed library - # when we should be linking with a yet-to-be-installed one - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && - test "$hardcode_minus_L" != no; then - # Linking always hardcodes the temporary library directory. - hardcode_action=relink - else - # We can link without hardcoding, and we can hardcode nonexisting dirs. - hardcode_action=immediate - fi -else - # We cannot hardcode anything, or else we can only hardcode existing - # directories. - hardcode_action=unsupported -fi -{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 -echo "${ECHO_T}$hardcode_action" >&6; } - -if test "$hardcode_action" = relink; then - # Fast installation is not supported - enable_fast_install=no -elif test "$shlibpath_overrides_runpath" = yes || - test "$enable_shared" = no; then - # Fast installation is not necessary - enable_fast_install=needless -fi - -striplib= -old_striplib= -{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" - test -z "$striplib" && striplib="$STRIP --strip-unneeded" - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } -else -# FIXME - insert some real tests, host_os isn't really good enough - case $host_os in - darwin*) - if test -n "$STRIP" ; then - striplib="$STRIP -x" - old_striplib="$STRIP -S" - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - ;; - *) - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - ;; - esac -fi - -if test "x$enable_dlopen" != xyes; then - enable_dlopen=unknown - enable_dlopen_self=unknown - enable_dlopen_self_static=unknown -else - lt_cv_dlopen=no - lt_cv_dlopen_libs= - - case $host_os in - beos*) - lt_cv_dlopen="load_add_on" - lt_cv_dlopen_libs= - lt_cv_dlopen_self=yes - ;; - - mingw* | pw32*) - lt_cv_dlopen="LoadLibrary" - lt_cv_dlopen_libs= - ;; - - cygwin*) - lt_cv_dlopen="dlopen" - lt_cv_dlopen_libs= - ;; - - darwin*) - # if libdl is installed we need to link against it - { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } -if test "${ac_cv_lib_dl_dlopen+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ldl $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char dlopen (); -int -main () -{ -return dlopen (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_dl_dlopen=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_dl_dlopen=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } -if test $ac_cv_lib_dl_dlopen = yes; then - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" -else - - lt_cv_dlopen="dyld" - lt_cv_dlopen_libs= - lt_cv_dlopen_self=yes - -fi - - ;; - - *) - { echo "$as_me:$LINENO: checking for shl_load" >&5 -echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } -if test "${ac_cv_func_shl_load+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define shl_load to an innocuous variant, in case declares shl_load. - For example, HP-UX 11i declares gettimeofday. */ -#define shl_load innocuous_shl_load - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char shl_load (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef shl_load - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char shl_load (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_shl_load || defined __stub___shl_load -choke me -#endif - -int -main () -{ -return shl_load (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_func_shl_load=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_func_shl_load=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 -echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } -if test $ac_cv_func_shl_load = yes; then - lt_cv_dlopen="shl_load" -else - { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 -echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } -if test "${ac_cv_lib_dld_shl_load+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ldld $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char shl_load (); -int -main () -{ -return shl_load (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_dld_shl_load=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_dld_shl_load=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 -echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } -if test $ac_cv_lib_dld_shl_load = yes; then - lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" -else - { echo "$as_me:$LINENO: checking for dlopen" >&5 -echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } -if test "${ac_cv_func_dlopen+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define dlopen to an innocuous variant, in case declares dlopen. - For example, HP-UX 11i declares gettimeofday. */ -#define dlopen innocuous_dlopen - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char dlopen (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef dlopen - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char dlopen (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_dlopen || defined __stub___dlopen -choke me -#endif - -int -main () -{ -return dlopen (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_func_dlopen=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_func_dlopen=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 -echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } -if test $ac_cv_func_dlopen = yes; then - lt_cv_dlopen="dlopen" -else - { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } -if test "${ac_cv_lib_dl_dlopen+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ldl $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char dlopen (); -int -main () -{ -return dlopen (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_dl_dlopen=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_dl_dlopen=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } -if test $ac_cv_lib_dl_dlopen = yes; then - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" -else - { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 -echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } -if test "${ac_cv_lib_svld_dlopen+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lsvld $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char dlopen (); -int -main () -{ -return dlopen (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_svld_dlopen=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_svld_dlopen=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 -echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } -if test $ac_cv_lib_svld_dlopen = yes; then - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" -else - { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 -echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } -if test "${ac_cv_lib_dld_dld_link+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ldld $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char dld_link (); -int -main () -{ -return dld_link (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_dld_dld_link=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_dld_dld_link=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 -echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } -if test $ac_cv_lib_dld_dld_link = yes; then - lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" -fi - - -fi - - -fi - - -fi - - -fi - - -fi - - ;; - esac - - if test "x$lt_cv_dlopen" != xno; then - enable_dlopen=yes - else - enable_dlopen=no - fi - - case $lt_cv_dlopen in - dlopen) - save_CPPFLAGS="$CPPFLAGS" - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" - - save_LDFLAGS="$LDFLAGS" - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" - - save_LIBS="$LIBS" - LIBS="$lt_cv_dlopen_libs $LIBS" - - { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 -echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } -if test "${lt_cv_dlopen_self+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "$cross_compiling" = yes; then : - lt_cv_dlopen_self=cross -else - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 - lt_status=$lt_dlunknown - cat > conftest.$ac_ext < -#endif - -#include - -#ifdef RTLD_GLOBAL -# define LT_DLGLOBAL RTLD_GLOBAL -#else -# ifdef DL_GLOBAL -# define LT_DLGLOBAL DL_GLOBAL -# else -# define LT_DLGLOBAL 0 -# endif -#endif - -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we - find out it does not work in some platform. */ -#ifndef LT_DLLAZY_OR_NOW -# ifdef RTLD_LAZY -# define LT_DLLAZY_OR_NOW RTLD_LAZY -# else -# ifdef DL_LAZY -# define LT_DLLAZY_OR_NOW DL_LAZY -# else -# ifdef RTLD_NOW -# define LT_DLLAZY_OR_NOW RTLD_NOW -# else -# ifdef DL_NOW -# define LT_DLLAZY_OR_NOW DL_NOW -# else -# define LT_DLLAZY_OR_NOW 0 -# endif -# endif -# endif -# endif -#endif - -#ifdef __cplusplus -extern "C" void exit (int); -#endif - -void fnord() { int i=42;} -int main () -{ - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); - int status = $lt_dlunknown; - - if (self) - { - if (dlsym (self,"fnord")) status = $lt_dlno_uscore; - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; - /* dlclose (self); */ - } - else - puts (dlerror ()); - - exit (status); -} -EOF - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then - (./conftest; exit; ) >&5 2>/dev/null - lt_status=$? - case x$lt_status in - x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; - x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; - x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; - esac - else : - # compilation failed - lt_cv_dlopen_self=no - fi -fi -rm -fr conftest* - - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 -echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } - - if test "x$lt_cv_dlopen_self" = xyes; then - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" - { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 -echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } -if test "${lt_cv_dlopen_self_static+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "$cross_compiling" = yes; then : - lt_cv_dlopen_self_static=cross -else - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 - lt_status=$lt_dlunknown - cat > conftest.$ac_ext < -#endif - -#include - -#ifdef RTLD_GLOBAL -# define LT_DLGLOBAL RTLD_GLOBAL -#else -# ifdef DL_GLOBAL -# define LT_DLGLOBAL DL_GLOBAL -# else -# define LT_DLGLOBAL 0 -# endif -#endif - -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we - find out it does not work in some platform. */ -#ifndef LT_DLLAZY_OR_NOW -# ifdef RTLD_LAZY -# define LT_DLLAZY_OR_NOW RTLD_LAZY -# else -# ifdef DL_LAZY -# define LT_DLLAZY_OR_NOW DL_LAZY -# else -# ifdef RTLD_NOW -# define LT_DLLAZY_OR_NOW RTLD_NOW -# else -# ifdef DL_NOW -# define LT_DLLAZY_OR_NOW DL_NOW -# else -# define LT_DLLAZY_OR_NOW 0 -# endif -# endif -# endif -# endif -#endif - -#ifdef __cplusplus -extern "C" void exit (int); -#endif - -void fnord() { int i=42;} -int main () -{ - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); - int status = $lt_dlunknown; - - if (self) - { - if (dlsym (self,"fnord")) status = $lt_dlno_uscore; - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; - /* dlclose (self); */ - } - else - puts (dlerror ()); - - exit (status); -} -EOF - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then - (./conftest; exit; ) >&5 2>/dev/null - lt_status=$? - case x$lt_status in - x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; - x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; - x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; - esac - else : - # compilation failed - lt_cv_dlopen_self_static=no - fi -fi -rm -fr conftest* - - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 -echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } - fi - - CPPFLAGS="$save_CPPFLAGS" - LDFLAGS="$save_LDFLAGS" - LIBS="$save_LIBS" - ;; - esac - - case $lt_cv_dlopen_self in - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; - *) enable_dlopen_self=unknown ;; - esac - - case $lt_cv_dlopen_self_static in - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; - *) enable_dlopen_self_static=unknown ;; - esac -fi - - -# Report which library types will actually be built -{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } -{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 -echo "${ECHO_T}$can_build_shared" >&6; } - -{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } -test "$can_build_shared" = "no" && enable_shared=no - -# On AIX, shared libraries and static libraries use the same namespace, and -# are all built from PIC. -case $host_os in -aix3*) - test "$enable_shared" = yes && enable_static=no - if test -n "$RANLIB"; then - archive_cmds="$archive_cmds~\$RANLIB \$lib" - postinstall_cmds='$RANLIB $lib' - fi - ;; - -aix[4-9]*) - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then - test "$enable_shared" = yes && enable_static=no - fi - ;; -esac -{ echo "$as_me:$LINENO: result: $enable_shared" >&5 -echo "${ECHO_T}$enable_shared" >&6; } - -{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } -# Make sure either enable_shared or enable_static is yes. -test "$enable_shared" = yes || enable_static=yes -{ echo "$as_me:$LINENO: result: $enable_static" >&5 -echo "${ECHO_T}$enable_static" >&6; } - -# The else clause should only fire when bootstrapping the -# libtool distribution, otherwise you forgot to ship ltmain.sh -# with your package, and you will get complaints that there are -# no rules to generate ltmain.sh. -if test -f "$ltmain"; then - # See if we are running on zsh, and set the options which allow our commands through - # without removal of \ escapes. - if test -n "${ZSH_VERSION+set}" ; then - setopt NO_GLOB_SUBST - fi - # Now quote all the things that may contain metacharacters while being - # careful not to overquote the AC_SUBSTed values. We take copies of the - # variables and quote the copies for generation of the libtool script. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ - SED SHELL STRIP \ - libname_spec library_names_spec soname_spec extract_expsyms_cmds \ - old_striplib striplib file_magic_cmd finish_cmds finish_eval \ - deplibs_check_method reload_flag reload_cmds need_locks \ - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ - lt_cv_sys_global_symbol_to_c_name_address \ - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ - old_postinstall_cmds old_postuninstall_cmds \ - compiler \ - CC \ - LD \ - lt_prog_compiler_wl \ - lt_prog_compiler_pic \ - lt_prog_compiler_static \ - lt_prog_compiler_no_builtin_flag \ - export_dynamic_flag_spec \ - thread_safe_flag_spec \ - whole_archive_flag_spec \ - enable_shared_with_static_runtimes \ - old_archive_cmds \ - old_archive_from_new_cmds \ - predep_objects \ - postdep_objects \ - predeps \ - postdeps \ - compiler_lib_search_path \ - compiler_lib_search_dirs \ - archive_cmds \ - archive_expsym_cmds \ - postinstall_cmds \ - postuninstall_cmds \ - old_archive_from_expsyms_cmds \ - allow_undefined_flag \ - no_undefined_flag \ - export_symbols_cmds \ - hardcode_libdir_flag_spec \ - hardcode_libdir_flag_spec_ld \ - hardcode_libdir_separator \ - hardcode_automatic \ - module_cmds \ - module_expsym_cmds \ - lt_cv_prog_compiler_c_o \ - fix_srcfile_path \ - exclude_expsyms \ - include_expsyms; do - - case $var in - old_archive_cmds | \ - old_archive_from_new_cmds | \ - archive_cmds | \ - archive_expsym_cmds | \ - module_cmds | \ - module_expsym_cmds | \ - old_archive_from_expsyms_cmds | \ - export_symbols_cmds | \ - extract_expsyms_cmds | reload_cmds | finish_cmds | \ - postinstall_cmds | postuninstall_cmds | \ - old_postinstall_cmds | old_postuninstall_cmds | \ - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) - # Double-quote double-evaled strings. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" - ;; - *) - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" - ;; - esac - done - - case $lt_echo in - *'\$0 --fallback-echo"') - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` - ;; - esac - -cfgfile="${ofile}T" - trap "$rm \"$cfgfile\"; exit 1" 1 2 15 - $rm -f "$cfgfile" - { echo "$as_me:$LINENO: creating $ofile" >&5 -echo "$as_me: creating $ofile" >&6;} - - cat <<__EOF__ >> "$cfgfile" -#! $SHELL - -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) -# NOTE: Changes made to this file will be lost: look at ltmain.sh. -# -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 -# Free Software Foundation, Inc. -# -# This file is part of GNU Libtool: -# Originally by Gordon Matzigkeit , 1996 -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -# -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - -# A sed program that does not truncate output. -SED=$lt_SED - -# Sed that helps us avoid accidentally triggering echo(1) options like -n. -Xsed="$SED -e 1s/^X//" - -# The HP-UX ksh and POSIX shell print the target directory to stdout -# if CDPATH is set. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH - -# The names of the tagged configurations supported by this script. -available_tags= - -# ### BEGIN LIBTOOL CONFIG - -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: - -# Shell to use when invoking shell scripts. -SHELL=$lt_SHELL - -# Whether or not to build shared libraries. -build_libtool_libs=$enable_shared - -# Whether or not to build static libraries. -build_old_libs=$enable_static - -# Whether or not to add -lc for building shared libraries. -build_libtool_need_lc=$archive_cmds_need_lc - -# Whether or not to disallow shared libs when runtime libs are static -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes - -# Whether or not to optimize for fast installation. -fast_install=$enable_fast_install - -# The host system. -host_alias=$host_alias -host=$host -host_os=$host_os - -# The build system. -build_alias=$build_alias -build=$build -build_os=$build_os - -# An echo program that does not interpret backslashes. -echo=$lt_echo - -# The archiver. -AR=$lt_AR -AR_FLAGS=$lt_AR_FLAGS - -# A C compiler. -LTCC=$lt_LTCC - -# LTCC compiler flags. -LTCFLAGS=$lt_LTCFLAGS - -# A language-specific compiler. -CC=$lt_compiler - -# Is the compiler the GNU C compiler? -with_gcc=$GCC - -# An ERE matcher. -EGREP=$lt_EGREP - -# The linker used to build libraries. -LD=$lt_LD - -# Whether we need hard or soft links. -LN_S=$lt_LN_S - -# A BSD-compatible nm program. -NM=$lt_NM - -# A symbol stripping program -STRIP=$lt_STRIP - -# Used to examine libraries when file_magic_cmd begins "file" -MAGIC_CMD=$MAGIC_CMD - -# Used on cygwin: DLL creation program. -DLLTOOL="$DLLTOOL" - -# Used on cygwin: object dumper. -OBJDUMP="$OBJDUMP" - -# Used on cygwin: assembler. -AS="$AS" - -# The name of the directory that contains temporary libtool files. -objdir=$objdir - -# How to create reloadable object files. -reload_flag=$lt_reload_flag -reload_cmds=$lt_reload_cmds - -# How to pass a linker flag through the compiler. -wl=$lt_lt_prog_compiler_wl - -# Object file suffix (normally "o"). -objext="$ac_objext" - -# Old archive suffix (normally "a"). -libext="$libext" - -# Shared library suffix (normally ".so"). -shrext_cmds='$shrext_cmds' - -# Executable file suffix (normally ""). -exeext="$exeext" - -# Additional compiler flags for building library objects. -pic_flag=$lt_lt_prog_compiler_pic -pic_mode=$pic_mode - -# What is the maximum length of a command? -max_cmd_len=$lt_cv_sys_max_cmd_len - -# Does compiler simultaneously support -c and -o options? -compiler_c_o=$lt_lt_cv_prog_compiler_c_o - -# Must we lock files when doing compilation? -need_locks=$lt_need_locks - -# Do we need the lib prefix for modules? -need_lib_prefix=$need_lib_prefix - -# Do we need a version for libraries? -need_version=$need_version - -# Whether dlopen is supported. -dlopen_support=$enable_dlopen - -# Whether dlopen of programs is supported. -dlopen_self=$enable_dlopen_self - -# Whether dlopen of statically linked programs is supported. -dlopen_self_static=$enable_dlopen_self_static - -# Compiler flag to prevent dynamic linking. -link_static_flag=$lt_lt_prog_compiler_static - -# Compiler flag to turn off builtin functions. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag - -# Compiler flag to allow reflexive dlopens. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec - -# Compiler flag to generate shared objects directly from archives. -whole_archive_flag_spec=$lt_whole_archive_flag_spec - -# Compiler flag to generate thread-safe objects. -thread_safe_flag_spec=$lt_thread_safe_flag_spec - -# Library versioning type. -version_type=$version_type - -# Format of library name prefix. -libname_spec=$lt_libname_spec - -# List of archive names. First name is the real one, the rest are links. -# The last name is the one that the linker finds with -lNAME. -library_names_spec=$lt_library_names_spec - -# The coded name of the library, if different from the real name. -soname_spec=$lt_soname_spec - -# Commands used to build and install an old-style archive. -RANLIB=$lt_RANLIB -old_archive_cmds=$lt_old_archive_cmds -old_postinstall_cmds=$lt_old_postinstall_cmds -old_postuninstall_cmds=$lt_old_postuninstall_cmds - -# Create an old-style archive from a shared archive. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds - -# Create a temporary old-style archive to link instead of a shared archive. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds - -# Commands used to build and install a shared archive. -archive_cmds=$lt_archive_cmds -archive_expsym_cmds=$lt_archive_expsym_cmds -postinstall_cmds=$lt_postinstall_cmds -postuninstall_cmds=$lt_postuninstall_cmds - -# Commands used to build a loadable module (assumed same as above if empty) -module_cmds=$lt_module_cmds -module_expsym_cmds=$lt_module_expsym_cmds - -# Commands to strip libraries. -old_striplib=$lt_old_striplib -striplib=$lt_striplib - -# Dependencies to place before the objects being linked to create a -# shared library. -predep_objects=$lt_predep_objects - -# Dependencies to place after the objects being linked to create a -# shared library. -postdep_objects=$lt_postdep_objects - -# Dependencies to place before the objects being linked to create a -# shared library. -predeps=$lt_predeps - -# Dependencies to place after the objects being linked to create a -# shared library. -postdeps=$lt_postdeps - -# The directories searched by this compiler when creating a shared -# library -compiler_lib_search_dirs=$lt_compiler_lib_search_dirs - -# The library search path used internally by the compiler when linking -# a shared library. -compiler_lib_search_path=$lt_compiler_lib_search_path - -# Method to check whether dependent libraries are shared objects. -deplibs_check_method=$lt_deplibs_check_method - -# Command to use when deplibs_check_method == file_magic. -file_magic_cmd=$lt_file_magic_cmd - -# Flag that allows shared libraries with undefined symbols to be built. -allow_undefined_flag=$lt_allow_undefined_flag - -# Flag that forces no undefined symbols. -no_undefined_flag=$lt_no_undefined_flag - -# Commands used to finish a libtool library installation in a directory. -finish_cmds=$lt_finish_cmds - -# Same as above, but a single script fragment to be evaled but not shown. -finish_eval=$lt_finish_eval - -# Take the output of nm and produce a listing of raw symbols and C names. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe - -# Transform the output of nm in a proper C declaration -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl - -# Transform the output of nm in a C name address pair -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address - -# This is the shared library runtime path variable. -runpath_var=$runpath_var - -# This is the shared library path variable. -shlibpath_var=$shlibpath_var - -# Is shlibpath searched before the hard-coded library search path? -shlibpath_overrides_runpath=$shlibpath_overrides_runpath - -# How to hardcode a shared library path into an executable. -hardcode_action=$hardcode_action - -# Whether we should hardcode library paths into libraries. -hardcode_into_libs=$hardcode_into_libs - -# Flag to hardcode \$libdir into a binary during linking. -# This must work even if \$libdir does not exist. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec - -# If ld is used when linking, flag to hardcode \$libdir into -# a binary during linking. This must work even if \$libdir does -# not exist. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld - -# Whether we need a single -rpath flag with a separated argument. -hardcode_libdir_separator=$lt_hardcode_libdir_separator - -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the -# resulting binary. -hardcode_direct=$hardcode_direct - -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the -# resulting binary. -hardcode_minus_L=$hardcode_minus_L - -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into -# the resulting binary. -hardcode_shlibpath_var=$hardcode_shlibpath_var - -# Set to yes if building a shared library automatically hardcodes DIR into the library -# and all subsequent libraries and executables linked against it. -hardcode_automatic=$hardcode_automatic - -# Variables whose values should be saved in libtool wrapper scripts and -# restored at relink time. -variables_saved_for_relink="$variables_saved_for_relink" - -# Whether libtool must link a program against all its dependency libraries. -link_all_deplibs=$link_all_deplibs - -# Compile-time system search path for libraries -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec - -# Run-time system search path for libraries -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec - -# Fix the shell variable \$srcfile for the compiler. -fix_srcfile_path=$lt_fix_srcfile_path - -# Set to yes if exported symbols are required. -always_export_symbols=$always_export_symbols - -# The commands to list exported symbols. -export_symbols_cmds=$lt_export_symbols_cmds - -# The commands to extract the exported symbol list from a shared archive. -extract_expsyms_cmds=$lt_extract_expsyms_cmds - -# Symbols that should not be listed in the preloaded symbols. -exclude_expsyms=$lt_exclude_expsyms - -# Symbols that must always be exported. -include_expsyms=$lt_include_expsyms - -# ### END LIBTOOL CONFIG - -__EOF__ - - - case $host_os in - aix3*) - cat <<\EOF >> "$cfgfile" - -# AIX sometimes has problems with the GCC collect2 program. For some -# reason, if we set the COLLECT_NAMES environment variable, the problems -# vanish in a puff of smoke. -if test "X${COLLECT_NAMES+set}" != Xset; then - COLLECT_NAMES= - export COLLECT_NAMES -fi -EOF - ;; - esac - - # We use sed instead of cat because bash on DJGPP gets confused if - # if finds mixed CR/LF and LF-only lines. Since sed operates in - # text mode, it properly converts lines to CR/LF. This bash problem - # is reportedly fixed, but why not run on old versions too? - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) - - mv -f "$cfgfile" "$ofile" || \ - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") - chmod +x "$ofile" - -else - # If there is no Makefile yet, we rely on a make rule to execute - # `config.status --recheck' to rerun these tests and create the - # libtool script then. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` - if test -f "$ltmain_in"; then - test -f Makefile && make "$ltmain" - fi -fi - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -CC="$lt_save_CC" - - -# Check whether --with-tags was given. -if test "${with_tags+set}" = set; then - withval=$with_tags; tagnames="$withval" -fi - - -if test -f "$ltmain" && test -n "$tagnames"; then - if test ! -f "${ofile}"; then - { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 -echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} - fi - - if test -z "$LTCC"; then - eval "`$SHELL ${ofile} --config | grep '^LTCC='`" - if test -z "$LTCC"; then - { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 -echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} - else - { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 -echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} - fi - fi - if test -z "$LTCFLAGS"; then - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" - fi - - # Extract list of available tagged configurations in $ofile. - # Note that this assumes the entire list is on one line. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` - - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for tagname in $tagnames; do - IFS="$lt_save_ifs" - # Check whether tagname contains only valid characters - case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in - "") ;; - *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 -echo "$as_me: error: invalid tag name: $tagname" >&2;} - { (exit 1); exit 1; }; } - ;; - esac - - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null - then - { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 -echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} - { (exit 1); exit 1; }; } - fi - - # Update the list of available tags. - if test -n "$tagname"; then - echo appending configuration tag \"$tagname\" to $ofile - - case $tagname in - CXX) - if test -n "$CXX" && ( test "X$CXX" != "Xno" && - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || - (test "X$CXX" != "Xg++"))) ; then - ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - - - - -archive_cmds_need_lc_CXX=no -allow_undefined_flag_CXX= -always_export_symbols_CXX=no -archive_expsym_cmds_CXX= -export_dynamic_flag_spec_CXX= -hardcode_direct_CXX=no -hardcode_libdir_flag_spec_CXX= -hardcode_libdir_flag_spec_ld_CXX= -hardcode_libdir_separator_CXX= -hardcode_minus_L_CXX=no -hardcode_shlibpath_var_CXX=unsupported -hardcode_automatic_CXX=no -module_cmds_CXX= -module_expsym_cmds_CXX= -link_all_deplibs_CXX=unknown -old_archive_cmds_CXX=$old_archive_cmds -no_undefined_flag_CXX= -whole_archive_flag_spec_CXX= -enable_shared_with_static_runtimes_CXX=no - -# Dependencies to place before and after the object being linked: -predep_objects_CXX= -postdep_objects_CXX= -predeps_CXX= -postdeps_CXX= -compiler_lib_search_path_CXX= -compiler_lib_search_dirs_CXX= - -# Source file extension for C++ test sources. -ac_ext=cpp - -# Object file extension for compiled C++ test sources. -objext=o -objext_CXX=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code="int some_variable = 0;" - -# Code to be used in simple link tests -lt_simple_link_test_code='int main(int, char *[]) { return(0); }' - -# ltmain only uses $CC for tagged configurations so make sure $CC is set. - -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} - -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} - -# Allow CC to be a program name with arguments. -compiler=$CC - - -# save warnings/boilerplate of simple test code -ac_outfile=conftest.$ac_objext -echo "$lt_simple_compile_test_code" >conftest.$ac_ext -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_compiler_boilerplate=`cat conftest.err` -$rm conftest* - -ac_outfile=conftest.$ac_objext -echo "$lt_simple_link_test_code" >conftest.$ac_ext -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_linker_boilerplate=`cat conftest.err` -$rm -r conftest* - - -# Allow CC to be a program name with arguments. -lt_save_CC=$CC -lt_save_LD=$LD -lt_save_GCC=$GCC -GCC=$GXX -lt_save_with_gnu_ld=$with_gnu_ld -lt_save_path_LD=$lt_cv_path_LD -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx -else - $as_unset lt_cv_prog_gnu_ld -fi -if test -n "${lt_cv_path_LDCXX+set}"; then - lt_cv_path_LD=$lt_cv_path_LDCXX -else - $as_unset lt_cv_path_LD -fi -test -z "${LDCXX+set}" || LD=$LDCXX -CC=${CXX-"c++"} -compiler=$CC -compiler_CXX=$CC -for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` - - -# We don't want -fno-exception wen compiling C++ code, so set the -# no_builtin_flag separately -if test "$GXX" = yes; then - lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' -else - lt_prog_compiler_no_builtin_flag_CXX= -fi - -if test "$GXX" = yes; then - # Set up default GNU C++ configuration - - -# Check whether --with-gnu-ld was given. -if test "${with_gnu_ld+set}" = set; then - withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes -else - with_gnu_ld=no -fi - -ac_prog=ld -if test "$GCC" = yes; then - # Check if gcc -print-prog-name=ld gives a path. - { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [\\/]* | ?:[\\/]*) - re_direlt='/[^/][^/]*/\.\./' - # Canonicalize the pathname of ld - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` - done - test -z "$LD" && LD="$ac_prog" - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac -elif test "$with_gnu_ld" = yes; then - { echo "$as_me:$LINENO: checking for GNU ld" >&5 -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } -else - { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } -fi -if test "${lt_cv_path_LD+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -z "$LD"; then - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in $PATH; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - lt_cv_path_LD="$ac_dir/$ac_prog" - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some variants of GNU ld only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - case `"$lt_cv_path_LD" -v 2>&1 &5 -echo "${ECHO_T}$LD" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} - { (exit 1); exit 1; }; } -{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } -if test "${lt_cv_prog_gnu_ld+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # I'd rather use --version here, but apparently some GNU lds only accept -v. -case `$LD -v 2>&1 &5 -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } -with_gnu_ld=$lt_cv_prog_gnu_ld - - - - # Check if GNU C++ uses GNU ld as the underlying linker, since the - # archiving commands below assume that GNU ld is being used. - if test "$with_gnu_ld" = yes; then - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' - 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' - - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' - export_dynamic_flag_spec_CXX='${wl}--export-dynamic' - - # If archive_cmds runs LD, not CC, wlarc should be empty - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to - # investigate it a little bit more. (MM) - wlarc='${wl}' - - # ancient GNU ld didn't support --whole-archive et. al. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ - grep 'no-whole-archive' > /dev/null; then - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - else - whole_archive_flag_spec_CXX= - fi - else - with_gnu_ld=no - wlarc= - - # A generic and very simple default shared library creation - # command for GNU C++ for the case where it uses the native - # linker, instead of GNU ld. If possible, this setting should - # overridden to take advantage of the native linker features on - # the platform it is being used on. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' - fi - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' - -else - GXX=no - with_gnu_ld=no - wlarc= -fi - -# PORTME: fill in a description of your system's C++ link characteristics -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } -ld_shlibs_CXX=yes -case $host_os in - aix3*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - aix[4-9]*) - if test "$host_cpu" = ia64; then - # On IA64, the linker does run time linking by default, so we don't - # have to do anything special. - aix_use_runtimelinking=no - exp_sym_flag='-Bexport' - no_entry_flag="" - else - aix_use_runtimelinking=no - - # Test if we are trying to use run time linking or normal - # AIX style linking. If -brtl is somewhere in LDFLAGS, we - # need to do runtime linking. - case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) - for ld_flag in $LDFLAGS; do - case $ld_flag in - *-brtl*) - aix_use_runtimelinking=yes - break - ;; - esac - done - ;; - esac - - exp_sym_flag='-bexport' - no_entry_flag='-bnoentry' - fi - - # When large executables or shared objects are built, AIX ld can - # have problems creating the table of contents. If linking a library - # or program results in "error TOC overflow" add -mminimal-toc to - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. - - archive_cmds_CXX='' - hardcode_direct_CXX=yes - hardcode_libdir_separator_CXX=':' - link_all_deplibs_CXX=yes - - if test "$GXX" = yes; then - case $host_os in aix4.[012]|aix4.[012].*) - # We only want to do this on AIX 4.2 and lower, the check - # below for broken collect2 doesn't work under 4.3+ - collect2name=`${CC} -print-prog-name=collect2` - if test -f "$collect2name" && \ - strings "$collect2name" | grep resolve_lib_name >/dev/null - then - # We have reworked collect2 - : - else - # We have old collect2 - hardcode_direct_CXX=unsupported - # It fails to find uninstalled libraries when the uninstalled - # path is not listed in the libpath. Setting hardcode_minus_L - # to unsupported forces relinking - hardcode_minus_L_CXX=yes - hardcode_libdir_flag_spec_CXX='-L$libdir' - hardcode_libdir_separator_CXX= - fi - ;; - esac - shared_flag='-shared' - if test "$aix_use_runtimelinking" = yes; then - shared_flag="$shared_flag "'${wl}-G' - fi - else - # not using gcc - if test "$host_cpu" = ia64; then - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release - # chokes on -Wl,-G. The following line is correct: - shared_flag='-G' - else - if test "$aix_use_runtimelinking" = yes; then - shared_flag='${wl}-G' - else - shared_flag='${wl}-bM:SRE' - fi - fi - fi - - # It seems that -bexpall does not export symbols beginning with - # underscore (_), so it is better to generate a list of symbols to export. - always_export_symbols_CXX=yes - if test "$aix_use_runtimelinking" = yes; then - # Warning - without using the other runtime loading flags (-brtl), - # -berok will link without error, but may produce a broken library. - allow_undefined_flag_CXX='-berok' - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" - - 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" - else - if test "$host_cpu" = ia64; then - hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' - allow_undefined_flag_CXX="-z nodefs" - 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" - else - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" - # Warning - without using the other run time loading flags, - # -berok will link without error, but may produce a broken library. - no_undefined_flag_CXX=' ${wl}-bernotok' - allow_undefined_flag_CXX=' ${wl}-berok' - # Exported symbols can be pulled into shared objects from archives - whole_archive_flag_spec_CXX='$convenience' - archive_cmds_need_lc_CXX=yes - # This is similar to how AIX traditionally builds its shared libraries. - 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' - fi - fi - ;; - - beos*) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - allow_undefined_flag_CXX=unsupported - # Joseph Beckenbach says some releases of gcc - # support --undefined. This deserves some investigation. FIXME - archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - else - ld_shlibs_CXX=no - fi - ;; - - chorus*) - case $cc_basename in - *) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - esac - ;; - - cygwin* | mingw* | pw32*) - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec_CXX='-L$libdir' - allow_undefined_flag_CXX=unsupported - always_export_symbols_CXX=no - enable_shared_with_static_runtimes_CXX=yes - - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then - 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' - # If the export-symbols file already is a .def file (1st line - # is EXPORTS), use it as is; otherwise, prepend... - archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then - cp $export_symbols $output_objdir/$soname.def; - else - echo EXPORTS > $output_objdir/$soname.def; - cat $export_symbols >> $output_objdir/$soname.def; - fi~ - $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' - else - ld_shlibs_CXX=no - fi - ;; - darwin* | rhapsody*) - archive_cmds_need_lc_CXX=no - hardcode_direct_CXX=no - hardcode_automatic_CXX=yes - hardcode_shlibpath_var_CXX=unsupported - whole_archive_flag_spec_CXX='' - link_all_deplibs_CXX=yes - allow_undefined_flag_CXX="$_lt_dar_allow_undefined" - if test "$GXX" = yes ; then - output_verbose_link_cmd='echo' - archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" - module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" - archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" - module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" - if test "$lt_cv_apple_cc_single_mod" != "yes"; then - 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${_lt_dsymutil}" - archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}" - fi - else - case $cc_basename in - xlc*) - output_verbose_link_cmd='echo' - archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' - module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - 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}' - ;; - *) - ld_shlibs_CXX=no - ;; - esac - fi - ;; - - dgux*) - case $cc_basename in - ec++*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - ghcx*) - # Green Hills C++ Compiler - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - *) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - esac - ;; - freebsd[12]*) - # C++ shared libraries reported to be fairly broken before switch to ELF - ld_shlibs_CXX=no - ;; - freebsd-elf*) - archive_cmds_need_lc_CXX=no - ;; - freebsd* | dragonfly*) - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF - # conventions - ld_shlibs_CXX=yes - ;; - gnu*) - ;; - hpux9*) - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_CXX=: - export_dynamic_flag_spec_CXX='${wl}-E' - hardcode_direct_CXX=yes - hardcode_minus_L_CXX=yes # Not in the search PATH, - # but as the default - # location of the library. - - case $cc_basename in - CC*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - aCC*) - 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' - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - 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' - ;; - *) - if test "$GXX" = yes; then - 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' - else - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - fi - ;; - esac - ;; - hpux10*|hpux11*) - if test $with_gnu_ld = no; then - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_CXX=: - - case $host_cpu in - hppa*64*|ia64*) ;; - *) - export_dynamic_flag_spec_CXX='${wl}-E' - ;; - esac - fi - case $host_cpu in - hppa*64*|ia64*) - hardcode_direct_CXX=no - hardcode_shlibpath_var_CXX=no - ;; - *) - hardcode_direct_CXX=yes - hardcode_minus_L_CXX=yes # Not in the search PATH, - # but as the default - # location of the library. - ;; - esac - - case $cc_basename in - CC*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - aCC*) - case $host_cpu in - hppa*64*) - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - ia64*) - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - *) - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - esac - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - 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' - ;; - *) - if test "$GXX" = yes; then - if test $with_gnu_ld = no; then - case $host_cpu in - hppa*64*) - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - ia64*) - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - *) - 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' - ;; - esac - fi - else - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - fi - ;; - esac - ;; - interix[3-9]*) - hardcode_direct_CXX=no - hardcode_shlibpath_var_CXX=no - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' - export_dynamic_flag_spec_CXX='${wl}-E' - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. - # Instead, shared libraries are loaded at an image base (0x10000000 by - # default) and relocated if they conflict, which is a slow very memory - # consuming and fragmenting process. To avoid this, we pick a random, - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link - # time. Moving up from 0x10000000 also allows more sbrk(2) space. - 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' - 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' - ;; - irix5* | irix6*) - case $cc_basename in - CC*) - # SGI C++ - 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' - - # Archives containing C++ object files must be created using - # "CC -ar", where "CC" is the IRIX C++ compiler. This is - # necessary to make sure instantiated templates are included - # in the archive. - old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' - ;; - *) - if test "$GXX" = yes; then - if test "$with_gnu_ld" = no; then - 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' - else - 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' - fi - fi - link_all_deplibs_CXX=yes - ;; - esac - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_CXX=: - ;; - linux* | k*bsd*-gnu) - case $cc_basename in - KCC*) - # Kuck and Associates, Inc. (KAI) C++ Compiler - - # KCC will only create a shared library if the output file - # ends with ".so" (or ".sl" for HP-UX), so rename the library - # to its proper name (with version) after linking. - 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' - 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' - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - 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' - - hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' - export_dynamic_flag_spec_CXX='${wl}--export-dynamic' - - # Archives containing C++ object files must be created using - # "CC -Bstatic", where "CC" is the KAI C++ compiler. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' - ;; - icpc*) - # Intel C++ - with_gnu_ld=yes - # version 8.0 and above of icpc choke on multiply defined symbols - # if we add $predep_objects and $postdep_objects, however 7.1 and - # earlier do not add the objects themselves. - case `$CC -V 2>&1` in - *"Version 7."*) - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' - 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' - ;; - *) # Version 8.0 or newer - tmp_idyn= - case $host_cpu in - ia64*) tmp_idyn=' -i_dynamic';; - esac - archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - 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' - ;; - esac - archive_cmds_need_lc_CXX=no - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' - export_dynamic_flag_spec_CXX='${wl}--export-dynamic' - whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' - ;; - pgCC* | pgcpp*) - # Portland Group C++ compiler - archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' - 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' - - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' - export_dynamic_flag_spec_CXX='${wl}--export-dynamic' - 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' - ;; - cxx*) - # Compaq C++ - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' - 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' - - runpath_var=LD_RUN_PATH - hardcode_libdir_flag_spec_CXX='-rpath $libdir' - hardcode_libdir_separator_CXX=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - 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' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C++ 5.9 - no_undefined_flag_CXX=' -zdefs' - archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' - hardcode_libdir_flag_spec_CXX='-R$libdir' - whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - - # Not sure whether something based on - # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 - # would be better. - output_verbose_link_cmd='echo' - - # Archives containing C++ object files must be created using - # "CC -xar", where "CC" is the Sun C++ compiler. This is - # necessary to make sure instantiated templates are included - # in the archive. - old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' - ;; - esac - ;; - esac - ;; - lynxos*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - m88k*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - mvs*) - case $cc_basename in - cxx*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - *) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - esac - ;; - netbsd* | netbsdelf*-gnu) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' - wlarc= - hardcode_libdir_flag_spec_CXX='-R$libdir' - hardcode_direct_CXX=yes - hardcode_shlibpath_var_CXX=no - fi - # Workaround some broken pre-1.5 toolchains - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' - ;; - openbsd2*) - # C++ shared libraries are fairly broken - ld_shlibs_CXX=no - ;; - openbsd*) - if test -f /usr/libexec/ld.so; then - hardcode_direct_CXX=yes - hardcode_shlibpath_var_CXX=no - archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' - export_dynamic_flag_spec_CXX='${wl}-E' - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - fi - output_verbose_link_cmd='echo' - else - ld_shlibs_CXX=no - fi - ;; - osf3*) - case $cc_basename in - KCC*) - # Kuck and Associates, Inc. (KAI) C++ Compiler - - # KCC will only create a shared library if the output file - # ends with ".so" (or ".sl" for HP-UX), so rename the library - # to its proper name (with version) after linking. - 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' - - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' - hardcode_libdir_separator_CXX=: - - # Archives containing C++ object files must be created using - # "CC -Bstatic", where "CC" is the KAI C++ compiler. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' - - ;; - RCC*) - # Rational C++ 2.4.1 - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - cxx*) - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' - 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' - - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_CXX=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - 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' - ;; - *) - if test "$GXX" = yes && test "$with_gnu_ld" = no; then - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' - 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' - - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_CXX=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' - - else - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - fi - ;; - esac - ;; - osf4* | osf5*) - case $cc_basename in - KCC*) - # Kuck and Associates, Inc. (KAI) C++ Compiler - - # KCC will only create a shared library if the output file - # ends with ".so" (or ".sl" for HP-UX), so rename the library - # to its proper name (with version) after linking. - 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' - - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' - hardcode_libdir_separator_CXX=: - - # Archives containing C++ object files must be created using - # the KAI C++ compiler. - old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' - ;; - RCC*) - # Rational C++ 2.4.1 - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - cxx*) - allow_undefined_flag_CXX=' -expect_unresolved \*' - 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' - archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ - echo "-hidden">> $lib.exp~ - $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~ - $rm $lib.exp' - - hardcode_libdir_flag_spec_CXX='-rpath $libdir' - hardcode_libdir_separator_CXX=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - 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' - ;; - *) - if test "$GXX" = yes && test "$with_gnu_ld" = no; then - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' - 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' - - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_CXX=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' - - else - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - fi - ;; - esac - ;; - psos*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - sunos4*) - case $cc_basename in - CC*) - # Sun C++ 4.x - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - lcc*) - # Lucid - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - *) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - esac - ;; - solaris*) - case $cc_basename in - CC*) - # Sun C++ 4.2, 5.x and Centerline C++ - archive_cmds_need_lc_CXX=yes - no_undefined_flag_CXX=' -zdefs' - archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $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' - - hardcode_libdir_flag_spec_CXX='-R$libdir' - hardcode_shlibpath_var_CXX=no - case $host_os in - solaris2.[0-5] | solaris2.[0-5].*) ;; - *) - # The compiler driver will combine and reorder linker options, - # but understands `-z linker_flag'. - # Supported since Solaris 2.6 (maybe 2.5.1?) - whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' - ;; - esac - link_all_deplibs_CXX=yes - - output_verbose_link_cmd='echo' - - # Archives containing C++ object files must be created using - # "CC -xar", where "CC" is the Sun C++ compiler. This is - # necessary to make sure instantiated templates are included - # in the archive. - old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' - ;; - gcx*) - # Green Hills C++ Compiler - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' - - # The C++ compiler must be used to create the archive. - old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' - ;; - *) - # GNU C++ compiler with Solaris linker - if test "$GXX" = yes && test "$with_gnu_ld" = no; then - no_undefined_flag_CXX=' ${wl}-z ${wl}defs' - if $CC --version | grep -v '^2\.7' > /dev/null; then - archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" - else - # g++ 2.7 appears to require `-G' NOT `-shared' on this - # platform. - archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" - fi - - hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' - case $host_os in - solaris2.[0-5] | solaris2.[0-5].*) ;; - *) - whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' - ;; - esac - fi - ;; - esac - ;; - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) - no_undefined_flag_CXX='${wl}-z,text' - archive_cmds_need_lc_CXX=no - hardcode_shlibpath_var_CXX=no - runpath_var='LD_RUN_PATH' - - case $cc_basename in - CC*) - archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - ;; - sysv5* | sco3.2v5* | sco5v6*) - # Note: We can NOT use -z defs as we might desire, because we do not - # link with -lc, and that would cause any symbols used from libc to - # always be unresolved, which means just about no library would - # ever link correctly. If we're not using GNU ld we use -z text - # though, which does catch some bad symbols but isn't as heavy-handed - # as -z defs. - # For security reasons, it is highly recommended that you always - # use absolute paths for naming shared libraries, and exclude the - # DT_RUNPATH tag from executables and libraries. But doing so - # requires that you compile everything twice, which is a pain. - # So that behaviour is only enabled if SCOABSPATH is set to a - # non-empty value in the environment. Most likely only useful for - # creating official distributions of packages. - # This is a hack until libtool officially supports absolute path - # names for shared libraries. - no_undefined_flag_CXX='${wl}-z,text' - allow_undefined_flag_CXX='${wl}-z,nodefs' - archive_cmds_need_lc_CXX=no - hardcode_shlibpath_var_CXX=no - hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' - hardcode_libdir_separator_CXX=':' - link_all_deplibs_CXX=yes - export_dynamic_flag_spec_CXX='${wl}-Bexport' - runpath_var='LD_RUN_PATH' - - case $cc_basename in - CC*) - archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - ;; - tandem*) - case $cc_basename in - NCC*) - # NonStop-UX NCC 3.20 - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - *) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - esac - ;; - vxworks*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - *) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; -esac -{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 -echo "${ECHO_T}$ld_shlibs_CXX" >&6; } -test "$ld_shlibs_CXX" = no && can_build_shared=no - -GCC_CXX="$GXX" -LD_CXX="$LD" - -cat > conftest.$ac_ext <&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - # Parse the compiler output and extract the necessary - # objects, libraries and library flags. - - # Sentinel used to keep track of whether or not we are before - # the conftest object file. - pre_test_object_deps_done=no - - # The `*' in the case matches for architectures that use `case' in - # $output_verbose_cmd can trigger glob expansion during the loop - # eval without this substitution. - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` - - for p in `eval $output_verbose_link_cmd`; do - case $p in - - -L* | -R* | -l*) - # Some compilers place space between "-{L,R}" and the path. - # Remove the space. - if test $p = "-L" \ - || test $p = "-R"; then - prev=$p - continue - else - prev= - fi - - if test "$pre_test_object_deps_done" = no; then - case $p in - -L* | -R*) - # Internal compiler library paths should come after those - # provided the user. The postdeps already come after the - # user supplied libs so there is no need to process them. - if test -z "$compiler_lib_search_path_CXX"; then - compiler_lib_search_path_CXX="${prev}${p}" - else - compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" - fi - ;; - # The "-l" case would never come before the object being - # linked, so don't bother handling this case. - esac - else - if test -z "$postdeps_CXX"; then - postdeps_CXX="${prev}${p}" - else - postdeps_CXX="${postdeps_CXX} ${prev}${p}" - fi - fi - ;; - - *.$objext) - # This assumes that the test object file only shows up - # once in the compiler output. - if test "$p" = "conftest.$objext"; then - pre_test_object_deps_done=yes - continue - fi - - if test "$pre_test_object_deps_done" = no; then - if test -z "$predep_objects_CXX"; then - predep_objects_CXX="$p" - else - predep_objects_CXX="$predep_objects_CXX $p" - fi - else - if test -z "$postdep_objects_CXX"; then - postdep_objects_CXX="$p" - else - postdep_objects_CXX="$postdep_objects_CXX $p" - fi - fi - ;; - - *) ;; # Ignore the rest. - - esac - done - - # Clean up. - rm -f a.out a.exe -else - echo "libtool.m4: error: problem compiling CXX test program" -fi - -$rm -f confest.$objext - -compiler_lib_search_dirs_CXX= -if test -n "$compiler_lib_search_path_CXX"; then - compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` -fi - -# PORTME: override above test on systems where it is broken -case $host_os in -interix[3-9]*) - # Interix 3.5 installs completely hosed .la files for C++, so rather than - # hack all around it, let's just trust "g++" to DTRT. - predep_objects_CXX= - postdep_objects_CXX= - postdeps_CXX= - ;; - -linux*) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C++ 5.9 - # - # The more standards-conforming stlport4 library is - # incompatible with the Cstd library. Avoid specifying - # it if it's in CXXFLAGS. Ignore libCrun as - # -library=stlport4 depends on it. - case " $CXX $CXXFLAGS " in - *" -library=stlport4 "*) - solaris_use_stlport4=yes - ;; - esac - if test "$solaris_use_stlport4" != yes; then - postdeps_CXX='-library=Cstd -library=Crun' - fi - ;; - esac - ;; - -solaris*) - case $cc_basename in - CC*) - # The more standards-conforming stlport4 library is - # incompatible with the Cstd library. Avoid specifying - # it if it's in CXXFLAGS. Ignore libCrun as - # -library=stlport4 depends on it. - case " $CXX $CXXFLAGS " in - *" -library=stlport4 "*) - solaris_use_stlport4=yes - ;; - esac - - # Adding this requires a known-good setup of shared libraries for - # Sun compiler versions before 5.6, else PIC objects from an old - # archive will be linked into the output, leading to subtle bugs. - if test "$solaris_use_stlport4" != yes; then - postdeps_CXX='-library=Cstd -library=Crun' - fi - ;; - esac - ;; -esac - -case " $postdeps_CXX " in -*" -lc "*) archive_cmds_need_lc_CXX=no ;; -esac - -lt_prog_compiler_wl_CXX= -lt_prog_compiler_pic_CXX= -lt_prog_compiler_static_CXX= - -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } - - # C++ specific cases for pic, static, wl, etc. - if test "$GXX" = yes; then - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_static_CXX='-static' - - case $host_os in - aix*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static_CXX='-Bstatic' - fi - ;; - amigaos*) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the `-m68020' flag to GCC prevents building anything better, - # like `-m68040'. - lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' - ;; - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; - mingw* | cygwin* | os2* | pw32*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style - # (--disable-auto-import) libraries - lt_prog_compiler_pic_CXX='-DDLL_EXPORT' - ;; - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - lt_prog_compiler_pic_CXX='-fno-common' - ;; - *djgpp*) - # DJGPP does not support shared libraries at all - lt_prog_compiler_pic_CXX= - ;; - interix[3-9]*) - # Interix 3.x gcc -fpic/-fPIC options generate broken code. - # Instead, we relocate shared libraries at runtime. - ;; - sysv4*MP*) - if test -d /usr/nec; then - lt_prog_compiler_pic_CXX=-Kconform_pic - fi - ;; - hpux*) - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - ;; - *) - lt_prog_compiler_pic_CXX='-fPIC' - ;; - esac - ;; - *) - lt_prog_compiler_pic_CXX='-fPIC' - ;; - esac - else - case $host_os in - aix[4-9]*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static_CXX='-Bstatic' - else - lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' - fi - ;; - chorus*) - case $cc_basename in - cxch68*) - # Green Hills C++ Compiler - # _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" - ;; - esac - ;; - darwin*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - case $cc_basename in - xlc*) - lt_prog_compiler_pic_CXX='-qnocommon' - lt_prog_compiler_wl_CXX='-Wl,' - ;; - esac - ;; - dgux*) - case $cc_basename in - ec++*) - lt_prog_compiler_pic_CXX='-KPIC' - ;; - ghcx*) - # Green Hills C++ Compiler - lt_prog_compiler_pic_CXX='-pic' - ;; - *) - ;; - esac - ;; - freebsd* | dragonfly*) - # FreeBSD uses GNU C++ - ;; - hpux9* | hpux10* | hpux11*) - case $cc_basename in - CC*) - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' - if test "$host_cpu" != ia64; then - lt_prog_compiler_pic_CXX='+Z' - fi - ;; - aCC*) - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic_CXX='+Z' - ;; - esac - ;; - *) - ;; - esac - ;; - interix*) - # This is c89, which is MS Visual C++ (no shared libs) - # Anyone wants to do a port? - ;; - irix5* | irix6* | nonstopux*) - case $cc_basename in - CC*) - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_static_CXX='-non_shared' - # CC pic flag -KPIC is the default. - ;; - *) - ;; - esac - ;; - linux* | k*bsd*-gnu) - case $cc_basename in - KCC*) - # KAI C++ Compiler - lt_prog_compiler_wl_CXX='--backend -Wl,' - lt_prog_compiler_pic_CXX='-fPIC' - ;; - icpc* | ecpc*) - # Intel C++ - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_pic_CXX='-KPIC' - lt_prog_compiler_static_CXX='-static' - ;; - pgCC* | pgcpp*) - # Portland Group C++ compiler. - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_pic_CXX='-fpic' - lt_prog_compiler_static_CXX='-Bstatic' - ;; - cxx*) - # Compaq C++ - # Make sure the PIC flag is empty. It appears that all Alpha - # Linux and Compaq Tru64 Unix objects are PIC. - lt_prog_compiler_pic_CXX= - lt_prog_compiler_static_CXX='-non_shared' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C++ 5.9 - lt_prog_compiler_pic_CXX='-KPIC' - lt_prog_compiler_static_CXX='-Bstatic' - lt_prog_compiler_wl_CXX='-Qoption ld ' - ;; - esac - ;; - esac - ;; - lynxos*) - ;; - m88k*) - ;; - mvs*) - case $cc_basename in - cxx*) - lt_prog_compiler_pic_CXX='-W c,exportall' - ;; - *) - ;; - esac - ;; - netbsd* | netbsdelf*-gnu) - ;; - osf3* | osf4* | osf5*) - case $cc_basename in - KCC*) - lt_prog_compiler_wl_CXX='--backend -Wl,' - ;; - RCC*) - # Rational C++ 2.4.1 - lt_prog_compiler_pic_CXX='-pic' - ;; - cxx*) - # Digital/Compaq C++ - lt_prog_compiler_wl_CXX='-Wl,' - # Make sure the PIC flag is empty. It appears that all Alpha - # Linux and Compaq Tru64 Unix objects are PIC. - lt_prog_compiler_pic_CXX= - lt_prog_compiler_static_CXX='-non_shared' - ;; - *) - ;; - esac - ;; - psos*) - ;; - solaris*) - case $cc_basename in - CC*) - # Sun C++ 4.2, 5.x and Centerline C++ - lt_prog_compiler_pic_CXX='-KPIC' - lt_prog_compiler_static_CXX='-Bstatic' - lt_prog_compiler_wl_CXX='-Qoption ld ' - ;; - gcx*) - # Green Hills C++ Compiler - lt_prog_compiler_pic_CXX='-PIC' - ;; - *) - ;; - esac - ;; - sunos4*) - case $cc_basename in - CC*) - # Sun C++ 4.x - lt_prog_compiler_pic_CXX='-pic' - lt_prog_compiler_static_CXX='-Bstatic' - ;; - lcc*) - # Lucid - lt_prog_compiler_pic_CXX='-pic' - ;; - *) - ;; - esac - ;; - tandem*) - case $cc_basename in - NCC*) - # NonStop-UX NCC 3.20 - lt_prog_compiler_pic_CXX='-KPIC' - ;; - *) - ;; - esac - ;; - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) - case $cc_basename in - CC*) - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_pic_CXX='-KPIC' - lt_prog_compiler_static_CXX='-Bstatic' - ;; - esac - ;; - vxworks*) - ;; - *) - lt_prog_compiler_can_build_shared_CXX=no - ;; - esac - fi - -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 -echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } - -# -# Check to make sure the PIC flag actually works. -# -if test -n "$lt_prog_compiler_pic_CXX"; then - -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } -if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_prog_compiler_pic_works_CXX=no - ac_outfile=conftest.$ac_objext - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:14860: $lt_compile\"" >&5) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&5 - echo "$as_me:14864: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - lt_cv_prog_compiler_pic_works_CXX=yes - fi - fi - $rm conftest* - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 -echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; } - -if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then - case $lt_prog_compiler_pic_CXX in - "" | " "*) ;; - *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; - esac -else - lt_prog_compiler_pic_CXX= - lt_prog_compiler_can_build_shared_CXX=no -fi - -fi -case $host_os in - # For platforms which do not support PIC, -DPIC is meaningless: - *djgpp*) - lt_prog_compiler_pic_CXX= - ;; - *) - lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" - ;; -esac - -# -# Check to make sure the static flag actually works. -# -wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } -if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_prog_compiler_static_works_CXX=no - save_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS $lt_tmp_static_flag" - echo "$lt_simple_link_test_code" > conftest.$ac_ext - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then - # The linker can only warn and ignore the option if not recognized - # So say no if there are warnings - if test -s conftest.err; then - # Append any errors to the config.log. - cat conftest.err 1>&5 - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if diff conftest.exp conftest.er2 >/dev/null; then - lt_cv_prog_compiler_static_works_CXX=yes - fi - else - lt_cv_prog_compiler_static_works_CXX=yes - fi - fi - $rm -r conftest* - LDFLAGS="$save_LDFLAGS" - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5 -echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; } - -if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then - : -else - lt_prog_compiler_static_CXX= -fi - - -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } -if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_prog_compiler_c_o_CXX=no - $rm -r conftest 2>/dev/null - mkdir conftest - cd conftest - mkdir out - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - lt_compiler_flag="-o out/conftest2.$ac_objext" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:14964: $lt_compile\"" >&5) - (eval "$lt_compile" 2>out/conftest.err) - ac_status=$? - cat out/conftest.err >&5 - echo "$as_me:14968: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s out/conftest2.$ac_objext - then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then - lt_cv_prog_compiler_c_o_CXX=yes - fi - fi - chmod u+w . 2>&5 - $rm conftest* - # SGI C++ compiler will create directory out/ii_files/ for - # template instantiation - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files - $rm out/* && rmdir out - cd .. - rmdir conftest - $rm conftest* - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } - - -hard_links="nottested" -if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then - # do not overwrite the value of need_locks provided by the user - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } - hard_links=yes - $rm conftest* - ln conftest.a conftest.b 2>/dev/null && hard_links=no - touch conftest.a - ln conftest.a conftest.b 2>&5 || hard_links=no - ln conftest.a conftest.b 2>/dev/null && hard_links=no - { echo "$as_me:$LINENO: result: $hard_links" >&5 -echo "${ECHO_T}$hard_links" >&6; } - if test "$hard_links" = no; then - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} - need_locks=warn - fi -else - need_locks=no -fi - -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } - - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - case $host_os in - aix[4-9]*) - # If we're using GNU nm, then we don't want the "-C" option. - # -C means demangle to AIX nm, but means don't demangle with GNU nm - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then - 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' - else - 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' - fi - ;; - pw32*) - export_symbols_cmds_CXX="$ltdll_cmds" - ;; - cygwin* | mingw*) - 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' - ;; - linux* | k*bsd*-gnu) - link_all_deplibs_CXX=no - ;; - *) - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - ;; - esac - exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' - -{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 -echo "${ECHO_T}$ld_shlibs_CXX" >&6; } -test "$ld_shlibs_CXX" = no && can_build_shared=no - -# -# Do we need to explicitly link libc? -# -case "x$archive_cmds_need_lc_CXX" in -x|xyes) - # Assume -lc should be added - archive_cmds_need_lc_CXX=yes - - if test "$enable_shared" = yes && test "$GCC" = yes; then - case $archive_cmds_CXX in - *'~'*) - # FIXME: we may have to deal with multi-command sequences. - ;; - '$CC '*) - # Test whether the compiler implicitly links with -lc since on some - # systems, -lgcc has to come before -lc. If gcc already passes -lc - # to ld, don't add -lc before -lgcc. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } - $rm conftest* - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } 2>conftest.err; then - soname=conftest - lib=conftest - libobjs=conftest.$ac_objext - deplibs= - wl=$lt_prog_compiler_wl_CXX - pic_flag=$lt_prog_compiler_pic_CXX - compiler_flags=-v - linker_flags=-v - verstring= - output_objdir=. - libname=conftest - lt_save_allow_undefined_flag=$allow_undefined_flag_CXX - allow_undefined_flag_CXX= - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 - (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - then - archive_cmds_need_lc_CXX=no - else - archive_cmds_need_lc_CXX=yes - fi - allow_undefined_flag_CXX=$lt_save_allow_undefined_flag - else - cat conftest.err 1>&5 - fi - $rm conftest* - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 -echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } - ;; - esac - fi - ;; -esac - -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } -library_names_spec= -libname_spec='lib$name' -soname_spec= -shrext_cmds=".so" -postinstall_cmds= -postuninstall_cmds= -finish_cmds= -finish_eval= -shlibpath_var= -shlibpath_overrides_runpath=unknown -version_type=none -dynamic_linker="$host_os ld.so" -sys_lib_dlsearch_path_spec="/lib /usr/lib" - -need_lib_prefix=unknown -hardcode_into_libs=no - -# when you set need_version to no, make sure it does not cause -set_version -# flags to be left without arguments -need_version=unknown - -case $host_os in -aix3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' - shlibpath_var=LIBPATH - - # AIX 3 has no versioning support, so we append a major version to the name. - soname_spec='${libname}${release}${shared_ext}$major' - ;; - -aix[4-9]*) - version_type=linux - need_lib_prefix=no - need_version=no - hardcode_into_libs=yes - if test "$host_cpu" = ia64; then - # AIX 5 supports IA64 - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - else - # With GCC up to 2.95.x, collect2 would create an import file - # for dependence libraries. The import file would start with - # the line `#! .'. This would cause the generated library to - # depend on `.', always an invalid library. This was fixed in - # development snapshots of GCC prior to 3.0. - case $host_os in - aix4 | aix4.[01] | aix4.[01].*) - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' - echo ' yes ' - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then - : - else - can_build_shared=no - fi - ;; - esac - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct - # soname into executable. Probably we can add versioning support to - # collect2, so additional links can be useful in future. - if test "$aix_use_runtimelinking" = yes; then - # If using run time linking (on AIX 4.2 or later) use lib.so - # instead of lib.a to let people know that these are not - # typical AIX shared libraries. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - else - # We preserve .a as extension for shared libraries through AIX4.2 - # and later when we are not doing run time linking. - library_names_spec='${libname}${release}.a $libname.a' - soname_spec='${libname}${release}${shared_ext}$major' - fi - shlibpath_var=LIBPATH - fi - ;; - -amigaos*) - library_names_spec='$libname.ixlibrary $libname.a' - # Create ${libname}_ixlibrary.a entries in /sys/libs. - 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' - ;; - -beos*) - library_names_spec='${libname}${shared_ext}' - dynamic_linker="$host_os ld.so" - shlibpath_var=LIBRARY_PATH - ;; - -bsdi[45]*) - version_type=linux - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" - # the default ld.so.conf also contains /usr/contrib/lib and - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow - # libtool to hard-code these into programs - ;; - -cygwin* | mingw* | pw32*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in - yes,cygwin* | yes,mingw* | yes,pw32*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname~ - chmod a+x \$dldir/$dlname' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $rm \$dlpath' - shlibpath_overrides_runpath=yes - - case $host_os in - cygwin*) - # Cygwin DLLs use 'cyg' prefix rather than 'lib' - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" - ;; - mingw*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then - # It is most probably a Windows format PATH printed by - # mingw gcc, but we are running on Cygwin. Gcc prints its search - # path with ; separators, and with drive letters. We can handle the - # drive letters (cygwin fileutils understands them), so leave them, - # especially as we might pass files found there to a mingw objdump, - # which wouldn't understand a cygwinified path. Ahh. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` - else - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi - ;; - pw32*) - # pw32 DLLs use 'pw' prefix rather than 'lib' - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - ;; - esac - ;; - - *) - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' - ;; - esac - dynamic_linker='Win32 ld.exe' - # FIXME: first we should search . and the directory the executable is in - shlibpath_var=PATH - ;; - -darwin* | rhapsody*) - dynamic_linker="$host_os dyld" - version_type=darwin - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' - soname_spec='${libname}${release}${major}$shared_ext' - shlibpath_overrides_runpath=yes - shlibpath_var=DYLD_LIBRARY_PATH - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' - - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' - ;; - -dgux*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -freebsd1*) - dynamic_linker=no - ;; - -freebsd* | dragonfly*) - # DragonFly does not have aout. When/if they implement a new - # versioning mechanism, adjust this. - if test -x /usr/bin/objformat; then - objformat=`/usr/bin/objformat` - else - case $host_os in - freebsd[123]*) objformat=aout ;; - *) objformat=elf ;; - esac - fi - version_type=freebsd-$objformat - case $version_type in - freebsd-elf*) - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - need_version=no - need_lib_prefix=no - ;; - freebsd-*) - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' - need_version=yes - ;; - esac - shlibpath_var=LD_LIBRARY_PATH - case $host_os in - freebsd2*) - shlibpath_overrides_runpath=yes - ;; - freebsd3.[01]* | freebsdelf3.[01]*) - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - *) # from 4.6 on, and DragonFly - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - esac - ;; - -gnu*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - ;; - -hpux9* | hpux10* | hpux11*) - # Give a soname corresponding to the major version so that dld.sl refuses to - # link against other versions. - version_type=sunos - need_lib_prefix=no - need_version=no - case $host_cpu in - ia64*) - shrext_cmds='.so' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.so" - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - if test "X$HPUX_IA64_MODE" = X32; then - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" - else - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" - fi - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - hppa*64*) - shrext_cmds='.sl' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.sl" - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - *) - shrext_cmds='.sl' - dynamic_linker="$host_os dld.sl" - shlibpath_var=SHLIB_PATH - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - ;; - esac - # HP-UX runs *really* slowly unless shared libraries are mode 555. - postinstall_cmds='chmod 555 $lib' - ;; - -interix[3-9]*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - -irix5* | irix6* | nonstopux*) - case $host_os in - nonstopux*) version_type=nonstopux ;; - *) - if test "$lt_cv_prog_gnu_ld" = yes; then - version_type=linux - else - version_type=irix - fi ;; - esac - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' - case $host_os in - irix5* | nonstopux*) - libsuff= shlibsuff= - ;; - *) - case $LD in # libtool.m4 will add one of these switches to LD - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") - libsuff= shlibsuff= libmagic=32-bit;; - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") - libsuff=32 shlibsuff=N32 libmagic=N32;; - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") - libsuff=64 shlibsuff=64 libmagic=64-bit;; - *) libsuff= shlibsuff= libmagic=never-match;; - esac - ;; - esac - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH - shlibpath_overrides_runpath=no - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" - hardcode_into_libs=yes - ;; - -# No shared lib support for Linux oldld, aout, or coff. -linux*oldld* | linux*aout* | linux*coff*) - dynamic_linker=no - ;; - -# This must be Linux ELF. -linux* | k*bsd*-gnu) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - # This implies no fast_install, which is unacceptable. - # Some rework will be needed to allow for fast_install - # before this can be enabled. - hardcode_into_libs=yes - - # Append ld.so.conf contents to the search path - if test -f /etc/ld.so.conf; then - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" - fi - - # We used to test for /lib/ld.so.1 and disable shared libraries on - # powerpc, because MkLinux only supported shared libraries with the - # GNU dynamic linker. Since this was broken with cross compilers, - # most powerpc-linux boxes support dynamic linking these days and - # people can always --disable-shared, the test was removed, and we - # assume the GNU/Linux dynamic linker is in use. - dynamic_linker='GNU/Linux ld.so' - ;; - -netbsdelf*-gnu) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - dynamic_linker='NetBSD ld.elf_so' - ;; - -netbsd*) - version_type=sunos - need_lib_prefix=no - need_version=no - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - dynamic_linker='NetBSD (a.out) ld.so' - else - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='NetBSD ld.elf_so' - fi - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - -newsos6) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -nto-qnx*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -openbsd*) - version_type=sunos - sys_lib_dlsearch_path_spec="/usr/lib" - need_lib_prefix=no - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. - case $host_os in - openbsd3.3 | openbsd3.3.*) need_version=yes ;; - *) need_version=no ;; - esac - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - shlibpath_var=LD_LIBRARY_PATH - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - case $host_os in - openbsd2.[89] | openbsd2.[89].*) - shlibpath_overrides_runpath=no - ;; - *) - shlibpath_overrides_runpath=yes - ;; - esac - else - shlibpath_overrides_runpath=yes - fi - ;; - -os2*) - libname_spec='$name' - shrext_cmds=".dll" - need_lib_prefix=no - library_names_spec='$libname${shared_ext} $libname.a' - dynamic_linker='OS/2 ld.exe' - shlibpath_var=LIBPATH - ;; - -osf3* | osf4* | osf5*) - version_type=osf - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" - ;; - -rdos*) - dynamic_linker=no - ;; - -solaris*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - # ldd complains unless libraries are executable - postinstall_cmds='chmod +x $lib' - ;; - -sunos4*) - version_type=sunos - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - if test "$with_gnu_ld" = yes; then - need_lib_prefix=no - fi - need_version=yes - ;; - -sysv4 | sysv4.3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - case $host_vendor in - sni) - shlibpath_overrides_runpath=no - need_lib_prefix=no - export_dynamic_flag_spec='${wl}-Blargedynsym' - runpath_var=LD_RUN_PATH - ;; - siemens) - need_lib_prefix=no - ;; - motorola) - need_lib_prefix=no - need_version=no - shlibpath_overrides_runpath=no - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' - ;; - esac - ;; - -sysv4*MP*) - if test -d /usr/nec ;then - version_type=linux - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' - soname_spec='$libname${shared_ext}.$major' - shlibpath_var=LD_LIBRARY_PATH - fi - ;; - -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - version_type=freebsd-elf - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - if test "$with_gnu_ld" = yes; then - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' - shlibpath_overrides_runpath=no - else - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' - shlibpath_overrides_runpath=yes - case $host_os in - sco3.2v5*) - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" - ;; - esac - fi - sys_lib_dlsearch_path_spec='/usr/lib' - ;; - -uts4*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -*) - dynamic_linker=no - ;; -esac -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 -echo "${ECHO_T}$dynamic_linker" >&6; } -test "$dynamic_linker" = no && can_build_shared=no - -if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" -fi - -sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" -if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" -fi - -sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" - -variables_saved_for_relink="PATH $shlibpath_var $runpath_var" -if test "$GCC" = yes; then - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" -fi - -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } -hardcode_action_CXX= -if test -n "$hardcode_libdir_flag_spec_CXX" || \ - test -n "$runpath_var_CXX" || \ - test "X$hardcode_automatic_CXX" = "Xyes" ; then - - # We can hardcode non-existant directories. - if test "$hardcode_direct_CXX" != no && - # If the only mechanism to avoid hardcoding is shlibpath_var, we - # have to relink, otherwise we might link with an installed library - # when we should be linking with a yet-to-be-installed one - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && - test "$hardcode_minus_L_CXX" != no; then - # Linking always hardcodes the temporary library directory. - hardcode_action_CXX=relink - else - # We can link without hardcoding, and we can hardcode nonexisting dirs. - hardcode_action_CXX=immediate - fi -else - # We cannot hardcode anything, or else we can only hardcode existing - # directories. - hardcode_action_CXX=unsupported -fi -{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 -echo "${ECHO_T}$hardcode_action_CXX" >&6; } - -if test "$hardcode_action_CXX" = relink; then - # Fast installation is not supported - enable_fast_install=no -elif test "$shlibpath_overrides_runpath" = yes || - test "$enable_shared" = no; then - # Fast installation is not necessary - enable_fast_install=needless -fi - - -# The else clause should only fire when bootstrapping the -# libtool distribution, otherwise you forgot to ship ltmain.sh -# with your package, and you will get complaints that there are -# no rules to generate ltmain.sh. -if test -f "$ltmain"; then - # See if we are running on zsh, and set the options which allow our commands through - # without removal of \ escapes. - if test -n "${ZSH_VERSION+set}" ; then - setopt NO_GLOB_SUBST - fi - # Now quote all the things that may contain metacharacters while being - # careful not to overquote the AC_SUBSTed values. We take copies of the - # variables and quote the copies for generation of the libtool script. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ - SED SHELL STRIP \ - libname_spec library_names_spec soname_spec extract_expsyms_cmds \ - old_striplib striplib file_magic_cmd finish_cmds finish_eval \ - deplibs_check_method reload_flag reload_cmds need_locks \ - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ - lt_cv_sys_global_symbol_to_c_name_address \ - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ - old_postinstall_cmds old_postuninstall_cmds \ - compiler_CXX \ - CC_CXX \ - LD_CXX \ - lt_prog_compiler_wl_CXX \ - lt_prog_compiler_pic_CXX \ - lt_prog_compiler_static_CXX \ - lt_prog_compiler_no_builtin_flag_CXX \ - export_dynamic_flag_spec_CXX \ - thread_safe_flag_spec_CXX \ - whole_archive_flag_spec_CXX \ - enable_shared_with_static_runtimes_CXX \ - old_archive_cmds_CXX \ - old_archive_from_new_cmds_CXX \ - predep_objects_CXX \ - postdep_objects_CXX \ - predeps_CXX \ - postdeps_CXX \ - compiler_lib_search_path_CXX \ - compiler_lib_search_dirs_CXX \ - archive_cmds_CXX \ - archive_expsym_cmds_CXX \ - postinstall_cmds_CXX \ - postuninstall_cmds_CXX \ - old_archive_from_expsyms_cmds_CXX \ - allow_undefined_flag_CXX \ - no_undefined_flag_CXX \ - export_symbols_cmds_CXX \ - hardcode_libdir_flag_spec_CXX \ - hardcode_libdir_flag_spec_ld_CXX \ - hardcode_libdir_separator_CXX \ - hardcode_automatic_CXX \ - module_cmds_CXX \ - module_expsym_cmds_CXX \ - lt_cv_prog_compiler_c_o_CXX \ - fix_srcfile_path_CXX \ - exclude_expsyms_CXX \ - include_expsyms_CXX; do - - case $var in - old_archive_cmds_CXX | \ - old_archive_from_new_cmds_CXX | \ - archive_cmds_CXX | \ - archive_expsym_cmds_CXX | \ - module_cmds_CXX | \ - module_expsym_cmds_CXX | \ - old_archive_from_expsyms_cmds_CXX | \ - export_symbols_cmds_CXX | \ - extract_expsyms_cmds | reload_cmds | finish_cmds | \ - postinstall_cmds | postuninstall_cmds | \ - old_postinstall_cmds | old_postuninstall_cmds | \ - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) - # Double-quote double-evaled strings. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" - ;; - *) - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" - ;; - esac - done - - case $lt_echo in - *'\$0 --fallback-echo"') - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` - ;; - esac - -cfgfile="$ofile" - - cat <<__EOF__ >> "$cfgfile" -# ### BEGIN LIBTOOL TAG CONFIG: $tagname - -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: - -# Shell to use when invoking shell scripts. -SHELL=$lt_SHELL - -# Whether or not to build shared libraries. -build_libtool_libs=$enable_shared - -# Whether or not to build static libraries. -build_old_libs=$enable_static - -# Whether or not to add -lc for building shared libraries. -build_libtool_need_lc=$archive_cmds_need_lc_CXX - -# Whether or not to disallow shared libs when runtime libs are static -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX - -# Whether or not to optimize for fast installation. -fast_install=$enable_fast_install - -# The host system. -host_alias=$host_alias -host=$host -host_os=$host_os - -# The build system. -build_alias=$build_alias -build=$build -build_os=$build_os - -# An echo program that does not interpret backslashes. -echo=$lt_echo - -# The archiver. -AR=$lt_AR -AR_FLAGS=$lt_AR_FLAGS - -# A C compiler. -LTCC=$lt_LTCC - -# LTCC compiler flags. -LTCFLAGS=$lt_LTCFLAGS - -# A language-specific compiler. -CC=$lt_compiler_CXX - -# Is the compiler the GNU C compiler? -with_gcc=$GCC_CXX - -# An ERE matcher. -EGREP=$lt_EGREP - -# The linker used to build libraries. -LD=$lt_LD_CXX - -# Whether we need hard or soft links. -LN_S=$lt_LN_S - -# A BSD-compatible nm program. -NM=$lt_NM - -# A symbol stripping program -STRIP=$lt_STRIP - -# Used to examine libraries when file_magic_cmd begins "file" -MAGIC_CMD=$MAGIC_CMD - -# Used on cygwin: DLL creation program. -DLLTOOL="$DLLTOOL" - -# Used on cygwin: object dumper. -OBJDUMP="$OBJDUMP" - -# Used on cygwin: assembler. -AS="$AS" - -# The name of the directory that contains temporary libtool files. -objdir=$objdir - -# How to create reloadable object files. -reload_flag=$lt_reload_flag -reload_cmds=$lt_reload_cmds - -# How to pass a linker flag through the compiler. -wl=$lt_lt_prog_compiler_wl_CXX - -# Object file suffix (normally "o"). -objext="$ac_objext" - -# Old archive suffix (normally "a"). -libext="$libext" - -# Shared library suffix (normally ".so"). -shrext_cmds='$shrext_cmds' - -# Executable file suffix (normally ""). -exeext="$exeext" - -# Additional compiler flags for building library objects. -pic_flag=$lt_lt_prog_compiler_pic_CXX -pic_mode=$pic_mode - -# What is the maximum length of a command? -max_cmd_len=$lt_cv_sys_max_cmd_len - -# Does compiler simultaneously support -c and -o options? -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX - -# Must we lock files when doing compilation? -need_locks=$lt_need_locks - -# Do we need the lib prefix for modules? -need_lib_prefix=$need_lib_prefix - -# Do we need a version for libraries? -need_version=$need_version - -# Whether dlopen is supported. -dlopen_support=$enable_dlopen - -# Whether dlopen of programs is supported. -dlopen_self=$enable_dlopen_self - -# Whether dlopen of statically linked programs is supported. -dlopen_self_static=$enable_dlopen_self_static - -# Compiler flag to prevent dynamic linking. -link_static_flag=$lt_lt_prog_compiler_static_CXX - -# Compiler flag to turn off builtin functions. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX - -# Compiler flag to allow reflexive dlopens. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX - -# Compiler flag to generate shared objects directly from archives. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX - -# Compiler flag to generate thread-safe objects. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX - -# Library versioning type. -version_type=$version_type - -# Format of library name prefix. -libname_spec=$lt_libname_spec - -# List of archive names. First name is the real one, the rest are links. -# The last name is the one that the linker finds with -lNAME. -library_names_spec=$lt_library_names_spec - -# The coded name of the library, if different from the real name. -soname_spec=$lt_soname_spec - -# Commands used to build and install an old-style archive. -RANLIB=$lt_RANLIB -old_archive_cmds=$lt_old_archive_cmds_CXX -old_postinstall_cmds=$lt_old_postinstall_cmds -old_postuninstall_cmds=$lt_old_postuninstall_cmds - -# Create an old-style archive from a shared archive. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX - -# Create a temporary old-style archive to link instead of a shared archive. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX - -# Commands used to build and install a shared archive. -archive_cmds=$lt_archive_cmds_CXX -archive_expsym_cmds=$lt_archive_expsym_cmds_CXX -postinstall_cmds=$lt_postinstall_cmds -postuninstall_cmds=$lt_postuninstall_cmds - -# Commands used to build a loadable module (assumed same as above if empty) -module_cmds=$lt_module_cmds_CXX -module_expsym_cmds=$lt_module_expsym_cmds_CXX - -# Commands to strip libraries. -old_striplib=$lt_old_striplib -striplib=$lt_striplib - -# Dependencies to place before the objects being linked to create a -# shared library. -predep_objects=$lt_predep_objects_CXX - -# Dependencies to place after the objects being linked to create a -# shared library. -postdep_objects=$lt_postdep_objects_CXX - -# Dependencies to place before the objects being linked to create a -# shared library. -predeps=$lt_predeps_CXX - -# Dependencies to place after the objects being linked to create a -# shared library. -postdeps=$lt_postdeps_CXX - -# The directories searched by this compiler when creating a shared -# library -compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX - -# The library search path used internally by the compiler when linking -# a shared library. -compiler_lib_search_path=$lt_compiler_lib_search_path_CXX - -# Method to check whether dependent libraries are shared objects. -deplibs_check_method=$lt_deplibs_check_method - -# Command to use when deplibs_check_method == file_magic. -file_magic_cmd=$lt_file_magic_cmd - -# Flag that allows shared libraries with undefined symbols to be built. -allow_undefined_flag=$lt_allow_undefined_flag_CXX - -# Flag that forces no undefined symbols. -no_undefined_flag=$lt_no_undefined_flag_CXX - -# Commands used to finish a libtool library installation in a directory. -finish_cmds=$lt_finish_cmds - -# Same as above, but a single script fragment to be evaled but not shown. -finish_eval=$lt_finish_eval - -# Take the output of nm and produce a listing of raw symbols and C names. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe - -# Transform the output of nm in a proper C declaration -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl - -# Transform the output of nm in a C name address pair -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address - -# This is the shared library runtime path variable. -runpath_var=$runpath_var - -# This is the shared library path variable. -shlibpath_var=$shlibpath_var - -# Is shlibpath searched before the hard-coded library search path? -shlibpath_overrides_runpath=$shlibpath_overrides_runpath - -# How to hardcode a shared library path into an executable. -hardcode_action=$hardcode_action_CXX - -# Whether we should hardcode library paths into libraries. -hardcode_into_libs=$hardcode_into_libs - -# Flag to hardcode \$libdir into a binary during linking. -# This must work even if \$libdir does not exist. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX - -# If ld is used when linking, flag to hardcode \$libdir into -# a binary during linking. This must work even if \$libdir does -# not exist. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX - -# Whether we need a single -rpath flag with a separated argument. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX - -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the -# resulting binary. -hardcode_direct=$hardcode_direct_CXX - -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the -# resulting binary. -hardcode_minus_L=$hardcode_minus_L_CXX - -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into -# the resulting binary. -hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX - -# Set to yes if building a shared library automatically hardcodes DIR into the library -# and all subsequent libraries and executables linked against it. -hardcode_automatic=$hardcode_automatic_CXX - -# Variables whose values should be saved in libtool wrapper scripts and -# restored at relink time. -variables_saved_for_relink="$variables_saved_for_relink" - -# Whether libtool must link a program against all its dependency libraries. -link_all_deplibs=$link_all_deplibs_CXX - -# Compile-time system search path for libraries -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec - -# Run-time system search path for libraries -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec - -# Fix the shell variable \$srcfile for the compiler. -fix_srcfile_path=$lt_fix_srcfile_path - -# Set to yes if exported symbols are required. -always_export_symbols=$always_export_symbols_CXX - -# The commands to list exported symbols. -export_symbols_cmds=$lt_export_symbols_cmds_CXX - -# The commands to extract the exported symbol list from a shared archive. -extract_expsyms_cmds=$lt_extract_expsyms_cmds - -# Symbols that should not be listed in the preloaded symbols. -exclude_expsyms=$lt_exclude_expsyms_CXX - -# Symbols that must always be exported. -include_expsyms=$lt_include_expsyms_CXX - -# ### END LIBTOOL TAG CONFIG: $tagname - -__EOF__ - - -else - # If there is no Makefile yet, we rely on a make rule to execute - # `config.status --recheck' to rerun these tests and create the - # libtool script then. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` - if test -f "$ltmain_in"; then - test -f Makefile && make "$ltmain" - fi -fi - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -CC=$lt_save_CC -LDCXX=$LD -LD=$lt_save_LD -GCC=$lt_save_GCC -with_gnu_ldcxx=$with_gnu_ld -with_gnu_ld=$lt_save_with_gnu_ld -lt_cv_path_LDCXX=$lt_cv_path_LD -lt_cv_path_LD=$lt_save_path_LD -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld - - else - tagname="" - fi - ;; - - F77) - if test -n "$F77" && test "X$F77" != "Xno"; then - -ac_ext=f -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_f77_compiler_gnu - - -archive_cmds_need_lc_F77=no -allow_undefined_flag_F77= -always_export_symbols_F77=no -archive_expsym_cmds_F77= -export_dynamic_flag_spec_F77= -hardcode_direct_F77=no -hardcode_libdir_flag_spec_F77= -hardcode_libdir_flag_spec_ld_F77= -hardcode_libdir_separator_F77= -hardcode_minus_L_F77=no -hardcode_automatic_F77=no -module_cmds_F77= -module_expsym_cmds_F77= -link_all_deplibs_F77=unknown -old_archive_cmds_F77=$old_archive_cmds -no_undefined_flag_F77= -whole_archive_flag_spec_F77= -enable_shared_with_static_runtimes_F77=no - -# Source file extension for f77 test sources. -ac_ext=f - -# Object file extension for compiled f77 test sources. -objext=o -objext_F77=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code="\ - subroutine t - return - end -" - -# Code to be used in simple link tests -lt_simple_link_test_code="\ - program t - end -" - -# ltmain only uses $CC for tagged configurations so make sure $CC is set. - -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} - -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} - -# Allow CC to be a program name with arguments. -compiler=$CC - - -# save warnings/boilerplate of simple test code -ac_outfile=conftest.$ac_objext -echo "$lt_simple_compile_test_code" >conftest.$ac_ext -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_compiler_boilerplate=`cat conftest.err` -$rm conftest* - -ac_outfile=conftest.$ac_objext -echo "$lt_simple_link_test_code" >conftest.$ac_ext -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_linker_boilerplate=`cat conftest.err` -$rm -r conftest* - - -# Allow CC to be a program name with arguments. -lt_save_CC="$CC" -CC=${F77-"f77"} -compiler=$CC -compiler_F77=$CC -for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` - - -{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } -{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 -echo "${ECHO_T}$can_build_shared" >&6; } - -{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } -test "$can_build_shared" = "no" && enable_shared=no - -# On AIX, shared libraries and static libraries use the same namespace, and -# are all built from PIC. -case $host_os in -aix3*) - test "$enable_shared" = yes && enable_static=no - if test -n "$RANLIB"; then - archive_cmds="$archive_cmds~\$RANLIB \$lib" - postinstall_cmds='$RANLIB $lib' - fi - ;; -aix[4-9]*) - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then - test "$enable_shared" = yes && enable_static=no - fi - ;; -esac -{ echo "$as_me:$LINENO: result: $enable_shared" >&5 -echo "${ECHO_T}$enable_shared" >&6; } - -{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } -# Make sure either enable_shared or enable_static is yes. -test "$enable_shared" = yes || enable_static=yes -{ echo "$as_me:$LINENO: result: $enable_static" >&5 -echo "${ECHO_T}$enable_static" >&6; } - -GCC_F77="$G77" -LD_F77="$LD" - -lt_prog_compiler_wl_F77= -lt_prog_compiler_pic_F77= -lt_prog_compiler_static_F77= - -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } - - if test "$GCC" = yes; then - lt_prog_compiler_wl_F77='-Wl,' - lt_prog_compiler_static_F77='-static' - - case $host_os in - aix*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static_F77='-Bstatic' - fi - ;; - - amigaos*) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the `-m68020' flag to GCC prevents building anything better, - # like `-m68040'. - lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' - ;; - - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; - - mingw* | cygwin* | pw32* | os2*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style - # (--disable-auto-import) libraries - lt_prog_compiler_pic_F77='-DDLL_EXPORT' - ;; - - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - lt_prog_compiler_pic_F77='-fno-common' - ;; - - interix[3-9]*) - # Interix 3.x gcc -fpic/-fPIC options generate broken code. - # Instead, we relocate shared libraries at runtime. - ;; - - msdosdjgpp*) - # Just because we use GCC doesn't mean we suddenly get shared libraries - # on systems that don't support them. - lt_prog_compiler_can_build_shared_F77=no - enable_shared=no - ;; - - sysv4*MP*) - if test -d /usr/nec; then - lt_prog_compiler_pic_F77=-Kconform_pic - fi - ;; - - hpux*) - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic_F77='-fPIC' - ;; - esac - ;; - - *) - lt_prog_compiler_pic_F77='-fPIC' - ;; - esac - else - # PORTME Check for flag to pass linker flags through the system compiler. - case $host_os in - aix*) - lt_prog_compiler_wl_F77='-Wl,' - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static_F77='-Bstatic' - else - lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' - fi - ;; - darwin*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - case $cc_basename in - xlc*) - lt_prog_compiler_pic_F77='-qnocommon' - lt_prog_compiler_wl_F77='-Wl,' - ;; - esac - ;; - - mingw* | cygwin* | pw32* | os2*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - lt_prog_compiler_pic_F77='-DDLL_EXPORT' - ;; - - hpux9* | hpux10* | hpux11*) - lt_prog_compiler_wl_F77='-Wl,' - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic_F77='+Z' - ;; - esac - # Is there a better lt_prog_compiler_static that works with the bundled CC? - lt_prog_compiler_static_F77='${wl}-a ${wl}archive' - ;; - - irix5* | irix6* | nonstopux*) - lt_prog_compiler_wl_F77='-Wl,' - # PIC (with -KPIC) is the default. - lt_prog_compiler_static_F77='-non_shared' - ;; - - newsos6) - lt_prog_compiler_pic_F77='-KPIC' - lt_prog_compiler_static_F77='-Bstatic' - ;; - - linux* | k*bsd*-gnu) - case $cc_basename in - icc* | ecc*) - lt_prog_compiler_wl_F77='-Wl,' - lt_prog_compiler_pic_F77='-KPIC' - lt_prog_compiler_static_F77='-static' - ;; - pgcc* | pgf77* | pgf90* | pgf95*) - # Portland Group compilers (*not* the Pentium gcc compiler, - # which looks to be a dead project) - lt_prog_compiler_wl_F77='-Wl,' - lt_prog_compiler_pic_F77='-fpic' - lt_prog_compiler_static_F77='-Bstatic' - ;; - ccc*) - lt_prog_compiler_wl_F77='-Wl,' - # All Alpha code is PIC. - lt_prog_compiler_static_F77='-non_shared' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C 5.9 - lt_prog_compiler_pic_F77='-KPIC' - lt_prog_compiler_static_F77='-Bstatic' - lt_prog_compiler_wl_F77='-Wl,' - ;; - *Sun\ F*) - # Sun Fortran 8.3 passes all unrecognized flags to the linker - lt_prog_compiler_pic_F77='-KPIC' - lt_prog_compiler_static_F77='-Bstatic' - lt_prog_compiler_wl_F77='' - ;; - esac - ;; - esac - ;; - - osf3* | osf4* | osf5*) - lt_prog_compiler_wl_F77='-Wl,' - # All OSF/1 code is PIC. - lt_prog_compiler_static_F77='-non_shared' - ;; - - rdos*) - lt_prog_compiler_static_F77='-non_shared' - ;; - - solaris*) - lt_prog_compiler_pic_F77='-KPIC' - lt_prog_compiler_static_F77='-Bstatic' - case $cc_basename in - f77* | f90* | f95*) - lt_prog_compiler_wl_F77='-Qoption ld ';; - *) - lt_prog_compiler_wl_F77='-Wl,';; - esac - ;; - - sunos4*) - lt_prog_compiler_wl_F77='-Qoption ld ' - lt_prog_compiler_pic_F77='-PIC' - lt_prog_compiler_static_F77='-Bstatic' - ;; - - sysv4 | sysv4.2uw2* | sysv4.3*) - lt_prog_compiler_wl_F77='-Wl,' - lt_prog_compiler_pic_F77='-KPIC' - lt_prog_compiler_static_F77='-Bstatic' - ;; - - sysv4*MP*) - if test -d /usr/nec ;then - lt_prog_compiler_pic_F77='-Kconform_pic' - lt_prog_compiler_static_F77='-Bstatic' - fi - ;; - - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) - lt_prog_compiler_wl_F77='-Wl,' - lt_prog_compiler_pic_F77='-KPIC' - lt_prog_compiler_static_F77='-Bstatic' - ;; - - unicos*) - lt_prog_compiler_wl_F77='-Wl,' - lt_prog_compiler_can_build_shared_F77=no - ;; - - uts4*) - lt_prog_compiler_pic_F77='-pic' - lt_prog_compiler_static_F77='-Bstatic' - ;; - - *) - lt_prog_compiler_can_build_shared_F77=no - ;; - esac - fi - -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 -echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } - -# -# Check to make sure the PIC flag actually works. -# -if test -n "$lt_prog_compiler_pic_F77"; then - -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } -if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_prog_compiler_pic_works_F77=no - ac_outfile=conftest.$ac_objext - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="$lt_prog_compiler_pic_F77" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:16562: $lt_compile\"" >&5) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&5 - echo "$as_me:16566: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - lt_cv_prog_compiler_pic_works_F77=yes - fi - fi - $rm conftest* - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5 -echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; } - -if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then - case $lt_prog_compiler_pic_F77 in - "" | " "*) ;; - *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; - esac -else - lt_prog_compiler_pic_F77= - lt_prog_compiler_can_build_shared_F77=no -fi - -fi -case $host_os in - # For platforms which do not support PIC, -DPIC is meaningless: - *djgpp*) - lt_prog_compiler_pic_F77= - ;; - *) - lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" - ;; -esac - -# -# Check to make sure the static flag actually works. -# -wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } -if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_prog_compiler_static_works_F77=no - save_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS $lt_tmp_static_flag" - echo "$lt_simple_link_test_code" > conftest.$ac_ext - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then - # The linker can only warn and ignore the option if not recognized - # So say no if there are warnings - if test -s conftest.err; then - # Append any errors to the config.log. - cat conftest.err 1>&5 - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if diff conftest.exp conftest.er2 >/dev/null; then - lt_cv_prog_compiler_static_works_F77=yes - fi - else - lt_cv_prog_compiler_static_works_F77=yes - fi - fi - $rm -r conftest* - LDFLAGS="$save_LDFLAGS" - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5 -echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; } - -if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then - : -else - lt_prog_compiler_static_F77= -fi - - -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } -if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_prog_compiler_c_o_F77=no - $rm -r conftest 2>/dev/null - mkdir conftest - cd conftest - mkdir out - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - lt_compiler_flag="-o out/conftest2.$ac_objext" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:16666: $lt_compile\"" >&5) - (eval "$lt_compile" 2>out/conftest.err) - ac_status=$? - cat out/conftest.err >&5 - echo "$as_me:16670: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s out/conftest2.$ac_objext - then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then - lt_cv_prog_compiler_c_o_F77=yes - fi - fi - chmod u+w . 2>&5 - $rm conftest* - # SGI C++ compiler will create directory out/ii_files/ for - # template instantiation - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files - $rm out/* && rmdir out - cd .. - rmdir conftest - $rm conftest* - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } - - -hard_links="nottested" -if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then - # do not overwrite the value of need_locks provided by the user - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } - hard_links=yes - $rm conftest* - ln conftest.a conftest.b 2>/dev/null && hard_links=no - touch conftest.a - ln conftest.a conftest.b 2>&5 || hard_links=no - ln conftest.a conftest.b 2>/dev/null && hard_links=no - { echo "$as_me:$LINENO: result: $hard_links" >&5 -echo "${ECHO_T}$hard_links" >&6; } - if test "$hard_links" = no; then - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} - need_locks=warn - fi -else - need_locks=no -fi - -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } - - runpath_var= - allow_undefined_flag_F77= - enable_shared_with_static_runtimes_F77=no - archive_cmds_F77= - archive_expsym_cmds_F77= - old_archive_From_new_cmds_F77= - old_archive_from_expsyms_cmds_F77= - export_dynamic_flag_spec_F77= - whole_archive_flag_spec_F77= - thread_safe_flag_spec_F77= - hardcode_libdir_flag_spec_F77= - hardcode_libdir_flag_spec_ld_F77= - hardcode_libdir_separator_F77= - hardcode_direct_F77=no - hardcode_minus_L_F77=no - hardcode_shlibpath_var_F77=unsupported - link_all_deplibs_F77=unknown - hardcode_automatic_F77=no - module_cmds_F77= - module_expsym_cmds_F77= - always_export_symbols_F77=no - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - # include_expsyms should be a list of space-separated symbols to be *always* - # included in the symbol list - include_expsyms_F77= - # exclude_expsyms can be an extended regexp of symbols to exclude - # it will be wrapped by ` (' and `)$', so one must not match beginning or - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', - # as well as any symbol that contains `d'. - exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out - # platforms (ab)use it in PIC code, but their linkers get confused if - # the symbol is explicitly referenced. Since portable code cannot - # rely on this symbol name, it's probably fine to never include it in - # preloaded symbol tables. - # Exclude shared library initialization/finalization symbols. - extract_expsyms_cmds= - # Just being paranoid about ensuring that cc_basename is set. - for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` - - case $host_os in - cygwin* | mingw* | pw32*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - if test "$GCC" != yes; then - with_gnu_ld=no - fi - ;; - interix*) - # we just hope/assume this is gcc and not c89 (= MSVC++) - with_gnu_ld=yes - ;; - openbsd*) - with_gnu_ld=no - ;; - esac - - ld_shlibs_F77=yes - if test "$with_gnu_ld" = yes; then - # If archive_cmds runs LD, not CC, wlarc should be empty - wlarc='${wl}' - - # Set some defaults for GNU ld with shared library support. These - # are reset later if shared libraries are not supported. Putting them - # here allows them to be overridden if necessary. - runpath_var=LD_RUN_PATH - hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' - export_dynamic_flag_spec_F77='${wl}--export-dynamic' - # ancient GNU ld didn't support --whole-archive et. al. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then - whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - else - whole_archive_flag_spec_F77= - fi - supports_anon_versioning=no - case `$LD -v 2>/dev/null` in - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... - *\ 2.11.*) ;; # other 2.11 versions - *) supports_anon_versioning=yes ;; - esac - - # See if GNU ld supports shared libraries. - case $host_os in - aix[3-9]*) - # On AIX/PPC, the GNU linker is very broken - if test "$host_cpu" != ia64; then - ld_shlibs_F77=no - cat <&2 - -*** Warning: the GNU linker, at least up to release 2.9.1, is reported -*** to be unable to reliably create shared libraries on AIX. -*** Therefore, libtool is disabling shared libraries support. If you -*** really care for shared libraries, you may want to modify your PATH -*** so that a non-GNU linker is found, and then restart. - -EOF - fi - ;; - - amigaos*) - 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)' - hardcode_libdir_flag_spec_F77='-L$libdir' - hardcode_minus_L_F77=yes - - # Samuel A. Falvo II reports - # that the semantics of dynamic libraries on AmigaOS, at least up - # to version 4, is to share data among multiple programs linked - # with the same dynamic library. Since this doesn't match the - # behavior of shared libraries on other platforms, we can't use - # them. - ld_shlibs_F77=no - ;; - - beos*) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - allow_undefined_flag_F77=unsupported - # Joseph Beckenbach says some releases of gcc - # support --undefined. This deserves some investigation. FIXME - archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - else - ld_shlibs_F77=no - fi - ;; - - cygwin* | mingw* | pw32*) - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec_F77='-L$libdir' - allow_undefined_flag_F77=unsupported - always_export_symbols_F77=no - enable_shared_with_static_runtimes_F77=yes - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' - - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - # If the export-symbols file already is a .def file (1st line - # is EXPORTS), use it as is; otherwise, prepend... - archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then - cp $export_symbols $output_objdir/$soname.def; - else - echo EXPORTS > $output_objdir/$soname.def; - cat $export_symbols >> $output_objdir/$soname.def; - fi~ - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - else - ld_shlibs_F77=no - fi - ;; - - interix[3-9]*) - hardcode_direct_F77=no - hardcode_shlibpath_var_F77=no - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' - export_dynamic_flag_spec_F77='${wl}-E' - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. - # Instead, shared libraries are loaded at an image base (0x10000000 by - # default) and relocated if they conflict, which is a slow very memory - # consuming and fragmenting process. To avoid this, we pick a random, - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link - # time. Moving up from 0x10000000 also allows more sbrk(2) space. - 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' - 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' - ;; - - gnu* | linux* | k*bsd*-gnu) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - tmp_addflag= - case $cc_basename,$host_cpu in - pgcc*) # Portland Group C compiler - 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' - tmp_addflag=' $pic_flag' - ;; - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers - 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' - tmp_addflag=' $pic_flag -Mnomain' ;; - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 - tmp_addflag=' -i_dynamic' ;; - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 - tmp_addflag=' -i_dynamic -nofor_main' ;; - ifc* | ifort*) # Intel Fortran compiler - tmp_addflag=' -nofor_main' ;; - esac - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) # Sun C 5.9 - whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_sharedflag='-G' ;; - *Sun\ F*) # Sun Fortran 8.3 - tmp_sharedflag='-G' ;; - *) - tmp_sharedflag='-shared' ;; - esac - archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - - if test $supports_anon_versioning = yes; then - archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ - $echo "local: *; };" >> $output_objdir/$libname.ver~ - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' - fi - link_all_deplibs_F77=no - else - ld_shlibs_F77=no - fi - ;; - - netbsd* | netbsdelf*-gnu) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' - wlarc= - else - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - fi - ;; - - solaris*) - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then - ld_shlibs_F77=no - cat <&2 - -*** Warning: The releases 2.8.* of the GNU linker cannot reliably -*** create shared libraries on Solaris systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.9.1 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. - -EOF - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs_F77=no - fi - ;; - - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) - case `$LD -v 2>&1` in - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) - ld_shlibs_F77=no - cat <<_LT_EOF 1>&2 - -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not -*** reliably create shared libraries on SCO systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. - -_LT_EOF - ;; - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' - else - ld_shlibs_F77=no - fi - ;; - esac - ;; - - sunos4*) - archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' - wlarc= - hardcode_direct_F77=yes - hardcode_shlibpath_var_F77=no - ;; - - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs_F77=no - fi - ;; - esac - - if test "$ld_shlibs_F77" = no; then - runpath_var= - hardcode_libdir_flag_spec_F77= - export_dynamic_flag_spec_F77= - whole_archive_flag_spec_F77= - fi - else - # PORTME fill in a description of your system's linker (not GNU ld) - case $host_os in - aix3*) - allow_undefined_flag_F77=unsupported - always_export_symbols_F77=yes - 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' - # Note: this linker hardcodes the directories in LIBPATH if there - # are no directories specified by -L. - hardcode_minus_L_F77=yes - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then - # Neither direct hardcoding nor static linking is supported with a - # broken collect2. - hardcode_direct_F77=unsupported - fi - ;; - - aix[4-9]*) - if test "$host_cpu" = ia64; then - # On IA64, the linker does run time linking by default, so we don't - # have to do anything special. - aix_use_runtimelinking=no - exp_sym_flag='-Bexport' - no_entry_flag="" - else - # If we're using GNU nm, then we don't want the "-C" option. - # -C means demangle to AIX nm, but means don't demangle with GNU nm - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then - 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' - else - 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' - fi - aix_use_runtimelinking=no - - # Test if we are trying to use run time linking or normal - # AIX style linking. If -brtl is somewhere in LDFLAGS, we - # need to do runtime linking. - case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) - for ld_flag in $LDFLAGS; do - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then - aix_use_runtimelinking=yes - break - fi - done - ;; - esac - - exp_sym_flag='-bexport' - no_entry_flag='-bnoentry' - fi - - # When large executables or shared objects are built, AIX ld can - # have problems creating the table of contents. If linking a library - # or program results in "error TOC overflow" add -mminimal-toc to - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. - - archive_cmds_F77='' - hardcode_direct_F77=yes - hardcode_libdir_separator_F77=':' - link_all_deplibs_F77=yes - - if test "$GCC" = yes; then - case $host_os in aix4.[012]|aix4.[012].*) - # We only want to do this on AIX 4.2 and lower, the check - # below for broken collect2 doesn't work under 4.3+ - collect2name=`${CC} -print-prog-name=collect2` - if test -f "$collect2name" && \ - strings "$collect2name" | grep resolve_lib_name >/dev/null - then - # We have reworked collect2 - : - else - # We have old collect2 - hardcode_direct_F77=unsupported - # It fails to find uninstalled libraries when the uninstalled - # path is not listed in the libpath. Setting hardcode_minus_L - # to unsupported forces relinking - hardcode_minus_L_F77=yes - hardcode_libdir_flag_spec_F77='-L$libdir' - hardcode_libdir_separator_F77= - fi - ;; - esac - shared_flag='-shared' - if test "$aix_use_runtimelinking" = yes; then - shared_flag="$shared_flag "'${wl}-G' - fi - else - # not using gcc - if test "$host_cpu" = ia64; then - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release - # chokes on -Wl,-G. The following line is correct: - shared_flag='-G' - else - if test "$aix_use_runtimelinking" = yes; then - shared_flag='${wl}-G' - else - shared_flag='${wl}-bM:SRE' - fi - fi - fi - - # It seems that -bexpall does not export symbols beginning with - # underscore (_), so it is better to generate a list of symbols to export. - always_export_symbols_F77=yes - if test "$aix_use_runtimelinking" = yes; then - # Warning - without using the other runtime loading flags (-brtl), - # -berok will link without error, but may produce a broken library. - allow_undefined_flag_F77='-berok' - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF - program main - - end -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_f77_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" - 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" - else - if test "$host_cpu" = ia64; then - hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' - allow_undefined_flag_F77="-z nodefs" - 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" - else - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF - program main - - end -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_f77_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" - # Warning - without using the other run time loading flags, - # -berok will link without error, but may produce a broken library. - no_undefined_flag_F77=' ${wl}-bernotok' - allow_undefined_flag_F77=' ${wl}-berok' - # Exported symbols can be pulled into shared objects from archives - whole_archive_flag_spec_F77='$convenience' - archive_cmds_need_lc_F77=yes - # This is similar to how AIX traditionally builds its shared libraries. - 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' - fi - fi - ;; - - amigaos*) - 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)' - hardcode_libdir_flag_spec_F77='-L$libdir' - hardcode_minus_L_F77=yes - # see comment about different semantics on the GNU ld section - ld_shlibs_F77=no - ;; - - bsdi[45]*) - export_dynamic_flag_spec_F77=-rdynamic - ;; - - cygwin* | mingw* | pw32*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is - # no search path for DLLs. - hardcode_libdir_flag_spec_F77=' ' - allow_undefined_flag_F77=unsupported - # Tell ltmain to make .lib files, not .a files. - libext=lib - # Tell ltmain to make .dll files, not .so files. - shrext_cmds=".dll" - # FIXME: Setting linknames here is a bad hack. - archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' - # The linker will automatically build a .lib file if we build a DLL. - old_archive_From_new_cmds_F77='true' - # FIXME: Should let the user specify the lib program. - old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' - fix_srcfile_path_F77='`cygpath -w "$srcfile"`' - enable_shared_with_static_runtimes_F77=yes - ;; - - darwin* | rhapsody*) - case $host_os in - rhapsody* | darwin1.[012]) - allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' - ;; - *) # Darwin 1.3 on - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then - allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - else - case ${MACOSX_DEPLOYMENT_TARGET} in - 10.[012]) - allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - ;; - 10.*) - allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' - ;; - esac - fi - ;; - esac - archive_cmds_need_lc_F77=no - hardcode_direct_F77=no - hardcode_automatic_F77=yes - hardcode_shlibpath_var_F77=unsupported - whole_archive_flag_spec_F77='' - link_all_deplibs_F77=yes - if test "$GCC" = yes ; then - output_verbose_link_cmd='echo' - archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" - module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" - archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" - module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" - else - case $cc_basename in - xlc*) - output_verbose_link_cmd='echo' - archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' - module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - 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}' - ;; - *) - ld_shlibs_F77=no - ;; - esac - fi - ;; - - dgux*) - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec_F77='-L$libdir' - hardcode_shlibpath_var_F77=no - ;; - - freebsd1*) - ld_shlibs_F77=no - ;; - - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor - # support. Future versions do this automatically, but an explicit c++rt0.o - # does not break anything, and helps significantly (at the cost of a little - # extra space). - freebsd2.2*) - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' - hardcode_libdir_flag_spec_F77='-R$libdir' - hardcode_direct_F77=yes - hardcode_shlibpath_var_F77=no - ;; - - # Unfortunately, older versions of FreeBSD 2 do not have this feature. - freebsd2*) - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_F77=yes - hardcode_minus_L_F77=yes - hardcode_shlibpath_var_F77=no - ;; - - # FreeBSD 3 and greater uses gcc -shared to do shared libraries. - freebsd* | dragonfly*) - archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' - hardcode_libdir_flag_spec_F77='-R$libdir' - hardcode_direct_F77=yes - hardcode_shlibpath_var_F77=no - ;; - - hpux9*) - if test "$GCC" = yes; then - 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' - else - 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' - fi - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_F77=: - hardcode_direct_F77=yes - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L_F77=yes - export_dynamic_flag_spec_F77='${wl}-E' - ;; - - hpux10*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then - archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' - fi - if test "$with_gnu_ld" = no; then - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_F77=: - - hardcode_direct_F77=yes - export_dynamic_flag_spec_F77='${wl}-E' - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L_F77=yes - fi - ;; - - hpux11*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then - case $host_cpu in - hppa*64*) - archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - else - case $host_cpu in - hppa*64*) - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - fi - if test "$with_gnu_ld" = no; then - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_F77=: - - case $host_cpu in - hppa*64*|ia64*) - hardcode_libdir_flag_spec_ld_F77='+b $libdir' - hardcode_direct_F77=no - hardcode_shlibpath_var_F77=no - ;; - *) - hardcode_direct_F77=yes - export_dynamic_flag_spec_F77='${wl}-E' - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L_F77=yes - ;; - esac - fi - ;; - - irix5* | irix6* | nonstopux*) - if test "$GCC" = yes; then - 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' - else - 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' - hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' - fi - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_F77=: - link_all_deplibs_F77=yes - ;; - - netbsd* | netbsdelf*-gnu) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out - else - archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF - fi - hardcode_libdir_flag_spec_F77='-R$libdir' - hardcode_direct_F77=yes - hardcode_shlibpath_var_F77=no - ;; - - newsos6) - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_F77=yes - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_F77=: - hardcode_shlibpath_var_F77=no - ;; - - openbsd*) - if test -f /usr/libexec/ld.so; then - hardcode_direct_F77=yes - hardcode_shlibpath_var_F77=no - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' - export_dynamic_flag_spec_F77='${wl}-E' - else - case $host_os in - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec_F77='-R$libdir' - ;; - *) - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' - ;; - esac - fi - else - ld_shlibs_F77=no - fi - ;; - - os2*) - hardcode_libdir_flag_spec_F77='-L$libdir' - hardcode_minus_L_F77=yes - allow_undefined_flag_F77=unsupported - 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' - old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' - ;; - - osf3*) - if test "$GCC" = yes; then - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' - 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' - else - allow_undefined_flag_F77=' -expect_unresolved \*' - 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' - fi - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_F77=: - ;; - - osf4* | osf5*) # as osf3* with the addition of -msym flag - if test "$GCC" = yes; then - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' - 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' - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' - else - allow_undefined_flag_F77=' -expect_unresolved \*' - 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' - 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~ - $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' - - # Both c and cxx compiler support -rpath directly - hardcode_libdir_flag_spec_F77='-rpath $libdir' - fi - hardcode_libdir_separator_F77=: - ;; - - solaris*) - no_undefined_flag_F77=' -z text' - if test "$GCC" = yes; then - wlarc='${wl}' - archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' - else - wlarc='' - archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' - fi - hardcode_libdir_flag_spec_F77='-R$libdir' - hardcode_shlibpath_var_F77=no - case $host_os in - solaris2.[0-5] | solaris2.[0-5].*) ;; - *) - # The compiler driver will combine and reorder linker options, - # but understands `-z linker_flag'. GCC discards it without `$wl', - # but is careful enough not to reorder. - # Supported since Solaris 2.6 (maybe 2.5.1?) - if test "$GCC" = yes; then - whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' - else - whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' - fi - ;; - esac - link_all_deplibs_F77=yes - ;; - - sunos4*) - if test "x$host_vendor" = xsequent; then - # Use $CC to link under sequent, because it throws in some extra .o - # files that make .init and .fini sections work. - archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' - fi - hardcode_libdir_flag_spec_F77='-L$libdir' - hardcode_direct_F77=yes - hardcode_minus_L_F77=yes - hardcode_shlibpath_var_F77=no - ;; - - sysv4) - case $host_vendor in - sni) - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_F77=yes # is this really true??? - ;; - siemens) - ## LD is ld it makes a PLAMLIB - ## CC just makes a GrossModule. - archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' - reload_cmds_F77='$CC -r -o $output$reload_objs' - hardcode_direct_F77=no - ;; - motorola) - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie - ;; - esac - runpath_var='LD_RUN_PATH' - hardcode_shlibpath_var_F77=no - ;; - - sysv4.3*) - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_shlibpath_var_F77=no - export_dynamic_flag_spec_F77='-Bexport' - ;; - - sysv4*MP*) - if test -d /usr/nec; then - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_shlibpath_var_F77=no - runpath_var=LD_RUN_PATH - hardcode_runpath_var=yes - ld_shlibs_F77=yes - fi - ;; - - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) - no_undefined_flag_F77='${wl}-z,text' - archive_cmds_need_lc_F77=no - hardcode_shlibpath_var_F77=no - runpath_var='LD_RUN_PATH' - - if test "$GCC" = yes; then - archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - - sysv5* | sco3.2v5* | sco5v6*) - # Note: We can NOT use -z defs as we might desire, because we do not - # link with -lc, and that would cause any symbols used from libc to - # always be unresolved, which means just about no library would - # ever link correctly. If we're not using GNU ld we use -z text - # though, which does catch some bad symbols but isn't as heavy-handed - # as -z defs. - no_undefined_flag_F77='${wl}-z,text' - allow_undefined_flag_F77='${wl}-z,nodefs' - archive_cmds_need_lc_F77=no - hardcode_shlibpath_var_F77=no - hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' - hardcode_libdir_separator_F77=':' - link_all_deplibs_F77=yes - export_dynamic_flag_spec_F77='${wl}-Bexport' - runpath_var='LD_RUN_PATH' - - if test "$GCC" = yes; then - archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - - uts4*) - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec_F77='-L$libdir' - hardcode_shlibpath_var_F77=no - ;; - - *) - ld_shlibs_F77=no - ;; - esac - fi - -{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 -echo "${ECHO_T}$ld_shlibs_F77" >&6; } -test "$ld_shlibs_F77" = no && can_build_shared=no - -# -# Do we need to explicitly link libc? -# -case "x$archive_cmds_need_lc_F77" in -x|xyes) - # Assume -lc should be added - archive_cmds_need_lc_F77=yes - - if test "$enable_shared" = yes && test "$GCC" = yes; then - case $archive_cmds_F77 in - *'~'*) - # FIXME: we may have to deal with multi-command sequences. - ;; - '$CC '*) - # Test whether the compiler implicitly links with -lc since on some - # systems, -lgcc has to come before -lc. If gcc already passes -lc - # to ld, don't add -lc before -lgcc. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } - $rm conftest* - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } 2>conftest.err; then - soname=conftest - lib=conftest - libobjs=conftest.$ac_objext - deplibs= - wl=$lt_prog_compiler_wl_F77 - pic_flag=$lt_prog_compiler_pic_F77 - compiler_flags=-v - linker_flags=-v - verstring= - output_objdir=. - libname=conftest - lt_save_allow_undefined_flag=$allow_undefined_flag_F77 - allow_undefined_flag_F77= - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 - (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - then - archive_cmds_need_lc_F77=no - else - archive_cmds_need_lc_F77=yes - fi - allow_undefined_flag_F77=$lt_save_allow_undefined_flag - else - cat conftest.err 1>&5 - fi - $rm conftest* - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 -echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } - ;; - esac - fi - ;; -esac - -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } -library_names_spec= -libname_spec='lib$name' -soname_spec= -shrext_cmds=".so" -postinstall_cmds= -postuninstall_cmds= -finish_cmds= -finish_eval= -shlibpath_var= -shlibpath_overrides_runpath=unknown -version_type=none -dynamic_linker="$host_os ld.so" -sys_lib_dlsearch_path_spec="/lib /usr/lib" - -need_lib_prefix=unknown -hardcode_into_libs=no - -# when you set need_version to no, make sure it does not cause -set_version -# flags to be left without arguments -need_version=unknown - -case $host_os in -aix3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' - shlibpath_var=LIBPATH - - # AIX 3 has no versioning support, so we append a major version to the name. - soname_spec='${libname}${release}${shared_ext}$major' - ;; - -aix[4-9]*) - version_type=linux - need_lib_prefix=no - need_version=no - hardcode_into_libs=yes - if test "$host_cpu" = ia64; then - # AIX 5 supports IA64 - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - else - # With GCC up to 2.95.x, collect2 would create an import file - # for dependence libraries. The import file would start with - # the line `#! .'. This would cause the generated library to - # depend on `.', always an invalid library. This was fixed in - # development snapshots of GCC prior to 3.0. - case $host_os in - aix4 | aix4.[01] | aix4.[01].*) - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' - echo ' yes ' - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then - : - else - can_build_shared=no - fi - ;; - esac - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct - # soname into executable. Probably we can add versioning support to - # collect2, so additional links can be useful in future. - if test "$aix_use_runtimelinking" = yes; then - # If using run time linking (on AIX 4.2 or later) use lib.so - # instead of lib.a to let people know that these are not - # typical AIX shared libraries. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - else - # We preserve .a as extension for shared libraries through AIX4.2 - # and later when we are not doing run time linking. - library_names_spec='${libname}${release}.a $libname.a' - soname_spec='${libname}${release}${shared_ext}$major' - fi - shlibpath_var=LIBPATH - fi - ;; - -amigaos*) - library_names_spec='$libname.ixlibrary $libname.a' - # Create ${libname}_ixlibrary.a entries in /sys/libs. - 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' - ;; - -beos*) - library_names_spec='${libname}${shared_ext}' - dynamic_linker="$host_os ld.so" - shlibpath_var=LIBRARY_PATH - ;; - -bsdi[45]*) - version_type=linux - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" - # the default ld.so.conf also contains /usr/contrib/lib and - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow - # libtool to hard-code these into programs - ;; - -cygwin* | mingw* | pw32*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in - yes,cygwin* | yes,mingw* | yes,pw32*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname~ - chmod a+x \$dldir/$dlname' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $rm \$dlpath' - shlibpath_overrides_runpath=yes - - case $host_os in - cygwin*) - # Cygwin DLLs use 'cyg' prefix rather than 'lib' - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" - ;; - mingw*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then - # It is most probably a Windows format PATH printed by - # mingw gcc, but we are running on Cygwin. Gcc prints its search - # path with ; separators, and with drive letters. We can handle the - # drive letters (cygwin fileutils understands them), so leave them, - # especially as we might pass files found there to a mingw objdump, - # which wouldn't understand a cygwinified path. Ahh. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` - else - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi - ;; - pw32*) - # pw32 DLLs use 'pw' prefix rather than 'lib' - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - ;; - esac - ;; - - *) - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' - ;; - esac - dynamic_linker='Win32 ld.exe' - # FIXME: first we should search . and the directory the executable is in - shlibpath_var=PATH - ;; - -darwin* | rhapsody*) - dynamic_linker="$host_os dyld" - version_type=darwin - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' - soname_spec='${libname}${release}${major}$shared_ext' - shlibpath_overrides_runpath=yes - shlibpath_var=DYLD_LIBRARY_PATH - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' - - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' - ;; - -dgux*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -freebsd1*) - dynamic_linker=no - ;; - -freebsd* | dragonfly*) - # DragonFly does not have aout. When/if they implement a new - # versioning mechanism, adjust this. - if test -x /usr/bin/objformat; then - objformat=`/usr/bin/objformat` - else - case $host_os in - freebsd[123]*) objformat=aout ;; - *) objformat=elf ;; - esac - fi - version_type=freebsd-$objformat - case $version_type in - freebsd-elf*) - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - need_version=no - need_lib_prefix=no - ;; - freebsd-*) - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' - need_version=yes - ;; - esac - shlibpath_var=LD_LIBRARY_PATH - case $host_os in - freebsd2*) - shlibpath_overrides_runpath=yes - ;; - freebsd3.[01]* | freebsdelf3.[01]*) - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - *) # from 4.6 on, and DragonFly - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - esac - ;; - -gnu*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - ;; - -hpux9* | hpux10* | hpux11*) - # Give a soname corresponding to the major version so that dld.sl refuses to - # link against other versions. - version_type=sunos - need_lib_prefix=no - need_version=no - case $host_cpu in - ia64*) - shrext_cmds='.so' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.so" - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - if test "X$HPUX_IA64_MODE" = X32; then - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" - else - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" - fi - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - hppa*64*) - shrext_cmds='.sl' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.sl" - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - *) - shrext_cmds='.sl' - dynamic_linker="$host_os dld.sl" - shlibpath_var=SHLIB_PATH - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - ;; - esac - # HP-UX runs *really* slowly unless shared libraries are mode 555. - postinstall_cmds='chmod 555 $lib' - ;; - -interix[3-9]*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - -irix5* | irix6* | nonstopux*) - case $host_os in - nonstopux*) version_type=nonstopux ;; - *) - if test "$lt_cv_prog_gnu_ld" = yes; then - version_type=linux - else - version_type=irix - fi ;; - esac - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' - case $host_os in - irix5* | nonstopux*) - libsuff= shlibsuff= - ;; - *) - case $LD in # libtool.m4 will add one of these switches to LD - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") - libsuff= shlibsuff= libmagic=32-bit;; - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") - libsuff=32 shlibsuff=N32 libmagic=N32;; - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") - libsuff=64 shlibsuff=64 libmagic=64-bit;; - *) libsuff= shlibsuff= libmagic=never-match;; - esac - ;; - esac - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH - shlibpath_overrides_runpath=no - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" - hardcode_into_libs=yes - ;; - -# No shared lib support for Linux oldld, aout, or coff. -linux*oldld* | linux*aout* | linux*coff*) - dynamic_linker=no - ;; - -# This must be Linux ELF. -linux* | k*bsd*-gnu) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - # This implies no fast_install, which is unacceptable. - # Some rework will be needed to allow for fast_install - # before this can be enabled. - hardcode_into_libs=yes - - # Append ld.so.conf contents to the search path - if test -f /etc/ld.so.conf; then - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" - fi - - # We used to test for /lib/ld.so.1 and disable shared libraries on - # powerpc, because MkLinux only supported shared libraries with the - # GNU dynamic linker. Since this was broken with cross compilers, - # most powerpc-linux boxes support dynamic linking these days and - # people can always --disable-shared, the test was removed, and we - # assume the GNU/Linux dynamic linker is in use. - dynamic_linker='GNU/Linux ld.so' - ;; - -netbsdelf*-gnu) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - dynamic_linker='NetBSD ld.elf_so' - ;; - -netbsd*) - version_type=sunos - need_lib_prefix=no - need_version=no - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - dynamic_linker='NetBSD (a.out) ld.so' - else - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='NetBSD ld.elf_so' - fi - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - -newsos6) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -nto-qnx*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -openbsd*) - version_type=sunos - sys_lib_dlsearch_path_spec="/usr/lib" - need_lib_prefix=no - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. - case $host_os in - openbsd3.3 | openbsd3.3.*) need_version=yes ;; - *) need_version=no ;; - esac - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - shlibpath_var=LD_LIBRARY_PATH - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - case $host_os in - openbsd2.[89] | openbsd2.[89].*) - shlibpath_overrides_runpath=no - ;; - *) - shlibpath_overrides_runpath=yes - ;; - esac - else - shlibpath_overrides_runpath=yes - fi - ;; - -os2*) - libname_spec='$name' - shrext_cmds=".dll" - need_lib_prefix=no - library_names_spec='$libname${shared_ext} $libname.a' - dynamic_linker='OS/2 ld.exe' - shlibpath_var=LIBPATH - ;; - -osf3* | osf4* | osf5*) - version_type=osf - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" - ;; - -rdos*) - dynamic_linker=no - ;; - -solaris*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - # ldd complains unless libraries are executable - postinstall_cmds='chmod +x $lib' - ;; - -sunos4*) - version_type=sunos - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - if test "$with_gnu_ld" = yes; then - need_lib_prefix=no - fi - need_version=yes - ;; - -sysv4 | sysv4.3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - case $host_vendor in - sni) - shlibpath_overrides_runpath=no - need_lib_prefix=no - export_dynamic_flag_spec='${wl}-Blargedynsym' - runpath_var=LD_RUN_PATH - ;; - siemens) - need_lib_prefix=no - ;; - motorola) - need_lib_prefix=no - need_version=no - shlibpath_overrides_runpath=no - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' - ;; - esac - ;; - -sysv4*MP*) - if test -d /usr/nec ;then - version_type=linux - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' - soname_spec='$libname${shared_ext}.$major' - shlibpath_var=LD_LIBRARY_PATH - fi - ;; - -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - version_type=freebsd-elf - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - if test "$with_gnu_ld" = yes; then - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' - shlibpath_overrides_runpath=no - else - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' - shlibpath_overrides_runpath=yes - case $host_os in - sco3.2v5*) - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" - ;; - esac - fi - sys_lib_dlsearch_path_spec='/usr/lib' - ;; - -uts4*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -*) - dynamic_linker=no - ;; -esac -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 -echo "${ECHO_T}$dynamic_linker" >&6; } -test "$dynamic_linker" = no && can_build_shared=no - -if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" -fi - -sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" -if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" -fi - -sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" - -variables_saved_for_relink="PATH $shlibpath_var $runpath_var" -if test "$GCC" = yes; then - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" -fi - -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } -hardcode_action_F77= -if test -n "$hardcode_libdir_flag_spec_F77" || \ - test -n "$runpath_var_F77" || \ - test "X$hardcode_automatic_F77" = "Xyes" ; then - - # We can hardcode non-existant directories. - if test "$hardcode_direct_F77" != no && - # If the only mechanism to avoid hardcoding is shlibpath_var, we - # have to relink, otherwise we might link with an installed library - # when we should be linking with a yet-to-be-installed one - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && - test "$hardcode_minus_L_F77" != no; then - # Linking always hardcodes the temporary library directory. - hardcode_action_F77=relink - else - # We can link without hardcoding, and we can hardcode nonexisting dirs. - hardcode_action_F77=immediate - fi -else - # We cannot hardcode anything, or else we can only hardcode existing - # directories. - hardcode_action_F77=unsupported -fi -{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 -echo "${ECHO_T}$hardcode_action_F77" >&6; } - -if test "$hardcode_action_F77" = relink; then - # Fast installation is not supported - enable_fast_install=no -elif test "$shlibpath_overrides_runpath" = yes || - test "$enable_shared" = no; then - # Fast installation is not necessary - enable_fast_install=needless -fi - - -# The else clause should only fire when bootstrapping the -# libtool distribution, otherwise you forgot to ship ltmain.sh -# with your package, and you will get complaints that there are -# no rules to generate ltmain.sh. -if test -f "$ltmain"; then - # See if we are running on zsh, and set the options which allow our commands through - # without removal of \ escapes. - if test -n "${ZSH_VERSION+set}" ; then - setopt NO_GLOB_SUBST - fi - # Now quote all the things that may contain metacharacters while being - # careful not to overquote the AC_SUBSTed values. We take copies of the - # variables and quote the copies for generation of the libtool script. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ - SED SHELL STRIP \ - libname_spec library_names_spec soname_spec extract_expsyms_cmds \ - old_striplib striplib file_magic_cmd finish_cmds finish_eval \ - deplibs_check_method reload_flag reload_cmds need_locks \ - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ - lt_cv_sys_global_symbol_to_c_name_address \ - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ - old_postinstall_cmds old_postuninstall_cmds \ - compiler_F77 \ - CC_F77 \ - LD_F77 \ - lt_prog_compiler_wl_F77 \ - lt_prog_compiler_pic_F77 \ - lt_prog_compiler_static_F77 \ - lt_prog_compiler_no_builtin_flag_F77 \ - export_dynamic_flag_spec_F77 \ - thread_safe_flag_spec_F77 \ - whole_archive_flag_spec_F77 \ - enable_shared_with_static_runtimes_F77 \ - old_archive_cmds_F77 \ - old_archive_from_new_cmds_F77 \ - predep_objects_F77 \ - postdep_objects_F77 \ - predeps_F77 \ - postdeps_F77 \ - compiler_lib_search_path_F77 \ - compiler_lib_search_dirs_F77 \ - archive_cmds_F77 \ - archive_expsym_cmds_F77 \ - postinstall_cmds_F77 \ - postuninstall_cmds_F77 \ - old_archive_from_expsyms_cmds_F77 \ - allow_undefined_flag_F77 \ - no_undefined_flag_F77 \ - export_symbols_cmds_F77 \ - hardcode_libdir_flag_spec_F77 \ - hardcode_libdir_flag_spec_ld_F77 \ - hardcode_libdir_separator_F77 \ - hardcode_automatic_F77 \ - module_cmds_F77 \ - module_expsym_cmds_F77 \ - lt_cv_prog_compiler_c_o_F77 \ - fix_srcfile_path_F77 \ - exclude_expsyms_F77 \ - include_expsyms_F77; do - - case $var in - old_archive_cmds_F77 | \ - old_archive_from_new_cmds_F77 | \ - archive_cmds_F77 | \ - archive_expsym_cmds_F77 | \ - module_cmds_F77 | \ - module_expsym_cmds_F77 | \ - old_archive_from_expsyms_cmds_F77 | \ - export_symbols_cmds_F77 | \ - extract_expsyms_cmds | reload_cmds | finish_cmds | \ - postinstall_cmds | postuninstall_cmds | \ - old_postinstall_cmds | old_postuninstall_cmds | \ - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) - # Double-quote double-evaled strings. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" - ;; - *) - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" - ;; - esac - done - - case $lt_echo in - *'\$0 --fallback-echo"') - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` - ;; - esac - -cfgfile="$ofile" - - cat <<__EOF__ >> "$cfgfile" -# ### BEGIN LIBTOOL TAG CONFIG: $tagname - -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: - -# Shell to use when invoking shell scripts. -SHELL=$lt_SHELL - -# Whether or not to build shared libraries. -build_libtool_libs=$enable_shared - -# Whether or not to build static libraries. -build_old_libs=$enable_static - -# Whether or not to add -lc for building shared libraries. -build_libtool_need_lc=$archive_cmds_need_lc_F77 - -# Whether or not to disallow shared libs when runtime libs are static -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 - -# Whether or not to optimize for fast installation. -fast_install=$enable_fast_install - -# The host system. -host_alias=$host_alias -host=$host -host_os=$host_os - -# The build system. -build_alias=$build_alias -build=$build -build_os=$build_os - -# An echo program that does not interpret backslashes. -echo=$lt_echo - -# The archiver. -AR=$lt_AR -AR_FLAGS=$lt_AR_FLAGS - -# A C compiler. -LTCC=$lt_LTCC - -# LTCC compiler flags. -LTCFLAGS=$lt_LTCFLAGS - -# A language-specific compiler. -CC=$lt_compiler_F77 - -# Is the compiler the GNU C compiler? -with_gcc=$GCC_F77 - -# An ERE matcher. -EGREP=$lt_EGREP - -# The linker used to build libraries. -LD=$lt_LD_F77 - -# Whether we need hard or soft links. -LN_S=$lt_LN_S - -# A BSD-compatible nm program. -NM=$lt_NM - -# A symbol stripping program -STRIP=$lt_STRIP - -# Used to examine libraries when file_magic_cmd begins "file" -MAGIC_CMD=$MAGIC_CMD - -# Used on cygwin: DLL creation program. -DLLTOOL="$DLLTOOL" - -# Used on cygwin: object dumper. -OBJDUMP="$OBJDUMP" - -# Used on cygwin: assembler. -AS="$AS" - -# The name of the directory that contains temporary libtool files. -objdir=$objdir - -# How to create reloadable object files. -reload_flag=$lt_reload_flag -reload_cmds=$lt_reload_cmds - -# How to pass a linker flag through the compiler. -wl=$lt_lt_prog_compiler_wl_F77 - -# Object file suffix (normally "o"). -objext="$ac_objext" - -# Old archive suffix (normally "a"). -libext="$libext" - -# Shared library suffix (normally ".so"). -shrext_cmds='$shrext_cmds' - -# Executable file suffix (normally ""). -exeext="$exeext" - -# Additional compiler flags for building library objects. -pic_flag=$lt_lt_prog_compiler_pic_F77 -pic_mode=$pic_mode - -# What is the maximum length of a command? -max_cmd_len=$lt_cv_sys_max_cmd_len - -# Does compiler simultaneously support -c and -o options? -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 - -# Must we lock files when doing compilation? -need_locks=$lt_need_locks - -# Do we need the lib prefix for modules? -need_lib_prefix=$need_lib_prefix - -# Do we need a version for libraries? -need_version=$need_version - -# Whether dlopen is supported. -dlopen_support=$enable_dlopen - -# Whether dlopen of programs is supported. -dlopen_self=$enable_dlopen_self - -# Whether dlopen of statically linked programs is supported. -dlopen_self_static=$enable_dlopen_self_static - -# Compiler flag to prevent dynamic linking. -link_static_flag=$lt_lt_prog_compiler_static_F77 - -# Compiler flag to turn off builtin functions. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 - -# Compiler flag to allow reflexive dlopens. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 - -# Compiler flag to generate shared objects directly from archives. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 - -# Compiler flag to generate thread-safe objects. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 - -# Library versioning type. -version_type=$version_type - -# Format of library name prefix. -libname_spec=$lt_libname_spec - -# List of archive names. First name is the real one, the rest are links. -# The last name is the one that the linker finds with -lNAME. -library_names_spec=$lt_library_names_spec - -# The coded name of the library, if different from the real name. -soname_spec=$lt_soname_spec - -# Commands used to build and install an old-style archive. -RANLIB=$lt_RANLIB -old_archive_cmds=$lt_old_archive_cmds_F77 -old_postinstall_cmds=$lt_old_postinstall_cmds -old_postuninstall_cmds=$lt_old_postuninstall_cmds - -# Create an old-style archive from a shared archive. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 - -# Create a temporary old-style archive to link instead of a shared archive. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 - -# Commands used to build and install a shared archive. -archive_cmds=$lt_archive_cmds_F77 -archive_expsym_cmds=$lt_archive_expsym_cmds_F77 -postinstall_cmds=$lt_postinstall_cmds -postuninstall_cmds=$lt_postuninstall_cmds - -# Commands used to build a loadable module (assumed same as above if empty) -module_cmds=$lt_module_cmds_F77 -module_expsym_cmds=$lt_module_expsym_cmds_F77 - -# Commands to strip libraries. -old_striplib=$lt_old_striplib -striplib=$lt_striplib - -# Dependencies to place before the objects being linked to create a -# shared library. -predep_objects=$lt_predep_objects_F77 - -# Dependencies to place after the objects being linked to create a -# shared library. -postdep_objects=$lt_postdep_objects_F77 - -# Dependencies to place before the objects being linked to create a -# shared library. -predeps=$lt_predeps_F77 - -# Dependencies to place after the objects being linked to create a -# shared library. -postdeps=$lt_postdeps_F77 - -# The directories searched by this compiler when creating a shared -# library -compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77 - -# The library search path used internally by the compiler when linking -# a shared library. -compiler_lib_search_path=$lt_compiler_lib_search_path_F77 - -# Method to check whether dependent libraries are shared objects. -deplibs_check_method=$lt_deplibs_check_method - -# Command to use when deplibs_check_method == file_magic. -file_magic_cmd=$lt_file_magic_cmd - -# Flag that allows shared libraries with undefined symbols to be built. -allow_undefined_flag=$lt_allow_undefined_flag_F77 - -# Flag that forces no undefined symbols. -no_undefined_flag=$lt_no_undefined_flag_F77 - -# Commands used to finish a libtool library installation in a directory. -finish_cmds=$lt_finish_cmds - -# Same as above, but a single script fragment to be evaled but not shown. -finish_eval=$lt_finish_eval - -# Take the output of nm and produce a listing of raw symbols and C names. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe - -# Transform the output of nm in a proper C declaration -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl - -# Transform the output of nm in a C name address pair -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address - -# This is the shared library runtime path variable. -runpath_var=$runpath_var - -# This is the shared library path variable. -shlibpath_var=$shlibpath_var - -# Is shlibpath searched before the hard-coded library search path? -shlibpath_overrides_runpath=$shlibpath_overrides_runpath - -# How to hardcode a shared library path into an executable. -hardcode_action=$hardcode_action_F77 - -# Whether we should hardcode library paths into libraries. -hardcode_into_libs=$hardcode_into_libs - -# Flag to hardcode \$libdir into a binary during linking. -# This must work even if \$libdir does not exist. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 - -# If ld is used when linking, flag to hardcode \$libdir into -# a binary during linking. This must work even if \$libdir does -# not exist. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 - -# Whether we need a single -rpath flag with a separated argument. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 - -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the -# resulting binary. -hardcode_direct=$hardcode_direct_F77 - -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the -# resulting binary. -hardcode_minus_L=$hardcode_minus_L_F77 - -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into -# the resulting binary. -hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 - -# Set to yes if building a shared library automatically hardcodes DIR into the library -# and all subsequent libraries and executables linked against it. -hardcode_automatic=$hardcode_automatic_F77 - -# Variables whose values should be saved in libtool wrapper scripts and -# restored at relink time. -variables_saved_for_relink="$variables_saved_for_relink" - -# Whether libtool must link a program against all its dependency libraries. -link_all_deplibs=$link_all_deplibs_F77 - -# Compile-time system search path for libraries -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec - -# Run-time system search path for libraries -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec - -# Fix the shell variable \$srcfile for the compiler. -fix_srcfile_path=$lt_fix_srcfile_path - -# Set to yes if exported symbols are required. -always_export_symbols=$always_export_symbols_F77 - -# The commands to list exported symbols. -export_symbols_cmds=$lt_export_symbols_cmds_F77 - -# The commands to extract the exported symbol list from a shared archive. -extract_expsyms_cmds=$lt_extract_expsyms_cmds - -# Symbols that should not be listed in the preloaded symbols. -exclude_expsyms=$lt_exclude_expsyms_F77 - -# Symbols that must always be exported. -include_expsyms=$lt_include_expsyms_F77 - -# ### END LIBTOOL TAG CONFIG: $tagname - -__EOF__ - - -else - # If there is no Makefile yet, we rely on a make rule to execute - # `config.status --recheck' to rerun these tests and create the - # libtool script then. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` - if test -f "$ltmain_in"; then - test -f Makefile && make "$ltmain" - fi -fi - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -CC="$lt_save_CC" - - else - tagname="" - fi - ;; - - GCJ) - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then - - -# Source file extension for Java test sources. -ac_ext=java - -# Object file extension for compiled Java test sources. -objext=o -objext_GCJ=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code="class foo {}" - -# Code to be used in simple link tests -lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' - -# ltmain only uses $CC for tagged configurations so make sure $CC is set. - -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} - -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} - -# Allow CC to be a program name with arguments. -compiler=$CC - - -# save warnings/boilerplate of simple test code -ac_outfile=conftest.$ac_objext -echo "$lt_simple_compile_test_code" >conftest.$ac_ext -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_compiler_boilerplate=`cat conftest.err` -$rm conftest* - -ac_outfile=conftest.$ac_objext -echo "$lt_simple_link_test_code" >conftest.$ac_ext -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_linker_boilerplate=`cat conftest.err` -$rm -r conftest* - - -# Allow CC to be a program name with arguments. -lt_save_CC="$CC" -CC=${GCJ-"gcj"} -compiler=$CC -compiler_GCJ=$CC -for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` - - -# GCJ did not exist at the time GCC didn't implicitly link libc in. -archive_cmds_need_lc_GCJ=no - -old_archive_cmds_GCJ=$old_archive_cmds - - -lt_prog_compiler_no_builtin_flag_GCJ= - -if test "$GCC" = yes; then - lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' - - -{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_prog_compiler_rtti_exceptions=no - ac_outfile=conftest.$ac_objext - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="-fno-rtti -fno-exceptions" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:18886: $lt_compile\"" >&5) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&5 - echo "$as_me:18890: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - lt_cv_prog_compiler_rtti_exceptions=yes - fi - fi - $rm conftest* - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } - -if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then - lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" -else - : -fi - -fi - -lt_prog_compiler_wl_GCJ= -lt_prog_compiler_pic_GCJ= -lt_prog_compiler_static_GCJ= - -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } - - if test "$GCC" = yes; then - lt_prog_compiler_wl_GCJ='-Wl,' - lt_prog_compiler_static_GCJ='-static' - - case $host_os in - aix*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static_GCJ='-Bstatic' - fi - ;; - - amigaos*) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the `-m68020' flag to GCC prevents building anything better, - # like `-m68040'. - lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' - ;; - - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; - - mingw* | cygwin* | pw32* | os2*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style - # (--disable-auto-import) libraries - - ;; - - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - lt_prog_compiler_pic_GCJ='-fno-common' - ;; - - interix[3-9]*) - # Interix 3.x gcc -fpic/-fPIC options generate broken code. - # Instead, we relocate shared libraries at runtime. - ;; - - msdosdjgpp*) - # Just because we use GCC doesn't mean we suddenly get shared libraries - # on systems that don't support them. - lt_prog_compiler_can_build_shared_GCJ=no - enable_shared=no - ;; - - sysv4*MP*) - if test -d /usr/nec; then - lt_prog_compiler_pic_GCJ=-Kconform_pic - fi - ;; - - hpux*) - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic_GCJ='-fPIC' - ;; - esac - ;; - - *) - lt_prog_compiler_pic_GCJ='-fPIC' - ;; - esac - else - # PORTME Check for flag to pass linker flags through the system compiler. - case $host_os in - aix*) - lt_prog_compiler_wl_GCJ='-Wl,' - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static_GCJ='-Bstatic' - else - lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' - fi - ;; - darwin*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - case $cc_basename in - xlc*) - lt_prog_compiler_pic_GCJ='-qnocommon' - lt_prog_compiler_wl_GCJ='-Wl,' - ;; - esac - ;; - - mingw* | cygwin* | pw32* | os2*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - - ;; - - hpux9* | hpux10* | hpux11*) - lt_prog_compiler_wl_GCJ='-Wl,' - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic_GCJ='+Z' - ;; - esac - # Is there a better lt_prog_compiler_static that works with the bundled CC? - lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' - ;; - - irix5* | irix6* | nonstopux*) - lt_prog_compiler_wl_GCJ='-Wl,' - # PIC (with -KPIC) is the default. - lt_prog_compiler_static_GCJ='-non_shared' - ;; - - newsos6) - lt_prog_compiler_pic_GCJ='-KPIC' - lt_prog_compiler_static_GCJ='-Bstatic' - ;; - - linux* | k*bsd*-gnu) - case $cc_basename in - icc* | ecc*) - lt_prog_compiler_wl_GCJ='-Wl,' - lt_prog_compiler_pic_GCJ='-KPIC' - lt_prog_compiler_static_GCJ='-static' - ;; - pgcc* | pgf77* | pgf90* | pgf95*) - # Portland Group compilers (*not* the Pentium gcc compiler, - # which looks to be a dead project) - lt_prog_compiler_wl_GCJ='-Wl,' - lt_prog_compiler_pic_GCJ='-fpic' - lt_prog_compiler_static_GCJ='-Bstatic' - ;; - ccc*) - lt_prog_compiler_wl_GCJ='-Wl,' - # All Alpha code is PIC. - lt_prog_compiler_static_GCJ='-non_shared' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C 5.9 - lt_prog_compiler_pic_GCJ='-KPIC' - lt_prog_compiler_static_GCJ='-Bstatic' - lt_prog_compiler_wl_GCJ='-Wl,' - ;; - *Sun\ F*) - # Sun Fortran 8.3 passes all unrecognized flags to the linker - lt_prog_compiler_pic_GCJ='-KPIC' - lt_prog_compiler_static_GCJ='-Bstatic' - lt_prog_compiler_wl_GCJ='' - ;; - esac - ;; - esac - ;; - - osf3* | osf4* | osf5*) - lt_prog_compiler_wl_GCJ='-Wl,' - # All OSF/1 code is PIC. - lt_prog_compiler_static_GCJ='-non_shared' - ;; - - rdos*) - lt_prog_compiler_static_GCJ='-non_shared' - ;; - - solaris*) - lt_prog_compiler_pic_GCJ='-KPIC' - lt_prog_compiler_static_GCJ='-Bstatic' - case $cc_basename in - f77* | f90* | f95*) - lt_prog_compiler_wl_GCJ='-Qoption ld ';; - *) - lt_prog_compiler_wl_GCJ='-Wl,';; - esac - ;; - - sunos4*) - lt_prog_compiler_wl_GCJ='-Qoption ld ' - lt_prog_compiler_pic_GCJ='-PIC' - lt_prog_compiler_static_GCJ='-Bstatic' - ;; - - sysv4 | sysv4.2uw2* | sysv4.3*) - lt_prog_compiler_wl_GCJ='-Wl,' - lt_prog_compiler_pic_GCJ='-KPIC' - lt_prog_compiler_static_GCJ='-Bstatic' - ;; - - sysv4*MP*) - if test -d /usr/nec ;then - lt_prog_compiler_pic_GCJ='-Kconform_pic' - lt_prog_compiler_static_GCJ='-Bstatic' - fi - ;; - - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) - lt_prog_compiler_wl_GCJ='-Wl,' - lt_prog_compiler_pic_GCJ='-KPIC' - lt_prog_compiler_static_GCJ='-Bstatic' - ;; - - unicos*) - lt_prog_compiler_wl_GCJ='-Wl,' - lt_prog_compiler_can_build_shared_GCJ=no - ;; - - uts4*) - lt_prog_compiler_pic_GCJ='-pic' - lt_prog_compiler_static_GCJ='-Bstatic' - ;; - - *) - lt_prog_compiler_can_build_shared_GCJ=no - ;; - esac - fi - -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 -echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } - -# -# Check to make sure the PIC flag actually works. -# -if test -n "$lt_prog_compiler_pic_GCJ"; then - -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } -if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_prog_compiler_pic_works_GCJ=no - ac_outfile=conftest.$ac_objext - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="$lt_prog_compiler_pic_GCJ" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:19176: $lt_compile\"" >&5) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&5 - echo "$as_me:19180: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - lt_cv_prog_compiler_pic_works_GCJ=yes - fi - fi - $rm conftest* - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5 -echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; } - -if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then - case $lt_prog_compiler_pic_GCJ in - "" | " "*) ;; - *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; - esac -else - lt_prog_compiler_pic_GCJ= - lt_prog_compiler_can_build_shared_GCJ=no -fi - -fi -case $host_os in - # For platforms which do not support PIC, -DPIC is meaningless: - *djgpp*) - lt_prog_compiler_pic_GCJ= - ;; - *) - lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" - ;; -esac - -# -# Check to make sure the static flag actually works. -# -wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } -if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_prog_compiler_static_works_GCJ=no - save_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS $lt_tmp_static_flag" - echo "$lt_simple_link_test_code" > conftest.$ac_ext - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then - # The linker can only warn and ignore the option if not recognized - # So say no if there are warnings - if test -s conftest.err; then - # Append any errors to the config.log. - cat conftest.err 1>&5 - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if diff conftest.exp conftest.er2 >/dev/null; then - lt_cv_prog_compiler_static_works_GCJ=yes - fi - else - lt_cv_prog_compiler_static_works_GCJ=yes - fi - fi - $rm -r conftest* - LDFLAGS="$save_LDFLAGS" - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5 -echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; } - -if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then - : -else - lt_prog_compiler_static_GCJ= -fi - - -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } -if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_prog_compiler_c_o_GCJ=no - $rm -r conftest 2>/dev/null - mkdir conftest - cd conftest - mkdir out - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - lt_compiler_flag="-o out/conftest2.$ac_objext" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:19280: $lt_compile\"" >&5) - (eval "$lt_compile" 2>out/conftest.err) - ac_status=$? - cat out/conftest.err >&5 - echo "$as_me:19284: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s out/conftest2.$ac_objext - then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then - lt_cv_prog_compiler_c_o_GCJ=yes - fi - fi - chmod u+w . 2>&5 - $rm conftest* - # SGI C++ compiler will create directory out/ii_files/ for - # template instantiation - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files - $rm out/* && rmdir out - cd .. - rmdir conftest - $rm conftest* - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } - - -hard_links="nottested" -if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then - # do not overwrite the value of need_locks provided by the user - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } - hard_links=yes - $rm conftest* - ln conftest.a conftest.b 2>/dev/null && hard_links=no - touch conftest.a - ln conftest.a conftest.b 2>&5 || hard_links=no - ln conftest.a conftest.b 2>/dev/null && hard_links=no - { echo "$as_me:$LINENO: result: $hard_links" >&5 -echo "${ECHO_T}$hard_links" >&6; } - if test "$hard_links" = no; then - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} - need_locks=warn - fi -else - need_locks=no -fi - -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } - - runpath_var= - allow_undefined_flag_GCJ= - enable_shared_with_static_runtimes_GCJ=no - archive_cmds_GCJ= - archive_expsym_cmds_GCJ= - old_archive_From_new_cmds_GCJ= - old_archive_from_expsyms_cmds_GCJ= - export_dynamic_flag_spec_GCJ= - whole_archive_flag_spec_GCJ= - thread_safe_flag_spec_GCJ= - hardcode_libdir_flag_spec_GCJ= - hardcode_libdir_flag_spec_ld_GCJ= - hardcode_libdir_separator_GCJ= - hardcode_direct_GCJ=no - hardcode_minus_L_GCJ=no - hardcode_shlibpath_var_GCJ=unsupported - link_all_deplibs_GCJ=unknown - hardcode_automatic_GCJ=no - module_cmds_GCJ= - module_expsym_cmds_GCJ= - always_export_symbols_GCJ=no - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - # include_expsyms should be a list of space-separated symbols to be *always* - # included in the symbol list - include_expsyms_GCJ= - # exclude_expsyms can be an extended regexp of symbols to exclude - # it will be wrapped by ` (' and `)$', so one must not match beginning or - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', - # as well as any symbol that contains `d'. - exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out - # platforms (ab)use it in PIC code, but their linkers get confused if - # the symbol is explicitly referenced. Since portable code cannot - # rely on this symbol name, it's probably fine to never include it in - # preloaded symbol tables. - # Exclude shared library initialization/finalization symbols. - extract_expsyms_cmds= - # Just being paranoid about ensuring that cc_basename is set. - for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` - - case $host_os in - cygwin* | mingw* | pw32*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - if test "$GCC" != yes; then - with_gnu_ld=no - fi - ;; - interix*) - # we just hope/assume this is gcc and not c89 (= MSVC++) - with_gnu_ld=yes - ;; - openbsd*) - with_gnu_ld=no - ;; - esac - - ld_shlibs_GCJ=yes - if test "$with_gnu_ld" = yes; then - # If archive_cmds runs LD, not CC, wlarc should be empty - wlarc='${wl}' - - # Set some defaults for GNU ld with shared library support. These - # are reset later if shared libraries are not supported. Putting them - # here allows them to be overridden if necessary. - runpath_var=LD_RUN_PATH - hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' - export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' - # ancient GNU ld didn't support --whole-archive et. al. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then - whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - else - whole_archive_flag_spec_GCJ= - fi - supports_anon_versioning=no - case `$LD -v 2>/dev/null` in - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... - *\ 2.11.*) ;; # other 2.11 versions - *) supports_anon_versioning=yes ;; - esac - - # See if GNU ld supports shared libraries. - case $host_os in - aix[3-9]*) - # On AIX/PPC, the GNU linker is very broken - if test "$host_cpu" != ia64; then - ld_shlibs_GCJ=no - cat <&2 - -*** Warning: the GNU linker, at least up to release 2.9.1, is reported -*** to be unable to reliably create shared libraries on AIX. -*** Therefore, libtool is disabling shared libraries support. If you -*** really care for shared libraries, you may want to modify your PATH -*** so that a non-GNU linker is found, and then restart. - -EOF - fi - ;; - - amigaos*) - 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)' - hardcode_libdir_flag_spec_GCJ='-L$libdir' - hardcode_minus_L_GCJ=yes - - # Samuel A. Falvo II reports - # that the semantics of dynamic libraries on AmigaOS, at least up - # to version 4, is to share data among multiple programs linked - # with the same dynamic library. Since this doesn't match the - # behavior of shared libraries on other platforms, we can't use - # them. - ld_shlibs_GCJ=no - ;; - - beos*) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - allow_undefined_flag_GCJ=unsupported - # Joseph Beckenbach says some releases of gcc - # support --undefined. This deserves some investigation. FIXME - archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - else - ld_shlibs_GCJ=no - fi - ;; - - cygwin* | mingw* | pw32*) - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec_GCJ='-L$libdir' - allow_undefined_flag_GCJ=unsupported - always_export_symbols_GCJ=no - enable_shared_with_static_runtimes_GCJ=yes - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' - - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - # If the export-symbols file already is a .def file (1st line - # is EXPORTS), use it as is; otherwise, prepend... - archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then - cp $export_symbols $output_objdir/$soname.def; - else - echo EXPORTS > $output_objdir/$soname.def; - cat $export_symbols >> $output_objdir/$soname.def; - fi~ - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - else - ld_shlibs_GCJ=no - fi - ;; - - interix[3-9]*) - hardcode_direct_GCJ=no - hardcode_shlibpath_var_GCJ=no - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' - export_dynamic_flag_spec_GCJ='${wl}-E' - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. - # Instead, shared libraries are loaded at an image base (0x10000000 by - # default) and relocated if they conflict, which is a slow very memory - # consuming and fragmenting process. To avoid this, we pick a random, - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link - # time. Moving up from 0x10000000 also allows more sbrk(2) space. - 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' - 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' - ;; - - gnu* | linux* | k*bsd*-gnu) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - tmp_addflag= - case $cc_basename,$host_cpu in - pgcc*) # Portland Group C compiler - 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' - tmp_addflag=' $pic_flag' - ;; - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers - 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' - tmp_addflag=' $pic_flag -Mnomain' ;; - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 - tmp_addflag=' -i_dynamic' ;; - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 - tmp_addflag=' -i_dynamic -nofor_main' ;; - ifc* | ifort*) # Intel Fortran compiler - tmp_addflag=' -nofor_main' ;; - esac - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) # Sun C 5.9 - whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_sharedflag='-G' ;; - *Sun\ F*) # Sun Fortran 8.3 - tmp_sharedflag='-G' ;; - *) - tmp_sharedflag='-shared' ;; - esac - archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - - if test $supports_anon_versioning = yes; then - archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ - $echo "local: *; };" >> $output_objdir/$libname.ver~ - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' - fi - link_all_deplibs_GCJ=no - else - ld_shlibs_GCJ=no - fi - ;; - - netbsd* | netbsdelf*-gnu) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' - wlarc= - else - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - fi - ;; - - solaris*) - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then - ld_shlibs_GCJ=no - cat <&2 - -*** Warning: The releases 2.8.* of the GNU linker cannot reliably -*** create shared libraries on Solaris systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.9.1 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. - -EOF - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs_GCJ=no - fi - ;; - - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) - case `$LD -v 2>&1` in - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) - ld_shlibs_GCJ=no - cat <<_LT_EOF 1>&2 - -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not -*** reliably create shared libraries on SCO systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. - -_LT_EOF - ;; - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' - else - ld_shlibs_GCJ=no - fi - ;; - esac - ;; - - sunos4*) - archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' - wlarc= - hardcode_direct_GCJ=yes - hardcode_shlibpath_var_GCJ=no - ;; - - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs_GCJ=no - fi - ;; - esac - - if test "$ld_shlibs_GCJ" = no; then - runpath_var= - hardcode_libdir_flag_spec_GCJ= - export_dynamic_flag_spec_GCJ= - whole_archive_flag_spec_GCJ= - fi - else - # PORTME fill in a description of your system's linker (not GNU ld) - case $host_os in - aix3*) - allow_undefined_flag_GCJ=unsupported - always_export_symbols_GCJ=yes - 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' - # Note: this linker hardcodes the directories in LIBPATH if there - # are no directories specified by -L. - hardcode_minus_L_GCJ=yes - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then - # Neither direct hardcoding nor static linking is supported with a - # broken collect2. - hardcode_direct_GCJ=unsupported - fi - ;; - - aix[4-9]*) - if test "$host_cpu" = ia64; then - # On IA64, the linker does run time linking by default, so we don't - # have to do anything special. - aix_use_runtimelinking=no - exp_sym_flag='-Bexport' - no_entry_flag="" - else - # If we're using GNU nm, then we don't want the "-C" option. - # -C means demangle to AIX nm, but means don't demangle with GNU nm - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then - 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' - else - 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' - fi - aix_use_runtimelinking=no - - # Test if we are trying to use run time linking or normal - # AIX style linking. If -brtl is somewhere in LDFLAGS, we - # need to do runtime linking. - case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) - for ld_flag in $LDFLAGS; do - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then - aix_use_runtimelinking=yes - break - fi - done - ;; - esac - - exp_sym_flag='-bexport' - no_entry_flag='-bnoentry' - fi - - # When large executables or shared objects are built, AIX ld can - # have problems creating the table of contents. If linking a library - # or program results in "error TOC overflow" add -mminimal-toc to - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. - - archive_cmds_GCJ='' - hardcode_direct_GCJ=yes - hardcode_libdir_separator_GCJ=':' - link_all_deplibs_GCJ=yes - - if test "$GCC" = yes; then - case $host_os in aix4.[012]|aix4.[012].*) - # We only want to do this on AIX 4.2 and lower, the check - # below for broken collect2 doesn't work under 4.3+ - collect2name=`${CC} -print-prog-name=collect2` - if test -f "$collect2name" && \ - strings "$collect2name" | grep resolve_lib_name >/dev/null - then - # We have reworked collect2 - : - else - # We have old collect2 - hardcode_direct_GCJ=unsupported - # It fails to find uninstalled libraries when the uninstalled - # path is not listed in the libpath. Setting hardcode_minus_L - # to unsupported forces relinking - hardcode_minus_L_GCJ=yes - hardcode_libdir_flag_spec_GCJ='-L$libdir' - hardcode_libdir_separator_GCJ= - fi - ;; - esac - shared_flag='-shared' - if test "$aix_use_runtimelinking" = yes; then - shared_flag="$shared_flag "'${wl}-G' - fi - else - # not using gcc - if test "$host_cpu" = ia64; then - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release - # chokes on -Wl,-G. The following line is correct: - shared_flag='-G' - else - if test "$aix_use_runtimelinking" = yes; then - shared_flag='${wl}-G' - else - shared_flag='${wl}-bM:SRE' - fi - fi - fi - - # It seems that -bexpall does not export symbols beginning with - # underscore (_), so it is better to generate a list of symbols to export. - always_export_symbols_GCJ=yes - if test "$aix_use_runtimelinking" = yes; then - # Warning - without using the other runtime loading flags (-brtl), - # -berok will link without error, but may produce a broken library. - allow_undefined_flag_GCJ='-berok' - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" - 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" - else - if test "$host_cpu" = ia64; then - hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' - allow_undefined_flag_GCJ="-z nodefs" - 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" - else - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" - # Warning - without using the other run time loading flags, - # -berok will link without error, but may produce a broken library. - no_undefined_flag_GCJ=' ${wl}-bernotok' - allow_undefined_flag_GCJ=' ${wl}-berok' - # Exported symbols can be pulled into shared objects from archives - whole_archive_flag_spec_GCJ='$convenience' - archive_cmds_need_lc_GCJ=yes - # This is similar to how AIX traditionally builds its shared libraries. - 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' - fi - fi - ;; - - amigaos*) - 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)' - hardcode_libdir_flag_spec_GCJ='-L$libdir' - hardcode_minus_L_GCJ=yes - # see comment about different semantics on the GNU ld section - ld_shlibs_GCJ=no - ;; - - bsdi[45]*) - export_dynamic_flag_spec_GCJ=-rdynamic - ;; - - cygwin* | mingw* | pw32*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is - # no search path for DLLs. - hardcode_libdir_flag_spec_GCJ=' ' - allow_undefined_flag_GCJ=unsupported - # Tell ltmain to make .lib files, not .a files. - libext=lib - # Tell ltmain to make .dll files, not .so files. - shrext_cmds=".dll" - # FIXME: Setting linknames here is a bad hack. - archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' - # The linker will automatically build a .lib file if we build a DLL. - old_archive_From_new_cmds_GCJ='true' - # FIXME: Should let the user specify the lib program. - old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' - fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' - enable_shared_with_static_runtimes_GCJ=yes - ;; - - darwin* | rhapsody*) - case $host_os in - rhapsody* | darwin1.[012]) - allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' - ;; - *) # Darwin 1.3 on - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then - allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - else - case ${MACOSX_DEPLOYMENT_TARGET} in - 10.[012]) - allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - ;; - 10.*) - allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' - ;; - esac - fi - ;; - esac - archive_cmds_need_lc_GCJ=no - hardcode_direct_GCJ=no - hardcode_automatic_GCJ=yes - hardcode_shlibpath_var_GCJ=unsupported - whole_archive_flag_spec_GCJ='' - link_all_deplibs_GCJ=yes - if test "$GCC" = yes ; then - output_verbose_link_cmd='echo' - archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" - module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" - archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" - module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" - else - case $cc_basename in - xlc*) - output_verbose_link_cmd='echo' - archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' - module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - 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}' - ;; - *) - ld_shlibs_GCJ=no - ;; - esac - fi - ;; - - dgux*) - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec_GCJ='-L$libdir' - hardcode_shlibpath_var_GCJ=no - ;; - - freebsd1*) - ld_shlibs_GCJ=no - ;; - - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor - # support. Future versions do this automatically, but an explicit c++rt0.o - # does not break anything, and helps significantly (at the cost of a little - # extra space). - freebsd2.2*) - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' - hardcode_libdir_flag_spec_GCJ='-R$libdir' - hardcode_direct_GCJ=yes - hardcode_shlibpath_var_GCJ=no - ;; - - # Unfortunately, older versions of FreeBSD 2 do not have this feature. - freebsd2*) - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_GCJ=yes - hardcode_minus_L_GCJ=yes - hardcode_shlibpath_var_GCJ=no - ;; - - # FreeBSD 3 and greater uses gcc -shared to do shared libraries. - freebsd* | dragonfly*) - archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' - hardcode_libdir_flag_spec_GCJ='-R$libdir' - hardcode_direct_GCJ=yes - hardcode_shlibpath_var_GCJ=no - ;; - - hpux9*) - if test "$GCC" = yes; then - 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' - else - 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' - fi - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_GCJ=: - hardcode_direct_GCJ=yes - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L_GCJ=yes - export_dynamic_flag_spec_GCJ='${wl}-E' - ;; - - hpux10*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then - archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' - fi - if test "$with_gnu_ld" = no; then - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_GCJ=: - - hardcode_direct_GCJ=yes - export_dynamic_flag_spec_GCJ='${wl}-E' - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L_GCJ=yes - fi - ;; - - hpux11*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then - case $host_cpu in - hppa*64*) - archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - else - case $host_cpu in - hppa*64*) - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - fi - if test "$with_gnu_ld" = no; then - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_GCJ=: - - case $host_cpu in - hppa*64*|ia64*) - hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' - hardcode_direct_GCJ=no - hardcode_shlibpath_var_GCJ=no - ;; - *) - hardcode_direct_GCJ=yes - export_dynamic_flag_spec_GCJ='${wl}-E' - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L_GCJ=yes - ;; - esac - fi - ;; - - irix5* | irix6* | nonstopux*) - if test "$GCC" = yes; then - 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' - else - 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' - hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' - fi - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_GCJ=: - link_all_deplibs_GCJ=yes - ;; - - netbsd* | netbsdelf*-gnu) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out - else - archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF - fi - hardcode_libdir_flag_spec_GCJ='-R$libdir' - hardcode_direct_GCJ=yes - hardcode_shlibpath_var_GCJ=no - ;; - - newsos6) - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_GCJ=yes - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_GCJ=: - hardcode_shlibpath_var_GCJ=no - ;; - - openbsd*) - if test -f /usr/libexec/ld.so; then - hardcode_direct_GCJ=yes - hardcode_shlibpath_var_GCJ=no - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' - export_dynamic_flag_spec_GCJ='${wl}-E' - else - case $host_os in - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec_GCJ='-R$libdir' - ;; - *) - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' - ;; - esac - fi - else - ld_shlibs_GCJ=no - fi - ;; - - os2*) - hardcode_libdir_flag_spec_GCJ='-L$libdir' - hardcode_minus_L_GCJ=yes - allow_undefined_flag_GCJ=unsupported - 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' - old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' - ;; - - osf3*) - if test "$GCC" = yes; then - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' - 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' - else - allow_undefined_flag_GCJ=' -expect_unresolved \*' - 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' - fi - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_GCJ=: - ;; - - osf4* | osf5*) # as osf3* with the addition of -msym flag - if test "$GCC" = yes; then - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' - 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' - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' - else - allow_undefined_flag_GCJ=' -expect_unresolved \*' - 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' - 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~ - $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' - - # Both c and cxx compiler support -rpath directly - hardcode_libdir_flag_spec_GCJ='-rpath $libdir' - fi - hardcode_libdir_separator_GCJ=: - ;; - - solaris*) - no_undefined_flag_GCJ=' -z text' - if test "$GCC" = yes; then - wlarc='${wl}' - archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' - else - wlarc='' - archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' - fi - hardcode_libdir_flag_spec_GCJ='-R$libdir' - hardcode_shlibpath_var_GCJ=no - case $host_os in - solaris2.[0-5] | solaris2.[0-5].*) ;; - *) - # The compiler driver will combine and reorder linker options, - # but understands `-z linker_flag'. GCC discards it without `$wl', - # but is careful enough not to reorder. - # Supported since Solaris 2.6 (maybe 2.5.1?) - if test "$GCC" = yes; then - whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' - else - whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' - fi - ;; - esac - link_all_deplibs_GCJ=yes - ;; - - sunos4*) - if test "x$host_vendor" = xsequent; then - # Use $CC to link under sequent, because it throws in some extra .o - # files that make .init and .fini sections work. - archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' - fi - hardcode_libdir_flag_spec_GCJ='-L$libdir' - hardcode_direct_GCJ=yes - hardcode_minus_L_GCJ=yes - hardcode_shlibpath_var_GCJ=no - ;; - - sysv4) - case $host_vendor in - sni) - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_GCJ=yes # is this really true??? - ;; - siemens) - ## LD is ld it makes a PLAMLIB - ## CC just makes a GrossModule. - archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' - reload_cmds_GCJ='$CC -r -o $output$reload_objs' - hardcode_direct_GCJ=no - ;; - motorola) - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie - ;; - esac - runpath_var='LD_RUN_PATH' - hardcode_shlibpath_var_GCJ=no - ;; - - sysv4.3*) - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_shlibpath_var_GCJ=no - export_dynamic_flag_spec_GCJ='-Bexport' - ;; - - sysv4*MP*) - if test -d /usr/nec; then - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_shlibpath_var_GCJ=no - runpath_var=LD_RUN_PATH - hardcode_runpath_var=yes - ld_shlibs_GCJ=yes - fi - ;; - - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) - no_undefined_flag_GCJ='${wl}-z,text' - archive_cmds_need_lc_GCJ=no - hardcode_shlibpath_var_GCJ=no - runpath_var='LD_RUN_PATH' - - if test "$GCC" = yes; then - archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - - sysv5* | sco3.2v5* | sco5v6*) - # Note: We can NOT use -z defs as we might desire, because we do not - # link with -lc, and that would cause any symbols used from libc to - # always be unresolved, which means just about no library would - # ever link correctly. If we're not using GNU ld we use -z text - # though, which does catch some bad symbols but isn't as heavy-handed - # as -z defs. - no_undefined_flag_GCJ='${wl}-z,text' - allow_undefined_flag_GCJ='${wl}-z,nodefs' - archive_cmds_need_lc_GCJ=no - hardcode_shlibpath_var_GCJ=no - hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' - hardcode_libdir_separator_GCJ=':' - link_all_deplibs_GCJ=yes - export_dynamic_flag_spec_GCJ='${wl}-Bexport' - runpath_var='LD_RUN_PATH' - - if test "$GCC" = yes; then - archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - - uts4*) - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec_GCJ='-L$libdir' - hardcode_shlibpath_var_GCJ=no - ;; - - *) - ld_shlibs_GCJ=no - ;; - esac - fi - -{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 -echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } -test "$ld_shlibs_GCJ" = no && can_build_shared=no - -# -# Do we need to explicitly link libc? -# -case "x$archive_cmds_need_lc_GCJ" in -x|xyes) - # Assume -lc should be added - archive_cmds_need_lc_GCJ=yes - - if test "$enable_shared" = yes && test "$GCC" = yes; then - case $archive_cmds_GCJ in - *'~'*) - # FIXME: we may have to deal with multi-command sequences. - ;; - '$CC '*) - # Test whether the compiler implicitly links with -lc since on some - # systems, -lgcc has to come before -lc. If gcc already passes -lc - # to ld, don't add -lc before -lgcc. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } - $rm conftest* - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } 2>conftest.err; then - soname=conftest - lib=conftest - libobjs=conftest.$ac_objext - deplibs= - wl=$lt_prog_compiler_wl_GCJ - pic_flag=$lt_prog_compiler_pic_GCJ - compiler_flags=-v - linker_flags=-v - verstring= - output_objdir=. - libname=conftest - lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ - allow_undefined_flag_GCJ= - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 - (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - then - archive_cmds_need_lc_GCJ=no - else - archive_cmds_need_lc_GCJ=yes - fi - allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag - else - cat conftest.err 1>&5 - fi - $rm conftest* - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 -echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } - ;; - esac - fi - ;; -esac - -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } -library_names_spec= -libname_spec='lib$name' -soname_spec= -shrext_cmds=".so" -postinstall_cmds= -postuninstall_cmds= -finish_cmds= -finish_eval= -shlibpath_var= -shlibpath_overrides_runpath=unknown -version_type=none -dynamic_linker="$host_os ld.so" -sys_lib_dlsearch_path_spec="/lib /usr/lib" - -need_lib_prefix=unknown -hardcode_into_libs=no - -# when you set need_version to no, make sure it does not cause -set_version -# flags to be left without arguments -need_version=unknown - -case $host_os in -aix3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' - shlibpath_var=LIBPATH - - # AIX 3 has no versioning support, so we append a major version to the name. - soname_spec='${libname}${release}${shared_ext}$major' - ;; - -aix[4-9]*) - version_type=linux - need_lib_prefix=no - need_version=no - hardcode_into_libs=yes - if test "$host_cpu" = ia64; then - # AIX 5 supports IA64 - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - else - # With GCC up to 2.95.x, collect2 would create an import file - # for dependence libraries. The import file would start with - # the line `#! .'. This would cause the generated library to - # depend on `.', always an invalid library. This was fixed in - # development snapshots of GCC prior to 3.0. - case $host_os in - aix4 | aix4.[01] | aix4.[01].*) - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' - echo ' yes ' - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then - : - else - can_build_shared=no - fi - ;; - esac - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct - # soname into executable. Probably we can add versioning support to - # collect2, so additional links can be useful in future. - if test "$aix_use_runtimelinking" = yes; then - # If using run time linking (on AIX 4.2 or later) use lib.so - # instead of lib.a to let people know that these are not - # typical AIX shared libraries. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - else - # We preserve .a as extension for shared libraries through AIX4.2 - # and later when we are not doing run time linking. - library_names_spec='${libname}${release}.a $libname.a' - soname_spec='${libname}${release}${shared_ext}$major' - fi - shlibpath_var=LIBPATH - fi - ;; - -amigaos*) - library_names_spec='$libname.ixlibrary $libname.a' - # Create ${libname}_ixlibrary.a entries in /sys/libs. - 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' - ;; - -beos*) - library_names_spec='${libname}${shared_ext}' - dynamic_linker="$host_os ld.so" - shlibpath_var=LIBRARY_PATH - ;; - -bsdi[45]*) - version_type=linux - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" - # the default ld.so.conf also contains /usr/contrib/lib and - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow - # libtool to hard-code these into programs - ;; - -cygwin* | mingw* | pw32*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in - yes,cygwin* | yes,mingw* | yes,pw32*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname~ - chmod a+x \$dldir/$dlname' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $rm \$dlpath' - shlibpath_overrides_runpath=yes - - case $host_os in - cygwin*) - # Cygwin DLLs use 'cyg' prefix rather than 'lib' - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" - ;; - mingw*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then - # It is most probably a Windows format PATH printed by - # mingw gcc, but we are running on Cygwin. Gcc prints its search - # path with ; separators, and with drive letters. We can handle the - # drive letters (cygwin fileutils understands them), so leave them, - # especially as we might pass files found there to a mingw objdump, - # which wouldn't understand a cygwinified path. Ahh. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` - else - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi - ;; - pw32*) - # pw32 DLLs use 'pw' prefix rather than 'lib' - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - ;; - esac - ;; - - *) - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' - ;; - esac - dynamic_linker='Win32 ld.exe' - # FIXME: first we should search . and the directory the executable is in - shlibpath_var=PATH - ;; - -darwin* | rhapsody*) - dynamic_linker="$host_os dyld" - version_type=darwin - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' - soname_spec='${libname}${release}${major}$shared_ext' - shlibpath_overrides_runpath=yes - shlibpath_var=DYLD_LIBRARY_PATH - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' - - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' - ;; - -dgux*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -freebsd1*) - dynamic_linker=no - ;; - -freebsd* | dragonfly*) - # DragonFly does not have aout. When/if they implement a new - # versioning mechanism, adjust this. - if test -x /usr/bin/objformat; then - objformat=`/usr/bin/objformat` - else - case $host_os in - freebsd[123]*) objformat=aout ;; - *) objformat=elf ;; - esac - fi - version_type=freebsd-$objformat - case $version_type in - freebsd-elf*) - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - need_version=no - need_lib_prefix=no - ;; - freebsd-*) - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' - need_version=yes - ;; - esac - shlibpath_var=LD_LIBRARY_PATH - case $host_os in - freebsd2*) - shlibpath_overrides_runpath=yes - ;; - freebsd3.[01]* | freebsdelf3.[01]*) - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - *) # from 4.6 on, and DragonFly - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - esac - ;; - -gnu*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - ;; - -hpux9* | hpux10* | hpux11*) - # Give a soname corresponding to the major version so that dld.sl refuses to - # link against other versions. - version_type=sunos - need_lib_prefix=no - need_version=no - case $host_cpu in - ia64*) - shrext_cmds='.so' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.so" - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - if test "X$HPUX_IA64_MODE" = X32; then - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" - else - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" - fi - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - hppa*64*) - shrext_cmds='.sl' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.sl" - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - *) - shrext_cmds='.sl' - dynamic_linker="$host_os dld.sl" - shlibpath_var=SHLIB_PATH - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - ;; - esac - # HP-UX runs *really* slowly unless shared libraries are mode 555. - postinstall_cmds='chmod 555 $lib' - ;; - -interix[3-9]*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - -irix5* | irix6* | nonstopux*) - case $host_os in - nonstopux*) version_type=nonstopux ;; - *) - if test "$lt_cv_prog_gnu_ld" = yes; then - version_type=linux - else - version_type=irix - fi ;; - esac - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' - case $host_os in - irix5* | nonstopux*) - libsuff= shlibsuff= - ;; - *) - case $LD in # libtool.m4 will add one of these switches to LD - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") - libsuff= shlibsuff= libmagic=32-bit;; - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") - libsuff=32 shlibsuff=N32 libmagic=N32;; - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") - libsuff=64 shlibsuff=64 libmagic=64-bit;; - *) libsuff= shlibsuff= libmagic=never-match;; - esac - ;; - esac - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH - shlibpath_overrides_runpath=no - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" - hardcode_into_libs=yes - ;; - -# No shared lib support for Linux oldld, aout, or coff. -linux*oldld* | linux*aout* | linux*coff*) - dynamic_linker=no - ;; - -# This must be Linux ELF. -linux* | k*bsd*-gnu) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - # This implies no fast_install, which is unacceptable. - # Some rework will be needed to allow for fast_install - # before this can be enabled. - hardcode_into_libs=yes - - # Append ld.so.conf contents to the search path - if test -f /etc/ld.so.conf; then - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" - fi - - # We used to test for /lib/ld.so.1 and disable shared libraries on - # powerpc, because MkLinux only supported shared libraries with the - # GNU dynamic linker. Since this was broken with cross compilers, - # most powerpc-linux boxes support dynamic linking these days and - # people can always --disable-shared, the test was removed, and we - # assume the GNU/Linux dynamic linker is in use. - dynamic_linker='GNU/Linux ld.so' - ;; - -netbsdelf*-gnu) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - dynamic_linker='NetBSD ld.elf_so' - ;; - -netbsd*) - version_type=sunos - need_lib_prefix=no - need_version=no - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - dynamic_linker='NetBSD (a.out) ld.so' - else - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='NetBSD ld.elf_so' - fi - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - -newsos6) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -nto-qnx*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -openbsd*) - version_type=sunos - sys_lib_dlsearch_path_spec="/usr/lib" - need_lib_prefix=no - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. - case $host_os in - openbsd3.3 | openbsd3.3.*) need_version=yes ;; - *) need_version=no ;; - esac - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - shlibpath_var=LD_LIBRARY_PATH - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - case $host_os in - openbsd2.[89] | openbsd2.[89].*) - shlibpath_overrides_runpath=no - ;; - *) - shlibpath_overrides_runpath=yes - ;; - esac - else - shlibpath_overrides_runpath=yes - fi - ;; - -os2*) - libname_spec='$name' - shrext_cmds=".dll" - need_lib_prefix=no - library_names_spec='$libname${shared_ext} $libname.a' - dynamic_linker='OS/2 ld.exe' - shlibpath_var=LIBPATH - ;; - -osf3* | osf4* | osf5*) - version_type=osf - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" - ;; - -rdos*) - dynamic_linker=no - ;; - -solaris*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - # ldd complains unless libraries are executable - postinstall_cmds='chmod +x $lib' - ;; - -sunos4*) - version_type=sunos - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - if test "$with_gnu_ld" = yes; then - need_lib_prefix=no - fi - need_version=yes - ;; - -sysv4 | sysv4.3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - case $host_vendor in - sni) - shlibpath_overrides_runpath=no - need_lib_prefix=no - export_dynamic_flag_spec='${wl}-Blargedynsym' - runpath_var=LD_RUN_PATH - ;; - siemens) - need_lib_prefix=no - ;; - motorola) - need_lib_prefix=no - need_version=no - shlibpath_overrides_runpath=no - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' - ;; - esac - ;; - -sysv4*MP*) - if test -d /usr/nec ;then - version_type=linux - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' - soname_spec='$libname${shared_ext}.$major' - shlibpath_var=LD_LIBRARY_PATH - fi - ;; - -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - version_type=freebsd-elf - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - if test "$with_gnu_ld" = yes; then - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' - shlibpath_overrides_runpath=no - else - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' - shlibpath_overrides_runpath=yes - case $host_os in - sco3.2v5*) - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" - ;; - esac - fi - sys_lib_dlsearch_path_spec='/usr/lib' - ;; - -uts4*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -*) - dynamic_linker=no - ;; -esac -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 -echo "${ECHO_T}$dynamic_linker" >&6; } -test "$dynamic_linker" = no && can_build_shared=no - -if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" -fi - -sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" -if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" -fi - -sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" - -variables_saved_for_relink="PATH $shlibpath_var $runpath_var" -if test "$GCC" = yes; then - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" -fi - -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } -hardcode_action_GCJ= -if test -n "$hardcode_libdir_flag_spec_GCJ" || \ - test -n "$runpath_var_GCJ" || \ - test "X$hardcode_automatic_GCJ" = "Xyes" ; then - - # We can hardcode non-existant directories. - if test "$hardcode_direct_GCJ" != no && - # If the only mechanism to avoid hardcoding is shlibpath_var, we - # have to relink, otherwise we might link with an installed library - # when we should be linking with a yet-to-be-installed one - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && - test "$hardcode_minus_L_GCJ" != no; then - # Linking always hardcodes the temporary library directory. - hardcode_action_GCJ=relink - else - # We can link without hardcoding, and we can hardcode nonexisting dirs. - hardcode_action_GCJ=immediate - fi -else - # We cannot hardcode anything, or else we can only hardcode existing - # directories. - hardcode_action_GCJ=unsupported -fi -{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 -echo "${ECHO_T}$hardcode_action_GCJ" >&6; } - -if test "$hardcode_action_GCJ" = relink; then - # Fast installation is not supported - enable_fast_install=no -elif test "$shlibpath_overrides_runpath" = yes || - test "$enable_shared" = no; then - # Fast installation is not necessary - enable_fast_install=needless -fi - - -# The else clause should only fire when bootstrapping the -# libtool distribution, otherwise you forgot to ship ltmain.sh -# with your package, and you will get complaints that there are -# no rules to generate ltmain.sh. -if test -f "$ltmain"; then - # See if we are running on zsh, and set the options which allow our commands through - # without removal of \ escapes. - if test -n "${ZSH_VERSION+set}" ; then - setopt NO_GLOB_SUBST - fi - # Now quote all the things that may contain metacharacters while being - # careful not to overquote the AC_SUBSTed values. We take copies of the - # variables and quote the copies for generation of the libtool script. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ - SED SHELL STRIP \ - libname_spec library_names_spec soname_spec extract_expsyms_cmds \ - old_striplib striplib file_magic_cmd finish_cmds finish_eval \ - deplibs_check_method reload_flag reload_cmds need_locks \ - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ - lt_cv_sys_global_symbol_to_c_name_address \ - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ - old_postinstall_cmds old_postuninstall_cmds \ - compiler_GCJ \ - CC_GCJ \ - LD_GCJ \ - lt_prog_compiler_wl_GCJ \ - lt_prog_compiler_pic_GCJ \ - lt_prog_compiler_static_GCJ \ - lt_prog_compiler_no_builtin_flag_GCJ \ - export_dynamic_flag_spec_GCJ \ - thread_safe_flag_spec_GCJ \ - whole_archive_flag_spec_GCJ \ - enable_shared_with_static_runtimes_GCJ \ - old_archive_cmds_GCJ \ - old_archive_from_new_cmds_GCJ \ - predep_objects_GCJ \ - postdep_objects_GCJ \ - predeps_GCJ \ - postdeps_GCJ \ - compiler_lib_search_path_GCJ \ - compiler_lib_search_dirs_GCJ \ - archive_cmds_GCJ \ - archive_expsym_cmds_GCJ \ - postinstall_cmds_GCJ \ - postuninstall_cmds_GCJ \ - old_archive_from_expsyms_cmds_GCJ \ - allow_undefined_flag_GCJ \ - no_undefined_flag_GCJ \ - export_symbols_cmds_GCJ \ - hardcode_libdir_flag_spec_GCJ \ - hardcode_libdir_flag_spec_ld_GCJ \ - hardcode_libdir_separator_GCJ \ - hardcode_automatic_GCJ \ - module_cmds_GCJ \ - module_expsym_cmds_GCJ \ - lt_cv_prog_compiler_c_o_GCJ \ - fix_srcfile_path_GCJ \ - exclude_expsyms_GCJ \ - include_expsyms_GCJ; do - - case $var in - old_archive_cmds_GCJ | \ - old_archive_from_new_cmds_GCJ | \ - archive_cmds_GCJ | \ - archive_expsym_cmds_GCJ | \ - module_cmds_GCJ | \ - module_expsym_cmds_GCJ | \ - old_archive_from_expsyms_cmds_GCJ | \ - export_symbols_cmds_GCJ | \ - extract_expsyms_cmds | reload_cmds | finish_cmds | \ - postinstall_cmds | postuninstall_cmds | \ - old_postinstall_cmds | old_postuninstall_cmds | \ - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) - # Double-quote double-evaled strings. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" - ;; - *) - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" - ;; - esac - done - - case $lt_echo in - *'\$0 --fallback-echo"') - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` - ;; - esac - -cfgfile="$ofile" - - cat <<__EOF__ >> "$cfgfile" -# ### BEGIN LIBTOOL TAG CONFIG: $tagname - -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: - -# Shell to use when invoking shell scripts. -SHELL=$lt_SHELL - -# Whether or not to build shared libraries. -build_libtool_libs=$enable_shared - -# Whether or not to build static libraries. -build_old_libs=$enable_static - -# Whether or not to add -lc for building shared libraries. -build_libtool_need_lc=$archive_cmds_need_lc_GCJ - -# Whether or not to disallow shared libs when runtime libs are static -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ - -# Whether or not to optimize for fast installation. -fast_install=$enable_fast_install - -# The host system. -host_alias=$host_alias -host=$host -host_os=$host_os - -# The build system. -build_alias=$build_alias -build=$build -build_os=$build_os - -# An echo program that does not interpret backslashes. -echo=$lt_echo - -# The archiver. -AR=$lt_AR -AR_FLAGS=$lt_AR_FLAGS - -# A C compiler. -LTCC=$lt_LTCC - -# LTCC compiler flags. -LTCFLAGS=$lt_LTCFLAGS - -# A language-specific compiler. -CC=$lt_compiler_GCJ - -# Is the compiler the GNU C compiler? -with_gcc=$GCC_GCJ - -# An ERE matcher. -EGREP=$lt_EGREP - -# The linker used to build libraries. -LD=$lt_LD_GCJ - -# Whether we need hard or soft links. -LN_S=$lt_LN_S - -# A BSD-compatible nm program. -NM=$lt_NM - -# A symbol stripping program -STRIP=$lt_STRIP - -# Used to examine libraries when file_magic_cmd begins "file" -MAGIC_CMD=$MAGIC_CMD - -# Used on cygwin: DLL creation program. -DLLTOOL="$DLLTOOL" - -# Used on cygwin: object dumper. -OBJDUMP="$OBJDUMP" - -# Used on cygwin: assembler. -AS="$AS" - -# The name of the directory that contains temporary libtool files. -objdir=$objdir - -# How to create reloadable object files. -reload_flag=$lt_reload_flag -reload_cmds=$lt_reload_cmds - -# How to pass a linker flag through the compiler. -wl=$lt_lt_prog_compiler_wl_GCJ - -# Object file suffix (normally "o"). -objext="$ac_objext" - -# Old archive suffix (normally "a"). -libext="$libext" - -# Shared library suffix (normally ".so"). -shrext_cmds='$shrext_cmds' - -# Executable file suffix (normally ""). -exeext="$exeext" - -# Additional compiler flags for building library objects. -pic_flag=$lt_lt_prog_compiler_pic_GCJ -pic_mode=$pic_mode - -# What is the maximum length of a command? -max_cmd_len=$lt_cv_sys_max_cmd_len - -# Does compiler simultaneously support -c and -o options? -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ - -# Must we lock files when doing compilation? -need_locks=$lt_need_locks - -# Do we need the lib prefix for modules? -need_lib_prefix=$need_lib_prefix - -# Do we need a version for libraries? -need_version=$need_version - -# Whether dlopen is supported. -dlopen_support=$enable_dlopen - -# Whether dlopen of programs is supported. -dlopen_self=$enable_dlopen_self - -# Whether dlopen of statically linked programs is supported. -dlopen_self_static=$enable_dlopen_self_static - -# Compiler flag to prevent dynamic linking. -link_static_flag=$lt_lt_prog_compiler_static_GCJ - -# Compiler flag to turn off builtin functions. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ - -# Compiler flag to allow reflexive dlopens. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ - -# Compiler flag to generate shared objects directly from archives. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ - -# Compiler flag to generate thread-safe objects. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ - -# Library versioning type. -version_type=$version_type - -# Format of library name prefix. -libname_spec=$lt_libname_spec - -# List of archive names. First name is the real one, the rest are links. -# The last name is the one that the linker finds with -lNAME. -library_names_spec=$lt_library_names_spec - -# The coded name of the library, if different from the real name. -soname_spec=$lt_soname_spec - -# Commands used to build and install an old-style archive. -RANLIB=$lt_RANLIB -old_archive_cmds=$lt_old_archive_cmds_GCJ -old_postinstall_cmds=$lt_old_postinstall_cmds -old_postuninstall_cmds=$lt_old_postuninstall_cmds - -# Create an old-style archive from a shared archive. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ - -# Create a temporary old-style archive to link instead of a shared archive. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ - -# Commands used to build and install a shared archive. -archive_cmds=$lt_archive_cmds_GCJ -archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ -postinstall_cmds=$lt_postinstall_cmds -postuninstall_cmds=$lt_postuninstall_cmds - -# Commands used to build a loadable module (assumed same as above if empty) -module_cmds=$lt_module_cmds_GCJ -module_expsym_cmds=$lt_module_expsym_cmds_GCJ - -# Commands to strip libraries. -old_striplib=$lt_old_striplib -striplib=$lt_striplib - -# Dependencies to place before the objects being linked to create a -# shared library. -predep_objects=$lt_predep_objects_GCJ - -# Dependencies to place after the objects being linked to create a -# shared library. -postdep_objects=$lt_postdep_objects_GCJ - -# Dependencies to place before the objects being linked to create a -# shared library. -predeps=$lt_predeps_GCJ - -# Dependencies to place after the objects being linked to create a -# shared library. -postdeps=$lt_postdeps_GCJ - -# The directories searched by this compiler when creating a shared -# library -compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ - -# The library search path used internally by the compiler when linking -# a shared library. -compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ - -# Method to check whether dependent libraries are shared objects. -deplibs_check_method=$lt_deplibs_check_method - -# Command to use when deplibs_check_method == file_magic. -file_magic_cmd=$lt_file_magic_cmd - -# Flag that allows shared libraries with undefined symbols to be built. -allow_undefined_flag=$lt_allow_undefined_flag_GCJ - -# Flag that forces no undefined symbols. -no_undefined_flag=$lt_no_undefined_flag_GCJ - -# Commands used to finish a libtool library installation in a directory. -finish_cmds=$lt_finish_cmds - -# Same as above, but a single script fragment to be evaled but not shown. -finish_eval=$lt_finish_eval - -# Take the output of nm and produce a listing of raw symbols and C names. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe - -# Transform the output of nm in a proper C declaration -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl - -# Transform the output of nm in a C name address pair -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address - -# This is the shared library runtime path variable. -runpath_var=$runpath_var - -# This is the shared library path variable. -shlibpath_var=$shlibpath_var - -# Is shlibpath searched before the hard-coded library search path? -shlibpath_overrides_runpath=$shlibpath_overrides_runpath - -# How to hardcode a shared library path into an executable. -hardcode_action=$hardcode_action_GCJ - -# Whether we should hardcode library paths into libraries. -hardcode_into_libs=$hardcode_into_libs - -# Flag to hardcode \$libdir into a binary during linking. -# This must work even if \$libdir does not exist. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ - -# If ld is used when linking, flag to hardcode \$libdir into -# a binary during linking. This must work even if \$libdir does -# not exist. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ - -# Whether we need a single -rpath flag with a separated argument. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ - -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the -# resulting binary. -hardcode_direct=$hardcode_direct_GCJ - -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the -# resulting binary. -hardcode_minus_L=$hardcode_minus_L_GCJ - -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into -# the resulting binary. -hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ - -# Set to yes if building a shared library automatically hardcodes DIR into the library -# and all subsequent libraries and executables linked against it. -hardcode_automatic=$hardcode_automatic_GCJ - -# Variables whose values should be saved in libtool wrapper scripts and -# restored at relink time. -variables_saved_for_relink="$variables_saved_for_relink" - -# Whether libtool must link a program against all its dependency libraries. -link_all_deplibs=$link_all_deplibs_GCJ - -# Compile-time system search path for libraries -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec - -# Run-time system search path for libraries -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec - -# Fix the shell variable \$srcfile for the compiler. -fix_srcfile_path=$lt_fix_srcfile_path - -# Set to yes if exported symbols are required. -always_export_symbols=$always_export_symbols_GCJ - -# The commands to list exported symbols. -export_symbols_cmds=$lt_export_symbols_cmds_GCJ - -# The commands to extract the exported symbol list from a shared archive. -extract_expsyms_cmds=$lt_extract_expsyms_cmds - -# Symbols that should not be listed in the preloaded symbols. -exclude_expsyms=$lt_exclude_expsyms_GCJ - -# Symbols that must always be exported. -include_expsyms=$lt_include_expsyms_GCJ - -# ### END LIBTOOL TAG CONFIG: $tagname - -__EOF__ - - -else - # If there is no Makefile yet, we rely on a make rule to execute - # `config.status --recheck' to rerun these tests and create the - # libtool script then. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` - if test -f "$ltmain_in"; then - test -f Makefile && make "$ltmain" - fi -fi - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -CC="$lt_save_CC" - - else - tagname="" - fi - ;; - - RC) - - -# Source file extension for RC test sources. -ac_ext=rc - -# Object file extension for compiled RC test sources. -objext=o -objext_RC=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' - -# Code to be used in simple link tests -lt_simple_link_test_code="$lt_simple_compile_test_code" - -# ltmain only uses $CC for tagged configurations so make sure $CC is set. - -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} - -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} - -# Allow CC to be a program name with arguments. -compiler=$CC - - -# save warnings/boilerplate of simple test code -ac_outfile=conftest.$ac_objext -echo "$lt_simple_compile_test_code" >conftest.$ac_ext -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_compiler_boilerplate=`cat conftest.err` -$rm conftest* - -ac_outfile=conftest.$ac_objext -echo "$lt_simple_link_test_code" >conftest.$ac_ext -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_linker_boilerplate=`cat conftest.err` -$rm -r conftest* - - -# Allow CC to be a program name with arguments. -lt_save_CC="$CC" -CC=${RC-"windres"} -compiler=$CC -compiler_RC=$CC -for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` - -lt_cv_prog_compiler_c_o_RC=yes - -# The else clause should only fire when bootstrapping the -# libtool distribution, otherwise you forgot to ship ltmain.sh -# with your package, and you will get complaints that there are -# no rules to generate ltmain.sh. -if test -f "$ltmain"; then - # See if we are running on zsh, and set the options which allow our commands through - # without removal of \ escapes. - if test -n "${ZSH_VERSION+set}" ; then - setopt NO_GLOB_SUBST - fi - # Now quote all the things that may contain metacharacters while being - # careful not to overquote the AC_SUBSTed values. We take copies of the - # variables and quote the copies for generation of the libtool script. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ - SED SHELL STRIP \ - libname_spec library_names_spec soname_spec extract_expsyms_cmds \ - old_striplib striplib file_magic_cmd finish_cmds finish_eval \ - deplibs_check_method reload_flag reload_cmds need_locks \ - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ - lt_cv_sys_global_symbol_to_c_name_address \ - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ - old_postinstall_cmds old_postuninstall_cmds \ - compiler_RC \ - CC_RC \ - LD_RC \ - lt_prog_compiler_wl_RC \ - lt_prog_compiler_pic_RC \ - lt_prog_compiler_static_RC \ - lt_prog_compiler_no_builtin_flag_RC \ - export_dynamic_flag_spec_RC \ - thread_safe_flag_spec_RC \ - whole_archive_flag_spec_RC \ - enable_shared_with_static_runtimes_RC \ - old_archive_cmds_RC \ - old_archive_from_new_cmds_RC \ - predep_objects_RC \ - postdep_objects_RC \ - predeps_RC \ - postdeps_RC \ - compiler_lib_search_path_RC \ - compiler_lib_search_dirs_RC \ - archive_cmds_RC \ - archive_expsym_cmds_RC \ - postinstall_cmds_RC \ - postuninstall_cmds_RC \ - old_archive_from_expsyms_cmds_RC \ - allow_undefined_flag_RC \ - no_undefined_flag_RC \ - export_symbols_cmds_RC \ - hardcode_libdir_flag_spec_RC \ - hardcode_libdir_flag_spec_ld_RC \ - hardcode_libdir_separator_RC \ - hardcode_automatic_RC \ - module_cmds_RC \ - module_expsym_cmds_RC \ - lt_cv_prog_compiler_c_o_RC \ - fix_srcfile_path_RC \ - exclude_expsyms_RC \ - include_expsyms_RC; do - - case $var in - old_archive_cmds_RC | \ - old_archive_from_new_cmds_RC | \ - archive_cmds_RC | \ - archive_expsym_cmds_RC | \ - module_cmds_RC | \ - module_expsym_cmds_RC | \ - old_archive_from_expsyms_cmds_RC | \ - export_symbols_cmds_RC | \ - extract_expsyms_cmds | reload_cmds | finish_cmds | \ - postinstall_cmds | postuninstall_cmds | \ - old_postinstall_cmds | old_postuninstall_cmds | \ - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) - # Double-quote double-evaled strings. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" - ;; - *) - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" - ;; - esac - done - - case $lt_echo in - *'\$0 --fallback-echo"') - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` - ;; - esac - -cfgfile="$ofile" - - cat <<__EOF__ >> "$cfgfile" -# ### BEGIN LIBTOOL TAG CONFIG: $tagname - -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: - -# Shell to use when invoking shell scripts. -SHELL=$lt_SHELL - -# Whether or not to build shared libraries. -build_libtool_libs=$enable_shared - -# Whether or not to build static libraries. -build_old_libs=$enable_static - -# Whether or not to add -lc for building shared libraries. -build_libtool_need_lc=$archive_cmds_need_lc_RC - -# Whether or not to disallow shared libs when runtime libs are static -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC - -# Whether or not to optimize for fast installation. -fast_install=$enable_fast_install - -# The host system. -host_alias=$host_alias -host=$host -host_os=$host_os - -# The build system. -build_alias=$build_alias -build=$build -build_os=$build_os - -# An echo program that does not interpret backslashes. -echo=$lt_echo - -# The archiver. -AR=$lt_AR -AR_FLAGS=$lt_AR_FLAGS - -# A C compiler. -LTCC=$lt_LTCC - -# LTCC compiler flags. -LTCFLAGS=$lt_LTCFLAGS - -# A language-specific compiler. -CC=$lt_compiler_RC - -# Is the compiler the GNU C compiler? -with_gcc=$GCC_RC - -# An ERE matcher. -EGREP=$lt_EGREP - -# The linker used to build libraries. -LD=$lt_LD_RC - -# Whether we need hard or soft links. -LN_S=$lt_LN_S - -# A BSD-compatible nm program. -NM=$lt_NM - -# A symbol stripping program -STRIP=$lt_STRIP - -# Used to examine libraries when file_magic_cmd begins "file" -MAGIC_CMD=$MAGIC_CMD - -# Used on cygwin: DLL creation program. -DLLTOOL="$DLLTOOL" - -# Used on cygwin: object dumper. -OBJDUMP="$OBJDUMP" - -# Used on cygwin: assembler. -AS="$AS" - -# The name of the directory that contains temporary libtool files. -objdir=$objdir - -# How to create reloadable object files. -reload_flag=$lt_reload_flag -reload_cmds=$lt_reload_cmds - -# How to pass a linker flag through the compiler. -wl=$lt_lt_prog_compiler_wl_RC - -# Object file suffix (normally "o"). -objext="$ac_objext" - -# Old archive suffix (normally "a"). -libext="$libext" - -# Shared library suffix (normally ".so"). -shrext_cmds='$shrext_cmds' - -# Executable file suffix (normally ""). -exeext="$exeext" - -# Additional compiler flags for building library objects. -pic_flag=$lt_lt_prog_compiler_pic_RC -pic_mode=$pic_mode - -# What is the maximum length of a command? -max_cmd_len=$lt_cv_sys_max_cmd_len - -# Does compiler simultaneously support -c and -o options? -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC - -# Must we lock files when doing compilation? -need_locks=$lt_need_locks - -# Do we need the lib prefix for modules? -need_lib_prefix=$need_lib_prefix - -# Do we need a version for libraries? -need_version=$need_version - -# Whether dlopen is supported. -dlopen_support=$enable_dlopen - -# Whether dlopen of programs is supported. -dlopen_self=$enable_dlopen_self - -# Whether dlopen of statically linked programs is supported. -dlopen_self_static=$enable_dlopen_self_static - -# Compiler flag to prevent dynamic linking. -link_static_flag=$lt_lt_prog_compiler_static_RC - -# Compiler flag to turn off builtin functions. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC - -# Compiler flag to allow reflexive dlopens. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC - -# Compiler flag to generate shared objects directly from archives. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC - -# Compiler flag to generate thread-safe objects. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC - -# Library versioning type. -version_type=$version_type - -# Format of library name prefix. -libname_spec=$lt_libname_spec - -# List of archive names. First name is the real one, the rest are links. -# The last name is the one that the linker finds with -lNAME. -library_names_spec=$lt_library_names_spec - -# The coded name of the library, if different from the real name. -soname_spec=$lt_soname_spec - -# Commands used to build and install an old-style archive. -RANLIB=$lt_RANLIB -old_archive_cmds=$lt_old_archive_cmds_RC -old_postinstall_cmds=$lt_old_postinstall_cmds -old_postuninstall_cmds=$lt_old_postuninstall_cmds - -# Create an old-style archive from a shared archive. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC - -# Create a temporary old-style archive to link instead of a shared archive. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC - -# Commands used to build and install a shared archive. -archive_cmds=$lt_archive_cmds_RC -archive_expsym_cmds=$lt_archive_expsym_cmds_RC -postinstall_cmds=$lt_postinstall_cmds -postuninstall_cmds=$lt_postuninstall_cmds - -# Commands used to build a loadable module (assumed same as above if empty) -module_cmds=$lt_module_cmds_RC -module_expsym_cmds=$lt_module_expsym_cmds_RC - -# Commands to strip libraries. -old_striplib=$lt_old_striplib -striplib=$lt_striplib - -# Dependencies to place before the objects being linked to create a -# shared library. -predep_objects=$lt_predep_objects_RC - -# Dependencies to place after the objects being linked to create a -# shared library. -postdep_objects=$lt_postdep_objects_RC - -# Dependencies to place before the objects being linked to create a -# shared library. -predeps=$lt_predeps_RC - -# Dependencies to place after the objects being linked to create a -# shared library. -postdeps=$lt_postdeps_RC - -# The directories searched by this compiler when creating a shared -# library -compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC - -# The library search path used internally by the compiler when linking -# a shared library. -compiler_lib_search_path=$lt_compiler_lib_search_path_RC - -# Method to check whether dependent libraries are shared objects. -deplibs_check_method=$lt_deplibs_check_method - -# Command to use when deplibs_check_method == file_magic. -file_magic_cmd=$lt_file_magic_cmd - -# Flag that allows shared libraries with undefined symbols to be built. -allow_undefined_flag=$lt_allow_undefined_flag_RC - -# Flag that forces no undefined symbols. -no_undefined_flag=$lt_no_undefined_flag_RC - -# Commands used to finish a libtool library installation in a directory. -finish_cmds=$lt_finish_cmds - -# Same as above, but a single script fragment to be evaled but not shown. -finish_eval=$lt_finish_eval - -# Take the output of nm and produce a listing of raw symbols and C names. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe - -# Transform the output of nm in a proper C declaration -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl - -# Transform the output of nm in a C name address pair -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address - -# This is the shared library runtime path variable. -runpath_var=$runpath_var - -# This is the shared library path variable. -shlibpath_var=$shlibpath_var - -# Is shlibpath searched before the hard-coded library search path? -shlibpath_overrides_runpath=$shlibpath_overrides_runpath - -# How to hardcode a shared library path into an executable. -hardcode_action=$hardcode_action_RC - -# Whether we should hardcode library paths into libraries. -hardcode_into_libs=$hardcode_into_libs - -# Flag to hardcode \$libdir into a binary during linking. -# This must work even if \$libdir does not exist. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC - -# If ld is used when linking, flag to hardcode \$libdir into -# a binary during linking. This must work even if \$libdir does -# not exist. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC - -# Whether we need a single -rpath flag with a separated argument. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC - -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the -# resulting binary. -hardcode_direct=$hardcode_direct_RC - -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the -# resulting binary. -hardcode_minus_L=$hardcode_minus_L_RC - -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into -# the resulting binary. -hardcode_shlibpath_var=$hardcode_shlibpath_var_RC - -# Set to yes if building a shared library automatically hardcodes DIR into the library -# and all subsequent libraries and executables linked against it. -hardcode_automatic=$hardcode_automatic_RC - -# Variables whose values should be saved in libtool wrapper scripts and -# restored at relink time. -variables_saved_for_relink="$variables_saved_for_relink" - -# Whether libtool must link a program against all its dependency libraries. -link_all_deplibs=$link_all_deplibs_RC - -# Compile-time system search path for libraries -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec - -# Run-time system search path for libraries -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec - -# Fix the shell variable \$srcfile for the compiler. -fix_srcfile_path=$lt_fix_srcfile_path - -# Set to yes if exported symbols are required. -always_export_symbols=$always_export_symbols_RC - -# The commands to list exported symbols. -export_symbols_cmds=$lt_export_symbols_cmds_RC - -# The commands to extract the exported symbol list from a shared archive. -extract_expsyms_cmds=$lt_extract_expsyms_cmds - -# Symbols that should not be listed in the preloaded symbols. -exclude_expsyms=$lt_exclude_expsyms_RC - -# Symbols that must always be exported. -include_expsyms=$lt_include_expsyms_RC - -# ### END LIBTOOL TAG CONFIG: $tagname - -__EOF__ - - -else - # If there is no Makefile yet, we rely on a make rule to execute - # `config.status --recheck' to rerun these tests and create the - # libtool script then. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` - if test -f "$ltmain_in"; then - test -f Makefile && make "$ltmain" - fi -fi - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -CC="$lt_save_CC" - - ;; - - *) - { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 -echo "$as_me: error: Unsupported tag name: $tagname" >&2;} - { (exit 1); exit 1; }; } - ;; - esac - - # Append the new tag name to the list of available tags. - if test -n "$tagname" ; then - available_tags="$available_tags $tagname" - fi - fi - done - IFS="$lt_save_ifs" - - # Now substitute the updated list of available tags. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then - mv "${ofile}T" "$ofile" - chmod +x "$ofile" - else - rm -f "${ofile}T" - { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 -echo "$as_me: error: unable to update list of available tagged configurations." >&2;} - { (exit 1); exit 1; }; } - fi -fi - - - -# This can be used to rebuild libtool when needed -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" - -# Always use our own libtool. -LIBTOOL='$(SHELL) $(top_builddir)/libtool' - -# Prevent multiple expansion - - - - - - - - - - - - - - - - - - - - -ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - - - -echo "------------------------------------------------------------------" -echo "4. Section: Libraries" -echo "------------------------------------------------------------------" - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -{ echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5 -echo $ECHO_N "checking for library containing inet_ntoa... $ECHO_C" >&6; } -if test "${ac_cv_search_inet_ntoa+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_func_search_save_LIBS=$LIBS -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char inet_ntoa (); -int -main () -{ -return inet_ntoa (); - ; - return 0; -} -_ACEOF -for ac_lib in '' socket nsl; do - if test -z "$ac_lib"; then - ac_res="none required" - else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - fi - rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_search_inet_ntoa=$ac_res -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext - if test "${ac_cv_search_inet_ntoa+set}" = set; then - break -fi -done -if test "${ac_cv_search_inet_ntoa+set}" = set; then - : -else - ac_cv_search_inet_ntoa=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5 -echo "${ECHO_T}$ac_cv_search_inet_ntoa" >&6; } -ac_res=$ac_cv_search_inet_ntoa -if test "$ac_res" != no; then - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - -else - { { echo "$as_me:$LINENO: error: *** required inet_ntoa() function not found! ***" >&5 -echo "$as_me: error: *** required inet_ntoa() function not found! ***" >&2;} - { (exit 1); exit 1; }; } -fi - -{ echo "$as_me:$LINENO: checking for library containing nanosleep" >&5 -echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; } -if test "${ac_cv_search_nanosleep+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_func_search_save_LIBS=$LIBS -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char nanosleep (); -int -main () -{ -return nanosleep (); - ; - return 0; -} -_ACEOF -for ac_lib in '' rt posix4; do - if test -z "$ac_lib"; then - ac_res="none required" - else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - fi - rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_search_nanosleep=$ac_res -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext - if test "${ac_cv_search_nanosleep+set}" = set; then - break -fi -done -if test "${ac_cv_search_nanosleep+set}" = set; then - : -else - ac_cv_search_nanosleep=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5 -echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; } -ac_res=$ac_cv_search_nanosleep -if test "$ac_res" != no; then - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - -fi - -{ echo "$as_me:$LINENO: checking for library containing sched_setscheduler" >&5 -echo $ECHO_N "checking for library containing sched_setscheduler... $ECHO_C" >&6; } -if test "${ac_cv_search_sched_setscheduler+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_func_search_save_LIBS=$LIBS -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char sched_setscheduler (); -int -main () -{ -return sched_setscheduler (); - ; - return 0; -} -_ACEOF -for ac_lib in '' rt posix4; do - if test -z "$ac_lib"; then - ac_res="none required" - else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - fi - rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_search_sched_setscheduler=$ac_res -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext - if test "${ac_cv_search_sched_setscheduler+set}" = set; then - break -fi -done -if test "${ac_cv_search_sched_setscheduler+set}" = set; then - : -else - ac_cv_search_sched_setscheduler=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_search_sched_setscheduler" >&5 -echo "${ECHO_T}$ac_cv_search_sched_setscheduler" >&6; } -ac_res=$ac_cv_search_sched_setscheduler -if test "$ac_res" != no; then - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - -fi - -{ echo "$as_me:$LINENO: checking for library containing socket" >&5 -echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; } -if test "${ac_cv_search_socket+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_func_search_save_LIBS=$LIBS -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char socket (); -int -main () -{ -return socket (); - ; - return 0; -} -_ACEOF -for ac_lib in '' socket nsl; do - if test -z "$ac_lib"; then - ac_res="none required" - else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - fi - rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_search_socket=$ac_res -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext - if test "${ac_cv_search_socket+set}" = set; then - break -fi -done -if test "${ac_cv_search_socket+set}" = set; then - : -else - ac_cv_search_socket=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5 -echo "${ECHO_T}$ac_cv_search_socket" >&6; } -ac_res=$ac_cv_search_socket -if test "$ac_res" != no; then - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - -else - { { echo "$as_me:$LINENO: error: *** required socket() function not found! ***" >&5 -echo "$as_me: error: *** required socket() function not found! ***" >&2;} - { (exit 1); exit 1; }; } -fi - -{ echo "$as_me:$LINENO: checking for library containing sin" >&5 -echo $ECHO_N "checking for library containing sin... $ECHO_C" >&6; } -if test "${ac_cv_search_sin+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_func_search_save_LIBS=$LIBS -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char sin (); -int -main () -{ -return sin (); - ; - return 0; -} -_ACEOF -for ac_lib in '' m; do - if test -z "$ac_lib"; then - ac_res="none required" - else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - fi - rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_search_sin=$ac_res -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext - if test "${ac_cv_search_sin+set}" = set; then - break -fi -done -if test "${ac_cv_search_sin+set}" = set; then - : -else - ac_cv_search_sin=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_search_sin" >&5 -echo "${ECHO_T}$ac_cv_search_sin" >&6; } -ac_res=$ac_cv_search_sin -if test "$ac_res" != no; then - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - -else - { { echo "$as_me:$LINENO: error: *** required sin() function not found! ***" >&5 -echo "$as_me: error: *** required sin() function not found! ***" >&2;} - { (exit 1); exit 1; }; } -fi - -{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5 -echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } -if test "${ac_cv_search_dlopen+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_func_search_save_LIBS=$LIBS -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char dlopen (); -int -main () -{ -return dlopen (); - ; - return 0; -} -_ACEOF -for ac_lib in '' dl; do - if test -z "$ac_lib"; then - ac_res="none required" - else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - fi - rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_search_dlopen=$ac_res -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext - if test "${ac_cv_search_dlopen+set}" = set; then - break -fi -done -if test "${ac_cv_search_dlopen+set}" = set; then - : -else - ac_cv_search_dlopen=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 -echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } -ac_res=$ac_cv_search_dlopen -if test "$ac_res" != no; then - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - -else - { { echo "$as_me:$LINENO: error: *** required dlopen() function not found! ***" >&5 -echo "$as_me: error: *** required dlopen() function not found! ***" >&2;} - { (exit 1); exit 1; }; } -fi - -ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - - - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -{ echo "$as_me:$LINENO: checking for main in -lncurses" >&5 -echo $ECHO_N "checking for main in -lncurses... $ECHO_C" >&6; } -if test "${ac_cv_lib_ncurses_main+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lncurses $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - - -int -main () -{ -return main (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_ncurses_main=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_ncurses_main=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_main" >&5 -echo "${ECHO_T}$ac_cv_lib_ncurses_main" >&6; } -if test $ac_cv_lib_ncurses_main = yes; then - termcap_library=ncurses -else - { echo "$as_me:$LINENO: checking for main in -ltermcap" >&5 -echo $ECHO_N "checking for main in -ltermcap... $ECHO_C" >&6; } -if test "${ac_cv_lib_termcap_main+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ltermcap $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - - -int -main () -{ -return main (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_termcap_main=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_termcap_main=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_main" >&5 -echo "${ECHO_T}$ac_cv_lib_termcap_main" >&6; } -if test $ac_cv_lib_termcap_main = yes; then - termcap_library=termcap -else - termcap_library=none -fi - -fi - - -# Check whether --enable-ncurses was given. -if test "${enable_ncurses+set}" = set; then - enableval=$enable_ncurses; - case "$enableval" in - y | yes) - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - termcap_library=ncurses - ;; - - n | no) - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - termcap_library=none - ;; - - *) - { { echo "$as_me:$LINENO: error: Invalid parameter value for --enable-ncurses: $enableval" >&5 -echo "$as_me: error: Invalid parameter value for --enable-ncurses: $enableval" >&2;} - { (exit 1); exit 1; }; } - ;; - esac - -fi - - - - -if test $termcap_library = ncurses; then - ECA_AM_USE_NCURSES_TRUE= - ECA_AM_USE_NCURSES_FALSE='#' -else - ECA_AM_USE_NCURSES_TRUE='#' - ECA_AM_USE_NCURSES_FALSE= -fi - - - -if test $termcap_library = termcap; then - ECA_AM_USE_TERMCAP_TRUE= - ECA_AM_USE_TERMCAP_FALSE='#' -else - ECA_AM_USE_TERMCAP_TRUE='#' - ECA_AM_USE_TERMCAP_FALSE= -fi - - -if test x$termcap_library = xtermcap; then - if test "${ac_cv_header_curses_h+set}" = set; then - { echo "$as_me:$LINENO: checking for curses.h" >&5 -echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; } -if test "${ac_cv_header_curses_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5 -echo "${ECHO_T}$ac_cv_header_curses_h" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking curses.h usability" >&5 -echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_compiler=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } - -# Is the header present? -{ echo "$as_me:$LINENO: checking curses.h presence" >&5 -echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_preproc=no -fi - -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;} - - ;; -esac -{ echo "$as_me:$LINENO: checking for curses.h" >&5 -echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; } -if test "${ac_cv_header_curses_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_curses_h=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5 -echo "${ECHO_T}$ac_cv_header_curses_h" >&6; } - -fi -if test $ac_cv_header_curses_h = yes; then - -cat >>confdefs.h <<\_ACEOF -#define ECA_USE_CURSES_H 1 -_ACEOF - -else - { { echo "$as_me:$LINENO: error: *** curses.h not found! Try with \"./configure --disable-ncurses\". ***" >&5 -echo "$as_me: error: *** curses.h not found! Try with \"./configure --disable-ncurses\". ***" >&2;} - { (exit 1); exit 1; }; } -fi - - -fi - -if test x$termcap_library = xncurses; then - if test "${ac_cv_header_ncurses_ncurses_h+set}" = set; then - { echo "$as_me:$LINENO: checking for ncurses/ncurses.h" >&5 -echo $ECHO_N "checking for ncurses/ncurses.h... $ECHO_C" >&6; } -if test "${ac_cv_header_ncurses_ncurses_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_ncurses_ncurses_h" >&5 -echo "${ECHO_T}$ac_cv_header_ncurses_ncurses_h" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking ncurses/ncurses.h usability" >&5 -echo $ECHO_N "checking ncurses/ncurses.h usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_compiler=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } - -# Is the header present? -{ echo "$as_me:$LINENO: checking ncurses/ncurses.h presence" >&5 -echo $ECHO_N "checking ncurses/ncurses.h presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_preproc=no -fi - -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: ncurses/ncurses.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: ncurses/ncurses.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: ncurses/ncurses.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: ncurses/ncurses.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: ncurses/ncurses.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: ncurses/ncurses.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: ncurses/ncurses.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: ncurses/ncurses.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: ncurses/ncurses.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: ncurses/ncurses.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: ncurses/ncurses.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: ncurses/ncurses.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: ncurses/ncurses.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: ncurses/ncurses.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: ncurses/ncurses.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: ncurses/ncurses.h: in the future, the compiler will take precedence" >&2;} - - ;; -esac -{ echo "$as_me:$LINENO: checking for ncurses/ncurses.h" >&5 -echo $ECHO_N "checking for ncurses/ncurses.h... $ECHO_C" >&6; } -if test "${ac_cv_header_ncurses_ncurses_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_ncurses_ncurses_h=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_ncurses_ncurses_h" >&5 -echo "${ECHO_T}$ac_cv_header_ncurses_ncurses_h" >&6; } - -fi -if test $ac_cv_header_ncurses_ncurses_h = yes; then - -cat >>confdefs.h <<\_ACEOF -#define ECA_USE_NCURSES_NCURSES_H 1 -_ACEOF - -else - - if test "${ac_cv_header_ncurses_h+set}" = set; then - { echo "$as_me:$LINENO: checking for ncurses.h" >&5 -echo $ECHO_N "checking for ncurses.h... $ECHO_C" >&6; } -if test "${ac_cv_header_ncurses_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_ncurses_h" >&5 -echo "${ECHO_T}$ac_cv_header_ncurses_h" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking ncurses.h usability" >&5 -echo $ECHO_N "checking ncurses.h usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_compiler=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } - -# Is the header present? -{ echo "$as_me:$LINENO: checking ncurses.h presence" >&5 -echo $ECHO_N "checking ncurses.h presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_preproc=no -fi - -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: ncurses.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: ncurses.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: ncurses.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: ncurses.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: ncurses.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: ncurses.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: ncurses.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: ncurses.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: ncurses.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: ncurses.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: ncurses.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: ncurses.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: ncurses.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: ncurses.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: ncurses.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: ncurses.h: in the future, the compiler will take precedence" >&2;} - - ;; -esac -{ echo "$as_me:$LINENO: checking for ncurses.h" >&5 -echo $ECHO_N "checking for ncurses.h... $ECHO_C" >&6; } -if test "${ac_cv_header_ncurses_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_ncurses_h=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_ncurses_h" >&5 -echo "${ECHO_T}$ac_cv_header_ncurses_h" >&6; } - -fi -if test $ac_cv_header_ncurses_h = yes; then - -cat >>confdefs.h <<\_ACEOF -#define ECA_USE_NCURSES_H 1 -_ACEOF - -else - { { echo "$as_me:$LINENO: error: *** Neither ncurses.h or ncurses/ncurses.h found! Try with \"./configure --disable-ncurses\". ***" >&5 -echo "$as_me: error: *** Neither ncurses.h or ncurses/ncurses.h found! Try with \"./configure --disable-ncurses\". ***" >&2;} - { (exit 1); exit 1; }; } -fi - - - -fi - - -fi - -if test $termcap_library = xnone ; then - eca_platform_curses_support=no -fi - -ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - - - -{ echo "$as_me:$LINENO: checking for main in -laudiofile" >&5 -echo $ECHO_N "checking for main in -laudiofile... $ECHO_C" >&6; } -if test "${ac_cv_lib_audiofile_main+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-laudiofile $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - - -int -main () -{ -return main (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_audiofile_main=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_audiofile_main=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_audiofile_main" >&5 -echo "${ECHO_T}$ac_cv_lib_audiofile_main" >&6; } -if test $ac_cv_lib_audiofile_main = yes; then - af_support=yes -else - af_support=no -fi - -# Check whether --enable-audiofile was given. -if test "${enable_audiofile+set}" = set; then - enableval=$enable_audiofile; - case "$enableval" in - y | yes) - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - af_support=yes - ;; - - n | no) - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - af_support=no - ;; - - *) - { { echo "$as_me:$LINENO: error: Invalid parameter value for --enable-audiofile: $enableval" >&5 -echo "$as_me: error: Invalid parameter value for --enable-audiofile: $enableval" >&2;} - { (exit 1); exit 1; }; } - ;; - esac - - -fi - - - -if test x$af_support = xyes; then - ECA_AM_COMPILE_AUDIOFILE_TRUE= - ECA_AM_COMPILE_AUDIOFILE_FALSE='#' -else - ECA_AM_COMPILE_AUDIOFILE_TRUE='#' - ECA_AM_COMPILE_AUDIOFILE_FALSE= -fi - - -if test x$af_support = xyes; then - ECA_S_EXTRA_LIBS="${ECA_S_EXTRA_LIBS} -laudiofile" - -cat >>confdefs.h <<\_ACEOF -#define ECA_COMPILE_AUDIOFILE 1 -_ACEOF - -fi - - -{ echo "$as_me:$LINENO: checking for main in -lsndfile" >&5 -echo $ECHO_N "checking for main in -lsndfile... $ECHO_C" >&6; } -if test "${ac_cv_lib_sndfile_main+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lsndfile $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - - -int -main () -{ -return main (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_sndfile_main=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_sndfile_main=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_sndfile_main" >&5 -echo "${ECHO_T}$ac_cv_lib_sndfile_main" >&6; } -if test $ac_cv_lib_sndfile_main = yes; then - sndfile_support=yes -else - sndfile_support=no -fi - -# Check whether --enable-sndfile was given. -if test "${enable_sndfile+set}" = set; then - enableval=$enable_sndfile; - case "$enableval" in - y | yes) - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - sndfile_support=yes - ;; - - n | no) - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - sndfile_support=no - ;; - - *) - { { echo "$as_me:$LINENO: error: Invalid parameter value for --enable-sndfile: $enableval" >&5 -echo "$as_me: error: Invalid parameter value for --enable-sndfile: $enableval" >&2;} - { (exit 1); exit 1; }; } - ;; - esac - - -fi - - -if test x$sndfile_support = xyes; then - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - #include -int -main () -{ - - SF_INFO sfinfo; - sfinfo.frames = 0; - return 0; - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - /bin/true -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - - sndfile_support=no - { echo "$as_me:$LINENO: WARNING: Found an old version of libsndfile. Libsndfile 1.0.0 or newer is required." >&5 -echo "$as_me: WARNING: Found an old version of libsndfile. Libsndfile 1.0.0 or newer is required." >&2;} - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - -fi - - - -if test x$sndfile_support = xyes; then - ECA_AM_COMPILE_SNDFILE_TRUE= - ECA_AM_COMPILE_SNDFILE_FALSE='#' -else - ECA_AM_COMPILE_SNDFILE_TRUE='#' - ECA_AM_COMPILE_SNDFILE_FALSE= -fi - - -if test x$sndfile_support = xyes; then - ECA_S_EXTRA_LIBS="${ECA_S_EXTRA_LIBS} -lsndfile" - -cat >>confdefs.h <<\_ACEOF -#define ECA_COMPILE_SNDFILE 1 -_ACEOF - -fi - - - -# Check whether --enable-alsa was given. -if test "${enable_alsa+set}" = set; then - enableval=$enable_alsa; - case "$enableval" in - y | yes) - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - alsa_support=yes - ;; - - n | no) - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - alsa_support=no - ;; - - *) - { { echo "$as_me:$LINENO: error: Invalid parameter value for --enable-alsa: $enableval" >&5 -echo "$as_me: error: Invalid parameter value for --enable-alsa: $enableval" >&2;} - { (exit 1); exit 1; }; } - ;; - esac - -fi - -if test x$alsa_support = x; then - { echo "$as_me:$LINENO: checking for snd_pcm_delay in -lasound" >&5 -echo $ECHO_N "checking for snd_pcm_delay in -lasound... $ECHO_C" >&6; } -if test "${ac_cv_lib_asound_snd_pcm_delay+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lasound $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char snd_pcm_delay (); -int -main () -{ -return snd_pcm_delay (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_asound_snd_pcm_delay=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_asound_snd_pcm_delay=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_delay" >&5 -echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_delay" >&6; } -if test $ac_cv_lib_asound_snd_pcm_delay = yes; then - alsa_support=yes -else - - alsa_support=no - { echo "$as_me:$LINENO: WARNING: ALSA version older than 0.9.0 not supported - update to a newer version or compile with --disable-alsa" >&5 -echo "$as_me: WARNING: ALSA version older than 0.9.0 not supported - update to a newer version or compile with --disable-alsa" >&2;} - -fi - -fi - - - -if test x$alsa_support = xyes; then - ECA_AM_COMPILE_ALSA_TRUE= - ECA_AM_COMPILE_ALSA_FALSE='#' -else - ECA_AM_COMPILE_ALSA_TRUE='#' - ECA_AM_COMPILE_ALSA_FALSE= -fi - - -if test x$alsa_support = xyes; then - ECA_S_EXTRA_LIBS="${ECA_S_EXTRA_LIBS} -lasound" - -cat >>confdefs.h <<\_ACEOF -#define ECA_COMPILE_ALSA 1 -_ACEOF - -fi - - - -if test "${ac_cv_header_jack_jack_h+set}" = set; then - { echo "$as_me:$LINENO: checking for jack/jack.h" >&5 -echo $ECHO_N "checking for jack/jack.h... $ECHO_C" >&6; } -if test "${ac_cv_header_jack_jack_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_jack_jack_h" >&5 -echo "${ECHO_T}$ac_cv_header_jack_jack_h" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking jack/jack.h usability" >&5 -echo $ECHO_N "checking jack/jack.h usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_compiler=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } - -# Is the header present? -{ echo "$as_me:$LINENO: checking jack/jack.h presence" >&5 -echo $ECHO_N "checking jack/jack.h presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_preproc=no -fi - -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: jack/jack.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: jack/jack.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: jack/jack.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: jack/jack.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: jack/jack.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: jack/jack.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: jack/jack.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: jack/jack.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: jack/jack.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: jack/jack.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: jack/jack.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: jack/jack.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: jack/jack.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: jack/jack.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: jack/jack.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: jack/jack.h: in the future, the compiler will take precedence" >&2;} - - ;; -esac -{ echo "$as_me:$LINENO: checking for jack/jack.h" >&5 -echo $ECHO_N "checking for jack/jack.h... $ECHO_C" >&6; } -if test "${ac_cv_header_jack_jack_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_jack_jack_h=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_jack_jack_h" >&5 -echo "${ECHO_T}$ac_cv_header_jack_jack_h" >&6; } - -fi -if test $ac_cv_header_jack_jack_h = yes; then - jack_support=yes -else - jack_support=no -fi - - - - -# Check whether --with-jack was given. -if test "${with_jack+set}" = set; then - withval=$with_jack; - ECA_S_JACK_LIBS="-L${withval}/lib" - ECA_S_JACK_INCLUDES="-I${withval}/include" - jack_support=yes - -fi - - -# Check whether --enable-jack was given. -if test "${enable_jack+set}" = set; then - enableval=$enable_jack; - case "$enableval" in - y | yes) - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - jack_support=yes - ;; - - n | no) - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - jack_support=no - ;; - - *) - { { echo "$as_me:$LINENO: error: Invalid parameter value for --enable-jack: $enableval" >&5 -echo "$as_me: error: Invalid parameter value for --enable-jack: $enableval" >&2;} - { (exit 1); exit 1; }; } - ;; - esac - -fi - - - - -if test x$jack_support = xyes; then - ECA_AM_COMPILE_JACK_TRUE= - ECA_AM_COMPILE_JACK_FALSE='#' -else - ECA_AM_COMPILE_JACK_TRUE='#' - ECA_AM_COMPILE_JACK_FALSE= -fi - - -if test x$jack_support = xyes; then - -cat >>confdefs.h <<\_ACEOF -#define ECA_COMPILE_JACK 1 -_ACEOF - - ECA_S_JACK_LIBS="${ECA_S_JACK_LIBS} -ljack" - case "$host" in - *darwin*) - AM_LDFLAGS="$AM_LDFLAGS -framework CoreAudio" - ;; - esac -fi - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -old_cppflags=$CPPFLAGS -old_ldflags=$LDFLAGS -old_INCLUDES=$INCLUDES -CPPFLAGS="$CPPFLAGS $ECA_S_JACK_INCLUDES" -LDFLAGS="$LDFLAGS $ECA_S_JACK_LIBS" -INCLUDES="--host=a.out-i386-linux" - -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - #include -int -main () -{ - - jack_position_t t; - int *a = (void*)&jack_transport_query; - int *b = (void*)&jack_transport_start; - int *c = (void*)&jack_transport_stop; - int *d = (void*)&jack_transport_locate; - t.frame = 0; - t.valid = 0; - return 0; - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ECA_JACK_TRANSPORT_API="3" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ECA_JACK_TRANSPORT_API="2" - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - #include -int -main () -{ - - jack_transport_info_t t; - t.state = 0; - return 0; - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ECA_JACK_TRANSPORT_API="1" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - true - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - -CPPFLAGS="$old_cppflags" -LDFLAGS="$old_ldflags" -INCLUDES="$old_INCLUDES" - -echo "Using JACK transport API version:" ${ECA_JACK_TRANSPORT_API} - -cat >>confdefs.h <<_ACEOF -#define ECA_JACK_TRANSPORT_API ${ECA_JACK_TRANSPORT_API} -_ACEOF - - - - - -ECA_S_EXTRA_CPPFLAGS="${ECA_S_EXTRA_CPPFLAGS} ${ECA_S_JACK_INCLUDES}" -ECA_S_EXTRA_LIBS="${ECA_S_EXTRA_LIBS} ${ECA_S_JACK_LIBS}" - - -{ echo "$as_me:$LINENO: checking for main in -lkvutils" >&5 -echo $ECHO_N "checking for main in -lkvutils... $ECHO_C" >&6; } -if test "${ac_cv_lib_kvutils_main+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lkvutils $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - - -int -main () -{ -return main (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_kvutils_main=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_kvutils_main=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_kvutils_main" >&5 -echo "${ECHO_T}$ac_cv_lib_kvutils_main" >&6; } -if test $ac_cv_lib_kvutils_main = yes; then - kvutils_installed=yes -else - kvutils_installed=no -fi - - - -if test x$kvutils_installed = xyes; then - ECA_AM_KVUTILS_INSTALLED_TRUE= - ECA_AM_KVUTILS_INSTALLED_FALSE='#' -else - ECA_AM_KVUTILS_INSTALLED_TRUE='#' - ECA_AM_KVUTILS_INSTALLED_FALSE= -fi - - - - -{ echo "$as_me:$LINENO: checking whether to build with system readline" >&5 -echo $ECHO_N "checking whether to build with system readline... $ECHO_C" >&6; } -# Check whether --enable-sys_readline was given. -if test "${enable_sys_readline+set}" = set; then - enableval=$enable_sys_readline; - case "$enableval" in - y | yes) - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - enable_sysreadline=yes - ;; - - n | no) - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - enable_sysreadline=no - ;; - - *) - { { echo "$as_me:$LINENO: error: Invalid parameter value for --enable-sys-readline: $enableval" >&5 -echo "$as_me: error: Invalid parameter value for --enable-sys-readline: $enableval" >&2;} - { (exit 1); exit 1; }; } - ;; - esac - -else - - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - enable_sysreadline=yes - - -fi - - - -if test x$enable_sysreadline = xyes; then - if test "${ac_cv_header_readline_h+set}" = set; then - { echo "$as_me:$LINENO: checking for readline.h" >&5 -echo $ECHO_N "checking for readline.h... $ECHO_C" >&6; } -if test "${ac_cv_header_readline_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5 -echo "${ECHO_T}$ac_cv_header_readline_h" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking readline.h usability" >&5 -echo $ECHO_N "checking readline.h usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_compiler=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } - -# Is the header present? -{ echo "$as_me:$LINENO: checking readline.h presence" >&5 -echo $ECHO_N "checking readline.h presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_preproc=no -fi - -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: readline.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: readline.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: readline.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: readline.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: readline.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: readline.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: readline.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: readline.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: readline.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: readline.h: in the future, the compiler will take precedence" >&2;} - - ;; -esac -{ echo "$as_me:$LINENO: checking for readline.h" >&5 -echo $ECHO_N "checking for readline.h... $ECHO_C" >&6; } -if test "${ac_cv_header_readline_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_readline_h=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5 -echo "${ECHO_T}$ac_cv_header_readline_h" >&6; } - -fi -if test $ac_cv_header_readline_h = yes; then - ECA_S_READLINE_INCLUDES=/usr/include -else - if test "${ac_cv_header_readline_readline_h+set}" = set; then - { echo "$as_me:$LINENO: checking for readline/readline.h" >&5 -echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6; } -if test "${ac_cv_header_readline_readline_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5 -echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking readline/readline.h usability" >&5 -echo $ECHO_N "checking readline/readline.h usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_compiler=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } - -# Is the header present? -{ echo "$as_me:$LINENO: checking readline/readline.h presence" >&5 -echo $ECHO_N "checking readline/readline.h presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_preproc=no -fi - -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: readline/readline.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: readline/readline.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: readline/readline.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: readline/readline.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: readline/readline.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: readline/readline.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: readline/readline.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: readline/readline.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: readline/readline.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: readline/readline.h: in the future, the compiler will take precedence" >&2;} - - ;; -esac -{ echo "$as_me:$LINENO: checking for readline/readline.h" >&5 -echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6; } -if test "${ac_cv_header_readline_readline_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_readline_readline_h=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5 -echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6; } - -fi -if test $ac_cv_header_readline_readline_h = yes; then - ECA_S_READLINE_INCLUDES=/usr/include/readline -else - - { echo "$as_me:$LINENO: WARNING: *** readline headers not installed ***" >&5 -echo "$as_me: WARNING: *** readline headers not installed ***" >&2;} - enable_sysreadline=no - -fi - - -fi - - - - if test "${ac_cv_header_history_h+set}" = set; then - { echo "$as_me:$LINENO: checking for history.h" >&5 -echo $ECHO_N "checking for history.h... $ECHO_C" >&6; } -if test "${ac_cv_header_history_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_history_h" >&5 -echo "${ECHO_T}$ac_cv_header_history_h" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking history.h usability" >&5 -echo $ECHO_N "checking history.h usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_compiler=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } - -# Is the header present? -{ echo "$as_me:$LINENO: checking history.h presence" >&5 -echo $ECHO_N "checking history.h presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_preproc=no -fi - -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: history.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: history.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: history.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: history.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: history.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: history.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: history.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: history.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: history.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: history.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: history.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: history.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: history.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: history.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: history.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: history.h: in the future, the compiler will take precedence" >&2;} - - ;; -esac -{ echo "$as_me:$LINENO: checking for history.h" >&5 -echo $ECHO_N "checking for history.h... $ECHO_C" >&6; } -if test "${ac_cv_header_history_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_history_h=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_history_h" >&5 -echo "${ECHO_T}$ac_cv_header_history_h" >&6; } - -fi -if test $ac_cv_header_history_h = yes; then - : -else - if test "${ac_cv_header_readline_history_h+set}" = set; then - { echo "$as_me:$LINENO: checking for readline/history.h" >&5 -echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6; } -if test "${ac_cv_header_readline_history_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5 -echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking readline/history.h usability" >&5 -echo $ECHO_N "checking readline/history.h usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_compiler=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } - -# Is the header present? -{ echo "$as_me:$LINENO: checking readline/history.h presence" >&5 -echo $ECHO_N "checking readline/history.h presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_preproc=no -fi - -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: readline/history.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: readline/history.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: readline/history.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: readline/history.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: readline/history.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: readline/history.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: readline/history.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: readline/history.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: readline/history.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: readline/history.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: readline/history.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: readline/history.h: in the future, the compiler will take precedence" >&2;} - - ;; -esac -{ echo "$as_me:$LINENO: checking for readline/history.h" >&5 -echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6; } -if test "${ac_cv_header_readline_history_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_readline_history_h=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5 -echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6; } - -fi -if test $ac_cv_header_readline_history_h = yes; then - : -else - - { echo "$as_me:$LINENO: WARNING: *** readline history headers not installed ***" >&5 -echo "$as_me: WARNING: *** readline history headers not installed ***" >&2;} - enable_sysreadline=no - -fi - - - -fi - - - - if test x${termcap_library} = xnone; then - readline_extra_libs=""; - else - readline_extra_libs="-l${termcap_library}" - fi - - { echo "$as_me:$LINENO: checking for main in -lreadline" >&5 -echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6; } -if test "${ac_cv_lib_readline_main+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lreadline ${readline_extra_libs} $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - - -int -main () -{ -return main (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_readline_main=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_readline_main=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5 -echo "${ECHO_T}$ac_cv_lib_readline_main" >&6; } -if test $ac_cv_lib_readline_main = yes; then - ECA_S_READLINE_LIBS="-lreadline" -else - - { echo "$as_me:$LINENO: WARNING: *** readline support not installed ***" >&5 -echo "$as_me: WARNING: *** readline support not installed ***" >&2;} - enable_sysreadline=no - -fi - - - { echo "$as_me:$LINENO: checking for main in -lhistory" >&5 -echo $ECHO_N "checking for main in -lhistory... $ECHO_C" >&6; } -if test "${ac_cv_lib_history_main+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lhistory ${readline_extra_libs} $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - - -int -main () -{ -return main (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_history_main=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_history_main=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_history_main" >&5 -echo "${ECHO_T}$ac_cv_lib_history_main" >&6; } -if test $ac_cv_lib_history_main = yes; then - ECA_S_READLINE_LIBS="${ECA_S_READLINE_LIBS} -lhistory" -else - - { echo "$as_me:$LINENO: WARNING: *** readline support not installed ***" >&5 -echo "$as_me: WARNING: *** readline support not installed ***" >&2;} - enable_sysreadline=no - -fi - - -else - ECA_S_READLINE_INCLUDES="" - ECA_S_READLINE_LIBS="" -fi - -# if no readline library is found, disable platform-curses toggle -if test $enable_sysreadline = no ; then - eca_platform_curses_support=no -fi - - - -if test x$enable_sysreadline = xyes; then - ECA_AM_SYSTEM_READLINE_TRUE= - ECA_AM_SYSTEM_READLINE_FALSE='#' -else - ECA_AM_SYSTEM_READLINE_TRUE='#' - ECA_AM_SYSTEM_READLINE_FALSE= -fi - - - - - - - - -if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. -set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_path_PKG_CONFIG+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $PKG_CONFIG in - [\\/]* | ?:[\\/]*) - ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - - ;; -esac -fi -PKG_CONFIG=$ac_cv_path_PKG_CONFIG -if test -n "$PKG_CONFIG"; then - { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 -echo "${ECHO_T}$PKG_CONFIG" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_path_PKG_CONFIG"; then - ac_pt_PKG_CONFIG=$PKG_CONFIG - # Extract the first word of "pkg-config", so it can be a program name with args. -set dummy pkg-config; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $ac_pt_PKG_CONFIG in - [\\/]* | ?:[\\/]*) - ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - - ;; -esac -fi -ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG -if test -n "$ac_pt_PKG_CONFIG"; then - { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 -echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_pt_PKG_CONFIG" = x; then - PKG_CONFIG="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - PKG_CONFIG=$ac_pt_PKG_CONFIG - fi -else - PKG_CONFIG="$ac_cv_path_PKG_CONFIG" -fi - -fi -if test -n "$PKG_CONFIG"; then - _pkg_min_version=0.9.0 - { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 -echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } - if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - PKG_CONFIG="" - fi - -fi - -pkg_failed=no -{ echo "$as_me:$LINENO: checking for LIBOIL" >&5 -echo $ECHO_N "checking for LIBOIL... $ECHO_C" >&6; } - -if test -n "$PKG_CONFIG"; then - if test -n "$LIBOIL_CFLAGS"; then - pkg_cv_LIBOIL_CFLAGS="$LIBOIL_CFLAGS" - else - if test -n "$PKG_CONFIG" && \ - { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"liboil-0.3\"") >&5 - ($PKG_CONFIG --exists --print-errors "liboil-0.3") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - pkg_cv_LIBOIL_CFLAGS=`$PKG_CONFIG --cflags "liboil-0.3" 2>/dev/null` -else - pkg_failed=yes -fi - fi -else - pkg_failed=untried -fi -if test -n "$PKG_CONFIG"; then - if test -n "$LIBOIL_LIBS"; then - pkg_cv_LIBOIL_LIBS="$LIBOIL_LIBS" - else - if test -n "$PKG_CONFIG" && \ - { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"liboil-0.3\"") >&5 - ($PKG_CONFIG --exists --print-errors "liboil-0.3") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - pkg_cv_LIBOIL_LIBS=`$PKG_CONFIG --libs "liboil-0.3" 2>/dev/null` -else - pkg_failed=yes -fi - fi -else - pkg_failed=untried -fi - - - -if test $pkg_failed = yes; then - -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then - _pkg_short_errors_supported=yes -else - _pkg_short_errors_supported=no -fi - if test $_pkg_short_errors_supported = yes; then - LIBOIL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "liboil-0.3"` - else - LIBOIL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "liboil-0.3"` - fi - # Put the nasty error message in config.log where it belongs - echo "$LIBOIL_PKG_ERRORS" >&5 - - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - HAVE_LIBOIL=no -elif test $pkg_failed = untried; then - HAVE_LIBOIL=no -else - LIBOIL_CFLAGS=$pkg_cv_LIBOIL_CFLAGS - LIBOIL_LIBS=$pkg_cv_LIBOIL_LIBS - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - HAVE_LIBOIL=yes -fi -{ echo "$as_me:$LINENO: checking whether to use liboil" >&5 -echo $ECHO_N "checking whether to use liboil... $ECHO_C" >&6; } -# Check whether --enable-liboil was given. -if test "${enable_liboil+set}" = set; then - enableval=$enable_liboil; - case "$enableval" in - y | yes) - if test "x${HAVE_LIBOIL}" = xyes ; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - enable_liboil=yes - else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - { echo "$as_me:$LINENO: WARNING: --enable-liboil given but liboil library not available" >&5 -echo "$as_me: WARNING: --enable-liboil given but liboil library not available" >&2;} - fi - ;; - - n | no) - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - enable_liboil=no - ;; - - *) - { { echo "$as_me:$LINENO: error: Invalid parameter value for --enable-liboil: $enableval" >&5 -echo "$as_me: error: Invalid parameter value for --enable-liboil: $enableval" >&2;} - { (exit 1); exit 1; }; } - ;; - esac - -else - - if test "x${HAVE_LIBOIL}" = xyes ; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - enable_liboil=yes - else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - { echo "$as_me:$LINENO: WARNING: disabling liboil as library devel files are not available" >&5 -echo "$as_me: WARNING: disabling liboil as library devel files are not available" >&2;} - fi - - -fi - - -if test "x${enable_liboil}" = "xyes" ; then - ECA_S_EXTRA_CPPFLAGS="${ECA_S_EXTRA_CPPFLAGS} ${LIBOIL_CFLAGS}" - ECA_S_EXTRA_LIBS="${ECA_S_EXTRA_LIBS} ${LIBOIL_LIBS}" - -cat >>confdefs.h <<\_ACEOF -#define ECA_USE_LIBOIL 1 -_ACEOF - -fi - - - - -pkg_failed=no -{ echo "$as_me:$LINENO: checking for LIBLO" >&5 -echo $ECHO_N "checking for LIBLO... $ECHO_C" >&6; } - -if test -n "$PKG_CONFIG"; then - if test -n "$LIBLO_CFLAGS"; then - pkg_cv_LIBLO_CFLAGS="$LIBLO_CFLAGS" - else - if test -n "$PKG_CONFIG" && \ - { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"liblo\"") >&5 - ($PKG_CONFIG --exists --print-errors "liblo") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - pkg_cv_LIBLO_CFLAGS=`$PKG_CONFIG --cflags "liblo" 2>/dev/null` -else - pkg_failed=yes -fi - fi -else - pkg_failed=untried -fi -if test -n "$PKG_CONFIG"; then - if test -n "$LIBLO_LIBS"; then - pkg_cv_LIBLO_LIBS="$LIBLO_LIBS" - else - if test -n "$PKG_CONFIG" && \ - { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"liblo\"") >&5 - ($PKG_CONFIG --exists --print-errors "liblo") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - pkg_cv_LIBLO_LIBS=`$PKG_CONFIG --libs "liblo" 2>/dev/null` -else - pkg_failed=yes -fi - fi -else - pkg_failed=untried -fi - - - -if test $pkg_failed = yes; then - -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then - _pkg_short_errors_supported=yes -else - _pkg_short_errors_supported=no -fi - if test $_pkg_short_errors_supported = yes; then - LIBLO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "liblo"` - else - LIBLO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "liblo"` - fi - # Put the nasty error message in config.log where it belongs - echo "$LIBLO_PKG_ERRORS" >&5 - - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - HAVE_LIBLO=no -elif test $pkg_failed = untried; then - HAVE_LIBLO=no -else - LIBLO_CFLAGS=$pkg_cv_LIBLO_CFLAGS - LIBLO_LIBS=$pkg_cv_LIBLO_LIBS - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - HAVE_LIBLO=yes -fi -{ echo "$as_me:$LINENO: checking whether to use liblo for OSC support" >&5 -echo $ECHO_N "checking whether to use liblo for OSC support... $ECHO_C" >&6; } -# Check whether --enable-liblo was given. -if test "${enable_liblo+set}" = set; then - enableval=$enable_liblo; - case "$enableval" in - y | yes) - if test "x${HAVE_LIBLO}" = xyes ; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - enable_liblo=yes - else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - { echo "$as_me:$LINENO: WARNING: --enable-liblo given but liblo library not available" >&5 -echo "$as_me: WARNING: --enable-liblo given but liblo library not available" >&2;} - fi - ;; - - n | no) - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - enable_liblo=no - ;; - - *) - { { echo "$as_me:$LINENO: error: Invalid parameter value for --enable-liblo: $enableval" >&5 -echo "$as_me: error: Invalid parameter value for --enable-liblo: $enableval" >&2;} - { (exit 1); exit 1; }; } - ;; - esac - -else - - enable_liblo=${HAVE_LIBLO} - { echo "$as_me:$LINENO: result: ${enable_liblo}" >&5 -echo "${ECHO_T}${enable_liblo}" >&6; } - - -fi - - -if test "x${enable_liblo}" = "xyes" ; then - ECA_S_EXTRA_CPPFLAGS="${ECA_S_EXTRA_CPPFLAGS} ${LIBLO_CFLAGS}" - ECA_S_EXTRA_LIBS="${ECA_S_EXTRA_LIBS} ${LIBLO_LIBS}" - -cat >>confdefs.h <<\_ACEOF -#define ECA_USE_LIBLO 1 -_ACEOF - -fi - - - - - - -echo "------------------------------------------------------------------" -echo "5. Section: Headers" -echo "------------------------------------------------------------------" - - -{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 -echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } -if test "${ac_cv_header_time+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -#include - -int -main () -{ -if ((struct tm *) 0) -return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_header_time=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_header_time=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 -echo "${ECHO_T}$ac_cv_header_time" >&6; } -if test $ac_cv_header_time = yes; then - -cat >>confdefs.h <<\_ACEOF -#define TIME_WITH_SYS_TIME 1 -_ACEOF - -fi - - - - - - - - - - - - - - -for ac_header in dlfcn.h errno.h fcntl.h regex.h signal.h unistd.h sys/poll.h sys/stat.h sys/socket.h sys/time.h sys/types.h sys/wait.h sys/select.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_compiler=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } - -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_preproc=no -fi - -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } - -fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -else - { { echo "$as_me:$LINENO: error: *** not all required header files were found ***" >&5 -echo "$as_me: error: *** not all required header files were found ***" >&2;} - { (exit 1); exit 1; }; } -fi - -done - - - - - - - - - - -for ac_header in execinfo.h features.h inttypes.h locale.h ladspa.h sched.h stdint.h sys/mman.h termios.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_compiler=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } - -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_preproc=no -fi - -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } - -fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - - - -{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } -if test "${ac_cv_header_stdc+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -#include -#include - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_header_stdc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_header_stdc=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -if test $ac_cv_header_stdc = yes; then - # SunOS 4.x string.h does not declare mem*, contrary to ANSI. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "memchr" >/dev/null 2>&1; then - : -else - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "free" >/dev/null 2>&1; then - : -else - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. - if test "$cross_compiling" = yes; then - : -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -#if ((' ' & 0x0FF) == 0x020) -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) -#else -# define ISLOWER(c) \ - (('a' <= (c) && (c) <= 'i') \ - || ('j' <= (c) && (c) <= 'r') \ - || ('s' <= (c) && (c) <= 'z')) -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) -#endif - -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) -int -main () -{ - int i; - for (i = 0; i < 256; i++) - if (XOR (islower (i), ISLOWER (i)) - || toupper (i) != TOUPPER (i)) - return 2; - return 0; -} -_ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - : -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -ac_cv_header_stdc=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi - - -fi -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 -echo "${ECHO_T}$ac_cv_header_stdc" >&6; } -if test $ac_cv_header_stdc = yes; then - -cat >>confdefs.h <<\_ACEOF -#define STDC_HEADERS 1 -_ACEOF - -fi - -ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - -if test "${ac_cv_header_map+set}" = set; then - { echo "$as_me:$LINENO: checking for map" >&5 -echo $ECHO_N "checking for map... $ECHO_C" >&6; } -if test "${ac_cv_header_map+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_map" >&5 -echo "${ECHO_T}$ac_cv_header_map" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking map usability" >&5 -echo $ECHO_N "checking map usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_compiler=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } - -# Is the header present? -{ echo "$as_me:$LINENO: checking map presence" >&5 -echo $ECHO_N "checking map presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_preproc=no -fi - -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: map: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: map: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: map: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: map: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: map: present but cannot be compiled" >&5 -echo "$as_me: WARNING: map: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: map: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: map: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: map: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: map: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: map: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: map: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: map: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: map: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: map: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: map: in the future, the compiler will take precedence" >&2;} - - ;; -esac -{ echo "$as_me:$LINENO: checking for map" >&5 -echo $ECHO_N "checking for map... $ECHO_C" >&6; } -if test "${ac_cv_header_map+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_map=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_map" >&5 -echo "${ECHO_T}$ac_cv_header_map" >&6; } - -fi -if test $ac_cv_header_map = yes; then - nostlmap=0 -else - nostlmap=1 -fi - - -if test "x$nostlmap" = "x1" ; then - { { echo "$as_me:$LINENO: error: C++ header files not found! Searched for '' (STL)." >&5 -echo "$as_me: error: C++ header files not found! Searched for '' (STL)." >&2;} - { (exit 1); exit 1; }; } -fi - - -echo "------------------------------------------------------------------" -echo "6. Section: Typedefs and structures" -echo "------------------------------------------------------------------" - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 -echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } -if test "${ac_cv_c_bigendian+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # See if sys/param.h defines the BYTE_ORDER macro. -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include - -int -main () -{ -#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ - && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) - bogus endian macros -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - # It does; now see whether it defined to BIG_ENDIAN or not. -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include - -int -main () -{ -#if BYTE_ORDER != BIG_ENDIAN - not big endian -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_c_bigendian=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_c_bigendian=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # It does not; compile a test program. -if test "$cross_compiling" = yes; then - # try to guess the endianness by grepping values into an object file - ac_cv_c_bigendian=unknown - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; -short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; -void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } -short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; -short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; -void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } -int -main () -{ - _ascii (); _ebcdic (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then - ac_cv_c_bigendian=yes -fi -if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then - if test "$ac_cv_c_bigendian" = unknown; then - ac_cv_c_bigendian=no - else - # finding both strings is unlikely to happen, but who knows? - ac_cv_c_bigendian=unknown - fi -fi -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ - - /* Are we little or big endian? From Harbison&Steele. */ - union - { - long int l; - char c[sizeof (long int)]; - } u; - u.l = 1; - return u.c[sizeof (long int) - 1] == 1; - - ; - return 0; -} -_ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_c_bigendian=no -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -ac_cv_c_bigendian=yes -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 -echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } -case $ac_cv_c_bigendian in - yes) - -cat >>confdefs.h <<\_ACEOF -#define WORDS_BIGENDIAN 1 -_ACEOF - ;; - no) - ;; - *) - { { echo "$as_me:$LINENO: error: unknown endianness -presetting ac_cv_c_bigendian=no (or yes) will help" >&5 -echo "$as_me: error: unknown endianness -presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} - { (exit 1); exit 1; }; } ;; -esac - -{ echo "$as_me:$LINENO: checking for size_t" >&5 -echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } -if test "${ac_cv_type_size_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -typedef size_t ac__type_new_; -int -main () -{ -if ((ac__type_new_ *) 0) - return 0; -if (sizeof (ac__type_new_)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_type_size_t=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_type_size_t=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 -echo "${ECHO_T}$ac_cv_type_size_t" >&6; } -if test $ac_cv_type_size_t = yes; then - : -else - -cat >>confdefs.h <<_ACEOF -#define size_t unsigned int -_ACEOF - -fi - -ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - - - -echo "------------------------------------------------------------------" -echo "7. Section: Functions" -echo "------------------------------------------------------------------" - - - -for ac_header in stdlib.h unistd.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_compiler=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } - -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_preproc=no -fi - -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } - -fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - - -for ac_func in getpagesize -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif - -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - -{ echo "$as_me:$LINENO: checking for working mmap" >&5 -echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } -if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "$cross_compiling" = yes; then - ac_cv_func_mmap_fixed_mapped=no -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -/* malloc might have been renamed as rpl_malloc. */ -#undef malloc - -/* Thanks to Mike Haertel and Jim Avera for this test. - Here is a matrix of mmap possibilities: - mmap private not fixed - mmap private fixed at somewhere currently unmapped - mmap private fixed at somewhere already mapped - mmap shared not fixed - mmap shared fixed at somewhere currently unmapped - mmap shared fixed at somewhere already mapped - For private mappings, we should verify that changes cannot be read() - back from the file, nor mmap's back from the file at a different - address. (There have been systems where private was not correctly - implemented like the infamous i386 svr4.0, and systems where the - VM page cache was not coherent with the file system buffer cache - like early versions of FreeBSD and possibly contemporary NetBSD.) - For shared mappings, we should conversely verify that changes get - propagated back to all the places they're supposed to be. - - Grep wants private fixed already mapped. - The main things grep needs to know about mmap are: - * does it exist and is it safe to write into the mmap'd area - * how to use it (BSD variants) */ - -#include -#include - -#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H -char *malloc (); -#endif - -/* This mess was copied from the GNU getpagesize.h. */ -#ifndef HAVE_GETPAGESIZE -/* Assume that all systems that can run configure have sys/param.h. */ -# ifndef HAVE_SYS_PARAM_H -# define HAVE_SYS_PARAM_H 1 -# endif - -# ifdef _SC_PAGESIZE -# define getpagesize() sysconf(_SC_PAGESIZE) -# else /* no _SC_PAGESIZE */ -# ifdef HAVE_SYS_PARAM_H -# include -# ifdef EXEC_PAGESIZE -# define getpagesize() EXEC_PAGESIZE -# else /* no EXEC_PAGESIZE */ -# ifdef NBPG -# define getpagesize() NBPG * CLSIZE -# ifndef CLSIZE -# define CLSIZE 1 -# endif /* no CLSIZE */ -# else /* no NBPG */ -# ifdef NBPC -# define getpagesize() NBPC -# else /* no NBPC */ -# ifdef PAGESIZE -# define getpagesize() PAGESIZE -# endif /* PAGESIZE */ -# endif /* no NBPC */ -# endif /* no NBPG */ -# endif /* no EXEC_PAGESIZE */ -# else /* no HAVE_SYS_PARAM_H */ -# define getpagesize() 8192 /* punt totally */ -# endif /* no HAVE_SYS_PARAM_H */ -# endif /* no _SC_PAGESIZE */ - -#endif /* no HAVE_GETPAGESIZE */ - -int -main () -{ - char *data, *data2, *data3; - int i, pagesize; - int fd; - - pagesize = getpagesize (); - - /* First, make a file with some known garbage in it. */ - data = (char *) malloc (pagesize); - if (!data) - return 1; - for (i = 0; i < pagesize; ++i) - *(data + i) = rand (); - umask (0); - fd = creat ("conftest.mmap", 0600); - if (fd < 0) - return 1; - if (write (fd, data, pagesize) != pagesize) - return 1; - close (fd); - - /* Next, try to mmap the file at a fixed address which already has - something else allocated at it. If we can, also make sure that - we see the same garbage. */ - fd = open ("conftest.mmap", O_RDWR); - if (fd < 0) - return 1; - data2 = (char *) malloc (2 * pagesize); - if (!data2) - return 1; - data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); - if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, - MAP_PRIVATE | MAP_FIXED, fd, 0L)) - return 1; - for (i = 0; i < pagesize; ++i) - if (*(data + i) != *(data2 + i)) - return 1; - - /* Finally, make sure that changes to the mapped area do not - percolate back to the file as seen by read(). (This is a bug on - some variants of i386 svr4.0.) */ - for (i = 0; i < pagesize; ++i) - *(data2 + i) = *(data2 + i) + 1; - data3 = (char *) malloc (pagesize); - if (!data3) - return 1; - if (read (fd, data3, pagesize) != pagesize) - return 1; - for (i = 0; i < pagesize; ++i) - if (*(data + i) != *(data3 + i)) - return 1; - close (fd); - return 0; -} -_ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_func_mmap_fixed_mapped=yes -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -ac_cv_func_mmap_fixed_mapped=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi - - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 -echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } -if test $ac_cv_func_mmap_fixed_mapped = yes; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_MMAP 1 -_ACEOF - -fi -rm -f conftest.mmap - - - - -for ac_func in execvp gettimeofday pthread_mutexattr_init -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif - -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -else - { { echo "$as_me:$LINENO: error: *** not all required library functions were found ***" >&5 -echo "$as_me: error: *** not all required library functions were found ***" >&2;} - { (exit 1); exit 1; }; } -fi -done - - - -for ac_func in clock_gettime -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif - -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - - -for ac_func in mlockall -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif - -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - - -for ac_func in munlockall -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif - -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - - -for ac_func in nanosleep -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif - -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - - -for ac_func in pause -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif - -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - - -for ac_func in posix_memalign -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif - -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - - -for ac_func in pthread_self -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif - -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - - -for ac_func in pthread_getschedparam -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif - -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - - -for ac_func in pthread_setschedparam -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif - -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - - -for ac_func in pthread_sigmask -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif - -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - - -for ac_func in pthread_kill -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif - -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - - -for ac_func in sched_get_priority_max -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif - -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - - -for ac_func in sched_getparam -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif - -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - - -for ac_func in sched_getscheduler -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif - -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - - -for ac_func in sched_setscheduler -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif - -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - - -for ac_func in setlocale -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif - -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - - -for ac_func in sigprocmask -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif - -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - - -for ac_func in sigwait -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif - -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - - -for ac_func in usleep -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif - -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - - - -# Check whether --enable-all-static was given. -if test "${enable_all_static+set}" = set; then - enableval=$enable_all_static; - case "$enableval" in - y | yes) - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - enable_all_static=yes - ;; - - n | no) - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - enable_all_static=no - ;; - - *) - { { echo "$as_me:$LINENO: error: Invalid parameter value for --enable-all-static: $enableval" >&5 -echo "$as_me: error: Invalid parameter value for --enable-all-static: $enableval" >&2;} - { (exit 1); exit 1; }; } - ;; - esac - -fi - -if test x$enable_all_static = xyes; then - -cat >>confdefs.h <<\_ACEOF -#define ECA_ALL_STATIC 1 -_ACEOF - - AM_CXXFLAGS="$AM_CXXFLAGS -static" - AM_CFLAGS="$AM_CFLAGS -static" - AM_LDFLAGS="$AM_LDFLAGS -Bstatic -all-static" -fi - - -if test x$enable_all_static = xyes; then - ECA_AM_ALL_STATIC_TRUE= - ECA_AM_ALL_STATIC_FALSE='#' -else - ECA_AM_ALL_STATIC_TRUE='#' - ECA_AM_ALL_STATIC_FALSE= -fi - - - - -if test $eca_platform_curses_support == yes ; then - -cat >>confdefs.h <<\_ACEOF -#define ECA_PLATFORM_CURSES 1 -_ACEOF - -fi - - -echo "------------------------------------------------------------------" -echo "8. Section: Output" -echo "------------------------------------------------------------------" - - -ac_config_files="$ac_config_files Makefile ecasound.spec libecasound/Makefile libecasound/libecasound-config libecasound/plugins/Makefile libecasoundc/Makefile libecasoundc/libecasoundc-config pyecasound/Makefile rubyecasound/Makefile ecasound/Makefile ecatools/Makefile kvutils/Makefile Documentation/Makefile Documentation/users_guide/Makefile Documentation/programmers_guide/Makefile examples/Makefile" - -cat >confcache <<\_ACEOF -# This file is a shell script that caches the results of configure -# tests run on this system so they can be shared between configure -# scripts and configure runs, see configure's option --config-cache. -# It is not useful on other systems. If it contains results you don't -# want to keep, you may remove or edit it. -# -# config.status only pays attention to the cache file if you give it -# the --recheck option to rerun configure. -# -# `ac_cv_env_foo' variables (set or unset) will be overridden when -# loading this file, other *unset* `ac_cv_foo' will be assigned the -# following values. - -_ACEOF - -# The following way of writing the cache mishandles newlines in values, -# but we know of no workaround that is simple, portable, and efficient. -# So, we kill variables containing newlines. -# Ultrix sh set writes to stderr and can't be redirected directly, -# and sets the high bit in the cache file unless we assign to the vars. -( - for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do - eval ac_val=\$$ac_var - case $ac_val in #( - *${as_nl}*) - case $ac_var in #( - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; - esac - case $ac_var in #( - _ | IFS | as_nl) ;; #( - *) $as_unset $ac_var ;; - esac ;; - esac - done - - (set) 2>&1 | - case $as_nl`(ac_space=' '; set) 2>&1` in #( - *${as_nl}ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote - # substitution turns \\\\ into \\, and sed turns \\ into \). - sed -n \ - "s/'/'\\\\''/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" - ;; #( - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" - ;; - esac | - sort -) | - sed ' - /^ac_cv_env_/b end - t clear - :clear - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ - t end - s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ - :end' >>confcache -if diff "$cache_file" confcache >/dev/null 2>&1; then :; else - if test -w "$cache_file"; then - test "x$cache_file" != "x/dev/null" && - { echo "$as_me:$LINENO: updating cache $cache_file" >&5 -echo "$as_me: updating cache $cache_file" >&6;} - cat confcache >$cache_file - else - { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 -echo "$as_me: not updating unwritable cache $cache_file" >&6;} - fi -fi -rm -f confcache - -test "x$prefix" = xNONE && prefix=$ac_default_prefix -# Let make expand exec_prefix. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' - -DEFS=-DHAVE_CONFIG_H - -ac_libobjs= -ac_ltlibobjs= -for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue - # 1. Remove the extension, and $U if already installed. - ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' - ac_i=`echo "$ac_i" | sed "$ac_script"` - # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR - # will be set to the directory where LIBOBJS objects are built. - ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" - ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' -done -LIBOBJS=$ac_libobjs - -LTLIBOBJS=$ac_ltlibobjs - - -if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"AMDEP\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${ECA_AM_DEBUG_MODE_TRUE}" && test -z "${ECA_AM_DEBUG_MODE_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"ECA_AM_DEBUG_MODE\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"ECA_AM_DEBUG_MODE\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${ECA_AM_FEELING_EXPERIMENTAL_TRUE}" && test -z "${ECA_AM_FEELING_EXPERIMENTAL_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"ECA_AM_FEELING_EXPERIMENTAL\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"ECA_AM_FEELING_EXPERIMENTAL\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${ECA_AM_DISABLE_EFFECTS_TRUE}" && test -z "${ECA_AM_DISABLE_EFFECTS_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"ECA_AM_DISABLE_EFFECTS\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"ECA_AM_DISABLE_EFFECTS\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${ECA_AM_COMPILE_OSS_TRUE}" && test -z "${ECA_AM_COMPILE_OSS_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"ECA_AM_COMPILE_OSS\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"ECA_AM_COMPILE_OSS\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${ECA_AM_COMPILE_ARTS_TRUE}" && test -z "${ECA_AM_COMPILE_ARTS_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"ECA_AM_COMPILE_ARTS\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"ECA_AM_COMPILE_ARTS\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${ECA_AM_COMPILE_SAMPLERATE_TRUE}" && test -z "${ECA_AM_COMPILE_SAMPLERATE_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"ECA_AM_COMPILE_SAMPLERATE\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"ECA_AM_COMPILE_SAMPLERATE\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${ECA_AM_PYECASOUND_CEXT_TRUE}" && test -z "${ECA_AM_PYECASOUND_CEXT_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"ECA_AM_PYECASOUND_CEXT\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"ECA_AM_PYECASOUND_CEXT\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${ECA_AM_PYECASOUND_INSTALL_TRUE}" && test -z "${ECA_AM_PYECASOUND_INSTALL_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"ECA_AM_PYECASOUND_INSTALL\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"ECA_AM_PYECASOUND_INSTALL\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${ECA_AM_RUBYECASOUND_INSTALL_TRUE}" && test -z "${ECA_AM_RUBYECASOUND_INSTALL_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"ECA_AM_RUBYECASOUND_INSTALL\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"ECA_AM_RUBYECASOUND_INSTALL\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${ECA_AM_USE_NCURSES_TRUE}" && test -z "${ECA_AM_USE_NCURSES_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"ECA_AM_USE_NCURSES\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"ECA_AM_USE_NCURSES\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${ECA_AM_USE_TERMCAP_TRUE}" && test -z "${ECA_AM_USE_TERMCAP_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"ECA_AM_USE_TERMCAP\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"ECA_AM_USE_TERMCAP\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${ECA_AM_COMPILE_AUDIOFILE_TRUE}" && test -z "${ECA_AM_COMPILE_AUDIOFILE_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"ECA_AM_COMPILE_AUDIOFILE\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"ECA_AM_COMPILE_AUDIOFILE\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${ECA_AM_COMPILE_SNDFILE_TRUE}" && test -z "${ECA_AM_COMPILE_SNDFILE_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"ECA_AM_COMPILE_SNDFILE\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"ECA_AM_COMPILE_SNDFILE\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${ECA_AM_COMPILE_ALSA_TRUE}" && test -z "${ECA_AM_COMPILE_ALSA_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"ECA_AM_COMPILE_ALSA\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"ECA_AM_COMPILE_ALSA\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${ECA_AM_COMPILE_JACK_TRUE}" && test -z "${ECA_AM_COMPILE_JACK_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"ECA_AM_COMPILE_JACK\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"ECA_AM_COMPILE_JACK\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${ECA_AM_KVUTILS_INSTALLED_TRUE}" && test -z "${ECA_AM_KVUTILS_INSTALLED_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"ECA_AM_KVUTILS_INSTALLED\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"ECA_AM_KVUTILS_INSTALLED\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${ECA_AM_SYSTEM_READLINE_TRUE}" && test -z "${ECA_AM_SYSTEM_READLINE_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"ECA_AM_SYSTEM_READLINE\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"ECA_AM_SYSTEM_READLINE\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${ECA_AM_ALL_STATIC_TRUE}" && test -z "${ECA_AM_ALL_STATIC_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"ECA_AM_ALL_STATIC\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"ECA_AM_ALL_STATIC\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi - -: ${CONFIG_STATUS=./config.status} -ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files $CONFIG_STATUS" -{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 -echo "$as_me: creating $CONFIG_STATUS" >&6;} -cat >$CONFIG_STATUS <<_ACEOF -#! $SHELL -# Generated by $as_me. -# Run this file to recreate the current configuration. -# Compiler output produced by configure, useful for debugging -# configure, is in config.log if it exists. - -debug=false -ac_cs_recheck=false -ac_cs_silent=false -SHELL=\${CONFIG_SHELL-$SHELL} -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF -## --------------------- ## -## M4sh Initialization. ## -## --------------------- ## - -# Be more Bourne compatible -DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac - -fi - - - - -# PATH needs CR -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi - -# Support unset when possible. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false -fi - - -# IFS -# We need space, tab and new line, in precisely that order. Quoting is -# there to prevent editors from complaining about space-tab. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word -# splitting by setting IFS to empty value.) -as_nl=' -' -IFS=" "" $as_nl" - -# Find who we are. Look in the path if we contain no directory separator. -case $0 in - *[\\/]* ) as_myself=$0 ;; - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break -done -IFS=$as_save_IFS - - ;; -esac -# We did not find ourselves, most probably we were run as `sh COMMAND' -# in which case we are not to be found in the path. -if test "x$as_myself" = x; then - as_myself=$0 -fi -if test ! -f "$as_myself"; then - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 - { (exit 1); exit 1; } -fi - -# Work around bugs in pre-3.0 UWIN ksh. -for as_var in ENV MAIL MAILPATH -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var -done -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -for as_var in \ - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ - LC_TELEPHONE LC_TIME -do - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then - eval $as_var=C; export $as_var - else - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var - fi -done - -# Required to use basename. -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then - as_basename=basename -else - as_basename=false -fi - - -# Name of the executable. -as_me=`$as_basename -- "$0" || -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -echo X/"$0" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ - s//\1/ - q - } - /^X\/\(\/\/\)$/{ - s//\1/ - q - } - /^X\/\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - -# CDPATH. -$as_unset CDPATH - - - - as_lineno_1=$LINENO - as_lineno_2=$LINENO - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { - - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO - # uniformly replaced by the line number. The first 'sed' inserts a - # line-number line after each line using $LINENO; the second 'sed' - # does the real work. The second script uses 'N' to pair each - # line-number line with the line containing $LINENO, and appends - # trailing '-' during substitution so that $LINENO is not a special - # case at line end. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the - # scripts with optimization help from Paolo Bonzini. Blame Lee - # E. McMahon (1931-1989) for sed's syntax. :-) - sed -n ' - p - /[$]LINENO/= - ' <$as_myself | - sed ' - s/[$]LINENO.*/&-/ - t lineno - b - :lineno - N - :loop - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ - t loop - s/-\n.*// - ' >$as_me.lineno && - chmod +x "$as_me.lineno" || - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 - { (exit 1); exit 1; }; } - - # Don't try to exec as it changes $[0], causing all sort of problems - # (the dirname of $[0] is not the place where we might find the - # original and so on. Autoconf is especially sensitive to this). - . "./$as_me.lineno" - # Exit status is that of the last command. - exit -} - - -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then - as_dirname=dirname -else - as_dirname=false -fi - -ECHO_C= ECHO_N= ECHO_T= -case `echo -n x` in --n*) - case `echo 'x\c'` in - *c*) ECHO_T=' ';; # ECHO_T is single tab character. - *) ECHO_C='\c';; - esac;; -*) - ECHO_N='-n';; -esac - -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -rm -f conf$$ conf$$.exe conf$$.file -if test -d conf$$.dir; then - rm -f conf$$.dir/conf$$.file -else - rm -f conf$$.dir - mkdir conf$$.dir -fi -echo >conf$$.file -if ln -s conf$$.file conf$$ 2>/dev/null; then - as_ln_s='ln -s' - # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -p'. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || - as_ln_s='cp -p' -elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln -else - as_ln_s='cp -p' -fi -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file -rmdir conf$$.dir 2>/dev/null - -if mkdir -p . 2>/dev/null; then - as_mkdir_p=: -else - test -d ./-p && rmdir ./-p - as_mkdir_p=false -fi - -if test -x / >/dev/null 2>&1; then - as_test_x='test -x' -else - if ls -dL / >/dev/null 2>&1; then - as_ls_L_option=L - else - as_ls_L_option= - fi - as_test_x=' - eval sh -c '\'' - if test -d "$1"; then - test -d "$1/."; - else - case $1 in - -*)set "./$1";; - esac; - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in - ???[sx]*):;;*)false;;esac;fi - '\'' sh - ' -fi -as_executable_p=$as_test_x - -# Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" - -# Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - - -exec 6>&1 - -# Save the log message, to keep $[0] and so on meaningful, and to -# report actual input values of CONFIG_FILES etc. instead of their -# values after options handling. -ac_log=" -This file was extended by ecasound $as_me 2.7.2, which was -generated by GNU Autoconf 2.61. Invocation command line was - - CONFIG_FILES = $CONFIG_FILES - CONFIG_HEADERS = $CONFIG_HEADERS - CONFIG_LINKS = $CONFIG_LINKS - CONFIG_COMMANDS = $CONFIG_COMMANDS - $ $0 $@ - -on `(hostname || uname -n) 2>/dev/null | sed 1q` -" - -_ACEOF - -cat >>$CONFIG_STATUS <<_ACEOF -# Files that config.status was made for. -config_files="$ac_config_files" -config_headers="$ac_config_headers" -config_commands="$ac_config_commands" - -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF -ac_cs_usage="\ -\`$as_me' instantiates files from templates according to the -current configuration. - -Usage: $0 [OPTIONS] [FILE]... - - -h, --help print this help, then exit - -V, --version print version number and configuration settings, then exit - -q, --quiet do not print progress messages - -d, --debug don't remove temporary files - --recheck update $as_me by reconfiguring in the same conditions - --file=FILE[:TEMPLATE] - instantiate the configuration file FILE - --header=FILE[:TEMPLATE] - instantiate the configuration header FILE - -Configuration files: -$config_files - -Configuration headers: -$config_headers - -Configuration commands: -$config_commands - -Report bugs to ." - -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF -ac_cs_version="\\ -ecasound config.status 2.7.2 -configured by $0, generated by GNU Autoconf 2.61, - with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" - -Copyright (C) 2006 Free Software Foundation, Inc. -This config.status script is free software; the Free Software Foundation -gives unlimited permission to copy, distribute and modify it." - -ac_pwd='$ac_pwd' -srcdir='$srcdir' -INSTALL='$INSTALL' -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF -# If no file are specified by the user, then we need to provide default -# value. By we need to know if files were specified by the user. -ac_need_defaults=: -while test $# != 0 -do - case $1 in - --*=*) - ac_option=`expr "X$1" : 'X\([^=]*\)='` - ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` - ac_shift=: - ;; - *) - ac_option=$1 - ac_optarg=$2 - ac_shift=shift - ;; - esac - - case $ac_option in - # Handling of the options. - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) - ac_cs_recheck=: ;; - --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) - echo "$ac_cs_version"; exit ;; - --debug | --debu | --deb | --de | --d | -d ) - debug=: ;; - --file | --fil | --fi | --f ) - $ac_shift - CONFIG_FILES="$CONFIG_FILES $ac_optarg" - ac_need_defaults=false;; - --header | --heade | --head | --hea ) - $ac_shift - CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" - ac_need_defaults=false;; - --he | --h) - # Conflict between --help and --header - { echo "$as_me: error: ambiguous option: $1 -Try \`$0 --help' for more information." >&2 - { (exit 1); exit 1; }; };; - --help | --hel | -h ) - echo "$ac_cs_usage"; exit ;; - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil | --si | --s) - ac_cs_silent=: ;; - - # This is an error. - -*) { echo "$as_me: error: unrecognized option: $1 -Try \`$0 --help' for more information." >&2 - { (exit 1); exit 1; }; } ;; - - *) ac_config_targets="$ac_config_targets $1" - ac_need_defaults=false ;; - - esac - shift -done - -ac_configure_extra_args= - -if $ac_cs_silent; then - exec 6>/dev/null - ac_configure_extra_args="$ac_configure_extra_args --silent" -fi - -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF -if \$ac_cs_recheck; then - echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 - CONFIG_SHELL=$SHELL - export CONFIG_SHELL - exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion -fi - -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF -exec 5>>config.log -{ - echo - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX -## Running $as_me. ## -_ASBOX - echo "$ac_log" -} >&5 - -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF -# -# INIT-COMMANDS -# -AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" - -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF - -# Handling of arguments. -for ac_config_target in $ac_config_targets -do - case $ac_config_target in - "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; - "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; - "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; - "ecasound.spec") CONFIG_FILES="$CONFIG_FILES ecasound.spec" ;; - "libecasound/Makefile") CONFIG_FILES="$CONFIG_FILES libecasound/Makefile" ;; - "libecasound/libecasound-config") CONFIG_FILES="$CONFIG_FILES libecasound/libecasound-config" ;; - "libecasound/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES libecasound/plugins/Makefile" ;; - "libecasoundc/Makefile") CONFIG_FILES="$CONFIG_FILES libecasoundc/Makefile" ;; - "libecasoundc/libecasoundc-config") CONFIG_FILES="$CONFIG_FILES libecasoundc/libecasoundc-config" ;; - "pyecasound/Makefile") CONFIG_FILES="$CONFIG_FILES pyecasound/Makefile" ;; - "rubyecasound/Makefile") CONFIG_FILES="$CONFIG_FILES rubyecasound/Makefile" ;; - "ecasound/Makefile") CONFIG_FILES="$CONFIG_FILES ecasound/Makefile" ;; - "ecatools/Makefile") CONFIG_FILES="$CONFIG_FILES ecatools/Makefile" ;; - "kvutils/Makefile") CONFIG_FILES="$CONFIG_FILES kvutils/Makefile" ;; - "Documentation/Makefile") CONFIG_FILES="$CONFIG_FILES Documentation/Makefile" ;; - "Documentation/users_guide/Makefile") CONFIG_FILES="$CONFIG_FILES Documentation/users_guide/Makefile" ;; - "Documentation/programmers_guide/Makefile") CONFIG_FILES="$CONFIG_FILES Documentation/programmers_guide/Makefile" ;; - "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; - - *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 -echo "$as_me: error: invalid argument: $ac_config_target" >&2;} - { (exit 1); exit 1; }; };; - esac -done - - -# If the user did not use the arguments to specify the items to instantiate, -# then the envvar interface is used. Set only those that are not. -# We use the long form for the default assignment because of an extremely -# bizarre bug on SunOS 4.1.3. -if $ac_need_defaults; then - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files - test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers - test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands -fi - -# Have a temporary directory for convenience. Make it in the build tree -# simply because there is no reason against having it here, and in addition, -# creating and moving files from /tmp can sometimes cause problems. -# Hook for its removal unless debugging. -# Note that there is a small window in which the directory will not be cleaned: -# after its creation but before its name has been assigned to `$tmp'. -$debug || -{ - tmp= - trap 'exit_status=$? - { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status -' 0 - trap '{ (exit 1); exit 1; }' 1 2 13 15 -} -# Create a (secure) tmp directory for tmp files. - -{ - tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && - test -n "$tmp" && test -d "$tmp" -} || -{ - tmp=./conf$$-$RANDOM - (umask 077 && mkdir "$tmp") -} || -{ - echo "$me: cannot create a temporary directory in ." >&2 - { (exit 1); exit 1; } -} - -# -# Set up the sed scripts for CONFIG_FILES section. -# - -# No need to generate the scripts if there are no CONFIG_FILES. -# This happens for instance when ./config.status config.h -if test -n "$CONFIG_FILES"; then - -_ACEOF - - - -ac_delim='%!_!# ' -for ac_last_try in false false false false false :; do - cat >conf$$subs.sed <<_ACEOF -SHELL!$SHELL$ac_delim -PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim -PACKAGE_NAME!$PACKAGE_NAME$ac_delim -PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim -PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim -PACKAGE_STRING!$PACKAGE_STRING$ac_delim -PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim -exec_prefix!$exec_prefix$ac_delim -prefix!$prefix$ac_delim -program_transform_name!$program_transform_name$ac_delim -bindir!$bindir$ac_delim -sbindir!$sbindir$ac_delim -libexecdir!$libexecdir$ac_delim -datarootdir!$datarootdir$ac_delim -datadir!$datadir$ac_delim -sysconfdir!$sysconfdir$ac_delim -sharedstatedir!$sharedstatedir$ac_delim -localstatedir!$localstatedir$ac_delim -includedir!$includedir$ac_delim -oldincludedir!$oldincludedir$ac_delim -docdir!$docdir$ac_delim -infodir!$infodir$ac_delim -htmldir!$htmldir$ac_delim -dvidir!$dvidir$ac_delim -pdfdir!$pdfdir$ac_delim -psdir!$psdir$ac_delim -libdir!$libdir$ac_delim -localedir!$localedir$ac_delim -mandir!$mandir$ac_delim -DEFS!$DEFS$ac_delim -ECHO_C!$ECHO_C$ac_delim -ECHO_N!$ECHO_N$ac_delim -ECHO_T!$ECHO_T$ac_delim -LIBS!$LIBS$ac_delim -build_alias!$build_alias$ac_delim -host_alias!$host_alias$ac_delim -target_alias!$target_alias$ac_delim -INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim -INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim -INSTALL_DATA!$INSTALL_DATA$ac_delim -CYGPATH_W!$CYGPATH_W$ac_delim -PACKAGE!$PACKAGE$ac_delim -VERSION!$VERSION$ac_delim -ACLOCAL!$ACLOCAL$ac_delim -AUTOCONF!$AUTOCONF$ac_delim -AUTOMAKE!$AUTOMAKE$ac_delim -AUTOHEADER!$AUTOHEADER$ac_delim -MAKEINFO!$MAKEINFO$ac_delim -install_sh!$install_sh$ac_delim -STRIP!$STRIP$ac_delim -INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim -mkdir_p!$mkdir_p$ac_delim -AWK!$AWK$ac_delim -SET_MAKE!$SET_MAKE$ac_delim -am__leading_dot!$am__leading_dot$ac_delim -AMTAR!$AMTAR$ac_delim -am__tar!$am__tar$ac_delim -am__untar!$am__untar$ac_delim -LIBECASOUND_VERSION!$LIBECASOUND_VERSION$ac_delim -LIBECASOUND_VERSION_AGE!$LIBECASOUND_VERSION_AGE$ac_delim -LIBECASOUNDC_VERSION!$LIBECASOUNDC_VERSION$ac_delim -LIBECASOUNDC_VERSION_AGE!$LIBECASOUNDC_VERSION_AGE$ac_delim -LIBKVUTILS_VERSION!$LIBKVUTILS_VERSION$ac_delim -LIBKVUTILS_VERSION_AGE!$LIBKVUTILS_VERSION_AGE$ac_delim -CC!$CC$ac_delim -CFLAGS!$CFLAGS$ac_delim -LDFLAGS!$LDFLAGS$ac_delim -CPPFLAGS!$CPPFLAGS$ac_delim -ac_ct_CC!$ac_ct_CC$ac_delim -EXEEXT!$EXEEXT$ac_delim -OBJEXT!$OBJEXT$ac_delim -DEPDIR!$DEPDIR$ac_delim -am__include!$am__include$ac_delim -am__quote!$am__quote$ac_delim -AMDEP_TRUE!$AMDEP_TRUE$ac_delim -AMDEP_FALSE!$AMDEP_FALSE$ac_delim -AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim -CCDEPMODE!$CCDEPMODE$ac_delim -am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim -am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim -CXX!$CXX$ac_delim -CXXFLAGS!$CXXFLAGS$ac_delim -ac_ct_CXX!$ac_ct_CXX$ac_delim -CXXDEPMODE!$CXXDEPMODE$ac_delim -am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim -am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim -CPP!$CPP$ac_delim -build!$build$ac_delim -build_cpu!$build_cpu$ac_delim -build_vendor!$build_vendor$ac_delim -build_os!$build_os$ac_delim -host!$host$ac_delim -host_cpu!$host_cpu$ac_delim -host_vendor!$host_vendor$ac_delim -host_os!$host_os$ac_delim -AM_CFLAGS!$AM_CFLAGS$ac_delim -AM_CXXFLAGS!$AM_CXXFLAGS$ac_delim -_ACEOF - - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then - break - elif $ac_last_try; then - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} - { (exit 1); exit 1; }; } - else - ac_delim="$ac_delim!$ac_delim _$ac_delim!! " - fi -done - -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` -if test -n "$ac_eof"; then - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` - ac_eof=`expr $ac_eof + 1` -fi - -cat >>$CONFIG_STATUS <<_ACEOF -cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b -_ACEOF -sed ' -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g -s/^/s,@/; s/!/@,|#_!!_#|/ -:n -t n -s/'"$ac_delim"'$/,g/; t -s/$/\\/; p -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n -' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF -CEOF$ac_eof -_ACEOF - - -ac_delim='%!_!# ' -for ac_last_try in false false false false false :; do - cat >conf$$subs.sed <<_ACEOF -AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim -AM_LDFLAGS!$AM_LDFLAGS$ac_delim -ECA_AM_DEBUG_MODE_TRUE!$ECA_AM_DEBUG_MODE_TRUE$ac_delim -ECA_AM_DEBUG_MODE_FALSE!$ECA_AM_DEBUG_MODE_FALSE$ac_delim -ECA_AM_FEELING_EXPERIMENTAL_TRUE!$ECA_AM_FEELING_EXPERIMENTAL_TRUE$ac_delim -ECA_AM_FEELING_EXPERIMENTAL_FALSE!$ECA_AM_FEELING_EXPERIMENTAL_FALSE$ac_delim -ECA_S_PREFIX!$ECA_S_PREFIX$ac_delim -ECA_AM_DISABLE_EFFECTS_TRUE!$ECA_AM_DISABLE_EFFECTS_TRUE$ac_delim -ECA_AM_DISABLE_EFFECTS_FALSE!$ECA_AM_DISABLE_EFFECTS_FALSE$ac_delim -CXXCPP!$CXXCPP$ac_delim -GREP!$GREP$ac_delim -EGREP!$EGREP$ac_delim -ECA_AM_COMPILE_OSS_TRUE!$ECA_AM_COMPILE_OSS_TRUE$ac_delim -ECA_AM_COMPILE_OSS_FALSE!$ECA_AM_COMPILE_OSS_FALSE$ac_delim -ARTSC_CONFIG!$ARTSC_CONFIG$ac_delim -ECA_AM_COMPILE_ARTS_TRUE!$ECA_AM_COMPILE_ARTS_TRUE$ac_delim -ECA_AM_COMPILE_ARTS_FALSE!$ECA_AM_COMPILE_ARTS_FALSE$ac_delim -ECA_AM_COMPILE_SAMPLERATE_TRUE!$ECA_AM_COMPILE_SAMPLERATE_TRUE$ac_delim -ECA_AM_COMPILE_SAMPLERATE_FALSE!$ECA_AM_COMPILE_SAMPLERATE_FALSE$ac_delim -PYTHONPATH!$PYTHONPATH$ac_delim -ECA_S_PYTHON_INCLUDES!$ECA_S_PYTHON_INCLUDES$ac_delim -ECA_S_PYTHON_MODULES!$ECA_S_PYTHON_MODULES$ac_delim -ECA_S_PYTHON_DLMODULES!$ECA_S_PYTHON_DLMODULES$ac_delim -ECA_AM_PYECASOUND_CEXT_TRUE!$ECA_AM_PYECASOUND_CEXT_TRUE$ac_delim -ECA_AM_PYECASOUND_CEXT_FALSE!$ECA_AM_PYECASOUND_CEXT_FALSE$ac_delim -ECA_AM_PYECASOUND_INSTALL_TRUE!$ECA_AM_PYECASOUND_INSTALL_TRUE$ac_delim -ECA_AM_PYECASOUND_INSTALL_FALSE!$ECA_AM_PYECASOUND_INSTALL_FALSE$ac_delim -RUBYPATH!$RUBYPATH$ac_delim -ECA_S_RUBY_SITEDIR!$ECA_S_RUBY_SITEDIR$ac_delim -ECA_AM_RUBYECASOUND_INSTALL_TRUE!$ECA_AM_RUBYECASOUND_INSTALL_TRUE$ac_delim -ECA_AM_RUBYECASOUND_INSTALL_FALSE!$ECA_AM_RUBYECASOUND_INSTALL_FALSE$ac_delim -SED!$SED$ac_delim -LN_S!$LN_S$ac_delim -ECHO!$ECHO$ac_delim -AR!$AR$ac_delim -RANLIB!$RANLIB$ac_delim -DSYMUTIL!$DSYMUTIL$ac_delim -NMEDIT!$NMEDIT$ac_delim -F77!$F77$ac_delim -FFLAGS!$FFLAGS$ac_delim -ac_ct_F77!$ac_ct_F77$ac_delim -LIBTOOL!$LIBTOOL$ac_delim -ECA_AM_USE_NCURSES_TRUE!$ECA_AM_USE_NCURSES_TRUE$ac_delim -ECA_AM_USE_NCURSES_FALSE!$ECA_AM_USE_NCURSES_FALSE$ac_delim -ECA_AM_USE_TERMCAP_TRUE!$ECA_AM_USE_TERMCAP_TRUE$ac_delim -ECA_AM_USE_TERMCAP_FALSE!$ECA_AM_USE_TERMCAP_FALSE$ac_delim -ECA_AM_COMPILE_AUDIOFILE_TRUE!$ECA_AM_COMPILE_AUDIOFILE_TRUE$ac_delim -ECA_AM_COMPILE_AUDIOFILE_FALSE!$ECA_AM_COMPILE_AUDIOFILE_FALSE$ac_delim -ECA_AM_COMPILE_SNDFILE_TRUE!$ECA_AM_COMPILE_SNDFILE_TRUE$ac_delim -ECA_AM_COMPILE_SNDFILE_FALSE!$ECA_AM_COMPILE_SNDFILE_FALSE$ac_delim -ECA_AM_COMPILE_ALSA_TRUE!$ECA_AM_COMPILE_ALSA_TRUE$ac_delim -ECA_AM_COMPILE_ALSA_FALSE!$ECA_AM_COMPILE_ALSA_FALSE$ac_delim -ECA_AM_COMPILE_JACK_TRUE!$ECA_AM_COMPILE_JACK_TRUE$ac_delim -ECA_AM_COMPILE_JACK_FALSE!$ECA_AM_COMPILE_JACK_FALSE$ac_delim -ECA_S_JACK_LIBS!$ECA_S_JACK_LIBS$ac_delim -ECA_S_JACK_INCLUDES!$ECA_S_JACK_INCLUDES$ac_delim -ECA_AM_KVUTILS_INSTALLED_TRUE!$ECA_AM_KVUTILS_INSTALLED_TRUE$ac_delim -ECA_AM_KVUTILS_INSTALLED_FALSE!$ECA_AM_KVUTILS_INSTALLED_FALSE$ac_delim -ECA_AM_SYSTEM_READLINE_TRUE!$ECA_AM_SYSTEM_READLINE_TRUE$ac_delim -ECA_AM_SYSTEM_READLINE_FALSE!$ECA_AM_SYSTEM_READLINE_FALSE$ac_delim -ECA_S_READLINE_INCLUDES!$ECA_S_READLINE_INCLUDES$ac_delim -ECA_S_READLINE_LIBS!$ECA_S_READLINE_LIBS$ac_delim -PKG_CONFIG!$PKG_CONFIG$ac_delim -LIBOIL_CFLAGS!$LIBOIL_CFLAGS$ac_delim -LIBOIL_LIBS!$LIBOIL_LIBS$ac_delim -LIBLO_CFLAGS!$LIBLO_CFLAGS$ac_delim -LIBLO_LIBS!$LIBLO_LIBS$ac_delim -ECA_S_EXTRA_CPPFLAGS!$ECA_S_EXTRA_CPPFLAGS$ac_delim -ECA_S_EXTRA_LIBS!$ECA_S_EXTRA_LIBS$ac_delim -ECA_AM_ALL_STATIC_TRUE!$ECA_AM_ALL_STATIC_TRUE$ac_delim -ECA_AM_ALL_STATIC_FALSE!$ECA_AM_ALL_STATIC_FALSE$ac_delim -LIBOBJS!$LIBOBJS$ac_delim -LTLIBOBJS!$LTLIBOBJS$ac_delim -_ACEOF - - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 73; then - break - elif $ac_last_try; then - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} - { (exit 1); exit 1; }; } - else - ac_delim="$ac_delim!$ac_delim _$ac_delim!! " - fi -done - -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` -if test -n "$ac_eof"; then - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` - ac_eof=`expr $ac_eof + 1` -fi - -cat >>$CONFIG_STATUS <<_ACEOF -cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end -_ACEOF -sed ' -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g -s/^/s,@/; s/!/@,|#_!!_#|/ -:n -t n -s/'"$ac_delim"'$/,g/; t -s/$/\\/; p -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n -' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF -:end -s/|#_!!_#|//g -CEOF$ac_eof -_ACEOF - - -# VPATH may cause trouble with some makes, so we remove $(srcdir), -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and -# trailing colons and then remove the whole line if VPATH becomes empty -# (actually we leave an empty line to preserve line numbers). -if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=/{ -s/:*\$(srcdir):*/:/ -s/:*\${srcdir}:*/:/ -s/:*@srcdir@:*/:/ -s/^\([^=]*=[ ]*\):*/\1/ -s/:*$// -s/^[^=]*=[ ]*$// -}' -fi - -cat >>$CONFIG_STATUS <<\_ACEOF -fi # test -n "$CONFIG_FILES" - - -for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS -do - case $ac_tag in - :[FHLC]) ac_mode=$ac_tag; continue;; - esac - case $ac_mode$ac_tag in - :[FHL]*:*);; - :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 -echo "$as_me: error: Invalid tag $ac_tag." >&2;} - { (exit 1); exit 1; }; };; - :[FH]-) ac_tag=-:-;; - :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; - esac - ac_save_IFS=$IFS - IFS=: - set x $ac_tag - IFS=$ac_save_IFS - shift - ac_file=$1 - shift - - case $ac_mode in - :L) ac_source=$1;; - :[FH]) - ac_file_inputs= - for ac_f - do - case $ac_f in - -) ac_f="$tmp/stdin";; - *) # Look for the file first in the build tree, then in the source tree - # (if the path is not absolute). The absolute path cannot be DOS-style, - # because $ac_f cannot contain `:'. - test -f "$ac_f" || - case $ac_f in - [\\/$]*) false;; - *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; - esac || - { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 -echo "$as_me: error: cannot find input file: $ac_f" >&2;} - { (exit 1); exit 1; }; };; - esac - ac_file_inputs="$ac_file_inputs $ac_f" - done - - # Let's still pretend it is `configure' which instantiates (i.e., don't - # use $as_me), people would be surprised to read: - # /* config.h. Generated by config.status. */ - configure_input="Generated from "`IFS=: - echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." - if test x"$ac_file" != x-; then - configure_input="$ac_file. $configure_input" - { echo "$as_me:$LINENO: creating $ac_file" >&5 -echo "$as_me: creating $ac_file" >&6;} - fi - - case $ac_tag in - *:-:* | *:-) cat >"$tmp/stdin";; - esac - ;; - esac - - ac_dir=`$as_dirname -- "$ac_file" || -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$ac_file" : 'X\(//\)[^/]' \| \ - X"$ac_file" : 'X\(//\)$' \| \ - X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || -echo X"$ac_file" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - { as_dir="$ac_dir" - case $as_dir in #( - -*) as_dir=./$as_dir;; - esac - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { - as_dirs= - while :; do - case $as_dir in #( - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( - *) as_qdir=$as_dir;; - esac - as_dirs="'$as_qdir' $as_dirs" - as_dir=`$as_dirname -- "$as_dir" || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - test -d "$as_dir" && break - done - test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 -echo "$as_me: error: cannot create directory $as_dir" >&2;} - { (exit 1); exit 1; }; }; } - ac_builddir=. - -case "$ac_dir" in -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; -*) - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` - # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` - case $ac_top_builddir_sub in - "") ac_top_builddir_sub=. ac_top_build_prefix= ;; - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; - esac ;; -esac -ac_abs_top_builddir=$ac_pwd -ac_abs_builddir=$ac_pwd$ac_dir_suffix -# for backward compatibility: -ac_top_builddir=$ac_top_build_prefix - -case $srcdir in - .) # We are building in place. - ac_srcdir=. - ac_top_srcdir=$ac_top_builddir_sub - ac_abs_top_srcdir=$ac_pwd ;; - [\\/]* | ?:[\\/]* ) # Absolute name. - ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir - ac_abs_top_srcdir=$srcdir ;; - *) # Relative name. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_build_prefix$srcdir - ac_abs_top_srcdir=$ac_pwd/$srcdir ;; -esac -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix - - - case $ac_mode in - :F) - # - # CONFIG_FILE - # - - case $INSTALL in - [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; - *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; - esac -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF -# If the template does not know about datarootdir, expand it. -# FIXME: This hack should be removed a few years after 2.60. -ac_datarootdir_hack=; ac_datarootdir_seen= - -case `sed -n '/datarootdir/ { - p - q -} -/@datadir@/p -/@docdir@/p -/@infodir@/p -/@localedir@/p -/@mandir@/p -' $ac_file_inputs` in -*datarootdir*) ac_datarootdir_seen=yes;; -*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) - { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 -echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF - ac_datarootdir_hack=' - s&@datadir@&$datadir&g - s&@docdir@&$docdir&g - s&@infodir@&$infodir&g - s&@localedir@&$localedir&g - s&@mandir@&$mandir&g - s&\\\${datarootdir}&$datarootdir&g' ;; -esac -_ACEOF - -# Neutralize VPATH when `$srcdir' = `.'. -# Shell code in configure.ac might set extrasub. -# FIXME: do we really want to maintain this feature? -cat >>$CONFIG_STATUS <<_ACEOF - sed "$ac_vpsub -$extrasub -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF -:t -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b -s&@configure_input@&$configure_input&;t t -s&@top_builddir@&$ac_top_builddir_sub&;t t -s&@srcdir@&$ac_srcdir&;t t -s&@abs_srcdir@&$ac_abs_srcdir&;t t -s&@top_srcdir@&$ac_top_srcdir&;t t -s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t -s&@builddir@&$ac_builddir&;t t -s&@abs_builddir@&$ac_abs_builddir&;t t -s&@abs_top_builddir@&$ac_abs_top_builddir&;t t -s&@INSTALL@&$ac_INSTALL&;t t -$ac_datarootdir_hack -" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out - -test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && - { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && - { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && - { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' -which seems to be undefined. Please make sure it is defined." >&5 -echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' -which seems to be undefined. Please make sure it is defined." >&2;} - - rm -f "$tmp/stdin" - case $ac_file in - -) cat "$tmp/out"; rm -f "$tmp/out";; - *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; - esac - ;; - :H) - # - # CONFIG_HEADER - # -_ACEOF - -# Transform confdefs.h into a sed script `conftest.defines', that -# substitutes the proper values into config.h.in to produce config.h. -rm -f conftest.defines conftest.tail -# First, append a space to every undef/define line, to ease matching. -echo 's/$/ /' >conftest.defines -# Then, protect against being on the right side of a sed subst, or in -# an unquoted here document, in config.status. If some macros were -# called several times there might be several #defines for the same -# symbol, which is useless. But do not sort them, since the last -# AC_DEFINE must be honored. -ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* -# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where -# NAME is the cpp macro being defined, VALUE is the value it is being given. -# PARAMS is the parameter list in the macro definition--in most cases, it's -# just an empty string. -ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' -ac_dB='\\)[ (].*,\\1define\\2' -ac_dC=' ' -ac_dD=' ,' - -uniq confdefs.h | - sed -n ' - t rset - :rset - s/^[ ]*#[ ]*define[ ][ ]*// - t ok - d - :ok - s/[\\&,]/\\&/g - s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p - s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p - ' >>conftest.defines - -# Remove the space that was appended to ease matching. -# Then replace #undef with comments. This is necessary, for -# example, in the case of _POSIX_SOURCE, which is predefined and required -# on some systems where configure will not decide to define it. -# (The regexp can be short, since the line contains either #define or #undef.) -echo 's/ $// -s,^[ #]*u.*,/* & */,' >>conftest.defines - -# Break up conftest.defines: -ac_max_sed_lines=50 - -# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" -# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" -# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" -# et cetera. -ac_in='$ac_file_inputs' -ac_out='"$tmp/out1"' -ac_nxt='"$tmp/out2"' - -while : -do - # Write a here document: - cat >>$CONFIG_STATUS <<_ACEOF - # First, check the format of the line: - cat >"\$tmp/defines.sed" <<\\CEOF -/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def -/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def -b -:def -_ACEOF - sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS - echo 'CEOF - sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS - ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in - sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail - grep . conftest.tail >/dev/null || break - rm -f conftest.defines - mv conftest.tail conftest.defines -done -rm -f conftest.defines conftest.tail - -echo "ac_result=$ac_in" >>$CONFIG_STATUS -cat >>$CONFIG_STATUS <<\_ACEOF - if test x"$ac_file" != x-; then - echo "/* $configure_input */" >"$tmp/config.h" - cat "$ac_result" >>"$tmp/config.h" - if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then - { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 -echo "$as_me: $ac_file is unchanged" >&6;} - else - rm -f $ac_file - mv "$tmp/config.h" $ac_file - fi - else - echo "/* $configure_input */" - cat "$ac_result" - fi - rm -f "$tmp/out12" -# Compute $ac_file's index in $config_headers. -_am_stamp_count=1 -for _am_header in $config_headers :; do - case $_am_header in - $ac_file | $ac_file:* ) - break ;; - * ) - _am_stamp_count=`expr $_am_stamp_count + 1` ;; - esac -done -echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || -$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X$ac_file : 'X\(//\)[^/]' \| \ - X$ac_file : 'X\(//\)$' \| \ - X$ac_file : 'X\(/\)' \| . 2>/dev/null || -echo X$ac_file | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'`/stamp-h$_am_stamp_count - ;; - - :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 -echo "$as_me: executing $ac_file commands" >&6;} - ;; - esac - - - case $ac_file$ac_mode in - "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do - # Strip MF so we end up with the name of the file. - mf=`echo "$mf" | sed -e 's/:.*$//'` - # Check whether this is an Automake generated Makefile or not. - # We used to match only the files named `Makefile.in', but - # some people rename them; so instead we look at the file content. - # Grep'ing the first line is not enough: some people post-process - # each Makefile.in and add a new line on top of each file to say so. - # So let's grep whole file. - if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then - dirpart=`$as_dirname -- "$mf" || -$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$mf" : 'X\(//\)[^/]' \| \ - X"$mf" : 'X\(//\)$' \| \ - X"$mf" : 'X\(/\)' \| . 2>/dev/null || -echo X"$mf" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - else - continue - fi - # Extract the definition of DEPDIR, am__include, and am__quote - # from the Makefile without running `make'. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` - test -z "$DEPDIR" && continue - am__include=`sed -n 's/^am__include = //p' < "$mf"` - test -z "am__include" && continue - am__quote=`sed -n 's/^am__quote = //p' < "$mf"` - # When using ansi2knr, U may be empty or an underscore; expand it - U=`sed -n 's/^U = //p' < "$mf"` - # Find all dependency output files, they are included files with - # $(DEPDIR) in their names. We invoke sed twice because it is the - # simplest approach to changing $(DEPDIR) to its actual value in the - # expansion. - for file in `sed -n " - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do - # Make sure the directory exists. - test -f "$dirpart/$file" && continue - fdir=`$as_dirname -- "$file" || -$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$file" : 'X\(//\)[^/]' \| \ - X"$file" : 'X\(//\)$' \| \ - X"$file" : 'X\(/\)' \| . 2>/dev/null || -echo X"$file" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - { as_dir=$dirpart/$fdir - case $as_dir in #( - -*) as_dir=./$as_dir;; - esac - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { - as_dirs= - while :; do - case $as_dir in #( - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( - *) as_qdir=$as_dir;; - esac - as_dirs="'$as_qdir' $as_dirs" - as_dir=`$as_dirname -- "$as_dir" || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - test -d "$as_dir" && break - done - test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 -echo "$as_me: error: cannot create directory $as_dir" >&2;} - { (exit 1); exit 1; }; }; } - # echo "creating $dirpart/$file" - echo '# dummy' > "$dirpart/$file" - done -done - ;; - - esac -done # for ac_tag - - -{ (exit 0); exit 0; } -_ACEOF -chmod +x $CONFIG_STATUS -ac_clean_files=$ac_clean_files_save - - -# configure is writing to config.log, and then calls config.status. -# config.status does its own redirection, appending to config.log. -# Unfortunately, on DOS this fails, as config.log is still kept open -# by configure, so config.status won't be able to write to it; its -# output is simply discarded. So we exec the FD to /dev/null, -# effectively closing config.log, so it can be properly (re)opened and -# appended to by config.status. When coming back to configure, we -# need to make the FD available again. -if test "$no_create" != yes; then - ac_cs_success=: - ac_config_status_args= - test "$silent" = yes && - ac_config_status_args="$ac_config_status_args --quiet" - exec 5>/dev/null - $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false - exec 5>>config.log - # Use ||, not &&, to avoid exiting from the if with $? = 1, which - # would make configure fail if this is the last instruction. - $ac_cs_success || { (exit 1); exit 1; } -fi - - - -echo "-----------------------------------------------------------------" -echo "Following packages are now configured:" -echo "ecasound: yes (ecasound,libecasound,libecasoundc)" -echo "ecatools: yes" -if test x$pyecasound_support != xnone ; then - if test x$pyecasound_support = xc ; then - echo "pyecasound: yes (as Python C extension module)" - else - echo "pyecasound: yes (as native Python module)" - fi -else - echo "pyecasound: no" -fi -if test x$rubyecasound_support = xyes ; then - echo "rubyecasound: yes" -else - echo "rubyecasound: no" -fi -echo "libkvutils: yes" - -echo "-----------------------------------------------------------------" -echo "Compiler options:" -echo "CFLAGS: $AM_CFLAGS $CFLAGS" -echo "CXXFLAGS: $AM_CXXFLAGS $CXXFLAGS" -echo "CPPFLAGS: $AM_CPPFLAGS $CPPFLAGS" -echo "LDFLAGS: $AM_LDFLAGS $LDFLAGS" - -echo "-----------------------------------------------------------------" -echo "Following features were selected:" -if test x$include_debug = xyes ; then - echo "Debugging info: yes" -else - echo "Debugging info: no" -fi -if test x$enable_effects_d = xyes ; then - echo "Effects enabled: yes" -else - echo "Effects enabled: no" -fi -if test x$enable_largefile = xyes ; then - echo "Largefile support: yes" -else - echo "Largefile support: no" -fi -if test x$termcap_library = xtermcap ; then - echo "Termcap: termcap" -fi -if test x$termcap_library = xncurses; then - echo "Termcap: ncurses" -fi -if test x$termcap_library = xnone; then - echo "Termcap: none" -fi -if test x$enable_sysreadline = xyes ; then - echo "Use system readline: yes" -else - echo "Use system readline: no" -fi - echo "Use curses interface: $eca_platform_curses_support" -if test x$af_support = xyes ; then - echo "Libaudiofile: yes" -else - echo "Libaudiofile: no" -fi -if test x$sndfile_support = xyes ; then - echo "Libsndfile: yes" -else - echo "Libsndfile: no" -fi -if test x$alsa_support = xyes ; then - echo "ALSA support: yes" -else - echo "ALSA support: no" -fi -if test x$oss_support = xyes ; then - echo "OSS support: yes" -else - echo "OSS support: no" -fi -if test x$arts_support = xyes ; then - echo "aRts support: yes" -else - echo "aRts support: no" -fi -if test x$jack_support = xyes ; then - echo "JACK support: yes" -else - echo "JACK support: no" -fi -if test x$samplerate_support = xyes ; then - echo "Libsamplerate support yes" -else - echo "Libsamplerate support no" -fi -if test x$enable_liboil = xyes ; then - echo "Liboil support: yes" -else - echo "Liboil support: no" -fi -if test x$enable_liblo = xyes ; then - echo "Liblo (OSC) support: yes" -else - echo "Liblo (OSC) support: no" -fi - -echo "-----------------------------------------------------------------" -echo "Following directories are used:" -echo "Directory prefix: "$ECA_S_PREFIX -if test x$pyecasound_support != xnone ; then - echo "Python include dir: "$ECA_S_PYTHON_INCLUDES - echo "Python module dir: "$ECA_S_PYTHON_MODULES -fi -if test x$rubyecasound_support != xnone ; then - echo "Ruby module dir: "$ECA_S_RUBY_SITEDIR -fi -if test "x$ECA_S_EXTRA_CPPFLAGS" != "x" ; then - echo "Extra headers: "$ECA_S_EXTRA_CPPFLAGS -fi -if test "x$ECA_S_EXTRA_LIBS" != "x" ; then - echo "Extra libs: "$ECA_S_EXTRA_LIBS -fi - -echo "-------------------------------------------------------------------" -echo "Type 'make' to compile the package and 'make install' to install." -echo "Remember to use GNU Make, often installed as 'gmake'." -echo "-------------------------------------------------------------------" - diff --git a/library/ecasound/configure.in b/library/ecasound/configure.in deleted file mode 100644 index bacf6e5cc..000000000 --- a/library/ecasound/configure.in +++ /dev/null @@ -1,1486 +0,0 @@ -dnl --- -dnl configure.in for ecasound -dnl -dnl Many of the tests and macros in this file have been borrowed from -dnl other GPL-licensed packages (Alsaplayer, ALSA, SIP, PyQt, -dnl kpackage, etc, etc). -dnl -dnl refs: -dnl - http://www.gnu.org/software/autoconf/manual/ -dnl - http://www.gnu.org/software/automake/manual/ -dnl - http://www.gnu.org/software/libtool/manual/ -dnl --- - -dnl ------------------------------------------------------------------ - -dnl --- -dnl Initialize autoconf and automake -dnl --- -AC_INIT([ecasound], [2.7.2]) -AC_PREREQ(2.50) -AC_CONFIG_SRCDIR([libecasound/audiofx.h]) -AM_INIT_AUTOMAKE([1.6.1]) - -dnl FIXME: replace with AC_CONFIG_HEADERS when upgrading to a newer automake -AM_CONFIG_HEADER([config.h]) - -dnl ------------------------------------------------------------------ - -echo "------------------------------------------------------------------" -echo "1. Section: Basic setup" -echo "------------------------------------------------------------------" - -dnl --- -dnl Set library interface version numbers -dnl -dnl defines: LIBECASOUND_VERSION, LIBECASOUNDC_VERSION, LIBKVUTILS_VERSION -dnl --- - -LIBECASOUND_VERSION=22 -LIBECASOUND_VERSION_AGE=0 -LIBECASOUNDC_VERSION=2 -LIBECASOUNDC_VERSION_AGE=1 -LIBKVUTILS_VERSION=9 -LIBKVUTILS_VERSION_AGE=5 - -AC_SUBST(LIBECASOUND_VERSION) -AC_SUBST(LIBECASOUND_VERSION_AGE) -AC_SUBST(LIBECASOUNDC_VERSION) -AC_SUBST(LIBECASOUNDC_VERSION_AGE) -AC_SUBST(LIBKVUTILS_VERSION) -AC_SUBST(LIBKVUTILS_VERSION_AGE) - -AC_DEFINE_UNQUOTED([LIBECASOUND_VERSION], ${LIBECASOUND_VERSION}, [libecasound interface version]) -AC_DEFINE_UNQUOTED([LIBECASOUND_VERSION_AGE], ${LIBECASOUND_VERSION_AGE}, [libecasound interface age]) -AC_DEFINE_UNQUOTED([LIBECASOUNDC_VERSION], ${LIBECASOUNDC_VERSION}, [libecasoundc interface version]) -AC_DEFINE_UNQUOTED([LIBKVUTILS_VERSION], ${LIBKVUTILS_VERSION}, [libkvutils interface version]) -AC_DEFINE_UNQUOTED([LIBKVUTILS_VERSION_AGE], ${LIBKVUTILS_VERSION_AGE}, [libkvutils interface age]) - -dnl ------------------------------------------------------------------ - -dnl -- -dnl Initialize default flags -dnl -- -AC_PROG_CC -AC_PROG_CXX -AC_PROG_CPP -AC_LANG_CPLUSPLUS -AC_CANONICAL_HOST - -dnl --- -dnl Set compiler flags -dnl -dnl AM_xxx flags are global flags that are always utilized -dnl for compiling and linking. -dnl -dnl It is possible to add custom options by adding them -dnl to the CPPFLAGS/CFLAGS/CXXFLAGS/LDFLAGS shell variables -dnl when invoking the configure script. It is not possible -dnl to override AM_xxx flags. -dnl -dnl modifies: AM_CXXFLAGS, AM_CFLAGS -dnl --- -EXTRACPPFLAGS="-D_REENTRANT -D_XOPEN_SOURCE=500" -EXTRAGCCFLAGS="-ffast-math -fstrict-aliasing" -if test x${GXX} = xyes; then - AM_CXXFLAGS="$AM_CXXFLAGS $EXTRAGCCFLAGS" -fi -if test x${GCC} = xyes; then - AM_CFLAGS="$AM_CFLAGS $EXTRAGCCFLAGS" -fi -AM_CPPFLAGS="$AM_CPPFLAGS $EXTRACPPFLAGS" - -AC_SUBST(AM_CFLAGS) -AC_SUBST(AM_CXXFLAGS) -AC_SUBST(AM_CPPFLAGS) -AC_SUBST(AM_LDFLAGS) - -dnl ------------------------------------------------------------------ - -dnl --- -dnl Sets up default values -dnl --- - -dnl Selected the Python ECI implementation. -eca_platform_python_impl="python" - -dnl All components required by ecasound curses are found -eca_platform_curses_support="yes" - -dnl --- -dnl Sets up some operating system specific options -dnl -dnl modifies: AM_CXXFLAGS, AM_CFLAGS, AM_CPPFLAGS, AM_LIBS -dnl --- - -case "$host" in - *-*-openbsd*) - AM_CFLAGS="$AM_CFLAGS -pthread" - AM_CXXFLAGS="$AM_CXXFLAGS -pthread" - echo "Setting OpenBSD compilation options for POSIX threads" - ;; - *-*-freebsd*) - AM_CFLAGS="$AM_CFLAGS -pthread" - AM_CPPFLAGS="$AM_CPPFLAGS -D_THREAD_SAFE -D_P1003_1B_VISIBLE" - AM_CXXFLAGS="$AM_CXXFLAGS -pthread" - echo "Setting FreeBSD compilation options for POSIX threads" - ;; - *-*-solaris*) - AM_CPPFLAGS="$AM_CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS -DUSE_SOLARIS" - LIBS="$LIBS -lposix4 -lpthread" - echo "Setting Solaris compilation options for POSIX threads" - if test x$CXX = xCC; then - LIBS="$LIBS -mt" - AM_CXXFLAGS="$AM_CXXFLAGS -instances=static" - echo "Sun Workshop C++ compiler detected. Enabling static template instantation." - fi - ;; - *-*-linux-gnu) - eca_platform_python_impl="c" - ;; - alpha*-*-linux-*) - AM_CFLAGS="$AM_CFLAGS -mieee" - AM_CXXFLAGS="$AM_CXXFLAGS -mieee" - echo "Enabling fully IEEE compliant floating-point code generation on Alpha." - ;; - *darwin*) - if test "$GCC" = yes; then - AM_CPPFLAGS="$AM_CPPFLAGS -D_P1003_1B_VISIBLE" - fi - ;; - *) - echo "Using generic settings for POSIX thread support." - ;; -esac - -dnl ------------------------------------------------------------------ - -dnl --- -dnl Check pthread and rt support -dnl --- - -dnl switch to C while testing for pthread support -AC_LANG_C -AC_SEARCH_LIBS(pthread_create, pthread c_r,, - AC_MSG_ERROR([** POSIX.4 threads not installed or broken **])) -AC_SEARCH_LIBS(clock_gettime, rt) -dnl switch back to C++ -AC_LANG_CPLUSPLUS - -echo "------------------------------------------------------------------" -echo "2. Section: Options for the configure script" -echo "------------------------------------------------------------------" - -dnl ------------------------------------------------------------------ - -dnl --- -dnl Check whether to enable debugging -dnl -dnl defines: ECA_AM_DEBUG_MODE -dnl modifies: AM_CXXFLAGS, AM_CFLAGS -dnl --- - -AC_MSG_CHECKING(whether to enable debugging) -AC_ARG_ENABLE(debug, -[ --enable-debug Enable debugging (default = no)], - [ - case "$enableval" in - y | yes) - AC_MSG_RESULT(yes) - include_debug=yes - ;; - - n | no) - AC_MSG_RESULT(no) - include_debug=no - ;; - - *) - AC_MSG_ERROR([Invalid parameter value for --enable-debug: $enableval]) - ;; - esac - ] - -) -AM_CONDITIONAL(ECA_AM_DEBUG_MODE, test x$include_debug = xyes) -if test x$include_debug = xyes; then - EXTRADEBUGFLAGS="-Wall -O" - AC_DEFINE([ECA_DEBUG_MODE], 1, [debugging mode build]) -else - EXTRADEBUGFLAGS="-DNDEBUG" -fi -AM_CXXFLAGS="$AM_CXXFLAGS $EXTRADEBUGFLAGS" -AM_CFLAGS="$AM_CFLAGS $EXTRADEBUGFLAGS" - -dnl ------------------------------------------------------------------ - -dnl --- -dnl Check for experimental mode -dnl -dnl defines: ECA_FEELING_EXPERIMENTAL, ECA_AM_FEELING_EXPERIMENTAL -dnl --- -AC_ARG_ENABLE(experimental, - [ --enable-experimental Enable experimental code (default = no)], - [ - case "$enableval" in - y | yes) - AC_MSG_RESULT(yes) - experimental=yes - ;; - - n | no) - AC_MSG_RESULT(no) - experimental=no - ;; - - *) - AC_MSG_ERROR([Invalid parameter value for --enable-experimental: $enableval]) - ;; - esac - ]) -if test x$experimental = xyes; then - AC_DEFINE([ECA_FEELING_EXPERIMENTAL], 1, [enable experimental features]) -fi -AM_CONDITIONAL(ECA_AM_FEELING_EXPERIMENTAL, test x$experimental = xyes) - -dnl ------------------------------------------------------------------ - -dnl --- -dnl Sets the ecasound prefix variable -dnl -dnl defines: ECA_PREFIX, ECA_S_PREFIX -dnl --- - -dnl Define ecaprefix, prefer user-specified prefix if given -if test "x${prefix}" = "xNONE"; then - ecaprefix=${ac_default_prefix} -else - ecaprefix=${prefix} -fi -ECA_S_PREFIX=${ecaprefix} - -AC_SUBST(ECA_S_PREFIX) -AC_DEFINE_UNQUOTED([ECA_PREFIX], "${ecaprefix}", [Ecasound configure script prefix]) - -dnl ------------------------------------------------------------------ - -dnl --- -dnl Check whether to enable design-by-contract assertations -dnl -dnl modifies: AM_CXXFLAGS, AM_CFLAGS -dnl --- - -AC_MSG_CHECKING(whether to check design-by-contract assertions) -enable_dbc_d=yes -AC_ARG_ENABLE(dbc, -[ --disable-dbc Don't check design-by-contract assertions (default = check)], - [ - case "$enableval" in - y | yes) - AC_MSG_RESULT(yes) - enable_dbc_d=yes - ;; - - n | no) - AC_MSG_RESULT(no) - enable_dbc_d=no - ;; - - *) - AC_MSG_ERROR([Invalid parameter value for --enable-dbc: $enableval]) - ;; - esac - ],[ - AC_MSG_RESULT(yes) - ] -) -if test x$enable_dbc_d = xyes; then -AM_CXXFLAGS="$AM_CXXFLAGS -DENABLE_DBC" -AM_CFLAGS="$AM_CFLAGS -DENABLE_DBC" -fi - -dnl ------------------------------------------------------------------ - -dnl --- -dnl Check whether to disable effects -dnl -dnl defines: ECA_AM_DISABLE_EFFECTS, ECA_DISABLE_EFFECTS -dnl --- - -AC_MSG_CHECKING(whether to enable effects) -AC_ARG_ENABLE(effects, -[ --disable-effects Disable effects (default = no)], - [ - echo "Enableval: ${enableval}." - case "$enableval" in - y | yes) - AC_MSG_RESULT(yes) - enable_effects_d=yes - ;; - - n | no) - AC_MSG_RESULT(no) - enable_effects_d=no - ;; - - *) - AC_MSG_ERROR([Invalid parameter value for --enable-effects: $enableval]) - ;; - esac - ],[ - AC_MSG_RESULT(yes) - enable_effects_d=yes - ] -) -AM_CONDITIONAL(ECA_AM_DISABLE_EFFECTS, test x$enable_effects_d = xno) -if test x$enable_effects_d = xno; then - AC_DEFINE([ECA_DISABLE_EFFECTS], 1, [disable all effects]) -fi - -dnl ------------------------------------------------------------------ - -dnl --- -dnl Check for extra compile flags -dnl -dnl modifies: ECA_S_EXTRA_CPPFLAGS, ECA_S_EXTRA_LIBS -dnl --- - -AC_ARG_WITH(extra-cppflags, - [ --with-extra-cppflags=FLAGS pass extra flags to cpp ], - [ - ECA_S_EXTRA_CPPFLAGS="${ECA_S_EXTRA_CPPFLAGS} ${withval}" - ]) -AC_ARG_WITH(extra-libs, - [ --with-extra-libs=FLAGS pass extra flags to linker ], - [ - ECA_S_EXTRA_LIBS="${ECA_S_EXTRA_LIBS} ${withval}" - ]) - -dnl ------------------------------------------------------------------ - -dnl --- -dnl Check for LFS (--with-largefile, --disable-largefile -dnl -dnl NOTE: AC_CHECK_LARGEFILE is defined in acinlude.m4 and -dnl use AC_SYS_LARGEFILE to perform the check. -dnl -dnl Refs: -dnl http://www.gnu.org/software/hello/manual/autoconf/System-Services.html -dnl http://ac-archive.sourceforge.net/largefile/future.html -dnl -dnl defines: enable_largefile -dnl --- -AC_CHECK_LARGEFILE - -dnl ------------------------------------------------------------------ - - -dnl ------------------------------------------------------------------ - -dnl --- -dnl Check for OSS driver support -dnl -dnl defines: ECA_COMPILE_OSS, ECA_AM_COMPILE_OSS -dnl --- - -AC_CHECK_HEADER(sys/soundcard.h,oss_support=yes,oss_support=no) -AC_ARG_ENABLE(oss, - [ --disable-oss Disable OSS (default = no)], - [ - case "$enableval" in - y | yes) - AC_MSG_RESULT(yes) - oss_support=yes - ;; - - n | no) - AC_MSG_RESULT(no) - oss_support=no - ;; - - *) - AC_MSG_ERROR([Invalid parameter value for --enable-oss: $enableval]) - ;; - esac - ]) -AM_CONDITIONAL(ECA_AM_COMPILE_OSS, test x$oss_support = xyes) -if test x$oss_support = xyes; then - AC_DEFINE([ECA_COMPILE_OSS], 1, [enable OSS audio input/output]) -fi - -dnl --- -dnl Disabling OSS trigger functions -dnl -dnl defines: ECA_DISABLE_OSS_TRIGGER -dnl --- -AC_ARG_ENABLE(osstrigger, - [ --disable-osstrigger Disable the use of OSS trigger functions (default = no)], - [ - case "$enableval" in - y | yes) - AC_MSG_RESULT(yes) - osstrigger=yes - ;; - - n | no) - AC_MSG_RESULT(no) - osstrigger=no - ;; - - *) - AC_MSG_ERROR([Invalid parameter value for --enable-osstrigger: $enableval]) - ;; - esac - ]) -if test x$osstrigger = xyes; then - AC_DEFINE([ECA_DISABLE_OSS_TRIGGER], 1, [disable use of OSS trigger API]) -fi - -dnl ------------------------------------------------------------------ - -dnl -- -dnl Check for aRts support -dnl -dnl defines: ECA_AM_COMPILE_ARTS, ECA_COMPILE_ARTS -dnl modifies: ECA_S_EXTRA_CPPFLAGS, ECA_S_EXTRA_LIBS -dnl -- -AC_PATH_PROG(ARTSC_CONFIG,artsc-config,none) -if test x$ARTSC_CONFIG = xnone; then - arts_support=no -else - arts_support=yes - ECA_ARTSC_CFLAGS="`$ARTSC_CONFIG --cflags`" - ECA_ARTSC_LIBS="`$ARTSC_CONFIG --libs`" -fi - -if test x$arts_support = xyes; then - old_LIBS=$LIBS - LIBS="$LIBS $ECA_ARTSC_LIBS" - old_CFLAGS=$CFLAGS - CFLAGS="$CFLAGS $ECA_ARTSC_CFLAGS" - AC_LANG_C - AC_TRY_LINK( - [ #include ], - [ - arts_init(); - return 0; - ], - [ /bin/true ], - [ arts_support=no ] - ) - AC_LANG_CPLUSPLUS - LIBS=${old_LIBS} - CFLAGS=${old_CFLAGS} -fi - -AC_ARG_ENABLE(arts, - [ --disable-arts Disable aRts support (default = no)], - [ - case "$enableval" in - y | yes) - AC_MSG_RESULT(yes) - arts_support=yes - ;; - - n | no) - AC_MSG_RESULT(no) - arts_support=no - ;; - - *) - AC_MSG_ERROR([Invalid parameter value for --enable-arts: $enableval]) - ;; - esac - ]) -AM_CONDITIONAL(ECA_AM_COMPILE_ARTS, test x$arts_support = xyes) -if test x$arts_support = xyes; then - ECA_S_EXTRA_CPPFLAGS="${ECA_S_EXTRA_CPPFLAGS} ${ECA_ARTSC_CFLAGS}" - ECA_S_EXTRA_LIBS="${ECA_S_EXTRA_LIBS} ${ECA_ARTSC_LIBS}" - AC_DEFINE([ECA_COMPILE_ARTS], 1, [enable aRts support]) -fi - -dnl ------------------------------------------------------------------ - -dnl -- -dnl Check for libsamplerate -dnl -dnl defines: ECA_AM_COMPILE_SAMPLERATE, ECA_COMPILE_SAMPLERATE -dnl modifies: ECA_S_EXTRA_CPPFLAGS, ECA_S_EXTRA_LIBS -dnl -- -AC_CHECK_HEADER(samplerate.h,samplerate_support=yes,samplerate_support=no) -AC_ARG_WITH(libsamplerate, - [ --with-libsamplerate=DIR Compile against libsamplerate installed in DIR], - [ - ECA_SAMPLERATE_LIBS="-L${withval}/lib" - ECA_SAMPLERATE_INCLUDES="-I${withval}/include" - samplerate_support=yes - ]) -AC_ARG_ENABLE(libsamplerate, - [ --disable-libsamplerate Disable libsamplerate support (default = no)], - [ - case "$enableval" in - y | yes) - AC_MSG_RESULT(yes) - samplerate_support=yes - ;; - - n | no) - AC_MSG_RESULT(no) - samplerate_support=no - ;; - - *) - AC_MSG_ERROR([Invalid parameter value for --enable-samplerate: $enableval]) - ;; - esac - ]) -AM_CONDITIONAL(ECA_AM_COMPILE_SAMPLERATE, test x$samplerate_support = xyes) - -if test x$samplerate_support = xyes; then - ECA_S_EXTRA_CPPFLAGS="${ECA_S_EXTRA_CPPFLAGS} ${ECA_SAMPLERATE_INCLUDES}" - ECA_SAMPLERATE_LIBS="${ECA_SAMPLERATE_LIBS} -lsamplerate" - ECA_S_EXTRA_LIBS="${ECA_S_EXTRA_LIBS} ${ECA_SAMPLERATE_LIBS}" - AC_DEFINE([ECA_COMPILE_SAMPLERATE], 1, [enable libsamplerate support]) -fi - -dnl ------------------------------------------------------------------ - -dnl -- -dnl Checks for pyecasound -dnl -dnl defines: ECA_S_PYTHON_INCLUDES, ECA_S_PYTHON_DLMODULES, -dnl ECA_AM_PYECASOUND_CEXT, ECA_AM_PYECASOUND_INSTALL -dnl -- - -dnl default impl depends on target platform -pyecasound_support=${eca_platform_python_impl} - -AC_ARG_ENABLE(pyecasound, - [ --enable-pyecasound Enable compilation of pyecasound (default = python)], - [ - case "$enableval" in - y | yes) - pyecasound_support=c - ;; - - n | no | none) - pyecasound_support=none - ;; - - python) - pyecasound_support=python - ;; - - c) - pyecasound_support=c - ;; - - *) - pyecasound_support=python - ;; - esac - ]) - -dnl -- -dnl Python interpreter and installation prefix - -AC_PATH_PROG(PYTHONPATH,python,none) -if test x$PYTHONPATH = xnone; then - pyecasound_support=none - python_install_prefix="" -else - python_install_prefix=`python -c "import sys; print (sys.prefix)"` -fi - -dnl -- -dnl Python header files - -ECA_S_PYTHON_INCLUDES= -AC_MSG_CHECKING([for Python include files]) - -AC_ARG_WITH(python-includes, [ --with-python-includes=DIR Python include files are in DIR]) -if test ! "X$with_python_includes" = "X" -then - python_incdirs=$with_python_includes -else - python_incdirs="/usr/local/include /usr/include" - dnl -- Double-brackets to espace the real brackets - python_incdirsmore=`python -c "import sys; print (sys.prefix + '/include/python' + sys.version[[:3]])"` - python_incdirs="$python_incdirs $python_incdirsmore" -fi - -for d in $python_incdirs -do - if test -r $d/Python.h - then - ECA_S_PYTHON_INCLUDES=$d - break - fi -done - -AC_SUBST(ECA_S_PYTHON_INCLUDES) -if test "X$ECA_S_PYTHON_INCLUDES" = "X" -then - AC_MSG_WARN([Python.h not found]) - if test x${pyecasound_support} = xc; then - dnl -- No python headers found, cannot compile C extension - pyecasound_support=python - fi -else - AC_MSG_RESULT($ECA_S_PYTHON_INCLUDES) -fi - -dnl -- -dnl Python modules - -AC_MSG_CHECKING([for Python libraries]) -AC_ARG_WITH(python-modules, - [ --with-python-modules=DIR install Python modules in DIR]) - -if test "X$with_python_modules" = "X" -then - if test x${python_install_prefix} != x${ecaprefix} -a \ - x${ecaprefix} != x/usr -a \ - x${ecaprefix} != x/usr/local ; then - pyecasound_support=none - AC_MSG_RESULT([none]) - if test x$PYTHONPATH != xnone; then - python_prefix_tmp=`python -c "import sys; print (sys.prefix + '/lib/python' + sys.version[[:3]])"` - else - python_prefix_tmp="DIR" - fi - AC_MSG_WARN([ - *** - *** Python modules won't be installed as the module install prefix does - *** not match ecasound's build prefix! To override, set python - *** module directory explicitly (for example - *** "--with-python-modules=${python_prefix_tmp}"). - *** - ]) - else - pymoddirs="/usr/local/lib /usr/lib" - dnl -- Double-brackets to espace the real brackets - pymoddirsmore=`python -c "import sys; print (sys.prefix + '/lib/python' + sys.version[[:3]])"` - pymoddirs="$pymoddirs $pymoddirsmore" - AC_MSG_RESULT($pymoddirs) - fi -else - pymoddirs=$with_python_modules - AC_MSG_RESULT($pymoddirs) -fi - -dnl --- -dnl a hack to support broken debian python installs - -AC_ARG_ENABLE(python-force-site-packages, - [ --enable-python-force-site-packages force install Python modules into site-packages even when it doesn't exist [default=no] ], - [ - case "$enableval" in - y | yes) - AC_MSG_RESULT(yes) - python_force_site_packages=yes - ;; - - n | no) - AC_MSG_RESULT(no) - python_force_site_packages=no - ;; - - *) - AC_MSG_ERROR([Invalid parameter value for --enable-python-force-site-packages: $enableval]) - ;; - esac - ]) - -AC_FIND_FILE(lib-dynload,$pymoddirs,ECA_S_PYTHON_MODULES) -dnl Use site-packages in preference if it is there. -if test -d $ECA_S_PYTHON_MODULES/site-packages -o "X$python_force_site_packages" = "Xyes" -then - ECA_S_PYTHON_MODULES=$ECA_S_PYTHON_MODULES/site-packages - ECA_S_PYTHON_DLMODULES=$ECA_S_PYTHON_MODULES -else - ECA_S_PYTHON_DLMODULES=$ECA_S_PYTHON_MODULES/lib-dynload -fi -AC_SUBST(ECA_S_PYTHON_MODULES) -AC_SUBST(ECA_S_PYTHON_DLMODULES) - -dnl if test x$disable_pyecasound = xyes ; then pyecasound_support=no ; fi -AM_CONDITIONAL(ECA_AM_PYECASOUND_CEXT, test x$pyecasound_support = xc) -AM_CONDITIONAL(ECA_AM_PYECASOUND_INSTALL, test x$pyecasound_support != xnone) - -dnl ------------------------------------------------------------------ - -dnl -- -dnl Checks for rubyecasound -dnl -dnl defines: ECA_S_RUBY_SITEDIR, -dnl ECA_AM_RUBYECASOUND_INSTALL -dnl -- - -dnl default to enabled if Ruby interpreter available -rubyecasound_support=yes - -AC_ARG_ENABLE(rubyecasound, - [ --enable-rubyecasound Enable rubyecasound (default = yes)], - [ - case "$enableval" in - y | yes) - rubyecasound_support=yes - ;; - - n | no | none) - rubyecasound_support=no - ;; - - *) - rubyecasound_support=no - ;; - esac - ]) - -dnl -- -dnl Ruby interpreter and installation prefix - -AC_PATH_PROG(RUBYPATH,ruby,none) -if test x$RUBYPATH = xnone; then - rubyecasound_support=no - ECA_S_RUBY_SITEDIR="" -else - ECA_S_RUBY_SITEDIR="`ruby -e 'require "rbconfig"; include Config; print CONFIG[["sitedir"]] + "/" + CONFIG[["MAJOR"]] + "." + CONFIG[["MINOR"]]'`" -fi - -AC_SUBST(ECA_S_RUBY_SITEDIR) -AM_CONDITIONAL(ECA_AM_RUBYECASOUND_INSTALL, test x$rubyecasound_support = xyes) - -dnl ------------------------------------------------------------------ - -echo "------------------------------------------------------------------" -echo "3. Section: Programs " -echo "------------------------------------------------------------------" - -dnl ------------------------------------------------------------------ - -AC_CHECK_CXX_NAMESPACE_SUPPORT - -dnl ------------------------------------------------------------------ - -dnl -- -dnl Autotools and libtool -dnl -- -AC_LANG_C -dnl do not add 'AC_DISABLE_SHARED' as pyecasound needs shared -dnl objects at link time (note that all the major libs are static) -AC_PROG_LIBTOOL -AC_LANG_CPLUSPLUS - -dnl ------------------------------------------------------------------ - -echo "------------------------------------------------------------------" -echo "4. Section: Libraries" -echo "------------------------------------------------------------------" - -dnl --- -dnl Check system libraries -dnl --- - -dnl switch to C for testing -AC_LANG_C -dnl see also section 7 - functions -AC_SEARCH_LIBS(inet_ntoa, socket nsl,, AC_MSG_ERROR([*** required inet_ntoa() function not found! ***])) -AC_SEARCH_LIBS(nanosleep, rt posix4) -AC_SEARCH_LIBS(sched_setscheduler, rt posix4) -AC_SEARCH_LIBS(socket, socket nsl,, AC_MSG_ERROR([*** required socket() function not found! ***])) -AC_SEARCH_LIBS(sin, m,, AC_MSG_ERROR([*** required sin() function not found! ***])) -AC_SEARCH_LIBS(dlopen, dl,, AC_MSG_ERROR([*** required dlopen() function not found! ***])) -dnl switch back to C++ -AC_LANG_CPLUSPLUS - -dnl ------------------------------------------------------------------ - -dnl --- -dnl Checks for ncurses/termcap -dnl -dnl defines: ECA_AM_USE_NCURSES, ECA_AM_USE_TERMCAP, ECA_USE_NCURSES_H, -dnl ECA_USE_CURSES_H, ECA_HAVE_NCURSES_CURSES_H -dnl --- - -dnl switch to C for testing -AC_LANG_C - -AC_CHECK_LIB(ncurses, main, termcap_library=ncurses, - AC_CHECK_LIB(termcap, main, termcap_library=termcap, - termcap_library=none)) - -AC_ARG_ENABLE(ncurses, - [ --disable-ncurses Disable ncurses (default = no)], - [ - case "$enableval" in - y | yes) - AC_MSG_RESULT(yes) - termcap_library=ncurses - ;; - - n | no) - AC_MSG_RESULT(no) - termcap_library=none - ;; - - *) - AC_MSG_ERROR([Invalid parameter value for --enable-ncurses: $enableval]) - ;; - esac - ]) - -AM_CONDITIONAL(ECA_AM_USE_NCURSES, test $termcap_library = ncurses) -AM_CONDITIONAL(ECA_AM_USE_TERMCAP, test $termcap_library = termcap) - -if test x$termcap_library = xtermcap; then - AC_CHECK_HEADER(curses.h, - AC_DEFINE([ECA_USE_CURSES_H], 1, [use ncurses.h for curses interface]), - AC_MSG_ERROR([*** curses.h not found! Try with "./configure --disable-ncurses". ***])) -fi - -if test x$termcap_library = xncurses; then - AC_CHECK_HEADER(ncurses/ncurses.h, - AC_DEFINE([ECA_USE_NCURSES_NCURSES_H], 1, [ncurses headers are installed in ncurses subdir ]), - [ - AC_CHECK_HEADER(ncurses.h, - AC_DEFINE([ECA_USE_NCURSES_H], 1, [use curses.h for curses interface]), - AC_MSG_ERROR([*** Neither ncurses.h or ncurses/ncurses.h found! Try with "./configure --disable-ncurses". ***])) - ]) -fi - -if test $termcap_library = xnone ; then - eca_platform_curses_support=no -fi - -dnl switch back to C++ -AC_LANG_CPLUSPLUS - -dnl ------------------------------------------------------------------ - -dnl --- -dnl Audiofile library -dnl -dnl defines: ECA_AM_COMPILE_AUDIOFILE, ECA_COMPILE_AUDIOFILE -dnl modifies: ECA_S_EXTRA_LIBS -dnl --- -AC_CHECK_LIB(audiofile,main,af_support=yes,af_support=no) -AC_ARG_ENABLE(audiofile, - [ --disable-audiofile Disable libaudiofile (default = no)], - [ - case "$enableval" in - y | yes) - AC_MSG_RESULT(yes) - af_support=yes - ;; - - n | no) - AC_MSG_RESULT(no) - af_support=no - ;; - - *) - AC_MSG_ERROR([Invalid parameter value for --enable-audiofile: $enableval]) - ;; - esac - ] -) -AM_CONDITIONAL(ECA_AM_COMPILE_AUDIOFILE, test x$af_support = xyes) - -if test x$af_support = xyes; then - ECA_S_EXTRA_LIBS="${ECA_S_EXTRA_LIBS} -laudiofile" - AC_DEFINE([ECA_COMPILE_AUDIOFILE], 1, [enable libaudiofile support]) -fi - -dnl ------------------------------------------------------------------ - -dnl --- -dnl Libsndfile support -dnl -dnl defines: ECA_AM_COMPILE_SNDFILE, ECA_COMPILE_SNDFILE -dnl --- -AC_CHECK_LIB(sndfile,main,sndfile_support=yes,sndfile_support=no) -AC_ARG_ENABLE(sndfile, - [ --disable-sndfile Disable libsndfile (default = no)], - [ - case "$enableval" in - y | yes) - AC_MSG_RESULT(yes) - sndfile_support=yes - ;; - - n | no) - AC_MSG_RESULT(no) - sndfile_support=no - ;; - - *) - AC_MSG_ERROR([Invalid parameter value for --enable-sndfile: $enableval]) - ;; - esac - ] -) - -if test x$sndfile_support = xyes; then - AC_LANG_C - AC_TRY_LINK( - [ #include ], - [ - SF_INFO sfinfo; - sfinfo.frames = 0; - return 0; - ], - [ /bin/true ], - [ - sndfile_support=no - AC_MSG_WARN([Found an old version of libsndfile. Libsndfile 1.0.0 or newer is required.]) - ] - ) - AC_LANG_CPLUSPLUS -fi - -AM_CONDITIONAL(ECA_AM_COMPILE_SNDFILE, test x$sndfile_support = xyes) - -if test x$sndfile_support = xyes; then - ECA_S_EXTRA_LIBS="${ECA_S_EXTRA_LIBS} -lsndfile" - AC_DEFINE([ECA_COMPILE_SNDFILE], 1, [enable libsndfile support]) -fi - -dnl ------------------------------------------------------------------ - -dnl --- -dnl Check for ALSA driver support -dnl -dnl defines: ECA_AM_COMPILE_ALSA -dnl --- - -AC_ARG_ENABLE(alsa, - [ --disable-alsa Disable ALSA (default = no)], - [ - case "$enableval" in - y | yes) - AC_MSG_RESULT(yes) - alsa_support=yes - ;; - - n | no) - AC_MSG_RESULT(no) - alsa_support=no - ;; - - *) - AC_MSG_ERROR([Invalid parameter value for --enable-alsa: $enableval]) - ;; - esac - ]) -if test x$alsa_support = x; then - AC_CHECK_LIB(asound, snd_pcm_delay, - alsa_support=yes, - [ - alsa_support=no - AC_MSG_WARN([ALSA version older than 0.9.0 not supported - update to a newer version or compile with --disable-alsa]) - ]) -fi - -AM_CONDITIONAL(ECA_AM_COMPILE_ALSA, test x$alsa_support = xyes) - -if test x$alsa_support = xyes; then - ECA_S_EXTRA_LIBS="${ECA_S_EXTRA_LIBS} -lasound" - AC_DEFINE([ECA_COMPILE_ALSA], 1, [enable ALSA support]) -fi - -dnl ------------------------------------------------------------------ - -AC_CHECK_JACK -ECA_S_EXTRA_CPPFLAGS="${ECA_S_EXTRA_CPPFLAGS} ${ECA_S_JACK_INCLUDES}" -ECA_S_EXTRA_LIBS="${ECA_S_EXTRA_LIBS} ${ECA_S_JACK_LIBS}" - -dnl ------------------------------------------------------------------ - -dnl --- -dnl Check for already installed libkvutils -dnl -dnl defines: ECA_AM_KVUTILS_INSTALLED -dnl --- -AC_CHECK_LIB(kvutils,main,kvutils_installed=yes,kvutils_installed=no) -AM_CONDITIONAL(ECA_AM_KVUTILS_INSTALLED, test x$kvutils_installed = xyes) - -dnl ------------------------------------------------------------------ - -dnl -- -dnl Check whether to use an already installed readline library -dnl -dnl defines: ECA_AM_SYSTEM_READLINE, ECA_S_READLINE_INCLUDES, -dnl ECA_S_READLINE_LIBS -dnl -- - -AC_MSG_CHECKING(whether to build with system readline) -AC_ARG_ENABLE(sys_readline, - [ --enable-sys-readline Compile with system readline (default=yes)], - [ - case "$enableval" in - y | yes) - AC_MSG_RESULT(yes) - enable_sysreadline=yes - ;; - - n | no) - AC_MSG_RESULT(no) - enable_sysreadline=no - ;; - - *) - AC_MSG_ERROR([Invalid parameter value for --enable-sys-readline: $enableval]) - ;; - esac - ], - [ - AC_MSG_RESULT(yes) - enable_sysreadline=yes - ] -) - -dnl Check for readline.h or readline/readline.h (same with history.h) -dnl and for readline and history libraries - -if test x$enable_sysreadline = xyes; then - AC_CHECK_HEADER(readline.h, ECA_S_READLINE_INCLUDES=/usr/include, - [AC_CHECK_HEADER(readline/readline.h, - ECA_S_READLINE_INCLUDES=/usr/include/readline, - [ - AC_MSG_WARN([*** readline headers not installed ***]) - enable_sysreadline=no - ])]) - - AC_CHECK_HEADER(history.h,, - [AC_CHECK_HEADER(readline/history.h,, - [ - AC_MSG_WARN([*** readline history headers not installed ***]) - enable_sysreadline=no - ]) - ]) - - if test x${termcap_library} = xnone; then - readline_extra_libs=""; - else - readline_extra_libs="-l${termcap_library}" - fi - - AC_CHECK_LIB(readline, main, ECA_S_READLINE_LIBS="-lreadline", - [ - AC_MSG_WARN([*** readline support not installed ***]) - enable_sysreadline=no - ], ${readline_extra_libs}) - - AC_CHECK_LIB(history, main, ECA_S_READLINE_LIBS="${ECA_S_READLINE_LIBS} -lhistory", - [ - AC_MSG_WARN([*** readline support not installed ***]) - enable_sysreadline=no - ], ${readline_extra_libs}) - -else - ECA_S_READLINE_INCLUDES="" - ECA_S_READLINE_LIBS="" -fi - -# if no readline library is found, disable platform-curses toggle -if test $enable_sysreadline = no ; then - eca_platform_curses_support=no -fi - -AM_CONDITIONAL(ECA_AM_SYSTEM_READLINE, test x$enable_sysreadline = xyes) -AC_SUBST(ECA_S_READLINE_INCLUDES) -AC_SUBST(ECA_S_READLINE_LIBS) - -dnl ------------------------------------------------------------------ - -dnl -- -dnl Check for liboil (optional) -dnl -- - -PKG_CHECK_MODULES([LIBOIL], [liboil-0.3], HAVE_LIBOIL=yes, HAVE_LIBOIL=no) -AC_MSG_CHECKING(whether to use liboil) -AC_ARG_ENABLE(liboil, - [ --enable-liboil Use liboil if available (default=no)], - [ - case "$enableval" in - y | yes) - if test "x${HAVE_LIBOIL}" = xyes ; then - AC_MSG_RESULT(yes) - enable_liboil=yes - else - AC_MSG_RESULT(no) - AC_MSG_WARN([--enable-liboil given but liboil library not available]) - fi - ;; - - n | no) - AC_MSG_RESULT(no) - enable_liboil=no - ;; - - *) - AC_MSG_ERROR([Invalid parameter value for --enable-liboil: $enableval]) - ;; - esac - ], - [ - if test "x${HAVE_LIBOIL}" = xyes ; then - AC_MSG_RESULT(yes) - enable_liboil=yes - else - AC_MSG_RESULT(no) - AC_MSG_WARN([disabling liboil as library devel files are not available]) - fi - ] -) - -if test "x${enable_liboil}" = "xyes" ; then - ECA_S_EXTRA_CPPFLAGS="${ECA_S_EXTRA_CPPFLAGS} ${LIBOIL_CFLAGS}" - ECA_S_EXTRA_LIBS="${ECA_S_EXTRA_LIBS} ${LIBOIL_LIBS}" - AC_DEFINE([ECA_USE_LIBOIL], 1, [Use liboil]) -fi - -dnl ------------------------------------------------------------------ - -dnl -- -dnl Check for liblo (optional) -dnl -- - -PKG_CHECK_MODULES([LIBLO], [liblo], HAVE_LIBLO=yes, HAVE_LIBLO=no) -AC_MSG_CHECKING(whether to use liblo for OSC support) -AC_ARG_ENABLE(liblo, - [ --enable-liblo Use liblo if available (default=yes)], - [ - case "$enableval" in - y | yes) - if test "x${HAVE_LIBLO}" = xyes ; then - AC_MSG_RESULT(yes) - enable_liblo=yes - else - AC_MSG_RESULT(no) - AC_MSG_WARN([--enable-liblo given but liblo library not available]) - fi - ;; - - n | no) - AC_MSG_RESULT(no) - enable_liblo=no - ;; - - *) - AC_MSG_ERROR([Invalid parameter value for --enable-liblo: $enableval]) - ;; - esac - ], - [ - enable_liblo=${HAVE_LIBLO} - AC_MSG_RESULT(${enable_liblo}) - ] -) - -if test "x${enable_liblo}" = "xyes" ; then - ECA_S_EXTRA_CPPFLAGS="${ECA_S_EXTRA_CPPFLAGS} ${LIBLO_CFLAGS}" - ECA_S_EXTRA_LIBS="${ECA_S_EXTRA_LIBS} ${LIBLO_LIBS}" - AC_DEFINE([ECA_USE_LIBLO], 1, [Use liblo for OSC support]) -fi - -dnl ------------------------------------------------------------------ - -dnl All non-std external libraries that libecasound depends on -AC_SUBST(ECA_S_EXTRA_CPPFLAGS) -AC_SUBST(ECA_S_EXTRA_LIBS) - -dnl ------------------------------------------------------------------ - -echo "------------------------------------------------------------------" -echo "5. Section: Headers" -echo "------------------------------------------------------------------" - -dnl ------------------------------------------------------------------ - -dnl --- -dnl Checks for system header files. -dnl --- -AC_HEADER_TIME -dnl Note! Header filenames must be on the same line! -AC_CHECK_HEADERS(dlfcn.h errno.h fcntl.h regex.h signal.h unistd.h sys/poll.h sys/stat.h sys/socket.h sys/time.h sys/types.h sys/wait.h sys/select.h,, - AC_MSG_ERROR([*** not all required header files were found ***])) -AC_CHECK_HEADERS(execinfo.h features.h inttypes.h locale.h ladspa.h sched.h stdint.h sys/mman.h termios.h) - -dnl ------------------------------------------------------------------ - -dnl --- -dnl C++ specific checks -dnl --- -dnl AC_HEADER_STDC -AC_HEADER_STDC -dnl --- AC_CHECK_HEADER(stl.h,, -dnl --- AC_MSG_WARN([** C++/STL header files not found! ***])) -AC_LANG_CPLUSPLUS -AC_CHECK_HEADER(map,nostlmap=0,nostlmap=1) -if test "x$nostlmap" = "x1" ; then - AC_MSG_ERROR([C++ header files not found! Searched for '' (STL).]) -fi - -dnl ------------------------------------------------------------------ - -echo "------------------------------------------------------------------" -echo "6. Section: Typedefs and structures" -echo "------------------------------------------------------------------" - -dnl --- -dnl Checks for typedefs, structures, and compiler characteristics. -dnl --- - -AC_LANG_C -dnl AC_C_CONST -AC_C_BIGENDIAN -AC_TYPE_SIZE_T -AC_LANG_CPLUSPLUS - -dnl ------------------------------------------------------------------ - -echo "------------------------------------------------------------------" -echo "7. Section: Functions" -echo "------------------------------------------------------------------" - -dnl --- -dnl Checks for functions. -dnl --- -AC_FUNC_MMAP -AC_CHECK_FUNCS(execvp gettimeofday pthread_mutexattr_init,, - AC_MSG_ERROR([*** not all required library functions were found ***])) - -AC_CHECK_FUNCS(clock_gettime) -AC_CHECK_FUNCS(mlockall) -AC_CHECK_FUNCS(munlockall) -AC_CHECK_FUNCS(nanosleep) -AC_CHECK_FUNCS(pause) -AC_CHECK_FUNCS(posix_memalign) -AC_CHECK_FUNCS(pthread_self) -AC_CHECK_FUNCS(pthread_getschedparam) -AC_CHECK_FUNCS(pthread_setschedparam) -AC_CHECK_FUNCS(pthread_sigmask) -AC_CHECK_FUNCS(pthread_kill) -AC_CHECK_FUNCS(sched_get_priority_max) -AC_CHECK_FUNCS(sched_getparam) -AC_CHECK_FUNCS(sched_getscheduler) -AC_CHECK_FUNCS(sched_setscheduler) -AC_CHECK_FUNCS(setlocale) -AC_CHECK_FUNCS(sigprocmask) -AC_CHECK_FUNCS(sigwait) -AC_CHECK_FUNCS(usleep) - -dnl ------------------------------------------------------------------ - -dnl --- -dnl Check whether to disable all use of shared libs -dnl -dnl Note! Must be run after all other autoconf tests as -dnl 'ld' doesn't understand -all-static. -dnl -dnl defines: ECA_STATIC_ONLY, ECA_AM_STATIC_ONLY -dnl modifies: AM_CXXFLAGS, AM_CFLAGS, AM_LDFLAGS -dnl --- -AC_ARG_ENABLE(all-static, - [ --enable-all-static Build only static binaries (default = no)], - [ - case "$enableval" in - y | yes) - AC_MSG_RESULT(yes) - enable_all_static=yes - ;; - - n | no) - AC_MSG_RESULT(no) - enable_all_static=no - ;; - - *) - AC_MSG_ERROR([Invalid parameter value for --enable-all-static: $enableval]) - ;; - esac - ]) -if test x$enable_all_static = xyes; then - AC_DEFINE([ECA_ALL_STATIC], 1, [disable all use of shared libs]) - AM_CXXFLAGS="$AM_CXXFLAGS -static" - AM_CFLAGS="$AM_CFLAGS -static" - AM_LDFLAGS="$AM_LDFLAGS -Bstatic -all-static" -fi -AM_CONDITIONAL(ECA_AM_ALL_STATIC, test x$enable_all_static = xyes) - -dnl ------------------------------------------------------------------ - -dnl --- -dnl Checks for platform options -dnl --- - -if test $eca_platform_curses_support == yes ; then - AC_DEFINE([ECA_PLATFORM_CURSES], 1, [enable ecasound curses console interface]) -fi - -dnl ------------------------------------------------------------------ - -echo "------------------------------------------------------------------" -echo "8. Section: Output" -echo "------------------------------------------------------------------" - -dnl --- -dnl Create output files -dnl --- - -AC_OUTPUT([ -Makefile -ecasound.spec -libecasound/Makefile -libecasound/libecasound-config -libecasound/plugins/Makefile -libecasoundc/Makefile -libecasoundc/libecasoundc-config -pyecasound/Makefile -rubyecasound/Makefile -ecasound/Makefile -ecatools/Makefile -kvutils/Makefile -Documentation/Makefile -Documentation/users_guide/Makefile -Documentation/programmers_guide/Makefile -examples/Makefile -]) - -dnl --- -dnl Print summary of the configured options -dnl --- - -echo "-----------------------------------------------------------------" -echo "Following packages are now configured:" -echo "ecasound: yes (ecasound,libecasound,libecasoundc)" -echo "ecatools: yes" -if test x$pyecasound_support != xnone ; then - if test x$pyecasound_support = xc ; then - echo "pyecasound: yes (as Python C extension module)" - else - echo "pyecasound: yes (as native Python module)" - fi -else - echo "pyecasound: no" -fi -if test x$rubyecasound_support = xyes ; then - echo "rubyecasound: yes" -else - echo "rubyecasound: no" -fi -echo "libkvutils: yes" - -echo "-----------------------------------------------------------------" -echo "Compiler options:" -echo "CFLAGS: $AM_CFLAGS $CFLAGS" -echo "CXXFLAGS: $AM_CXXFLAGS $CXXFLAGS" -echo "CPPFLAGS: $AM_CPPFLAGS $CPPFLAGS" -echo "LDFLAGS: $AM_LDFLAGS $LDFLAGS" - -echo "-----------------------------------------------------------------" -echo "Following features were selected:" -if test x$include_debug = xyes ; then - echo "Debugging info: yes" -else - echo "Debugging info: no" -fi -if test x$enable_effects_d = xyes ; then - echo "Effects enabled: yes" -else - echo "Effects enabled: no" -fi -if test x$enable_largefile = xyes ; then - echo "Largefile support: yes" -else - echo "Largefile support: no" -fi -if test x$termcap_library = xtermcap ; then - echo "Termcap: termcap" -fi -if test x$termcap_library = xncurses; then - echo "Termcap: ncurses" -fi -if test x$termcap_library = xnone; then - echo "Termcap: none" -fi -if test x$enable_sysreadline = xyes ; then - echo "Use system readline: yes" -else - echo "Use system readline: no" -fi - echo "Use curses interface: $eca_platform_curses_support" -if test x$af_support = xyes ; then - echo "Libaudiofile: yes" -else - echo "Libaudiofile: no" -fi -if test x$sndfile_support = xyes ; then - echo "Libsndfile: yes" -else - echo "Libsndfile: no" -fi -if test x$alsa_support = xyes ; then - echo "ALSA support: yes" -else - echo "ALSA support: no" -fi -if test x$oss_support = xyes ; then - echo "OSS support: yes" -else - echo "OSS support: no" -fi -if test x$arts_support = xyes ; then - echo "aRts support: yes" -else - echo "aRts support: no" -fi -if test x$jack_support = xyes ; then - echo "JACK support: yes" -else - echo "JACK support: no" -fi -if test x$samplerate_support = xyes ; then - echo "Libsamplerate support yes" -else - echo "Libsamplerate support no" -fi -if test x$enable_liboil = xyes ; then - echo "Liboil support: yes" -else - echo "Liboil support: no" -fi -if test x$enable_liblo = xyes ; then - echo "Liblo (OSC) support: yes" -else - echo "Liblo (OSC) support: no" -fi - -echo "-----------------------------------------------------------------" -echo "Following directories are used:" -echo "Directory prefix: "$ECA_S_PREFIX -if test x$pyecasound_support != xnone ; then - echo "Python include dir: "$ECA_S_PYTHON_INCLUDES - echo "Python module dir: "$ECA_S_PYTHON_MODULES -fi -if test x$rubyecasound_support != xnone ; then - echo "Ruby module dir: "$ECA_S_RUBY_SITEDIR -fi -if test "x$ECA_S_EXTRA_CPPFLAGS" != "x" ; then - echo "Extra headers: "$ECA_S_EXTRA_CPPFLAGS -fi -if test "x$ECA_S_EXTRA_LIBS" != "x" ; then - echo "Extra libs: "$ECA_S_EXTRA_LIBS -fi - -echo "-------------------------------------------------------------------" -echo "Type 'make' to compile the package and 'make install' to install." -echo "Remember to use GNU Make, often installed as 'gmake'." -echo "-------------------------------------------------------------------" - -dnl ------------------------------------------------------------------ -dnl X. Section: End -dnl ------------------------------------------------------------------ diff --git a/library/ecasound/depcomp b/library/ecasound/depcomp deleted file mode 100755 index 04701da53..000000000 --- a/library/ecasound/depcomp +++ /dev/null @@ -1,530 +0,0 @@ -#! /bin/sh -# depcomp - compile a program generating dependencies as side-effects - -scriptversion=2005-07-09.11 - -# Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc. - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -# 02110-1301, USA. - -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - -# Originally written by Alexandre Oliva . - -case $1 in - '') - echo "$0: No command. Try \`$0 --help' for more information." 1>&2 - exit 1; - ;; - -h | --h*) - cat <<\EOF -Usage: depcomp [--help] [--version] PROGRAM [ARGS] - -Run PROGRAMS ARGS to compile a file, generating dependencies -as side-effects. - -Environment variables: - depmode Dependency tracking mode. - source Source file read by `PROGRAMS ARGS'. - object Object file output by `PROGRAMS ARGS'. - DEPDIR directory where to store dependencies. - depfile Dependency file to output. - tmpdepfile Temporary file to use when outputing dependencies. - libtool Whether libtool is used (yes/no). - -Report bugs to . -EOF - exit $? - ;; - -v | --v*) - echo "depcomp $scriptversion" - exit $? - ;; -esac - -if test -z "$depmode" || test -z "$source" || test -z "$object"; then - echo "depcomp: Variables source, object and depmode must be set" 1>&2 - exit 1 -fi - -# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. -depfile=${depfile-`echo "$object" | - sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} -tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} - -rm -f "$tmpdepfile" - -# Some modes work just like other modes, but use different flags. We -# parameterize here, but still list the modes in the big case below, -# to make depend.m4 easier to write. Note that we *cannot* use a case -# here, because this file can only contain one case statement. -if test "$depmode" = hp; then - # HP compiler uses -M and no extra arg. - gccflag=-M - depmode=gcc -fi - -if test "$depmode" = dashXmstdout; then - # This is just like dashmstdout with a different argument. - dashmflag=-xM - depmode=dashmstdout -fi - -case "$depmode" in -gcc3) -## gcc 3 implements dependency tracking that does exactly what -## we want. Yay! Note: for some reason libtool 1.4 doesn't like -## it if -MD -MP comes after the -MF stuff. Hmm. - "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" - stat=$? - if test $stat -eq 0; then : - else - rm -f "$tmpdepfile" - exit $stat - fi - mv "$tmpdepfile" "$depfile" - ;; - -gcc) -## There are various ways to get dependency output from gcc. Here's -## why we pick this rather obscure method: -## - Don't want to use -MD because we'd like the dependencies to end -## up in a subdir. Having to rename by hand is ugly. -## (We might end up doing this anyway to support other compilers.) -## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like -## -MM, not -M (despite what the docs say). -## - Using -M directly means running the compiler twice (even worse -## than renaming). - if test -z "$gccflag"; then - gccflag=-MD, - fi - "$@" -Wp,"$gccflag$tmpdepfile" - stat=$? - if test $stat -eq 0; then : - else - rm -f "$tmpdepfile" - exit $stat - fi - rm -f "$depfile" - echo "$object : \\" > "$depfile" - alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz -## The second -e expression handles DOS-style file names with drive letters. - sed -e 's/^[^:]*: / /' \ - -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" -## This next piece of magic avoids the `deleted header file' problem. -## The problem is that when a header file which appears in a .P file -## is deleted, the dependency causes make to die (because there is -## typically no way to rebuild the header). We avoid this by adding -## dummy dependencies for each header file. Too bad gcc doesn't do -## this for us directly. - tr ' ' ' -' < "$tmpdepfile" | -## Some versions of gcc put a space before the `:'. On the theory -## that the space means something, we add a space to the output as -## well. -## Some versions of the HPUX 10.20 sed can't process this invocation -## correctly. Breaking it into two sed invocations is a workaround. - sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" - rm -f "$tmpdepfile" - ;; - -hp) - # This case exists only to let depend.m4 do its work. It works by - # looking at the text of this script. This case will never be run, - # since it is checked for above. - exit 1 - ;; - -sgi) - if test "$libtool" = yes; then - "$@" "-Wp,-MDupdate,$tmpdepfile" - else - "$@" -MDupdate "$tmpdepfile" - fi - stat=$? - if test $stat -eq 0; then : - else - rm -f "$tmpdepfile" - exit $stat - fi - rm -f "$depfile" - - if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files - echo "$object : \\" > "$depfile" - - # Clip off the initial element (the dependent). Don't try to be - # clever and replace this with sed code, as IRIX sed won't handle - # lines with more than a fixed number of characters (4096 in - # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; - # the IRIX cc adds comments like `#:fec' to the end of the - # dependency line. - tr ' ' ' -' < "$tmpdepfile" \ - | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ - tr ' -' ' ' >> $depfile - echo >> $depfile - - # The second pass generates a dummy entry for each header file. - tr ' ' ' -' < "$tmpdepfile" \ - | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ - >> $depfile - else - # The sourcefile does not contain any dependencies, so just - # store a dummy comment line, to avoid errors with the Makefile - # "include basename.Plo" scheme. - echo "#dummy" > "$depfile" - fi - rm -f "$tmpdepfile" - ;; - -aix) - # The C for AIX Compiler uses -M and outputs the dependencies - # in a .u file. In older versions, this file always lives in the - # current directory. Also, the AIX compiler puts `$object:' at the - # start of each line; $object doesn't have directory information. - # Version 6 uses the directory in both cases. - stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'` - tmpdepfile="$stripped.u" - if test "$libtool" = yes; then - "$@" -Wc,-M - else - "$@" -M - fi - stat=$? - - if test -f "$tmpdepfile"; then : - else - stripped=`echo "$stripped" | sed 's,^.*/,,'` - tmpdepfile="$stripped.u" - fi - - if test $stat -eq 0; then : - else - rm -f "$tmpdepfile" - exit $stat - fi - - if test -f "$tmpdepfile"; then - outname="$stripped.o" - # Each line is of the form `foo.o: dependent.h'. - # Do two passes, one to just change these to - # `$object: dependent.h' and one to simply `dependent.h:'. - sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile" - sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile" - else - # The sourcefile does not contain any dependencies, so just - # store a dummy comment line, to avoid errors with the Makefile - # "include basename.Plo" scheme. - echo "#dummy" > "$depfile" - fi - rm -f "$tmpdepfile" - ;; - -icc) - # Intel's C compiler understands `-MD -MF file'. However on - # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c - # ICC 7.0 will fill foo.d with something like - # foo.o: sub/foo.c - # foo.o: sub/foo.h - # which is wrong. We want: - # sub/foo.o: sub/foo.c - # sub/foo.o: sub/foo.h - # sub/foo.c: - # sub/foo.h: - # ICC 7.1 will output - # foo.o: sub/foo.c sub/foo.h - # and will wrap long lines using \ : - # foo.o: sub/foo.c ... \ - # sub/foo.h ... \ - # ... - - "$@" -MD -MF "$tmpdepfile" - stat=$? - if test $stat -eq 0; then : - else - rm -f "$tmpdepfile" - exit $stat - fi - rm -f "$depfile" - # Each line is of the form `foo.o: dependent.h', - # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. - # Do two passes, one to just change these to - # `$object: dependent.h' and one to simply `dependent.h:'. - sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" - # Some versions of the HPUX 10.20 sed can't process this invocation - # correctly. Breaking it into two sed invocations is a workaround. - sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" | - sed -e 's/$/ :/' >> "$depfile" - rm -f "$tmpdepfile" - ;; - -tru64) - # The Tru64 compiler uses -MD to generate dependencies as a side - # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'. - # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put - # dependencies in `foo.d' instead, so we check for that too. - # Subdirectories are respected. - dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` - test "x$dir" = "x$object" && dir= - base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` - - if test "$libtool" = yes; then - # With Tru64 cc, shared objects can also be used to make a - # static library. This mecanism is used in libtool 1.4 series to - # handle both shared and static libraries in a single compilation. - # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d. - # - # With libtool 1.5 this exception was removed, and libtool now - # generates 2 separate objects for the 2 libraries. These two - # compilations output dependencies in in $dir.libs/$base.o.d and - # in $dir$base.o.d. We have to check for both files, because - # one of the two compilations can be disabled. We should prefer - # $dir$base.o.d over $dir.libs/$base.o.d because the latter is - # automatically cleaned when .libs/ is deleted, while ignoring - # the former would cause a distcleancheck panic. - tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4 - tmpdepfile2=$dir$base.o.d # libtool 1.5 - tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5 - tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504 - "$@" -Wc,-MD - else - tmpdepfile1=$dir$base.o.d - tmpdepfile2=$dir$base.d - tmpdepfile3=$dir$base.d - tmpdepfile4=$dir$base.d - "$@" -MD - fi - - stat=$? - if test $stat -eq 0; then : - else - rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" - exit $stat - fi - - for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" - do - test -f "$tmpdepfile" && break - done - if test -f "$tmpdepfile"; then - sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" - # That's a tab and a space in the []. - sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" - else - echo "#dummy" > "$depfile" - fi - rm -f "$tmpdepfile" - ;; - -#nosideeffect) - # This comment above is used by automake to tell side-effect - # dependency tracking mechanisms from slower ones. - -dashmstdout) - # Important note: in order to support this mode, a compiler *must* - # always write the preprocessed file to stdout, regardless of -o. - "$@" || exit $? - - # Remove the call to Libtool. - if test "$libtool" = yes; then - while test $1 != '--mode=compile'; do - shift - done - shift - fi - - # Remove `-o $object'. - IFS=" " - for arg - do - case $arg in - -o) - shift - ;; - $object) - shift - ;; - *) - set fnord "$@" "$arg" - shift # fnord - shift # $arg - ;; - esac - done - - test -z "$dashmflag" && dashmflag=-M - # Require at least two characters before searching for `:' - # in the target name. This is to cope with DOS-style filenames: - # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise. - "$@" $dashmflag | - sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile" - rm -f "$depfile" - cat < "$tmpdepfile" > "$depfile" - tr ' ' ' -' < "$tmpdepfile" | \ -## Some versions of the HPUX 10.20 sed can't process this invocation -## correctly. Breaking it into two sed invocations is a workaround. - sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" - rm -f "$tmpdepfile" - ;; - -dashXmstdout) - # This case only exists to satisfy depend.m4. It is never actually - # run, as this mode is specially recognized in the preamble. - exit 1 - ;; - -makedepend) - "$@" || exit $? - # Remove any Libtool call - if test "$libtool" = yes; then - while test $1 != '--mode=compile'; do - shift - done - shift - fi - # X makedepend - shift - cleared=no - for arg in "$@"; do - case $cleared in - no) - set ""; shift - cleared=yes ;; - esac - case "$arg" in - -D*|-I*) - set fnord "$@" "$arg"; shift ;; - # Strip any option that makedepend may not understand. Remove - # the object too, otherwise makedepend will parse it as a source file. - -*|$object) - ;; - *) - set fnord "$@" "$arg"; shift ;; - esac - done - obj_suffix="`echo $object | sed 's/^.*\././'`" - touch "$tmpdepfile" - ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" - rm -f "$depfile" - cat < "$tmpdepfile" > "$depfile" - sed '1,2d' "$tmpdepfile" | tr ' ' ' -' | \ -## Some versions of the HPUX 10.20 sed can't process this invocation -## correctly. Breaking it into two sed invocations is a workaround. - sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" - rm -f "$tmpdepfile" "$tmpdepfile".bak - ;; - -cpp) - # Important note: in order to support this mode, a compiler *must* - # always write the preprocessed file to stdout. - "$@" || exit $? - - # Remove the call to Libtool. - if test "$libtool" = yes; then - while test $1 != '--mode=compile'; do - shift - done - shift - fi - - # Remove `-o $object'. - IFS=" " - for arg - do - case $arg in - -o) - shift - ;; - $object) - shift - ;; - *) - set fnord "$@" "$arg" - shift # fnord - shift # $arg - ;; - esac - done - - "$@" -E | - sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ - -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | - sed '$ s: \\$::' > "$tmpdepfile" - rm -f "$depfile" - echo "$object : \\" > "$depfile" - cat < "$tmpdepfile" >> "$depfile" - sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" - rm -f "$tmpdepfile" - ;; - -msvisualcpp) - # Important note: in order to support this mode, a compiler *must* - # always write the preprocessed file to stdout, regardless of -o, - # because we must use -o when running libtool. - "$@" || exit $? - IFS=" " - for arg - do - case "$arg" in - "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") - set fnord "$@" - shift - shift - ;; - *) - set fnord "$@" "$arg" - shift - shift - ;; - esac - done - "$@" -E | - sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile" - rm -f "$depfile" - echo "$object : \\" > "$depfile" - . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile" - echo " " >> "$depfile" - . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile" - rm -f "$tmpdepfile" - ;; - -none) - exec "$@" - ;; - -*) - echo "Unknown depmode $depmode" 1>&2 - exit 1 - ;; -esac - -exit 0 - -# Local Variables: -# mode: shell-script -# sh-indentation: 2 -# eval: (add-hook 'write-file-hooks 'time-stamp) -# time-stamp-start: "scriptversion=" -# time-stamp-format: "%:y-%02m-%02d.%02H" -# time-stamp-end: "$" -# End: diff --git a/library/ecasound/ecasound.spec b/library/ecasound/ecasound.spec deleted file mode 100644 index c27966043..000000000 --- a/library/ecasound/ecasound.spec +++ /dev/null @@ -1,297 +0,0 @@ -# --- -# definitions - -%define python_sitepkgsdir %(echo `python -c "import sys; print (sys.prefix + '/lib/python' + sys.version[:3] + '/site-packages/')"`) -%define python_compile_opt python -O -c "import compileall; compileall.compile_dir('.')" -%define python_compile python -c "import compileall; compileall.compile_dir('.')" - -%define ver 2.7.2 -%define pkgver 2.7.2 -%define pkgrel 1 - -# --- -# global settings - -Packager: Kai Vehmanen -Distribution: www.eca.cx audio software - -# allow relocation -Prefix: %{_prefix} - -# --- -# main package - -Name: ecasound -Version: %{pkgver} -Release: %{pkgrel} -Serial: 1 -Copyright: GPL -Source: http://ecasound.seul.org/download/ecasound-%{ver}.tar.gz -URL: http://www.eca.cx/ecasound -BuildRoot: /var/tmp/%{name}-%{version}-root-%(id -u -n) -Summary: ecasound - multitrack audio processing tool -Group: Applications/Sound - -%description -Ecasound is a software package designed for multitrack audio -processing. It can be used for simple tasks like audio playback, -recording and format conversions, as well as for multitrack effect -processing, mixing, recording and signal recycling. Ecasound supports -a wide range of audio inputs, outputs and effect algorithms. -Effects and audio objects can be combined in various ways, and their -parameters can be controlled by operator objects like oscillators -and MIDI-CCs. A versatile console mode user-interface is included -in the package. - -# --- -# library package - ecasound-devel - -%package devel -Summary: Ecasound - development files -Group: Applications/Sound - -%description devel -The ecasound-devel package contains the header files and static libraries -necessary for building apps like ecawave and ecamegapedal that -directly link against ecasound libraries. - -# --- -# library package - libecasoundc - -%package -n libecasoundc -Summary: Ecasound - libecasoundc -Group: Applications/Sound - -requires: ecasound - -%description -n libecasoundc -Ecasound - libecasoundc package. Provides -C implementation of the Ecasound Control Interface -(ECI). Both static library files and and header -files are included in the package. - -# --- -# pyecasound - -%package -n pyecasound -Summary: Python bindings to ecasound control interface. -Group: Applications/Sound -Requires: ecasound - -%description -n pyecasound -Python bindings to Ecasound Control Interface (ECI). - -# --- -# build phase - -%prep -%setup -n ecasound-2.7.2 -%build -./configure --prefix=%{_prefix} --libdir=%{_libdir} --mandir=%{_mandir} --with-pic $extra_params -make - -%install -[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT - -make DESTDIR="$RPM_BUILD_ROOT" install-strip -( cd pyecasound - %python_compile_opt - %python_compile - install *.pyc *.pyo $RPM_BUILD_ROOT%{python_sitepkgsdir} -) - -# note! this is needed for automake 1.4 and older -strip --strip-unneeded \ - ${RPM_BUILD_ROOT}%{_bindir}/ecasound \ - ${RPM_BUILD_ROOT}%{_bindir}/ecaconvert \ - ${RPM_BUILD_ROOT}%{_bindir}/ecafixdc \ - ${RPM_BUILD_ROOT}%{_bindir}/ecanormalize \ - ${RPM_BUILD_ROOT}%{_bindir}/ecaplay \ - ${RPM_BUILD_ROOT}%{_bindir}/ecasignalview \ - ${RPM_BUILD_ROOT}%{_libdir}/libecasound.a \ - ${RPM_BUILD_ROOT}%{_libdir}/libecasoundc.a \ - ${RPM_BUILD_ROOT}%{_libdir}/libkvutils.a - -# --- -# cleanup after build - -%clean -[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT - -# --- -# files sections (main) - -%files -%defattr(-, root, root) -%doc NEWS COPYING COPYING.GPL COPYING.LGPL README INSTALL AUTHORS BUGS TODO examples -%doc Documentation/*.html -%doc Documentation/*.txt -%{_mandir}/man1/eca* -%{_mandir}/man5/eca* -%{_bindir}/ecasound -%{_bindir}/ecaconvert -%{_bindir}/ecafixdc -%{_bindir}/ecalength -%{_bindir}/ecamonitor -%{_bindir}/ecanormalize -%{_bindir}/ecaplay -%{_bindir}/ecasignalview -%dir %{_datadir}/ecasound -%{_datadir}/ecasound/ecasound.el -%config %{_datadir}/ecasound/ecasoundrc -%config %{_datadir}/ecasound/generic_oscillators -%config %{_datadir}/ecasound/effect_presets - -# --- -# files sections (devel) - -%files devel -%defattr(-, root, root) -%{_bindir}/libecasound-config -%{_includedir}/kvutils -%{_includedir}/libecasound -%{_libdir}/libecasound.la -%{_libdir}/libecasound.a -%{_libdir}/libkvutils.la -%{_libdir}/libkvutils.a - -# --- -# files sections (libecasoundc) - -%files -n libecasoundc -%defattr(-, root, root) -%{_bindir}/libecasoundc-config -%{_includedir}/libecasoundc -%{_libdir}/libecasoundc.la -%{_libdir}/libecasoundc.a - -# --- -# files sections (pyecasound) - -%files -n pyecasound -%defattr(644,root,root,755) -%attr(755,root,root) %{python_sitepkgsdir}/*.so -%{python_sitepkgsdir}/*.pyo -%{python_sitepkgsdir}/*.pyc -%{python_sitepkgsdir}/*.py - -# --- -# changelog - -%changelog -* Sun Jan 22 2006 Markus Grabner -- Updated to work on x86_64 platforms. -- The "--libdir=%{_libdir}" switch is required on x86_64 to select "lib64" - for installation instead of "lib". -- "--with-pic" added to avoid compile errors on x86_64. -- "%{_bindir}/ecalength" added -- "%dir" keyword added to remove errors about files listed twice. - -* Mon Apr 25 2005 Kai Vehmanen -- fixed problems using ecasound.spec with recent versions of rpm - by removing macro-statements from the changelog entries - -* Wed Nov 03 2004 Kai Vehmanen -- spam-protected all email-addresses - -* Wed Aug 20 2003 Kai Vehmanen -- added 'AUTHORS' file - -* Mon Jan 20 2003 Kai Vehmanen -- added Serial tag to differentiate between 2.2 pre and - final releases - -* Sat Nov 02 2002 Kai Vehmanen -- ported Fernando Lopez-Lezcano's changes to unify this - spec file with PlanetCCRMA's ecasound package; see - http://ccrma-www.stanford.edu/planetccrma/software/soundapps.html -- ecasound.el added to package (installed as a data - file to avoid dependency to emacs/elisp) -- removed unnecessary raw documentation source files -- man files are no longer installed as doc files -- use redhat style mandir location - -* Thu Oct 31 2002 Kai Vehmanen -- minor layout changes -- added TODO to the package -- changed to use rpmrc dir variables - -* Thu Oct 24 2002 Kai Vehmanen -- added the COPYING files to the package - -* Thu Oct 17 2002 Kai Vehmanen -- added the -devel package -- fixed the build procedure to handle static builds - -* Wed Oct 16 2002 Kai Vehmanen -- removed all shared libraries and subpackages containing - them -- ecamonitor binary added to main package - -* Sat Oct 05 2002 Kai Vehmanen -- changed libecasoundc versioning back to normal libtool style - -* Thu Apr 25 2002 Kai Vehmanen -- libraries put to separate subpackages, interface - version numbers code to library names -- ecasound-config renamed to libecasound-config -- ecasoundc-config renamed to libecasoundc-config -- plugin install dir changed from prefix/lib/ecasound-plugins - to prefix/lib/libecasoundX-plugins -- 'contrib' directory removed -- ecasound-plugins subpackage renamed to libecasoundX-plugins - -* Mon Oct 01 2001 Kai Vehmanen -- dropped the hardcoded python module path from configure - argument list - -* Wed Jan 17 2001 Kai Vehmanen -- python subpackage config (thanks to wrobell / PLD Linux!) - -* Sat Dec 06 2000 Kai Vehmanen -- contrib and examples directories added to docs -- ecasoundc-config added -- libecasoundc added (C implementation of ECI) -- a new package: pyecasound - -* Sat Nov 25 2000 Kai Vehmanen -- ecasignalview added to the package. - -* Thu Aug 31 2000 Kai Vehmanen -- Added /etc/ld.so.conf modification script. -- Added DESTDIR to install-section. - -* Wed Aug 30 2000 Kai Vehmanen -- 'ecasound-config' script added. - -* Sun Aug 20 2000 Kai Vehmanen -- All Qt-related stuff removed. - -* Wed Jul 06 2000 Kai Vehmanen -- Added the -plugins package. - -* Wed Jun 07 2000 Kai Vehmanen -- ecaconvert added to the package. - -* Mon Jun 05 2000 Kai Vehmanen -- Renamed ecatools programs. - -* Mon Apr 15 2000 Kai Vehmanen -- Removed dynamic linking to ALSA libraries. You - can get ALSA support by recompiling the source-RPM - package. - -* Mon Feb 10 2000 Kai Vehmanen -- Added libqtecasound to ecasound-qt. - -* Mon Nov 09 1999 Kai Vehmanen -- A complete reorganization. Ecasound distribution is now - divided to three RPMs: ecasound, ecasound-qt and ecasound-devel. - -* Mon Nov 08 1999 Kai Vehmanen -- As Redhat stopped the RHCN project, so these rpms - are again distributed via Redhat's contrib service -- You can also get these from http://ecasound.seul.org/download - -* Sun Aug 15 1999 Kai Vehmanen -- Initial rhcn release. diff --git a/library/ecasound/ecasound.spec.in b/library/ecasound/ecasound.spec.in deleted file mode 100644 index 268e7fe02..000000000 --- a/library/ecasound/ecasound.spec.in +++ /dev/null @@ -1,297 +0,0 @@ -# --- -# definitions - -%define python_sitepkgsdir %(echo `python -c "import sys; print (sys.prefix + '/lib/python' + sys.version[:3] + '/site-packages/')"`) -%define python_compile_opt python -O -c "import compileall; compileall.compile_dir('.')" -%define python_compile python -c "import compileall; compileall.compile_dir('.')" - -%define ver @VERSION@ -%define pkgver @VERSION@ -%define pkgrel 1 - -# --- -# global settings - -Packager: Kai Vehmanen -Distribution: www.eca.cx audio software - -# allow relocation -Prefix: %{_prefix} - -# --- -# main package - -Name: ecasound -Version: %{pkgver} -Release: %{pkgrel} -Serial: 1 -Copyright: GPL -Source: http://ecasound.seul.org/download/ecasound-%{ver}.tar.gz -URL: http://www.eca.cx/ecasound -BuildRoot: /var/tmp/%{name}-%{version}-root-%(id -u -n) -Summary: ecasound - multitrack audio processing tool -Group: Applications/Sound - -%description -Ecasound is a software package designed for multitrack audio -processing. It can be used for simple tasks like audio playback, -recording and format conversions, as well as for multitrack effect -processing, mixing, recording and signal recycling. Ecasound supports -a wide range of audio inputs, outputs and effect algorithms. -Effects and audio objects can be combined in various ways, and their -parameters can be controlled by operator objects like oscillators -and MIDI-CCs. A versatile console mode user-interface is included -in the package. - -# --- -# library package - ecasound-devel - -%package devel -Summary: Ecasound - development files -Group: Applications/Sound - -%description devel -The ecasound-devel package contains the header files and static libraries -necessary for building apps like ecawave and ecamegapedal that -directly link against ecasound libraries. - -# --- -# library package - libecasoundc - -%package -n libecasoundc -Summary: Ecasound - libecasoundc -Group: Applications/Sound - -requires: ecasound - -%description -n libecasoundc -Ecasound - libecasoundc package. Provides -C implementation of the Ecasound Control Interface -(ECI). Both static library files and and header -files are included in the package. - -# --- -# pyecasound - -%package -n pyecasound -Summary: Python bindings to ecasound control interface. -Group: Applications/Sound -Requires: ecasound - -%description -n pyecasound -Python bindings to Ecasound Control Interface (ECI). - -# --- -# build phase - -%prep -%setup -n ecasound-@VERSION@ -%build -./configure --prefix=%{_prefix} --libdir=%{_libdir} --mandir=%{_mandir} --with-pic $extra_params -make - -%install -[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT - -make DESTDIR="$RPM_BUILD_ROOT" install-strip -( cd pyecasound - %python_compile_opt - %python_compile - install *.pyc *.pyo $RPM_BUILD_ROOT%{python_sitepkgsdir} -) - -# note! this is needed for automake 1.4 and older -strip --strip-unneeded \ - ${RPM_BUILD_ROOT}%{_bindir}/ecasound \ - ${RPM_BUILD_ROOT}%{_bindir}/ecaconvert \ - ${RPM_BUILD_ROOT}%{_bindir}/ecafixdc \ - ${RPM_BUILD_ROOT}%{_bindir}/ecanormalize \ - ${RPM_BUILD_ROOT}%{_bindir}/ecaplay \ - ${RPM_BUILD_ROOT}%{_bindir}/ecasignalview \ - ${RPM_BUILD_ROOT}%{_libdir}/libecasound.a \ - ${RPM_BUILD_ROOT}%{_libdir}/libecasoundc.a \ - ${RPM_BUILD_ROOT}%{_libdir}/libkvutils.a - -# --- -# cleanup after build - -%clean -[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT - -# --- -# files sections (main) - -%files -%defattr(-, root, root) -%doc NEWS COPYING COPYING.GPL COPYING.LGPL README INSTALL AUTHORS BUGS TODO examples -%doc Documentation/*.html -%doc Documentation/*.txt -%{_mandir}/man1/eca* -%{_mandir}/man5/eca* -%{_bindir}/ecasound -%{_bindir}/ecaconvert -%{_bindir}/ecafixdc -%{_bindir}/ecalength -%{_bindir}/ecamonitor -%{_bindir}/ecanormalize -%{_bindir}/ecaplay -%{_bindir}/ecasignalview -%dir %{_datadir}/ecasound -%{_datadir}/ecasound/ecasound.el -%config %{_datadir}/ecasound/ecasoundrc -%config %{_datadir}/ecasound/generic_oscillators -%config %{_datadir}/ecasound/effect_presets - -# --- -# files sections (devel) - -%files devel -%defattr(-, root, root) -%{_bindir}/libecasound-config -%{_includedir}/kvutils -%{_includedir}/libecasound -%{_libdir}/libecasound.la -%{_libdir}/libecasound.a -%{_libdir}/libkvutils.la -%{_libdir}/libkvutils.a - -# --- -# files sections (libecasoundc) - -%files -n libecasoundc -%defattr(-, root, root) -%{_bindir}/libecasoundc-config -%{_includedir}/libecasoundc -%{_libdir}/libecasoundc.la -%{_libdir}/libecasoundc.a - -# --- -# files sections (pyecasound) - -%files -n pyecasound -%defattr(644,root,root,755) -%attr(755,root,root) %{python_sitepkgsdir}/*.so -%{python_sitepkgsdir}/*.pyo -%{python_sitepkgsdir}/*.pyc -%{python_sitepkgsdir}/*.py - -# --- -# changelog - -%changelog -* Sun Jan 22 2006 Markus Grabner -- Updated to work on x86_64 platforms. -- The "--libdir=%{_libdir}" switch is required on x86_64 to select "lib64" - for installation instead of "lib". -- "--with-pic" added to avoid compile errors on x86_64. -- "%{_bindir}/ecalength" added -- "%dir" keyword added to remove errors about files listed twice. - -* Mon Apr 25 2005 Kai Vehmanen -- fixed problems using ecasound.spec with recent versions of rpm - by removing macro-statements from the changelog entries - -* Wed Nov 03 2004 Kai Vehmanen -- spam-protected all email-addresses - -* Wed Aug 20 2003 Kai Vehmanen -- added 'AUTHORS' file - -* Mon Jan 20 2003 Kai Vehmanen -- added Serial tag to differentiate between 2.2 pre and - final releases - -* Sat Nov 02 2002 Kai Vehmanen -- ported Fernando Lopez-Lezcano's changes to unify this - spec file with PlanetCCRMA's ecasound package; see - http://ccrma-www.stanford.edu/planetccrma/software/soundapps.html -- ecasound.el added to package (installed as a data - file to avoid dependency to emacs/elisp) -- removed unnecessary raw documentation source files -- man files are no longer installed as doc files -- use redhat style mandir location - -* Thu Oct 31 2002 Kai Vehmanen -- minor layout changes -- added TODO to the package -- changed to use rpmrc dir variables - -* Thu Oct 24 2002 Kai Vehmanen -- added the COPYING files to the package - -* Thu Oct 17 2002 Kai Vehmanen -- added the -devel package -- fixed the build procedure to handle static builds - -* Wed Oct 16 2002 Kai Vehmanen -- removed all shared libraries and subpackages containing - them -- ecamonitor binary added to main package - -* Sat Oct 05 2002 Kai Vehmanen -- changed libecasoundc versioning back to normal libtool style - -* Thu Apr 25 2002 Kai Vehmanen -- libraries put to separate subpackages, interface - version numbers code to library names -- ecasound-config renamed to libecasound-config -- ecasoundc-config renamed to libecasoundc-config -- plugin install dir changed from prefix/lib/ecasound-plugins - to prefix/lib/libecasoundX-plugins -- 'contrib' directory removed -- ecasound-plugins subpackage renamed to libecasoundX-plugins - -* Mon Oct 01 2001 Kai Vehmanen -- dropped the hardcoded python module path from configure - argument list - -* Wed Jan 17 2001 Kai Vehmanen -- python subpackage config (thanks to wrobell / PLD Linux!) - -* Sat Dec 06 2000 Kai Vehmanen -- contrib and examples directories added to docs -- ecasoundc-config added -- libecasoundc added (C implementation of ECI) -- a new package: pyecasound - -* Sat Nov 25 2000 Kai Vehmanen -- ecasignalview added to the package. - -* Thu Aug 31 2000 Kai Vehmanen -- Added /etc/ld.so.conf modification script. -- Added DESTDIR to install-section. - -* Wed Aug 30 2000 Kai Vehmanen -- 'ecasound-config' script added. - -* Sun Aug 20 2000 Kai Vehmanen -- All Qt-related stuff removed. - -* Wed Jul 06 2000 Kai Vehmanen -- Added the -plugins package. - -* Wed Jun 07 2000 Kai Vehmanen -- ecaconvert added to the package. - -* Mon Jun 05 2000 Kai Vehmanen -- Renamed ecatools programs. - -* Mon Apr 15 2000 Kai Vehmanen -- Removed dynamic linking to ALSA libraries. You - can get ALSA support by recompiling the source-RPM - package. - -* Mon Feb 10 2000 Kai Vehmanen -- Added libqtecasound to ecasound-qt. - -* Mon Nov 09 1999 Kai Vehmanen -- A complete reorganization. Ecasound distribution is now - divided to three RPMs: ecasound, ecasound-qt and ecasound-devel. - -* Mon Nov 08 1999 Kai Vehmanen -- As Redhat stopped the RHCN project, so these rpms - are again distributed via Redhat's contrib service -- You can also get these from http://ecasound.seul.org/download - -* Sun Aug 15 1999 Kai Vehmanen -- Initial rhcn release. diff --git a/library/ecasound/ecasound/Makefile.am b/library/ecasound/ecasound/Makefile.am deleted file mode 100644 index 7346a51d5..000000000 --- a/library/ecasound/ecasound/Makefile.am +++ /dev/null @@ -1,52 +0,0 @@ -INCLUDES = -I$(ECA_S_READLINE_INCLUDES) -I$(srcdir) -I$(top_srcdir) -I$(top_srcdir)/libecasound -I$(top_srcdir)/kvutils - -if ECA_AM_USE_NCURSES -termcap_library_ncurses = -lncurses -endif - -if ECA_AM_USE_TERMCAP -termcap_library_termcap = -ltermcap -endif - -termcap_library = $(termcap_library_ncurses) $(termcap_library_termcap) - -if ECA_AM_DEBUG_MODE -bin_PROGRAMS = ecasound_debug -else -bin_PROGRAMS = ecasound -endif - -ecasound_SOURCES = ecasound.cpp \ - ecasound.h \ - eca-console.h \ - eca-curses.h \ - eca-curses.cpp \ - eca-comhelp.cpp \ - eca-comhelp.h \ - eca-neteci-server.cpp \ - eca-neteci-server.h \ - eca-plaintext.h \ - eca-plaintext.cpp \ - textdebug.cpp \ - textdebug.h - -ecasound_debug_SOURCES = $(ecasound_SOURCES) - -ecasound_LDFLAGS = -export-dynamic -ecasound_LDADD = $(termcap_library) \ - $(ECA_S_READLINE_LIBS) \ - $(top_builddir)/libecasound/libecasound.la \ - $(top_builddir)/kvutils/libkvutils.la -ecasound_debug_LDFLAGS = $(ecasound_LDFLAGS) -ecasound_debug_LDADD = $(termcap_library) \ - $(ECA_S_READLINE_LIBS) \ - $(top_builddir)/libecasound/libecasound_debug.la \ - $(top_builddir)/kvutils/libkvutils_debug.la - -# -- - -# special targets with dependency tracking -ecainstall: - $(MAKE) -C $(srcdir)/../libecasound -q 2>/dev/null || make -C $(srcdir)/../libecasound - $(MAKE) -C $(srcdir)/../kvutils -q 2>/dev/null || make -C $(srcdir)/../kvutils - $(MAKE) install diff --git a/library/ecasound/ecasound/Makefile.in b/library/ecasound/ecasound/Makefile.in deleted file mode 100644 index 5dca6e0df..000000000 --- a/library/ecasound/ecasound/Makefile.in +++ /dev/null @@ -1,586 +0,0 @@ -# Makefile.in generated by automake 1.9.6 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - -srcdir = @srcdir@ -top_srcdir = @top_srcdir@ -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -top_builddir = .. -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -INSTALL = @INSTALL@ -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -@ECA_AM_DEBUG_MODE_FALSE@bin_PROGRAMS = ecasound$(EXEEXT) -@ECA_AM_DEBUG_MODE_TRUE@bin_PROGRAMS = ecasound_debug$(EXEEXT) -subdir = ecasound -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/configure.in -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -am__installdirs = "$(DESTDIR)$(bindir)" -binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) -PROGRAMS = $(bin_PROGRAMS) -am_ecasound_OBJECTS = ecasound.$(OBJEXT) eca-curses.$(OBJEXT) \ - eca-comhelp.$(OBJEXT) eca-neteci-server.$(OBJEXT) \ - eca-plaintext.$(OBJEXT) textdebug.$(OBJEXT) -ecasound_OBJECTS = $(am_ecasound_OBJECTS) -am__DEPENDENCIES_1 = -am__DEPENDENCIES_2 = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) -ecasound_DEPENDENCIES = $(am__DEPENDENCIES_2) $(am__DEPENDENCIES_1) \ - $(top_builddir)/libecasound/libecasound.la \ - $(top_builddir)/kvutils/libkvutils.la -am__objects_1 = ecasound.$(OBJEXT) eca-curses.$(OBJEXT) \ - eca-comhelp.$(OBJEXT) eca-neteci-server.$(OBJEXT) \ - eca-plaintext.$(OBJEXT) textdebug.$(OBJEXT) -am_ecasound_debug_OBJECTS = $(am__objects_1) -ecasound_debug_OBJECTS = $(am_ecasound_debug_OBJECTS) -ecasound_debug_DEPENDENCIES = $(am__DEPENDENCIES_2) \ - $(am__DEPENDENCIES_1) \ - $(top_builddir)/libecasound/libecasound_debug.la \ - $(top_builddir)/kvutils/libkvutils_debug.la -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) -depcomp = $(SHELL) $(top_srcdir)/depcomp -am__depfiles_maybe = depfiles -CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ - $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -LTCXXCOMPILE = $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) \ - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ - $(AM_CXXFLAGS) $(CXXFLAGS) -CXXLD = $(CXX) -CXXLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXXLD) $(AM_CXXFLAGS) \ - $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \ - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ - $(AM_CFLAGS) $(CFLAGS) -CCLD = $(CC) -LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ - $(AM_LDFLAGS) $(LDFLAGS) -o $@ -SOURCES = $(ecasound_SOURCES) $(ecasound_debug_SOURCES) -DIST_SOURCES = $(ecasound_SOURCES) $(ecasound_debug_SOURCES) -ETAGS = etags -CTAGS = ctags -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMDEP_FALSE = @AMDEP_FALSE@ -AMDEP_TRUE = @AMDEP_TRUE@ -AMTAR = @AMTAR@ -AM_CFLAGS = @AM_CFLAGS@ -AM_CPPFLAGS = @AM_CPPFLAGS@ -AM_CXXFLAGS = @AM_CXXFLAGS@ -AM_LDFLAGS = @AM_LDFLAGS@ -AR = @AR@ -ARTSC_CONFIG = @ARTSC_CONFIG@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DSYMUTIL = @DSYMUTIL@ -ECA_AM_ALL_STATIC_FALSE = @ECA_AM_ALL_STATIC_FALSE@ -ECA_AM_ALL_STATIC_TRUE = @ECA_AM_ALL_STATIC_TRUE@ -ECA_AM_COMPILE_ALSA_FALSE = @ECA_AM_COMPILE_ALSA_FALSE@ -ECA_AM_COMPILE_ALSA_TRUE = @ECA_AM_COMPILE_ALSA_TRUE@ -ECA_AM_COMPILE_ARTS_FALSE = @ECA_AM_COMPILE_ARTS_FALSE@ -ECA_AM_COMPILE_ARTS_TRUE = @ECA_AM_COMPILE_ARTS_TRUE@ -ECA_AM_COMPILE_AUDIOFILE_FALSE = @ECA_AM_COMPILE_AUDIOFILE_FALSE@ -ECA_AM_COMPILE_AUDIOFILE_TRUE = @ECA_AM_COMPILE_AUDIOFILE_TRUE@ -ECA_AM_COMPILE_JACK_FALSE = @ECA_AM_COMPILE_JACK_FALSE@ -ECA_AM_COMPILE_JACK_TRUE = @ECA_AM_COMPILE_JACK_TRUE@ -ECA_AM_COMPILE_OSS_FALSE = @ECA_AM_COMPILE_OSS_FALSE@ -ECA_AM_COMPILE_OSS_TRUE = @ECA_AM_COMPILE_OSS_TRUE@ -ECA_AM_COMPILE_SAMPLERATE_FALSE = @ECA_AM_COMPILE_SAMPLERATE_FALSE@ -ECA_AM_COMPILE_SAMPLERATE_TRUE = @ECA_AM_COMPILE_SAMPLERATE_TRUE@ -ECA_AM_COMPILE_SNDFILE_FALSE = @ECA_AM_COMPILE_SNDFILE_FALSE@ -ECA_AM_COMPILE_SNDFILE_TRUE = @ECA_AM_COMPILE_SNDFILE_TRUE@ -ECA_AM_DEBUG_MODE_FALSE = @ECA_AM_DEBUG_MODE_FALSE@ -ECA_AM_DEBUG_MODE_TRUE = @ECA_AM_DEBUG_MODE_TRUE@ -ECA_AM_DISABLE_EFFECTS_FALSE = @ECA_AM_DISABLE_EFFECTS_FALSE@ -ECA_AM_DISABLE_EFFECTS_TRUE = @ECA_AM_DISABLE_EFFECTS_TRUE@ -ECA_AM_FEELING_EXPERIMENTAL_FALSE = @ECA_AM_FEELING_EXPERIMENTAL_FALSE@ -ECA_AM_FEELING_EXPERIMENTAL_TRUE = @ECA_AM_FEELING_EXPERIMENTAL_TRUE@ -ECA_AM_KVUTILS_INSTALLED_FALSE = @ECA_AM_KVUTILS_INSTALLED_FALSE@ -ECA_AM_KVUTILS_INSTALLED_TRUE = @ECA_AM_KVUTILS_INSTALLED_TRUE@ -ECA_AM_PYECASOUND_CEXT_FALSE = @ECA_AM_PYECASOUND_CEXT_FALSE@ -ECA_AM_PYECASOUND_CEXT_TRUE = @ECA_AM_PYECASOUND_CEXT_TRUE@ -ECA_AM_PYECASOUND_INSTALL_FALSE = @ECA_AM_PYECASOUND_INSTALL_FALSE@ -ECA_AM_PYECASOUND_INSTALL_TRUE = @ECA_AM_PYECASOUND_INSTALL_TRUE@ -ECA_AM_RUBYECASOUND_INSTALL_FALSE = @ECA_AM_RUBYECASOUND_INSTALL_FALSE@ -ECA_AM_RUBYECASOUND_INSTALL_TRUE = @ECA_AM_RUBYECASOUND_INSTALL_TRUE@ -ECA_AM_SYSTEM_READLINE_FALSE = @ECA_AM_SYSTEM_READLINE_FALSE@ -ECA_AM_SYSTEM_READLINE_TRUE = @ECA_AM_SYSTEM_READLINE_TRUE@ -ECA_AM_USE_NCURSES_FALSE = @ECA_AM_USE_NCURSES_FALSE@ -ECA_AM_USE_NCURSES_TRUE = @ECA_AM_USE_NCURSES_TRUE@ -ECA_AM_USE_TERMCAP_FALSE = @ECA_AM_USE_TERMCAP_FALSE@ -ECA_AM_USE_TERMCAP_TRUE = @ECA_AM_USE_TERMCAP_TRUE@ -ECA_S_EXTRA_CPPFLAGS = @ECA_S_EXTRA_CPPFLAGS@ -ECA_S_EXTRA_LIBS = @ECA_S_EXTRA_LIBS@ -ECA_S_JACK_INCLUDES = @ECA_S_JACK_INCLUDES@ -ECA_S_JACK_LIBS = @ECA_S_JACK_LIBS@ -ECA_S_PREFIX = @ECA_S_PREFIX@ -ECA_S_PYTHON_DLMODULES = @ECA_S_PYTHON_DLMODULES@ -ECA_S_PYTHON_INCLUDES = @ECA_S_PYTHON_INCLUDES@ -ECA_S_PYTHON_MODULES = @ECA_S_PYTHON_MODULES@ -ECA_S_READLINE_INCLUDES = @ECA_S_READLINE_INCLUDES@ -ECA_S_READLINE_LIBS = @ECA_S_READLINE_LIBS@ -ECA_S_RUBY_SITEDIR = @ECA_S_RUBY_SITEDIR@ -ECHO = @ECHO@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -F77 = @F77@ -FFLAGS = @FFLAGS@ -GREP = @GREP@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LDFLAGS = @LDFLAGS@ -LIBECASOUNDC_VERSION = @LIBECASOUNDC_VERSION@ -LIBECASOUNDC_VERSION_AGE = @LIBECASOUNDC_VERSION_AGE@ -LIBECASOUND_VERSION = @LIBECASOUND_VERSION@ -LIBECASOUND_VERSION_AGE = @LIBECASOUND_VERSION_AGE@ -LIBKVUTILS_VERSION = @LIBKVUTILS_VERSION@ -LIBKVUTILS_VERSION_AGE = @LIBKVUTILS_VERSION_AGE@ -LIBLO_CFLAGS = @LIBLO_CFLAGS@ -LIBLO_LIBS = @LIBLO_LIBS@ -LIBOBJS = @LIBOBJS@ -LIBOIL_CFLAGS = @LIBOIL_CFLAGS@ -LIBOIL_LIBS = @LIBOIL_LIBS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LN_S = @LN_S@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -NMEDIT = @NMEDIT@ -OBJEXT = @OBJEXT@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PKG_CONFIG = @PKG_CONFIG@ -PYTHONPATH = @PYTHONPATH@ -RANLIB = @RANLIB@ -RUBYPATH = @RUBYPATH@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -VERSION = @VERSION@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_CXX = @ac_ct_CXX@ -ac_ct_F77 = @ac_ct_F77@ -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -INCLUDES = -I$(ECA_S_READLINE_INCLUDES) -I$(srcdir) -I$(top_srcdir) -I$(top_srcdir)/libecasound -I$(top_srcdir)/kvutils -@ECA_AM_USE_NCURSES_TRUE@termcap_library_ncurses = -lncurses -@ECA_AM_USE_TERMCAP_TRUE@termcap_library_termcap = -ltermcap -termcap_library = $(termcap_library_ncurses) $(termcap_library_termcap) -ecasound_SOURCES = ecasound.cpp \ - ecasound.h \ - eca-console.h \ - eca-curses.h \ - eca-curses.cpp \ - eca-comhelp.cpp \ - eca-comhelp.h \ - eca-neteci-server.cpp \ - eca-neteci-server.h \ - eca-plaintext.h \ - eca-plaintext.cpp \ - textdebug.cpp \ - textdebug.h - -ecasound_debug_SOURCES = $(ecasound_SOURCES) -ecasound_LDFLAGS = -export-dynamic -ecasound_LDADD = $(termcap_library) \ - $(ECA_S_READLINE_LIBS) \ - $(top_builddir)/libecasound/libecasound.la \ - $(top_builddir)/kvutils/libkvutils.la - -ecasound_debug_LDFLAGS = $(ecasound_LDFLAGS) -ecasound_debug_LDADD = $(termcap_library) \ - $(ECA_S_READLINE_LIBS) \ - $(top_builddir)/libecasound/libecasound_debug.la \ - $(top_builddir)/kvutils/libkvutils_debug.la - -all: all-am - -.SUFFIXES: -.SUFFIXES: .cpp .lo .o .obj -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign ecasound/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --foreign ecasound/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -install-binPROGRAMS: $(bin_PROGRAMS) - @$(NORMAL_INSTALL) - test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)" - @list='$(bin_PROGRAMS)'; for p in $$list; do \ - p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ - if test -f $$p \ - || test -f $$p1 \ - ; then \ - f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ - echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \ - $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \ - else :; fi; \ - done - -uninstall-binPROGRAMS: - @$(NORMAL_UNINSTALL) - @list='$(bin_PROGRAMS)'; for p in $$list; do \ - f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ - echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \ - rm -f "$(DESTDIR)$(bindir)/$$f"; \ - done - -clean-binPROGRAMS: - @list='$(bin_PROGRAMS)'; for p in $$list; do \ - f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ - echo " rm -f $$p $$f"; \ - rm -f $$p $$f ; \ - done -ecasound$(EXEEXT): $(ecasound_OBJECTS) $(ecasound_DEPENDENCIES) - @rm -f ecasound$(EXEEXT) - $(CXXLINK) $(ecasound_LDFLAGS) $(ecasound_OBJECTS) $(ecasound_LDADD) $(LIBS) -ecasound_debug$(EXEEXT): $(ecasound_debug_OBJECTS) $(ecasound_debug_DEPENDENCIES) - @rm -f ecasound_debug$(EXEEXT) - $(CXXLINK) $(ecasound_debug_LDFLAGS) $(ecasound_debug_OBJECTS) $(ecasound_debug_LDADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eca-comhelp.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eca-curses.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eca-neteci-server.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eca-plaintext.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ecasound.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/textdebug.Po@am__quote@ - -.cpp.o: -@am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ -@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< - -.cpp.obj: -@am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ -@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` - -.cpp.lo: -@am__fastdepCXX_TRUE@ if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ -@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -distclean-libtool: - -rm -f libtool -uninstall-info-am: - -ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - mkid -fID $$unique -tags: TAGS - -TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ - test -n "$$unique" || unique=$$empty_fix; \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$tags $$unique; \ - fi -ctags: CTAGS -CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(CTAGS_ARGS)$$tags$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$tags $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && cd $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) $$here - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ - list='$(DISTFILES)'; for file in $$list; do \ - case $$file in \ - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ - esac; \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test "$$dir" != "$$file" && test "$$dir" != "."; then \ - dir="/$$dir"; \ - $(mkdir_p) "$(distdir)$$dir"; \ - else \ - dir=''; \ - fi; \ - if test -d $$d/$$file; then \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ - fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ - else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile $(PROGRAMS) -installdirs: - for dir in "$(DESTDIR)$(bindir)"; do \ - test -z "$$dir" || $(mkdir_p) "$$dir"; \ - done -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am - -distclean: distclean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -distclean-am: clean-am distclean-compile distclean-generic \ - distclean-libtool distclean-tags - -dvi: dvi-am - -dvi-am: - -html: html-am - -info: info-am - -info-am: - -install-data-am: - -install-exec-am: install-binPROGRAMS - -install-info: install-info-am - -install-man: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-binPROGRAMS uninstall-info-am - -.PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ - clean-generic clean-libtool ctags distclean distclean-compile \ - distclean-generic distclean-libtool distclean-tags distdir dvi \ - dvi-am html html-am info info-am install install-am \ - install-binPROGRAMS install-data install-data-am install-exec \ - install-exec-am install-info install-info-am install-man \ - install-strip installcheck installcheck-am installdirs \ - maintainer-clean maintainer-clean-generic mostlyclean \ - mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ - pdf pdf-am ps ps-am tags uninstall uninstall-am \ - uninstall-binPROGRAMS uninstall-info-am - - -# -- - -# special targets with dependency tracking -ecainstall: - $(MAKE) -C $(srcdir)/../libecasound -q 2>/dev/null || make -C $(srcdir)/../libecasound - $(MAKE) -C $(srcdir)/../kvutils -q 2>/dev/null || make -C $(srcdir)/../kvutils - $(MAKE) install -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/library/ecasound/ecasound/eca-comhelp.cpp b/library/ecasound/ecasound/eca-comhelp.cpp deleted file mode 100644 index 00a805f2a..000000000 --- a/library/ecasound/ecasound/eca-comhelp.cpp +++ /dev/null @@ -1,170 +0,0 @@ -// ------------------------------------------------------------------------ -// ecasound.cpp: Console mode user interface to ecasound. -// Copyright (C) 2000,2009 Kai Vehmanen -// -// Attributes: -// eca-style-version: 3 (see Ecasound Programmer's Guide) -// -// This program is free software; you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation; either version 2 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// ------------------------------------------------------------------------ - -#include "eca-comhelp.h" - -/* FIXME: get chainop list from libecasound! - * - 2009/Jan: or maybe not, people should just be pointed to - * ecasound(1) */ - -static const char* ecasound_parameter_help_rep = -"USAGE: ecasound [options] \n" -" -c enable interactive mode \n" -" -C disable interactive mode (batchmode)\n" -" -d:debug_level show debug info \n" -" -D print all trace messages to stderr\n" -" -q quiet mode, no output\n" -" -s[:]file.ecs load chainsetup from 'file' \n" -" -E \"foo1 ; foo 2\" execute interactive commands at start\n" -" --server enable ecasound's network control mode\n" -" --server-tcp-port=NNN use TCP port NNN\n" -" --no-server disable the daemon mode (default)\n" -" --osc-udp-port=NNN listen for OSC messages on UDP port NNN\n" -" --keep-running (or -K) do not exit from batchmode\n" -" --help (or -h) show this help\n" -" --version print version info\n" -" --- \n" -" -b:buffersize size of sample buffer in samples\n" -" -B:mode buffering mode\n" -" -m:mixmode mixmode\n" -" -n:name set chainsetup name\n" -" -r[:priority] raise runtime priority\n" -" -sr:sample_rate set internal sample rate\n" -" -x truncate outputs\n" -" -X open outputs for update (default)\n" -" -z:feature enable feature 'feature', see ecasound(1)\n" -" --- \n" -" -t:seconds processing time in seconds\n" -" -tl enable looping\n" -" --- \n" -" -a:name1,name2, ... select/create chains ('all' reserved)\n" -" -f:type,channels,srate set file format (for all following inputs/outputs)\n" -" -i[:]infile specify an input (assigned to active chains)\n" -" -o[:]outfile specify an input (assigned to active chains)\n" -" -y:seconds set start position for preceding input/output\n" -" --- \n" -" -Md:rawmidi,midi_device set MIDI-device\n" -" -Mms:device_id send MMC start/stop\n" -" -Mss send MIDI start/stop\n" -" --- \n" -" -pf:preset.eep insert the first preset from file 'preset.eep'\n" -" -pn:preset_name insert preset 'preset_name' from the\n" -" preset database\n" -" --- \n" -" -eS:stamp-id audio stamp\n" -" -ea:amp-% amplify\n" -" -eac:amp-%,channel channel amplify\n" -" -eaw:amp-%,max-clipped-samples - \n" -" amplify with clip-control\n" -" -ec:compression-rate-dB,threshold-% ...\n" -" compressor\n" -" -eca:peak-limit-%,release-time-sec,fast-crate,overall-crate ...\n" -" advanced compressor\n" -" -eemb:bpm,on-time-msec pulse gate (bpm)\n" -" -eemp:freq-Hz,on-time-% pulse gate\n" -" -eemt:bpm,depth-% tremolo\n" -" -ef1:center-freq,width resonant bandpass filter\n" -" -ef3:cutoff-freq,resonance,gain ...\n" -" resonant lowpass filter\n" -" -ef4:cutoff-freq,resonance ...\n" -" resonant lowpass filter (2nd-order,24dB)\n" -" -efa:delay-samples,feedback-% ...\n" -" allpass filter\n" -" -efb:center-freq,width bandpass filter\n" -" -efc:delay-samples,radius ...\n" -" comb filter\n" -" -efh:cutoff-freq highpass filter\n" -" -efi:delay-samples,radius ...\n" -" inverse comb filter\n" -" -efl:cutoff-freq lowpass filter\n" -" -efr:center-freq,width bandreject filter\n" -" -efs:center-freq,width resonator filter\n" -" -ei:change-% pitch shifter\n" -" -el:name,par1,...,parN LADSPA-plugin 'name'\n" -" -eli:id,par1,...,parnN LADSPA-plugin with numeric 'id'\n" -" -enm:threshold-level-%,pre-hold-time-msec,attack-time-msec,post-hold-time-msec,release-time-msec ...\n" -" noise gate\n" -" -erc:from-channel,to-channel ...\n" -" copy 'from-channel' to 'to-channel'\n" -" -erm:to-channel mix all channels to channel 'to-channel' \n" -" -epp:right-% normal pan\n" -" -etc:delay-time-msec,variance-time-samples,feedback-%,lfo-freq ...\n" -" chorus\n" -" -etd:delay-time-msec,surround-mode,number-of-delays,mix-%,feedback-% ...\n" -" delay\n" -" -ete:room-size,feedback-%,wet-% ...\n" -" advanced reverb\n" -" -etf:delay-time-msec fake stereo\n" -" -etl:delay-time-msec,variance-time-samples,feedback-%,lfo-freq ...\n" -" flanger\n" -" -etm:delay-time-msec,number-of-delays,mix-% ...\n" -" multitap delay\n" -" -etp:delay-time-msec,variance-time-samples,feedback-%,lfo-freq ...\n" -" phaser\n" -" -etr:delay-time,surround-mode,feedback-% ...\n" -" reverb\n" -" -ev:cumulative-mode,result-max-multiplier ...\n" -" analyze/maximize volume\n" -" -evp:peak-ch1,peak-chN peak amplitude watcher\n" -" -ezf find optimal value for DC-offset adjustment\n" -" -ezx:channel-count,delta-ch1,...,delta-chN\n" -" adjust DC-offset\n" -" --- \n" -" -gc:open-at-sec,duration-sec ...\n" -" time crop gate\n" -" -ge:threshold-openlevel-%,threshold-closelevel-%,rms-enabled ...\n" -" threshold gate\n" -" --- \n" -" -kf:param-id,range-low,range-high,freq,mode,preset-number ...\n" -" file envelope (generic oscillator)\n" -" -kl:param-id,range-low,range-high,length-sec ...\n" -" linear envelope (fade-in and fade-out)\n" -" -kl2:param-id,range-low,range-high,1st-stage-sec,2nd-stage-sec ...\n" -" two-stage linear envelope\n" -" -klg:param-id,range-low,range-high,point_count ...\n" -" generic linear envelope\n" -" -km:param-id,range-low,range-high,controller,channel ...\n" -" MIDI-controlled envelope\n" -" -kog:param-id,range-low,range-high,freq,mode,pcount,start_val,end_val ...\n" -" generic oscillator\n" -" -kos:param-id,range-low,range-high,freq,phase-offset ...\n" -" sine oscillator\n" -" -ksv:param-id,range-low,range-high,stamp-id,rms-toggle ...\n" -" volume analyzing controller" -" --- \n" -" -kx use last specified controller as\n" -" controller target\n" -"\n" -"Note that this is only a partial list of available options. For\n" -"a complete list of available options, as well as more detailed\n" -"descriptions of of their use, see ecasound(1) manual page and\n" -"the documentation at ecasound's website. Documentation is available\n" -"online at:\n" -" - http://eca.cx/ecasound/Documentation/ecasound_manpage.html\n" -" - http://eca.cx/ecasound/Documentation/examples.html\n" -"\n" -"Report bugs to ecasound-list mailing list (http://www.eca.cx/contact).\n"; - -const char* ecasound_parameter_help(void) -{ - return ecasound_parameter_help_rep; -} diff --git a/library/ecasound/ecasound/eca-comhelp.h b/library/ecasound/ecasound/eca-comhelp.h deleted file mode 100644 index f442ca321..000000000 --- a/library/ecasound/ecasound/eca-comhelp.h +++ /dev/null @@ -1,6 +0,0 @@ -#ifndef INCLUDED_ECA_COMHELP_H -#define INCLUDED_ECA_COMHELP_H - -const char* ecasound_parameter_help(void); - -#endif diff --git a/library/ecasound/ecasound/eca-console.h b/library/ecasound/ecasound/eca-console.h deleted file mode 100644 index 0968ac412..000000000 --- a/library/ecasound/ecasound/eca-console.h +++ /dev/null @@ -1,44 +0,0 @@ -#ifndef INCLUDED_ECA_CONSOLE_H -#define INCLUDED_ECA_CONSOLE_H - -#include - -/** - * Abstract interface for console - * mode ecasound user interface - * implementations. - * - * @author Kai Vehmanen - */ -class ECA_CONSOLE { - - public: - - /** - * Prints the text string 'msg'. - */ - virtual void print(const std::string& msg) = 0; - - /** - * Prints the ecasound banner. - */ - virtual void print_banner(void) = 0; - - /** - * Reads the next user command. - * - * @param prompt prompt shown to user - * - * @see last_command() - */ - virtual void read_command(const std::string& prompt) = 0; - - /** - * Returns the last read user command. - */ - virtual const std::string& last_command(void) const = 0; - - virtual ~ECA_CONSOLE(void) {}; -}; - -#endif /* INCLUDED_ECA_CONSOLE_H */ diff --git a/library/ecasound/ecasound/eca-curses.cpp b/library/ecasound/ecasound/eca-curses.cpp deleted file mode 100644 index a90943d13..000000000 --- a/library/ecasound/ecasound/eca-curses.cpp +++ /dev/null @@ -1,220 +0,0 @@ -// ------------------------------------------------------------------------ -// eca-curses.cpp: Curses implementation of the console user interface. -// Copyright (C) 1999-2004,2007 Kai Vehmanen -// -// Attributes: -// eca-style-version: 2 -// -// This program is free software; you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation; either version 2 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// ------------------------------------------------------------------------ - -#ifdef HAVE_CONFIG_H -#include -#endif - -#include -#include -#include -#include - -#if defined(ECA_PLATFORM_CURSES) - -#ifdef ECA_USE_NCURSES_H -#include -#include /* for setupterm() */ -#elif ECA_USE_NCURSES_NCURSES_H -#include -#include /* for setupterm() */ -#else -#include -#include /* for setupterm() */ -#endif - -#define READLINE_LIBRARY -#include -#include - -#include -#include -#include /* kvu_string_search_and_replace() */ - -#include "ecasound.h" -#include "eca-curses.h" - -#if defined(RL_READLINE_VERSION) && RL_READLINE_VERSION >= 0x0402 -static char** ecasound_completion (const char *text, int start, int end); -static char* ecasound_command_generator (const char* text, int state); -#else -static char** ecasound_completion (char *text, int start, int end); -static char* ecasound_command_generator (char* text, int state); -#endif - -ECA_CURSES::ECA_CURSES(void) -{ - rl_initialized_rep = false; - setupterm((char *)0, 1, (int *)0); - init_readline_support(); -} - -ECA_CURSES::~ECA_CURSES(void) -{ - if (rl_initialized_rep == true) { - rl_cleanup_after_signal(); - } -} - -void ECA_CURSES::print(const std::string& msg) -{ - std::cout << msg << std::endl; -} - -void ECA_CURSES::print_banner(void) -{ - int width = COLS - 4; - if (width > ECASOUND_TERM_WIDTH_DEFAULT) - width = ECASOUND_TERM_WIDTH_DEFAULT; - string banner (width, '*'); - std::cout << banner << std::endl; - std::cout << "*"; - putp(tigetstr("bold")); - std::cout << " ecasound v" - << ecasound_library_version - << ECASOUND_COPYRIGHT; - putp(tigetstr("sgr0")); - std::cout << "\n"; - std::cout << banner << std::endl; -} - -void ECA_CURSES::read_command(const std::string& prompt) -{ - if (rl_initialized_rep != true) rl_initialized_rep = true; - last_cmdchar_repp = readline(const_cast(prompt.c_str())); - if (last_cmdchar_repp != 0) { - add_history(last_cmdchar_repp); - last_cmd_rep = last_cmdchar_repp; - free(last_cmdchar_repp); - } - else { - /* handle EOF */ - last_cmd_rep = "q"; - } -} - -const std::string& ECA_CURSES::last_command(void) const -{ - return last_cmd_rep; -} - -void ECA_CURSES::init_readline_support(void) -{ - /* for conditional parsing of ~/.inputrc file. */ - rl_readline_name = "ecasound"; - - /* we want to attempt completion first */ -#if RL_READLINE_VERSION >= 0x0402 - rl_attempted_completion_function = (rl_completion_func_t*)ecasound_completion; -#else - rl_attempted_completion_function = (CPPFunction *)ecasound_completion; -#endif -} - -/* **************************************************************** */ -/* */ -/* Interface to Readline Completion */ -/* */ -/* **************************************************************** */ - -/** - * Attempt to complete on the contents of TEXT. START and END bound the - * region of rl_line_buffer that contains the word to complete. TEXT is - * the word to complete. We can use the entire contents of rl_line_buffer - * in case we want to do some simple parsing. Return the array of matches, - * or NULL if there aren't any. - */ -#if RL_READLINE_VERSION >= 0x0402 -char** ecasound_completion (const char *text, int start, int end) -#else -char** ecasound_completion (char *text, int start, int end) -#endif -{ - char **matches; - matches = (char **)NULL; - - /* complete only the first command, otherwise complete files in - * the current directory */ - if (start == 0) { -#if RL_READLINE_VERSION >= 0x0402 - matches = rl_completion_matches (text, (rl_compentry_func_t *)ecasound_command_generator); -#else - matches = completion_matches (text, (CPFunction *)ecasound_command_generator); -#endif - } - return matches; -} - -/** - * Generator function for command completion. STATE lets us know whether - * to start from scratch; without any state (i.e. STATE == 0), then we - * start at the top of the list. - */ -#if RL_READLINE_VERSION >= 0x0402 -char* ecasound_command_generator (const char* text, int state) -#else -char* ecasound_command_generator (char* text, int state) -#endif -{ - static int list_index, len; - static const std::map& map_ref = ECA_IAMODE_PARSER::registered_commands(); - static std::map::const_iterator p; - static std::string cmd; - - /* If this is a new word to complete, initialize now. This includes - * saving the length of TEXT for efficiency, and initializing the index - * variable to 0 - */ - if (!state) { - list_index = 0; - p = map_ref.begin(); - len = strlen (text); - } - - /* Return the next name which partially matches from the command list */ - while (p != map_ref.end()) { - cmd = p->first; - list_index++; - ++p; - if (p != map_ref.end()) { - std::string hyphenstr = kvu_string_search_and_replace(text, '_', '-'); - if (strncmp(hyphenstr.c_str(), cmd.c_str(), len) == 0) { - return strdup(cmd.c_str()); - } - } - } - return (char *)0; -} - -#else - -#include "eca-curses.h" - -ECA_CURSES::ECA_CURSES(void) {} -ECA_CURSES::~ECA_CURSES(void) {} -void ECA_CURSES::print(const std::string& msg) {} -void ECA_CURSES::print_banner(void) {} -void ECA_CURSES::read_command(const std::string& prompt) {} -const std::string& ECA_CURSES::last_command(void) const { static std::string empty; return empty; } -void ECA_CURSES::init_readline_support(void) {} - -#endif /* ECA_PLATFORM_CURSES */ diff --git a/library/ecasound/ecasound/eca-curses.h b/library/ecasound/ecasound/eca-curses.h deleted file mode 100644 index d46cdad6e..000000000 --- a/library/ecasound/ecasound/eca-curses.h +++ /dev/null @@ -1,60 +0,0 @@ -#ifndef INCLUDED_ECA_CURSES_H -#define INCLUDED_ECA_CURSES_H - -#include -#include "eca-console.h" - -/** - * Abstract interface for console - * mode ecasound user interface - * implementations. - * - * @author Kai Vehmanen - */ -class ECA_CURSES : public ECA_CONSOLE { - - public: - - /** - * Constructor. Initialized the GNU readline - * interface. - */ - ECA_CURSES(void); - - /** - * Virtual destructor. - */ - virtual ~ECA_CURSES(void); - - /** - * Prints the text string 'msg'. - */ - virtual void print(const std::string& msg); - - /** - * Prints the ecasound banner. - */ - virtual void print_banner(void); - - /** - * Reads the next user command. - * - * @see last_command() - */ - virtual void read_command(const std::string& prompt); - - /** - * Returns the last read user command. - */ - virtual const std::string& last_command(void) const; - - private: - - void init_readline_support(void); - - char* last_cmdchar_repp; - std::string last_cmd_rep; - bool rl_initialized_rep; -}; - -#endif /* INCLUDED_ECA_CURSES_H */ diff --git a/library/ecasound/ecasound/eca-neteci-server.cpp b/library/ecasound/ecasound/eca-neteci-server.cpp deleted file mode 100644 index 5c2e865d5..000000000 --- a/library/ecasound/ecasound/eca-neteci-server.cpp +++ /dev/null @@ -1,557 +0,0 @@ -// ------------------------------------------------------------------------ -// eca-neteci-server.c: NetECI server implementation. -// Copyright (C) 2002,2004,2009 Kai Vehmanen -// -// Attributes: -// eca-style-version: 3 -// -// This program is free software; you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation; either version 2 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// ------------------------------------------------------------------------ - -#include -#include /* memcpy() */ -#include -#include - -#include /* POSIX: fcntl() */ -#include /* POSIX: pthread_* */ -#include /* POSIX: fcntl() */ -#include /* BSD: inet_ntoa() */ -#include /* BSD: inet_ntoa() */ -#include /* POSIX: poll() */ -#include /* BSD: getpeername() */ -#include /* OSX: u_int32_t (INADDR_ANY) */ - -#include -#include -#include -#include - -#include -#include -#include - -#include "ecasound.h" -#include "eca-neteci-server.h" - -/** - * Options - */ -// #define NETECI_DEBUG_ENABLED - -#define ECA_NETECI_START_BUFFER_SIZE 128 -#define ECA_NETECI_MAX_BUFFER_SIZE 65536 - -/** - * Macro definitions - */ - -#ifdef NETECI_DEBUG_ENABLED -#define NETECI_DEBUG(x) x -#else -#define NETECI_DEBUG(x) ((void) 0) -#endif - -/** - * Import namespaces - */ - -using namespace std; - -ECA_NETECI_SERVER::ECA_NETECI_SERVER(ECASOUND_RUN_STATE* state) - : state_repp(state), - srvfd_rep(-1), - server_listening_rep(false), - unix_sockets_rep(false), - cleanup_request_rep(false) -{ -} - -ECA_NETECI_SERVER::~ECA_NETECI_SERVER(void) -{ - if (server_listening_rep == true) { - close_server_socket(); - } -} - -/** - * Launches the server thread. - * - * @param arg pointer to a ECA_NETECI_SERVER object - */ -void* ECA_NETECI_SERVER::launch_server_thread(void* arg) -{ - ECA_LOG_MSG(ECA_LOGGER::user_objects, "Server thread started"); - - ECA_NETECI_SERVER* self = - reinterpret_cast(arg); - self->run(); - return 0; -} - -/** - * Starts running the NetECI server. - * - * After calling this function, the ECA_CONTROL_MAIN object - * may be used at any time from the NetECI server thread. - */ -void ECA_NETECI_SERVER::run(void) -{ - create_server_socket(); - open_server_socket(); - if (server_listening_rep == true) { - listen_for_events(); - } - else { - ECA_LOG_MSG(ECA_LOGGER::info, - "Unable to start NetECI server. Please check that no other program is using the TCP port " - + kvu_numtostr(state_repp->neteci_tcp_port) - + "."); - } - close_server_socket(); - - ECA_LOG_MSG(ECA_LOGGER::user_objects, - "server thread exiting"); -} - -/** - * Creates a server socket with 'socket()'. Depending on - * object configuration either UNIX or IP socket is - * created. - */ -void ECA_NETECI_SERVER::create_server_socket(void) -{ - DBC_REQUIRE(server_listening_rep != true); - DBC_REQUIRE(srvfd_rep <= 0); - - if (unix_sockets_rep == true) { - srvfd_rep = socket(AF_UNIX, SOCK_STREAM, 0); - if (srvfd_rep >= 0) { - /* create a temporary filename for the socket in a secure way */ - socketpath_rep = "/tmp/neteci_server_1"; - addr_un_rep.sun_family = AF_UNIX; - memcpy(addr_un_rep.sun_path, socketpath_rep.c_str(), socketpath_rep.size() + 1); - addr_repp = reinterpret_cast(&addr_un_rep); - } - } - else { - srvfd_rep = socket(PF_INET, SOCK_STREAM, 0); - if (srvfd_rep >= 0) { - addr_in_rep.sin_family = AF_INET; - addr_in_rep.sin_port = htons(state_repp->neteci_tcp_port); - addr_in_rep.sin_addr.s_addr = INADDR_ANY; - - addr_repp = reinterpret_cast(&addr_in_rep); - } - } -} - -/** - * Opens the server socket for listening. If succesful, - * 'server_listening_rep' will be true after the call. - */ -void ECA_NETECI_SERVER::open_server_socket(void) -{ - DBC_REQUIRE(server_listening_rep != true); - DBC_REQUIRE(srvfd_rep > 0); - - int val = 1; - int ret = setsockopt(srvfd_rep, SOL_SOCKET, SO_REUSEADDR, (void *)&val, sizeof(val)); - if (ret < 0) - std::cerr << "setsockopt() failed." << endl; - - // int res = bind(srvfd_rep, (struct sockaddr*)addr_repp, sizeof(*addr_repp)); - - int res = 0; - if (unix_sockets_rep == true) - res = bind(srvfd_rep, (struct sockaddr*)&addr_un_rep, sizeof(addr_un_rep)); - else - res = bind(srvfd_rep, (struct sockaddr*)&addr_in_rep, sizeof(addr_in_rep)); - - if (res == 0) { - res = listen(srvfd_rep, 5); - if (res == 0) { - int res = fcntl(srvfd_rep, F_SETFL, O_NONBLOCK); - if (res == -1) - std::cerr << "fcntl() failed." << endl; - - NETECI_DEBUG(std::cout << "server socket created." << endl); - server_listening_rep = true; - } - else - std::cerr << "listen() failed." << endl; - } - else { - if (unix_sockets_rep == true) { - unlink(socketpath_rep.c_str()); - } - socketpath_rep.resize(0); - std::cerr << "bind() failed." << endl; - } - - DBC_ENSURE((unix_sockets_rep == true && - (((server_listening_rep == true && socketpath_rep.size() > 0) || - (server_listening_rep != true && socketpath_rep.size() == 0)))) || - (unix_sockets_rep != true)); -} - -/** - * Closes the server socket. - */ -void ECA_NETECI_SERVER::close_server_socket(void) -{ - DBC_REQUIRE(srvfd_rep > 0); - DBC_REQUIRE(server_listening_rep == true); - - NETECI_DEBUG(cerr << "closing socket " << kvu_numtostr(srvfd_rep) << "." << endl); - close(srvfd_rep); - srvfd_rep = -1; - server_listening_rep = false; - - DBC_ENSURE(srvfd_rep == -1); - DBC_ENSURE(server_listening_rep != true); -} - -/** - * Listens for and accepts incoming connections. - */ -void ECA_NETECI_SERVER::listen_for_events(void) -{ - /* - * - loop until we get an exit request from network or from - * ecasound_state - */ - - /* - enter poll - * - if new connections, accept them and add the new client to - * client list - * - if incoming bytes, grab ecasound_state lock, send command, - * store retval, release lock, send the reply to client - * - return to poll - */ - while(state_repp->exit_request == 0) { - // NETECI_DEBUG(cerr << "checking for events" << endl); - check_for_events(2000); - } - - if (state_repp->exit_request != 0) { - NETECI_DEBUG(cerr << "exit_request received" << endl); - } -} - -/** - * Checks for new connections and messages from - * clients. - * - * @param timeout upper-limit in ms for how long - * function waits for events; if -1, - * call will return immediately - * (ie. is non-blocking) - */ -void ECA_NETECI_SERVER::check_for_events(int timeout) -{ - int nfds = clients_rep.size() + 1; - struct pollfd* ufds = new struct pollfd [nfds]; - - ufds[0].fd = srvfd_rep; - ufds[0].events = POLLIN; - ufds[0].revents = 0; - - std::list::iterator p = clients_rep.begin(); - for(int n = 1; n < nfds; n++) { - ufds[n].fd = (*p)->fd; - ufds[n].events = POLLIN; - ufds[n].revents = 0; - ++p; - } - DBC_CHECK(nfds == 1 || p == clients_rep.end()); - - int ret = poll(ufds, nfds, timeout); - if (ret > 0) { - if (ufds[0].revents & POLLIN) { - /* 1. new incoming connection */ - handle_connection(srvfd_rep); - } - p = clients_rep.begin(); - for(int n = 1; n < nfds; n++) { - if (ufds[n].revents & POLLIN) { - /* 2. client has sent a message */ - handle_client_messages(*p); - } - else if (ufds[n].revents == POLLERR || - ufds[n].revents == POLLHUP || - ufds[n].revents == POLLNVAL) { - /* 3. error, remove client */ - remove_client(*p); - } - if (p != clients_rep.end()) ++p; - } - } - - if (cleanup_request_rep == true) { - clean_removed_clients(); - } - - delete[] ufds; -} - -void ECA_NETECI_SERVER::handle_connection(int fd) -{ - socklen_t bytes = 0; - string peername; - int connfd = 0; - - if (unix_sockets_rep == true) { - bytes = static_cast(sizeof(addr_un_rep)); - connfd = accept(fd, reinterpret_cast(&addr_un_rep), &bytes); - peername = "UNIX:" + socketpath_rep; - } - else { - bytes = static_cast(sizeof(addr_in_rep)); - connfd = accept(fd, reinterpret_cast(&addr_in_rep), &bytes); - - if (connfd > 0) { - struct sockaddr_in peeraddr; - socklen_t peernamelen; - // struct in_addr peerip; - peername = "TCP/IP:"; - int res = getpeername(connfd, - reinterpret_cast(&peeraddr), - reinterpret_cast(&peernamelen)); - if (res == 0) - peername += string(inet_ntoa(peeraddr.sin_addr)); - else - peername += string(inet_ntoa(addr_in_rep.sin_addr)); - } - } - - ECA_LOG_MSG(ECA_LOGGER::info, - "New connection from " + - peername + "."); - - - if (connfd >= 0) { - NETECI_DEBUG(cerr << "incoming connection accepted" << endl); - struct ecasound_neteci_server_client* client = new struct ecasound_neteci_server_client; /* add a new client */ - client->fd = connfd; - client->buffer_length = ECA_NETECI_START_BUFFER_SIZE; - client->buffer = new char [client->buffer_length]; - client->buffer_current_ptr = 0; - client->peername = peername; - clients_rep.push_back(client); - } -} - -/** - * Handle incoming messages for client 'client'. - */ -void ECA_NETECI_SERVER::handle_client_messages(struct ecasound_neteci_server_client* client) -{ - char* buf[128]; - int connfd = client->fd; - - NETECI_DEBUG(cerr << "handle_client_messages for fd " - << connfd << endl); - - ssize_t c = kvu_fd_read(connfd, buf, 128, 5000); - if (c > 0) { - parse_raw_incoming_data(reinterpret_cast(buf), c, client); - while(parsed_cmd_queue_rep.size() > 0) { - const string& nextcmd = parsed_cmd_queue_rep.front(); - if (nextcmd == "quit" || nextcmd == "q") { - NETECI_DEBUG(cerr << "client initiated quit, removing client-fd " << connfd << "." << endl); - remove_client(client); - } - else { - handle_eci_command(nextcmd, client); - } - parsed_cmd_queue_rep.pop_front(); - } - /* ... */ - } - else { - /* read() <= 0 */ - NETECI_DEBUG(cerr << "read error, removing client-fd " << connfd << "." << endl); - remove_client(client); - } -} - -void ECA_NETECI_SERVER::parse_raw_incoming_data(const char* buffer, - ssize_t bytes, - struct ecasound_neteci_server_client* client) -{ - DBC_REQUIRE(buffer != 0); - DBC_REQUIRE(bytes >= 0); - DBC_REQUIRE(client != 0); - DBC_DECLARE(int old_client_ptr = client->buffer_current_ptr); - DBC_DECLARE(unsigned int old_cmd_queue_size = parsed_cmd_queue_rep.size()); - - NETECI_DEBUG(cerr << "parse incoming data; " - << bytes << " bytes. Buffer length is " - << client->buffer_length << endl); - - for(int n = 0; n < bytes; n++) { - DBC_CHECK(client->buffer_current_ptr <= client->buffer_length); - if (client->buffer_current_ptr == client->buffer_length) { - int new_buffer_length = client->buffer_length * 2; - char *new_buffer = new char [new_buffer_length]; - - if (new_buffer_length > ECA_NETECI_MAX_BUFFER_SIZE) { - cerr << "client buffer overflow, unable to increase buffer size. flushing..." << endl; - client->buffer_current_ptr = 0; - } - else { - NETECI_DEBUG(cerr << "client buffer overflow, increasing buffer size from " - << client->buffer_length << " to " << new_buffer_length << " bytes." << endl); - - for(int i = 0; i < client->buffer_length; i++) new_buffer[i] = client->buffer[i]; - - delete[] client->buffer; - client->buffer = new_buffer; - client->buffer_length = new_buffer_length; - } - } - - NETECI_DEBUG(cerr << "copying '" << buffer[n] << "'\n"); - client->buffer[client->buffer_current_ptr] = buffer[n]; - if (client->buffer_current_ptr > 0 && - client->buffer[client->buffer_current_ptr] == '\n' && - client->buffer[client->buffer_current_ptr - 1] == '\r') { - - string cmd (client->buffer, client->buffer_current_ptr - 1); - NETECI_DEBUG(cerr << "storing command '" << cmd << "'" << endl); - parsed_cmd_queue_rep.push_back(cmd); - - NETECI_DEBUG(cerr << "copying " - << client->buffer_length - client->buffer_current_ptr - 1 - << " bytes from " << client->buffer_current_ptr + 1 - << " to the beginning of the buffer." - << " Index is " << client->buffer_current_ptr << endl); - - DBC_CHECK(client->buffer_current_ptr < client->buffer_length); - -#if 0 - /* must not use memcpy() as the - affected areas may overlap! */ - for(int o = 0, p = index + 1; - p < client->buffer_length; o++, p++) { - client->buffer[o] = client->buffer[p]; - } -#endif - client->buffer_current_ptr = 0; - } - else { - // NETECI_DEBUG(cerr << "crlf not found, index=" << index << ", n=" << n << "cur_ptr=" << client->buffer_current_ptr << ".\n"); - client->buffer_current_ptr++; - } - } - - DBC_ENSURE(client->buffer_current_ptr > old_client_ptr || - parsed_cmd_queue_rep.size() > old_cmd_queue_size); -} - -void ECA_NETECI_SERVER::handle_eci_command(const string& cmd, struct ecasound_neteci_server_client* client) -{ - ECA_CONTROL_MT* ctrl = state_repp->control; - - NETECI_DEBUG(cerr << "handle eci command: " << cmd << endl); - - assert(ctrl != 0); - - struct eci_return_value retval; - ctrl->command(cmd, &retval); - - string strtosend = - ECA_LOGGER_WELLFORMED::create_wellformed_message(ECA_LOGGER::eiam_return_values, - std::string(ECA_CONTROL_MAIN::return_value_type_to_string(&retval)) - + " " + - ECA_CONTROL_MAIN::return_value_to_string(&retval)); - - int bytes_to_send = strtosend.size(); - while(bytes_to_send > 0) { - int ret = kvu_fd_write(client->fd, strtosend.c_str(), strtosend.size(), 5000); - if (ret < 0) { - cerr << "error in kvu_fd_write(), removing client.\n"; - remove_client(client); - break; - } - else { - bytes_to_send -= ret; - } - } -} - -/** - * Removes 'client' from list of clients. - * - * Note! Internally, the 'fd' field of the deleted client - * is marked to be -1. - * - * @see clean_removed_clients() - */ -void ECA_NETECI_SERVER::remove_client(struct ecasound_neteci_server_client* client) -{ - NETECI_DEBUG(std::cout << "removing client." << std::endl); - - if (client != 0 && client->fd > 0) { - ECA_LOG_MSG(ECA_LOGGER::info, - "Closing connection " + - client->peername + "."); - close(client->fd); - client->fd = -1; - } - - cleanup_request_rep = true; -} - -/** - * Cleans the list of clients from removed objects. - * - * @see remove_client() - */ -void ECA_NETECI_SERVER::clean_removed_clients(void) -{ - DBC_DECLARE(size_t oldsize = clients_rep.size()); - DBC_DECLARE(size_t counter = 0); - - NETECI_DEBUG(std::cerr << "cleaning removed clients." << std::endl); - - list::iterator p = clients_rep.begin(); - while(p != clients_rep.end()) { - NETECI_DEBUG(std::cerr << "checking for delete, client " << *p << std::endl); - if (*p != 0 && (*p)->fd == -1) { - if ((*p)->buffer != 0) { - delete[] (*p)->buffer; - (*p)->buffer = 0; - } - std::list::iterator q = p; - ++q; - NETECI_DEBUG(std::cerr << "deleting client " << *p << std::endl); - delete *p; - NETECI_DEBUG(std::cerr << "erasing client " << *p << std::endl); - *p = 0; - clients_rep.erase(p); - p = q; - DBC_DECLARE(++counter); - } - else { - ++p; - } - } - - cleanup_request_rep = false; - - DBC_ENSURE(clients_rep.size() == oldsize - counter); -} diff --git a/library/ecasound/ecasound/eca-neteci-server.h b/library/ecasound/ecasound/eca-neteci-server.h deleted file mode 100644 index a97302ea4..000000000 --- a/library/ecasound/ecasound/eca-neteci-server.h +++ /dev/null @@ -1,78 +0,0 @@ -#ifndef INCLUDED_ECA_NETECI_SERVER_H -#define INCLUDED_ECA_NETECI_SERVER_H - -#include -#include - -#include /* Generic socket definitions */ -#include /* UNIX socket definitions */ -#include /* IP socket definitions */ - -struct ecasound_state; -class ECASOUND_RUN_STATE; - -struct ecasound_neteci_server_client { - std::string peername; - char* buffer; - int fd; - int buffer_current_ptr; - int buffer_length; -}; - -/** - * NetECI server implementation. - * - * @author Kai Vehmanen - */ -class ECA_NETECI_SERVER { - - public: - - /** - * Constructor. - */ - ECA_NETECI_SERVER(ECASOUND_RUN_STATE* state); - - /** - * Virtual destructor. - */ - ~ECA_NETECI_SERVER(void); - - static void* launch_server_thread(void* arg); - - private: - - void run(void); - - void create_server_socket(void); - void open_server_socket(void); - void close_server_socket(void); - void listen_for_events(void); - void check_for_events(int timeout); - void handle_connection(int fd); - void handle_client_messages(struct ecasound_neteci_server_client* client); - void handle_eci_command(const std::string& cmd, struct ecasound_neteci_server_client* client); - void parse_raw_incoming_data(const char* buffer, - ssize_t bytes, - struct ecasound_neteci_server_client* client); - void remove_client(struct ecasound_neteci_server_client* client); - void clean_removed_clients(void); - - struct sockaddr_un addr_un_rep; - struct sockaddr_in addr_in_rep; - struct sockaddr* addr_repp; - ECASOUND_RUN_STATE* state_repp; - - std::list clients_rep; - /* FIXME: turn into a buffer of pointers to allow ptr-fields */ - std::list parsed_cmd_queue_rep; - std::string socketpath_rep; - - int srvfd_rep; - bool server_listening_rep; - bool unix_sockets_rep; - bool cleanup_request_rep; - -}; - -#endif /* INCLUDED_ECA_NETECI_SERVER_H */ diff --git a/library/ecasound/ecasound/eca-plaintext.cpp b/library/ecasound/ecasound/eca-plaintext.cpp deleted file mode 100644 index 982a3a923..000000000 --- a/library/ecasound/ecasound/eca-plaintext.cpp +++ /dev/null @@ -1,81 +0,0 @@ -// ------------------------------------------------------------------------ -// eca-plaintext.cpp: Plaintext implementation of the console user -// interface. -// Copyright (C) 2002-2004 Kai Vehmanen -// -// Attributes: -// eca-style-version: 2 -// -// This program is free software; you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation; either version 2 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// ------------------------------------------------------------------------ - -#include -#include - -#include - -#include - -#include "ecasound.h" -#include "eca-plaintext.h" - -using namespace std; - -ECA_PLAIN_TEXT::ECA_PLAIN_TEXT(std::ostream* ostr) -{ - ostream_repp = ostr; -} - -ECA_PLAIN_TEXT::~ECA_PLAIN_TEXT(void) -{ -} - -void ECA_PLAIN_TEXT::print(const std::string& msg) -{ - *ostream_repp << msg << endl; -} - -void ECA_PLAIN_TEXT::print_banner(void) -{ - *ostream_repp << ECASOUND_BANNER_ASTERISK_BAR; - *ostream_repp << "*"; - *ostream_repp << " ecasound v" - << ecasound_library_version - << ECASOUND_COPYRIGHT; - *ostream_repp << "\n"; - *ostream_repp << ECASOUND_BANNER_ASTERISK_BAR; -} - -void ECA_PLAIN_TEXT::read_command(const string& prompt) -{ - if (ostream_repp->good() == true) { - *ostream_repp << prompt; - ostream_repp->flush(); - if (cin.good() == true) { - getline(cin, last_cmd_rep); - } - else { - last_cmd_rep = "q"; - } - } - else { - last_cmd_rep = "q"; - } -} - -const string& ECA_PLAIN_TEXT::last_command(void) const -{ - return last_cmd_rep; -} diff --git a/library/ecasound/ecasound/eca-plaintext.h b/library/ecasound/ecasound/eca-plaintext.h deleted file mode 100644 index d28c3b757..000000000 --- a/library/ecasound/ecasound/eca-plaintext.h +++ /dev/null @@ -1,57 +0,0 @@ -#ifndef INCLUDED_ECA_PLAINTEXT_H -#define INCLUDED_ECA_PLAINTEXT_H - -#include - -#include -#include "eca-console.h" - -/** - * Plain text interface for the console - * mode ecasound. - * - * @author Kai Vehmanen - */ -class ECA_PLAIN_TEXT : public ECA_CONSOLE { - - public: - - /** - * Constructor. - */ - ECA_PLAIN_TEXT(std::ostream* ostr); - - /** - * Virtual destructor. - */ - virtual ~ECA_PLAIN_TEXT(void); - - /** - * Prints the text string 'msg'. - */ - virtual void print(const std::string& msg); - - /** - * Prints the ecasound banner. - */ - virtual void print_banner(void); - - /** - * Reads the next user command. - * - * @see last_command() - */ - virtual void read_command(const std::string& prompt); - - /** - * Returns the last read user command. - */ - virtual const std::string& last_command(void) const; - - private: - - std::string last_cmd_rep; - std::ostream* ostream_repp; -}; - -#endif /* INCLUDED_ECA_PLAIN_TEXT_H */ diff --git a/library/ecasound/ecasound/ecasound.cpp b/library/ecasound/ecasound/ecasound.cpp deleted file mode 100644 index 345af7ac4..000000000 --- a/library/ecasound/ecasound/ecasound.cpp +++ /dev/null @@ -1,925 +0,0 @@ -// ------------------------------------------------------------------------ -// ecasound.cpp: Console mode user interface to ecasound. -// Copyright (C) 2002-2010 Kai Vehmanen -// -// Attributes: -// eca-style-version: 3 (see Ecasound Programmer's Guide) -// -// This program is free software; you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation; either version 2 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// ------------------------------------------------------------------------ - -#ifdef HAVE_CONFIG_H -#include -#endif - -#include -#include -#include -#include -#include - -#include /* POSIX: various signal functions */ -#include /* POSIX: sleep() */ - -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include - -#ifdef ECA_USE_LIBLO -#include -#endif - -#include "eca-comhelp.h" -#include "eca-console.h" -#include "eca-curses.h" -#include "eca-neteci-server.h" -#include "eca-plaintext.h" -#include "textdebug.h" -#include "ecasound.h" - -/** - * Check build time reqs - */ -#undef SIGNALS_CAN_BE_BLOCKED -#if defined(HAVE_SIGWAIT) -# if defined(HAVE_SIGPROCMASK) || defined(HAVE_PTHREAD_SIGMASK) -# define SIGNALS_CAN_BE_BLOCKED -# else -# error "Either pthread_sigmask() or sigprocmask() needs to be supported." -# error "One option to try is to undefine HAVE_SIGWAIT and retry compilation " -# error "with plain pause() support." -# endif -#elif defined(HAVE_PAUSE) - /* no op*/ -#else -# error "" -#endif - -/** - * Static/private function definitions - */ - -static void ecasound_create_eca_objects(ECASOUND_RUN_STATE* state, COMMAND_LINE& cline); -static void ecasound_launch_neteci(ECASOUND_RUN_STATE* state); -static void ecasound_launch_osc(ECASOUND_RUN_STATE* state); -static int ecasound_pass_at_launch_commands(ECASOUND_RUN_STATE* state); -static void ecasound_main_loop_interactive(ECASOUND_RUN_STATE* state); -static void ecasound_main_loop_batch(ECASOUND_RUN_STATE* state); -void ecasound_parse_command_line(ECASOUND_RUN_STATE* state, - const COMMAND_LINE& clinein, - COMMAND_LINE* clineout); -static void ecasound_print_usage(void); -static void ecasound_print_version_banner(void); -static void ecasound_signal_setup(ECASOUND_RUN_STATE* state); -static void ecasound_signal_unblock(ECASOUND_RUN_STATE* state); - -extern "C" { - static void* ecasound_watchdog_thread(void* arg); - static void ecasound_signal_handler(int signal); -} - -/* Define to get exit debug traces */ -// #define ENABLE_ECASOUND_EXIT_PROCESS_TRACES 1 - -/* Exit process has not yet started. */ -#define ECASOUND_EXIT_PHASE_NONE 0 - -/* Termination will block until signal watchdog thread - * has exited. */ -#define ECASOUND_EXIT_PHASE_WAIT_FOR_WD 1 - -/* Watchdog has terminated, only a single thread - * is left running. */ -#define ECASOUND_EXIT_PHASE_ONE_THREAD 2 - -/* All resources freed, about to return from main(). */ -#define ECASOUND_EXIT_PHASE_DONE 3 - -/** - * Global variable that is set to one of 'ECASOUND_EXIT_PHASE_*' - * - * When ecasound's main() - * function is about to exit (all engine threads have - * been terminated and only single thread aside the - * watchdog is left, and to '2' when all running state - * has been clearer in ~ECASOUND_RUN_STATE(). - */ -static sig_atomic_t glovar_ecasound_exit_phase = ECASOUND_EXIT_PHASE_NONE; - -/* Global variable that is set to one, when common - * POSIX signals are blocked and watchdog thread is - * blocking on a call to pthread_sigmask(), sigprocmask(), - * or pause(). */ -static sig_atomic_t glovar_wd_signals_blocked = 0; - -/* Global variable counting how many SIGINT signals - * have been ignored. */ -static sig_atomic_t glovar_soft_signals_ignored = 0; - -/* Debuggin macros, see ENABLE_ECASOUND_EXIT_PROCESS_TRACES - * above */ -#ifdef ENABLE_ECASOUND_EXIT_PROCESS_TRACES -#define TRACE_EXIT(x) do { x; } while(0) -#else -#define TRACE_EXIT(x) while(0) { x; } -#endif - -/** - * Namespace imports - */ -using namespace std; - -ECASOUND_RUN_STATE::ECASOUND_RUN_STATE(void) - : console(0), - control(0), - logger(0), - eciserver(0), - osc(0), - session(0), - launchcmds(0), - neteci_thread(0), - watchdog_thread(0), - lock(0), - exit_request(0), - signalset(0), - retval(ECASOUND_RETVAL_SUCCESS), - neteci_mode(false), - neteci_tcp_port(2868), - osc_mode(false), - osc_udp_port(-1), - keep_running_mode(false), - cerr_output_only_mode(false), - interactive_mode(false), - quiet_mode(false) -{ -} - -ECASOUND_RUN_STATE::~ECASOUND_RUN_STATE(void) -{ - /* note: global variable */ - DBC_CHECK(glovar_ecasound_exit_phase == ECASOUND_EXIT_PHASE_ONE_THREAD); - - if (control != 0) { delete control; control = 0; } - if (session != 0) { delete session; session = 0; } - - if (launchcmds != 0) { delete launchcmds; launchcmds = 0; } - if (eciserver != 0) { delete eciserver; eciserver = 0; } -#ifdef ECA_USE_LIBLO - if (osc != 0) { delete osc; osc = 0; } -#endif - if (console != 0) { delete console; console = 0; } - if (neteci_thread != 0) { delete neteci_thread; neteci_thread = 0; } - if (watchdog_thread != 0) { delete watchdog_thread; watchdog_thread = 0; } - if (lock != 0) { delete lock; lock = 0; } - if (signalset != 0) { delete signalset; signalset = 0; } - - glovar_ecasound_exit_phase = ECASOUND_EXIT_PHASE_DONE; -} - -/** - * Function definitions - */ -int main(int argc, char *argv[]) -{ - ECASOUND_RUN_STATE state; - bool have_curses = -#if defined(ECA_PLATFORM_CURSES) - true -#else - false -#endif - ; - - /* 1. setup signals and the signal watchdog thread */ - ecasound_signal_setup(&state); - - /* 2. parse command-line args */ - COMMAND_LINE* cline = new COMMAND_LINE(argc, argv); - COMMAND_LINE* clineout = new COMMAND_LINE(); - ecasound_parse_command_line(&state, *cline, clineout); - delete cline; cline = 0; - - /* 3. create console interface */ - if (state.retval == ECASOUND_RETVAL_SUCCESS) { - - if (have_curses == true && - state.quiet_mode != true && - state.cerr_output_only_mode != true) { - state.console = new ECA_CURSES(); - state.logger = new TEXTDEBUG(); - } - else { - ostream* ostr = (state.cerr_output_only_mode == true) ? &cerr : &cout; - state.console = new ECA_PLAIN_TEXT(ostr); - state.logger = new ECA_LOGGER_DEFAULT(*ostr); - } - ECA_LOGGER::attach_logger(state.logger); - - if (state.quiet_mode != true) { - /* 4. print banner */ - state.console->print_banner(); - } - - /* 5. set default debug levels */ - ECA_LOGGER::instance().set_log_level(ECA_LOGGER::errors, true); - ECA_LOGGER::instance().set_log_level(ECA_LOGGER::info, true); - ECA_LOGGER::instance().set_log_level(ECA_LOGGER::subsystems, true); - ECA_LOGGER::instance().set_log_level(ECA_LOGGER::eiam_return_values, true); - ECA_LOGGER::instance().set_log_level(ECA_LOGGER::module_names, true); - - /* 6. create eca objects */ - ecasound_create_eca_objects(&state, *clineout); - delete clineout; clineout = 0; - - /* 7. enable remote control over socket connection */ - if (state.retval == ECASOUND_RETVAL_SUCCESS) { - /* 7.a) ... ECI over socket connection */ - if (state.neteci_mode == true) { - ecasound_launch_neteci(&state); - } - /* 7.b) ... over OSC */ - if (state.osc_mode == true) { - ecasound_launch_osc(&state); - } - } - - /* 8. pass launch commands */ - ecasound_pass_at_launch_commands(&state); - - /* 9. start processing */ - if (state.retval == ECASOUND_RETVAL_SUCCESS) { - if (state.interactive_mode == true) - ecasound_main_loop_interactive(&state); - else - ecasound_main_loop_batch(&state); - } - } - - TRACE_EXIT(cerr << endl << "ecasound: out of mainloop..." << endl); - - /* step: terminate neteci thread */ - if (state.neteci_mode == true) { - /* wait until the NetECI thread has exited */ - state.exit_request = 1; - if (state.neteci_thread) - pthread_join(*state.neteci_thread, NULL); - } - - /* step: terminate the engine thread */ - if (state.control != 0) { - if (state.control->is_running() == true) { - state.control->stop_on_condition(); - } - if (state.control->is_connected() == true) { - state.control->disconnect_chainsetup(); - } - } - - glovar_ecasound_exit_phase = ECASOUND_EXIT_PHASE_WAIT_FOR_WD; - - TRACE_EXIT(cerr << endl << "ecasound: joining watchdog..." << endl); - - /* step: Send a signal to the watchdog thread to wake it uP */ - pthread_kill(*state.watchdog_thread, SIGHUP); - - /* step: Unblock signals for the main thread as well. At this - * point the engine threads have been already terminated, - * so we don't have to anymore worry about which thread - * gets the signals. */ - ecasound_signal_unblock(&state); - - pthread_join(*state.watchdog_thread, NULL); - - TRACE_EXIT(cerr << endl << "ecasound: joined watchdog..." << endl); - - glovar_ecasound_exit_phase = ECASOUND_EXIT_PHASE_ONE_THREAD; - - DBC_CHECK(state.retval == ECASOUND_RETVAL_SUCCESS || - state.retval == ECASOUND_RETVAL_INIT_FAILURE || - state.retval == ECASOUND_RETVAL_START_ERROR || - state.retval == ECASOUND_RETVAL_RUNTIME_ERROR); - - TRACE_EXIT(cerr << endl << "ecasound: main() exiting with code " << state.retval << endl); - - return state.retval; -} - -/** - * Enters the main processing loop. - */ -void ecasound_create_eca_objects(ECASOUND_RUN_STATE* state, - COMMAND_LINE& cline) -{ - DBC_REQUIRE(state != 0); - DBC_REQUIRE(state->console != 0); - - try { - state->session = new ECA_SESSION(cline); - state->control = new ECA_CONTROL_MT(state->session); - - DBC_ENSURE(state->session != 0); - DBC_ENSURE(state->control != 0); - } - catch(ECA_ERROR& e) { - state->console->print("---\necasound: ERROR: [" + e.error_section() + "] : \"" + e.error_message() + "\"\n"); - state->retval = ECASOUND_RETVAL_INIT_FAILURE; - } -} - -/** - * Launches a background thread that allows NetECI - * clients to connect to the current ecasound - * session. - */ -void ecasound_launch_neteci(ECASOUND_RUN_STATE* state) -{ - DBC_REQUIRE(state != 0); - // DBC_REQUIRE(state->console != 0); - - // state->console->print("ecasound: starting the NetECI server."); - - state->neteci_thread = new pthread_t; - state->lock = new pthread_mutex_t; - pthread_mutex_init(state->lock, NULL); - state->eciserver = new ECA_NETECI_SERVER(state); - - int res = pthread_create(state->neteci_thread, - NULL, - ECA_NETECI_SERVER::launch_server_thread, - reinterpret_cast(state->eciserver)); - if (res != 0) { - cerr << "ecasound: Warning! Unable to create a thread for control over socket connection (NetECI)." << endl; - delete state->neteci_thread; state->neteci_thread = 0; - delete state->lock; state->lock = 0; - delete state->eciserver; state->eciserver = 0; - } - - // state->console->print("ecasound: NetECI server started"); -} - -/** - * Sets up and activates Ecasound OSC interface - */ -void ecasound_launch_osc(ECASOUND_RUN_STATE* state) -{ -#ifdef ECA_USE_LIBLO - DBC_REQUIRE(state != 0); - state->osc = new ECA_OSC_INTERFACE (state->control, state->osc_udp_port); - if (state->osc) - state->osc->start(); -#endif -} - -static int ecasound_pass_at_launch_commands(ECASOUND_RUN_STATE* state) -{ - if (state->launchcmds) { - std::vector::const_iterator p = state->launchcmds->begin(); - - while(p != state->launchcmds->end()) { - struct eci_return_value retval; - state->control->command(*p, &retval); - state->control->print_last_value(&retval); - ++p; - } - } - - return 0; -} - -static void ecasound_check_for_quit(ECASOUND_RUN_STATE* state, const string& cmd) -{ - if (cmd == "quit" || cmd == "q") { - state->console->print("---\necasound: Exiting..."); - state->exit_request = 1; - ECA_LOGGER::instance().flush(); - } -} - -/** - * The main processing loop for interactive use. - */ -void ecasound_main_loop_interactive(ECASOUND_RUN_STATE* state) -{ - DBC_REQUIRE(state != 0); - DBC_REQUIRE(state->console != 0); - - ECA_CONTROL_MAIN* ctrl = state->control; - - while(state->exit_request == 0) { - state->console->read_command("ecasound ('h' for help)> "); - const string& cmd = state->console->last_command(); - if (cmd.size() > 0 && state->exit_request == 0) { - - struct eci_return_value retval; - ctrl->command(cmd, &retval); - ctrl->print_last_value(&retval); - - ecasound_check_for_quit(state, cmd); - } - } -} - -/** - * The main processing loop for noninteractive use. - */ -void ecasound_main_loop_batch(ECASOUND_RUN_STATE* state) -{ - DBC_REQUIRE(state != 0); - DBC_REQUIRE(state->console != 0); - - ECA_CONTROL_MAIN* ctrl = state->control; - - struct eci_return_value connect_retval; - - if (ctrl->is_selected() == true && - ctrl->is_valid() == true) { - ctrl->connect_chainsetup(&connect_retval); - } - - if (state->neteci_mode != true && - state->osc_mode != true) { - - /* case: 2.1: non-interactive, neither NetECI or OSC is used, - * so this thread can use 'ctrl' exclusively */ - - if (ctrl->is_connected() == true) { - if (!state->exit_request) { - int res = ctrl->run(!state->keep_running_mode); - if (res < 0) { - state->retval = ECASOUND_RETVAL_RUNTIME_ERROR; - cerr << "ecasound: Warning! Errors detected during processing." << endl; - } - } - } - else { - ctrl->print_last_value(&connect_retval); - state->retval = ECASOUND_RETVAL_START_ERROR; - } - } - else { - - /* case: 2.2: non-interactive, NetECI active - * - * (special handling is needed as NetECI needs - * to submit atomic bundles of ECI commands and thus - * needs to be able to lock the ECA_CONTROL object - * for itself) */ - - int res = -1; - - if (ctrl->is_connected() == true) { - res = ctrl->start(); - } - - /* note: if keep_running_mode is enabled, we do not - * exit even if there are errors during startup */ - if (state->keep_running_mode != true && - res < 0) { - state->retval = ECASOUND_RETVAL_START_ERROR; - state->exit_request = 1; - } - - while(state->exit_request == 0) { - - if (state->keep_running_mode != true && - ctrl->is_finished() == true) - break; - - /* note: sleep for one second and let the NetECI thread - * access the ECA_CONTROL object for a while */ - kvu_sleep(1, 0); - } - - ecasound_check_for_quit(state, "quit"); - } - // cerr << endl << "ecasound: mainloop exiting..." << endl; -} - -/** - * Parses the command lines options in 'cline'. - */ -void ecasound_parse_command_line(ECASOUND_RUN_STATE* state, - const COMMAND_LINE& cline, - COMMAND_LINE* clineout) -{ - if (cline.size() < 2) { - ecasound_print_usage(); - state->retval = ECASOUND_RETVAL_INIT_FAILURE; - } - else { - cline.begin(); - while(cline.end() != true) { - - if (cline.current() == "-o:stdout" || - cline.current() == "stdout") { - state->cerr_output_only_mode = true; - /* pass option to libecasound */ - clineout->push_back(cline.current()); - } - - else if (cline.current() == "-d:0" || - cline.current() == "-q") { - state->quiet_mode = true; - /* pass option to libecasound */ - clineout->push_back(cline.current()); - } - - else if (cline.current() == "-c") { - state->interactive_mode = true; - } - - else if (cline.current() == "-C") { - state->interactive_mode = false; - } - - else if (cline.current() == "-D") { - state->cerr_output_only_mode = true; - } - - else if (cline.current() == "--server" || - cline.current() == "--daemon") { - /* note: --daemon* deprecated as of 2.6.0 */ - state->neteci_mode = true; - } - - else if (cline.current().compare(0, 2, "-E") == 0) { - cline.next(); - if (cline.end() != true) { - state->launchcmds = - new std::vector - (kvu_string_to_vector(cline.current(), ';')); - } - } - - else if (cline.current().find("--server-tcp-port") != string::npos || - cline.current().find("--daemon-port") != string::npos) { - std::vector argpair = - kvu_string_to_vector(cline.current(), '='); - if (argpair.size() > 1) { - /* --server-tcp-port=XXXX */ - /* note: --daemon* deprecated as of 2.6.0 */ - state->neteci_tcp_port = atoi(argpair[1].c_str()); - } - } - - else if (cline.current() == "--no-server" || - cline.current() == "--nodaemon") { - /* note: --daemon deprecated as of 2.6.0 */ - state->neteci_mode = false; - } - - else if (cline.current().find("--osc-udp-port") != string::npos) { - std::vector argpair = - kvu_string_to_vector(cline.current(), '='); - if (argpair.size() > 1) { - /* --osc-udp-port=XXXX */ - state->osc_udp_port = atoi(argpair[1].c_str()); - fprintf(stdout, - "set UDP port based on %s to %d.\n", cline.current().c_str(), state->osc_udp_port); - } -#ifdef ECA_USE_LIBLO - state->osc_mode = true; -#else - state->osc_mode = false; - cerr << "ERROR: ecasound was built without OSC support" << endl; -#endif - - } - - else if (cline.current() == "-h" || - cline.current() == "--help") { - ecasound_print_usage(); - state->retval = ECASOUND_RETVAL_INIT_FAILURE; - break; - } - - else if (cline.current() == "-K" || - cline.current() == "--keep-running") { - state->keep_running_mode = true; - } - - else if (cline.current() == "--version") { - ecasound_print_version_banner(); - state->retval = ECASOUND_RETVAL_INIT_FAILURE; - break; - } - - else { - /* pass rest of the options to libecasound */ - clineout->push_back(cline.current()); - } - - cline.next(); - } - } -} - -void ecasound_print_usage(void) -{ - cout << ecasound_parameter_help(); -} - -void ecasound_print_version_banner(void) -{ - cout << "ecasound v" << ecasound_library_version << endl; - cout << "Copyright (C) 1997-2010 Kai Vehmanen and others." << endl; - cout << "Ecasound comes with ABSOLUTELY NO WARRANTY." << endl; - cout << "You may redistribute copies of ecasound under the terms of the GNU" << endl; - cout << "General Public License. For more information about these matters, see" << endl; - cout << "the file named COPYING." << endl; -} - -static void ecasound_signal_handler(int signal) -{ - /* note: If either sigprocmask() or pthread_sigmask() - * is available, all relevant signals should be blocked - * and this handler should be never called until the final - * phase (ECASOUND_EXIT_PHASE_WAIT_FOR_WD) of the process - * termination starts. - */ - -#if defined(SIGNALS_CAN_BE_BLOCKED) - - if (glovar_wd_signals_blocked) { - TRACE_EXIT(cerr << "WARNING: ecasound_signal_handler entered, this should _NOT_ happen!"; - cerr << " pid=" << getpid() << endl); - } - -#else /* !SIGNALS_CAN_BE_BLOCKED */ - - { - static int ignored = 0; - - TRACE_EXIT(cerr << "ecasound_signal_handler, built with pause(), ignore count " - << ignored << endl); - - /* note: When signal blocking is not possible, ignore - * the first two signal (1st is the user sent signal, - * and second is the SIGHUP from ecasound main(). If - * we receive a third one, only then it's time for - * the emergency exit. */ - - if (++ignored <= 2) { - return; - } - } - -#endif - - TRACE_EXIT(cerr << "Signal " - << signal - << " received in exit phase " - << glovar_ecasound_exit_phase << endl); - - /* note: In ECASOUND_EXIT_PHASE_WAIT_FOR_WD, the main() thread - * will send a signal to the watchdog and we need to - * ignore this properly (as it's an internally generated - * signal, not sent from an external source. */ - - if (glovar_ecasound_exit_phase == ECASOUND_EXIT_PHASE_NONE || - glovar_ecasound_exit_phase == ECASOUND_EXIT_PHASE_ONE_THREAD || - glovar_ecasound_exit_phase == ECASOUND_EXIT_PHASE_DONE) { - - if (signal == SIGINT && - glovar_soft_signals_ignored == 0) { - cerr << endl - << "NOTICE: SIGINT (ctrl-c) was received while terminating ecasound. If\n" - << " another signal is received, the normal cleanup procedure will\n" - << " be skipped and process will terminate immediately.\n"; - glovar_soft_signals_ignored = 1; - return; - } - - /* note: user needs to see this, not using TRACE_EXIT() macro */ - cerr << endl - << "WARNING: Signal was received while terminating ecasound, so exiting immediately!\n" - << " Normal exit process is skipped, which may have some side-effects\n" - << " (e.g. file header information not updated).\n"; - - - /* step: Make sure the watchdog is woken up (a hack, but it seems - * exit() can in some cases be blocked when watchdog is - * still in sigwait() at this point. */ - if (signal != SIGHUP) - kill(0, SIGHUP); - - exit(ECASOUND_RETVAL_CLEANUP_ERROR); - } -} - -/** - * Sets up a signal mask with sigaction() that blocks - * all common signals, and then launces a signal watchdog - * thread that waits on the blocked signals using - * sigwait(). - * - * This design causes all non-fatal termination signals - * to be routed through a single thread. This signal watchdog - * in turn performs a clean exit upon receiving a signal. - * Without this setup, interactions between threads when handling - * would be harder to control (especially considering that - * ecasound needs to work on various different platforms). - */ -void ecasound_signal_setup(ECASOUND_RUN_STATE* state) -{ - sigset_t* signalset; - - /* man pthread_sigmask: - * "...signal actions and signal handlers, as set with - * sigaction(2), are shared between all threads" - */ - - /* handle the following signals explicitly */ - signalset = new sigset_t; - state->signalset = signalset; - sigemptyset(signalset); - sigaddset(signalset, SIGTERM); - sigaddset(signalset, SIGINT); - sigaddset(signalset, SIGHUP); - sigaddset(signalset, SIGPIPE); - sigaddset(signalset, SIGQUIT); - - /* create a dummy signal handler */ - struct sigaction blockaction; - blockaction.sa_handler = ecasound_signal_handler; - sigemptyset(&blockaction.sa_mask); - blockaction.sa_flags = 0; - - /* attach the dummy handler to the following signals */ - sigaction(SIGTERM, &blockaction, 0); - sigaction(SIGINT, &blockaction, 0); - sigaction(SIGHUP, &blockaction, 0); - sigaction(SIGPIPE, &blockaction, 0); - sigaction(SIGQUIT, &blockaction, 0); - -#ifdef __FreeBSD__ - /* ignore signals instead of passing them to our handler */ - blockaction.sa_handler = SIG_IGN; - sigaction(SIGFPE, &blockaction, 0); -#endif - - state->watchdog_thread = new pthread_t; - int res = pthread_create(state->watchdog_thread, - NULL, - ecasound_watchdog_thread, - reinterpret_cast(state)); - if (res != 0) { - cerr << "ecasound: Warning! Unable to create watchdog thread." << endl; - } - - /* block all signals in 'signalset' (see above) */ -#if defined(HAVE_PTHREAD_SIGMASK) - pthread_sigmask(SIG_BLOCK, signalset, NULL); -#elif defined(HAVE_SIGPROCMASK) - sigprocmask(SIG_BLOCK, signalset, NULL); -#endif -} - -static void ecasound_wd_wait_for_signals(ECASOUND_RUN_STATE* state) -{ -#ifdef HAVE_SIGWAIT - { - /********************************************/ - /* impl 1: sigwait() */ - /********************************************/ - - int signalno = 0; - -# if defined(HAVE_PTHREAD_SIGMASK) - pthread_sigmask(SIG_BLOCK, state->signalset, NULL); -# elif defined(HAVE_SIGPROCMASK) - /* the set of signals must be blocked before entering sigwait() */ - sigprocmask(SIG_BLOCK, state->signalset, NULL); -# else -# error "Build environment error." -# endif - - /* note: specific to sigwait() logic */ - glovar_wd_signals_blocked = 1; - - sigwait(state->signalset, &signalno); - - TRACE_EXIT(cerr << endl << "(ecasound-watchdog) Received signal " << signalno << ". Cleaning up and exiting..." << endl); - } - -#elif HAVE_PAUSE /* !HAVE_SIGWAIT */ - - /**************************************************/ - /* impl 2: pause() (alternative to sigwait()) - ***************************************************/ - - /* note: with pause() we don't set 'glovar_ecasound_signal_blocked' as - * it is normal to get signals when watchdog is running */ - - pause(); - - TRACE_EXIT(cerr << endl << "(ecasound-watchdog) Received signal and returned from pause(). Cleaning up and Exiting..." << endl); - -#else /* !HAVE_SIGWAIT && !HAVE_PAUSE */ -# error "Build environment error." -#endif -} - -/** - * Unblocks signals defined for 'state' for the calling thread, - * or with pthread_sigmask() is not supported, for the whole - * process. - */ -static void ecasound_signal_unblock(ECASOUND_RUN_STATE* state) -{ -#ifdef HAVE_SIGWAIT -# if defined(HAVE_PTHREAD_SIGMASK) - pthread_sigmask(SIG_UNBLOCK, state->signalset, NULL); -# elif defined(HAVE_SIGPROCMASK) - /* the set of signals must be blocked before entering sigwait() */ - sigprocmask(SIG_UNBLOCK, state->signalset, NULL); -# else -# error "Build environment error." -# endif -#endif -} - -/** - * Runs a watchdog thread that centrally catches signals that - * will cause ecasound to exit. - */ -void* ecasound_watchdog_thread(void* arg) -{ - ECASOUND_RUN_STATE* state = reinterpret_cast(arg); - - /* step: announce we are alive */ - // cerr << "Watchdog-thread created, pid=" << getpid() << "." << endl; - - /* step: block until a signal is received */ - ecasound_wd_wait_for_signals(state); - - /* step: unblock signals for watchdog thread after process - * termination has been started */ - ecasound_signal_unblock(state); - glovar_wd_signals_blocked = 0; - - /* step: signal the mainloop that process should terminate */ - state->exit_request = 1; - - /* step: in case mainloop is blocked running a batch job, we signal - * the engine thread directly and force it to terminate */ - if (state->interactive_mode != true && - state->control) - state->control->quit_async(); - - TRACE_EXIT(cerr << endl << "(ecasound-watchdog) looping until main reaches join point..." << endl); - - while(glovar_ecasound_exit_phase != 1) { - - TRACE_EXIT(cerr << "(ecasound-watchdog) watchdog thread exiting (looping)..." << endl); - - /* sleep for one 200ms */ - kvu_sleep(0, 200000000); - - /* note: A race condition exists between ECA_CONTROL_BASE - * quit_async() and run(): if quit_async() is called - * after run() has been entered, but before run() - * has managed to start the engine, it is possible engine - * may still be started. - * - * Thus we will keep checking the engine status until - * shutdown is really completed. - * - * For robustness, this check is also done when in - * interactive mode (in case the mainloop does not for - * some reason react to our exit request). - */ - if (state->control) { - if (state->control->is_engine_running() == true) { - state->control->quit_async(); - } - } - } - - /* note: this function should always exit before main() */ - DBC_CHECK(glovar_ecasound_exit_phase == ECASOUND_EXIT_PHASE_WAIT_FOR_WD); - - TRACE_EXIT(cerr << endl << "(ecasound-watchdog) thread exiting..." << endl); - - return 0; -} diff --git a/library/ecasound/ecasound/ecasound.h b/library/ecasound/ecasound/ecasound.h deleted file mode 100644 index 8b4128d6c..000000000 --- a/library/ecasound/ecasound/ecasound.h +++ /dev/null @@ -1,72 +0,0 @@ -#ifndef INCLUDED_ECASOUND_H -#define INCLUDED_ECASOUND_H - -#include -#include - -#include /* POSIX: pthread_create() */ -#include /* POSIX: sigaction(), sigwait(), sig_atomic_t */ - -class ECA_CONSOLE; -class ECA_CONTROL_MT; -class ECA_LOGGER_INTERFACE; -class ECA_NETECI_SERVER; -class ECA_SESSION; -class ECA_OSC_INTERFACE; - -/** - * String constants - */ - -#define ECASOUND_BANNER_ASTERISK_BAR "********************************************************************************\n" -#define ECASOUND_COPYRIGHT " (C) 1997-2010 Kai Vehmanen and others " - -#define ECASOUND_RETVAL_SUCCESS 0 /**< Succesful run */ -#define ECASOUND_RETVAL_INIT_FAILURE 1 /**< Unable to initialize */ -#define ECASOUND_RETVAL_START_ERROR 2 /**< Unable to start processing */ -#define ECASOUND_RETVAL_RUNTIME_ERROR 3 /**< Error during processing */ -#define ECASOUND_RETVAL_CLEANUP_ERROR 4 /**< Error during cleanup/exit */ - -#define ECASOUND_TERM_WIDTH_DEFAULT 74 - -/** - * Type definitions - */ - -/* Note! Check the initialization in ecasound.cpp if - * you change the state struct! */ - -class ECASOUND_RUN_STATE { - public: - ECASOUND_RUN_STATE(void); - ~ECASOUND_RUN_STATE(void); - - ECA_CONSOLE* console; - ECA_CONTROL_MT* control; - ECA_LOGGER_INTERFACE* logger; - ECA_NETECI_SERVER* eciserver; - ECA_OSC_INTERFACE* osc; - ECA_SESSION* session; - std::vector* launchcmds; - - pthread_t* neteci_thread; - pthread_t* watchdog_thread; - pthread_mutex_t* lock; - sig_atomic_t exit_request; - sigset_t* signalset; - - int retval; - - bool neteci_mode; - int neteci_tcp_port; - - bool osc_mode; - int osc_udp_port; - - bool keep_running_mode; - bool cerr_output_only_mode; - bool interactive_mode; - bool quiet_mode; -}; - -#endif /* INCLUDED_ECASOUND_H */ diff --git a/library/ecasound/ecasound/textdebug.cpp b/library/ecasound/ecasound/textdebug.cpp deleted file mode 100644 index 8493bdbf3..000000000 --- a/library/ecasound/ecasound/textdebug.cpp +++ /dev/null @@ -1,222 +0,0 @@ -// ------------------------------------------------------------------------ -// textdebug.cpp: Implementation of console logging subsystem. -// Copyright (C) 1999-2002,2004-2005,2008,2009 Kai Vehmanen -// -// Attributes: -// eca-style-version: 2 -// -// This program is free software; you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation; either version 2 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// ------------------------------------------------------------------------ - -#ifdef HAVE_CONFIG_H -#include -#endif - -#include -#include -#include -#include - -#include - -#include "ecasound.h" -#include "textdebug.h" - -#ifdef ECA_USE_NCURSES_H -#include -#include /* for setupterm() */ -#elif ECA_USE_NCURSES_NCURSES_H -#include -#include /* for setupterm() */ -#elif ECA_USE_CURSES_H -#include -#include /* for setupterm() */ -#endif - -using namespace std; - -const static int tb_terminal_width_default = ECASOUND_TERM_WIDTH_DEFAULT; - -/** - * Set terminal width used in pretty-printing ecasound console output. - */ -static int tb_terminal_width = tb_terminal_width_default; - -/** - * Set terminal width used in pretty-printing banners and - * other purely cosmetic traces. - */ -static int tb_terminal_width_banners = tb_terminal_width_default; - -/** - * Wraps text 'msg' by adding + "... " breaks so that none - * of the lines exceed 'width' characteds. - */ -static string tb_wrap(const string& msg, int width, int first_line_offset) -{ - string result; - int wrlines = 0; - int offset = first_line_offset; - const string wrap_prefix ("... "); - size_t wrap_offset = wrap_prefix.size(); - size_t begin, end; - -#undef VERBOSE_DEBUG -#ifdef VERBOSE_DEBUG - fprintf(stdout, - "msg-in=<%s>\n", - msg.c_str()); -#endif - - for(begin = 0, end = 0; end < msg.size(); end++) { - - if (begin == end) - continue; - - /* case: trace messages has a newline itself, no wrap needed */ - if (msg[end] == '\n') { - result += string(msg, begin, end - begin); - begin = end; - offset = 0; - ++wrlines; - } - /* case: current line exceeds the width, wrap */ - else if (end - begin + offset >= static_cast(width)) { - string tmpstr (msg, begin, end - begin); - size_t last_space = tmpstr.find_last_of(" "); - - /* case: spaces on the line, wrap before last token */ - if (last_space != string::npos) { - result += string(tmpstr, 0, last_space); - begin += last_space + 1; - } - /* case: no spaces on the line, cannot wrap */ - else { - /* note: with first line, wrap all input */ - if (static_cast(first_line_offset) > wrap_offset && - wrlines == 0) { - /* nop */ - } - else { - result += tmpstr; - begin = end; - } - } - - result += "\n" + wrap_prefix; - offset = wrap_offset; - ++wrlines; - } - } - - if ((end - begin) > 0) { - result += string(msg, begin, end - begin); - } - -#ifdef VERBOSE_DEBUG - fprintf(stdout, - "msg-out=<%s>\n", - result.c_str()); -#endif - - return result; -} - -void TEXTDEBUG::stream(std::ostream* dos) -{ - dostream_repp = dos; -} - -std::ostream* TEXTDEBUG::stream(void) -{ - return dostream_repp; -} - -void TEXTDEBUG::do_flush(void) -{ - dostream_repp->flush(); -} - -void TEXTDEBUG::do_msg(ECA_LOGGER::Msg_level_t level, const std::string& module_name, const std::string& log_message) -{ - if (is_log_level_set(level) == true) { - int offset = 0; - - if (level == ECA_LOGGER::subsystems) { -#if defined(ECA_USE_NCURSES_H) || defined(ECA_USE_NCURSES_NCURSES_H) || defined(ECA_USE_CURSES_H) - *dostream_repp << "- [ "; - putp(tigetstr("bold")); - offset += 4; -#endif - } - else if (module_name.size() > 0 && - is_log_level_set(ECA_LOGGER::module_names) == true && - level != ECA_LOGGER::eiam_return_values) { - std::string module_name_without_ext - = ECA_LOGGER_INTERFACE::filter_module_name(module_name); - *dostream_repp << "(" - << module_name_without_ext - << ") "; - offset += module_name_without_ext.size() + 3; - } - - *dostream_repp << tb_wrap(log_message, tb_terminal_width, offset); - - if (level == ECA_LOGGER::subsystems) { -#if defined(ECA_USE_NCURSES_H) || defined(ECA_USE_NCURSES_NCURSES_H) || defined(ECA_USE_CURSES_H) - putp(tigetstr("sgr0")); - *dostream_repp << " ] "; -#else - *dostream_repp << " ] "; -#endif - offset += 3; - int fillchars = tb_terminal_width_banners - - (static_cast(log_message.size()) + offset); - if (fillchars > 0) { - string fillstr (fillchars, '-'); - *dostream_repp << fillstr; - } - } - - *dostream_repp << endl; - } -} - -TEXTDEBUG::TEXTDEBUG(void) -{ - char *columns_str = getenv("COLUMNS"); - if (columns_str) { - tb_terminal_width = - std::atoi(columns_str) - 4; - if (tb_terminal_width < 8) - tb_terminal_width = tb_terminal_width_default; - } -#if defined(ECA_USE_NCURSES_H) || defined(ECA_USE_NCURSES_NCURSES_H) || defined(ECA_USE_CURSES_H) - else if (COLS > 0) { - tb_terminal_width = COLS - 4; - } -#endif - - if (tb_terminal_width < - tb_terminal_width_banners) - tb_terminal_width_banners = tb_terminal_width; - - dostream_repp = &std::cout; -} - -TEXTDEBUG::~TEXTDEBUG(void) -{ - flush(); -} diff --git a/library/ecasound/ecasound/textdebug.h b/library/ecasound/ecasound/textdebug.h deleted file mode 100644 index c39d2fe15..000000000 --- a/library/ecasound/ecasound/textdebug.h +++ /dev/null @@ -1,28 +0,0 @@ -#ifndef INCLUDED_TEXTDEBUG_H -#define INCLUDED_TEXTDEBUG_H - -#include -#include - -#include - -class TEXTDEBUG : public ECA_LOGGER_INTERFACE { - - public: - - virtual void do_msg(ECA_LOGGER::Msg_level_t level, const std::string& module_name, const std::string& log_message); - virtual void do_flush(void); - virtual void do_log_level_changed(void) { } - - TEXTDEBUG(void); - virtual ~TEXTDEBUG(void); - - private: - - std::ostream* dostream_repp; - - void stream(std::ostream* dos); - std::ostream* stream(void); -}; - -#endif /* INCLUDED_TEXTDEBUG_H */ diff --git a/library/ecasound/ecasoundrc.in b/library/ecasound/ecasoundrc.in deleted file mode 100644 index 6720727f3..000000000 --- a/library/ecasound/ecasoundrc.in +++ /dev/null @@ -1,31 +0,0 @@ -# settings decided at build time -ecasound-version = @VERSION@ -resource-directory = @pkgdatadir@ -resource-file-genosc-envelopes = generic_oscillators -resource-file-effect-presets = effect_presets -ladspa-plugin-directory = @prefix@/lib/ladspa - -# settings that affect creation of chainsetups (examples) -#midi-device = rawmidi,/dev/midi -#default-output = autodetect -#default-audio-format = s16_le,2,44100,i -#default-to-precise-sample-rates = false -default-mix-mode = avg -#bmode-defaults-nonrt = 1024,false,50,false,100000,true -#bmode-defaults-rt = 1024,true,50,true,100000,true -#bmode-defaults-rtlowlatency = 256,true,50,true,100000,false - -# commands for launching external programs -#ext-cmd-text-editor = nano -#ext-cmd-text-editor-use-getenv = true -#ext-cmd-wave-editor = ecawave -#ext-cmd-mp3-input = mpg123 --stereo -r %s -b 0 -q -s -k %o %f -#ext-cmd-mp3-output = lame -b %B -s %S --little-endian -S - %f -#ext-cmd-ogg-input = ogg123 -d raw -o byteorder:%E --file=- %f -#ext-cmd-ogg-output = oggenc -b %B --raw --raw-bits=%b --raw-chan=%c --raw-rate=%s --raw-endianness 0 --output=%f - -#ext-cmd-mikmod = mikmod -d stdout -o 16s -q -f %s -p 0 --noloops %f -#ext-cmd-timidity = timidity -Or1S -id -s %s -o - %f -#ext-cmd-flac-input = flac -d -c %f -#ext-cmd-flac-output = flac -o %f -f --force-raw-format --channels=%c --bps=%b --sample-rate=%s --sign=%I --endian=%E - -#ext-cmd-aac-input = faad -w -b 1 -f 2 -d %f -#ext-cmd-aac-output = faac -P -o %f -R %s -B %b -C %c - diff --git a/library/ecasound/ecatools/Makefile.am b/library/ecasound/ecatools/Makefile.am deleted file mode 100644 index b780520c2..000000000 --- a/library/ecasound/ecatools/Makefile.am +++ /dev/null @@ -1,94 +0,0 @@ -# ---------------------------------------------------------------------- -# File: ecasound/ecatools/Makefile.am -# Description: Utility applications built on Ecasound libraries -# License: GPL (see ecasound/{AUTHORS,COPYING}) -# ---------------------------------------------------------------------- - -EXTRA_DIST = ecasound.el ecamonitor - -if ECA_AM_DEBUG_MODE -libkvutils_path = $(top_builddir)/kvutils/libkvutils_debug.la -libecasoundc_path = $(top_builddir)/libecasoundc/libecasoundc_debug.la -else -libkvutils_path = $(top_builddir)/kvutils/libkvutils.la -libecasoundc_path = $(top_builddir)/libecasoundc/libecasoundc.la -endif - -if ECA_AM_USE_NCURSES -ncurses_library = -lncurses -endif - -if ECA_AM_USE_TERMCAP -termcap_library = -ltermcap -endif - -INCLUDES = -I$(srcdir) -I$(top_srcdir) -I$(top_srcdir)/kvutils -I$(top_srcdir)/libecasound -I$(top_srcdir)/libecasoundc - -bin_SCRIPTS = ecamonitor - -if ECA_AM_DEBUG_MODE -bin_PROGRAMS = ecaconvert_debug \ - ecafixdc_debug \ - ecalength_debug \ - ecanormalize_debug \ - ecaplay_debug \ - ecasignalview_debug -else -bin_PROGRAMS = ecaconvert \ - ecafixdc \ - ecalength \ - ecanormalize \ - ecaplay \ - ecasignalview -endif - -# -- - -noinst_HEADERS = ecicpp_helpers.h - -ecaconvert_SOURCES = ecaconvert.cpp ecicpp_helpers.cpp -ecaconvert_LDADD = $(libecasoundc_path) $(libkvutils_path) - -ecafixdc_SOURCES = ecafixdc.cpp ecicpp_helpers.cpp -ecafixdc_LDADD = $(libecasoundc_path) $(libkvutils_path) - -ecalength_SOURCES = ecalength.c -ecalength_LDADD = $(libecasoundc_path) - -ecanormalize_SOURCES = ecanormalize.cpp ecicpp_helpers.cpp -ecanormalize_LDADD = $(libecasoundc_path) $(libkvutils_path) - -ecaplay_SOURCES = ecaplay.c -ecaplay_LDADD = $(libecasoundc_path) - -ecasignalview_SOURCES = ecasignalview.cpp ecicpp_helpers.cpp -ecasignalview_LDADD = $(libecasoundc_path) $(libkvutils_path) $(termcap_library) $(ncurses_library) - -# -- - -ecaconvert_debug_SOURCES = $(ecaconvert_SOURCES) -ecaconvert_debug_LDADD = $(ecaconvert_LDADD) - -ecafixdc_debug_SOURCES = $(ecafixdc_SOURCES) -ecafixdc_debug_LDADD = $(ecafixdc_LDADD) - -ecalength_debug_SOURCES = $(ecalength_SOURCES) -ecalength_debug_LDADD = $(ecalength_LDADD) - -ecanormalize_debug_SOURCES = $(ecanormalize_SOURCES) -ecanormalize_debug_LDADD = $(ecanormalize_LDADD) -ecanormalize_debug_LDFLAGS = $(ecanormalize_LDFLAGS) - -ecaplay_debug_SOURCES = $(ecaplay_SOURCES) -ecaplay_debug_LDADD = $(ecaplay_LDADD) - -ecasignalview_debug_SOURCES = $(ecasignalview_SOURCES) -ecasignalview_debug_LDADD = $(ecasignalview_LDADD) - -# -- - -# special targets with dependency tracking -ecainstall: - $(MAKE) -C $(srcdir)/../libecasound -q 2>/dev/null || make -C $(srcdir)/../libecasound - $(MAKE) -C $(srcdir)/../kvutils -q 2>/dev/null || make -C $(srcdir)/../kvutils - $(MAKE) install diff --git a/library/ecasound/ecatools/Makefile.in b/library/ecasound/ecatools/Makefile.in deleted file mode 100644 index 9c41e1aab..000000000 --- a/library/ecasound/ecatools/Makefile.in +++ /dev/null @@ -1,736 +0,0 @@ -# Makefile.in generated by automake 1.9.6 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - -# ---------------------------------------------------------------------- -# File: ecasound/ecatools/Makefile.am -# Description: Utility applications built on Ecasound libraries -# License: GPL (see ecasound/{AUTHORS,COPYING}) -# ---------------------------------------------------------------------- - - - -srcdir = @srcdir@ -top_srcdir = @top_srcdir@ -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -top_builddir = .. -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -INSTALL = @INSTALL@ -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -@ECA_AM_DEBUG_MODE_FALSE@bin_PROGRAMS = ecaconvert$(EXEEXT) \ -@ECA_AM_DEBUG_MODE_FALSE@ ecafixdc$(EXEEXT) ecalength$(EXEEXT) \ -@ECA_AM_DEBUG_MODE_FALSE@ ecanormalize$(EXEEXT) \ -@ECA_AM_DEBUG_MODE_FALSE@ ecaplay$(EXEEXT) \ -@ECA_AM_DEBUG_MODE_FALSE@ ecasignalview$(EXEEXT) -@ECA_AM_DEBUG_MODE_TRUE@bin_PROGRAMS = ecaconvert_debug$(EXEEXT) \ -@ECA_AM_DEBUG_MODE_TRUE@ ecafixdc_debug$(EXEEXT) \ -@ECA_AM_DEBUG_MODE_TRUE@ ecalength_debug$(EXEEXT) \ -@ECA_AM_DEBUG_MODE_TRUE@ ecanormalize_debug$(EXEEXT) \ -@ECA_AM_DEBUG_MODE_TRUE@ ecaplay_debug$(EXEEXT) \ -@ECA_AM_DEBUG_MODE_TRUE@ ecasignalview_debug$(EXEEXT) -subdir = ecatools -DIST_COMMON = $(noinst_HEADERS) $(srcdir)/Makefile.am \ - $(srcdir)/Makefile.in -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/configure.in -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(bindir)" -binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) -PROGRAMS = $(bin_PROGRAMS) -am_ecaconvert_OBJECTS = ecaconvert.$(OBJEXT) ecicpp_helpers.$(OBJEXT) -ecaconvert_OBJECTS = $(am_ecaconvert_OBJECTS) -@ECA_AM_DEBUG_MODE_FALSE@am__DEPENDENCIES_1 = $(top_builddir)/libecasoundc/libecasoundc.la -@ECA_AM_DEBUG_MODE_TRUE@am__DEPENDENCIES_1 = $(top_builddir)/libecasoundc/libecasoundc_debug.la -@ECA_AM_DEBUG_MODE_FALSE@am__DEPENDENCIES_2 = $(top_builddir)/kvutils/libkvutils.la -@ECA_AM_DEBUG_MODE_TRUE@am__DEPENDENCIES_2 = $(top_builddir)/kvutils/libkvutils_debug.la -ecaconvert_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_2) -am__objects_1 = ecaconvert.$(OBJEXT) ecicpp_helpers.$(OBJEXT) -am_ecaconvert_debug_OBJECTS = $(am__objects_1) -ecaconvert_debug_OBJECTS = $(am_ecaconvert_debug_OBJECTS) -am__DEPENDENCIES_3 = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_2) -ecaconvert_debug_DEPENDENCIES = $(am__DEPENDENCIES_3) -am_ecafixdc_OBJECTS = ecafixdc.$(OBJEXT) ecicpp_helpers.$(OBJEXT) -ecafixdc_OBJECTS = $(am_ecafixdc_OBJECTS) -ecafixdc_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_2) -am__objects_2 = ecafixdc.$(OBJEXT) ecicpp_helpers.$(OBJEXT) -am_ecafixdc_debug_OBJECTS = $(am__objects_2) -ecafixdc_debug_OBJECTS = $(am_ecafixdc_debug_OBJECTS) -ecafixdc_debug_DEPENDENCIES = $(am__DEPENDENCIES_3) -am_ecalength_OBJECTS = ecalength.$(OBJEXT) -ecalength_OBJECTS = $(am_ecalength_OBJECTS) -ecalength_DEPENDENCIES = $(am__DEPENDENCIES_1) -am__objects_3 = ecalength.$(OBJEXT) -am_ecalength_debug_OBJECTS = $(am__objects_3) -ecalength_debug_OBJECTS = $(am_ecalength_debug_OBJECTS) -am__DEPENDENCIES_4 = $(am__DEPENDENCIES_1) -ecalength_debug_DEPENDENCIES = $(am__DEPENDENCIES_4) -am_ecanormalize_OBJECTS = ecanormalize.$(OBJEXT) \ - ecicpp_helpers.$(OBJEXT) -ecanormalize_OBJECTS = $(am_ecanormalize_OBJECTS) -ecanormalize_DEPENDENCIES = $(am__DEPENDENCIES_1) \ - $(am__DEPENDENCIES_2) -am__objects_4 = ecanormalize.$(OBJEXT) ecicpp_helpers.$(OBJEXT) -am_ecanormalize_debug_OBJECTS = $(am__objects_4) -ecanormalize_debug_OBJECTS = $(am_ecanormalize_debug_OBJECTS) -ecanormalize_debug_DEPENDENCIES = $(am__DEPENDENCIES_3) -am_ecaplay_OBJECTS = ecaplay.$(OBJEXT) -ecaplay_OBJECTS = $(am_ecaplay_OBJECTS) -ecaplay_DEPENDENCIES = $(am__DEPENDENCIES_1) -am__objects_5 = ecaplay.$(OBJEXT) -am_ecaplay_debug_OBJECTS = $(am__objects_5) -ecaplay_debug_OBJECTS = $(am_ecaplay_debug_OBJECTS) -ecaplay_debug_DEPENDENCIES = $(am__DEPENDENCIES_4) -am_ecasignalview_OBJECTS = ecasignalview.$(OBJEXT) \ - ecicpp_helpers.$(OBJEXT) -ecasignalview_OBJECTS = $(am_ecasignalview_OBJECTS) -am__DEPENDENCIES_5 = -ecasignalview_DEPENDENCIES = $(am__DEPENDENCIES_1) \ - $(am__DEPENDENCIES_2) $(am__DEPENDENCIES_5) \ - $(am__DEPENDENCIES_5) -am__objects_6 = ecasignalview.$(OBJEXT) ecicpp_helpers.$(OBJEXT) -am_ecasignalview_debug_OBJECTS = $(am__objects_6) -ecasignalview_debug_OBJECTS = $(am_ecasignalview_debug_OBJECTS) -am__DEPENDENCIES_6 = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_2) \ - $(am__DEPENDENCIES_5) $(am__DEPENDENCIES_5) -ecasignalview_debug_DEPENDENCIES = $(am__DEPENDENCIES_6) -binSCRIPT_INSTALL = $(INSTALL_SCRIPT) -SCRIPTS = $(bin_SCRIPTS) -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) -depcomp = $(SHELL) $(top_srcdir)/depcomp -am__depfiles_maybe = depfiles -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \ - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ - $(AM_CFLAGS) $(CFLAGS) -CCLD = $(CC) -LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ - $(AM_LDFLAGS) $(LDFLAGS) -o $@ -CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ - $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -LTCXXCOMPILE = $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) \ - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ - $(AM_CXXFLAGS) $(CXXFLAGS) -CXXLD = $(CXX) -CXXLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXXLD) $(AM_CXXFLAGS) \ - $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ -SOURCES = $(ecaconvert_SOURCES) $(ecaconvert_debug_SOURCES) \ - $(ecafixdc_SOURCES) $(ecafixdc_debug_SOURCES) \ - $(ecalength_SOURCES) $(ecalength_debug_SOURCES) \ - $(ecanormalize_SOURCES) $(ecanormalize_debug_SOURCES) \ - $(ecaplay_SOURCES) $(ecaplay_debug_SOURCES) \ - $(ecasignalview_SOURCES) $(ecasignalview_debug_SOURCES) -DIST_SOURCES = $(ecaconvert_SOURCES) $(ecaconvert_debug_SOURCES) \ - $(ecafixdc_SOURCES) $(ecafixdc_debug_SOURCES) \ - $(ecalength_SOURCES) $(ecalength_debug_SOURCES) \ - $(ecanormalize_SOURCES) $(ecanormalize_debug_SOURCES) \ - $(ecaplay_SOURCES) $(ecaplay_debug_SOURCES) \ - $(ecasignalview_SOURCES) $(ecasignalview_debug_SOURCES) -HEADERS = $(noinst_HEADERS) -ETAGS = etags -CTAGS = ctags -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMDEP_FALSE = @AMDEP_FALSE@ -AMDEP_TRUE = @AMDEP_TRUE@ -AMTAR = @AMTAR@ -AM_CFLAGS = @AM_CFLAGS@ -AM_CPPFLAGS = @AM_CPPFLAGS@ -AM_CXXFLAGS = @AM_CXXFLAGS@ -AM_LDFLAGS = @AM_LDFLAGS@ -AR = @AR@ -ARTSC_CONFIG = @ARTSC_CONFIG@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DSYMUTIL = @DSYMUTIL@ -ECA_AM_ALL_STATIC_FALSE = @ECA_AM_ALL_STATIC_FALSE@ -ECA_AM_ALL_STATIC_TRUE = @ECA_AM_ALL_STATIC_TRUE@ -ECA_AM_COMPILE_ALSA_FALSE = @ECA_AM_COMPILE_ALSA_FALSE@ -ECA_AM_COMPILE_ALSA_TRUE = @ECA_AM_COMPILE_ALSA_TRUE@ -ECA_AM_COMPILE_ARTS_FALSE = @ECA_AM_COMPILE_ARTS_FALSE@ -ECA_AM_COMPILE_ARTS_TRUE = @ECA_AM_COMPILE_ARTS_TRUE@ -ECA_AM_COMPILE_AUDIOFILE_FALSE = @ECA_AM_COMPILE_AUDIOFILE_FALSE@ -ECA_AM_COMPILE_AUDIOFILE_TRUE = @ECA_AM_COMPILE_AUDIOFILE_TRUE@ -ECA_AM_COMPILE_JACK_FALSE = @ECA_AM_COMPILE_JACK_FALSE@ -ECA_AM_COMPILE_JACK_TRUE = @ECA_AM_COMPILE_JACK_TRUE@ -ECA_AM_COMPILE_OSS_FALSE = @ECA_AM_COMPILE_OSS_FALSE@ -ECA_AM_COMPILE_OSS_TRUE = @ECA_AM_COMPILE_OSS_TRUE@ -ECA_AM_COMPILE_SAMPLERATE_FALSE = @ECA_AM_COMPILE_SAMPLERATE_FALSE@ -ECA_AM_COMPILE_SAMPLERATE_TRUE = @ECA_AM_COMPILE_SAMPLERATE_TRUE@ -ECA_AM_COMPILE_SNDFILE_FALSE = @ECA_AM_COMPILE_SNDFILE_FALSE@ -ECA_AM_COMPILE_SNDFILE_TRUE = @ECA_AM_COMPILE_SNDFILE_TRUE@ -ECA_AM_DEBUG_MODE_FALSE = @ECA_AM_DEBUG_MODE_FALSE@ -ECA_AM_DEBUG_MODE_TRUE = @ECA_AM_DEBUG_MODE_TRUE@ -ECA_AM_DISABLE_EFFECTS_FALSE = @ECA_AM_DISABLE_EFFECTS_FALSE@ -ECA_AM_DISABLE_EFFECTS_TRUE = @ECA_AM_DISABLE_EFFECTS_TRUE@ -ECA_AM_FEELING_EXPERIMENTAL_FALSE = @ECA_AM_FEELING_EXPERIMENTAL_FALSE@ -ECA_AM_FEELING_EXPERIMENTAL_TRUE = @ECA_AM_FEELING_EXPERIMENTAL_TRUE@ -ECA_AM_KVUTILS_INSTALLED_FALSE = @ECA_AM_KVUTILS_INSTALLED_FALSE@ -ECA_AM_KVUTILS_INSTALLED_TRUE = @ECA_AM_KVUTILS_INSTALLED_TRUE@ -ECA_AM_PYECASOUND_CEXT_FALSE = @ECA_AM_PYECASOUND_CEXT_FALSE@ -ECA_AM_PYECASOUND_CEXT_TRUE = @ECA_AM_PYECASOUND_CEXT_TRUE@ -ECA_AM_PYECASOUND_INSTALL_FALSE = @ECA_AM_PYECASOUND_INSTALL_FALSE@ -ECA_AM_PYECASOUND_INSTALL_TRUE = @ECA_AM_PYECASOUND_INSTALL_TRUE@ -ECA_AM_RUBYECASOUND_INSTALL_FALSE = @ECA_AM_RUBYECASOUND_INSTALL_FALSE@ -ECA_AM_RUBYECASOUND_INSTALL_TRUE = @ECA_AM_RUBYECASOUND_INSTALL_TRUE@ -ECA_AM_SYSTEM_READLINE_FALSE = @ECA_AM_SYSTEM_READLINE_FALSE@ -ECA_AM_SYSTEM_READLINE_TRUE = @ECA_AM_SYSTEM_READLINE_TRUE@ -ECA_AM_USE_NCURSES_FALSE = @ECA_AM_USE_NCURSES_FALSE@ -ECA_AM_USE_NCURSES_TRUE = @ECA_AM_USE_NCURSES_TRUE@ -ECA_AM_USE_TERMCAP_FALSE = @ECA_AM_USE_TERMCAP_FALSE@ -ECA_AM_USE_TERMCAP_TRUE = @ECA_AM_USE_TERMCAP_TRUE@ -ECA_S_EXTRA_CPPFLAGS = @ECA_S_EXTRA_CPPFLAGS@ -ECA_S_EXTRA_LIBS = @ECA_S_EXTRA_LIBS@ -ECA_S_JACK_INCLUDES = @ECA_S_JACK_INCLUDES@ -ECA_S_JACK_LIBS = @ECA_S_JACK_LIBS@ -ECA_S_PREFIX = @ECA_S_PREFIX@ -ECA_S_PYTHON_DLMODULES = @ECA_S_PYTHON_DLMODULES@ -ECA_S_PYTHON_INCLUDES = @ECA_S_PYTHON_INCLUDES@ -ECA_S_PYTHON_MODULES = @ECA_S_PYTHON_MODULES@ -ECA_S_READLINE_INCLUDES = @ECA_S_READLINE_INCLUDES@ -ECA_S_READLINE_LIBS = @ECA_S_READLINE_LIBS@ -ECA_S_RUBY_SITEDIR = @ECA_S_RUBY_SITEDIR@ -ECHO = @ECHO@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -F77 = @F77@ -FFLAGS = @FFLAGS@ -GREP = @GREP@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LDFLAGS = @LDFLAGS@ -LIBECASOUNDC_VERSION = @LIBECASOUNDC_VERSION@ -LIBECASOUNDC_VERSION_AGE = @LIBECASOUNDC_VERSION_AGE@ -LIBECASOUND_VERSION = @LIBECASOUND_VERSION@ -LIBECASOUND_VERSION_AGE = @LIBECASOUND_VERSION_AGE@ -LIBKVUTILS_VERSION = @LIBKVUTILS_VERSION@ -LIBKVUTILS_VERSION_AGE = @LIBKVUTILS_VERSION_AGE@ -LIBLO_CFLAGS = @LIBLO_CFLAGS@ -LIBLO_LIBS = @LIBLO_LIBS@ -LIBOBJS = @LIBOBJS@ -LIBOIL_CFLAGS = @LIBOIL_CFLAGS@ -LIBOIL_LIBS = @LIBOIL_LIBS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LN_S = @LN_S@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -NMEDIT = @NMEDIT@ -OBJEXT = @OBJEXT@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PKG_CONFIG = @PKG_CONFIG@ -PYTHONPATH = @PYTHONPATH@ -RANLIB = @RANLIB@ -RUBYPATH = @RUBYPATH@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -VERSION = @VERSION@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_CXX = @ac_ct_CXX@ -ac_ct_F77 = @ac_ct_F77@ -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -EXTRA_DIST = ecasound.el ecamonitor -@ECA_AM_DEBUG_MODE_FALSE@libkvutils_path = $(top_builddir)/kvutils/libkvutils.la -@ECA_AM_DEBUG_MODE_TRUE@libkvutils_path = $(top_builddir)/kvutils/libkvutils_debug.la -@ECA_AM_DEBUG_MODE_FALSE@libecasoundc_path = $(top_builddir)/libecasoundc/libecasoundc.la -@ECA_AM_DEBUG_MODE_TRUE@libecasoundc_path = $(top_builddir)/libecasoundc/libecasoundc_debug.la -@ECA_AM_USE_NCURSES_TRUE@ncurses_library = -lncurses -@ECA_AM_USE_TERMCAP_TRUE@termcap_library = -ltermcap -INCLUDES = -I$(srcdir) -I$(top_srcdir) -I$(top_srcdir)/kvutils -I$(top_srcdir)/libecasound -I$(top_srcdir)/libecasoundc -bin_SCRIPTS = ecamonitor - -# -- -noinst_HEADERS = ecicpp_helpers.h -ecaconvert_SOURCES = ecaconvert.cpp ecicpp_helpers.cpp -ecaconvert_LDADD = $(libecasoundc_path) $(libkvutils_path) -ecafixdc_SOURCES = ecafixdc.cpp ecicpp_helpers.cpp -ecafixdc_LDADD = $(libecasoundc_path) $(libkvutils_path) -ecalength_SOURCES = ecalength.c -ecalength_LDADD = $(libecasoundc_path) -ecanormalize_SOURCES = ecanormalize.cpp ecicpp_helpers.cpp -ecanormalize_LDADD = $(libecasoundc_path) $(libkvutils_path) -ecaplay_SOURCES = ecaplay.c -ecaplay_LDADD = $(libecasoundc_path) -ecasignalview_SOURCES = ecasignalview.cpp ecicpp_helpers.cpp -ecasignalview_LDADD = $(libecasoundc_path) $(libkvutils_path) $(termcap_library) $(ncurses_library) - -# -- -ecaconvert_debug_SOURCES = $(ecaconvert_SOURCES) -ecaconvert_debug_LDADD = $(ecaconvert_LDADD) -ecafixdc_debug_SOURCES = $(ecafixdc_SOURCES) -ecafixdc_debug_LDADD = $(ecafixdc_LDADD) -ecalength_debug_SOURCES = $(ecalength_SOURCES) -ecalength_debug_LDADD = $(ecalength_LDADD) -ecanormalize_debug_SOURCES = $(ecanormalize_SOURCES) -ecanormalize_debug_LDADD = $(ecanormalize_LDADD) -ecanormalize_debug_LDFLAGS = $(ecanormalize_LDFLAGS) -ecaplay_debug_SOURCES = $(ecaplay_SOURCES) -ecaplay_debug_LDADD = $(ecaplay_LDADD) -ecasignalview_debug_SOURCES = $(ecasignalview_SOURCES) -ecasignalview_debug_LDADD = $(ecasignalview_LDADD) -all: all-am - -.SUFFIXES: -.SUFFIXES: .c .cpp .lo .o .obj -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign ecatools/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --foreign ecatools/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -install-binPROGRAMS: $(bin_PROGRAMS) - @$(NORMAL_INSTALL) - test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)" - @list='$(bin_PROGRAMS)'; for p in $$list; do \ - p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ - if test -f $$p \ - || test -f $$p1 \ - ; then \ - f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ - echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \ - $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \ - else :; fi; \ - done - -uninstall-binPROGRAMS: - @$(NORMAL_UNINSTALL) - @list='$(bin_PROGRAMS)'; for p in $$list; do \ - f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ - echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \ - rm -f "$(DESTDIR)$(bindir)/$$f"; \ - done - -clean-binPROGRAMS: - @list='$(bin_PROGRAMS)'; for p in $$list; do \ - f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ - echo " rm -f $$p $$f"; \ - rm -f $$p $$f ; \ - done -ecaconvert$(EXEEXT): $(ecaconvert_OBJECTS) $(ecaconvert_DEPENDENCIES) - @rm -f ecaconvert$(EXEEXT) - $(CXXLINK) $(ecaconvert_LDFLAGS) $(ecaconvert_OBJECTS) $(ecaconvert_LDADD) $(LIBS) -ecaconvert_debug$(EXEEXT): $(ecaconvert_debug_OBJECTS) $(ecaconvert_debug_DEPENDENCIES) - @rm -f ecaconvert_debug$(EXEEXT) - $(CXXLINK) $(ecaconvert_debug_LDFLAGS) $(ecaconvert_debug_OBJECTS) $(ecaconvert_debug_LDADD) $(LIBS) -ecafixdc$(EXEEXT): $(ecafixdc_OBJECTS) $(ecafixdc_DEPENDENCIES) - @rm -f ecafixdc$(EXEEXT) - $(CXXLINK) $(ecafixdc_LDFLAGS) $(ecafixdc_OBJECTS) $(ecafixdc_LDADD) $(LIBS) -ecafixdc_debug$(EXEEXT): $(ecafixdc_debug_OBJECTS) $(ecafixdc_debug_DEPENDENCIES) - @rm -f ecafixdc_debug$(EXEEXT) - $(CXXLINK) $(ecafixdc_debug_LDFLAGS) $(ecafixdc_debug_OBJECTS) $(ecafixdc_debug_LDADD) $(LIBS) -ecalength$(EXEEXT): $(ecalength_OBJECTS) $(ecalength_DEPENDENCIES) - @rm -f ecalength$(EXEEXT) - $(LINK) $(ecalength_LDFLAGS) $(ecalength_OBJECTS) $(ecalength_LDADD) $(LIBS) -ecalength_debug$(EXEEXT): $(ecalength_debug_OBJECTS) $(ecalength_debug_DEPENDENCIES) - @rm -f ecalength_debug$(EXEEXT) - $(LINK) $(ecalength_debug_LDFLAGS) $(ecalength_debug_OBJECTS) $(ecalength_debug_LDADD) $(LIBS) -ecanormalize$(EXEEXT): $(ecanormalize_OBJECTS) $(ecanormalize_DEPENDENCIES) - @rm -f ecanormalize$(EXEEXT) - $(CXXLINK) $(ecanormalize_LDFLAGS) $(ecanormalize_OBJECTS) $(ecanormalize_LDADD) $(LIBS) -ecanormalize_debug$(EXEEXT): $(ecanormalize_debug_OBJECTS) $(ecanormalize_debug_DEPENDENCIES) - @rm -f ecanormalize_debug$(EXEEXT) - $(CXXLINK) $(ecanormalize_debug_LDFLAGS) $(ecanormalize_debug_OBJECTS) $(ecanormalize_debug_LDADD) $(LIBS) -ecaplay$(EXEEXT): $(ecaplay_OBJECTS) $(ecaplay_DEPENDENCIES) - @rm -f ecaplay$(EXEEXT) - $(LINK) $(ecaplay_LDFLAGS) $(ecaplay_OBJECTS) $(ecaplay_LDADD) $(LIBS) -ecaplay_debug$(EXEEXT): $(ecaplay_debug_OBJECTS) $(ecaplay_debug_DEPENDENCIES) - @rm -f ecaplay_debug$(EXEEXT) - $(LINK) $(ecaplay_debug_LDFLAGS) $(ecaplay_debug_OBJECTS) $(ecaplay_debug_LDADD) $(LIBS) -ecasignalview$(EXEEXT): $(ecasignalview_OBJECTS) $(ecasignalview_DEPENDENCIES) - @rm -f ecasignalview$(EXEEXT) - $(CXXLINK) $(ecasignalview_LDFLAGS) $(ecasignalview_OBJECTS) $(ecasignalview_LDADD) $(LIBS) -ecasignalview_debug$(EXEEXT): $(ecasignalview_debug_OBJECTS) $(ecasignalview_debug_DEPENDENCIES) - @rm -f ecasignalview_debug$(EXEEXT) - $(CXXLINK) $(ecasignalview_debug_LDFLAGS) $(ecasignalview_debug_OBJECTS) $(ecasignalview_debug_LDADD) $(LIBS) -install-binSCRIPTS: $(bin_SCRIPTS) - @$(NORMAL_INSTALL) - test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)" - @list='$(bin_SCRIPTS)'; for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - if test -f $$d$$p; then \ - f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \ - echo " $(binSCRIPT_INSTALL) '$$d$$p' '$(DESTDIR)$(bindir)/$$f'"; \ - $(binSCRIPT_INSTALL) "$$d$$p" "$(DESTDIR)$(bindir)/$$f"; \ - else :; fi; \ - done - -uninstall-binSCRIPTS: - @$(NORMAL_UNINSTALL) - @list='$(bin_SCRIPTS)'; for p in $$list; do \ - f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \ - echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \ - rm -f "$(DESTDIR)$(bindir)/$$f"; \ - done - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ecaconvert.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ecafixdc.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ecalength.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ecanormalize.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ecaplay.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ecasignalview.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ecicpp_helpers.Po@am__quote@ - -.c.o: -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(COMPILE) -c $< - -.c.obj: -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` - -.c.lo: -@am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< - -.cpp.o: -@am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ -@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< - -.cpp.obj: -@am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ -@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` - -.cpp.lo: -@am__fastdepCXX_TRUE@ if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ -@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -distclean-libtool: - -rm -f libtool -uninstall-info-am: - -ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - mkid -fID $$unique -tags: TAGS - -TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ - test -n "$$unique" || unique=$$empty_fix; \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$tags $$unique; \ - fi -ctags: CTAGS -CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(CTAGS_ARGS)$$tags$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$tags $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && cd $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) $$here - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ - list='$(DISTFILES)'; for file in $$list; do \ - case $$file in \ - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ - esac; \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test "$$dir" != "$$file" && test "$$dir" != "."; then \ - dir="/$$dir"; \ - $(mkdir_p) "$(distdir)$$dir"; \ - else \ - dir=''; \ - fi; \ - if test -d $$d/$$file; then \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ - fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ - else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile $(PROGRAMS) $(SCRIPTS) $(HEADERS) -installdirs: - for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(bindir)"; do \ - test -z "$$dir" || $(mkdir_p) "$$dir"; \ - done -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am - -distclean: distclean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -distclean-am: clean-am distclean-compile distclean-generic \ - distclean-libtool distclean-tags - -dvi: dvi-am - -dvi-am: - -html: html-am - -info: info-am - -info-am: - -install-data-am: - -install-exec-am: install-binPROGRAMS install-binSCRIPTS - -install-info: install-info-am - -install-man: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-binPROGRAMS uninstall-binSCRIPTS \ - uninstall-info-am - -.PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ - clean-generic clean-libtool ctags distclean distclean-compile \ - distclean-generic distclean-libtool distclean-tags distdir dvi \ - dvi-am html html-am info info-am install install-am \ - install-binPROGRAMS install-binSCRIPTS install-data \ - install-data-am install-exec install-exec-am install-info \ - install-info-am install-man install-strip installcheck \ - installcheck-am installdirs maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-compile \ - mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ - tags uninstall uninstall-am uninstall-binPROGRAMS \ - uninstall-binSCRIPTS uninstall-info-am - - -# -- - -# special targets with dependency tracking -ecainstall: - $(MAKE) -C $(srcdir)/../libecasound -q 2>/dev/null || make -C $(srcdir)/../libecasound - $(MAKE) -C $(srcdir)/../kvutils -q 2>/dev/null || make -C $(srcdir)/../kvutils - $(MAKE) install -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/library/ecasound/ecatools/ecaconvert.cpp b/library/ecasound/ecatools/ecaconvert.cpp deleted file mode 100644 index e901840b9..000000000 --- a/library/ecasound/ecatools/ecaconvert.cpp +++ /dev/null @@ -1,117 +0,0 @@ -// ------------------------------------------------------------------------ -// ecaconvert.cpp: A simple command-line tool for converting -// audio files. -// Copyright (C) 2000,2002,2005-2006 Kai Vehmanen -// -// This program is free software; you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation; either version 2 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// ------------------------------------------------------------------------ - -#ifdef HAVE_CONFIG_H -#include -#endif - -#include -#include -#include - -#include -#include - -#include - -#include "ecicpp_helpers.h" - -/** - * Function declarations - */ - -int main(int argc, char *argv[]); -void print_usage(void); - -using std::cerr; -using std::cout; -using std::endl; -using std::string; - -static const string ecatools_play_version = "20050316-18"; - -int main(int argc, char *argv[]) -{ - COMMAND_LINE cline = COMMAND_LINE (argc, argv); - - if (cline.size() < 2) { - print_usage(); - return(1); - } - - string filename; - - ECA_CONTROL_INTERFACE eci; - - cline.begin(); - cline.next(); // skip the program name - - string extension (".raw"); - if (cline.end() != true) { - extension = cline.current(); - cline.next(); - } - - while(cline.end() != true) { - filename = cline.current(); - - cout << "Converting file \"" << filename << "\" --> "; - cout << "\"" << filename + extension << "\"." << endl; - - eci.command("cs-add default"); - eci.command("c-add default"); - - string format; - if (ecicpp_add_file_input(&eci, filename, &format) < 0) break; - - cout << "Using audio format -f:" << format << "\n"; - - if (ecicpp_add_output(&eci, filename + extension, format) < 0) break; - - if (ecicpp_connect_chainsetup(&eci, "default") < 0) { - break; - } - - cout << "Starting processing...\n"; - - // blocks until processing is done - eci.command("run"); - - cout << "Processing finished.\n"; - - eci.command("cs-disconnect"); - eci.command("cs-select default"); - eci.command("cs-remove"); - - cline.next(); - } - - return(0); -} - -void print_usage(void) -{ - cerr << "****************************************************************************\n"; - cerr << "* ecaconvert, v" << ecatools_play_version << " (" << VERSION << ")\n"; - cerr << "* (C) 2000-2004 Kai Vehmanen, released under GPL licence \n"; - cerr << "****************************************************************************\n"; - - cerr << "\nUSAGE: ecaconvert .extension file1 [ file2, ... fileN ]\n\n"; -} diff --git a/library/ecasound/ecatools/ecafixdc.cpp b/library/ecasound/ecatools/ecafixdc.cpp deleted file mode 100644 index 81ae70898..000000000 --- a/library/ecasound/ecatools/ecafixdc.cpp +++ /dev/null @@ -1,244 +0,0 @@ -// ------------------------------------------------------------------------ -// ecatools-fixdc.cpp: A simple command-line tools for fixing DC-offset. -// Copyright (C) 1999-2003,2005-2006 Kai Vehmanen -// -// This program is free software; you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation; either version 2 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// ------------------------------------------------------------------------ - -#ifdef HAVE_CONFIG_H -#include -#endif - -#include -#include -#include -#include -#include /* fabs() */ - -#include -#include - -#include -#include -#include -#include -#include - -#include - -#include "ecicpp_helpers.h" - -using std::cerr; -using std::cout; -using std::endl; -using std::string; - -/** - * Function declarations - */ - -int main(int argc, char *argv[]); - -static void ecafixdc_print_usage(void); -static void ecafixdc_signal_handler(int signum); - -/** - * Definitions and options - */ - -#define ECAFIXDC_PHASE_ANALYSIS 0 -#define ECAFIXDC_PHASE_PROCESSING 1 -#define ECAFIXDC_PHASE_MAX 2 - -static const string ecatools_fixdc_version = "20050316-30"; -static string ecatools_fixdc_tempfile; - -/** - * Function definitions - */ - -int main(int argc, char *argv[]) -{ - struct sigaction es_handler; - es_handler.sa_handler = ecafixdc_signal_handler; - sigemptyset(&es_handler.sa_mask); - es_handler.sa_flags = 0; - - sigaction(SIGTERM, &es_handler, 0); - sigaction(SIGINT, &es_handler, 0); - sigaction(SIGQUIT, &es_handler, 0); - sigaction(SIGABRT, &es_handler, 0); - - struct sigaction ign_handler; - ign_handler.sa_handler = SIG_IGN; - sigemptyset(&ign_handler.sa_mask); - ign_handler.sa_flags = 0; - - /* ignore the following signals */ - sigaction(SIGPIPE, &ign_handler, 0); - sigaction(SIGFPE, &ign_handler, 0); - - COMMAND_LINE cline = COMMAND_LINE (argc, argv); - - if (cline.size() < 2) { - ecafixdc_print_usage(); - return(1); - } - - std::string filename; - std::string tempfile; - std::vector dcfix_values; - int chcount = 0; - - ECA_CONTROL_INTERFACE eci; - - TEMPORARY_FILE_DIRECTORY tempfile_dir_rep; - string tmpdir ("ecatools-"); - char* tmp_p = getenv("LOGNAME"); - if (tmp_p == NULL) tmp_p = getenv("USER"); - if (tmp_p != NULL) { - - tmpdir += string(tmp_p); - tempfile_dir_rep.reserve_directory(tmpdir); - } - if (tempfile_dir_rep.is_valid() != true) { - cerr << "---\nError while creating temporary directory \"" << tmpdir << "\". Exiting...\n"; - return(0); - } - - cline.begin(); - cline.next(); // skip the program name - while(cline.end() == false) { - filename = cline.current(); - - ecatools_fixdc_tempfile = tempfile_dir_rep.create_filename("fixdc-tmp", ".wav"); - - for(int m = 0;m < ECAFIXDC_PHASE_MAX; m++) { - - eci.command("cs-add default"); - eci.command("c-add default"); - - if (m == ECAFIXDC_PHASE_ANALYSIS) { - cout << "Calculating DC-offset for file \"" << filename << "\".\n"; - - string format; - if (ecicpp_add_file_input(&eci, filename, &format) < 0) break; - - cout << "Using audio format -f:" << format << "\n"; - - chcount = ecicpp_format_channels(format); - dcfix_values.resize(chcount); - cout << "Setting up " << chcount << " separate channels for analysis." << endl; - - cout << "Opening temp file \"" << ecatools_fixdc_tempfile << "\".\n"; - if (ecicpp_add_output(&eci, ecatools_fixdc_tempfile, format) < 0) break; - - eci.command("cop-add -ezf"); - eci.command("cop-list"); - if (eci.last_string_list().size() != 1) { - cerr << eci.last_error() << endl; - cerr << "---\nError while adding DC-Find (-ezf) chainop. Exiting...\n"; - break; - } - } - else { - // FIXME: list all channels (remember to fix audiofx_misc.cpp dcfix) - cout << "Fixing DC-offset \"" << filename << ".\n"; - - string format; - if (ecicpp_add_file_input(&eci, ecatools_fixdc_tempfile, &format) < 0) break; - - cout << "Using audio format -f:" << format << "\n"; - - if (ecicpp_add_output(&eci, filename, format) < 0) break; - - string dcfixstr; - for(int n = 0; n < chcount; n++) { - dcfixstr += kvu_numtostr(dcfix_values[n]) + ","; - } - - eci.command("cop-add -ezx:" + kvu_numtostr(chcount) + "," + dcfixstr); - eci.command("cop-list"); - if (eci.last_string_list().size() != 1) { - cerr << eci.last_error() << endl; - cerr << "---\nError while adding DC-Fix (-ezx) chainop. Exiting...\n"; - break; - } - } - - cout << "Starting processing...\n"; - - if (ecicpp_connect_chainsetup(&eci, "default") < 0) { - break; - } - else { - // blocks until processing is done - eci.command("run"); - } - - cout << "Processing finished.\n"; - - if (m == ECAFIXDC_PHASE_ANALYSIS) { - DBC_CHECK(static_cast(dcfix_values.size()) >= chcount); - double maxoffset = 0.0f; - for(int nm = 0; nm < chcount; nm++) { - eci.command("cop-select 1"); - eci.command("copp-select " + kvu_numtostr(nm + 1)); - eci.command("copp-get"); - dcfix_values[nm] = eci.last_float(); - if (fabs(dcfix_values[nm]) > maxoffset) maxoffset = fabs(dcfix_values[nm]); - cout << "DC-offset for channel " << nm + 1 << " is " << - kvu_numtostr(dcfix_values[nm], 4) << "." << endl; - } - - if (maxoffset <= 0.0f) { - cout << "File \"" << filename << "\" has no DC-offset. Skipping."; - - eci.command("cs-disconnect"); - eci.command("cs-select default"); - eci.command("cs-remove"); - break; - } - } - - eci.command("cs-disconnect"); - eci.command("cs-select default"); - eci.command("cs-remove"); - } - - remove(ecatools_fixdc_tempfile.c_str()); - - cline.next(); - } - - return(0); -} - -static void ecafixdc_print_usage(void) -{ - std::cerr << "****************************************************************************\n"; - std::cerr << "* ecafixdc, v" << ecatools_fixdc_version << " (" << VERSION << ")\n"; - std::cerr << "* (C) 1997-2004 Kai Vehmanen, released under the GPL license\n"; - std::cerr << "****************************************************************************\n"; - - std::cerr << "\nUSAGE: ecafixdc file1 [ file2, ... fileN ]\n\n"; -} - -static void ecafixdc_signal_handler(int signum) -{ - std::cerr << "Unexpected interrupt... cleaning up.\n"; - remove(ecatools_fixdc_tempfile.c_str()); - exit(1); -} diff --git a/library/ecasound/ecatools/ecalength.c b/library/ecasound/ecatools/ecalength.c deleted file mode 100644 index 388283245..000000000 --- a/library/ecasound/ecatools/ecalength.c +++ /dev/null @@ -1,340 +0,0 @@ -/* - This is ecalength, a few lines of code pompously named so because they - let one retrieve the length of an audio file from the command line - using ecasound's engine. - - Limitations: - - It will only work correctly if the audio file is at a sampling rate - of 44100 hz, unless the file is a wave file; for other formats such - as .au, .raw and .cdr that have a sr other than 44100 the format needs - to be specified with the -a switch. - NOTE: mp3 files do have sr information in their headers but - unfortunately ecasound currently seems unable to parse this information - correctly. :( - - It is not foolproof, feeding it with something other than an audio - file WILL result in ugly things being spewed back. - (A bit better) - - A thousand more that I haven't thought of. - - Please post back any improvement you make; I can be reached at: - observer@colba.net - - note: Compile it with: - gcc -Wall -o ecalength ecalength.c `libecasoundc-config --cflags --libs` - -* updated: Thu May 10 15:56:18 EDT 2001 -- Now works with the new ai/ao scheme. -- Switches implemented, made suitable for scripting. -- Format querying/setting. -- Better error handling. -* updated: Wed Nov 14 23:26:19 EST 2001 -- New option -su lets us return the file's length in samples. - (This breaks compatibility with stable series.) -- Reworked the comment above to say that basically only wave files are able - to self-adjust. -- Started to wondered whether my nice options structure isn't a bit too - unobvious for anyone else than me. (???) -- Help screen's getting a bit long, I have to scrollback to see the error - message. (???) (addressed) -* updated: Thu Nov 15 11:51:35 EST 2001 -- Tried to format the code a bit better however hopeless it looks, tried to - comment it a bit. -- Tried to catch wrong switches a bit better. -- Only print full help message when no other message is being spewed. -* updated: Sun Jan 6 14:37:02 EST 2002 -- Woo! Ecasound's internals now support quoting, had to take advantage of this. -* updated: Mon Apr 29 02:41:13 EEST 2002 -- Renamed to ecalength.cpp to avoid troubles with linking ecalength - against uninstalled libecasoundc. -* updated: Thu Oct 31 17:41:05 EET 2002 -- Renamed to ecalength.c. Updated the compilation instructions. -*/ - -#include -#include -#include -#include /* exit() */ - -#include "ecasoundc.h" - -#define FALSE 0 -#define TRUE 1 - -void make_human(int length, unsigned int *min, unsigned char *sec); -void print_help(char* name); -void print_usage(char* name); - -struct options { - char adjust; - char format; - char total; - char script; - char human; - char bits; - char ccount; - char rate; - char samples; -}; - -int main(int argc, char *argv[]) { - char cmd[512], fstring[16], status = 0, *optstr = "ftsmhbcra:u"; - int curopt, curarg; - unsigned char sec; - float curfilelength, totlength = 0; - unsigned int min; - FILE *file; - struct options opts; - - /* No surprises please */ - opts.adjust = FALSE; - opts.format = FALSE; - opts.total = FALSE; - opts.script = FALSE; - opts.human = FALSE; - opts.bits = FALSE; - opts.ccount = FALSE; - opts.rate = FALSE; - opts.samples = FALSE; - - /* Now let's parse and set. */ - while ((curopt = getopt(argc, argv, optstr)) != -1) { - switch (curopt) { - case 'a' : opts.adjust = TRUE; - strcpy(fstring, optarg); - break; - case 'f' : opts.format = TRUE; - break; - case 't' : opts.total = TRUE; - break; - case 's' : opts.script = TRUE; - break; - case 'm' : opts.human = TRUE; - break; - case 'b' : opts.bits = TRUE; - break; - case 'c' : opts.ccount = TRUE; - break; - case 'r' : opts.rate = TRUE; - break; - case 'u' : opts.samples = TRUE; - break; - case 'h' : print_help(argv[0]); - exit(0); - case '?' : print_usage(argv[0]); - exit(1); - } - } - - /* No file? */ - if (argc-optind == 0) { - print_help(argv[0]); - exit(1); - } - - /* Well, let's not just shut up if options are out of context, let's whine - * about it a bit so that people know why they're not getting what they - * expected. */ - if (!opts.script) { - /* If not in script mode then we should check and make sure that we warn - * if script options have been set. I assume it's fine to spit to stdout - * here. */ - /* Local string where we store naughty switches. */ - char badopts[10] = "\0"; - - /* Off we go. */ - if (opts.format) { strcat(badopts, "f"); } - if (opts.bits) { strcat(badopts, "b"); } - if (opts.ccount) { strcat(badopts, "c"); } - if (opts.rate) { strcat(badopts, "r"); } - if (opts.human) { strcat(badopts, "m"); } - if (opts.samples) { strcat(badopts, "u"); } - if (strlen(badopts)) { - printf("-%s :: Out of context options will be ignored.\n", - badopts); - } - } else { - /* Now, if we're in script mode we want to make sure of a few things, - * we also want to warn on stderr, of course. */ - char badopts[20] = "\0"; - - /* The whole format thing is a bit complex so I guess we want to help - * out. */ - if (!opts.format) { - if (opts.bits) { strcat(badopts, "b"); } - if (opts.ccount) { strcat(badopts, "c"); } - if (opts.rate) { strcat(badopts, "r"); } - if (strlen(badopts) == 1) { - fprintf(stderr, "You can't specify -%s just like that, you need to enter format mode with -f.\n", badopts); - } - if (strlen(badopts) > 1) { - fprintf(stderr, "Look out, you're not in format mode and you have more than one format specifier anyway: just use the -h switch for now.\n"); - } - } - - /* Catch-all piece of logic to filter errors. */ - if ((opts.script) && (((opts.format) && (opts.human)) || ((opts.format) - && (((opts.bits) && ((opts.ccount) || - (opts.rate))) || - ((opts.ccount) && (opts.rate)))) || - (opts.samples && (opts.format || opts.human)))) { - fprintf(stderr, "Error: In script mode not more than one further mode can be specified.\n"); - print_usage(argv[0]); - exit(1); - } - } - - /* Setting things up. */ - eci_init(); - eci_command("cs-add main"); - eci_command("c-add main"); - eci_command("ao-add null"); - - /* Setting the format if needed. */ - if (opts.adjust) { - if (strncmp(":", fstring, 1) == 0) { sprintf(cmd, "cs-set-audio-format %s", fstring+1); } - else { sprintf(cmd, "cs-set-audio-format %s", fstring); } - eci_command(cmd); - if (strlen(eci_last_error()) != 0) { - fprintf(stderr, "Argument to -a is badly formatted.\n"); - print_usage(argv[0]); - exit(1); - } - } - - curarg = optind; - - /* The real thing. */ - while(curarg < argc) { - if ((file = fopen(argv[curarg], "r")) != NULL) { - fclose(file); - sprintf(cmd, "ai-add \"%s\"", argv[curarg]); - eci_command(cmd); - eci_command("cs-connect"); - if (strlen(eci_last_error()) == 0) { - sprintf(cmd, "ai-select \"%s\"", argv[curarg]); - eci_command(cmd); - eci_command("ai-get-length"); - curfilelength = eci_last_float(); - if (opts.format) { - eci_command("ai-get-format"); - strcpy(fstring, eci_last_string()); - } - - /* We wanted to print the length in samples so we've done nothing - * all along; let's act now. */ - if (opts.script && opts.samples) { - long samplecount; - - eci_command("ai-get-length-samples"); - samplecount = eci_last_long_integer(); - printf("%li", samplecount); - } - - /* Here cometh the cleansing. */ - eci_command("cs-disconnect"); - eci_command("ai-remove"); - - /* Need we humanize ourselves? */ - if (!(opts.script) || ((opts.script && opts.human))) { - make_human((int)(curfilelength+0.5), &min, &sec); - } - - if (!(opts.script)) { printf("%s: ", argv[curarg]); } - if (!(opts.script) || - ((opts.script) && (!(opts.format) && !(opts.human) && - !(opts.samples)))) { - printf("%.3f", curfilelength); - } - if (!(opts.script)) { printf("s \t("); } - if (!(opts.script) || ((opts.script) && (opts.human))) { - printf("%im%is", min, sec); - } - if (!(opts.script)) { printf(")"); } - if ((opts.format) && - !((opts.format) && ((opts.bits) || (opts.ccount) || (opts.rate)))) { - if (!(opts.script)) { printf(" \t"); } - printf("%s", fstring); - } - - if ((opts.format) && (opts.script) && (opts.bits)) { - printf("%s", strtok(fstring+1, "_")); - } - - if ((opts.script) && (opts.format) && (opts.ccount)) { - strtok(fstring, ","); - printf("%s", strtok(NULL, ",")); - } - - if ((opts.format) && (opts.script) && (opts.rate)) { - strtok(fstring, ","); - strtok(NULL, ","); - printf("%s", strtok(NULL, ",")); - } - - printf("\n"); - - if ((opts.total) && !(opts.script)) { - totlength += curfilelength; - } - } - else { - if (opts.script) { printf("-2\n"); } - else { printf("%s: Read error.\n", argv[curarg]); } - status = -2; - eci_command("ai-remove"); - } - } - else { - if (opts.script) { printf("-1\n"); } - else { printf("%s: fopen error.\n", argv[curarg]); } - status = -1; - } - curarg++; - } - - if ((opts.total) && !(opts.script)) { - /* This could be made a script option as well, does anyone care? */ - make_human((int)(totlength+0.5), &min, &sec); - printf("Total: %.3fs \t\t(%im%is)\n", totlength, min, sec); - } - - eci_command("cs-remove"); - eci_cleanup(); - exit(status); -} - -void make_human(int length, unsigned int *min, unsigned char *sec) { - *min = (length/60); - *sec = (length % 60); -} - -void print_help(char *name) { - printf("Usage: %s [-ahtsfmbcru] FILE1 [FILE2] [FILEn]\n " - "\t-h Prints this usage message. (help)\n" - "\t-a[:]bits,channels,rate Changes the format assumed by default \n" - "\t for headerless data. (adjust)\n" - "\t-t Prints the summed length of all the files processed. (total)\n" - "\t (Ignored if with -s) \n" - "\t-s Enables script mode: One info type per file per line. (script)\n" - "\t (Defaults to length in secs.) \n" - "\t-f With -s will return the format string as info, alone it will \n" - "\t add it to the main display. (format)\n" - "\t -b If -s and -f are enabled with this the info printed will be \n" - "\t the sample's bitwidth. (bits)\n" - "\t -c If -s and -f are enabled with this the info printed will be \n" - "\t the channel count. (channel count)\n" - "\t -r If -s and -f are enabled with this the info printed will be \n" - "\t the sampling rate. (rate)\n" - "\t-m Will print human computable time as in main display but in \n" - "\t batch fashion. (minutes)\n" - "\t (Only with -s)\n" - "\t-u This batchmode option returns the length of specified files \n" - "\t in samples. (Smallest Unit)\n" - "\t (This information is worthless if you don't know the sampling \n" - "\t rate of the file.) (Only with -s)\n" - "(Note that out of context options will be ignored.)\n\n", name); -} - -void print_usage(char *name) { - printf("Usage: %s [-ahtsfmbcru] FILE1 [FILE2] [FILEn]\n\n\t Use the -h switch for help or see the man page.\n\n", name); -} diff --git a/library/ecasound/ecatools/ecamonitor b/library/ecasound/ecatools/ecamonitor deleted file mode 100755 index b016bc935..000000000 --- a/library/ecasound/ecatools/ecamonitor +++ /dev/null @@ -1,237 +0,0 @@ -#!/usr/bin/env python - -# ------------------------------------------------------------------------ -# ecamonitor: Ecasound monitor client implemented using NetECI -# Copyright (C) 2002-2003,2009 Kai Vehmanen -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# ------------------------------------------------------------------------ - -import curses -import re -import socket -import string -import sys -import time - -ecamonitor_remote_host = "localhost" -ecamonitor_remote_port = 2868 -ecamonitor_version = "v20090419-7" - -# TODO: -# - nothing at the moment - -# References: -# - http://www.python.org/doc/essays/styleguide.html -# - http://py-howto.sourceforge.net/curses/curses.html -# - http://www.python.org/doc/2.2.2/lib/module-curses.html -# - http://py-howto.sourceforge.net/regex/regex.html -# - http://www.python.org/doc/2.2.2/lib/module-re.html -# - http://py-howto.sourceforge.net/sockets/sockets.html -# - http://www.python.org/doc/2.2.2/lib/module-string.html - -def connect_to_server(remote_host, remote_port): - """Connects to the ecasound server. - - @return Socket object for the connection. - """ - - while 1: - try: - s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) - s.connect((remote_host, remote_port)) - s.setblocking(1) - return(s) - - except Exception, e: - if e[0] == 111: # 111 = connection refused - time.sleep(1) - pass - else: - raise - -def issue_eiam_command(s, cmd): - """Sends a command to ecasound and waits for an response. - - @param s socket for an active connection - @param cmd EIAM command to send - - @return tuple of return value type and value - """ - - tm = '' - counter = 0 - s.send(cmd + '\r\n') - while counter < 16: - count = counter + 1 - newdata = s.recv(4096) - if len(newdata) == 0: - return ('e','') - - tm = tm + newdata - - # lets test whether we have received a valid - # EIAM command - try: - m = expand_eiam_response(tm) - return parse_eiam_response(m, tm) - - except Exception, e: - pass - - return ('e','') - -def expand_eiam_response(str): - """Checks wheter 'str' is a valid EIAM response. - - @return Regex match object. - """ - - m = re.match('256 ([0-9]{1,5}) (.+)\r\n(.*)\r\n\r\n.*', str, re.MULTILINE | re.S) - return m - -def parse_eiam_response(m, str): - """Parses a valid EIAM response. - - @param m Valid regex match object. - @param str The whole EIAM response. - - @return tuple of return value type and value - """ - - if not m: - m = re.match('256 ([0-9]{1,5}) (.+)\r\n(.*)', str, re.MULTILINE | re.S) - if not m: - raise Exception, 'Regexp failed!' - - if m and len(m.groups()) == 0: - print "(ecamonitor) Matching groups failed: ", m.groups() - - if m and len(m.groups()) == 3: - #print 'received=', len(m.group(3)), ', expected=', m.group(1) - if int(m.group(1)) != len(m.group(3)): - print "(ecamonitor) Response length error." - - if m: - return (m.group(2), m.group(3)) - - return ('e','') - -def main(): - - s = None - - remote_host = ecamonitor_remote_host - remote_port = ecamonitor_remote_port - - if not hasattr(sys, 'version_info') or (hasattr(sys, 'version_info') and sys.version_info[1] <2): - print 'Error! Ecamonitor requires python-2.0 or newer to run!' - return 1 - - if len(sys.argv) > 1: - destination = sys.argv[1] - address = string.split(destination, ':') - remote_host = address[0] - if len(address) > 1: - remote_port = int(address[1]) - - try: - stdscr = curses.initscr() - pad = curses.newpad(255, 80) - pad.nodelay(1) # to make getch() nonblocking - - while 1: - try: - pad.erase() - pad.addstr(0, 0, "ecamonitor " + ecamonitor_version, curses.A_BOLD) - - if s == None: - pad.addstr(2, 0, "No connection. Trying to connect to " + remote_host + ":" + str(remote_port) + ".\n") - pad.refresh(0, 0, 0, 0, stdscr.getmaxyx()[0]-1, stdscr.getmaxyx()[1]-1) - #time.sleep(3) - s = connect_to_server(remote_host, remote_port) - pad.addstr(3, 0, "Connection established.\n") - pad.refresh(0, 0, 0, 0, stdscr.getmaxyx()[0]-1, stdscr.getmaxyx()[1]-1) - pad.addstr(1, 0, "") - else: - pad.addstr("\n") - - pad.addstr("\n------------------------------------------------------------") - pad.addstr("\nEngine status: ") - pad.addstr((issue_eiam_command(s, 'engine-status')[1]), curses.A_BOLD) - pad.addstr("\nConnected chainsetup: ") - pad.addstr(issue_eiam_command(s, 'cs-connected')[1], curses.A_BOLD) - pad.addstr("\nSelected chainsetup: ") - pad.addstr(issue_eiam_command(s, 'cs-selected')[1], curses.A_BOLD) - - #pad.addstr("\nSelected chainsetup status:: ") - #pad.addstr(issue_eiam_command(s, 'cs-status')[1]) - - pad.addstr("\n\nPosition: ") - pad.addstr(issue_eiam_command(s, 'cs-get-position')[1] + "s", curses.A_BOLD) - pad.addstr(" / Length: ") - pad.addstr(issue_eiam_command(s, 'cs-get-length')[1] + "s", curses.A_BOLD) - pad.addstr("\nChains: ") - pad.addstr(str(len(string.split(issue_eiam_command(s, 'c-list')[1],','))), curses.A_BOLD) - pad.addstr(" / Inputs: ") - pad.addstr(str(len(string.split(issue_eiam_command(s, 'ai-list')[1],','))), curses.A_BOLD) - pad.addstr(" / Outputs: ") - pad.addstr(str(len(string.split(issue_eiam_command(s, 'ao-list')[1],','))), curses.A_BOLD) - - pad.addstr("\n\n------------------------------------------------------------\n") - res = issue_eiam_command(s, 'aio-status') - pad.addstr(res[1]) - - pad.addstr("\n\n------------------------------------------------------------\n") - res = issue_eiam_command(s, 'cop-status') - pad.addstr(res[1]) - - pad.addstr("\n\n------------------------------------------------------------\n") - res = issue_eiam_command(s, 'ctrl-status') - pad.addstr(res[1]) - - pad.addstr("\n\n------------------------------------------------------------\n") - - pad.refresh(0, 0, 0, 0, stdscr.getmaxyx()[0]-1, stdscr.getmaxyx()[1]-1) - - time.sleep(1.0) - - ch=pad.getch() - if ch == ord('q'): - break - - except curses.error: - raise - - except socket.error, e: - if e[0] == 32 or e[0] == 104 or e[0] == 111: - s = None - pass - else: - curses.endwin() - print "Exception!" , e - raise - - except KeyboardInterrupt: - break - - - finally: - if s != None: - s.close() - curses.endwin() - -if __name__ == '__main__': - main() diff --git a/library/ecasound/ecatools/ecanormalize.cpp b/library/ecasound/ecatools/ecanormalize.cpp deleted file mode 100644 index f0c87d1bb..000000000 --- a/library/ecasound/ecatools/ecanormalize.cpp +++ /dev/null @@ -1,233 +0,0 @@ -// ------------------------------------------------------------------------ -// ecanormalize.cpp: A simple command-line tools for normalizing -// sample volume. -// Copyright (C) 1999-2006 Kai Vehmanen -// -// This program is free software; you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation; either version 2 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// ------------------------------------------------------------------------ - -#ifdef HAVE_CONFIG_H -#include -#endif - -#include -#include -#include -#include -#include - -#include -#include -#include - -#include - -#include "ecicpp_helpers.h" - -/** - * Definitions and options - */ - -using std::cerr; -using std::cout; -using std::endl; -using std::string; - -/** - * Function declarations - */ - -int main(int argc, char *argv[]); - -static void ecanormalize_print_usage(void); -static void ecanormalize_signal_handler(int signum); - -/** - * Definitions and options - */ - -#define ECANORMALIZE_PHASE_ANALYSIS 0 -#define ECANORMALIZE_PHASE_PROCESSING 1 -#define ECANORMALIZE_PHASE_MAX 2 - -/** - * Global variables - */ - -static const string ecatools_normalize_version = "20050316-27"; -static string ecatools_normalize_tempfile; - -/** - * Function definitions - */ - -int main(int argc, char *argv[]) -{ - struct sigaction es_handler; - es_handler.sa_handler = ecanormalize_signal_handler; - sigemptyset(&es_handler.sa_mask); - es_handler.sa_flags = 0; - - sigaction(SIGTERM, &es_handler, 0); - sigaction(SIGINT, &es_handler, 0); - sigaction(SIGQUIT, &es_handler, 0); - sigaction(SIGABRT, &es_handler, 0); - - struct sigaction ign_handler; - ign_handler.sa_handler = SIG_IGN; - sigemptyset(&ign_handler.sa_mask); - ign_handler.sa_flags = 0; - - /* ignore the following signals */ - sigaction(SIGPIPE, &ign_handler, 0); - sigaction(SIGFPE, &ign_handler, 0); - - COMMAND_LINE cline = COMMAND_LINE (argc, argv); - - if (cline.size() < 2) { - ecanormalize_print_usage(); - return(1); - } - - try { - string filename; - double multiplier = 1.0f; - - TEMPORARY_FILE_DIRECTORY tempfile_dir_rep; - string tmpdir ("ecatools-"); - char* tmp_p = getenv("LOGNAME"); - if (tmp_p == NULL) tmp_p = getenv("USER"); - if (tmp_p != NULL) { - tmpdir += string(tmp_p); - tempfile_dir_rep.reserve_directory(tmpdir); - } - if (tempfile_dir_rep.is_valid() != true) { - cerr << "---\nError while creating temporary directory \"" << tmpdir << "\". Exiting...\n"; - return(0); - } - - ecatools_normalize_tempfile = tempfile_dir_rep.create_filename("normalize-tmp", ".wav"); - - ECA_CONTROL_INTERFACE eci; - - cline.begin(); - cline.next(); // skip the program name - while(cline.end() == false) { - filename = cline.current(); - - for(int m = 0; m < ECANORMALIZE_PHASE_MAX; m++) { - - eci.command("cs-add default"); - eci.command("c-add default"); - if (m == ECANORMALIZE_PHASE_ANALYSIS) { - cout << "Analyzing file \"" << filename << "\".\n"; - - string format; - if (ecicpp_add_file_input(&eci, filename, &format) < 0) break; - cout << "Using audio format -f:" << format << "\n"; - - cout << "Opening temp file \"" << ecatools_normalize_tempfile << "\".\n"; - if (ecicpp_add_output(&eci, ecatools_normalize_tempfile, format) < 0) break; - - eci.command("cop-add -ev"); - eci.command("cop-list"); - if (eci.last_string_list().size() != 1) { - cerr << eci.last_error() << endl; - cerr << "---\nError while adding -ev chainop. Exiting...\n"; - break; - } - } - else { - string format; - if (ecicpp_add_file_input(&eci, ecatools_normalize_tempfile, &format) < 0) break; - cout << "Using audio format -f:" << format << "\n"; - - if (ecicpp_add_output(&eci, filename, format) < 0) break; - - eci.command("cop-add -ea:" + kvu_numtostr(multiplier * 100.0f)); - eci.command("cop-list"); - if (eci.last_string_list().size() != 1) { - cerr << eci.last_error() << endl; - cerr << "---\nError while adding -ev chainop. Exiting...\n"; - break; - } - } - - cout << "Starting processing...\n"; - - if (ecicpp_connect_chainsetup(&eci, "default") < 0) { - break; - } - else { - // blocks until processing is done - eci.command("run"); - } - - cout << "Processing finished.\n"; - - if (m == ECANORMALIZE_PHASE_ANALYSIS) { - eci.command("cop-select 1"); - eci.command("copp-select 2"); /* 2nd param of -ev, first one - * sets the mode */ - eci.command("copp-get"); - multiplier = eci.last_float(); - if (multiplier <= 1.0) { - cout << "File \"" << filename << "\" is already normalized.\n"; - - eci.command("cs-disconnect"); - eci.command("cs-select default"); - eci.command("cs-remove"); - break; - } - else { - cout << "Normalizing file \"" << filename << "\" (amp-%: "; - cout << multiplier * 100.0 << ").\n"; - } - } - - eci.command("cs-disconnect"); - eci.command("cs-select default"); - eci.command("cs-remove"); - } - - cout << "Removing temp file \"" << ecatools_normalize_tempfile << "\".\n"; - - remove(ecatools_normalize_tempfile.c_str()); - - cline.next(); - } - } - catch(...) { - cerr << "\nCaught an unknown exception.\n"; - } - return(0); -} - -static void ecanormalize_print_usage(void) -{ - cerr << "****************************************************************************\n"; - cerr << "* ecanormalize, v" << ecatools_normalize_version << " (" << VERSION << ")\n"; - cerr << "* (C) 1997-2004 Kai Vehmanen, released under the GPL license\n"; - cerr << "****************************************************************************\n"; - - cerr << "\nUSAGE: ecanormalize file1 [ file2, ... fileN ]\n\n"; -} - -static void ecanormalize_signal_handler(int signum) -{ - cerr << "Unexpected interrupt... cleaning up.\n"; - remove(ecatools_normalize_tempfile.c_str()); - exit(1); -} diff --git a/library/ecasound/ecatools/ecaplay.c b/library/ecasound/ecatools/ecaplay.c deleted file mode 100644 index a93307410..000000000 --- a/library/ecasound/ecatools/ecaplay.c +++ /dev/null @@ -1,757 +0,0 @@ -/** - * ecaplay.c: A simple command-line tool for playing audio files. - * - * Copyright (C) 1999-2002,2004-2006 Kai Vehmanen - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ - -/** - * TODO: - * - show playlist length during runtime - * - random start switch (both for cmdline and playlist modes) - * - write some notes about locking issues - */ - -#ifdef HAVE_CONFIG_H -#include -#endif - -#include -#include -#include -#include /* ANSI-C: malloc(), free() */ -#include /* ANSI-C: strlen(), strncmp() */ - -#include /* POSIX: ... */ -#include /* POSIX: sigaction() */ -#include /* POSIX: mkdir() */ -#include /* POSIX: mkdir() */ - -#include - -/** - * Function declarations - */ - -int main(int argc, char *argv[]); - -static void add_input_to_chainsetup(eci_handle_t eci, const char* nextrack); -static int flush_tracks(void); -static const char* get_next_track(int *tracknum, int argc, char *argv[], eci_handle_t *eci); -static char* get_playlist_path(void); -static const char* get_track_cmdline(int n, int argc, char *argv[]); -static const char* get_track_playlist(int* next_track); -static void initialize_chainsetup_for_playback(eci_handle_t* eci, const char* nexttrack, int tracknum); -static void initialize_check_output(eci_handle_t* eci); -static int list_tracks(void); -static int play_tracks(int argc, char *argv[]); -static void print_usage(FILE* stream); -static int process_option(const char* option); -static int queue_tracks(int argc, char *argv[]); -static int set_audio_format(eci_handle_t* eci, const char* fmt); -static void setup_signal_handling(void); -static void signal_handler(int signum); - -/** - * Definitions and options - */ - -#define ECAPLAY_AFMT_MAXLEN 64 -#define ECAPLAY_EIAM_LOGLEVEL 256 -#define ECAPLAY_TIMEOUT 3 - -#define ECAPLAY_MODE_NORMAL 0 -#define ECAPLAY_MODE_PL_FLUSH 1 -#define ECAPLAY_MODE_PL_LIST 2 -#define ECAPLAY_MODE_PL_PLAY 3 -#define ECAPLAY_MODE_PL_QUEUE 4 - -#define ECAPLAY_PLAYLIST_BASEDIR ".ecasound" -#define ECAPLAY_PLAYLIST_FILE "ecaplay_queue" - -/** - * Global variables - */ - -static const char* ecaplay_version = "20061206-45"; /* ecaplay version */ -static char ecaplay_next[PATH_MAX]; /* file to play next */ -static char ecaplay_audio_format[ECAPLAY_AFMT_MAXLEN]; /* audio format to use */ -static const char* ecaplay_output = NULL; /* output device to use */ -static int ecaplay_debuglevel = ECAPLAY_EIAM_LOGLEVEL; /* debug level to use */ -static int ecaplay_skip = 0; /* how many playlist items to skip */ -static int ecaplay_mode = ECAPLAY_MODE_NORMAL; /* playlist mode */ -/* FIX: static int ecaplay_list_len = -1; playlist length */ -static int ecaplay_initialized = 0; /* playlist mode */ -static sig_atomic_t ecaplay_skip_flag = 0; /* signal flag for ctrl-c */ - -/** - * Function definitions - */ - -int main(int argc, char *argv[]) -{ - int i, res = 0; - - /* get the default output device */ - ecaplay_output = getenv("ECAPLAY_OUTPUT_DEVICE"); - - /* process command-line arguments */ - for(i = 1; i < argc; i++) { res += process_option(argv[i]); } - - if (res == 0) { - switch(ecaplay_mode) { - case ECAPLAY_MODE_PL_FLUSH: - res = flush_tracks(); - break; - - case ECAPLAY_MODE_PL_LIST: - res = list_tracks(); - break; - - case ECAPLAY_MODE_PL_QUEUE: - res = queue_tracks(argc, argv); - break; - - case ECAPLAY_MODE_NORMAL: - case ECAPLAY_MODE_PL_PLAY: - res = play_tracks(argc, argv); - break; - - default: - assert(0); - } - } - - if (res != 0) { - fprintf(stderr, "(ecaplay) Errors encountered, return code is %d.\n", res); - } - - return res; -} - -/** - * Adds input 'nexttrack' to currently selected chainsetup - * of 'eci'. Sets the global variable 'ecaplay_audio_format'. - */ -static void add_input_to_chainsetup(eci_handle_t eci, const char* nexttrack) -{ - size_t len = strlen("ai-add '") + strlen(nexttrack) + strlen("'") + 1; - char* tmpbuf = malloc(len); - - assert(tmpbuf != NULL); - snprintf(tmpbuf, len, "ai-add \"%s\"", nexttrack); - eci_command_r(eci, tmpbuf); - - /* check that add succeeded */ - eci_command_r(eci, "ai-list"); - if (eci_last_string_list_count_r(eci) != 1) { - fprintf(stderr, "(ecaplay) Warning! Failed to add input '%s'.\n", nexttrack); - } - - /* we must connect to get correct input format */ - eci_command_r(eci, "ao-add null"); - eci_command_r(eci, "cs-connect"); - eci_command_r(eci, "ai-iselect 1"); - eci_command_r(eci, "ai-get-format"); - - strncpy(ecaplay_audio_format, - eci_last_string_r(eci), - ECAPLAY_AFMT_MAXLEN); - ecaplay_audio_format[ECAPLAY_AFMT_MAXLEN - 1] = 0; - - /* disconnect and remove the null output */ - eci_command_r(eci, "cs-disconnect"); - eci_command_r(eci, "ao-iselect 1"); - eci_command_r(eci, "ao-remove"); - - free(tmpbuf); -} - -/** - * Flushes the playlist contents. - * - * @return zero on success, non-zero otherwise - */ -static int flush_tracks(void) -{ - char *path = get_playlist_path(); - if (truncate(path, 0) != 0) { - printf("(ecaplay) Unable to flush playlist '%s'.\n", path); - return -1; - } - return 0; -} - -/** - * Checks that current chainsetup has exactly one - * output. - */ -static void initialize_check_output(eci_handle_t* eci) -{ - eci_command_r(eci, "ao-list"); - if (eci_last_string_list_count_r(eci) != 1) { - fprintf(stderr, "(ecaplay) Warning! Failed to add output device.\n"); - } - else { - static int once = 1; - if (once) { - eci_command_r(eci, "ao-iselect 1"); - eci_command_r(eci, "ao-describe"); - char *tmpstr = (char*)eci_last_string_r(eci); - /* skip the "-x:" prefix where x is one of [io] */ - while(*tmpstr && *tmpstr++ != ':') - ; - printf("(ecaplay) Output device: '%s'\n", tmpstr); - once = 0; - } - } -} - -static void initialize_chainsetup_for_playback(eci_handle_t* eci, const char* nexttrack, int tracknum) -{ - const char* ret = NULL; - - *eci = eci_init_r(); - ecaplay_initialized = 1; - - if (ecaplay_debuglevel != -1) { - char tmpbuf[32]; - snprintf(tmpbuf, 32, "debug %d", ecaplay_debuglevel); - eci_command_r(*eci, tmpbuf); - } - - eci_command_r(*eci, "cs-add ecaplay_chainsetup"); - /* check that add succeeded */ - eci_command_r(*eci, "cs-list"); - if (eci_last_string_list_count_r(*eci) != 2) { - fprintf(stderr, "(ecaplay) Warning! Failed to add a new chainsetup.\n"); - } - - /* as this is a new chainsetup, we can assume that - * adding chains succeeds */ - eci_command_r(*eci, "c-add ecaplay_chain"); - - add_input_to_chainsetup(*eci, nexttrack); - set_audio_format(*eci, ecaplay_audio_format); - - if (ecaplay_output == NULL) { - eci_command_r(*eci, "ao-add-default"); - - /* check that add succeeded */ - initialize_check_output(*eci); - } - else { - int len = strlen("ao-add ") + strlen(ecaplay_output) + 1; - char* tmpbuf = (char*)malloc(len); - snprintf(tmpbuf, len, "ao-add %s", ecaplay_output); - eci_command_r(*eci, tmpbuf); - initialize_check_output(*eci); - free(tmpbuf); - } - - /* FIXME: add detection of consecutive errors */ - - eci_command_r(*eci, "cs-connect"); - if (eci_error_r(*eci)) { - fprintf(stderr, "(ecaplay) Unable to play file '%s':\n%s\n", nexttrack, eci_last_error_r(*eci)); - } - else { - eci_command_r(*eci, "cs-connected"); - ret = eci_last_string_r(*eci); - if (strncmp(ret, "ecaplay_chainsetup", strlen("ecaplay_chainsetup")) != 0) { - fprintf(stderr, "(ecaplay) Error while playing file '%s' . Skipping...\n", nexttrack); - } - else { - /* note: audio format set separately for each input file */ - printf("(ecaplay) Playing %d: '%s' (%s).\n", tracknum, nexttrack, ecaplay_audio_format); - eci_command_r(*eci, "start"); - } - } -} - -static const char* get_next_track(int *tracknum, int argc, char *argv[], eci_handle_t *eci) -{ - const char *nexttrack = NULL; - - if (ecaplay_mode == ECAPLAY_MODE_PL_PLAY) - nexttrack = get_track_playlist(tracknum); - else - nexttrack = get_track_cmdline(*tracknum, argc, argv); - - if (nexttrack != NULL) { - /* queue nexttrack for playing */ - if (ecaplay_initialized) { - eci_cleanup_r(*eci); - } - initialize_chainsetup_for_playback(eci, nexttrack, *tracknum); - } - else { - /* reached end of playlist */ - if (ecaplay_mode != ECAPLAY_MODE_PL_PLAY) { - /* normal mode; end processing after all files played */ - /* printf("(ecaplay) No more files...\n"); */ - assert(nexttrack == NULL); - } - else { - /* if in playlist mode, loop from beginning */ - *tracknum = 1; - - /* FIXME: if in playlist mode; query the current lenght of - * playlist and set 'tracknum = (tracknum % pllen)' */ - - if (ecaplay_mode == ECAPLAY_MODE_PL_PLAY) - nexttrack = get_track_playlist(tracknum); - else - nexttrack = get_track_cmdline(*tracknum, argc, argv); - - /* printf("(ecaplay) Looping back to start of playlist...(%s)\n", nexttrack); */ - - if (nexttrack != NULL) { - /* queue nexttrack for playing */ - if (ecaplay_initialized) { - eci_cleanup_r(*eci); - } - initialize_chainsetup_for_playback(eci, nexttrack, *tracknum); - } - else { - /* get_next_track() failed two times, stopping processing */ - assert(nexttrack == NULL); - } - } - } - - return nexttrack; -} - -/** - * Returns the track number 'n' from the list - * given in argc and argv. - * - * @return track name or NULL on error - */ -static const char* get_track_cmdline(int n, int argc, char *argv[]) -{ - int i, c = 0; - - assert(n > 0 && n <= argc); - - for(i = 1; i < argc; i++) { - /* FIXME: add support for '-- -foo.wav' */ - if (argv[i][0] != '-') { - if (++c == n) { - return argv[i]; - } - } - } - - return NULL; -} - -/** - * Returns a string containing the full path to the - * playlist file. Ownership of the string is transfered - * to the caller (i.e. it must be free()'ed). - * - * @return full pathname or NULL if error has occured - */ -static char* get_playlist_path(void) -{ - char *path = malloc(PATH_MAX); - struct stat statbuf; - - /* create pathname based on HOME */ - strncpy(path, getenv("HOME"), PATH_MAX); - strncat(path, "/" ECAPLAY_PLAYLIST_BASEDIR, PATH_MAX - strlen(path) - 1); - - /* make sure basedir exists */ - if (stat(path, &statbuf) != 0) { - printf("(ecaplay) Creating directory %s.\n", path); - mkdir(path, 0700); - } - else { - if (!S_ISDIR(statbuf.st_mode)) { - /* error, basedir exists but is not a directory */ - free(path); - path = NULL; - } - } - - if (path != NULL) { - /* add filename to basedir */ - strncat(path, "/" ECAPLAY_PLAYLIST_FILE, PATH_MAX - strlen(path) - 1); - } - - return path; -} - -/** - * Returns the track from playlist matching number 'next_track'. - * - * In case 'next_track' is larger than the playlist length, - * track 'next_track mod playlist_len' will be selected, and - * the modified playlist item number stored to 'next_track'. - * - * Note: modifies global variable 'ecaplay_next'. - * - * @return track name or NULL on error - */ -static const char* get_track_playlist(int* next_track) -{ - - const char *res = NULL; - char *path; - FILE *f1; - int next = *next_track; - - assert(next > 0); - - path = get_playlist_path(); - if (path == NULL) { - return path; - } - - f1 = fopen(path, "rb"); - if (f1 != NULL) { - int c, w, cur_item = 1; - - /* iterate through all data octet at a time */ - for(w = 0;;) { - c = fgetc(f1); - if (c == EOF) { - if (next > cur_item) { - /* next_track beyond playlist length, reset to valid track number */ - next = next % cur_item; - *next_track = next; - /* seek back to start and look again */ - fseek(f1, 0, SEEK_SET); - cur_item = 1; - w = 0; - continue; - } - break; - } - - if (cur_item == next) { - if (c == '\n') { - ecaplay_next[w] = 0; - res = ecaplay_next; - break; - } - else { - ecaplay_next[w] = c; - } - ++w; - } - if (c == '\n') { - ++cur_item; - } - } - - /* close the file and return results */ - fclose(f1); - } - - free(path); - - return res; -} - -/** - * Lists tracks on the playlist. - * - * @return zero on success, non-zero otherwise - */ -static int list_tracks(void) -{ - FILE *f1; - char *path = get_playlist_path(); - - f1 = fopen(path, "rb"); - if (f1 != NULL) { - int c; - while((c = fgetc(f1)) != EOF) { - printf("%c", c); - } - fclose(f1); - return 0; - } - return -1; -} - -/** - * Play tracks using the Ecasound engine via the - * ECI interface. - * - * Depending on the mode, tracks are selected either - * from the command-line or from the playlist. - */ -static int play_tracks(int argc, char *argv[]) -{ - eci_handle_t eci = NULL; - int tracknum = 1, stop = 0; - const char* nexttrack = NULL; - - assert(ecaplay_mode == ECAPLAY_MODE_NORMAL || - ecaplay_mode == ECAPLAY_MODE_PL_PLAY); - - tracknum += ecaplay_skip; - - nexttrack = get_next_track(&tracknum, argc, argv, &eci); - - if (nexttrack != NULL) { - setup_signal_handling(); - - while(nexttrack != NULL) { - unsigned int timeleft = ECAPLAY_TIMEOUT; - - while(timeleft > 0) { - timeleft = sleep(timeleft); - - if (timeleft > 0 && ecaplay_skip_flag > 1) { - fprintf(stderr, "\n(ecaplay) Interrupted, exiting...\n"); - eci_cleanup_r(eci); - stop = 1; - break; - } - } - - /* see above while() loop */ - if (stop) break; - - if (ecaplay_skip_flag == 0) { - eci_command_r(eci, "engine-status"); - } - else { - printf("(ecaplay) Skipping...\n"); - } - - if (ecaplay_skip_flag != 0 || strcmp(eci_last_string_r(eci), "running") != 0) { - ecaplay_skip_flag = 0; - ++tracknum; - nexttrack = get_next_track(&tracknum, argc, argv, &eci); - /* printf("Next track is %s.\n", nexttrack); */ - } - } - - fprintf(stderr, "exiting...\n"); - - /* see while() loop above */ - if (stop == 0) { - eci_cleanup_r(eci); - } - } - - return 0; -} - -static void print_usage(FILE* stream) -{ - fprintf(stream, "Ecaplay v%s (%s)\n\n", ecaplay_version, VERSION); - - fprintf(stream, "Copyright (C) 1997-2005 Kai Vehmanen, released under GPL licence \n"); - fprintf(stream, "Ecaplay comes with ABSOLUTELY NO WARRANTY.\n"); - fprintf(stream, "You may redistribute copies of ecasound under the terms of the GNU\n"); - fprintf(stream, "General Public License. For more information about these matters, see\n"); - fprintf(stream, "the file named COPYING.\n"); - - fprintf(stream, "\nUSAGE: ecaplay [-dfhklopq] [ file1 file2 ... fileN ]\n\n"); - - fprintf(stream, "See ecaplay(1) man page for more details.\n"); -} - -static int process_option(const char* option) -{ - if (option[0] == '-') { - if (strncmp("--help", option, sizeof("--help")) == 0 || - strncmp("--version", option, sizeof("--version")) == 0) { - print_usage(stdout); - return 0; - } - - switch(option[1]) - { - case 'd': - { - const char* level = &option[3]; - if (option[2] != 0 && option[3] != 0) { - ecaplay_debuglevel |= atoi(level); - printf("(ecaplay) Setting log level to %d.\n", ecaplay_debuglevel); - } - break; - } - - case 'f': - { - ecaplay_mode = ECAPLAY_MODE_PL_FLUSH; - printf("(ecaplay) Flushing playlist.\n"); - break; - } - - case 'h': - { - print_usage(stdout); - return 0; - } - - case 'k': - { - const char* skip = &option[3]; - if (option[2] != 0 && option[3] != 0) { - ecaplay_skip = atoi(skip); - printf("(ecaplay) Skipping the first %d files..\n", ecaplay_skip); - } - break; - } - - case 'l': - { - ecaplay_mode = ECAPLAY_MODE_PL_LIST; - /* printf("(ecaplay) Listing playlist contents.\n"); */ - break; - } - - case 'o': - { - const char* output = &option[3]; - if (option[2] != 0 && option[3] != 0) { - ecaplay_output = output; - /* printf("(ecaplay) Output device: '%s'\n", ecaplay_output); */ - } - break; - } - - case 'p': - { - ecaplay_mode = ECAPLAY_MODE_PL_PLAY; - printf("(ecaplay) Playlist mode selected (file: %s).\n", - "~/" ECAPLAY_PLAYLIST_BASEDIR "/" ECAPLAY_PLAYLIST_FILE); - break; - } - - case 'q': - { - ecaplay_mode = ECAPLAY_MODE_PL_QUEUE; - printf("(ecaplay) Queuing tracks to playlist.\n"); - break; - } - - default: - { - fprintf(stderr, "(ecaplay) Error! Unknown option '%s'.\n", option); - print_usage(stderr); - return 1; - } - } - } - - return 0; -} - -static int queue_tracks(int argc, char *argv[]) -{ - int i, res = 0; - char *path; - FILE *f1; - - path = get_playlist_path(); - /* path maybe NULL but fopen can handle it */ - - f1 = fopen(path, "a+b"); - if (f1 != NULL) { - for(i = 1; i < argc; i++) { - char c = argv[i][0]; - /* printf("(ecaplay) processing arg '%s' (%c).\n", argv[i], c); */ - /* FIXME: add support for '-- -foo.wav' */ - if (c != '-') { - /* printf("(ecaplay) 2:processing arg '%s' (%c).\n", argv[i], c); */ - if (c != '/') { - /* reserve extra room for '/' */ - char* tmp = malloc(PATH_MAX + strlen(argv[i]) + 1); - if (getcwd(tmp, PATH_MAX) != NULL) { - strcat(tmp, "/"); - strcat(tmp, argv[i]); - printf("(ecaplay) Track '%s' added to playlist.\n", argv[i]); - fwrite(tmp, 1, strlen(tmp), f1); - } - free(tmp); - } - else { - printf("(ecaplay) Track '%s' added to playlist.\n", argv[i]); - fwrite(argv[i], 1, strlen(argv[i]), f1); - } - fwrite("\n", 1, 1, f1); - } - } - fclose(f1); - } - else { - res = -1; - } - - free(path); /* can be NULL */ - - return res; -} - -/** - * Sets the chainsetup audio format to 'fmt'. - * - * @return zero on success, non-zero on error - */ -int set_audio_format(eci_handle_t* eci, const char* fmt) -{ - size_t len = strlen("cs-set-audio-format -f:") + strlen(fmt) + 1; - char* tmpbuf = malloc(len); - int res = 0; - - strcpy(tmpbuf, "cs-set-audio-format "); - strcat(tmpbuf, fmt); - tmpbuf[len - 1] = 0; - eci_command_r(eci, tmpbuf); - if (eci_error_r(eci)) { - fprintf(stderr, "(ecaplay) Unknown audio format encountered.\n"); - res = -1; - } - free(tmpbuf); - - return res; -} - -static void setup_signal_handling(void) -{ - struct sigaction es_handler_int; - struct sigaction ign_handler; - - es_handler_int.sa_handler = signal_handler; - sigemptyset(&es_handler_int.sa_mask); - es_handler_int.sa_flags = 0; - - ign_handler.sa_handler = SIG_IGN; - sigemptyset(&ign_handler.sa_mask); - ign_handler.sa_flags = 0; - - /* handle the follwing signals explicitly */ - sigaction(SIGINT, &es_handler_int, 0); - - /* ignore the following signals */ - sigaction(SIGPIPE, &ign_handler, 0); - sigaction(SIGFPE, &ign_handler, 0); -} - -static void signal_handler(int signum) -{ - ++ecaplay_skip_flag; -} diff --git a/library/ecasound/ecatools/ecasignalview.cpp b/library/ecasound/ecatools/ecasignalview.cpp deleted file mode 100644 index ea56a1383..000000000 --- a/library/ecasound/ecatools/ecasignalview.cpp +++ /dev/null @@ -1,593 +0,0 @@ -// ------------------------------------------------------------------------ -// ecasignalview.cpp: A simple command-line tools for monitoring -// signal amplitude. -// Copyright (C) 1999-2005,2007,2008 Kai Vehmanen -// Copyright (C) 2005 Jeffrey Cunningham -// -// This program is free software; you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation; either version 2 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// ------------------------------------------------------------------------ - -#ifdef HAVE_CONFIG_H -#include -#endif - -#include -#include -#include -#include - -#include -#include -#include - -#include -#include - -#include /* POSIX: select() */ -#include /* POSIX: timeval struct */ - -#include -#include -#include - -#include - -#include "ecicpp_helpers.h" - -#ifdef HAVE_TERMIOS_H -/* see: http://www.opengroup.org/onlinepubs/007908799/xsh/termios.h.html */ -#include -#endif - -#if defined(ECA_USE_NCURSES_H) || defined(ECA_USE_NCURSES_NCURSES_H) || defined(ECA_USE_CURSES_H) -#define ECASV_USE_CURSES 1 - -#ifdef ECA_USE_NCURSES_H -#include -#include /* for setupterm() */ -#elif ECA_USE_NCURSES_NCURSES_H -#include -#include /* for setupterm() */ -#else -#include -#include /* for setupterm() */ -#endif - -#endif /* ECA_*CURSES_H */ - -#include - -/** - * Import namespaces - */ - -using namespace std; - -/** - * Type definitions - */ - -struct ecasv_channel_stats { - double last_peak; - double drawn_peak; - double max_peak; - long int clipped_samples; - vector avg_peak; // jkc: addition - int avg_peak_ptr; // jkc: addition - double avg_peak_val; // jkc: addition -}; - -/** - * Function declarations - */ - -int main(int argc, char *argv[]); -void ecasv_parse_command_line(ECA_CONTROL_INTERFACE* cop, int argc, char *argv[]); -void ecasv_fill_defaults(void); -std::string ecasv_cop_to_string(ECA_CONTROL_INTERFACE* cop); -void ecasv_output_init(void); -void ecasv_output_cleanup(void); -int ecasv_print_vu_meters(ECA_CONTROL_INTERFACE* eci, - std::vector* chstats); -void ecasv_update_chstats(std::vector* chstats, - int ch, double value); -void ecasv_create_bar(double value, int barlen, unsigned char* barbuf); -void ecasv_print_usage(void); -void ecasv_signal_handler(int signum); -void reset_stats_fcn(vector* chstats); // jkc: addition -float dB(float v) { return 10.0*log10(v*v); } // jkc: addition -void ecasv_set_buffered(void); -void ecasv_set_unbuffered(void); -int ecasv_kbhit(); - -/** - * Static global variables - */ - -static const string ecatools_signalview_version = "20051112-10"; -static bool ecasv_log_display_mode = false; // jkc: addition -static const double ecasv_clipped_threshold_const = 1.0f - 1.0f / 16384.0f; -static const int ecasv_bar_length_const = 32; -static const int ecasv_header_height_const = 9; -static const long int ecasv_rate_default_const = 50; -static const long int ecasv_buffersize_default_const = 128; - -static unsigned char ecasv_bar_buffer[ecasv_bar_length_const + 1] = { 0 }; -static bool ecasv_enable_debug, ecasv_enable_cumulative_mode; -static long int ecasv_buffersize, ecasv_rate_msec; -static string ecasv_input, ecasv_output, ecasv_format_string; -static int ecasv_chcount = 0; - -static ECA_CONTROL_INTERFACE* ecasv_eci_repp = 0; - -static sig_atomic_t done = 0; -static sig_atomic_t reset_stats = 0; -static int avg_peak_buffer_sz=100; // jkc: addition - -#ifdef HAVE_TERMIOS_H -struct termios old_term, new_term; -#endif - -/** - * Function definitions - */ - -int main(int argc, char *argv[]) -{ - int res; - struct sigaction es_handler; - es_handler.sa_handler = ecasv_signal_handler; - sigemptyset(&es_handler.sa_mask); - es_handler.sa_flags = 0; - - sigaction(SIGTERM, &es_handler, 0); - sigaction(SIGINT, &es_handler, 0); - sigaction(SIGQUIT, &es_handler, 0); - sigaction(SIGABRT, &es_handler, 0); - sigaction(SIGHUP, &es_handler, 0); - - struct sigaction ign_handler; - ign_handler.sa_handler = SIG_IGN; - sigemptyset(&ign_handler.sa_mask); - ign_handler.sa_flags = 0; - - /* ignore the following signals */ - sigaction(SIGPIPE, &ign_handler, 0); - sigaction(SIGFPE, &ign_handler, 0); - - ECA_CONTROL_INTERFACE eci; - - eci.command("cs-add default"); - eci.command("c-add default"); - - /* set engine buffersize */ - eci.command("cs-set-param -b:" + kvu_numtostr(ecasv_buffersize)); - /* in case JACK is used, do not send nor receive transport events */ - eci.command("cs-set-param -G:jack,ecasignalview,notransport"); - - /* note: might change the cs options (-G, -z, etc) */ - ecasv_parse_command_line(&eci,argc,argv); - - if (ecasv_format_string.size() > 0) { - eci.command("cs-set-audio-format " + ecasv_format_string); - } - - string format; - if (ecicpp_add_input(&eci, ecasv_input, &format) < 0) return -1; - - cout << "Using audio format -f:" << format << "\n"; - - ecasv_chcount = ecicpp_format_channels(format); - cout << "Setting up " << ecasv_chcount << " separate channels for analysis." << endl; - - if (ecicpp_add_output(&eci, ecasv_output, format) < 0) return -1; - - ecasv_eci_repp = &eci; - - vector chstats; - - eci.command("cop-add -evp"); - eci.command("cop-add -ev"); - if (ecasv_enable_cumulative_mode == true) { - eci.command("cop-set 2,1,1"); - } - - eci.command("cop-select 1"); - - if (ecicpp_connect_chainsetup(&eci, "default") < 0) { - return -1; - } - - int secs = 0, msecs = ecasv_rate_msec; - while(msecs > 999) { - ++secs; - msecs -= 1000; - } - - ecasv_output_init(); - - eci.command("start"); - - int chr=0; // jkc: addition - int rv=0; // jkc: addition - while(! done ) { - kvu_sleep(secs, msecs * 1000000); - res = ecasv_print_vu_meters(&eci, &chstats); - if (res < 0) - break; - -#if defined(ECASV_USE_CURSES) - // jkc: addition until noted - if (ecasv_kbhit()) { - /* note: getch() is a curses.h function */ - switch (chr=getch()) { - case 'q': - case 27: /* Esc */ - case 'Q': - done=true; - break; - case ' ': - reset_stats_fcn(&chstats); - break; - } - } - // jkc: end of addition -#endif - } - - ecasv_output_cleanup(); -#ifdef ECASV_USE_CURSES - endwin(); -#endif - - return rv; -} - -void ecasv_parse_command_line(ECA_CONTROL_INTERFACE *eci, int argc, char *argv[]) -{ - COMMAND_LINE cline = COMMAND_LINE (argc, argv); - if (cline.size() == 0 || - cline.has("--version") || - cline.has("--help") || - cline.has("-h")) { - ecasv_print_usage(); - exit(1); - } - - ecasv_enable_debug = false; - ecasv_enable_cumulative_mode = false; - ecasv_rate_msec = 0; - ecasv_buffersize = 0; - - cline.begin(); - cline.next(); // 1st argument - while (cline.end() != true) { - string arg = cline.current(); - if (arg.size() > 0) { - if (arg[0] != '-') { - if (ecasv_input == "") - ecasv_input = arg; - else - if (ecasv_output == "") - ecasv_output = arg; - } - else { - string prefix = kvu_get_argument_prefix(arg); - if (prefix == "b") - ecasv_buffersize = atol(kvu_get_argument_number(1, arg).c_str()); - if (prefix == "c") ecasv_enable_cumulative_mode = true; - if (prefix == "d") ecasv_enable_debug = true; - if (prefix == "f") - ecasv_format_string = string(arg.begin() + 3, arg.end()); - if (prefix == "I") ecasv_log_display_mode = false; // jkc: addition - if (prefix == "L") ecasv_log_display_mode = true; // jkc: addition - if (prefix == "r") - ecasv_rate_msec = atol(kvu_get_argument_number(1, arg).c_str()); - if (prefix == "G" || - prefix == "B" || - (prefix.size() > 0 && prefix[0] == 'M') || - prefix == "r" || - prefix == "z") { - eci->command("cs-option " + arg); - } - } - } - cline.next(); - } - - ecasv_fill_defaults(); -} - -void ecasv_fill_defaults(void) -{ - // ECA_RESOURCES ecarc; - - if (ecasv_input.size() == 0) ecasv_input = "/dev/dsp"; - if (ecasv_output.size() == 0) ecasv_output = "null"; - if (ecasv_buffersize == 0) ecasv_buffersize = ecasv_buffersize_default_const; - if (ecasv_rate_msec == 0) ecasv_rate_msec = ecasv_rate_default_const; - if (ecasv_format_string.size() == 0) ecasv_format_string = "s16_le,2,44100,i"; - - // ecarc.resource("default-audio-format"); -} - -string ecasv_cop_to_string(ECA_CONTROL_INTERFACE* eci) -{ - eci->command("cop-status"); - return(eci->last_string()); -} - -void ecasv_output_init(void) -{ -#ifdef ECASV_USE_CURSES - initscr(); - erase(); - int r=0; // jkc: added r for row indexing here and below - mvprintw(r++, 0, "ecasignalview v%s (%s) -- (C) K.Vehmanen, J.Cunningham", ecatools_signalview_version.c_str(), VERSION); - //mvprintw(r++, 0, "* (C) 1999-2005 Kai Vehmanen, Jeff Cunningham *\n"); - //mvprintw(r++, 0, "******************************************************\n\n"); - - ++r; - mvprintw(r++, 2, "Input/output: \"%s\" => \"%s\"", - ecasv_input.c_str(),ecasv_output.c_str()); - double avg_length = (double)ecasv_rate_msec * avg_peak_buffer_sz; - mvprintw(r++, 2, - "Settings: %s refresh=%ldms bsize=%ld avg-length=%.0fms", - ecasv_format_string.c_str(), ecasv_rate_msec, ecasv_buffersize, avg_length); - /* mvprintw(r++, 0, "refresh rate = %ld (msec), buffer size = %ld, " - "avg-length = %.0f (msec)", - ecasv_rate_msec, ecasv_buffersize, avg_length); */ - ++r; - const char* bar="------------------------------------------------------------------------------\n"; - mvprintw(r++, 0, bar); - mvprintw(r, 0, "channel"); - if (ecasv_log_display_mode) - mvprintw(r++,38, "%s avg-peak dB max-peak dB clipped\n", ecasv_bar_buffer); - else - mvprintw(r++,38, "%s avg-peak max-peak clipped\n", ecasv_bar_buffer); - mvprintw(r++, 0, bar); - - memset(ecasv_bar_buffer, ' ', ecasv_bar_length_const - 4); - ecasv_bar_buffer[ecasv_bar_length_const - 4] = 0; - mvprintw(r + ecasv_chcount + 3, 0, "Press spacebar to reset stats"); // jkc: addition - move(r + ecasv_chcount - 2, 0); - - // 13 + 12 - - refresh(); -#endif -} - -void ecasv_output_cleanup(void) -{ -#ifdef ECASV_USE_CURSES - endwin(); -#endif - - // FIXME: should be enabled -#if 0 - if (ecasv_eci_repp != 0) { - cout << endl << endl << endl; - ecasv_eci_repp->command("cop-status"); - } -#endif -} - -// jkc: addition of reset_stats function -void reset_stats_fcn(vector* chstats) -{ -#ifdef ECASV_USE_CURSES - vector::iterator s=chstats->begin(); - while (s!=chstats->end()) { - s->last_peak=0; - s->max_peak=0; - s->drawn_peak=0; - s->clipped_samples=0; - s++; - } -#endif -} -// jkc: end of addition - -int ecasv_print_vu_meters(ECA_CONTROL_INTERFACE* eci, vector* chstats) -{ - int result = 0; - - /* check wheter to reset peaks */ - if (reset_stats) { - reset_stats = 0; - for(int n = 0; n < ecasv_chcount; n++) { - (*chstats)[n].max_peak = 0; - (*chstats)[n].clipped_samples = 0; - } - } - -#ifdef ECASV_USE_CURSES - for(int n = 0; n < ecasv_chcount; n++) { - eci->command("copp-select " + kvu_numtostr(n + 1)); - eci->command("copp-get"); - - if (eci->error()) { - result = -1; - break; - } - - double value = eci->last_float(); - - ecasv_update_chstats(chstats, n, value); - - ecasv_create_bar((*chstats)[n].drawn_peak, ecasv_bar_length_const, ecasv_bar_buffer); - // jkc: commented out following two lines and substituted what follows until noted -// mvprintw(ecasv_header_height_const+n, 0, "Ch-%02d: %s| %.5f %ld\n", -// n + 1, ecasv_bar_buffer, (*chstats)[n].max_peak, (*chstats)[n].clipped_samples); - // Calculate average peak value - - if (ecasv_log_display_mode) - mvprintw(ecasv_header_height_const+n, 0, - "Ch-%02d: %s %.2f %.2f %ld\n", - n+1, ecasv_bar_buffer, - dB((*chstats)[n].avg_peak_val), - dB((*chstats)[n].max_peak), - (*chstats)[n].clipped_samples); - else - mvprintw(ecasv_header_height_const+n, 0, - "Ch-%02d: %s %.5f %.5f %ld\n", - n+1, ecasv_bar_buffer, - (*chstats)[n].avg_peak_val, - (*chstats)[n].max_peak, - (*chstats)[n].clipped_samples); - // jkc: end of substitution - } - move(ecasv_header_height_const + 2 + ecasv_chcount, 0); - refresh(); -#else - cout << ecasv_cop_to_string(eci) << endl; -#endif - - return result; -} - -void ecasv_update_chstats(vector* chstats, int ch, double value) -{ - /* 1. in case a new channel is encoutered */ - if (static_cast(chstats->size()) <= ch) { - chstats->resize(ch + 1); - // jkc: added until noted - (*chstats)[ch].last_peak=0; - (*chstats)[ch].drawn_peak=0; - (*chstats)[ch].max_peak=0; - (*chstats)[ch].clipped_samples=0; - (*chstats)[ch].avg_peak.resize(avg_peak_buffer_sz,0); - (*chstats)[ch].avg_peak_ptr=0; - // jkc: end of additions - } - - /* 2. update last_peak and drawn_peak */ - (*chstats)[ch].last_peak = value; - if ((*chstats)[ch].last_peak < (*chstats)[ch].drawn_peak) { - (*chstats)[ch].drawn_peak *= ((*chstats)[ch].last_peak / (*chstats)[ch].drawn_peak); - } - else { - (*chstats)[ch].drawn_peak = (*chstats)[ch].last_peak; - } - - /* 3. update max_peak */ - if (value > (*chstats)[ch].max_peak) { - (*chstats)[ch].max_peak = value; - } - - /* 4. update clipped_samples counter */ - if (value > ecasv_clipped_threshold_const) { - (*chstats)[ch].clipped_samples++; - } - - // jkc: added until noted - /* 5. update running average vector */ - (*chstats)[ch].avg_peak[(*chstats)[ch].avg_peak_ptr] = value; - (*chstats)[ch].avg_peak_ptr = ((*chstats)[ch].avg_peak_ptr == avg_peak_buffer_sz-1)? - 0 : (*chstats)[ch].avg_peak_ptr+1; - vector::iterator p=(*chstats)[ch].avg_peak.begin(); - (*chstats)[ch].avg_peak_val=0; - while (p!=(*chstats)[ch].avg_peak.end()) { (*chstats)[ch].avg_peak_val+=*p++; } - (*chstats)[ch].avg_peak_val/=avg_peak_buffer_sz; - // jkc; end of addition -} - -void ecasv_create_bar(double value, int barlen, unsigned char* barbuf) -{ - int curlen = static_cast(rint(((value / 1.0f) * barlen))); - for(int n = 0; n < barlen; n++) { - if (n <= curlen) - barbuf[n] = '*'; - else - barbuf[n] = ' '; - } -} - -/** - * Sets terminal to unbuffered mode (no echo, - * non-canonical input). -jkc - */ -void ecasv_set_unbuffered(void) -{ -#ifdef HAVE_TERMIOS_H - tcgetattr( STDIN_FILENO, &old_term ); - new_term = old_term; - new_term.c_lflag &= ~( ICANON | ECHO ); - tcsetattr( STDIN_FILENO, TCSANOW, &new_term ); -#endif -} - -/** - * Sets terminal to buffered mode -jkc - */ -void ecasv_set_buffered(void) -{ -#ifdef HAVE_TERMIOS_H - tcsetattr( STDIN_FILENO, TCSANOW, &old_term ); -#endif -} - -/** - * Reads a character from the terminal console. -jkc - */ -int ecasv_kbhit(void) -{ - int result; - fd_set set; - struct timeval tv; - - FD_ZERO(&set); - FD_SET(STDIN_FILENO,&set); /* watch stdin */ - tv.tv_sec = 0; - tv.tv_usec = 0; /* don't wait */ - - /* quick peek at the input, to see if anything is there */ - ecasv_set_unbuffered(); - result = select( STDIN_FILENO+1,&set,NULL,NULL,&tv); - ecasv_set_buffered(); - - return result == 1; -} - -void ecasv_print_usage(void) -{ - cerr << "****************************************************************************\n"; - cerr << "* ecasignalview, v" << ecatools_signalview_version << " (" << VERSION << ")\n"; - cerr << "* Copyright 1999-2005 Kai Vehmanen, Jeffrey Cunningham\n"; - cerr << "* Licensed under the terms of the GNU General Public License\n"; - cerr << "****************************************************************************\n"; - - cerr << "\nUSAGE: ecasignalview [options] [input] [output] \n"; - cerr << "\nOptions:\n"; - cerr << "\t-b:buffersize\n"; - // cerr << "\t\t-c (cumulative mode)\n"; - cerr << "\t-d (debug mode)\n"; - cerr << "\t-f:bits,channels,samplerate\n"; - cerr << "\t-r:refresh_msec\n\n"; - cerr << "\t-I (linear-scale)\n"; - cerr << "\t-L (logarithmic-scale)\n"; -} - -void ecasv_signal_handler(int signum) -{ - if (signum == SIGHUP) { - reset_stats = 1; - } - else { - cerr << "Interrupted... cleaning up.\n"; - done=1; - } -} diff --git a/library/ecasound/ecatools/ecasound.el b/library/ecasound/ecatools/ecasound.el deleted file mode 100644 index 6458b9763..000000000 --- a/library/ecasound/ecatools/ecasound.el +++ /dev/null @@ -1,2445 +0,0 @@ -;;; ecasound.el --- Interactive and programmatic interface to Ecasound - -;; Copyright (C) 2001, 2002, 2003 Mario Lang - -;; Author: Mario Lang -;; Keywords: audio, ecasound, eci, comint, process, pcomplete -;; Version: 0.8.3 - -;; This file is free software; you can redistribute it and/or modify -;; it under the terms of the GNU General Public License as published by -;; the Free Software Foundation; either version 2, or (at your option) -;; any later version. - -;; This file is distributed in the hope that it will be useful, -;; but WITHOUT ANY WARRANTY; without even the implied warranty of -;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -;; GNU General Public License for more details. - -;; You should have received a copy of the GNU General Public License -;; along with GNU Emacs; see the file COPYING. If not, write to -;; the Free Software Foundation, Inc., 59 Temple Place - Suite 330, -;; Boston, MA 02111-1307, USA. - -;;; Commentary: - -;; This file implements several aspects of ecasound use: -;; -;; * A derived-major-mode, from comint mode for an inferior ecasound -;; process (ecasound-aim-mode). Complete with context sensitive -;; completion and interactive features to control the current process -;; using ECI. -;; -;; * Ecasound Control Interface (ECI) library for programmatic control -;; of a Ecasound process. This allows you to write Ecasound batch -;; jobs in Emacs-Lisp with Lisp functions and return values. Have a -;; look at eci-example and ecasound-normalize. -;; -;; * ecasound-ewf-mode, a mode for editing .ewf files. -;; -;; -;; Usage: -;; -;; You need at least ecasound 2.2.0 for this file to work properly. -;; -;; Put ecasound.el in your load-path and require it in your .emacs. -;; Set `ecasound-program' to the path to your ecasound executable. -;; -;; (setq load-path (cons "/home/user/elisp") -;; (require 'ecasound) -;; (setq ecasound-program "/home/user/bin/ecasound" -;; eci-program "/home/user/bin/ecasound") -;; -;; To set ecasound startup options use -;; -;; M-x ecasound-customize-startup RET -;; -;; Then use M-x ecasound RET to invoke an inferior ecasound process. -;; -;; For programmatic use of the ECI API, have a look at `eci-init', -;; `eci-command' and in general the eci-* namespace. -;; -;; Compatibility: -;; -;; This file is only tested with GNU Emacs 21. I've invested some minimal -;; efforts to get it working with XEmacs. However, XEmacs support -;; might be broken in some areas. Since I personally very seldomly -;; use XEmacs, I am happy about suggestions and patches. -;; -;; Todo: -;; -;; * Find a better way to do status info fetching... -;; * Add more conditions to the menu. -;; * Use map-xxx-list data in the ecasound-copp widget. This means we -;; need to merge cop-status and map-cop-list data somehow or have -;; the cop-editor fetch hints from map-cop/ladpsa/preset-list. -;; * Make `ecasound-signalview' faster, and allow to invoke it on already -;; opened sessions. -;; * Fix the case where ecasound sends output *after* the prompt. -;; This is tricky! Fixed for internal parsing, probably will leave -;; like that for interactive use, not worth the trouble... -;; * Copy documentation for ECI commands into eci-* docstrings and menu -;; :help keywords. -;; * Expand the menu. - -;;; History: -;; -;; Version: 0.8.3 -;; -;; * ecasound-cli-arg:value-to-internal: Use `widget-get' instead of -;; (car (last elt)) to extract :value from :args which makes code compatible -;; to XEmacs. -;; * ecasound-cli-arg:value-to-external: Use `widget-get' instead of -;; `widget-apply' to fetch :arg-format. Makes XEmacs happy. -;; * Add "-D" to the default `ecasound-arguments'. This fixes a problem -;; with the TERM variable which only appeared in XEmacs and is a reasonable -;; default anyway. -;; * Fix `ecasound-output-filter' when "-D" is used as argument on startup. -;; * Add `comint-strip-ctrl-m' to `comint-output-filter-functions' when -;; we are running XEmacs. -;; * `defeci' cs-set-position. Bound to "M-c M-s s" and in -;; `ecasound-iam-cs-menu'. -;; * Add some more docstrings. -;; * New interactive functions `ecasound-set-mark' and `ecasound-goto-mark' -;; which implement the position marker system discussed on ecasound-list. -;; Bound to C-c C-SPC and C-c C-j respectively. -;; * New user variable `ecasound-daemon-host' which defaults to "localhost". -;; * Record the daemon port in a buffer local variable `ecasound-daemon-port' -;; and therefore allow temporarily binding `ecasound-arguments' to something -;; different via e.g. `let' before invoking `ecasound'. -;; * Fix regexp in `eci-input-filter' to be XEmacs compatible. -;; -;; Version: 0.8.2 -;; -;; * Added quite some missing docstrings. -;; * New variable `ecasound-last-command-alist'. Use that to do fancy stuff -;; to certain commands return values. -;; * New variable `ecasound-type-alist'. Normally you should not need to -;; change this, but it's nice to have it configurable. -;; * New function `eci-is-valid-p'. Rationale is that nil as return -;; value of a ECI command should indicate an error. So this function -;; with a -p suffix to use as a predicate. -;; * New variable `ecasound-parent' holds the parent buffer in a daemon buffer. -;; * New variables ecasound-timer-flag&interval. -;; * Renamed `eci-output-filter' to `ecasound-output-filter'. -;; * New variable ecasound-mode|header-line-format. -;; * `ecasound-cop-edit' now uses cop-set instead of -;; cop-select+copp-select+copp-set to update values. -;; * Fixed multiple-argument handling. They are separated with ',', not -;; with a space. -;; * New variable ecasound-sending-command, used to prevent the background -;; timer from coliding with other ECI requests. -;; -;; Version: 0.8.1 -;; -;; * Make ai|ao|cs-forward|rewind use ai|ao|cs-selected in the prompt -;; string of the interactive spec. -;; * New keymaps ecasound-audioin|audioout-map. -;; Now you can be very quick: -;; M-x ecasound RET M-i a