Merge lp:~vibhavp/ubuntu/raring/dahdi-tools/merge-from-debian into lp:ubuntu/raring/dahdi-tools

Proposed by Vibhav Pant
Status: Work in progress
Proposed branch: lp:~vibhavp/ubuntu/raring/dahdi-tools/merge-from-debian
Merge into: lp:ubuntu/raring/dahdi-tools
Diff against target: 84301 lines (+73212/-6649)
183 files modified
.pc/.quilt_patches (+1/-0)
.pc/.quilt_series (+1/-0)
.pc/applied-patches (+0/-3)
.pc/echocan_oslec/xpp/perl_modules/Dahdi/Config/Params.pm (+0/-156)
.pc/init_unload_oslec/dahdi.init (+0/-333)
.pc/zaptel_perl/xpp/Makefile (+0/-140)
.version (+1/-1)
ChangeLog (+198/-0)
Makefile (+6/-0)
README (+19/-17)
UPGRADE.txt (+3/-4)
configure.ac (+1/-1)
dahdi-tools-2.4.1-summary.html (+0/-82)
dahdi-tools-2.4.1-summary.txt (+0/-162)
dahdi.init (+2/-6)
dahdi_cfg.c (+32/-26)
dahdi_maint.c (+27/-9)
debian/changelog (+37/-0)
debian/compat (+1/-1)
debian/control (+3/-3)
debian/copyright (+1/-1)
debian/dahdi.install (+1/-0)
debian/dahdi.postrm (+0/-3)
debian/dahdi.prerm (+0/-3)
debian/libtonezone2.0.install (+1/-1)
debian/libtonezone2.0.symbols (+11/-0)
debian/patches/remove_dahdi_speed (+17/-0)
debian/patches/series (+1/-0)
debian/rules (+13/-19)
menuselect/aclocal.m4 (+2/-2)
menuselect/autoconfig.h.in (+6/-0)
menuselect/configure (+2420/-3439)
menuselect/configure.ac (+1/-0)
menuselect/linkedlists.h (+4/-2)
menuselect/menuselect.c (+58/-48)
menuselect/menuselect.h (+10/-30)
menuselect/menuselect_curses.c (+78/-54)
menuselect/menuselect_gtk.c (+3/-3)
menuselect/menuselect_newt.c (+46/-11)
patgen.c (+35/-24)
patlooptest.c (+70/-20)
pattest.c (+35/-24)
system.conf.sample (+10/-3)
xpp/Makefile (+47/-9)
xpp/README.Astribank (+43/-22)
xpp/astribank_allow.8 (+5/-5)
xpp/astribank_allow.c (+5/-4)
xpp/astribank_hexload.8 (+49/-11)
xpp/astribank_hexload.c (+95/-28)
xpp/astribank_hook (+35/-13)
xpp/astribank_is_starting.c (+1/-1)
xpp/astribank_tool.8 (+5/-5)
xpp/astribank_tool.c (+7/-5)
xpp/astribank_usb.c (+72/-353)
xpp/astribank_usb.h (+4/-6)
xpp/dahdi_genconf (+3/-3)
xpp/dahdi_registration (+3/-2)
xpp/debug.c (+0/-53)
xpp/debug.h (+0/-46)
xpp/echo_loader.c (+784/-0)
xpp/echo_loader.h (+32/-0)
xpp/mpp.h (+76/-221)
xpp/mpp_funcs.c (+0/-1109)
xpp/mpp_funcs.h (+0/-80)
xpp/mpptalk.c (+915/-0)
xpp/mpptalk.h (+84/-0)
xpp/mpptalk_defs.h (+111/-0)
xpp/oct612x/Makefile (+38/-0)
xpp/oct612x/apilib/bt/octapi_bt0.c (+1217/-0)
xpp/oct612x/apilib/bt/octapi_bt0_private.h (+93/-0)
xpp/oct612x/apilib/largmath/octapi_largmath.c (+628/-0)
xpp/oct612x/apilib/llman/octapi_llman.c (+2787/-0)
xpp/oct612x/apilib/llman/octapi_llman_private.h (+206/-0)
xpp/oct612x/get_discards (+51/-0)
xpp/oct612x/include/apilib/octapi_bt0.h (+75/-0)
xpp/oct612x/include/apilib/octapi_largmath.h (+69/-0)
xpp/oct612x/include/apilib/octapi_llman.h (+142/-0)
xpp/oct612x/include/digium_unused.h (+297/-0)
xpp/oct612x/include/oct6100api/oct6100_adpcm_chan_inst.h (+74/-0)
xpp/oct612x/include/oct6100api/oct6100_adpcm_chan_pub.h (+90/-0)
xpp/oct612x/include/oct6100api/oct6100_api.h (+84/-0)
xpp/oct612x/include/oct6100api/oct6100_api_inst.h (+138/-0)
xpp/oct612x/include/oct6100api/oct6100_apimi.h (+69/-0)
xpp/oct612x/include/oct6100api/oct6100_apiud.h (+312/-0)
xpp/oct612x/include/oct6100api/oct6100_channel_inst.h (+374/-0)
xpp/oct612x/include/oct6100api/oct6100_channel_pub.h (+547/-0)
xpp/oct612x/include/oct6100api/oct6100_chip_open_inst.h (+515/-0)
xpp/oct612x/include/oct6100api/oct6100_chip_open_pub.h (+241/-0)
xpp/oct612x/include/oct6100api/oct6100_chip_stats_inst.h (+84/-0)
xpp/oct612x/include/oct6100api/oct6100_chip_stats_pub.h (+150/-0)
xpp/oct612x/include/oct6100api/oct6100_conf_bridge_inst.h (+104/-0)
xpp/oct612x/include/oct6100api/oct6100_conf_bridge_pub.h (+169/-0)
xpp/oct612x/include/oct6100api/oct6100_debug_inst.h (+124/-0)
xpp/oct612x/include/oct6100api/oct6100_debug_pub.h (+76/-0)
xpp/oct612x/include/oct6100api/oct6100_defines.h (+679/-0)
xpp/oct612x/include/oct6100api/oct6100_errors.h (+838/-0)
xpp/oct612x/include/oct6100api/oct6100_events_inst.h (+69/-0)
xpp/oct612x/include/oct6100api/oct6100_events_pub.h (+111/-0)
xpp/oct612x/include/oct6100api/oct6100_interrupts_inst.h (+134/-0)
xpp/oct612x/include/oct6100api/oct6100_interrupts_pub.h (+102/-0)
xpp/oct612x/include/oct6100api/oct6100_mixer_inst.h (+86/-0)
xpp/oct612x/include/oct6100api/oct6100_mixer_pub.h (+77/-0)
xpp/oct612x/include/oct6100api/oct6100_phasing_tsst_inst.h (+68/-0)
xpp/oct612x/include/oct6100api/oct6100_phasing_tsst_pub.h (+78/-0)
xpp/oct612x/include/oct6100api/oct6100_playout_buf_inst.h (+88/-0)
xpp/oct612x/include/oct6100api/oct6100_playout_buf_pub.h (+183/-0)
xpp/oct612x/include/oct6100api/oct6100_remote_debug_inst.h (+73/-0)
xpp/oct612x/include/oct6100api/oct6100_remote_debug_pub.h (+64/-0)
xpp/oct612x/include/oct6100api/oct6100_tlv_inst.h (+72/-0)
xpp/oct612x/include/oct6100api/oct6100_tone_detection_inst.h (+46/-0)
xpp/oct612x/include/oct6100api/oct6100_tone_detection_pub.h (+74/-0)
xpp/oct612x/include/oct6100api/oct6100_tsi_cnct_inst.h (+70/-0)
xpp/oct612x/include/oct6100api/oct6100_tsi_cnct_pub.h (+76/-0)
xpp/oct612x/include/oct6100api/oct6100_tsst_inst.h (+55/-0)
xpp/oct612x/include/octdef.h (+116/-0)
xpp/oct612x/include/octmac.h (+98/-0)
xpp/oct612x/include/octosdependant.h (+170/-0)
xpp/oct612x/include/octrpc/oct6100_rpc_protocol.h (+348/-0)
xpp/oct612x/include/octrpc/rpc_protocol.h (+115/-0)
xpp/oct612x/include/octtype.h (+159/-0)
xpp/oct612x/include/octtypevx.h (+132/-0)
xpp/oct612x/include/octtypewin.h (+100/-0)
xpp/oct612x/octasic-helper (+39/-0)
xpp/oct612x/octdeviceapi/oct6100api/oct6100_adpcm_chan_priv.h (+131/-0)
xpp/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_adpcm_chan.c (+1237/-0)
xpp/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_channel.c (+13933/-0)
xpp/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_chip_open.c (+6917/-0)
xpp/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_chip_stats.c (+441/-0)
xpp/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_conf_bridge.c (+7683/-0)
xpp/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_debug.c (+1278/-0)
xpp/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_events.c (+1379/-0)
xpp/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_interrupts.c (+2012/-0)
xpp/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_memory.c (+831/-0)
xpp/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_miscellaneous.c (+640/-0)
xpp/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_mixer.c (+1586/-0)
xpp/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_phasing_tsst.c (+922/-0)
xpp/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_playout_buf.c (+3337/-0)
xpp/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_remote_debug.c (+1598/-0)
xpp/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tlv.c (+2056/-0)
xpp/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tone_detection.c (+1088/-0)
xpp/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tsi_cnct.c (+1023/-0)
xpp/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tsst.c (+575/-0)
xpp/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_user.c (+508/-0)
xpp/oct612x/octdeviceapi/oct6100api/oct6100_apimi/oct6100_mask_interrupts.c (+116/-0)
xpp/oct612x/octdeviceapi/oct6100api/oct6100_channel_priv.h (+529/-0)
xpp/oct612x/octdeviceapi/oct6100api/oct6100_chip_open_priv.h (+264/-0)
xpp/oct612x/octdeviceapi/oct6100api/oct6100_chip_stats_priv.h (+55/-0)
xpp/oct612x/octdeviceapi/oct6100api/oct6100_conf_bridge_priv.h (+318/-0)
xpp/oct612x/octdeviceapi/oct6100api/oct6100_debug_priv.h (+58/-0)
xpp/oct612x/octdeviceapi/oct6100api/oct6100_events_priv.h (+82/-0)
xpp/oct612x/octdeviceapi/oct6100api/oct6100_interrupts_priv.h (+158/-0)
xpp/oct612x/octdeviceapi/oct6100api/oct6100_memory_priv.h (+97/-0)
xpp/oct612x/octdeviceapi/oct6100api/oct6100_miscellaneous_priv.h (+279/-0)
xpp/oct612x/octdeviceapi/oct6100api/oct6100_mixer_priv.h (+150/-0)
xpp/oct612x/octdeviceapi/oct6100api/oct6100_phasing_tsst_priv.h (+114/-0)
xpp/oct612x/octdeviceapi/oct6100api/oct6100_playout_buf_priv.h (+201/-0)
xpp/oct612x/octdeviceapi/oct6100api/oct6100_remote_debug_priv.h (+144/-0)
xpp/oct612x/octdeviceapi/oct6100api/oct6100_tlv_priv.h (+515/-0)
xpp/oct612x/octdeviceapi/oct6100api/oct6100_tone_detection_priv.h (+111/-0)
xpp/oct612x/octdeviceapi/oct6100api/oct6100_tsi_cnct_priv.h (+126/-0)
xpp/oct612x/octdeviceapi/oct6100api/oct6100_tsst_priv.h (+89/-0)
xpp/oct612x/octdeviceapi/oct6100api/oct6100_version.h (+39/-0)
xpp/oct612x/test.c (+46/-0)
xpp/perl_modules/Dahdi/Chans.pm (+1/-1)
xpp/perl_modules/Dahdi/Config/Params.pm (+1/-1)
xpp/perl_modules/Dahdi/Hardware/PCI.pm (+1/-1)
xpp/perl_modules/Dahdi/Hardware/USB.pm (+1/-1)
xpp/perl_modules/Dahdi/Span.pm (+23/-4)
xpp/perl_modules/Dahdi/Xpp.pm (+2/-2)
xpp/perl_modules/Dahdi/Xpp/Xpd.pm (+9/-1)
xpp/pic_loader.c (+29/-20)
xpp/waitfor_xpds (+3/-2)
xpp/xpp_fxloader (+46/-8)
xpp/xtalk/debug.c (+72/-0)
xpp/xtalk/debug.h (+49/-0)
xpp/xtalk/xlist.c (+93/-0)
xpp/xtalk/xlist.h (+29/-0)
xpp/xtalk/xtalk.c (+497/-0)
xpp/xtalk/xtalk.h (+172/-0)
xpp/xtalk/xtalk_defs.h (+40/-0)
xpp/xtalk/xusb.c (+726/-0)
xpp/xtalk/xusb.h (+98/-0)
zonedata.c (+49/-1)
To merge this branch: bzr merge lp:~vibhavp/ubuntu/raring/dahdi-tools/merge-from-debian
Reviewer Review Type Date Requested Status
Charlie_Smotherman (community) Needs Fixing
Ubuntu branches Pending
Review via email: mp+141274@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Charlie_Smotherman (cjsmo) wrote :

bzr bd -S -- -sa -kxxxxxx
Building using working tree
Building package in normal mode
Looking for a way to retrieve the upstream tarball
Using pristine-tar to reconstruct dahdi-tools_2.5.0.1.orig.tar.gz.
Building the package in /home/charlie/dah/build-area/dahdi-tools-2.5.0.1, using debuild -sa -kxxxxxxx -S
 dpkg-buildpackage -rfakeroot -d -us -uc -sa -S
dpkg-buildpackage: source package dahdi-tools
dpkg-buildpackage: source version 1:2.5.0.1-2ubuntu1
dpkg-buildpackage: source changed by Vibhav Pant <email address hidden>
 dpkg-source --before-build dahdi-tools-2.5.0.1
 fakeroot debian/rules clean
debian/rules:30: *** missing separator. Stop.
dpkg-buildpackage: error: fakeroot debian/rules clean gave error exit status 2
debuild: fatal error at line 1357:
dpkg-buildpackage -rfakeroot -d -us -uc -sa -S failed
bzr: ERROR: The build failed.

review: Needs Fixing
10. By Vibhav Pant

Fix debian/rules error message

Revision history for this message
Charlie_Smotherman (cjsmo) wrote :

rm -f autoconfig.h config.status config.log makeopts
rm -rf autom4te.cache
make[2]: Leaving directory `/home/charlie/dah/build-area/dahdi-tools-2.5.0.1/menuselect'
rm -f makeopts menuselect.makeopts menuselect-tree build_tools/menuselect-deps
rm -f config.log config.status
rm -f .*.d
make[1]: Leaving directory `/home/charlie/dah/build-area/dahdi-tools-2.5.0.1'
rm -f debian/dahdi.init
#rm -f debian/manpage.links debian/manpage.refs debian/*.8
dh_clean
dh unpatch
dh: Unknown sequence unpatch (choose from: binary binary-arch binary-indep build build-arch build-indep clean install install-arch install-indep)
make: *** [unpatch] Error 255
dpkg-buildpackage: error: fakeroot debian/rules clean gave error exit status 2
debuild: fatal error at line 1357:
dpkg-buildpackage -rfakeroot -d -us -uc -sa -S failed
bzr: ERROR: The build failed.

review: Needs Fixing

Unmerged revisions

10. By Vibhav Pant

Fix debian/rules error message

9. By Vibhav Pant

* Merge from Debian unstable. Remaining changes:
  - Bug Fix: If linux-headers are not installed, don't block, and print
    information for the user.
  - added debian/dahdi.postinst
  - added --error-handler=init_failed to debian/rules
  - debian/control: Added gawk as dependency for dkms build (LP: #493304)
  - Changes from Debian:
    - debian/control: Change Maintainer
    - debian/control: Removed Uploaders field.
    - debian/control: Removed Debian Vcs-Svn entry and replaced with
      ubuntu-voip Vcs-Bzr, to reflect divergence in packages.
    - debian/control: Package dahdi Depends on dahdi-dkms | dahdi-source

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file '.pc/.quilt_patches'
2--- .pc/.quilt_patches 1970-01-01 00:00:00 +0000
3+++ .pc/.quilt_patches 2012-12-27 13:34:24 +0000
4@@ -0,0 +1,1 @@
5+debian/patches
6
7=== added file '.pc/.quilt_series'
8--- .pc/.quilt_series 1970-01-01 00:00:00 +0000
9+++ .pc/.quilt_series 2012-12-27 13:34:24 +0000
10@@ -0,0 +1,1 @@
11+series
12
13=== removed file '.pc/applied-patches'
14--- .pc/applied-patches 2011-03-13 23:45:36 +0000
15+++ .pc/applied-patches 1970-01-01 00:00:00 +0000
16@@ -1,3 +0,0 @@
17-zaptel_perl
18-echocan_oslec
19-init_unload_oslec
20
21=== removed directory '.pc/echocan_oslec'
22=== removed directory '.pc/echocan_oslec/xpp'
23=== removed directory '.pc/echocan_oslec/xpp/perl_modules'
24=== removed directory '.pc/echocan_oslec/xpp/perl_modules/Dahdi'
25=== removed directory '.pc/echocan_oslec/xpp/perl_modules/Dahdi/Config'
26=== removed file '.pc/echocan_oslec/xpp/perl_modules/Dahdi/Config/Params.pm'
27--- .pc/echocan_oslec/xpp/perl_modules/Dahdi/Config/Params.pm 2011-03-13 23:45:36 +0000
28+++ .pc/echocan_oslec/xpp/perl_modules/Dahdi/Config/Params.pm 1970-01-01 00:00:00 +0000
29@@ -1,156 +0,0 @@
30-package Dahdi::Config::Params;
31-#
32-# Written by Oron Peled <oron@actcom.co.il>
33-# Copyright (C) 2009, Xorcom
34-# This program is free software; you can redistribute and/or
35-# modify it under the same terms as Perl itself.
36-#
37-# $Id: Params.pm 7224 2009-09-27 15:01:20Z tzafrir $
38-#
39-use strict;
40-
41-=head1 NAME
42-
43-Dahdi::Config::Params -- Object oriented representation of F<genconf_parameters> file.
44-
45-=head1 SYNOPSIS
46-
47- use Dahdi::Config::Params;
48- my $params = Dahdi::Config::Params->new('the-config-file');
49- print $params->item{'some-key'};
50- print $params->item{'some-key', NODEFAULTS => 1};
51- $params->dump; # For debugging
52-
53-=head1 DESCRIPTION
54-
55-The constructor must be given a configuration file name:
56-
57-=over 4
58-
59-=item * Missing file is B<not> an error.
60-
61-=item * Other opening errors cause a C<die> to be thrown.
62-
63-=item * The file name is saved as the value of C<GENCONF_FILE> key.
64-
65-=back
66-
67-The access to config keys should only be done via the C<item()> method:
68-
69-=over 4
70-
71-=item * It contains all hard-coded defaults.
72-
73-=item * All these values are overriden by directives in the config file.
74-
75-=item * Calling it with C<NODEFAULTS =E<gt> 1> option, returns C<undef> for keys that
76-do not appear in the configuration file.
77-
78-=back
79-
80-=cut
81-
82-sub new($$) {
83- my $pack = shift || die;
84- my $cfg_file = shift || die;
85- my $self = {
86- GENCONF_FILE => $cfg_file,
87- };
88- bless $self, $pack;
89- if(!open(F, $cfg_file)) {
90- if(defined($!{ENOENT})) {
91- #print STDERR "No $cfg_file. Assume empty config\n";
92- return $self; # Empty configuration
93- }
94- die "$pack: Failed to open '$cfg_file': $!\n";
95- }
96- #print STDERR "$pack: $cfg_file\n";
97- my $array_key;
98- while(<F>) {
99- my ($key, $val);
100- chomp;
101- s/#.*$//;
102- s/\s+$//; # trim tail whitespace
103- next unless /\S/;
104- if(defined $array_key && /^\s+/) {
105- s/^\s+//; # trim beginning whitespace
106- push(@{$self->{$array_key}}, $_);
107- next;
108- }
109- undef $array_key;
110- ($key, $val) = split(/\s+/, $_, 2);
111- $key = lc($key);
112- if(! defined $val) {
113- $array_key = $key;
114- next;
115- }
116- die "$cfg_file:$.: Duplicate key '$key'\n", if exists $self->{$key};
117- $self->{$key} = $val;
118- }
119- close F;
120- return $self;
121-}
122-
123-sub item($$@) {
124- my $self = shift || die;
125- my $key = shift || die;
126- my %options = @_;
127- my %defaults = (
128- base_exten => '4000',
129- freepbx => 'no', # Better via -F command line
130- fxs_immediate => 'no',
131- fxs_default_start => 'ks',
132- fxo_default_start => 'ks',
133- em_signalling => 'none',
134- lc_country => 'us',
135- context_lines => 'from-pstn',
136- context_phones => 'from-internal',
137- context_input => 'astbank-input',
138- context_output => 'astbank-output',
139- group_phones => '5',
140- group_lines => '0',
141- brint_overlap => 'no',
142- bri_sig_style => 'bri_ptmp',
143- echo_can => 'mg2',
144- bri_hardhdlc => 'auto',
145- pri_connection_type => 'PRI',
146- r2_idle_bits => '1101',
147- tdm_framing => 'esf',
148- 'pri_termtype' => [ 'SPAN/* TE' ],
149- );
150- return $self->{$key} if exists($self->{$key}) or $options{NODEFAULTS};
151- return $defaults{$key};
152-}
153-
154-sub dump($) {
155- my $self = shift || die;
156- printf STDERR "%s dump:\n", ref $self;
157- my $width = 30;
158- foreach my $k (sort keys %$self) {
159- my $val = $self->{$k};
160- my $ref = ref $val;
161- #print STDERR "DEBUG: '$k', '$ref', '$val'\n";
162- if($ref eq '') {
163- printf STDERR "%-${width}s %s\n", $k, $val;
164- } elsif($ref eq 'SCALAR') {
165- printf STDERR "%-${width}s %s\n", $k, ${$val};
166- } elsif($ref eq 'ARRAY') {
167- #printf STDERR "%s:\n", $k;
168- my $i = 0;
169- foreach my $v (@{$val}) {
170- printf STDERR "%-${width}s %s\n", "$k\->[$i]", $v;
171- $i++;
172- }
173- } elsif($ref eq 'HASH') {
174- #printf STDERR "%s:\n", $k;
175- foreach my $k1 (keys %{$val}) {
176- printf STDERR "%-${width}s %s\n", "$k\->\{$k1\}", ${$val}{$k1};
177- }
178- } else {
179- printf STDERR "%-${width}s (-> %s)\n", $k, $ref;
180- }
181- }
182-}
183-
184-1;
185-
186
187=== removed directory '.pc/init_unload_oslec'
188=== removed file '.pc/init_unload_oslec/dahdi.init'
189--- .pc/init_unload_oslec/dahdi.init 2011-03-13 23:45:36 +0000
190+++ .pc/init_unload_oslec/dahdi.init 1970-01-01 00:00:00 +0000
191@@ -1,333 +0,0 @@
192-#!/bin/sh
193-#
194-# dahdi This shell script takes care of loading and unloading \
195-# DAHDI Telephony interfaces
196-# chkconfig: 2345 9 92
197-# description: The DAHDI drivers allow you to use your linux \
198-# computer to accept incoming data and voice interfaces
199-#
200-# config: /etc/dahdi/init.conf
201-
202-### BEGIN INIT INFO
203-# Provides: dahdi
204-# Required-Start: $local_fs $remote_fs
205-# Required-Stop: $local_fs $remote_fs
206-# Should-Start: $network $syslog
207-# Should-Stop: $network $syslog
208-# Default-Start: 2 3 4 5
209-# Default-Stop: 0 1 6
210-# Description: dahdi - load and configure DAHDI modules
211-### END INIT INFO
212-
213-initdir=/etc/init.d
214-
215-# Don't edit the following values. Edit /etc/dahdi/init.conf instead.
216-
217-DAHDI_CFG=/usr/sbin/dahdi_cfg
218-DAHDI_CFG_CMD=${DAHDI_CFG_CMD:-"$DAHDI_CFG"} # e.g: for a custom system.conf location
219-
220-FXOTUNE=/usr/sbin/fxotune
221-
222-# The default syncer Astribank. Usually set automatically to a sane
223-# value by xpp_sync(1) if you have an Astribank. You can set this to an
224-# explicit Astribank (e.g: 01).
225-XPP_SYNC=auto
226-
227-# The maximal timeout (seconds) to wait for udevd to finish generating
228-# device nodes after the modules have loaded and before running dahdi_cfg.
229-DAHDI_DEV_TIMEOUT=20
230-
231-# A list of modules to unload when stopping.
232-# All of their dependencies will be unloaded as well.
233-DAHDI_UNLOAD_MODULES="dahdi"
234-
235-#
236-# Determine which kind of configuration we're using
237-#
238-system=redhat # assume redhat
239-if [ -f /etc/debian_version ]; then
240- system=debian
241-fi
242-
243-if [ -f /etc/gentoo-release ]; then
244- system=debian
245-fi
246-
247-if [ -f /etc/SuSE-release -o -f /etc/novell-release ]
248-then
249- system=debian
250-fi
251-
252-# Source function library.
253-if [ $system = redhat ]; then
254- . $initdir/functions || exit 0
255-fi
256-
257-DAHDI_MODULES_FILE="/etc/dahdi/modules"
258-
259-[ -r /etc/dahdi/init.conf ] && . /etc/dahdi/init.conf
260-
261-if [ $system = redhat ]; then
262- LOCKFILE=/var/lock/subsys/dahdi
263-fi
264-
265-# recursively unload a module and its dependencies, if possible.
266-# where's modprobe -r when you need it?
267-# inputs: module to unload.
268-# returns: the result from
269-unload_module() {
270- module="$1"
271- line=`lsmod 2>/dev/null | grep "^$1 "`
272- if [ "$line" = '' ]; then return; fi # module was not loaded
273-
274- set -- $line
275- # $1: the original module, $2: size, $3: refcount, $4: deps list
276- mods=`echo $4 | tr , ' '`
277- ec_modules=""
278- # xpp_usb keeps the xpds below busy if an xpp hardware is
279- # connected. Hence must be removed before them:
280- case "$module" in xpd_*) mods="xpp_usb $mods";; esac
281-
282- for mod in $mods; do
283- case "$mod" in
284- dahdi_echocan_*)
285- ec_modules="$mod $ec_modules"
286- ;;
287- *)
288- # run in a subshell, so it won't step over our vars:
289- (unload_module $mod)
290- ;;
291- esac
292- done
293- # Now that all the other dependencies are unloaded, we can unload the
294- # dahdi_echocan modules. The drivers that register spans may keep
295- # references on the echocan modules before they are unloaded.
296- for mod in $ec_modules; do
297- (unload_module $mod)
298- done
299- rmmod $module
300-}
301-
302-unload_modules() {
303- for module in $DAHDI_UNLOAD_MODULES; do
304- unload_module $module
305- done
306-}
307-
308-# In (xpp) hotplug mode, the init script is also executed from the
309-# hotplug hook. In that case it should not attempt to loade modules.
310-#
311-# This function only retunrs false (1) if we're in hotplug mode and
312-# coming from the hotplug hook script.
313-hotplug_should_load_modules() {
314- if [ "$XPP_HOTPLUG_DAHDI" = yes -a "$CALLED_FROM_ATRIBANK_HOOK" != '' ]
315- then
316- return 1
317- fi
318- return 0
319-}
320-
321-# In (xpp) hotplug mode: quit after we loaded modules.
322-#
323-# In hotplug mode, the main run should end here, whereas the rest of the
324-# script should be finished by the instance running from the hook.
325-# Note that we only get here if there are actually Astribanks on the
326-# system (otherwise noone will trigger the run of the hotplug hook
327-# script).
328-hotplug_exit_after_load() {
329- if [ "$XPP_HOTPLUG_DAHDI" = yes -a "$CALLED_FROM_ATRIBANK_HOOK" = '' ]
330- then
331- exit 0
332- fi
333-}
334-
335-# Initialize the Xorcom Astribank (xpp/) using perl utiliites:
336-xpp_startup() {
337- # do nothing if there are no astribank devices:
338- if ! /usr/share/dahdi/waitfor_xpds; then return 0; fi
339-
340- hotplug_exit_after_load
341-
342- # overriding locales for the above two, as perl can be noisy
343- # when locales are missing.
344- # No register all the devices if they didn't auto-register:
345- LC_ALL=C dahdi_registration on
346-}
347-
348-
349-hpec_start() {
350- # HPEC license found
351- if ! echo /var/lib/digium/licenses/HPEC-*.lic | grep -v '\*' | grep -q .; then
352- return
353- fi
354-
355- # dahdihpec_enable not installed in /usr/sbin
356- if [ ! -f /usr/sbin/dahdihpec_enable ]; then
357- echo -n "Running dahdihpec_enable: Failed"
358- echo -n "."
359- echo " The dahdihpec_enable binary is not installed in /usr/sbin."
360- return
361- fi
362-
363- # dahdihpec_enable not set executable
364- if [ ! -x /usr/sbin/dahdihpec_enable ]; then
365- echo -n "Running dahdihpec_enable: Failed"
366- echo -n "."
367- echo " /usr/sbin/dahdihpec_enable is not set as executable."
368- return
369- fi
370-
371- # dahdihpec_enable properly installed
372- if [ $system = debian ]; then
373- echo -n "Running dahdihpec_enable: "
374- /usr/sbin/dahdihpec_enable 2> /dev/null
375- elif [ $system = redhat ]; then
376- action "Running dahdihpec_enable: " /usr/sbin/dahdihpec_enable
377- fi
378- if [ $? = 0 ]; then
379- echo -n "done"
380- echo "."
381- else
382- echo -n "Failed"
383- echo -n "."
384- echo " This can be caused if you had already run dahdihpec_enable, or if your HPEC license is no longer valid."
385- fi
386-}
387-
388-shutdown_dynamic() {
389- if ! grep -q ' DYN/' /proc/dahdi/* 2>/dev/null; then return; fi
390-
391- # we should only get here if we have dynamic spans. Right?
392- $DAHDI_CFG_CMD -s
393-}
394-
395-load_modules() {
396- # Some systems, e.g. Debian Lenny, add here -b, which will break
397- # loading of modules blacklisted in modprobe.d/*
398- unset MODPROBE_OPTIONS
399- modules=`sed -e 's/#.*$//' $DAHDI_MODULES_FILE 2>/dev/null`
400- #if [ "$modules" = '' ]; then
401- # what?
402- #fi
403- echo "Loading DAHDI hardware modules:"
404- modprobe dahdi
405- for line in $modules; do
406- if [ $system = debian ]; then
407- echo -n " ${line}: "
408- if modprobe $line 2> /dev/null; then
409- echo -n "done"
410- else
411- echo -n "error"
412- fi
413- elif [ $system = redhat ]; then
414- action " ${line}: " modprobe $line
415- fi
416- done
417- echo ""
418-}
419-
420-if [ ! -x "$DAHDI_CFG" ]; then
421- echo "dahdi_cfg not executable"
422- exit 0
423-fi
424-
425-if [ ! -f /etc/dahdi/system.conf ]; then
426- echo "/etc/dahdi/system.conf not found. Nothing to do."
427- exit 0
428-fi
429-
430-RETVAL=0
431-
432-# See how we were called.
433-case "$1" in
434- start)
435- if hotplug_should_load_modules; then
436- load_modules
437- fi
438-
439- TMOUT=$DAHDI_DEV_TIMEOUT # max secs to wait
440-
441- while [ ! -d /dev/dahdi ] ; do
442- sleep 1
443- TMOUT=`expr $TMOUT - 1`
444- if [ $TMOUT -eq 0 ] ; then
445- echo "Error: missing /dev/dahdi!"
446- exit 1
447- fi
448- done
449-
450- xpp_startup
451-
452- if [ ! -e /proc/dahdi/1 ]; then
453- echo "No hardware timing source found in /proc/dahdi, loading dahdi_dummy"
454- modprobe dahdi_dummy 2> /dev/null
455- fi
456-
457- if [ $system = debian ]; then
458- echo -n "Running dahdi_cfg: "
459- $DAHDI_CFG_CMD 2> /dev/null && echo -n "done"
460- echo "."
461- elif [ $system = redhat ]; then
462- action "Running dahdi_cfg: " $DAHDI_CFG_CMD
463- fi
464- RETVAL=$?
465-
466- if [ "$LOCKFILE" != '' ]; then
467- [ $RETVAL -eq 0 ] && touch $LOCKFILE
468- fi
469-
470- if [ -x "$FXOTUNE" ] && [ -r /etc/fxotune.conf ]; then
471- # Allowed to fail if e.g. Asterisk already uses channels:
472- $FXOTUNE -s || :
473- fi
474-
475- # Set the right Astribanks ticker:
476- LC_ALL=C xpp_sync "$XPP_SYNC"
477-
478- hpec_start
479- ;;
480- stop)
481- # Unload drivers
482- #shutdown_dynamic # FIXME: needs test from someone with dynamic spans
483- echo -n "Unloading DAHDI hardware modules: "
484- if unload_modules; then
485- echo "done"
486- else
487- echo "error"
488- fi
489- if [ "$LOCKFILE" != '' ]; then
490- [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
491- fi
492- ;;
493- unload)
494- unload_modules
495- ;;
496- restart|force-reload)
497- $0 stop
498- $0 start
499- ;;
500- reload)
501- if [ $system = debian ]; then
502- echo -n "Rerunning dahdi_cfg: "
503- $DAHDI_CFG_CMD 2> /dev/null && echo -n "done"
504- echo "."
505- elif [ $system = redhat ]; then
506- action "Rerunning dahdi_cfg: " $DAHDI_CFG_CMD
507- fi
508- RETVAL=$?
509- ;;
510- status)
511- if [ -d /proc/dahdi ]; then
512- /usr/sbin/lsdahdi
513- RETVAL=0
514- else
515- RETVAL=3
516- fi
517- ;;
518- *)
519- echo "Usage: dahdi {start|stop|restart|status|reload|unload}"
520- exit 1
521-esac
522-
523-exit $RETVAL
524-
525
526=== removed directory '.pc/zaptel_perl'
527=== removed directory '.pc/zaptel_perl/xpp'
528=== removed file '.pc/zaptel_perl/xpp/Makefile'
529--- .pc/zaptel_perl/xpp/Makefile 2011-03-13 23:45:36 +0000
530+++ .pc/zaptel_perl/xpp/Makefile 1970-01-01 00:00:00 +0000
531@@ -1,140 +0,0 @@
532-PEDANTIC = -ansi -pedantic -std=c99
533-
534-INSTALL = install
535-INSTALL_DATA = install -m 644
536-
537-#
538-# Ugly hack to find kernel directories before/after the split
539-# to kernel/user-space.
540-#
541-# These variables should be passed to us. But until then...
542-#
543-DAHDI_TOOLSDIR ?= ..
544-DAHDI_KERNELDIR =
545-
546--include $(DAHDI_TOOLSDIR)/makeopts
547-
548-INSTALL_DATA = $(INSTALL) -m 644
549-
550-# In 1.4 those are provided by autoconf through makeopts
551-prefix ?= /usr
552-datadir ?= $(prefix)/share
553-mandir ?= $(datadir)/man
554-INSTALL ?= install
555-
556-INSTALL_DATA = $(INSTALL) -m 644
557-
558-SBINDIR = $(prefix)/sbin
559-DATADIR = $(datadir)/dahdi
560-MANDIR = $(mandir)/man8
561-HOTPLUG_USB_DIR = $(sysconfdir)/hotplug/usb
562-PERLLIBDIR := $(shell eval `perl -V:sitelib`; echo "$$sitelib")
563-PERL_DIRS := $(shell cd perl_modules; find * -name '[A-Z]*' -type d| xargs)
564-PERL_MODS_PAT := *.pm $(PERL_DIRS:%=%/*.pm)
565-PERL_MODS := $(shell cd perl_modules; echo $(PERL_MODS_PAT))
566-
567-# Variables that should be defined above, but need sane defaults:
568-# FIXME: Are those values really sane?
569-HOSTCC ?= $(CC)
570-
571-
572-CFLAGS += -g -Wall $(USB_INCLUDE)
573-
574-%.8: %
575- pod2man --section 8 $^ > $@ || $(RM) $@
576-PERL_SCRIPTS = \
577- dahdi_registration \
578- xpp_sync \
579- lsdahdi \
580- xpp_blink \
581- dahdi_genconf \
582- dahdi_hardware \
583- twinstar \
584- #
585-
586-PERL_MANS = $(PERL_SCRIPTS:%=%.8)
587-
588-ABHEXLOAD_OBJS = astribank_hexload.o hexfile.o pic_loader.o astribank_usb.o mpp_funcs.o debug.o
589-ABTOOL_OBJS = astribank_tool.o astribank_usb.o mpp_funcs.o debug.o
590-ABALLOW_OBJS = astribank_allow.o astribank_usb.o mpp_funcs.o debug.o
591-
592-TARGETS = .perlcheck astribank_is_starting
593-PROG_INSTALL = astribank_is_starting
594-MAN_INSTALL = $(PROG_INSTALL:%=%.8)
595-ifeq (1,$(PBX_USB))
596-TARGETS += fpga_load \
597- astribank_tool \
598- astribank_hexload \
599- astribank_allow \
600- test_parse
601-PROG_INSTALL += fpga_load astribank_tool astribank_hexload astribank_allow
602-endif
603-ifneq (,$(PERLLIBDIR))
604-PROG_INSTALL += $(PERL_SCRIPTS)
605-TARGETS += $(PERL_MANS)
606-endif
607-
608-all: $(TARGETS)
609-
610-docs: $(PERL_MANS)
611-
612-install: all
613- $(INSTALL) -d $(DESTDIR)$(SBINDIR)
614- $(INSTALL) $(PROG_INSTALL) $(DESTDIR)$(SBINDIR)/
615- $(INSTALL) -d $(DESTDIR)$(DATADIR)
616- $(INSTALL) xpp_fxloader astribank_hook $(DESTDIR)$(DATADIR)/
617- $(INSTALL) waitfor_xpds $(DESTDIR)$(DATADIR)/
618- $(INSTALL) -d $(DESTDIR)$(MANDIR)
619- $(INSTALL_DATA) $(MAN_INSTALL) $(DESTDIR)$(MANDIR)/
620- $(INSTALL) -d $(DESTDIR)$(HOTPLUG_USB_DIR)
621- $(INSTALL_DATA) xpp_fxloader.usermap $(DESTDIR)$(HOTPLUG_USB_DIR)/
622- # for backward compatibility and for hotplug users:
623- ln -sf $(DATADIR)/xpp_fxloader $(DESTDIR)$(HOTPLUG_USB_DIR)/
624-ifneq (,$(PERLLIBDIR))
625- $(INSTALL) -d $(DESTDIR)$(PERLLIBDIR)
626- for i in $(PERL_DIRS); \
627- do \
628- $(INSTALL) -d "$(DESTDIR)$(PERLLIBDIR)/$$i"; \
629- done
630- for i in $(PERL_MODS); \
631- do \
632- $(INSTALL_DATA) "perl_modules/$$i" "$(DESTDIR)$(PERLLIBDIR)/$$i"; \
633- done
634-endif
635-
636-fpga_load: fpga_load.o hexfile.o
637-fpga_load: LIBS+=$(EXTRA_LIBS) $(USB_LIB)
638-
639-astribank_hexload: $(ABHEXLOAD_OBJS)
640-astribank_hexload: LIBS+=$(EXTRA_LIBS) $(USB_LIB)
641-
642-astribank_tool: $(ABTOOL_OBJS)
643-astribank_tool: LIBS+=$(EXTRA_LIBS) $(USB_LIB)
644-
645-astribank_allow: $(ABALLOW_OBJS)
646-astribank_allow: LIBS+=$(EXTRA_LIBS) $(USB_LIB)
647-
648-astribank_is_starting: astribank_is_starting.o
649-astribank_is_starting: LIBS+=$(EXTRA_LIBS)
650-
651-fpga_load.o: CFLAGS+=-D_GNU_SOURCE # We use memrchr()
652-
653-test_parse: test_parse.o hexfile.o
654-test_parse: LIBS+=$(EXTRA_LIBS) $(USB_LIB)
655-
656-%: %.o
657- $(CC) $(LDFLAGS) $^ $(LIBS) -o $@
658-
659-.perlcheck: $(PERL_SCRIPTS)
660- for i in $^; do perl -I./perl_modules -c $$i || exit 1; done
661- touch $@
662-
663-clean:
664- $(RM) .depend *.o $(TARGETS)
665-
666-.PHONY: depend
667-depend: .depend
668-.depend: *.c *.h
669- @$(CC) -MM *.c > $@ || rm -f $@
670-
671-include .depend
672
673=== modified file '.version'
674--- .version 2011-03-13 23:45:36 +0000
675+++ .version 2012-12-27 13:34:24 +0000
676@@ -1,1 +1,1 @@
677-2.4.1
678+2.5.0.1
679
680=== modified file 'ChangeLog'
681--- ChangeLog 2011-03-13 23:45:36 +0000
682+++ ChangeLog 2012-12-27 13:34:24 +0000
683@@ -1,3 +1,201 @@
684+2011-09-07 Shaun Ruffell <sruffell@digium.com>
685+
686+ * dahdi-tools version 2.5.0.1 released.
687+
688+2011-09-07 07:11 +0000 [r10185-10188] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
689+
690+ * xpp/waitfor_xpds: xpp: waitfor_xpds: higher and configurable
691+ timeout On several pathological cases we may need to wait more
692+ than 40 seconds. Make that timeout configurable.
693+
694+ * xpp/README.Astribank: README.Astribank: HWEC and build
695+ instructions Signed-off-by: Tzafrir Cohen
696+ <tzafrir.cohen@xorcom.com>
697+
698+ * xpp/perl_modules/Dahdi/Span.pm: xpp: pri_termtype: match complete
699+ SPAN patterns Match complete span patterns, to avoid pattern
700+ 'SPAN/1' from matching e.g. span 12 (SPAN/12). Signed-off-by:
701+ Tzafrir Cohen <tzafrir.cohen@xorcom.com>
702+
703+ * README: Extra README fixes: 'th' and ztcfg Signed-off-by: Tzafrir
704+ Cohen <tzafrir.cohen@xorcom.com>
705+
706+2011-08-05 Shaun Ruffell <sruffell@digium.com>
707+
708+ * dahdi-tools version 2.5.0 released.
709+
710+2011-08-02 17:28 +0000 [r10085-10087] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
711+
712+ * README: Extra README fixes: 'th' and ztcfg Signed-off-by: Tzafrir
713+ Cohen <tzafrir.cohen@xorcom.com>
714+
715+ * README: spelling: ocnfig.status and such Signed-off-by: Tzafrir
716+ Cohen <tzafrir.cohen@xorcom.com>
717+
718+2011-07-21 Shaun Ruffell <sruffell@digium.com>
719+
720+ * dahdi-tools version 2.5.0-rc2 released.
721+
722+2011-07-21 17:29 +0000 [r10071] Russ Meyerriecks <rmeyerreicks@digium.com>
723+
724+ * patlooptest.c: patlooptest: Ignore the first buffered event Fixes
725+ the feature introduced in r9909 that allows patlooptest to
726+ monitor channel events. Patlooptest was reporting events that we
727+ don't care about, prior to reading from the channel. This fix
728+ ignore the first event read on a channel and reports all
729+ subsequent events properly. Signed-off-by: Russ Meyerriecks
730+ <rmeyerriecks@digium.com>
731+
732+2011-07-21 13:40 +0000 [r10068] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
733+
734+ * xpp/astribank_hook: astribank_hook: startup lock and more *
735+ Silently exit right away if user did not set XPP_HOTPLUG_DAHDI. *
736+ Only one Astribank should be allowed to run the startup script: -
737+ Protect that section with a "lock" (symlinking a file). - Sadly
738+ we can't rely on /run and may have to wait for a r/w file-system.
739+ - And thus even this waiting needs to be run in the background as
740+ to not hold udev. Signed-off-by: Tzafrir Cohen
741+ <tzafrir.cohen@xorcom.com>
742+
743+2011-07-12 Shaun Ruffell <sruffell@digium.com>
744+
745+ * dahdi-tools version 2.5.0-rc1 released.
746+
747+2011-07-12 23:01 +0000 [r10040] Shaun Ruffell <sruffell@digium.com>
748+
749+ * xpp/perl_modules/Dahdi/Span.pm: Span.pm: Process the
750+ /proc/dahdi/<x> files atomically. It is possible that the
751+ contents of the proc files can change while the perl modules are
752+ in the processing of processing them. Specifically, if lsdahdi is
753+ called on boot before the channels are configured, the channel
754+ will be "probed" to determine if it's an FXO or FXS channel and
755+ that can result in the output of proc changing. When the size of
756+ proc changes, the script can get confused about where the
757+ beginning of the next line is. This patch reads in the proc file
758+ completely into memory first, and then starts processing each of
759+ the lines. This resolves the "Unrecognized garbage 'INACTIVE)' in
760+ -" that is displayed on boot with the recent trunk of DAHDI.
761+ Signed-off-by: Shaun Ruffell <sruffell@digium.com> Signed-off-by:
762+ Tzafrir Cohen <tzafrir.cohen@xorcom.com>
763+
764+2011-07-11 18:02 +0000 [r10034] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
765+
766+ * xpp/astribank_hexload.c: xpp: astribank_hexload: yes, we
767+ HAVE_OCTASIC Hardwire this for now, as this does not come from
768+ autoconf.
769+
770+2011-07-10 16:25 +0000 [r10030-10032] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
771+
772+ * xpp/astribank_hexload.8, xpp/waitfor_xpds, xpp/README.Astribank,
773+ xpp/echo_loader.h (added), xpp/xpp_fxloader,
774+ xpp/astribank_tool.c, xpp/Makefile, xpp/astribank_allow.c, xpp,
775+ xpp/perl_modules/Dahdi/Xpp/Xpd.pm, xpp/astribank_hexload.c,
776+ xpp/dahdi_registration, xpp/echo_loader.c (added): xpp: support
777+ loading Octasic EC firmware Echo Cancellation firmware is loaded
778+ by xpp/stribank_hexload (Using the oct612x code). *
779+ astribank_hexload: options -O/-o/-A for handling the Octasic echo
780+ cancellation firmware. * astribank_tool: report that. *
781+ xpp_fxloader: Run astribank_hexload, if needed. * dahdi_perl: The
782+ EC module is an extra XPD, but not a "telephony device" and hence
783+ not a span. Deal with that. * waitfor_xpds: may need to wait a
784+ bit longer for firmware loading. Signed-off-by: Tzafrir Cohen
785+ <tzafrir.cohen@xorcom.com>
786+
787+ * xpp/oct612x (added): xpp: A copy of oct612x in dahdi-tools
788+ Include a copy of the oct612x Octasic echo canceller interface to
789+ be used by astribank_hexload to load the echo canceller firmware
790+ to a Xorcom Astribank.
791+
792+2011-07-05 20:13 +0000 [r10026] Shaun Ruffell <sruffell@digium.com>
793+
794+ * system.conf.sample: system.conf.sample: Add note regarding cross
795+ connecting spans on B410P. There is an issue with the hardware on
796+ the B410P that makes it unreliable to connect one of the ports to
797+ another port for testing. Signed-off-by: Shaun Ruffell
798+ <sruffell@digium.com>
799+
800+2011-06-23 17:33 +0000 [r9986] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
801+
802+ * xpp/perl_modules/Dahdi/Xpp.pm: fix registration order for more
803+ than 9 Astribanks The sorting function for SORT_XPPORDER
804+ accidentally sorted the Astribank priorities from the xpp_order
805+ file (/etc/dahdi/xpp_order) lexicographically instead of
806+ numerically, that is: 10 before 2. Signed-off-by: Tzafrir Cohen
807+ <tzafrir.cohen@xorcom.com>
808+
809+2011-06-16 09:35 +0000 [r9979] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
810+
811+ * xpp/dahdi_genconf, xpp/perl_modules/Dahdi/Span.pm: dahdi_genconf:
812+ apply termtype to Digium HA8 BRI Make the pri_termtype setting in
813+ genconf_parameters apply to any BRI/PRI carddeclared as "soft
814+ NT". ATM, this is only the Xorcom E1/T1 device and the Digium HA8
815+ (BRI) module of the TDM card. Signed-off-by: Tzafrir Cohen
816+ <tzafrir.cohen@xorcom.com> Acked-by: Shaun Ruffell
817+ <sruffell@digium.com>
818+
819+2011-06-07 19:44 +0000 [r9975] Kinsey Moore <kmoore@digium.com>
820+
821+ * patgen.c, patlooptest.c, pattest.c: tools: Allow pattern tools to
822+ access channels above the device file limit pattest and patgen
823+ already had this capability, but there were cases in which they
824+ would act unexpectedly. Now, if the name specified is not a
825+ character device file, it will be treated as a channel number if
826+ possible. Acked-by: Shaun Ruffell <sruffell@digium.com>
827+
828+2011-06-07 10:28 +0000 [r9973] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
829+
830+ * xpp/astribank_hexload.c: xpp: this is the right place for
831+ astribank_close()
832+
833+2011-05-24 15:14 +0000 [r9919-9920] Shaun Ruffell <sruffell@digium.com>
834+
835+ * zonedata.c: zonedata: Add support for United Arab Emirates. This
836+ was provided for interop with analog lines provided by Etisilat.
837+ DAHDI-796. Signed-off-by: Shaun Ruffell <sruffell@digium.com>
838+
839+ * zonedata.c: zonedata: Add support for Costa Rica. Add in the
840+ costa Rica zonedata. (closes issue #19069) Reported by:
841+ desafiocostarica Signed-off-by: Shaun Ruffell
842+ <sruffell@digium.com>
843+
844+2011-04-18 21:20 +0000 [r9909] Kinsey Moore <kmoore@digium.com>
845+
846+ * patlooptest.c: tools: Allow patlooptest to activate and handle
847+ buffer events The new buffer events code introduced in revision
848+ 9905 gives userspace processes an interface to activate detection
849+ of buffer over and underflows. This change allows patlooptest to
850+ take advantage of that feature to better inform users of the
851+ cause of pattern errors. Acked-by: Shaun Ruffell
852+ <sruffell@digium.com> (original patch by Matt Fredrickson)
853+
854+2011-03-16 14:32 +0000 [r9830-9831] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
855+
856+ * xpp/astribank_is_starting.c: astribank_is_starting.c: do have
857+ timeout (typo) Due to a typo the option for not using a timeout
858+ was always used. Regression since r9426.
859+
860+ * dahdi.init: dahdi.init: LSB short description
861+
862+2011-03-10 18:48 +0000 [r9825] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
863+
864+ * xpp/xtalk/xtalk.c (added), xpp/astribank_hexload.8, xpp/mpptalk.c
865+ (added), xpp/xtalk/xusb.h (added), xpp/xtalk/debug.c (added),
866+ xpp/xpp_fxloader, xpp/xtalk/xtalk.h (added),
867+ xpp/astribank_tool.c, xpp/xtalk/xtalk_defs.h (added),
868+ xpp/astribank_allow.c, xpp/mpptalk.h (added), xpp/mpptalk_defs.h
869+ (added), xpp/xtalk/debug.h (added), xpp/astribank_hexload.c,
870+ xpp/xtalk/xlist.c (added), xpp/debug.c (removed),
871+ xpp/astribank_usb.c, xpp/mpp_funcs.c (removed), xpp/debug.h
872+ (removed), xpp/xtalk/xlist.h (added), xpp/Makefile,
873+ xpp/astribank_usb.h, xpp/mpp_funcs.h (removed),
874+ xpp/astribank_tool.8, xpp/astribank_allow.8, xpp/mpp.h,
875+ xpp/pic_loader.c, xpp/xtalk (added), xpp/xtalk/xusb.c (added):
876+ xpp: use 'xtalk' for the USB access code * Move most of the USB
877+ access code from xpp/ to xpp/xtalk/ . * astribank_tool and such
878+ tools can now use a shorter -D mmm/nnn rather than a full path.
879+ Signed-off-by: Oron Peled <oron.peled@xorcom.com> Acked-by:
880+ Tzafrir Cohen <tzafrir.cohen@xorcom.com>
881+
882 2011-03-03 Shaun Ruffell <sruffell@digium.com>
883
884 * dahdi-tools version 2.4.1 released.
885
886=== modified file 'Makefile'
887--- Makefile 2011-03-13 23:45:36 +0000
888+++ Makefile 2012-12-27 13:34:24 +0000
889@@ -270,6 +270,12 @@
890 $(MAKE) -C $$dir install; \
891 done
892
893+install-tests: tests
894+ifneq (,$(TEST_BINS))
895+ install -d $(DESTDIR)$(BIN_DIR)
896+ install $(TEST_BINS) $(DESTDIR)$(BIN_DIR)/
897+endif
898+
899 config:
900 ifneq (,$(COPY_INITD))
901 $(COPY_INITD)
902
903=== modified file 'README'
904--- README 2011-03-13 23:45:36 +0000
905+++ README 2012-12-27 13:34:24 +0000
906@@ -1,10 +1,10 @@
907 DAHDI Telephony Interface Driver
908 =================================
909 Asterisk Development Team <asteriskteam@digium.com>
910-$Revision: 7792 $, $Date: 2010-01-09 06:23:55 -0600 (Sat, 09 Jan 2010) $
911+$Revision: 10185 $, $Date: 2011-09-07 02:09:47 -0500 (Wed, 07 Sep 2011) $
912
913 DAHDI stands for Digium Asterisk Hardware Device Interface. This
914-package contains the userspace tools to configure the kernel modules
915+package contains the user-space tools to configure the kernel modules
916 included in the package dahdi-linux.
917
918 Build Requirements
919@@ -14,7 +14,7 @@
920
921 Build System
922 ~~~~~~~~~~~~
923-gcc and friends. Generally you will need to install the package gcc.
924+GCC and friends. Generally you will need to install the package gcc.
925 There may be cases where you will need a specific version of gcc to build
926 kernel modules.
927
928@@ -51,7 +51,7 @@
929 parts of DAHDI:
930
931 . Build targets:
932- - make: Build DAHDI userspace programs. partial
933+ - make: Build DAHDI user-space programs. partial
934 targets of it:
935 * make 'utilname': builds 'utilname' alone (e.g: `make dahdi_diag`)
936 * make utils: Build libtonezone.
937@@ -66,7 +66,7 @@
938 ^^^^^^^^^^^^^^^^^^^^^^^^^
939 The following may be useful when testing the package or when preparing a
940 package for a binary distribution (such as an rpm package) installing
941-onto a subtree rather than on th real system.
942+onto a subtree rather than on the real system.
943
944 make install DESTDIR=targetdir
945
946@@ -89,7 +89,7 @@
947 To re-run ./configure with the same parameters it was run with last
948 time, use:
949
950- ./ocnfig.status --recheck
951+ ./config.status --recheck
952
953
954 Configuration
955@@ -106,7 +106,9 @@
956 A sample annotated system.conf is included in this directory and
957 installed by default. Edit it to suit your configuration. Alternatively
958 use the script dahdi_genconf to generate one that should work with your
959-system.
960+system. Note that while dahdi_genconf will generate a working configuration,
961+it will not automatically detect hardware echo cancellation modules. These
962+will have to be enabled manually in system.conf.
963
964 /etc/dahdi/init.conf
965 ~~~~~~~~~~~~~~~~~~~~
966@@ -136,7 +138,7 @@
967 Tonezones
968 ~~~~~~~~~
969 The file zonedata.c contains the information about the tone zones used
970-in libtonezone (and hence also in ztcfg). Here is a list of those zones:
971+in libtonezone (and hence also in dahdi_cfg). Here is a list of those zones:
972
973 include::tonezones.txt[]
974
975@@ -144,14 +146,14 @@
976 DAHDI PERL modules
977 ~~~~~~~~~~~~~~~~~~
978 The directory xpp has, in addition to helper utilities for the
979-Xorcom Astribank, a collection of perl modules to provide information
980-related to DAHDI. The perl modules themselves are under xpp/perl_modules/ .
981+Xorcom Astribank, a collection of PERL modules to provide information
982+related to DAHDI. The PERL modules themselves are under xpp/perl_modules/ .
983 In xpp/ there are several utilities that use those modules:
984 - xpp-specific: dahdi_registration, xpp_sync, xpp_blink .
985 - General: lsdahdi, dahdi_genconf, dahdi_hardware, dahdi_drivers
986
987-The DAHDI perl modules will currently only be automatically installed if you
988-happen to install the xpp directory. Those utilities require the perl modules
989+The DAHDI PERL modules will currently only be automatically installed if you
990+happen to install the xpp directory. Those utilities require the PERL modules
991 to be installed, however they will also look for them in the directory
992 perl_modules, and thus can be run directly from the DAHDI source tree. For
993 example:
994@@ -165,7 +167,7 @@
995 perldoc ./xpp/lsdahdi
996
997 Some of them are specific for the Xorcom Astribank and described in its
998-docuemntation. the others are:
999+documentation. the others are:
1000
1001 lsdahdi::
1002 A somewhat glorified `cat /proc/dahdi/*`.
1003@@ -174,9 +176,9 @@
1004 /etc/dahdi/genconf_parameters (replaces genzaptelconf as well).
1005 dahdi_drivers::
1006 A two-liner script (not installed by default) that simply returns the
1007- modules that should be modprobed on this system.
1008+ modules that should be modprobe-d on this system.
1009 dahdi_hardware::
1010- Uses the information from sysfs and its own knowledge to show
1011+ Uses the information from SysFS and its own knowledge to show
1012 what PCI/USB DAHDI hardware is connected and if it is currently used
1013 by a driver. Shows also some more information for Astribanks from
1014 /proc/xpp .
1015@@ -184,8 +186,8 @@
1016
1017 PPP Support
1018 ~~~~~~~~~~~
1019-DAHDI digital cards can provide data channels through ppp as
1020-point-to-point connections. This requires a plugin to the ppp daemon
1021+DAHDI digital cards can provide data channels through PPP as
1022+point-to-point connections. This requires a plug-in to the PPP daemon
1023 that is included in the ppp/ subdirectory. To install it:
1024
1025 1. Make sure you have the PPP source / headers installed. On Debian:
1026
1027=== modified file 'UPGRADE.txt'
1028--- UPGRADE.txt 2009-06-01 08:23:38 +0000
1029+++ UPGRADE.txt 2012-12-27 13:34:24 +0000
1030@@ -62,10 +62,9 @@
1031 canceler to be used on the system's channels can be configured using
1032 the dahdi_cfg tool from the dahdi-tools package.
1033
1034-IMPORTANT: It is *mandatory* to configure an echo canceler for the
1035-system's channels using dahdi_cfg unless the interface cards in use
1036-have echo canceler modules available and enabled. There is *no*
1037-default software echo canceler with DAHDI. See
1038+IMPORTANT: It is *mandatory* to configure an echo canceler for the system's
1039+channels using dahdi_cfg. There is *no* default echo canceler with DAHDI, not
1040+even hardware echo cancellation modules. See
1041 <<_echo_cancellers,section on echo cancellers>> in sample system.conf.
1042
1043
1044
1045=== modified file 'configure.ac'
1046--- configure.ac 2011-03-13 23:45:36 +0000
1047+++ configure.ac 2012-12-27 13:34:24 +0000
1048@@ -12,7 +12,7 @@
1049 AC_CONFIG_SRCDIR([dahdi_cfg.c])
1050
1051 AC_COPYRIGHT("dahdi-tools")
1052-AC_REVISION($Revision: 9736 $)
1053+AC_REVISION($Revision: 9426 $)
1054
1055 ac_default_prefix=/usr
1056 if test ${sysconfdir} = '${prefix}/etc'; then
1057
1058=== removed file 'dahdi-tools-2.4.1-summary.html'
1059--- dahdi-tools-2.4.1-summary.html 2011-03-13 23:45:36 +0000
1060+++ dahdi-tools-2.4.1-summary.html 1970-01-01 00:00:00 +0000
1061@@ -1,82 +0,0 @@
1062-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
1063-<html xmlns="http://www.w3.org/1999/xhtml">
1064-<head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>Release Summary - dahdi-tools-2.4.1</title></head>
1065-<body>
1066-<h1 align="center"><a name="top">Release Summary</a></h1>
1067-<h3 align="center">dahdi-tools-2.4.1</h3>
1068-<h3 align="center">Date: 2011-03-03</h3>
1069-<h3 align="center">&lt;asteriskteam@digium.com&gt;</h3>
1070-<hr/>
1071-<h2 align="center">Table of Contents</h2>
1072-<ol>
1073- <li><a href="#summary">Summary</a></li>
1074- <li><a href="#contributors">Contributors</a></li>
1075- <li><a href="#issues">Closed Issues</a></li>
1076- <li><a href="#commits">Other Changes</a></li>
1077- <li><a href="#diffstat">Diffstat</a></li>
1078-</ol>
1079-<hr/>
1080-<a name="summary"><h2 align="center">Summary</h2></a>
1081-<center><a href="#top">[Back to Top]</a></center><br/><p>This release includes only bug fixes. The changes included were made only to address problems that have been identified in this release series. Users should be able to safely upgrade to this version if this release series is already in use. Users considering upgrading from a previous release series are strongly encouraged to review the UPGRADE.txt document as well as the CHANGES document for information about upgrading to this release series.</p>
1082-<p>The data in this summary reflects changes that have been made since the previous release, dahdi-tools-2.4.0.</p>
1083-<hr/>
1084-<a name="contributors"><h2 align="center">Contributors</h2></a>
1085-<center><a href="#top">[Back to Top]</a></center><br/><p>This table lists the people who have submitted code, those that have tested patches, as well as those that reported issues on the issue tracker that were resolved in this release. For coders, the number is how many of their patches (of any size) were committed into this release. For testers, the number is the number of times their name was listed as assisting with testing a patch. Finally, for reporters, the number is the number of issues that they reported that were closed by commits that went into this release.</p>
1086-<table width="100%" border="0">
1087-<tr>
1088-<td width="33%"><h3>Coders</h3></td>
1089-<td width="33%"><h3>Testers</h3></td>
1090-<td width="33%"><h3>Reporters</h3></td>
1091-</tr>
1092-<tr valign="top">
1093-<td>
1094-11 tzafrir<br/>
1095-1 alfredtang<br/>
1096-</td>
1097-<td>
1098-</td>
1099-<td>
1100-1 abelbeck<br/>
1101-1 alfredtang<br/>
1102-</td>
1103-</tr>
1104-</table>
1105-<hr/>
1106-<a name="issues"><h2 align="center">Closed Issues</h2></a>
1107-<center><a href="#top">[Back to Top]</a></center><br/><p>This is a list of all issues from the issue tracker that were closed by changes that went into this release.</p>
1108-<h3>Category: General</h3><br/>
1109-<a href="https://issues.asterisk.org/view.php?id=16783">#16783</a>: [patch] DAHDI 2.2.1, XPP and astribank_is_starting.c uses semtimedop() which is not supported in our uClibc.<br/>
1110-Revision: <a href="http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9736">9736</a><br/>
1111-Reporter: abelbeck<br/>
1112-Coders: tzafrir<br/>
1113-<br/>
1114-<h3>Category: NewFeature</h3><br/>
1115-<a href="https://issues.asterisk.org/view.php?id=17744">#17744</a>: [patch] add macao to tone zone data<br/>
1116-Revision: <a href="http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9735">9735</a><br/>
1117-Reporter: alfredtang<br/>
1118-Coders: alfredtang<br/>
1119-<br/>
1120-<hr/>
1121-<a name="commits"><h2 align="center">Commits Not Associated with an Issue</h2></a>
1122-<center><a href="#top">[Back to Top]</a></center><br/><p>This is a list of all changes that went into this release that did not directly close an issue from the issue tracker. The commits may have been marked as being related to an issue. If that is the case, the issue numbers are listed here, as well.</p>
1123-<table width="100%" border="1">
1124-<tr><td><b>Revision</b></td><td><b>Author</b></td><td><b>Summary</b></td><td><b>Issues Referenced</b></td></tr><tr><td><a href="http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9733">9733</a></td><td>tzafrir</td><td>Branch dahdi-tools 2.4</td>
1125-<td></td></tr><tr><td><a href="http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9734">9734</a></td><td>tzafrir</td><td>svnmerge stuff</td>
1126-<td></td></tr><tr><td><a href="http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9737">9737</a></td><td>tzafrir</td><td>Dahdi::Hardware: Support beroNet BN4S0e PCI Express card</td>
1127-<td></td></tr><tr><td><a href="http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9738">9738</a></td><td>tzafrir</td><td>Fixed up the loss of crc4-multiframe alignment logic</td>
1128-<td></td></tr><tr><td><a href="http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9739">9739</a></td><td>tzafrir</td><td>dahdi_scan: Show CAS framing on the framing line.</td>
1129-<td></td></tr><tr><td><a href="http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9740">9740</a></td><td>tzafrir</td><td>xpp_fxloader: Don't try to load FPGA firmware twice</td>
1130-<td></td></tr><tr><td><a href="http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9741">9741</a></td><td>tzafrir</td><td>dahdi_genconf: Don't generate configurations that use channel 16 on E1 CAS</td>
1131-<td></td></tr><tr><td><a href="http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9742">9742</a></td><td>tzafrir</td><td>dahdi-perl: left-over $span->xpd</td>
1132-<td></td></tr><tr><td><a href="http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9743">9743</a></td><td>tzafrir</td><td>dahdi-perl: fix xpp driver in dahdi_hardware</td>
1133-<td></td></tr><tr><td><a href="http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9744">9744</a></td><td>tzafrir</td><td>dahdi-perl: more left-over $span->xpd</td>
1134-<td></td></tr></table>
1135-<hr/>
1136-<a name="diffstat"><h2 align="center">Diffstat Results</h2></a>
1137-<center><a href="#top">[Back to Top]</a></center><br/><p>This is a summary of the changes to the source code that went into this release that was generated using the diffstat utility.</p>
1138-<pre>
1139-0 files changed
1140-</pre><br/>
1141-<hr/>
1142-</body>
1143-</html>
1144
1145=== removed file 'dahdi-tools-2.4.1-summary.txt'
1146--- dahdi-tools-2.4.1-summary.txt 2011-03-13 23:45:36 +0000
1147+++ dahdi-tools-2.4.1-summary.txt 1970-01-01 00:00:00 +0000
1148@@ -1,162 +0,0 @@
1149- Release Summary
1150-
1151- dahdi-tools-2.4.1
1152-
1153- Date: 2011-03-03
1154-
1155- <asteriskteam@digium.com>
1156-
1157- --------------------------------------------------------------------------
1158-
1159- Table of Contents
1160-
1161-  1. [1]Summary
1162-  2. [2]Contributors
1163-  3. [3]Closed Issues
1164-  4. [4]Other Changes
1165-  5. [5]Diffstat
1166-
1167- --------------------------------------------------------------------------
1168-
1169- Summary
1170-
1171- [6][Back to Top]
1172-
1173- This release includes only bug fixes. The changes included were made only
1174- to address problems that have been identified in this release series.
1175- Users should be able to safely upgrade to this version if this release
1176- series is already in use. Users considering upgrading from a previous
1177- release series are strongly encouraged to review the UPGRADE.txt document
1178- as well as the CHANGES document for information about upgrading to this
1179- release series.
1180-
1181- The data in this summary reflects changes that have been made since the
1182- previous release, dahdi-tools-2.4.0.
1183-
1184- --------------------------------------------------------------------------
1185-
1186- Contributors
1187-
1188- [7][Back to Top]
1189-
1190- This table lists the people who have submitted code, those that have
1191- tested patches, as well as those that reported issues on the issue tracker
1192- that were resolved in this release. For coders, the number is how many of
1193- their patches (of any size) were committed into this release. For testers,
1194- the number is the number of times their name was listed as assisting with
1195- testing a patch. Finally, for reporters, the number is the number of
1196- issues that they reported that were closed by commits that went into this
1197- release.
1198-
1199- Coders Testers Reporters
1200- 11 tzafrir 1 abelbeck
1201- 1 alfredtang 1 alfredtang
1202-
1203- --------------------------------------------------------------------------
1204-
1205- Closed Issues
1206-
1207- [8][Back to Top]
1208-
1209- This is a list of all issues from the issue tracker that were closed by
1210- changes that went into this release.
1211-
1212- Category: General
1213-
1214- [9]#16783: [patch] DAHDI 2.2.1, XPP and astribank_is_starting.c uses
1215- semtimedop() which is not supported in our uClibc.
1216- Revision: [10]9736
1217- Reporter: abelbeck
1218- Coders: tzafrir
1219-
1220- Category: NewFeature
1221-
1222- [11]#17744: [patch] add macao to tone zone data
1223- Revision: [12]9735
1224- Reporter: alfredtang
1225- Coders: alfredtang
1226-
1227- --------------------------------------------------------------------------
1228-
1229- Commits Not Associated with an Issue
1230-
1231- [13][Back to Top]
1232-
1233- This is a list of all changes that went into this release that did not
1234- directly close an issue from the issue tracker. The commits may have been
1235- marked as being related to an issue. If that is the case, the issue
1236- numbers are listed here, as well.
1237-
1238- +------------------------------------------------------------------------+
1239- | Revision | Author | Summary | Issues |
1240- | | | | Referenced |
1241- |----------+---------+--------------------------------------+------------|
1242- | [14]9733 | tzafrir | Branch dahdi-tools 2.4 | |
1243- |----------+---------+--------------------------------------+------------|
1244- | [15]9734 | tzafrir | svnmerge stuff | |
1245- |----------+---------+--------------------------------------+------------|
1246- | [16]9737 | tzafrir | Dahdi::Hardware: Support beroNet | |
1247- | | | BN4S0e PCI Express card | |
1248- |----------+---------+--------------------------------------+------------|
1249- | [17]9738 | tzafrir | Fixed up the loss of crc4-multiframe | |
1250- | | | alignment logic | |
1251- |----------+---------+--------------------------------------+------------|
1252- | [18]9739 | tzafrir | dahdi_scan: Show CAS framing on the | |
1253- | | | framing line. | |
1254- |----------+---------+--------------------------------------+------------|
1255- | [19]9740 | tzafrir | xpp_fxloader: Don't try to load FPGA | |
1256- | | | firmware twice | |
1257- |----------+---------+--------------------------------------+------------|
1258- | | | dahdi_genconf: Don't generate | |
1259- | [20]9741 | tzafrir | configurations that use channel 16 | |
1260- | | | on E1 CAS | |
1261- |----------+---------+--------------------------------------+------------|
1262- | [21]9742 | tzafrir | dahdi-perl: left-over $span->xpd | |
1263- |----------+---------+--------------------------------------+------------|
1264- | [22]9743 | tzafrir | dahdi-perl: fix xpp driver in | |
1265- | | | dahdi_hardware | |
1266- |----------+---------+--------------------------------------+------------|
1267- | [23]9744 | tzafrir | dahdi-perl: more left-over | |
1268- | | | $span->xpd | |
1269- +------------------------------------------------------------------------+
1270-
1271- --------------------------------------------------------------------------
1272-
1273- Diffstat Results
1274-
1275- [24][Back to Top]
1276-
1277- This is a summary of the changes to the source code that went into this
1278- release that was generated using the diffstat utility.
1279-
1280- 0 files changed
1281-
1282- --------------------------------------------------------------------------
1283-
1284-References
1285-
1286- Visible links
1287- 1. file:///home/sruffell/repotools/dahdi-tools-2.4.1-summary.html#summary
1288- 2. file:///home/sruffell/repotools/dahdi-tools-2.4.1-summary.html#contributors
1289- 3. file:///home/sruffell/repotools/dahdi-tools-2.4.1-summary.html#issues
1290- 4. file:///home/sruffell/repotools/dahdi-tools-2.4.1-summary.html#commits
1291- 5. file:///home/sruffell/repotools/dahdi-tools-2.4.1-summary.html#diffstat
1292- 6. file:///home/sruffell/repotools/dahdi-tools-2.4.1-summary.html#top
1293- 7. file:///home/sruffell/repotools/dahdi-tools-2.4.1-summary.html#top
1294- 8. file:///home/sruffell/repotools/dahdi-tools-2.4.1-summary.html#top
1295- 9. https://issues.asterisk.org/view.php?id=16783
1296- 10. http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9736
1297- 11. https://issues.asterisk.org/view.php?id=17744
1298- 12. http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9735
1299- 13. file:///home/sruffell/repotools/dahdi-tools-2.4.1-summary.html#top
1300- 14. http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9733
1301- 15. http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9734
1302- 16. http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9737
1303- 17. http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9738
1304- 18. http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9739
1305- 19. http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9740
1306- 20. http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9741
1307- 21. http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9742
1308- 22. http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9743
1309- 23. http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9744
1310- 24. file:///home/sruffell/repotools/dahdi-tools-2.4.1-summary.html#top
1311
1312=== modified file 'dahdi.init'
1313--- dahdi.init 2011-03-13 23:45:36 +0000
1314+++ dahdi.init 2012-12-27 13:34:24 +0000
1315@@ -16,6 +16,7 @@
1316 # Should-Stop: $network $syslog
1317 # Default-Start: 2 3 4 5
1318 # Default-Stop: 0 1 6
1319+# Short-Description: DAHDI kernel modules
1320 # Description: dahdi - load and configure DAHDI modules
1321 ### END INIT INFO
1322
1323@@ -39,7 +40,7 @@
1324
1325 # A list of modules to unload when stopping.
1326 # All of their dependencies will be unloaded as well.
1327-DAHDI_UNLOAD_MODULES="dahdi echo"
1328+DAHDI_UNLOAD_MODULES="dahdi"
1329
1330 #
1331 # Determine which kind of configuration we're using
1332@@ -258,11 +259,6 @@
1333
1334 xpp_startup
1335
1336- if [ ! -e /proc/dahdi/1 ]; then
1337- echo "No hardware timing source found in /proc/dahdi, loading dahdi_dummy"
1338- modprobe dahdi_dummy 2> /dev/null
1339- fi
1340-
1341 if [ $system = debian ]; then
1342 echo -n "Running dahdi_cfg: "
1343 $DAHDI_CFG_CMD 2> /dev/null && echo -n "done"
1344
1345=== modified file 'dahdi_cfg.c'
1346--- dahdi_cfg.c 2011-03-13 23:45:36 +0000
1347+++ dahdi_cfg.c 2012-12-27 13:34:24 +0000
1348@@ -176,16 +176,6 @@
1349 }
1350 }
1351
1352-int ind_ioctl(int channo, int fd, int op, void *data)
1353-{
1354- struct dahdi_indirect_data ind;
1355-
1356- ind.chan = channo;
1357- ind.op = op;
1358- ind.data = data;
1359- return ioctl(fd, DAHDI_INDIRECT, &ind);
1360-}
1361-
1362 static void clear_fields()
1363 {
1364
1365@@ -1091,6 +1081,7 @@
1366 int res = 0;
1367 int x,i,n;
1368 struct dahdi_radio_param p;
1369+ int chanfd;
1370
1371 toneindex = 1;
1372 bzero(chans, sizeof(chans));
1373@@ -1099,8 +1090,21 @@
1374 return -1;
1375 for (x=1;x<DAHDI_MAX_CHANNELS;x++) {
1376 if (chans[x]) {
1377+ const char *CHANNEL_FILENAME = "/dev/dahdi/channel";
1378+ chanfd = open(CHANNEL_FILENAME, O_RDWR);
1379+ if (-1 == chanfd) {
1380+ error("Failed to open '%s'.\n", CHANNEL_FILENAME);
1381+ exit(-1);
1382+ }
1383+
1384+ res = ioctl(chanfd, DAHDI_SPECIFY, &x);
1385+ if (res) {
1386+ error("Failed to open channel %d.\n", x);
1387+ close(chanfd);
1388+ continue;
1389+ }
1390 p.radpar = DAHDI_RADPAR_NUMTONES;
1391- if (ind_ioctl(x,fd,DAHDI_RADIO_GETPARAM,&p) == -1)
1392+ if (ioctl(chanfd,DAHDI_RADIO_GETPARAM,&p) == -1)
1393 n = 0;
1394 else
1395 n = p.data;
1396@@ -1108,7 +1112,7 @@
1397 if (n)
1398 {
1399 p.radpar = DAHDI_RADPAR_INITTONE;
1400- if (ind_ioctl(x,fd,DAHDI_RADIO_SETPARAM,&p) == -1) {
1401+ if (ioctl(chanfd,DAHDI_RADIO_SETPARAM,&p) == -1) {
1402 error("Cannot init tones for channel %d\n",x);
1403 }
1404 if (!rxtones[0]) for(i = 1; i <= n; i++)
1405@@ -1118,7 +1122,7 @@
1406 p.radpar = DAHDI_RADPAR_RXTONE;
1407 p.index = i;
1408 p.data = rxtones[i];
1409- if (ind_ioctl(x,fd,DAHDI_RADIO_SETPARAM,&p) == -1)
1410+ if (ioctl(chanfd,DAHDI_RADIO_SETPARAM,&p) == -1)
1411 error("Cannot set rxtone on channel %d\n",x);
1412 }
1413 if (rxtags[i])
1414@@ -1126,7 +1130,7 @@
1415 p.radpar = DAHDI_RADPAR_RXTONECLASS;
1416 p.index = i;
1417 p.data = rxtags[i];
1418- if (ind_ioctl(x,fd,DAHDI_RADIO_SETPARAM,&p) == -1)
1419+ if (ioctl(chanfd,DAHDI_RADIO_SETPARAM,&p) == -1)
1420 error("Cannot set rxtag on channel %d\n",x);
1421 }
1422 if (txtones[i])
1423@@ -1134,7 +1138,7 @@
1424 p.radpar = DAHDI_RADPAR_TXTONE;
1425 p.index = i;
1426 p.data = txtones[i];
1427- if (ind_ioctl(x,fd,DAHDI_RADIO_SETPARAM,&p) == -1)
1428+ if (ioctl(chanfd,DAHDI_RADIO_SETPARAM,&p) == -1)
1429 error("Cannot set txtone on channel %d\n",x);
1430 }
1431 } else { /* if we may have DCS receive */
1432@@ -1143,7 +1147,7 @@
1433 p.radpar = DAHDI_RADPAR_RXTONE;
1434 p.index = 0;
1435 p.data = rxtones[0];
1436- if (ind_ioctl(x,fd,DAHDI_RADIO_SETPARAM,&p) == -1)
1437+ if (ioctl(chanfd,DAHDI_RADIO_SETPARAM,&p) == -1)
1438 error("Cannot set DCS rxtone on channel %d\n",x);
1439 }
1440 }
1441@@ -1152,7 +1156,7 @@
1442 p.radpar = DAHDI_RADPAR_TXTONE;
1443 p.index = 0;
1444 p.data = txtones[0];
1445- if (ind_ioctl(x,fd,DAHDI_RADIO_SETPARAM,&p) == -1)
1446+ if (ioctl(chanfd,DAHDI_RADIO_SETPARAM,&p) == -1)
1447 error("Cannot set default txtone on channel %d\n",x);
1448 }
1449 }
1450@@ -1160,41 +1164,43 @@
1451 {
1452 p.radpar = DAHDI_RADPAR_DEBOUNCETIME;
1453 p.data = debouncetime;
1454- if (ind_ioctl(x,fd,DAHDI_RADIO_SETPARAM,&p) == -1)
1455+ if (ioctl(chanfd,DAHDI_RADIO_SETPARAM,&p) == -1)
1456 error("Cannot set debouncetime on channel %d\n",x);
1457 }
1458 if (bursttime)
1459 {
1460 p.radpar = DAHDI_RADPAR_BURSTTIME;
1461 p.data = bursttime;
1462- if (ind_ioctl(x,fd,DAHDI_RADIO_SETPARAM,&p) == -1)
1463+ if (ioctl(chanfd,DAHDI_RADIO_SETPARAM,&p) == -1)
1464 error("Cannot set bursttime on channel %d\n",x);
1465 }
1466 p.radpar = DAHDI_RADPAR_DEEMP;
1467 p.data = deemp;
1468- ind_ioctl(x,fd,DAHDI_RADIO_SETPARAM,&p);
1469+ ioctl(chanfd,DAHDI_RADIO_SETPARAM,&p);
1470 p.radpar = DAHDI_RADPAR_PREEMP;
1471 p.data = preemp;
1472- ind_ioctl(x,fd,DAHDI_RADIO_SETPARAM,&p);
1473+ ioctl(chanfd,DAHDI_RADIO_SETPARAM,&p);
1474 p.radpar = DAHDI_RADPAR_TXGAIN;
1475 p.data = txgain;
1476- ind_ioctl(x,fd,DAHDI_RADIO_SETPARAM,&p);
1477+ ioctl(chanfd,DAHDI_RADIO_SETPARAM,&p);
1478 p.radpar = DAHDI_RADPAR_RXGAIN;
1479 p.data = rxgain;
1480- ind_ioctl(x,fd,DAHDI_RADIO_SETPARAM,&p);
1481+ ioctl(chanfd,DAHDI_RADIO_SETPARAM,&p);
1482 p.radpar = DAHDI_RADPAR_INVERTCOR;
1483 p.data = invertcor;
1484- ind_ioctl(x,fd,DAHDI_RADIO_SETPARAM,&p);
1485+ ioctl(chanfd,DAHDI_RADIO_SETPARAM,&p);
1486 p.radpar = DAHDI_RADPAR_EXTRXTONE;
1487 p.data = exttone;
1488- ind_ioctl(x,fd,DAHDI_RADIO_SETPARAM,&p);
1489+ ioctl(chanfd,DAHDI_RADIO_SETPARAM,&p);
1490 if (corthresh)
1491 {
1492 p.radpar = DAHDI_RADPAR_CORTHRESH;
1493 p.data = corthresh - 1;
1494- if (ind_ioctl(x,fd,DAHDI_RADIO_SETPARAM,&p) == -1)
1495+ if (ioctl(chanfd,DAHDI_RADIO_SETPARAM,&p) == -1)
1496 error("Cannot set corthresh on channel %d\n",x);
1497 }
1498+
1499+ close(chanfd);
1500 }
1501 }
1502 clear_fields();
1503
1504=== modified file 'dahdi_maint.c'
1505--- dahdi_maint.c 2011-03-13 23:45:36 +0000
1506+++ dahdi_maint.c 2012-12-27 13:34:24 +0000
1507@@ -56,7 +56,9 @@
1508 "networkpayload|off>\n"\
1509 "\t\tlocalhost - loop back towards host\n"\
1510 "\t\tnetworkline - network line loopback\n"\
1511- "\t\tnetworkpayload - network payload loopback\n");
1512+ "\t\tnetworkpayload - network payload loopback\n"\
1513+ "\t\tloopup - transmit loopup signal\n"\
1514+ "\t\tloopdown - transmit loopdown signal\n");
1515 fprintf(stderr, " -i, --insert <fas|multi|crc|cas|prbs|bipolar>"\
1516 "\n\t\tinsert an error of a specific type\n");
1517 fprintf(stderr, " -r, --reset "\
1518@@ -142,13 +144,11 @@
1519 printf("Error counters not supported by the driver"\
1520 " for this span\n");
1521 printf("Span %d:\n", span);
1522- printf(">FEC : %d:\n", s.fecount);
1523- printf(">CEC : %d:\n", s.crc4count);
1524- printf(">CVC : %d:\n", s.cvcount);
1525- printf(">EBC : %d:\n", s.ebitcount);
1526- printf(">BEC : %d:\n", s.becount);
1527- printf(">PRBS: %d:\n", s.prbs);
1528- printf(">GES : %d:\n", s.errsec);
1529+ printf(">Framing Errors : %d:\n", s.fecount);
1530+ printf(">CRC Errors : %d:\n", s.crc4count);
1531+ printf(">Code Violations : %d:\n", s.cvcount);
1532+ printf(">E-bit Count : %d:\n", s.ebitcount);
1533+ printf(">General Errored Seconds : %d:\n", s.errsec);
1534
1535 return 0;
1536 }
1537@@ -165,6 +165,12 @@
1538 } else if (!strcasecmp(larg, "networkpayload")) {
1539 printf("Span %d: network payload loopback ON\n", span);
1540 m.command = DAHDI_MAINT_NETWORKPAYLOADLOOP;
1541+ } else if (!strcasecmp(larg, "loopup")) {
1542+ printf("Span %d: transmitting loopup signal\n", span);
1543+ m.command = DAHDI_MAINT_LOOPUP;
1544+ } else if (!strcasecmp(larg, "loopdown")) {
1545+ printf("Span %d: transmitting loopdown signal\n", span);
1546+ m.command = DAHDI_MAINT_LOOPDOWN;
1547 } else if (!strcasecmp(larg, "off")) {
1548 printf("Span %d: loopback OFF\n", span);
1549 m.command = DAHDI_MAINT_NONE;
1550@@ -173,9 +179,21 @@
1551 }
1552
1553 res = ioctl(ctl, DAHDI_MAINT, &m);
1554- if (res)
1555+ if (res) {
1556 printf("This type of looping not supported by the"\
1557 " driver for this span\n");
1558+ return 1;
1559+ }
1560+
1561+ /* Leave the loopup/loopdown signal on the line for
1562+ * five seconds according to AT&T TR 54016
1563+ */
1564+ if ((m.command == DAHDI_MAINT_LOOPUP) ||
1565+ (m.command == DAHDI_MAINT_LOOPDOWN)) {
1566+ sleep(5);
1567+ m.command = DAHDI_MAINT_NONE;
1568+ ioctl(ctl, DAHDI_MAINT, &m);
1569+ }
1570 }
1571
1572 if (iflag) {
1573
1574=== modified file 'debian/changelog'
1575--- debian/changelog 2012-02-29 08:29:15 +0000
1576+++ debian/changelog 2012-12-27 13:34:24 +0000
1577@@ -1,3 +1,40 @@
1578+dahdi-tools (1:2.5.0.1-2ubuntu1) raring; urgency=low
1579+
1580+ * Merge from Debian unstable. Remaining changes:
1581+ - Bug Fix: If linux-headers are not installed, don't block, and print
1582+ information for the user.
1583+ - added debian/dahdi.postinst
1584+ - added --error-handler=init_failed to debian/rules
1585+ - debian/control: Added gawk as dependency for dkms build (LP: #493304)
1586+ - Changes from Debian:
1587+ - debian/control: Change Maintainer
1588+ - debian/control: Removed Uploaders field.
1589+ - debian/control: Removed Debian Vcs-Svn entry and replaced with
1590+ ubuntu-voip Vcs-Bzr, to reflect divergence in packages.
1591+ - debian/control: Package dahdi Depends on dahdi-dkms | dahdi-source
1592+
1593+ -- Vibhav Pant <vibhav@ubuntu.com> Wed, 26 Dec 2012 22:50:15 +0530
1594+
1595+dahdi-tools (1:2.5.0.1-2) unstable; urgency=low
1596+
1597+ [ Tzafrir Cohen ]
1598+ * Removed libtonezone 1.0 (zaptel) symlinks (Closes: #661396).
1599+
1600+ -- Mark Purcell <msp@debian.org> Sat, 07 Jul 2012 10:53:37 +1000
1601+
1602+dahdi-tools (1:2.5.0.1-1) unstable; urgency=low
1603+
1604+ * New upstream release.
1605+ * Standards version 3.9.2 (no change needed).
1606+ * Architecture: linux-any.
1607+ * Switch to dh
1608+ - Patch remove_dahdi_speed: Patch the source. Don't rm later on.
1609+ * Compat level 8, while we're at it.
1610+ * A symbols file fir libtonezone. Verified also to match to 2.2.1.1,
1611+ but interface has probably not changed since 2.0 .
1612+
1613+ -- Tzafrir Cohen <tzafrir@debian.org> Mon, 26 Sep 2011 00:19:17 +0300
1614+
1615 dahdi-tools (1:2.4.1-1ubuntu2) precise; urgency=low
1616
1617 * No-change rebuild against current pkgbinarymangler to fix broken
1618
1619=== modified file 'debian/compat'
1620--- debian/compat 2010-11-11 10:43:16 +0000
1621+++ debian/compat 2012-12-27 13:34:24 +0000
1622@@ -1,1 +1,1 @@
1623-7
1624+8
1625
1626=== modified file 'debian/control'
1627--- debian/control 2011-05-08 12:22:46 +0000
1628+++ debian/control 2012-12-27 13:34:24 +0000
1629@@ -4,14 +4,14 @@
1630 Maintainer: Ubuntu MOTU Developers <ubuntu-motu@lists.ubuntu.com>
1631 XSBC-Original-Maintainer: Debian VoIP Team <pkg-voip-maintainers@lists.alioth.debian.org>
1632 # groff, man-db and asciidoc are required for generating documentation
1633-Build-Depends: debhelper (>= 7), dahdi-source (>= 1:2.3.0), libnewt-dev, bzip2, libusb-dev,
1634+Build-Depends: debhelper (>= 8), dahdi-source (>= 1:2.3.0), libnewt-dev, bzip2, libusb-dev,
1635 asciidoc, groff, man-db
1636-Standards-Version: 3.9.1
1637+Standards-Version: 3.9.2
1638 Homepage: http://www.asterisk.org/
1639 Vcs-Bzr: http://launchpad.net/~ubuntu-voip/ubuntu-voip/dahdi-tools/
1640
1641 Package: dahdi
1642-Architecture: any
1643+Architecture: linux-any
1644 #Jmdault 20090601: the init scripts needs the kernel drivers, so we require
1645 #either the dkms module (preferred) or the source pkg (with module-assistant)
1646 Depends: ${shlibs:Depends}, ${perl:Depends}, ${misc:Depends}, procps, fxload, dahdi-linux, dahdi-dkms | dahdi-source, gawk
1647
1648=== modified file 'debian/copyright'
1649--- debian/copyright 2010-04-18 15:53:48 +0000
1650+++ debian/copyright 2012-12-27 13:34:24 +0000
1651@@ -111,4 +111,4 @@
1652
1653
1654 On Debian systems, a copy of the GNU General Public License may be found in
1655-/usr/share/common-licenses/GPL.
1656+/usr/share/common-licenses/GPL-2.
1657
1658=== modified file 'debian/dahdi.install'
1659--- debian/dahdi.install 2010-11-11 10:43:16 +0000
1660+++ debian/dahdi.install 2012-12-27 13:34:24 +0000
1661@@ -1,3 +1,4 @@
1662+etc/init.d/dahdi
1663 usr/sbin/*
1664 usr/share/perl5/Dahdi*
1665 usr/share/dahdi/*
1666
1667=== removed file 'debian/dahdi.postrm'
1668--- debian/dahdi.postrm 2009-06-01 08:23:38 +0000
1669+++ debian/dahdi.postrm 1970-01-01 00:00:00 +0000
1670@@ -1,3 +0,0 @@
1671-#! /bin/sh -e
1672-
1673-#DEBHELPER#
1674
1675=== removed file 'debian/dahdi.prerm'
1676--- debian/dahdi.prerm 2009-06-01 08:23:38 +0000
1677+++ debian/dahdi.prerm 1970-01-01 00:00:00 +0000
1678@@ -1,3 +0,0 @@
1679-#! /bin/sh -e
1680-
1681-#DEBHELPER#
1682
1683=== modified file 'debian/libtonezone2.0.install'
1684--- debian/libtonezone2.0.install 2009-06-01 08:23:38 +0000
1685+++ debian/libtonezone2.0.install 2012-12-27 13:34:24 +0000
1686@@ -1,1 +1,1 @@
1687-usr/lib/lib*.so.*
1688+usr/lib/lib*.so.2*
1689
1690=== added file 'debian/libtonezone2.0.symbols'
1691--- debian/libtonezone2.0.symbols 1970-01-01 00:00:00 +0000
1692+++ debian/libtonezone2.0.symbols 2012-12-27 13:34:24 +0000
1693@@ -0,0 +1,11 @@
1694+libtonezone.so.2.0 libtonezone2.0 #MINVER#
1695+ builtin_zones@Base 1:2.2.1.1
1696+ dahdi_tools_version@Base 1:2.2.1.1
1697+ tone_zone_find@Base 1:2.2.1.1
1698+ tone_zone_find_by_num@Base 1:2.2.1.1
1699+ tone_zone_get_zone@Base 1:2.2.1.1
1700+ tone_zone_play_tone@Base 1:2.2.1.1
1701+ tone_zone_register@Base 1:2.2.1.1
1702+ tone_zone_register_zone@Base 1:2.2.1.1
1703+ tone_zone_set_zone@Base 1:2.2.1.1
1704+ tone_zone_tone_name@Base 1:2.2.1.1
1705
1706=== added file 'debian/patches/remove_dahdi_speed'
1707--- debian/patches/remove_dahdi_speed 1970-01-01 00:00:00 +0000
1708+++ debian/patches/remove_dahdi_speed 2012-12-27 13:34:24 +0000
1709@@ -0,0 +1,17 @@
1710+Author: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
1711+Description: Remove the useless utility dahdi_speed
1712+
1713+It was useful long ago, but pointless now. Has already been removed in
1714+latest upstream SVN.
1715+
1716+--- a/Makefile
1717++++ b/Makefile
1718+@@ -111,7 +111,7 @@ UTILS = dahdi_tool dahdi_test dahdi_mon
1719+ UTILS += patgen pattest patlooptest hdlcstress hdlctest hdlcgen \
1720+ hdlcverify timertest dahdi_maint
1721+
1722+-BINS:=fxotune fxstest sethdlc dahdi_cfg dahdi_diag dahdi_monitor dahdi_speed dahdi_test dahdi_scan dahdi_tool dahdi_maint
1723++BINS:=fxotune fxstest sethdlc dahdi_cfg dahdi_diag dahdi_monitor dahdi_test dahdi_scan dahdi_tool dahdi_maint
1724+ BINS:=$(filter-out $(MENUSELECT_UTILS),$(BINS))
1725+ MAN_PAGES:=$(wildcard $(BINS:%=doc/%.8))
1726+
1727
1728=== modified file 'debian/patches/series'
1729--- debian/patches/series 2011-05-08 12:22:46 +0000
1730+++ debian/patches/series 2012-12-27 13:34:24 +0000
1731@@ -1,3 +1,4 @@
1732 zaptel_perl
1733 echocan_oslec
1734 init_unload_oslec
1735+remove_dahdi_speed
1736
1737=== modified file 'debian/rules'
1738--- debian/rules 2010-11-11 10:43:16 +0000
1739+++ debian/rules 2012-12-27 13:34:24 +0000
1740@@ -5,23 +5,12 @@
1741 # Uncomment this to turn on verbose mode.
1742 #export DH_VERBOSE=1
1743
1744-# This is the debhelper compatibility version to use.
1745-USE_BRISTUFF=1
1746-export HOTPLUG_FIRMWARE=1
1747-
1748--include /usr/share/quilt/quilt.make
1749-
1750 ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
1751 CFLAGS += -g
1752 endif
1753
1754-## MODULE-ASSISTANT STUFF
1755-# prefix of the target package name
1756 PREFIX:=dahdi
1757-SKPG:=$(PREFIX)-source
1758-PACKAGE:=$(PREFIX)
1759 PACKAGE_SRC:=$(PREFIX)-tools
1760-# modifieable for experiments or debugging m-a
1761
1762 DEBVERSION:=$(shell head -n 1 debian/changelog \
1763 | sed -e 's/^[^(]*(\([^)]*\)).*/\1/')
1764@@ -32,12 +21,10 @@
1765 FILENAME := $(PACKAGE_SRC)_$(DEB_BASE_VERSION).orig.tar.gz
1766 URL := http://downloads.asterisk.org/pub/telephony/$(PACKAGE_SRC)/releases/$(PACKAGE_SRC)-$(UPVERSION).tar.gz
1767
1768-build: patch build-stamp
1769-build-stamp:
1770- dh_testdir
1771-
1772- cp -a dahdi.init debian/
1773- ./configure
1774+%:
1775+ dh $@
1776+
1777+override_dh_auto_build:
1778 $(MAKE) programs docs
1779 # FIXME: xpp/README.Astribank.html
1780 touch $@
1781@@ -125,6 +112,15 @@
1782 dh_md5sums -a
1783 dh_builddeb -a
1784
1785+override_dh_auto_install:
1786+ # Without this dahdi.init does not get copied:
1787+ mkdir -p $(CURDIR)/debian/tmp/etc/init.d
1788+ # also run the 'config' target, in addition to the 'install' target:
1789+ dh_auto_install -- config
1790+
1791+override_dh_installinit:
1792+ dh_installinit --onlyscripts -p dahdi
1793+
1794 print-version:
1795 @@echo "Debian version: $(DEBVERSION)"
1796 @@echo "Upstream version: $(UPVERSION)"
1797@@ -136,5 +132,3 @@
1798 @@echo Downloading $(UPFILENAME) from $(URL) ...
1799 @@wget -nv -T10 -t3 --verbose -O ../tarballs/$(FILENAME) $(URL)
1800
1801-binary: binary-indep binary-arch
1802-.PHONY: build clean binary-indep binary-arch binary install configure patch unpatch
1803
1804=== modified file 'menuselect/aclocal.m4'
1805--- menuselect/aclocal.m4 2011-03-13 23:45:36 +0000
1806+++ menuselect/aclocal.m4 2012-12-27 13:34:24 +0000
1807@@ -1,7 +1,7 @@
1808-# generated automatically by aclocal 1.10.1 -*- Autoconf -*-
1809+# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
1810
1811 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
1812-# 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1813+# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
1814 # This file is free software; the Free Software Foundation
1815 # gives unlimited permission to copy and/or distribute it,
1816 # with or without modifications, as long as this notice is preserved.
1817
1818=== modified file 'menuselect/autoconfig.h.in'
1819--- menuselect/autoconfig.h.in 2011-03-13 23:45:36 +0000
1820+++ menuselect/autoconfig.h.in 2012-12-27 13:34:24 +0000
1821@@ -26,6 +26,9 @@
1822 /* Define to 1 if you have the `asprintf' function. */
1823 #undef HAVE_ASPRINTF
1824
1825+/* Define to 1 if your GCC C compiler supports the 'weak' attribute. */
1826+#undef HAVE_ATTRIBUTE_weak
1827+
1828 /* Define to 1 if your GCC C compiler supports the 'weak_import' attribute. */
1829 #undef HAVE_ATTRIBUTE_weak_import
1830
1831@@ -107,6 +110,9 @@
1832 /* Define to the one symbol short name of this package. */
1833 #undef PACKAGE_TARNAME
1834
1835+/* Define to the home page for this package. */
1836+#undef PACKAGE_URL
1837+
1838 /* Define to the version of this package. */
1839 #undef PACKAGE_VERSION
1840
1841
1842=== modified file 'menuselect/configure'
1843--- menuselect/configure 2011-03-13 23:45:36 +0000
1844+++ menuselect/configure 2012-12-27 13:34:24 +0000
1845@@ -1,63 +1,86 @@
1846 #! /bin/sh
1847 # From configure.ac Revision: 40837 .
1848 # Guess values for system-dependent variables and create Makefiles.
1849-# Generated by GNU Autoconf 2.61.
1850+# Generated by GNU Autoconf 2.65.
1851+#
1852 #
1853 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1854-# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1855+# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
1856+# Inc.
1857+#
1858+#
1859 # This configure script is free software; the Free Software Foundation
1860 # gives unlimited permission to copy, distribute and modify it.
1861 #
1862 # "Menuselect"
1863-## --------------------- ##
1864-## M4sh Initialization. ##
1865-## --------------------- ##
1866+## -------------------- ##
1867+## M4sh Initialization. ##
1868+## -------------------- ##
1869
1870 # Be more Bourne compatible
1871 DUALCASE=1; export DUALCASE # for MKS sh
1872-if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
1873+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1874 emulate sh
1875 NULLCMD=:
1876- # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
1877+ # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1878 # is contrary to our usage. Disable this feature.
1879 alias -g '${1+"$@"}'='"$@"'
1880 setopt NO_GLOB_SUBST
1881 else
1882- case `(set -o) 2>/dev/null` in
1883- *posix*) set -o posix ;;
1884+ case `(set -o) 2>/dev/null` in #(
1885+ *posix*) :
1886+ set -o posix ;; #(
1887+ *) :
1888+ ;;
1889 esac
1890-
1891-fi
1892-
1893-
1894-
1895-
1896-# PATH needs CR
1897-# Avoid depending upon Character Ranges.
1898-as_cr_letters='abcdefghijklmnopqrstuvwxyz'
1899-as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
1900-as_cr_Letters=$as_cr_letters$as_cr_LETTERS
1901-as_cr_digits='0123456789'
1902-as_cr_alnum=$as_cr_Letters$as_cr_digits
1903+fi
1904+
1905+
1906+as_nl='
1907+'
1908+export as_nl
1909+# Printing a long string crashes Solaris 7 /usr/bin/printf.
1910+as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1911+as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
1912+as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
1913+# Prefer a ksh shell builtin over an external printf program on Solaris,
1914+# but without wasting forks for bash or zsh.
1915+if test -z "$BASH_VERSION$ZSH_VERSION" \
1916+ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
1917+ as_echo='print -r --'
1918+ as_echo_n='print -rn --'
1919+elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
1920+ as_echo='printf %s\n'
1921+ as_echo_n='printf %s'
1922+else
1923+ if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
1924+ as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
1925+ as_echo_n='/usr/ucb/echo -n'
1926+ else
1927+ as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
1928+ as_echo_n_body='eval
1929+ arg=$1;
1930+ case $arg in #(
1931+ *"$as_nl"*)
1932+ expr "X$arg" : "X\\(.*\\)$as_nl";
1933+ arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
1934+ esac;
1935+ expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
1936+ '
1937+ export as_echo_n_body
1938+ as_echo_n='sh -c $as_echo_n_body as_echo'
1939+ fi
1940+ export as_echo_body
1941+ as_echo='sh -c $as_echo_body as_echo'
1942+fi
1943
1944 # The user is always right.
1945 if test "${PATH_SEPARATOR+set}" != set; then
1946- echo "#! /bin/sh" >conf$$.sh
1947- echo "exit 0" >>conf$$.sh
1948- chmod +x conf$$.sh
1949- if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
1950- PATH_SEPARATOR=';'
1951- else
1952- PATH_SEPARATOR=:
1953- fi
1954- rm -f conf$$.sh
1955-fi
1956-
1957-# Support unset when possible.
1958-if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1959- as_unset=unset
1960-else
1961- as_unset=false
1962+ PATH_SEPARATOR=:
1963+ (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
1964+ (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
1965+ PATH_SEPARATOR=';'
1966+ }
1967 fi
1968
1969
1970@@ -66,20 +89,18 @@
1971 # there to prevent editors from complaining about space-tab.
1972 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
1973 # splitting by setting IFS to empty value.)
1974-as_nl='
1975-'
1976 IFS=" "" $as_nl"
1977
1978 # Find who we are. Look in the path if we contain no directory separator.
1979-case $0 in
1980+case $0 in #((
1981 *[\\/]* ) as_myself=$0 ;;
1982 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1983 for as_dir in $PATH
1984 do
1985 IFS=$as_save_IFS
1986 test -z "$as_dir" && as_dir=.
1987- test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
1988-done
1989+ test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
1990+ done
1991 IFS=$as_save_IFS
1992
1993 ;;
1994@@ -90,354 +111,321 @@
1995 as_myself=$0
1996 fi
1997 if test ! -f "$as_myself"; then
1998- echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1999- { (exit 1); exit 1; }
2000+ $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
2001+ exit 1
2002 fi
2003
2004-# Work around bugs in pre-3.0 UWIN ksh.
2005-for as_var in ENV MAIL MAILPATH
2006-do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
2007+# Unset variables that we do not need and which cause bugs (e.g. in
2008+# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
2009+# suppresses any "Segmentation fault" message there. '((' could
2010+# trigger a bug in pdksh 5.2.14.
2011+for as_var in BASH_ENV ENV MAIL MAILPATH
2012+do eval test x\${$as_var+set} = xset \
2013+ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
2014 done
2015 PS1='$ '
2016 PS2='> '
2017 PS4='+ '
2018
2019 # NLS nuisances.
2020-for as_var in \
2021- LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
2022- LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
2023- LC_TELEPHONE LC_TIME
2024-do
2025- if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
2026- eval $as_var=C; export $as_var
2027- else
2028- ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
2029- fi
2030-done
2031-
2032-# Required to use basename.
2033-if expr a : '\(a\)' >/dev/null 2>&1 &&
2034- test "X`expr 00001 : '.*\(...\)'`" = X001; then
2035- as_expr=expr
2036-else
2037- as_expr=false
2038-fi
2039-
2040-if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
2041- as_basename=basename
2042-else
2043- as_basename=false
2044-fi
2045-
2046-
2047-# Name of the executable.
2048-as_me=`$as_basename -- "$0" ||
2049-$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
2050- X"$0" : 'X\(//\)$' \| \
2051- X"$0" : 'X\(/\)' \| . 2>/dev/null ||
2052-echo X/"$0" |
2053- sed '/^.*\/\([^/][^/]*\)\/*$/{
2054- s//\1/
2055- q
2056- }
2057- /^X\/\(\/\/\)$/{
2058- s//\1/
2059- q
2060- }
2061- /^X\/\(\/\).*/{
2062- s//\1/
2063- q
2064- }
2065- s/.*/./; q'`
2066+LC_ALL=C
2067+export LC_ALL
2068+LANGUAGE=C
2069+export LANGUAGE
2070
2071 # CDPATH.
2072-$as_unset CDPATH
2073-
2074+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2075
2076 if test "x$CONFIG_SHELL" = x; then
2077- if (eval ":") 2>/dev/null; then
2078+ as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
2079+ emulate sh
2080+ NULLCMD=:
2081+ # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
2082+ # is contrary to our usage. Disable this feature.
2083+ alias -g '\${1+\"\$@\"}'='\"\$@\"'
2084+ setopt NO_GLOB_SUBST
2085+else
2086+ case \`(set -o) 2>/dev/null\` in #(
2087+ *posix*) :
2088+ set -o posix ;; #(
2089+ *) :
2090+ ;;
2091+esac
2092+fi
2093+"
2094+ as_required="as_fn_return () { (exit \$1); }
2095+as_fn_success () { as_fn_return 0; }
2096+as_fn_failure () { as_fn_return 1; }
2097+as_fn_ret_success () { return 0; }
2098+as_fn_ret_failure () { return 1; }
2099+
2100+exitcode=0
2101+as_fn_success || { exitcode=1; echo as_fn_success failed.; }
2102+as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
2103+as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
2104+as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
2105+if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
2106+
2107+else
2108+ exitcode=1; echo positional parameters were not saved.
2109+fi
2110+test x\$exitcode = x0 || exit 1"
2111+ as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
2112+ as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
2113+ eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
2114+ test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
2115+test \$(( 1 + 1 )) = 2 || exit 1"
2116+ if (eval "$as_required") 2>/dev/null; then :
2117 as_have_required=yes
2118 else
2119 as_have_required=no
2120 fi
2121-
2122- if test $as_have_required = yes && (eval ":
2123-(as_func_return () {
2124- (exit \$1)
2125-}
2126-as_func_success () {
2127- as_func_return 0
2128-}
2129-as_func_failure () {
2130- as_func_return 1
2131-}
2132-as_func_ret_success () {
2133- return 0
2134-}
2135-as_func_ret_failure () {
2136- return 1
2137-}
2138-
2139-exitcode=0
2140-if as_func_success; then
2141- :
2142-else
2143- exitcode=1
2144- echo as_func_success failed.
2145-fi
2146-
2147-if as_func_failure; then
2148- exitcode=1
2149- echo as_func_failure succeeded.
2150-fi
2151-
2152-if as_func_ret_success; then
2153- :
2154-else
2155- exitcode=1
2156- echo as_func_ret_success failed.
2157-fi
2158-
2159-if as_func_ret_failure; then
2160- exitcode=1
2161- echo as_func_ret_failure succeeded.
2162-fi
2163-
2164-if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
2165- :
2166-else
2167- exitcode=1
2168- echo positional parameters were not saved.
2169-fi
2170-
2171-test \$exitcode = 0) || { (exit 1); exit 1; }
2172-
2173-(
2174- as_lineno_1=\$LINENO
2175- as_lineno_2=\$LINENO
2176- test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
2177- test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
2178-") 2> /dev/null; then
2179- :
2180-else
2181- as_candidate_shells=
2182- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2183+ if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
2184+
2185+else
2186+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2187+as_found=false
2188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
2189 do
2190 IFS=$as_save_IFS
2191 test -z "$as_dir" && as_dir=.
2192- case $as_dir in
2193+ as_found=:
2194+ case $as_dir in #(
2195 /*)
2196 for as_base in sh bash ksh sh5; do
2197- as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
2198+ # Try only shells that exist, to save several forks.
2199+ as_shell=$as_dir/$as_base
2200+ if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
2201+ { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
2202+ CONFIG_SHELL=$as_shell as_have_required=yes
2203+ if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
2204+ break 2
2205+fi
2206+fi
2207 done;;
2208 esac
2209+ as_found=false
2210 done
2211+$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
2212+ { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
2213+ CONFIG_SHELL=$SHELL as_have_required=yes
2214+fi; }
2215 IFS=$as_save_IFS
2216
2217
2218- for as_shell in $as_candidate_shells $SHELL; do
2219- # Try only shells that exist, to save several forks.
2220- if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
2221- { ("$as_shell") 2> /dev/null <<\_ASEOF
2222-if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
2223- emulate sh
2224- NULLCMD=:
2225- # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
2226- # is contrary to our usage. Disable this feature.
2227- alias -g '${1+"$@"}'='"$@"'
2228- setopt NO_GLOB_SUBST
2229-else
2230- case `(set -o) 2>/dev/null` in
2231- *posix*) set -o posix ;;
2232-esac
2233-
2234-fi
2235-
2236-
2237-:
2238-_ASEOF
2239-}; then
2240- CONFIG_SHELL=$as_shell
2241- as_have_required=yes
2242- if { "$as_shell" 2> /dev/null <<\_ASEOF
2243-if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
2244- emulate sh
2245- NULLCMD=:
2246- # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
2247- # is contrary to our usage. Disable this feature.
2248- alias -g '${1+"$@"}'='"$@"'
2249- setopt NO_GLOB_SUBST
2250-else
2251- case `(set -o) 2>/dev/null` in
2252- *posix*) set -o posix ;;
2253-esac
2254-
2255-fi
2256-
2257-
2258-:
2259-(as_func_return () {
2260- (exit $1)
2261-}
2262-as_func_success () {
2263- as_func_return 0
2264-}
2265-as_func_failure () {
2266- as_func_return 1
2267-}
2268-as_func_ret_success () {
2269- return 0
2270-}
2271-as_func_ret_failure () {
2272- return 1
2273-}
2274-
2275-exitcode=0
2276-if as_func_success; then
2277- :
2278-else
2279- exitcode=1
2280- echo as_func_success failed.
2281-fi
2282-
2283-if as_func_failure; then
2284- exitcode=1
2285- echo as_func_failure succeeded.
2286-fi
2287-
2288-if as_func_ret_success; then
2289- :
2290-else
2291- exitcode=1
2292- echo as_func_ret_success failed.
2293-fi
2294-
2295-if as_func_ret_failure; then
2296- exitcode=1
2297- echo as_func_ret_failure succeeded.
2298-fi
2299-
2300-if ( set x; as_func_ret_success y && test x = "$1" ); then
2301- :
2302-else
2303- exitcode=1
2304- echo positional parameters were not saved.
2305-fi
2306-
2307-test $exitcode = 0) || { (exit 1); exit 1; }
2308-
2309-(
2310- as_lineno_1=$LINENO
2311- as_lineno_2=$LINENO
2312- test "x$as_lineno_1" != "x$as_lineno_2" &&
2313- test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
2314-
2315-_ASEOF
2316-}; then
2317- break
2318-fi
2319-
2320-fi
2321-
2322- done
2323-
2324- if test "x$CONFIG_SHELL" != x; then
2325- for as_var in BASH_ENV ENV
2326- do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
2327- done
2328- export CONFIG_SHELL
2329- exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
2330-fi
2331-
2332-
2333- if test $as_have_required = no; then
2334- echo This script requires a shell more modern than all the
2335- echo shells that I found on your system. Please install a
2336- echo modern shell, or manually run the script under such a
2337- echo shell if you do have one.
2338- { (exit 1); exit 1; }
2339-fi
2340-
2341-
2342-fi
2343-
2344-fi
2345-
2346-
2347-
2348-(eval "as_func_return () {
2349- (exit \$1)
2350-}
2351-as_func_success () {
2352- as_func_return 0
2353-}
2354-as_func_failure () {
2355- as_func_return 1
2356-}
2357-as_func_ret_success () {
2358- return 0
2359-}
2360-as_func_ret_failure () {
2361- return 1
2362-}
2363-
2364-exitcode=0
2365-if as_func_success; then
2366- :
2367-else
2368- exitcode=1
2369- echo as_func_success failed.
2370-fi
2371-
2372-if as_func_failure; then
2373- exitcode=1
2374- echo as_func_failure succeeded.
2375-fi
2376-
2377-if as_func_ret_success; then
2378- :
2379-else
2380- exitcode=1
2381- echo as_func_ret_success failed.
2382-fi
2383-
2384-if as_func_ret_failure; then
2385- exitcode=1
2386- echo as_func_ret_failure succeeded.
2387-fi
2388-
2389-if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
2390- :
2391-else
2392- exitcode=1
2393- echo positional parameters were not saved.
2394-fi
2395-
2396-test \$exitcode = 0") || {
2397- echo No shell found that supports shell functions.
2398- echo Please tell autoconf@gnu.org about your system,
2399- echo including any error possibly output before this
2400- echo message
2401-}
2402-
2403-
2404-
2405- as_lineno_1=$LINENO
2406- as_lineno_2=$LINENO
2407- test "x$as_lineno_1" != "x$as_lineno_2" &&
2408- test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
2409-
2410- # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
2411- # uniformly replaced by the line number. The first 'sed' inserts a
2412- # line-number line after each line using $LINENO; the second 'sed'
2413- # does the real work. The second script uses 'N' to pair each
2414- # line-number line with the line containing $LINENO, and appends
2415- # trailing '-' during substitution so that $LINENO is not a special
2416- # case at line end.
2417- # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
2418- # scripts with optimization help from Paolo Bonzini. Blame Lee
2419- # E. McMahon (1931-1989) for sed's syntax. :-)
2420+ if test "x$CONFIG_SHELL" != x; then :
2421+ # We cannot yet assume a decent shell, so we have to provide a
2422+ # neutralization value for shells without unset; and this also
2423+ # works around shells that cannot unset nonexistent variables.
2424+ BASH_ENV=/dev/null
2425+ ENV=/dev/null
2426+ (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
2427+ export CONFIG_SHELL
2428+ exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
2429+fi
2430+
2431+ if test x$as_have_required = xno; then :
2432+ $as_echo "$0: This script requires a shell more modern than all"
2433+ $as_echo "$0: the shells that I found on your system."
2434+ if test x${ZSH_VERSION+set} = xset ; then
2435+ $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
2436+ $as_echo "$0: be upgraded to zsh 4.3.4 or later."
2437+ else
2438+ $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
2439+$0: including any error possibly output before this
2440+$0: message. Then install a modern shell, or manually run
2441+$0: the script under such a shell if you do have one."
2442+ fi
2443+ exit 1
2444+fi
2445+fi
2446+fi
2447+SHELL=${CONFIG_SHELL-/bin/sh}
2448+export SHELL
2449+# Unset more variables known to interfere with behavior of common tools.
2450+CLICOLOR_FORCE= GREP_OPTIONS=
2451+unset CLICOLOR_FORCE GREP_OPTIONS
2452+
2453+## --------------------- ##
2454+## M4sh Shell Functions. ##
2455+## --------------------- ##
2456+# as_fn_unset VAR
2457+# ---------------
2458+# Portably unset VAR.
2459+as_fn_unset ()
2460+{
2461+ { eval $1=; unset $1;}
2462+}
2463+as_unset=as_fn_unset
2464+
2465+# as_fn_set_status STATUS
2466+# -----------------------
2467+# Set $? to STATUS, without forking.
2468+as_fn_set_status ()
2469+{
2470+ return $1
2471+} # as_fn_set_status
2472+
2473+# as_fn_exit STATUS
2474+# -----------------
2475+# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
2476+as_fn_exit ()
2477+{
2478+ set +e
2479+ as_fn_set_status $1
2480+ exit $1
2481+} # as_fn_exit
2482+
2483+# as_fn_mkdir_p
2484+# -------------
2485+# Create "$as_dir" as a directory, including parents if necessary.
2486+as_fn_mkdir_p ()
2487+{
2488+
2489+ case $as_dir in #(
2490+ -*) as_dir=./$as_dir;;
2491+ esac
2492+ test -d "$as_dir" || eval $as_mkdir_p || {
2493+ as_dirs=
2494+ while :; do
2495+ case $as_dir in #(
2496+ *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
2497+ *) as_qdir=$as_dir;;
2498+ esac
2499+ as_dirs="'$as_qdir' $as_dirs"
2500+ as_dir=`$as_dirname -- "$as_dir" ||
2501+$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2502+ X"$as_dir" : 'X\(//\)[^/]' \| \
2503+ X"$as_dir" : 'X\(//\)$' \| \
2504+ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
2505+$as_echo X"$as_dir" |
2506+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2507+ s//\1/
2508+ q
2509+ }
2510+ /^X\(\/\/\)[^/].*/{
2511+ s//\1/
2512+ q
2513+ }
2514+ /^X\(\/\/\)$/{
2515+ s//\1/
2516+ q
2517+ }
2518+ /^X\(\/\).*/{
2519+ s//\1/
2520+ q
2521+ }
2522+ s/.*/./; q'`
2523+ test -d "$as_dir" && break
2524+ done
2525+ test -z "$as_dirs" || eval "mkdir $as_dirs"
2526+ } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
2527+
2528+
2529+} # as_fn_mkdir_p
2530+# as_fn_append VAR VALUE
2531+# ----------------------
2532+# Append the text in VALUE to the end of the definition contained in VAR. Take
2533+# advantage of any shell optimizations that allow amortized linear growth over
2534+# repeated appends, instead of the typical quadratic growth present in naive
2535+# implementations.
2536+if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
2537+ eval 'as_fn_append ()
2538+ {
2539+ eval $1+=\$2
2540+ }'
2541+else
2542+ as_fn_append ()
2543+ {
2544+ eval $1=\$$1\$2
2545+ }
2546+fi # as_fn_append
2547+
2548+# as_fn_arith ARG...
2549+# ------------------
2550+# Perform arithmetic evaluation on the ARGs, and store the result in the
2551+# global $as_val. Take advantage of shells that can avoid forks. The arguments
2552+# must be portable across $(()) and expr.
2553+if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
2554+ eval 'as_fn_arith ()
2555+ {
2556+ as_val=$(( $* ))
2557+ }'
2558+else
2559+ as_fn_arith ()
2560+ {
2561+ as_val=`expr "$@" || test $? -eq 1`
2562+ }
2563+fi # as_fn_arith
2564+
2565+
2566+# as_fn_error ERROR [LINENO LOG_FD]
2567+# ---------------------------------
2568+# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
2569+# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
2570+# script with status $?, using 1 if that was 0.
2571+as_fn_error ()
2572+{
2573+ as_status=$?; test $as_status -eq 0 && as_status=1
2574+ if test "$3"; then
2575+ as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2576+ $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
2577+ fi
2578+ $as_echo "$as_me: error: $1" >&2
2579+ as_fn_exit $as_status
2580+} # as_fn_error
2581+
2582+if expr a : '\(a\)' >/dev/null 2>&1 &&
2583+ test "X`expr 00001 : '.*\(...\)'`" = X001; then
2584+ as_expr=expr
2585+else
2586+ as_expr=false
2587+fi
2588+
2589+if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
2590+ as_basename=basename
2591+else
2592+ as_basename=false
2593+fi
2594+
2595+if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
2596+ as_dirname=dirname
2597+else
2598+ as_dirname=false
2599+fi
2600+
2601+as_me=`$as_basename -- "$0" ||
2602+$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
2603+ X"$0" : 'X\(//\)$' \| \
2604+ X"$0" : 'X\(/\)' \| . 2>/dev/null ||
2605+$as_echo X/"$0" |
2606+ sed '/^.*\/\([^/][^/]*\)\/*$/{
2607+ s//\1/
2608+ q
2609+ }
2610+ /^X\/\(\/\/\)$/{
2611+ s//\1/
2612+ q
2613+ }
2614+ /^X\/\(\/\).*/{
2615+ s//\1/
2616+ q
2617+ }
2618+ s/.*/./; q'`
2619+
2620+# Avoid depending upon Character Ranges.
2621+as_cr_letters='abcdefghijklmnopqrstuvwxyz'
2622+as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
2623+as_cr_Letters=$as_cr_letters$as_cr_LETTERS
2624+as_cr_digits='0123456789'
2625+as_cr_alnum=$as_cr_Letters$as_cr_digits
2626+
2627+
2628+ as_lineno_1=$LINENO as_lineno_1a=$LINENO
2629+ as_lineno_2=$LINENO as_lineno_2a=$LINENO
2630+ eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
2631+ test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
2632+ # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
2633 sed -n '
2634 p
2635 /[$]LINENO/=
2636@@ -454,8 +442,7 @@
2637 s/-\n.*//
2638 ' >$as_me.lineno &&
2639 chmod +x "$as_me.lineno" ||
2640- { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
2641- { (exit 1); exit 1; }; }
2642+ { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
2643
2644 # Don't try to exec as it changes $[0], causing all sort of problems
2645 # (the dirname of $[0] is not the place where we might find the
2646@@ -465,49 +452,40 @@
2647 exit
2648 }
2649
2650-
2651-if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
2652- as_dirname=dirname
2653-else
2654- as_dirname=false
2655-fi
2656-
2657 ECHO_C= ECHO_N= ECHO_T=
2658-case `echo -n x` in
2659+case `echo -n x` in #(((((
2660 -n*)
2661- case `echo 'x\c'` in
2662+ case `echo 'xy\c'` in
2663 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
2664- *) ECHO_C='\c';;
2665+ xy) ECHO_C='\c';;
2666+ *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
2667+ ECHO_T=' ';;
2668 esac;;
2669 *)
2670 ECHO_N='-n';;
2671 esac
2672
2673-if expr a : '\(a\)' >/dev/null 2>&1 &&
2674- test "X`expr 00001 : '.*\(...\)'`" = X001; then
2675- as_expr=expr
2676-else
2677- as_expr=false
2678-fi
2679-
2680 rm -f conf$$ conf$$.exe conf$$.file
2681 if test -d conf$$.dir; then
2682 rm -f conf$$.dir/conf$$.file
2683 else
2684 rm -f conf$$.dir
2685- mkdir conf$$.dir
2686+ mkdir conf$$.dir 2>/dev/null
2687 fi
2688-echo >conf$$.file
2689-if ln -s conf$$.file conf$$ 2>/dev/null; then
2690- as_ln_s='ln -s'
2691- # ... but there are two gotchas:
2692- # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
2693- # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
2694- # In both cases, we have to default to `cp -p'.
2695- ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
2696+if (echo >conf$$.file) 2>/dev/null; then
2697+ if ln -s conf$$.file conf$$ 2>/dev/null; then
2698+ as_ln_s='ln -s'
2699+ # ... but there are two gotchas:
2700+ # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
2701+ # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
2702+ # In both cases, we have to default to `cp -p'.
2703+ ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
2704+ as_ln_s='cp -p'
2705+ elif ln conf$$.file conf$$ 2>/dev/null; then
2706+ as_ln_s=ln
2707+ else
2708 as_ln_s='cp -p'
2709-elif ln conf$$.file conf$$ 2>/dev/null; then
2710- as_ln_s=ln
2711+ fi
2712 else
2713 as_ln_s='cp -p'
2714 fi
2715@@ -515,7 +493,7 @@
2716 rmdir conf$$.dir 2>/dev/null
2717
2718 if mkdir -p . 2>/dev/null; then
2719- as_mkdir_p=:
2720+ as_mkdir_p='mkdir -p "$as_dir"'
2721 else
2722 test -d ./-p && rmdir ./-p
2723 as_mkdir_p=false
2724@@ -532,12 +510,12 @@
2725 as_test_x='
2726 eval sh -c '\''
2727 if test -d "$1"; then
2728- test -d "$1/.";
2729+ test -d "$1/.";
2730 else
2731- case $1 in
2732- -*)set "./$1";;
2733+ case $1 in #(
2734+ -*)set "./$1";;
2735 esac;
2736- case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
2737+ case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
2738 ???[sx]*):;;*)false;;esac;fi
2739 '\'' sh
2740 '
2741@@ -551,8 +529,8 @@
2742 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
2743
2744
2745-
2746-exec 7<&0 </dev/null 6>&1
2747+test -n "$DJDIR" || exec 7<&0 </dev/null
2748+exec 6>&1
2749
2750 # Name of the host.
2751 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
2752@@ -570,7 +548,6 @@
2753 subdirs=
2754 MFLAGS=
2755 MAKEFLAGS=
2756-SHELL=${CONFIG_SHELL-/bin/sh}
2757
2758 # Identity of this package.
2759 PACKAGE_NAME=
2760@@ -578,6 +555,7 @@
2761 PACKAGE_VERSION=
2762 PACKAGE_STRING=
2763 PACKAGE_BUGREPORT=
2764+PACKAGE_URL=
2765
2766 ac_unique_file="menuselect"
2767 ac_unique_file="menuselect.c"
2768@@ -617,82 +595,91 @@
2769 # include <unistd.h>
2770 #endif"
2771
2772-ac_subst_vars='SHELL
2773+enable_option_checking=no
2774+ac_subst_vars='LTLIBOBJS
2775+LIBOBJS
2776+subdirs
2777+GTK2_LIB
2778+GTK2_INCLUDE
2779+PBX_GTK2
2780+PKGCONFIG
2781+PBX_NCURSES
2782+NCURSES_INCLUDE
2783+NCURSES_LIB
2784+PBX_CURSES
2785+CURSES_INCLUDE
2786+CURSES_LIB
2787+PBX_NEWT
2788+NEWT_INCLUDE
2789+NEWT_LIB
2790+EGREP
2791+GREP
2792+CPP
2793+ALLOCA
2794+MENUSELECT_DEBUG
2795+GNU_MAKE
2796+OBJEXT
2797+EXEEXT
2798+ac_ct_CC
2799+CPPFLAGS
2800+LDFLAGS
2801+CFLAGS
2802+CC
2803+HOST_OS
2804+host_os
2805+host_vendor
2806+host_cpu
2807+host
2808+build_os
2809+build_vendor
2810+build_cpu
2811+build
2812+target_alias
2813+host_alias
2814+build_alias
2815+LIBS
2816+ECHO_T
2817+ECHO_N
2818+ECHO_C
2819+DEFS
2820+mandir
2821+localedir
2822+libdir
2823+psdir
2824+pdfdir
2825+dvidir
2826+htmldir
2827+infodir
2828+docdir
2829+oldincludedir
2830+includedir
2831+localstatedir
2832+sharedstatedir
2833+sysconfdir
2834+datadir
2835+datarootdir
2836+libexecdir
2837+sbindir
2838+bindir
2839+program_transform_name
2840+prefix
2841+exec_prefix
2842+PACKAGE_URL
2843+PACKAGE_BUGREPORT
2844+PACKAGE_STRING
2845+PACKAGE_VERSION
2846+PACKAGE_TARNAME
2847+PACKAGE_NAME
2848 PATH_SEPARATOR
2849-PACKAGE_NAME
2850-PACKAGE_TARNAME
2851-PACKAGE_VERSION
2852-PACKAGE_STRING
2853-PACKAGE_BUGREPORT
2854-exec_prefix
2855-prefix
2856-program_transform_name
2857-bindir
2858-sbindir
2859-libexecdir
2860-datarootdir
2861-datadir
2862-sysconfdir
2863-sharedstatedir
2864-localstatedir
2865-includedir
2866-oldincludedir
2867-docdir
2868-infodir
2869-htmldir
2870-dvidir
2871-pdfdir
2872-psdir
2873-libdir
2874-localedir
2875-mandir
2876-DEFS
2877-ECHO_C
2878-ECHO_N
2879-ECHO_T
2880-LIBS
2881-build_alias
2882-host_alias
2883-target_alias
2884-build
2885-build_cpu
2886-build_vendor
2887-build_os
2888-host
2889-host_cpu
2890-host_vendor
2891-host_os
2892-HOST_OS
2893-CC
2894-CFLAGS
2895-LDFLAGS
2896-CPPFLAGS
2897-ac_ct_CC
2898-EXEEXT
2899-OBJEXT
2900-GNU_MAKE
2901-MENUSELECT_DEBUG
2902-ALLOCA
2903-CPP
2904-GREP
2905-EGREP
2906-NEWT_LIB
2907-NEWT_INCLUDE
2908-PBX_NEWT
2909-CURSES_LIB
2910-CURSES_INCLUDE
2911-PBX_CURSES
2912-NCURSES_LIB
2913-NCURSES_INCLUDE
2914-PBX_NCURSES
2915-PKGCONFIG
2916-PBX_GTK2
2917-GTK2_INCLUDE
2918-GTK2_LIB
2919-subdirs
2920-LIBOBJS
2921-LTLIBOBJS'
2922+SHELL'
2923 ac_subst_files=''
2924+ac_user_opts='
2925+enable_option_checking
2926+enable_debug
2927+with_newt
2928+with_curses
2929+with_ncurses
2930+'
2931 ac_precious_vars='build_alias
2932 host_alias
2933 target_alias
2934@@ -707,6 +694,8 @@
2935 # Initialize some variables set by options.
2936 ac_init_help=
2937 ac_init_version=false
2938+ac_unrecognized_opts=
2939+ac_unrecognized_sep=
2940 # The variables have the same names as the options, with
2941 # dashes changed to underlines.
2942 cache_file=/dev/null
2943@@ -805,13 +794,20 @@
2944 datarootdir=$ac_optarg ;;
2945
2946 -disable-* | --disable-*)
2947- ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
2948+ ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
2949 # Reject names that are not valid shell variable names.
2950- expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2951- { echo "$as_me: error: invalid feature name: $ac_feature" >&2
2952- { (exit 1); exit 1; }; }
2953- ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
2954- eval enable_$ac_feature=no ;;
2955+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2956+ as_fn_error "invalid feature name: $ac_useropt"
2957+ ac_useropt_orig=$ac_useropt
2958+ ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2959+ case $ac_user_opts in
2960+ *"
2961+"enable_$ac_useropt"
2962+"*) ;;
2963+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
2964+ ac_unrecognized_sep=', ';;
2965+ esac
2966+ eval enable_$ac_useropt=no ;;
2967
2968 -docdir | --docdir | --docdi | --doc | --do)
2969 ac_prev=docdir ;;
2970@@ -824,13 +820,20 @@
2971 dvidir=$ac_optarg ;;
2972
2973 -enable-* | --enable-*)
2974- ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
2975+ ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
2976 # Reject names that are not valid shell variable names.
2977- expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2978- { echo "$as_me: error: invalid feature name: $ac_feature" >&2
2979- { (exit 1); exit 1; }; }
2980- ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
2981- eval enable_$ac_feature=\$ac_optarg ;;
2982+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2983+ as_fn_error "invalid feature name: $ac_useropt"
2984+ ac_useropt_orig=$ac_useropt
2985+ ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2986+ case $ac_user_opts in
2987+ *"
2988+"enable_$ac_useropt"
2989+"*) ;;
2990+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
2991+ ac_unrecognized_sep=', ';;
2992+ esac
2993+ eval enable_$ac_useropt=\$ac_optarg ;;
2994
2995 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
2996 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
2997@@ -1021,22 +1024,36 @@
2998 ac_init_version=: ;;
2999
3000 -with-* | --with-*)
3001- ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
3002+ ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
3003 # Reject names that are not valid shell variable names.
3004- expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
3005- { echo "$as_me: error: invalid package name: $ac_package" >&2
3006- { (exit 1); exit 1; }; }
3007- ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
3008- eval with_$ac_package=\$ac_optarg ;;
3009+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
3010+ as_fn_error "invalid package name: $ac_useropt"
3011+ ac_useropt_orig=$ac_useropt
3012+ ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
3013+ case $ac_user_opts in
3014+ *"
3015+"with_$ac_useropt"
3016+"*) ;;
3017+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
3018+ ac_unrecognized_sep=', ';;
3019+ esac
3020+ eval with_$ac_useropt=\$ac_optarg ;;
3021
3022 -without-* | --without-*)
3023- ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
3024+ ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
3025 # Reject names that are not valid shell variable names.
3026- expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
3027- { echo "$as_me: error: invalid package name: $ac_package" >&2
3028- { (exit 1); exit 1; }; }
3029- ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
3030- eval with_$ac_package=no ;;
3031+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
3032+ as_fn_error "invalid package name: $ac_useropt"
3033+ ac_useropt_orig=$ac_useropt
3034+ ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
3035+ case $ac_user_opts in
3036+ *"
3037+"with_$ac_useropt"
3038+"*) ;;
3039+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
3040+ ac_unrecognized_sep=', ';;
3041+ esac
3042+ eval with_$ac_useropt=no ;;
3043
3044 --x)
3045 # Obsolete; use --with-x.
3046@@ -1056,25 +1073,25 @@
3047 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
3048 x_libraries=$ac_optarg ;;
3049
3050- -*) { echo "$as_me: error: unrecognized option: $ac_option
3051-Try \`$0 --help' for more information." >&2
3052- { (exit 1); exit 1; }; }
3053+ -*) as_fn_error "unrecognized option: \`$ac_option'
3054+Try \`$0 --help' for more information."
3055 ;;
3056
3057 *=*)
3058 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
3059 # Reject names that are not valid shell variable names.
3060- expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
3061- { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
3062- { (exit 1); exit 1; }; }
3063+ case $ac_envvar in #(
3064+ '' | [0-9]* | *[!_$as_cr_alnum]* )
3065+ as_fn_error "invalid variable name: \`$ac_envvar'" ;;
3066+ esac
3067 eval $ac_envvar=\$ac_optarg
3068 export $ac_envvar ;;
3069
3070 *)
3071 # FIXME: should be removed in autoconf 3.0.
3072- echo "$as_me: WARNING: you should use --build, --host, --target" >&2
3073+ $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
3074 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
3075- echo "$as_me: WARNING: invalid host type: $ac_option" >&2
3076+ $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
3077 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
3078 ;;
3079
3080@@ -1083,23 +1100,36 @@
3081
3082 if test -n "$ac_prev"; then
3083 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
3084- { echo "$as_me: error: missing argument to $ac_option" >&2
3085- { (exit 1); exit 1; }; }
3086-fi
3087-
3088-# Be sure to have absolute directory names.
3089+ as_fn_error "missing argument to $ac_option"
3090+fi
3091+
3092+if test -n "$ac_unrecognized_opts"; then
3093+ case $enable_option_checking in
3094+ no) ;;
3095+ fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
3096+ *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
3097+ esac
3098+fi
3099+
3100+# Check all directory arguments for consistency.
3101 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
3102 datadir sysconfdir sharedstatedir localstatedir includedir \
3103 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
3104 libdir localedir mandir
3105 do
3106 eval ac_val=\$$ac_var
3107+ # Remove trailing slashes.
3108+ case $ac_val in
3109+ */ )
3110+ ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
3111+ eval $ac_var=\$ac_val;;
3112+ esac
3113+ # Be sure to have absolute directory names.
3114 case $ac_val in
3115 [\\/$]* | ?:[\\/]* ) continue;;
3116 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
3117 esac
3118- { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
3119- { (exit 1); exit 1; }; }
3120+ as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
3121 done
3122
3123 # There might be people who depend on the old broken behavior: `$host'
3124@@ -1113,7 +1143,7 @@
3125 if test "x$host_alias" != x; then
3126 if test "x$build_alias" = x; then
3127 cross_compiling=maybe
3128- echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
3129+ $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
3130 If a cross compiler is detected then cross compile mode will be used." >&2
3131 elif test "x$build_alias" != "x$host_alias"; then
3132 cross_compiling=yes
3133@@ -1129,23 +1159,21 @@
3134 ac_pwd=`pwd` && test -n "$ac_pwd" &&
3135 ac_ls_di=`ls -di .` &&
3136 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
3137- { echo "$as_me: error: Working directory cannot be determined" >&2
3138- { (exit 1); exit 1; }; }
3139+ as_fn_error "working directory cannot be determined"
3140 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
3141- { echo "$as_me: error: pwd does not report name of working directory" >&2
3142- { (exit 1); exit 1; }; }
3143+ as_fn_error "pwd does not report name of working directory"
3144
3145
3146 # Find the source files, if location was not specified.
3147 if test -z "$srcdir"; then
3148 ac_srcdir_defaulted=yes
3149 # Try the directory containing this script, then the parent directory.
3150- ac_confdir=`$as_dirname -- "$0" ||
3151-$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3152- X"$0" : 'X\(//\)[^/]' \| \
3153- X"$0" : 'X\(//\)$' \| \
3154- X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3155-echo X"$0" |
3156+ ac_confdir=`$as_dirname -- "$as_myself" ||
3157+$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3158+ X"$as_myself" : 'X\(//\)[^/]' \| \
3159+ X"$as_myself" : 'X\(//\)$' \| \
3160+ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
3161+$as_echo X"$as_myself" |
3162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3163 s//\1/
3164 q
3165@@ -1172,13 +1200,11 @@
3166 fi
3167 if test ! -r "$srcdir/$ac_unique_file"; then
3168 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
3169- { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
3170- { (exit 1); exit 1; }; }
3171+ as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
3172 fi
3173 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
3174 ac_abs_confdir=`(
3175- cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
3176- { (exit 1); exit 1; }; }
3177+ cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
3178 pwd)`
3179 # When building in place, set srcdir=.
3180 if test "$ac_abs_confdir" = "$ac_pwd"; then
3181@@ -1226,9 +1252,9 @@
3182
3183 Installation directories:
3184 --prefix=PREFIX install architecture-independent files in PREFIX
3185- [$ac_default_prefix]
3186+ [$ac_default_prefix]
3187 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
3188- [PREFIX]
3189+ [PREFIX]
3190
3191 By default, \`make install' will install all the files in
3192 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
3193@@ -1238,25 +1264,25 @@
3194 For better control, use the options below.
3195
3196 Fine tuning of the installation directories:
3197- --bindir=DIR user executables [EPREFIX/bin]
3198- --sbindir=DIR system admin executables [EPREFIX/sbin]
3199- --libexecdir=DIR program executables [EPREFIX/libexec]
3200- --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
3201- --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
3202- --localstatedir=DIR modifiable single-machine data [PREFIX/var]
3203- --libdir=DIR object code libraries [EPREFIX/lib]
3204- --includedir=DIR C header files [PREFIX/include]
3205- --oldincludedir=DIR C header files for non-gcc [/usr/include]
3206- --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
3207- --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
3208- --infodir=DIR info documentation [DATAROOTDIR/info]
3209- --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
3210- --mandir=DIR man documentation [DATAROOTDIR/man]
3211- --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
3212- --htmldir=DIR html documentation [DOCDIR]
3213- --dvidir=DIR dvi documentation [DOCDIR]
3214- --pdfdir=DIR pdf documentation [DOCDIR]
3215- --psdir=DIR ps documentation [DOCDIR]
3216+ --bindir=DIR user executables [EPREFIX/bin]
3217+ --sbindir=DIR system admin executables [EPREFIX/sbin]
3218+ --libexecdir=DIR program executables [EPREFIX/libexec]
3219+ --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
3220+ --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
3221+ --localstatedir=DIR modifiable single-machine data [PREFIX/var]
3222+ --libdir=DIR object code libraries [EPREFIX/lib]
3223+ --includedir=DIR C header files [PREFIX/include]
3224+ --oldincludedir=DIR C header files for non-gcc [/usr/include]
3225+ --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
3226+ --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
3227+ --infodir=DIR info documentation [DATAROOTDIR/info]
3228+ --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
3229+ --mandir=DIR man documentation [DATAROOTDIR/man]
3230+ --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
3231+ --htmldir=DIR html documentation [DOCDIR]
3232+ --dvidir=DIR dvi documentation [DOCDIR]
3233+ --pdfdir=DIR pdf documentation [DOCDIR]
3234+ --psdir=DIR ps documentation [DOCDIR]
3235 _ACEOF
3236
3237 cat <<\_ACEOF
3238@@ -1272,6 +1298,7 @@
3239 cat <<\_ACEOF
3240
3241 Optional Features:
3242+ --disable-option-checking ignore unrecognized --enable/--with options
3243 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
3244 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
3245 --enable-debug Turn on debug mode
3246@@ -1289,13 +1316,14 @@
3247 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
3248 nonstandard directory <lib dir>
3249 LIBS libraries to pass to the linker, e.g. -l<library>
3250- CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
3251+ CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
3252 you have headers in a nonstandard directory <include dir>
3253 CPP C preprocessor
3254
3255 Use these variables to override the choices made by `configure' or to help
3256 it to find libraries and programs with nonstandard names/locations.
3257
3258+Report bugs to the package provider.
3259 _ACEOF
3260 ac_status=$?
3261 fi
3262@@ -1303,15 +1331,17 @@
3263 if test "$ac_init_help" = "recursive"; then
3264 # If there are subdirs, report their specific --help.
3265 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
3266- test -d "$ac_dir" || continue
3267+ test -d "$ac_dir" ||
3268+ { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
3269+ continue
3270 ac_builddir=.
3271
3272 case "$ac_dir" in
3273 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
3274 *)
3275- ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
3276+ ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
3277 # A ".." for each directory in $ac_dir_suffix.
3278- ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
3279+ ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
3280 case $ac_top_builddir_sub in
3281 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
3282 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
3283@@ -1347,7 +1377,7 @@
3284 echo &&
3285 $SHELL "$ac_srcdir/configure" --help=recursive
3286 else
3287- echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
3288+ $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
3289 fi || ac_status=$?
3290 cd "$ac_pwd" || { ac_status=$?; break; }
3291 done
3292@@ -1357,10 +1387,9 @@
3293 if $ac_init_version; then
3294 cat <<\_ACEOF
3295 configure
3296-generated by GNU Autoconf 2.61
3297+generated by GNU Autoconf 2.65
3298
3299-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
3300-2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
3301+Copyright (C) 2009 Free Software Foundation, Inc.
3302 This configure script is free software; the Free Software Foundation
3303 gives unlimited permission to copy, distribute and modify it.
3304
3305@@ -1368,12 +1397,364 @@
3306 _ACEOF
3307 exit
3308 fi
3309+
3310+## ------------------------ ##
3311+## Autoconf initialization. ##
3312+## ------------------------ ##
3313+
3314+# ac_fn_c_try_compile LINENO
3315+# --------------------------
3316+# Try to compile conftest.$ac_ext, and return whether this succeeded.
3317+ac_fn_c_try_compile ()
3318+{
3319+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3320+ rm -f conftest.$ac_objext
3321+ if { { ac_try="$ac_compile"
3322+case "(($ac_try" in
3323+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324+ *) ac_try_echo=$ac_try;;
3325+esac
3326+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3327+$as_echo "$ac_try_echo"; } >&5
3328+ (eval "$ac_compile") 2>conftest.err
3329+ ac_status=$?
3330+ if test -s conftest.err; then
3331+ grep -v '^ *+' conftest.err >conftest.er1
3332+ cat conftest.er1 >&5
3333+ mv -f conftest.er1 conftest.err
3334+ fi
3335+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3336+ test $ac_status = 0; } && {
3337+ test -z "$ac_c_werror_flag" ||
3338+ test ! -s conftest.err
3339+ } && test -s conftest.$ac_objext; then :
3340+ ac_retval=0
3341+else
3342+ $as_echo "$as_me: failed program was:" >&5
3343+sed 's/^/| /' conftest.$ac_ext >&5
3344+
3345+ ac_retval=1
3346+fi
3347+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3348+ as_fn_set_status $ac_retval
3349+
3350+} # ac_fn_c_try_compile
3351+
3352+# ac_fn_c_try_link LINENO
3353+# -----------------------
3354+# Try to link conftest.$ac_ext, and return whether this succeeded.
3355+ac_fn_c_try_link ()
3356+{
3357+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3358+ rm -f conftest.$ac_objext conftest$ac_exeext
3359+ if { { ac_try="$ac_link"
3360+case "(($ac_try" in
3361+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3362+ *) ac_try_echo=$ac_try;;
3363+esac
3364+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3365+$as_echo "$ac_try_echo"; } >&5
3366+ (eval "$ac_link") 2>conftest.err
3367+ ac_status=$?
3368+ if test -s conftest.err; then
3369+ grep -v '^ *+' conftest.err >conftest.er1
3370+ cat conftest.er1 >&5
3371+ mv -f conftest.er1 conftest.err
3372+ fi
3373+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3374+ test $ac_status = 0; } && {
3375+ test -z "$ac_c_werror_flag" ||
3376+ test ! -s conftest.err
3377+ } && test -s conftest$ac_exeext && {
3378+ test "$cross_compiling" = yes ||
3379+ $as_test_x conftest$ac_exeext
3380+ }; then :
3381+ ac_retval=0
3382+else
3383+ $as_echo "$as_me: failed program was:" >&5
3384+sed 's/^/| /' conftest.$ac_ext >&5
3385+
3386+ ac_retval=1
3387+fi
3388+ # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
3389+ # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
3390+ # interfere with the next link command; also delete a directory that is
3391+ # left behind by Apple's compiler. We do this before executing the actions.
3392+ rm -rf conftest.dSYM conftest_ipa8_conftest.oo
3393+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3394+ as_fn_set_status $ac_retval
3395+
3396+} # ac_fn_c_try_link
3397+
3398+# ac_fn_c_try_cpp LINENO
3399+# ----------------------
3400+# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
3401+ac_fn_c_try_cpp ()
3402+{
3403+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3404+ if { { ac_try="$ac_cpp conftest.$ac_ext"
3405+case "(($ac_try" in
3406+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407+ *) ac_try_echo=$ac_try;;
3408+esac
3409+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3410+$as_echo "$ac_try_echo"; } >&5
3411+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
3412+ ac_status=$?
3413+ if test -s conftest.err; then
3414+ grep -v '^ *+' conftest.err >conftest.er1
3415+ cat conftest.er1 >&5
3416+ mv -f conftest.er1 conftest.err
3417+ fi
3418+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3419+ test $ac_status = 0; } >/dev/null && {
3420+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3421+ test ! -s conftest.err
3422+ }; then :
3423+ ac_retval=0
3424+else
3425+ $as_echo "$as_me: failed program was:" >&5
3426+sed 's/^/| /' conftest.$ac_ext >&5
3427+
3428+ ac_retval=1
3429+fi
3430+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3431+ as_fn_set_status $ac_retval
3432+
3433+} # ac_fn_c_try_cpp
3434+
3435+# ac_fn_c_check_func LINENO FUNC VAR
3436+# ----------------------------------
3437+# Tests whether FUNC exists, setting the cache variable VAR accordingly
3438+ac_fn_c_check_func ()
3439+{
3440+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3441+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3442+$as_echo_n "checking for $2... " >&6; }
3443+if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
3444+ $as_echo_n "(cached) " >&6
3445+else
3446+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447+/* end confdefs.h. */
3448+/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
3449+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
3450+#define $2 innocuous_$2
3451+
3452+/* System header to define __stub macros and hopefully few prototypes,
3453+ which can conflict with char $2 (); below.
3454+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3455+ <limits.h> exists even on freestanding compilers. */
3456+
3457+#ifdef __STDC__
3458+# include <limits.h>
3459+#else
3460+# include <assert.h>
3461+#endif
3462+
3463+#undef $2
3464+
3465+/* Override any GCC internal prototype to avoid an error.
3466+ Use char because int might match the return type of a GCC
3467+ builtin and then its argument prototype would still apply. */
3468+#ifdef __cplusplus
3469+extern "C"
3470+#endif
3471+char $2 ();
3472+/* The GNU C library defines this for functions which it implements
3473+ to always fail with ENOSYS. Some functions are actually named
3474+ something starting with __ and the normal name is an alias. */
3475+#if defined __stub_$2 || defined __stub___$2
3476+choke me
3477+#endif
3478+
3479+int
3480+main ()
3481+{
3482+return $2 ();
3483+ ;
3484+ return 0;
3485+}
3486+_ACEOF
3487+if ac_fn_c_try_link "$LINENO"; then :
3488+ eval "$3=yes"
3489+else
3490+ eval "$3=no"
3491+fi
3492+rm -f core conftest.err conftest.$ac_objext \
3493+ conftest$ac_exeext conftest.$ac_ext
3494+fi
3495+eval ac_res=\$$3
3496+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3497+$as_echo "$ac_res" >&6; }
3498+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3499+
3500+} # ac_fn_c_check_func
3501+
3502+# ac_fn_c_try_run LINENO
3503+# ----------------------
3504+# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
3505+# that executables *can* be run.
3506+ac_fn_c_try_run ()
3507+{
3508+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3509+ if { { ac_try="$ac_link"
3510+case "(($ac_try" in
3511+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3512+ *) ac_try_echo=$ac_try;;
3513+esac
3514+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3515+$as_echo "$ac_try_echo"; } >&5
3516+ (eval "$ac_link") 2>&5
3517+ ac_status=$?
3518+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3519+ test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
3520+ { { case "(($ac_try" in
3521+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522+ *) ac_try_echo=$ac_try;;
3523+esac
3524+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3525+$as_echo "$ac_try_echo"; } >&5
3526+ (eval "$ac_try") 2>&5
3527+ ac_status=$?
3528+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3529+ test $ac_status = 0; }; }; then :
3530+ ac_retval=0
3531+else
3532+ $as_echo "$as_me: program exited with status $ac_status" >&5
3533+ $as_echo "$as_me: failed program was:" >&5
3534+sed 's/^/| /' conftest.$ac_ext >&5
3535+
3536+ ac_retval=$ac_status
3537+fi
3538+ rm -rf conftest.dSYM conftest_ipa8_conftest.oo
3539+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3540+ as_fn_set_status $ac_retval
3541+
3542+} # ac_fn_c_try_run
3543+
3544+# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
3545+# -------------------------------------------------------
3546+# Tests whether HEADER exists and can be compiled using the include files in
3547+# INCLUDES, setting the cache variable VAR accordingly.
3548+ac_fn_c_check_header_compile ()
3549+{
3550+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3551+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3552+$as_echo_n "checking for $2... " >&6; }
3553+if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
3554+ $as_echo_n "(cached) " >&6
3555+else
3556+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3557+/* end confdefs.h. */
3558+$4
3559+#include <$2>
3560+_ACEOF
3561+if ac_fn_c_try_compile "$LINENO"; then :
3562+ eval "$3=yes"
3563+else
3564+ eval "$3=no"
3565+fi
3566+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3567+fi
3568+eval ac_res=\$$3
3569+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3570+$as_echo "$ac_res" >&6; }
3571+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3572+
3573+} # ac_fn_c_check_header_compile
3574+
3575+# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
3576+# -------------------------------------------------------
3577+# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3578+# the include files in INCLUDES and setting the cache variable VAR
3579+# accordingly.
3580+ac_fn_c_check_header_mongrel ()
3581+{
3582+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3583+ if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
3584+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3585+$as_echo_n "checking for $2... " >&6; }
3586+if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
3587+ $as_echo_n "(cached) " >&6
3588+fi
3589+eval ac_res=\$$3
3590+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3591+$as_echo "$ac_res" >&6; }
3592+else
3593+ # Is the header compilable?
3594+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3595+$as_echo_n "checking $2 usability... " >&6; }
3596+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3597+/* end confdefs.h. */
3598+$4
3599+#include <$2>
3600+_ACEOF
3601+if ac_fn_c_try_compile "$LINENO"; then :
3602+ ac_header_compiler=yes
3603+else
3604+ ac_header_compiler=no
3605+fi
3606+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3607+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3608+$as_echo "$ac_header_compiler" >&6; }
3609+
3610+# Is the header present?
3611+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3612+$as_echo_n "checking $2 presence... " >&6; }
3613+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3614+/* end confdefs.h. */
3615+#include <$2>
3616+_ACEOF
3617+if ac_fn_c_try_cpp "$LINENO"; then :
3618+ ac_header_preproc=yes
3619+else
3620+ ac_header_preproc=no
3621+fi
3622+rm -f conftest.err conftest.$ac_ext
3623+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3624+$as_echo "$ac_header_preproc" >&6; }
3625+
3626+# So? What about this header?
3627+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
3628+ yes:no: )
3629+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3630+$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3631+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3632+$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3633+ ;;
3634+ no:yes:* )
3635+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3636+$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3637+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3638+$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3639+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3640+$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3641+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3642+$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3643+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3644+$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3645+ ;;
3646+esac
3647+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3648+$as_echo_n "checking for $2... " >&6; }
3649+if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
3650+ $as_echo_n "(cached) " >&6
3651+else
3652+ eval "$3=\$ac_header_compiler"
3653+fi
3654+eval ac_res=\$$3
3655+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3656+$as_echo "$ac_res" >&6; }
3657+fi
3658+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3659+
3660+} # ac_fn_c_check_header_mongrel
3661 cat >config.log <<_ACEOF
3662 This file contains any messages produced by compilers while
3663 running configure, to aid debugging if configure makes a mistake.
3664
3665 It was created by $as_me, which was
3666-generated by GNU Autoconf 2.61. Invocation command line was
3667+generated by GNU Autoconf 2.65. Invocation command line was
3668
3669 $ $0 $@
3670
3671@@ -1409,8 +1790,8 @@
3672 do
3673 IFS=$as_save_IFS
3674 test -z "$as_dir" && as_dir=.
3675- echo "PATH: $as_dir"
3676-done
3677+ $as_echo "PATH: $as_dir"
3678+ done
3679 IFS=$as_save_IFS
3680
3681 } >&5
3682@@ -1444,12 +1825,12 @@
3683 | -silent | --silent | --silen | --sile | --sil)
3684 continue ;;
3685 *\'*)
3686- ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3687+ ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3688 esac
3689 case $ac_pass in
3690- 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
3691+ 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3692 2)
3693- ac_configure_args1="$ac_configure_args1 '$ac_arg'"
3694+ as_fn_append ac_configure_args1 " '$ac_arg'"
3695 if test $ac_must_keep_next = true; then
3696 ac_must_keep_next=false # Got value, back to normal.
3697 else
3698@@ -1465,13 +1846,13 @@
3699 -* ) ac_must_keep_next=true ;;
3700 esac
3701 fi
3702- ac_configure_args="$ac_configure_args '$ac_arg'"
3703+ as_fn_append ac_configure_args " '$ac_arg'"
3704 ;;
3705 esac
3706 done
3707 done
3708-$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
3709-$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
3710+{ ac_configure_args0=; unset ac_configure_args0;}
3711+{ ac_configure_args1=; unset ac_configure_args1;}
3712
3713 # When interrupted or exit'd, cleanup temporary files, and complete
3714 # config.log. We remove comments because anyway the quotes in there
3715@@ -1496,12 +1877,13 @@
3716 case $ac_val in #(
3717 *${as_nl}*)
3718 case $ac_var in #(
3719- *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
3720-echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
3721+ *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3722+$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3723 esac
3724 case $ac_var in #(
3725 _ | IFS | as_nl) ;; #(
3726- *) $as_unset $ac_var ;;
3727+ BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3728+ *) { eval $ac_var=; unset $ac_var;} ;;
3729 esac ;;
3730 esac
3731 done
3732@@ -1530,9 +1912,9 @@
3733 do
3734 eval ac_val=\$$ac_var
3735 case $ac_val in
3736- *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3737+ *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3738 esac
3739- echo "$ac_var='\''$ac_val'\''"
3740+ $as_echo "$ac_var='\''$ac_val'\''"
3741 done | sort
3742 echo
3743
3744@@ -1547,9 +1929,9 @@
3745 do
3746 eval ac_val=\$$ac_var
3747 case $ac_val in
3748- *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3749+ *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3750 esac
3751- echo "$ac_var='\''$ac_val'\''"
3752+ $as_echo "$ac_var='\''$ac_val'\''"
3753 done | sort
3754 echo
3755 fi
3756@@ -1565,83 +1947,88 @@
3757 echo
3758 fi
3759 test "$ac_signal" != 0 &&
3760- echo "$as_me: caught signal $ac_signal"
3761- echo "$as_me: exit $exit_status"
3762+ $as_echo "$as_me: caught signal $ac_signal"
3763+ $as_echo "$as_me: exit $exit_status"
3764 } >&5
3765 rm -f core *.core core.conftest.* &&
3766 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3767 exit $exit_status
3768 ' 0
3769 for ac_signal in 1 2 13 15; do
3770- trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
3771+ trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3772 done
3773 ac_signal=0
3774
3775 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3776 rm -f -r conftest* confdefs.h
3777
3778+$as_echo "/* confdefs.h */" > confdefs.h
3779+
3780 # Predefined preprocessor variables.
3781
3782 cat >>confdefs.h <<_ACEOF
3783 #define PACKAGE_NAME "$PACKAGE_NAME"
3784 _ACEOF
3785
3786-
3787 cat >>confdefs.h <<_ACEOF
3788 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3789 _ACEOF
3790
3791-
3792 cat >>confdefs.h <<_ACEOF
3793 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3794 _ACEOF
3795
3796-
3797 cat >>confdefs.h <<_ACEOF
3798 #define PACKAGE_STRING "$PACKAGE_STRING"
3799 _ACEOF
3800
3801-
3802 cat >>confdefs.h <<_ACEOF
3803 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3804 _ACEOF
3805
3806+cat >>confdefs.h <<_ACEOF
3807+#define PACKAGE_URL "$PACKAGE_URL"
3808+_ACEOF
3809+
3810
3811 # Let the site file select an alternate cache file if it wants to.
3812-# Prefer explicitly selected file to automatically selected ones.
3813+# Prefer an explicitly selected file to automatically selected ones.
3814+ac_site_file1=NONE
3815+ac_site_file2=NONE
3816 if test -n "$CONFIG_SITE"; then
3817- set x "$CONFIG_SITE"
3818+ ac_site_file1=$CONFIG_SITE
3819 elif test "x$prefix" != xNONE; then
3820- set x "$prefix/share/config.site" "$prefix/etc/config.site"
3821+ ac_site_file1=$prefix/share/config.site
3822+ ac_site_file2=$prefix/etc/config.site
3823 else
3824- set x "$ac_default_prefix/share/config.site" \
3825- "$ac_default_prefix/etc/config.site"
3826+ ac_site_file1=$ac_default_prefix/share/config.site
3827+ ac_site_file2=$ac_default_prefix/etc/config.site
3828 fi
3829-shift
3830-for ac_site_file
3831+for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3832 do
3833- if test -r "$ac_site_file"; then
3834- { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
3835-echo "$as_me: loading site script $ac_site_file" >&6;}
3836+ test "x$ac_site_file" = xNONE && continue
3837+ if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3838+ { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3839+$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3840 sed 's/^/| /' "$ac_site_file" >&5
3841 . "$ac_site_file"
3842 fi
3843 done
3844
3845 if test -r "$cache_file"; then
3846- # Some versions of bash will fail to source /dev/null (special
3847- # files actually), so we avoid doing that.
3848- if test -f "$cache_file"; then
3849- { echo "$as_me:$LINENO: loading cache $cache_file" >&5
3850-echo "$as_me: loading cache $cache_file" >&6;}
3851+ # Some versions of bash will fail to source /dev/null (special files
3852+ # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3853+ if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3854+ { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3855+$as_echo "$as_me: loading cache $cache_file" >&6;}
3856 case $cache_file in
3857 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3858 *) . "./$cache_file";;
3859 esac
3860 fi
3861 else
3862- { echo "$as_me:$LINENO: creating cache $cache_file" >&5
3863-echo "$as_me: creating cache $cache_file" >&6;}
3864+ { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3865+$as_echo "$as_me: creating cache $cache_file" >&6;}
3866 >$cache_file
3867 fi
3868
3869@@ -1655,60 +2042,56 @@
3870 eval ac_new_val=\$ac_env_${ac_var}_value
3871 case $ac_old_set,$ac_new_set in
3872 set,)
3873- { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3874-echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3875+ { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3876+$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3877 ac_cache_corrupted=: ;;
3878 ,set)
3879- { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
3880-echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3881+ { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3882+$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3883 ac_cache_corrupted=: ;;
3884 ,);;
3885 *)
3886 if test "x$ac_old_val" != "x$ac_new_val"; then
3887- { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
3888-echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3889- { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
3890-echo "$as_me: former value: $ac_old_val" >&2;}
3891- { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
3892-echo "$as_me: current value: $ac_new_val" >&2;}
3893- ac_cache_corrupted=:
3894+ # differences in whitespace do not lead to failure.
3895+ ac_old_val_w=`echo x $ac_old_val`
3896+ ac_new_val_w=`echo x $ac_new_val`
3897+ if test "$ac_old_val_w" != "$ac_new_val_w"; then
3898+ { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3899+$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3900+ ac_cache_corrupted=:
3901+ else
3902+ { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3903+$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3904+ eval $ac_var=\$ac_old_val
3905+ fi
3906+ { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3907+$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3908+ { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3909+$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3910 fi;;
3911 esac
3912 # Pass precious variables to config.status.
3913 if test "$ac_new_set" = set; then
3914 case $ac_new_val in
3915- *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3916+ *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3917 *) ac_arg=$ac_var=$ac_new_val ;;
3918 esac
3919 case " $ac_configure_args " in
3920 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3921- *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
3922+ *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3923 esac
3924 fi
3925 done
3926 if $ac_cache_corrupted; then
3927- { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
3928-echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3929- { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
3930-echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
3931- { (exit 1); exit 1; }; }
3932+ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3933+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3934+ { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3935+$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3936+ as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3937 fi
3938-
3939-
3940-
3941-
3942-
3943-
3944-
3945-
3946-
3947-
3948-
3949-
3950-
3951-
3952-
3953-
3954+## -------------------- ##
3955+## Main body of script. ##
3956+## -------------------- ##
3957
3958 ac_ext=c
3959 ac_cpp='$CPP $CPPFLAGS'
3960@@ -1730,24 +2113,16 @@
3961
3962 ac_aux_dir=
3963 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3964- if test -f "$ac_dir/install-sh"; then
3965- ac_aux_dir=$ac_dir
3966- ac_install_sh="$ac_aux_dir/install-sh -c"
3967- break
3968- elif test -f "$ac_dir/install.sh"; then
3969- ac_aux_dir=$ac_dir
3970- ac_install_sh="$ac_aux_dir/install.sh -c"
3971- break
3972- elif test -f "$ac_dir/shtool"; then
3973- ac_aux_dir=$ac_dir
3974- ac_install_sh="$ac_aux_dir/shtool install -c"
3975- break
3976- fi
3977+ for ac_t in install-sh install.sh shtool; do
3978+ if test -f "$ac_dir/$ac_t"; then
3979+ ac_aux_dir=$ac_dir
3980+ ac_install_sh="$ac_aux_dir/$ac_t -c"
3981+ break 2
3982+ fi
3983+ done
3984 done
3985 if test -z "$ac_aux_dir"; then
3986- { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
3987-echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
3988- { (exit 1); exit 1; }; }
3989+ as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3990 fi
3991
3992 # These three variables are undocumented and unsupported,
3993@@ -1761,35 +2136,27 @@
3994
3995 # Make sure we can run config.sub.
3996 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3997- { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3998-echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3999- { (exit 1); exit 1; }; }
4000+ as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4001
4002-{ echo "$as_me:$LINENO: checking build system type" >&5
4003-echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4004-if test "${ac_cv_build+set}" = set; then
4005- echo $ECHO_N "(cached) $ECHO_C" >&6
4006+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4007+$as_echo_n "checking build system type... " >&6; }
4008+if test "${ac_cv_build+set}" = set; then :
4009+ $as_echo_n "(cached) " >&6
4010 else
4011 ac_build_alias=$build_alias
4012 test "x$ac_build_alias" = x &&
4013 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4014 test "x$ac_build_alias" = x &&
4015- { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4016-echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4017- { (exit 1); exit 1; }; }
4018+ as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4019 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4020- { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4021-echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4022- { (exit 1); exit 1; }; }
4023+ as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4024
4025 fi
4026-{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4027-echo "${ECHO_T}$ac_cv_build" >&6; }
4028+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4029+$as_echo "$ac_cv_build" >&6; }
4030 case $ac_cv_build in
4031 *-*-*) ;;
4032-*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4033-echo "$as_me: error: invalid value of canonical build" >&2;}
4034- { (exit 1); exit 1; }; };;
4035+*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4036 esac
4037 build=$ac_cv_build
4038 ac_save_IFS=$IFS; IFS='-'
4039@@ -1805,28 +2172,24 @@
4040 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4041
4042
4043-{ echo "$as_me:$LINENO: checking host system type" >&5
4044-echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4045-if test "${ac_cv_host+set}" = set; then
4046- echo $ECHO_N "(cached) $ECHO_C" >&6
4047+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4048+$as_echo_n "checking host system type... " >&6; }
4049+if test "${ac_cv_host+set}" = set; then :
4050+ $as_echo_n "(cached) " >&6
4051 else
4052 if test "x$host_alias" = x; then
4053 ac_cv_host=$ac_cv_build
4054 else
4055 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4056- { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4057-echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4058- { (exit 1); exit 1; }; }
4059+ as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4060 fi
4061
4062 fi
4063-{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4064-echo "${ECHO_T}$ac_cv_host" >&6; }
4065+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4066+$as_echo "$ac_cv_host" >&6; }
4067 case $ac_cv_host in
4068 *-*-*) ;;
4069-*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4070-echo "$as_me: error: invalid value of canonical host" >&2;}
4071- { (exit 1); exit 1; }; };;
4072+*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4073 esac
4074 host=$ac_cv_host
4075 ac_save_IFS=$IFS; IFS='-'
4076@@ -1850,8 +2213,6 @@
4077
4078
4079
4080-
4081-
4082 # Checks for programs.
4083 ac_ext=c
4084 ac_cpp='$CPP $CPPFLAGS'
4085@@ -1861,10 +2222,10 @@
4086 if test -n "$ac_tool_prefix"; then
4087 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4088 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4089-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4090-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4091-if test "${ac_cv_prog_CC+set}" = set; then
4092- echo $ECHO_N "(cached) $ECHO_C" >&6
4093+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4094+$as_echo_n "checking for $ac_word... " >&6; }
4095+if test "${ac_cv_prog_CC+set}" = set; then :
4096+ $as_echo_n "(cached) " >&6
4097 else
4098 if test -n "$CC"; then
4099 ac_cv_prog_CC="$CC" # Let the user override the test.
4100@@ -1874,25 +2235,25 @@
4101 do
4102 IFS=$as_save_IFS
4103 test -z "$as_dir" && as_dir=.
4104- for ac_exec_ext in '' $ac_executable_extensions; do
4105+ for ac_exec_ext in '' $ac_executable_extensions; do
4106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4107 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4108- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4109+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4110 break 2
4111 fi
4112 done
4113-done
4114+ done
4115 IFS=$as_save_IFS
4116
4117 fi
4118 fi
4119 CC=$ac_cv_prog_CC
4120 if test -n "$CC"; then
4121- { echo "$as_me:$LINENO: result: $CC" >&5
4122-echo "${ECHO_T}$CC" >&6; }
4123+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4124+$as_echo "$CC" >&6; }
4125 else
4126- { echo "$as_me:$LINENO: result: no" >&5
4127-echo "${ECHO_T}no" >&6; }
4128+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4129+$as_echo "no" >&6; }
4130 fi
4131
4132
4133@@ -1901,10 +2262,10 @@
4134 ac_ct_CC=$CC
4135 # Extract the first word of "gcc", so it can be a program name with args.
4136 set dummy gcc; ac_word=$2
4137-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4138-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4139-if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4140- echo $ECHO_N "(cached) $ECHO_C" >&6
4141+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4142+$as_echo_n "checking for $ac_word... " >&6; }
4143+if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4144+ $as_echo_n "(cached) " >&6
4145 else
4146 if test -n "$ac_ct_CC"; then
4147 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4148@@ -1914,25 +2275,25 @@
4149 do
4150 IFS=$as_save_IFS
4151 test -z "$as_dir" && as_dir=.
4152- for ac_exec_ext in '' $ac_executable_extensions; do
4153+ for ac_exec_ext in '' $ac_executable_extensions; do
4154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4155 ac_cv_prog_ac_ct_CC="gcc"
4156- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4157+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4158 break 2
4159 fi
4160 done
4161-done
4162+ done
4163 IFS=$as_save_IFS
4164
4165 fi
4166 fi
4167 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4168 if test -n "$ac_ct_CC"; then
4169- { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4170-echo "${ECHO_T}$ac_ct_CC" >&6; }
4171+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4172+$as_echo "$ac_ct_CC" >&6; }
4173 else
4174- { echo "$as_me:$LINENO: result: no" >&5
4175-echo "${ECHO_T}no" >&6; }
4176+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4177+$as_echo "no" >&6; }
4178 fi
4179
4180 if test "x$ac_ct_CC" = x; then
4181@@ -1940,12 +2301,8 @@
4182 else
4183 case $cross_compiling:$ac_tool_warned in
4184 yes:)
4185-{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4186-whose name does not start with the host triplet. If you think this
4187-configuration is useful to you, please write to autoconf@gnu.org." >&5
4188-echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4189-whose name does not start with the host triplet. If you think this
4190-configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4191+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4192+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4193 ac_tool_warned=yes ;;
4194 esac
4195 CC=$ac_ct_CC
4196@@ -1958,10 +2315,10 @@
4197 if test -n "$ac_tool_prefix"; then
4198 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4199 set dummy ${ac_tool_prefix}cc; ac_word=$2
4200-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4201-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4202-if test "${ac_cv_prog_CC+set}" = set; then
4203- echo $ECHO_N "(cached) $ECHO_C" >&6
4204+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4205+$as_echo_n "checking for $ac_word... " >&6; }
4206+if test "${ac_cv_prog_CC+set}" = set; then :
4207+ $as_echo_n "(cached) " >&6
4208 else
4209 if test -n "$CC"; then
4210 ac_cv_prog_CC="$CC" # Let the user override the test.
4211@@ -1971,25 +2328,25 @@
4212 do
4213 IFS=$as_save_IFS
4214 test -z "$as_dir" && as_dir=.
4215- for ac_exec_ext in '' $ac_executable_extensions; do
4216+ for ac_exec_ext in '' $ac_executable_extensions; do
4217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4218 ac_cv_prog_CC="${ac_tool_prefix}cc"
4219- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4220+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4221 break 2
4222 fi
4223 done
4224-done
4225+ done
4226 IFS=$as_save_IFS
4227
4228 fi
4229 fi
4230 CC=$ac_cv_prog_CC
4231 if test -n "$CC"; then
4232- { echo "$as_me:$LINENO: result: $CC" >&5
4233-echo "${ECHO_T}$CC" >&6; }
4234+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4235+$as_echo "$CC" >&6; }
4236 else
4237- { echo "$as_me:$LINENO: result: no" >&5
4238-echo "${ECHO_T}no" >&6; }
4239+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4240+$as_echo "no" >&6; }
4241 fi
4242
4243
4244@@ -1998,10 +2355,10 @@
4245 if test -z "$CC"; then
4246 # Extract the first word of "cc", so it can be a program name with args.
4247 set dummy cc; ac_word=$2
4248-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4249-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4250-if test "${ac_cv_prog_CC+set}" = set; then
4251- echo $ECHO_N "(cached) $ECHO_C" >&6
4252+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4253+$as_echo_n "checking for $ac_word... " >&6; }
4254+if test "${ac_cv_prog_CC+set}" = set; then :
4255+ $as_echo_n "(cached) " >&6
4256 else
4257 if test -n "$CC"; then
4258 ac_cv_prog_CC="$CC" # Let the user override the test.
4259@@ -2012,18 +2369,18 @@
4260 do
4261 IFS=$as_save_IFS
4262 test -z "$as_dir" && as_dir=.
4263- for ac_exec_ext in '' $ac_executable_extensions; do
4264+ for ac_exec_ext in '' $ac_executable_extensions; do
4265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4266 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4267 ac_prog_rejected=yes
4268 continue
4269 fi
4270 ac_cv_prog_CC="cc"
4271- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4272+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4273 break 2
4274 fi
4275 done
4276-done
4277+ done
4278 IFS=$as_save_IFS
4279
4280 if test $ac_prog_rejected = yes; then
4281@@ -2042,11 +2399,11 @@
4282 fi
4283 CC=$ac_cv_prog_CC
4284 if test -n "$CC"; then
4285- { echo "$as_me:$LINENO: result: $CC" >&5
4286-echo "${ECHO_T}$CC" >&6; }
4287+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4288+$as_echo "$CC" >&6; }
4289 else
4290- { echo "$as_me:$LINENO: result: no" >&5
4291-echo "${ECHO_T}no" >&6; }
4292+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4293+$as_echo "no" >&6; }
4294 fi
4295
4296
4297@@ -2057,10 +2414,10 @@
4298 do
4299 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4300 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4301-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4302-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4303-if test "${ac_cv_prog_CC+set}" = set; then
4304- echo $ECHO_N "(cached) $ECHO_C" >&6
4305+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4306+$as_echo_n "checking for $ac_word... " >&6; }
4307+if test "${ac_cv_prog_CC+set}" = set; then :
4308+ $as_echo_n "(cached) " >&6
4309 else
4310 if test -n "$CC"; then
4311 ac_cv_prog_CC="$CC" # Let the user override the test.
4312@@ -2070,25 +2427,25 @@
4313 do
4314 IFS=$as_save_IFS
4315 test -z "$as_dir" && as_dir=.
4316- for ac_exec_ext in '' $ac_executable_extensions; do
4317+ for ac_exec_ext in '' $ac_executable_extensions; do
4318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4319 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4320- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4321+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4322 break 2
4323 fi
4324 done
4325-done
4326+ done
4327 IFS=$as_save_IFS
4328
4329 fi
4330 fi
4331 CC=$ac_cv_prog_CC
4332 if test -n "$CC"; then
4333- { echo "$as_me:$LINENO: result: $CC" >&5
4334-echo "${ECHO_T}$CC" >&6; }
4335+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4336+$as_echo "$CC" >&6; }
4337 else
4338- { echo "$as_me:$LINENO: result: no" >&5
4339-echo "${ECHO_T}no" >&6; }
4340+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4341+$as_echo "no" >&6; }
4342 fi
4343
4344
4345@@ -2101,10 +2458,10 @@
4346 do
4347 # Extract the first word of "$ac_prog", so it can be a program name with args.
4348 set dummy $ac_prog; ac_word=$2
4349-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4350-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4351-if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4352- echo $ECHO_N "(cached) $ECHO_C" >&6
4353+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4354+$as_echo_n "checking for $ac_word... " >&6; }
4355+if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4356+ $as_echo_n "(cached) " >&6
4357 else
4358 if test -n "$ac_ct_CC"; then
4359 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4360@@ -2114,25 +2471,25 @@
4361 do
4362 IFS=$as_save_IFS
4363 test -z "$as_dir" && as_dir=.
4364- for ac_exec_ext in '' $ac_executable_extensions; do
4365+ for ac_exec_ext in '' $ac_executable_extensions; do
4366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4367 ac_cv_prog_ac_ct_CC="$ac_prog"
4368- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4369+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4370 break 2
4371 fi
4372 done
4373-done
4374+ done
4375 IFS=$as_save_IFS
4376
4377 fi
4378 fi
4379 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4380 if test -n "$ac_ct_CC"; then
4381- { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4382-echo "${ECHO_T}$ac_ct_CC" >&6; }
4383+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4384+$as_echo "$ac_ct_CC" >&6; }
4385 else
4386- { echo "$as_me:$LINENO: result: no" >&5
4387-echo "${ECHO_T}no" >&6; }
4388+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4389+$as_echo "no" >&6; }
4390 fi
4391
4392
4393@@ -2144,12 +2501,8 @@
4394 else
4395 case $cross_compiling:$ac_tool_warned in
4396 yes:)
4397-{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4398-whose name does not start with the host triplet. If you think this
4399-configuration is useful to you, please write to autoconf@gnu.org." >&5
4400-echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4401-whose name does not start with the host triplet. If you think this
4402-configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4403+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4404+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4405 ac_tool_warned=yes ;;
4406 esac
4407 CC=$ac_ct_CC
4408@@ -2159,51 +2512,37 @@
4409 fi
4410
4411
4412-test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4413-See \`config.log' for more details." >&5
4414-echo "$as_me: error: no acceptable C compiler found in \$PATH
4415-See \`config.log' for more details." >&2;}
4416- { (exit 1); exit 1; }; }
4417+test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4418+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4419+as_fn_error "no acceptable C compiler found in \$PATH
4420+See \`config.log' for more details." "$LINENO" 5; }
4421
4422 # Provide some information about the compiler.
4423-echo "$as_me:$LINENO: checking for C compiler version" >&5
4424-ac_compiler=`set X $ac_compile; echo $2`
4425-{ (ac_try="$ac_compiler --version >&5"
4426-case "(($ac_try" in
4427- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4428- *) ac_try_echo=$ac_try;;
4429-esac
4430-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4431- (eval "$ac_compiler --version >&5") 2>&5
4432- ac_status=$?
4433- echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434- (exit $ac_status); }
4435-{ (ac_try="$ac_compiler -v >&5"
4436-case "(($ac_try" in
4437- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4438- *) ac_try_echo=$ac_try;;
4439-esac
4440-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4441- (eval "$ac_compiler -v >&5") 2>&5
4442- ac_status=$?
4443- echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444- (exit $ac_status); }
4445-{ (ac_try="$ac_compiler -V >&5"
4446-case "(($ac_try" in
4447- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4448- *) ac_try_echo=$ac_try;;
4449-esac
4450-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4451- (eval "$ac_compiler -V >&5") 2>&5
4452- ac_status=$?
4453- echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454- (exit $ac_status); }
4455+$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4456+set X $ac_compile
4457+ac_compiler=$2
4458+for ac_option in --version -v -V -qversion; do
4459+ { { ac_try="$ac_compiler $ac_option >&5"
4460+case "(($ac_try" in
4461+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4462+ *) ac_try_echo=$ac_try;;
4463+esac
4464+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4465+$as_echo "$ac_try_echo"; } >&5
4466+ (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4467+ ac_status=$?
4468+ if test -s conftest.err; then
4469+ sed '10a\
4470+... rest of stderr output deleted ...
4471+ 10q' conftest.err >conftest.er1
4472+ cat conftest.er1 >&5
4473+ fi
4474+ rm -f conftest.er1 conftest.err
4475+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4476+ test $ac_status = 0; }
4477+done
4478
4479-cat >conftest.$ac_ext <<_ACEOF
4480-/* confdefs.h. */
4481-_ACEOF
4482-cat confdefs.h >>conftest.$ac_ext
4483-cat >>conftest.$ac_ext <<_ACEOF
4484+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4485 /* end confdefs.h. */
4486
4487 int
4488@@ -2215,42 +2554,38 @@
4489 }
4490 _ACEOF
4491 ac_clean_files_save=$ac_clean_files
4492-ac_clean_files="$ac_clean_files a.out a.exe b.out"
4493+ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4494 # Try to create an executable without -o first, disregard a.out.
4495 # It will help us diagnose broken compilers, and finding out an intuition
4496 # of exeext.
4497-{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4498-echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
4499-ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4500-#
4501-# List of possible output files, starting from the most likely.
4502-# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
4503-# only as a last resort. b.out is created by i960 compilers.
4504-ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
4505-#
4506-# The IRIX 6 linker writes into existing files which may not be
4507-# executable, retaining their permissions. Remove them first so a
4508-# subsequent execution test works.
4509+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4510+$as_echo_n "checking whether the C compiler works... " >&6; }
4511+ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4512+
4513+# The possible output files:
4514+ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4515+
4516 ac_rmfiles=
4517 for ac_file in $ac_files
4518 do
4519 case $ac_file in
4520- *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
4521+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4522 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4523 esac
4524 done
4525 rm -f $ac_rmfiles
4526
4527-if { (ac_try="$ac_link_default"
4528+if { { ac_try="$ac_link_default"
4529 case "(($ac_try" in
4530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4531 *) ac_try_echo=$ac_try;;
4532 esac
4533-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4534+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4535+$as_echo "$ac_try_echo"; } >&5
4536 (eval "$ac_link_default") 2>&5
4537 ac_status=$?
4538- echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539- (exit $ac_status); }; then
4540+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4541+ test $ac_status = 0; }; then :
4542 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4543 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4544 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4545@@ -2260,14 +2595,14 @@
4546 do
4547 test -f "$ac_file" || continue
4548 case $ac_file in
4549- *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
4550+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4551 ;;
4552 [ab].out )
4553 # We found the default executable, but exeext='' is most
4554 # certainly right.
4555 break;;
4556 *.* )
4557- if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4558+ if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4559 then :; else
4560 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4561 fi
4562@@ -2286,78 +2621,42 @@
4563 else
4564 ac_file=''
4565 fi
4566-
4567-{ echo "$as_me:$LINENO: result: $ac_file" >&5
4568-echo "${ECHO_T}$ac_file" >&6; }
4569-if test -z "$ac_file"; then
4570- echo "$as_me: failed program was:" >&5
4571+if test -z "$ac_file"; then :
4572+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4573+$as_echo "no" >&6; }
4574+$as_echo "$as_me: failed program was:" >&5
4575 sed 's/^/| /' conftest.$ac_ext >&5
4576
4577-{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
4578-See \`config.log' for more details." >&5
4579-echo "$as_me: error: C compiler cannot create executables
4580-See \`config.log' for more details." >&2;}
4581- { (exit 77); exit 77; }; }
4582+{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4583+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4584+{ as_fn_set_status 77
4585+as_fn_error "C compiler cannot create executables
4586+See \`config.log' for more details." "$LINENO" 5; }; }
4587+else
4588+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4589+$as_echo "yes" >&6; }
4590 fi
4591-
4592+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4593+$as_echo_n "checking for C compiler default output file name... " >&6; }
4594+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4595+$as_echo "$ac_file" >&6; }
4596 ac_exeext=$ac_cv_exeext
4597
4598-# Check that the compiler produces executables we can run. If not, either
4599-# the compiler is broken, or we cross compile.
4600-{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4601-echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
4602-# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4603-# If not cross compiling, check that we can run a simple program.
4604-if test "$cross_compiling" != yes; then
4605- if { ac_try='./$ac_file'
4606- { (case "(($ac_try" in
4607- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4608- *) ac_try_echo=$ac_try;;
4609-esac
4610-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4611- (eval "$ac_try") 2>&5
4612- ac_status=$?
4613- echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614- (exit $ac_status); }; }; then
4615- cross_compiling=no
4616- else
4617- if test "$cross_compiling" = maybe; then
4618- cross_compiling=yes
4619- else
4620- { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4621-If you meant to cross compile, use \`--host'.
4622-See \`config.log' for more details." >&5
4623-echo "$as_me: error: cannot run C compiled programs.
4624-If you meant to cross compile, use \`--host'.
4625-See \`config.log' for more details." >&2;}
4626- { (exit 1); exit 1; }; }
4627- fi
4628- fi
4629-fi
4630-{ echo "$as_me:$LINENO: result: yes" >&5
4631-echo "${ECHO_T}yes" >&6; }
4632-
4633-rm -f a.out a.exe conftest$ac_cv_exeext b.out
4634+rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4635 ac_clean_files=$ac_clean_files_save
4636-# Check that the compiler produces executables we can run. If not, either
4637-# the compiler is broken, or we cross compile.
4638-{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4639-echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
4640-{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
4641-echo "${ECHO_T}$cross_compiling" >&6; }
4642-
4643-{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
4644-echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
4645-if { (ac_try="$ac_link"
4646+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4647+$as_echo_n "checking for suffix of executables... " >&6; }
4648+if { { ac_try="$ac_link"
4649 case "(($ac_try" in
4650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4651 *) ac_try_echo=$ac_try;;
4652 esac
4653-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4654+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4655+$as_echo "$ac_try_echo"; } >&5
4656 (eval "$ac_link") 2>&5
4657 ac_status=$?
4658- echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659- (exit $ac_status); }; then
4660+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4661+ test $ac_status = 0; }; then :
4662 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4663 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4664 # work properly (i.e., refer to `conftest.exe'), while it won't with
4665@@ -2365,37 +2664,90 @@
4666 for ac_file in conftest.exe conftest conftest.*; do
4667 test -f "$ac_file" || continue
4668 case $ac_file in
4669- *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
4670+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4671 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4672 break;;
4673 * ) break;;
4674 esac
4675 done
4676 else
4677- { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4678-See \`config.log' for more details." >&5
4679-echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4680-See \`config.log' for more details." >&2;}
4681- { (exit 1); exit 1; }; }
4682+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4683+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4684+as_fn_error "cannot compute suffix of executables: cannot compile and link
4685+See \`config.log' for more details." "$LINENO" 5; }
4686 fi
4687-
4688-rm -f conftest$ac_cv_exeext
4689-{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4690-echo "${ECHO_T}$ac_cv_exeext" >&6; }
4691+rm -f conftest conftest$ac_cv_exeext
4692+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4693+$as_echo "$ac_cv_exeext" >&6; }
4694
4695 rm -f conftest.$ac_ext
4696 EXEEXT=$ac_cv_exeext
4697 ac_exeext=$EXEEXT
4698-{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
4699-echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
4700-if test "${ac_cv_objext+set}" = set; then
4701- echo $ECHO_N "(cached) $ECHO_C" >&6
4702+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4703+/* end confdefs.h. */
4704+#include <stdio.h>
4705+int
4706+main ()
4707+{
4708+FILE *f = fopen ("conftest.out", "w");
4709+ return ferror (f) || fclose (f) != 0;
4710+
4711+ ;
4712+ return 0;
4713+}
4714+_ACEOF
4715+ac_clean_files="$ac_clean_files conftest.out"
4716+# Check that the compiler produces executables we can run. If not, either
4717+# the compiler is broken, or we cross compile.
4718+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4719+$as_echo_n "checking whether we are cross compiling... " >&6; }
4720+if test "$cross_compiling" != yes; then
4721+ { { ac_try="$ac_link"
4722+case "(($ac_try" in
4723+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4724+ *) ac_try_echo=$ac_try;;
4725+esac
4726+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4727+$as_echo "$ac_try_echo"; } >&5
4728+ (eval "$ac_link") 2>&5
4729+ ac_status=$?
4730+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4731+ test $ac_status = 0; }
4732+ if { ac_try='./conftest$ac_cv_exeext'
4733+ { { case "(($ac_try" in
4734+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4735+ *) ac_try_echo=$ac_try;;
4736+esac
4737+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4738+$as_echo "$ac_try_echo"; } >&5
4739+ (eval "$ac_try") 2>&5
4740+ ac_status=$?
4741+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4742+ test $ac_status = 0; }; }; then
4743+ cross_compiling=no
4744+ else
4745+ if test "$cross_compiling" = maybe; then
4746+ cross_compiling=yes
4747+ else
4748+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4749+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4750+as_fn_error "cannot run C compiled programs.
4751+If you meant to cross compile, use \`--host'.
4752+See \`config.log' for more details." "$LINENO" 5; }
4753+ fi
4754+ fi
4755+fi
4756+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4757+$as_echo "$cross_compiling" >&6; }
4758+
4759+rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4760+ac_clean_files=$ac_clean_files_save
4761+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4762+$as_echo_n "checking for suffix of object files... " >&6; }
4763+if test "${ac_cv_objext+set}" = set; then :
4764+ $as_echo_n "(cached) " >&6
4765 else
4766- cat >conftest.$ac_ext <<_ACEOF
4767-/* confdefs.h. */
4768-_ACEOF
4769-cat confdefs.h >>conftest.$ac_ext
4770-cat >>conftest.$ac_ext <<_ACEOF
4771+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772 /* end confdefs.h. */
4773
4774 int
4775@@ -2407,51 +2759,46 @@
4776 }
4777 _ACEOF
4778 rm -f conftest.o conftest.obj
4779-if { (ac_try="$ac_compile"
4780+if { { ac_try="$ac_compile"
4781 case "(($ac_try" in
4782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4783 *) ac_try_echo=$ac_try;;
4784 esac
4785-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4786+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4787+$as_echo "$ac_try_echo"; } >&5
4788 (eval "$ac_compile") 2>&5
4789 ac_status=$?
4790- echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791- (exit $ac_status); }; then
4792+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4793+ test $ac_status = 0; }; then :
4794 for ac_file in conftest.o conftest.obj conftest.*; do
4795 test -f "$ac_file" || continue;
4796 case $ac_file in
4797- *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
4798+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4799 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4800 break;;
4801 esac
4802 done
4803 else
4804- echo "$as_me: failed program was:" >&5
4805+ $as_echo "$as_me: failed program was:" >&5
4806 sed 's/^/| /' conftest.$ac_ext >&5
4807
4808-{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4809-See \`config.log' for more details." >&5
4810-echo "$as_me: error: cannot compute suffix of object files: cannot compile
4811-See \`config.log' for more details." >&2;}
4812- { (exit 1); exit 1; }; }
4813+{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4814+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4815+as_fn_error "cannot compute suffix of object files: cannot compile
4816+See \`config.log' for more details." "$LINENO" 5; }
4817 fi
4818-
4819 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4820 fi
4821-{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4822-echo "${ECHO_T}$ac_cv_objext" >&6; }
4823+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4824+$as_echo "$ac_cv_objext" >&6; }
4825 OBJEXT=$ac_cv_objext
4826 ac_objext=$OBJEXT
4827-{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4828-echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4829-if test "${ac_cv_c_compiler_gnu+set}" = set; then
4830- echo $ECHO_N "(cached) $ECHO_C" >&6
4831+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4832+$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4833+if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4834+ $as_echo_n "(cached) " >&6
4835 else
4836- cat >conftest.$ac_ext <<_ACEOF
4837-/* confdefs.h. */
4838-_ACEOF
4839-cat confdefs.h >>conftest.$ac_ext
4840-cat >>conftest.$ac_ext <<_ACEOF
4841+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4842 /* end confdefs.h. */
4843
4844 int
4845@@ -2465,54 +2812,34 @@
4846 return 0;
4847 }
4848 _ACEOF
4849-rm -f conftest.$ac_objext
4850-if { (ac_try="$ac_compile"
4851-case "(($ac_try" in
4852- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4853- *) ac_try_echo=$ac_try;;
4854-esac
4855-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4856- (eval "$ac_compile") 2>conftest.er1
4857- ac_status=$?
4858- grep -v '^ *+' conftest.er1 >conftest.err
4859- rm -f conftest.er1
4860- cat conftest.err >&5
4861- echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862- (exit $ac_status); } && {
4863- test -z "$ac_c_werror_flag" ||
4864- test ! -s conftest.err
4865- } && test -s conftest.$ac_objext; then
4866+if ac_fn_c_try_compile "$LINENO"; then :
4867 ac_compiler_gnu=yes
4868 else
4869- echo "$as_me: failed program was:" >&5
4870-sed 's/^/| /' conftest.$ac_ext >&5
4871-
4872- ac_compiler_gnu=no
4873+ ac_compiler_gnu=no
4874 fi
4875-
4876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4877 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4878
4879 fi
4880-{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4881-echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4882-GCC=`test $ac_compiler_gnu = yes && echo yes`
4883+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4884+$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4885+if test $ac_compiler_gnu = yes; then
4886+ GCC=yes
4887+else
4888+ GCC=
4889+fi
4890 ac_test_CFLAGS=${CFLAGS+set}
4891 ac_save_CFLAGS=$CFLAGS
4892-{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4893-echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4894-if test "${ac_cv_prog_cc_g+set}" = set; then
4895- echo $ECHO_N "(cached) $ECHO_C" >&6
4896+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4897+$as_echo_n "checking whether $CC accepts -g... " >&6; }
4898+if test "${ac_cv_prog_cc_g+set}" = set; then :
4899+ $as_echo_n "(cached) " >&6
4900 else
4901 ac_save_c_werror_flag=$ac_c_werror_flag
4902 ac_c_werror_flag=yes
4903 ac_cv_prog_cc_g=no
4904 CFLAGS="-g"
4905- cat >conftest.$ac_ext <<_ACEOF
4906-/* confdefs.h. */
4907-_ACEOF
4908-cat confdefs.h >>conftest.$ac_ext
4909-cat >>conftest.$ac_ext <<_ACEOF
4910+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4911 /* end confdefs.h. */
4912
4913 int
4914@@ -2523,34 +2850,11 @@
4915 return 0;
4916 }
4917 _ACEOF
4918-rm -f conftest.$ac_objext
4919-if { (ac_try="$ac_compile"
4920-case "(($ac_try" in
4921- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4922- *) ac_try_echo=$ac_try;;
4923-esac
4924-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4925- (eval "$ac_compile") 2>conftest.er1
4926- ac_status=$?
4927- grep -v '^ *+' conftest.er1 >conftest.err
4928- rm -f conftest.er1
4929- cat conftest.err >&5
4930- echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931- (exit $ac_status); } && {
4932- test -z "$ac_c_werror_flag" ||
4933- test ! -s conftest.err
4934- } && test -s conftest.$ac_objext; then
4935+if ac_fn_c_try_compile "$LINENO"; then :
4936 ac_cv_prog_cc_g=yes
4937 else
4938- echo "$as_me: failed program was:" >&5
4939-sed 's/^/| /' conftest.$ac_ext >&5
4940-
4941- CFLAGS=""
4942- cat >conftest.$ac_ext <<_ACEOF
4943-/* confdefs.h. */
4944-_ACEOF
4945-cat confdefs.h >>conftest.$ac_ext
4946-cat >>conftest.$ac_ext <<_ACEOF
4947+ CFLAGS=""
4948+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4949 /* end confdefs.h. */
4950
4951 int
4952@@ -2561,35 +2865,12 @@
4953 return 0;
4954 }
4955 _ACEOF
4956-rm -f conftest.$ac_objext
4957-if { (ac_try="$ac_compile"
4958-case "(($ac_try" in
4959- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4960- *) ac_try_echo=$ac_try;;
4961-esac
4962-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4963- (eval "$ac_compile") 2>conftest.er1
4964- ac_status=$?
4965- grep -v '^ *+' conftest.er1 >conftest.err
4966- rm -f conftest.er1
4967- cat conftest.err >&5
4968- echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969- (exit $ac_status); } && {
4970- test -z "$ac_c_werror_flag" ||
4971- test ! -s conftest.err
4972- } && test -s conftest.$ac_objext; then
4973- :
4974+if ac_fn_c_try_compile "$LINENO"; then :
4975+
4976 else
4977- echo "$as_me: failed program was:" >&5
4978-sed 's/^/| /' conftest.$ac_ext >&5
4979-
4980- ac_c_werror_flag=$ac_save_c_werror_flag
4981+ ac_c_werror_flag=$ac_save_c_werror_flag
4982 CFLAGS="-g"
4983- cat >conftest.$ac_ext <<_ACEOF
4984-/* confdefs.h. */
4985-_ACEOF
4986-cat confdefs.h >>conftest.$ac_ext
4987-cat >>conftest.$ac_ext <<_ACEOF
4988+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4989 /* end confdefs.h. */
4990
4991 int
4992@@ -2600,42 +2881,18 @@
4993 return 0;
4994 }
4995 _ACEOF
4996-rm -f conftest.$ac_objext
4997-if { (ac_try="$ac_compile"
4998-case "(($ac_try" in
4999- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5000- *) ac_try_echo=$ac_try;;
The diff has been truncated for viewing.

Subscribers

People subscribed via source and target branches

to all changes: