Merge lp:~noskcaj/ubuntu/saucy/dahdi-tools/2.7.0-1 into lp:ubuntu/saucy/dahdi-tools

Proposed by Jackson Doak
Status: Needs review
Proposed branch: lp:~noskcaj/ubuntu/saucy/dahdi-tools/2.7.0-1
Merge into: lp:ubuntu/saucy/dahdi-tools
Diff against target: 117081 lines (+73559/-38653)
275 files modified
.gitignore (+36/-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 (+0/-1460)
Makefile (+33/-77)
README (+22/-22)
UPGRADE.txt (+3/-4)
blacklist.sample (+8/-0)
build_tools/dahdi_svn_tarball (+1/-1)
build_tools/dahdi_sysfs_copy (+142/-0)
build_tools/dump_sys_state (+28/-99)
build_tools/make_tree (+0/-7)
build_tools/menuselect-deps.in (+0/-2)
configure (+242/-202)
configure.ac (+11/-2)
dahdi-tools-2.4.1-summary.html (+0/-82)
dahdi-tools-2.4.1-summary.txt (+0/-162)
dahdi.init (+11/-6)
dahdi.rules (+3/-0)
dahdi_cfg.c (+159/-54)
dahdi_cfg_device_args (+32/-0)
dahdi_maint.c (+33/-15)
dahdi_map (+39/-0)
dahdi_monitor.c (+8/-6)
dahdi_pcap.c (+332/-0)
dahdi_scan.c (+31/-0)
dahdi_test.c (+28/-15)
debian/changelog (+48/-0)
debian/clean (+4/-0)
debian/compat (+1/-1)
debian/control (+3/-4)
debian/copyright (+1/-1)
debian/dahdi.examples (+1/-0)
debian/dahdi.install (+1/-0)
debian/dahdi.postrm (+0/-3)
debian/dahdi.prerm (+0/-3)
debian/dahdi.udev (+3/-0)
debian/libtonezone2.0.install (+1/-1)
debian/libtonezone2.0.symbols (+11/-0)
debian/patches/astribank_allow_ignoreend (+0/-53)
debian/patches/bashism (+0/-39)
debian/patches/remove_dahdi_speed (+16/-0)
debian/patches/series (+1/-0)
debian/patches/ztcfg-start_stop (+0/-161)
debian/rules (+16/-104)
doc/dahdi_cfg.8 (+15/-1)
doc/dahdi_maint.8 (+62/-0)
doc/dahdi_map.8 (+48/-0)
doc/dahdi_monitor.8 (+115/-13)
fxotune.c (+64/-15)
fxstest.c (+37/-1)
handle_device (+50/-0)
makeopts.in (+4/-0)
menuselect/Makefile (+0/-123)
menuselect/README (+0/-179)
menuselect/acinclude.m4 (+0/-199)
menuselect/aclocal.m4 (+0/-14)
menuselect/autoconfig.h.in (+0/-125)
menuselect/bootstrap.sh (+0/-41)
menuselect/config.guess (+0/-1501)
menuselect/config.sub (+0/-1705)
menuselect/configure (+0/-6841)
menuselect/configure.ac (+0/-88)
menuselect/contrib/Makefile-dummy (+0/-17)
menuselect/contrib/menuselect-dummy (+0/-730)
menuselect/example_menuselect-tree (+0/-487)
menuselect/install-sh (+0/-323)
menuselect/linkedlists.h (+0/-370)
menuselect/make_version (+0/-56)
menuselect/makeopts.in (+0/-22)
menuselect/menuselect.c (+0/-1779)
menuselect/menuselect.h (+0/-165)
menuselect/menuselect_curses.c (+0/-893)
menuselect/menuselect_gtk.c (+0/-354)
menuselect/menuselect_newt.c (+0/-375)
menuselect/menuselect_stub.c (+0/-39)
menuselect/missing (+0/-360)
menuselect/mxml/ANNOUNCEMENT (+0/-5)
menuselect/mxml/CHANGES (+0/-213)
menuselect/mxml/COPYING (+0/-482)
menuselect/mxml/Makefile.in (+0/-342)
menuselect/mxml/README (+0/-204)
menuselect/mxml/config.h.in (+0/-69)
menuselect/mxml/configure (+0/-5702)
menuselect/mxml/configure.in (+0/-343)
menuselect/mxml/install-sh (+0/-251)
menuselect/mxml/mxml-attr.c (+0/-181)
menuselect/mxml/mxml-entity.c (+0/-472)
menuselect/mxml/mxml-file.c (+0/-2843)
menuselect/mxml/mxml-index.c (+0/-649)
menuselect/mxml/mxml-node.c (+0/-664)
menuselect/mxml/mxml-private.c (+0/-128)
menuselect/mxml/mxml-search.c (+0/-199)
menuselect/mxml/mxml-set.c (+0/-257)
menuselect/mxml/mxml-string.c (+0/-377)
menuselect/mxml/mxml.h (+0/-254)
menuselect/mxml/mxml.list.in (+0/-115)
menuselect/mxml/mxml.pc.in (+0/-10)
menuselect/strcompat.c (+0/-243)
menuselect/test/build_tools/menuselect-deps (+0/-52)
menuselect/test/menuselect-tree (+0/-716)
modules.sample (+4/-0)
patgen.c (+35/-24)
patlooptest.c (+70/-20)
pattest.c (+35/-24)
pinned-spans.conf (+56/-0)
span_assignments (+193/-0)
span_types (+160/-0)
spantype.conf (+27/-0)
system.conf.sample (+10/-3)
xpp/Makefile (+47/-14)
xpp/README.Astribank (+58/-37)
xpp/astribank_allow.8 (+15/-5)
xpp/astribank_allow.c (+17/-216)
xpp/astribank_hexload.8 (+60/-18)
xpp/astribank_hexload.c (+110/-37)
xpp/astribank_hook (+62/-13)
xpp/astribank_is_starting.c (+1/-1)
xpp/astribank_license.c (+340/-0)
xpp/astribank_license.h (+29/-0)
xpp/astribank_tool.8 (+5/-5)
xpp/astribank_tool.c (+21/-8)
xpp/astribank_usb.c (+74/-353)
xpp/astribank_usb.h (+16/-6)
xpp/dahdi_genconf (+8/-8)
xpp/dahdi_hardware (+4/-4)
xpp/dahdi_registration (+3/-2)
xpp/debug.c (+0/-53)
xpp/debug.h (+0/-46)
xpp/echo_loader.c (+852/-0)
xpp/echo_loader.h (+32/-0)
xpp/fpga_load.8 (+0/-86)
xpp/fpga_load.c (+0/-1052)
xpp/hexfile.c (+1/-1)
xpp/lsdahdi (+2/-2)
xpp/mpp.h (+80/-222)
xpp/mpp_funcs.c (+0/-1109)
xpp/mpp_funcs.h (+0/-80)
xpp/mpptalk.c (+956/-0)
xpp/mpptalk.h (+85/-0)
xpp/mpptalk_defs.h (+113/-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 (+120/-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 (+13858/-0)
xpp/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_chip_open.c (+6899/-0)
xpp/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_chip_stats.c (+441/-0)
xpp/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_conf_bridge.c (+7664/-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 (+1997/-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 (+572/-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 (+277/-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.pm (+1/-2)
xpp/perl_modules/Dahdi/Chans.pm (+2/-2)
xpp/perl_modules/Dahdi/Config/Gen.pm (+1/-1)
xpp/perl_modules/Dahdi/Config/Gen/Chandahdi.pm (+2/-2)
xpp/perl_modules/Dahdi/Config/Gen/Freepbxdb.pm (+116/-0)
xpp/perl_modules/Dahdi/Config/Gen/Xpporder.pm (+1/-1)
xpp/perl_modules/Dahdi/Config/Params.pm (+2/-2)
xpp/perl_modules/Dahdi/Hardware.pm (+1/-1)
xpp/perl_modules/Dahdi/Hardware/PCI.pm (+8/-3)
xpp/perl_modules/Dahdi/Hardware/USB.pm (+8/-1)
xpp/perl_modules/Dahdi/Span.pm (+61/-7)
xpp/perl_modules/Dahdi/Utils.pm (+0/-1)
xpp/perl_modules/Dahdi/Xpp.pm (+10/-46)
xpp/perl_modules/Dahdi/Xpp/Line.pm (+7/-31)
xpp/perl_modules/Dahdi/Xpp/Mpp.pm (+1/-1)
xpp/perl_modules/Dahdi/Xpp/Xbus.pm (+24/-57)
xpp/perl_modules/Dahdi/Xpp/Xpd.pm (+19/-74)
xpp/pic_loader.c (+29/-20)
xpp/twinstar (+2/-2)
xpp/twinstar_hook (+1/-1)
xpp/twinstar_setup (+1/-1)
xpp/waitfor_xpds (+65/-16)
xpp/xpp_blink (+1/-1)
xpp/xpp_fxloader (+302/-113)
xpp/xpp_sync (+12/-11)
xpp/xtalk/debug.c (+73/-0)
xpp/xtalk/debug.h (+52/-0)
xpp/xtalk/xlist.c (+94/-0)
xpp/xtalk/xlist.h (+29/-0)
xpp/xtalk/xtalk.c (+497/-0)
xpp/xtalk/xtalk.h (+178/-0)
xpp/xtalk/xtalk_defs.h (+41/-0)
xpp/xtalk/xusb.c (+869/-0)
xpp/xtalk/xusb.h (+102/-0)
zonedata.c (+49/-1)
To merge this branch: bzr merge lp:~noskcaj/ubuntu/saucy/dahdi-tools/2.7.0-1
Reviewer Review Type Date Requested Status
Daniel Holbach (community) Approve
Review via email: mp+181978@code.launchpad.net

Description of the change

Merge from debian unstable.

To post a comment you must log in.
Revision history for this message
Daniel Holbach (dholbach) wrote :

Thanks. Uploaded.

review: Approve

Unmerged revisions

10. By Jackson Doak

* Merge from debian. Remaining changes:
  - debian/control: Added gawk as dependency for dkms build
  - debian/control: Package dahdi Depends on dahdi-dkms | dahdi-source
  - debian/control: Set ubuntu maintainer
  - added debian/dahdi.postinst
  - debian/control: Removed Uploaders field.
  - added debian/dahdi.postinst
  - added --error-handler=init_failed to debian/rules

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added file '.gitignore'
--- .gitignore 1970-01-01 00:00:00 +0000
+++ .gitignore 2013-08-25 04:54:26 +0000
@@ -0,0 +1,36 @@
1*.o
2.*.o.d
3.*.lo.d
4build_tools/menuselect-deps
5config.log
6config.status
7dahdi_cfg
8dahdi_maint
9dahdi_monitor
10dahdi_scan
11dahdi_speed
12dahdi_test
13dahdi_tool
14fxotune
15libtonezone.a
16libtonezone.so
17makeopts
18sethdlc
19tonezone.lo
20version.c
21xpp/.depend
22xpp/.octasic.depend
23xpp/.perlcheck
24xpp/astribank_allow
25xpp/astribank_hexload
26xpp/astribank_is_starting
27xpp/astribank_tool
28xpp/dahdi_genconf.8
29xpp/dahdi_hardware.8
30xpp/dahdi_registration.8
31xpp/lsdahdi.8
32xpp/test_parse
33xpp/twinstar.8
34xpp/xpp_blink.8
35xpp/xpp_sync.8
36zonedata.lo
037
=== removed file '.pc/applied-patches'
--- .pc/applied-patches 2011-03-13 23:45:36 +0000
+++ .pc/applied-patches 1970-01-01 00:00:00 +0000
@@ -1,3 +0,0 @@
1zaptel_perl
2echocan_oslec
3init_unload_oslec
40
=== removed directory '.pc/echocan_oslec'
=== removed directory '.pc/echocan_oslec/xpp'
=== removed directory '.pc/echocan_oslec/xpp/perl_modules'
=== removed directory '.pc/echocan_oslec/xpp/perl_modules/Dahdi'
=== removed directory '.pc/echocan_oslec/xpp/perl_modules/Dahdi/Config'
=== removed file '.pc/echocan_oslec/xpp/perl_modules/Dahdi/Config/Params.pm'
--- .pc/echocan_oslec/xpp/perl_modules/Dahdi/Config/Params.pm 2011-03-13 23:45:36 +0000
+++ .pc/echocan_oslec/xpp/perl_modules/Dahdi/Config/Params.pm 1970-01-01 00:00:00 +0000
@@ -1,156 +0,0 @@
1package Dahdi::Config::Params;
2#
3# Written by Oron Peled <oron@actcom.co.il>
4# Copyright (C) 2009, Xorcom
5# This program is free software; you can redistribute and/or
6# modify it under the same terms as Perl itself.
7#
8# $Id: Params.pm 7224 2009-09-27 15:01:20Z tzafrir $
9#
10use strict;
11
12=head1 NAME
13
14Dahdi::Config::Params -- Object oriented representation of F<genconf_parameters> file.
15
16=head1 SYNOPSIS
17
18 use Dahdi::Config::Params;
19 my $params = Dahdi::Config::Params->new('the-config-file');
20 print $params->item{'some-key'};
21 print $params->item{'some-key', NODEFAULTS => 1};
22 $params->dump; # For debugging
23
24=head1 DESCRIPTION
25
26The constructor must be given a configuration file name:
27
28=over 4
29
30=item * Missing file is B<not> an error.
31
32=item * Other opening errors cause a C<die> to be thrown.
33
34=item * The file name is saved as the value of C<GENCONF_FILE> key.
35
36=back
37
38The access to config keys should only be done via the C<item()> method:
39
40=over 4
41
42=item * It contains all hard-coded defaults.
43
44=item * All these values are overriden by directives in the config file.
45
46=item * Calling it with C<NODEFAULTS =E<gt> 1> option, returns C<undef> for keys that
47do not appear in the configuration file.
48
49=back
50
51=cut
52
53sub new($$) {
54 my $pack = shift || die;
55 my $cfg_file = shift || die;
56 my $self = {
57 GENCONF_FILE => $cfg_file,
58 };
59 bless $self, $pack;
60 if(!open(F, $cfg_file)) {
61 if(defined($!{ENOENT})) {
62 #print STDERR "No $cfg_file. Assume empty config\n";
63 return $self; # Empty configuration
64 }
65 die "$pack: Failed to open '$cfg_file': $!\n";
66 }
67 #print STDERR "$pack: $cfg_file\n";
68 my $array_key;
69 while(<F>) {
70 my ($key, $val);
71 chomp;
72 s/#.*$//;
73 s/\s+$//; # trim tail whitespace
74 next unless /\S/;
75 if(defined $array_key && /^\s+/) {
76 s/^\s+//; # trim beginning whitespace
77 push(@{$self->{$array_key}}, $_);
78 next;
79 }
80 undef $array_key;
81 ($key, $val) = split(/\s+/, $_, 2);
82 $key = lc($key);
83 if(! defined $val) {
84 $array_key = $key;
85 next;
86 }
87 die "$cfg_file:$.: Duplicate key '$key'\n", if exists $self->{$key};
88 $self->{$key} = $val;
89 }
90 close F;
91 return $self;
92}
93
94sub item($$@) {
95 my $self = shift || die;
96 my $key = shift || die;
97 my %options = @_;
98 my %defaults = (
99 base_exten => '4000',
100 freepbx => 'no', # Better via -F command line
101 fxs_immediate => 'no',
102 fxs_default_start => 'ks',
103 fxo_default_start => 'ks',
104 em_signalling => 'none',
105 lc_country => 'us',
106 context_lines => 'from-pstn',
107 context_phones => 'from-internal',
108 context_input => 'astbank-input',
109 context_output => 'astbank-output',
110 group_phones => '5',
111 group_lines => '0',
112 brint_overlap => 'no',
113 bri_sig_style => 'bri_ptmp',
114 echo_can => 'mg2',
115 bri_hardhdlc => 'auto',
116 pri_connection_type => 'PRI',
117 r2_idle_bits => '1101',
118 tdm_framing => 'esf',
119 'pri_termtype' => [ 'SPAN/* TE' ],
120 );
121 return $self->{$key} if exists($self->{$key}) or $options{NODEFAULTS};
122 return $defaults{$key};
123}
124
125sub dump($) {
126 my $self = shift || die;
127 printf STDERR "%s dump:\n", ref $self;
128 my $width = 30;
129 foreach my $k (sort keys %$self) {
130 my $val = $self->{$k};
131 my $ref = ref $val;
132 #print STDERR "DEBUG: '$k', '$ref', '$val'\n";
133 if($ref eq '') {
134 printf STDERR "%-${width}s %s\n", $k, $val;
135 } elsif($ref eq 'SCALAR') {
136 printf STDERR "%-${width}s %s\n", $k, ${$val};
137 } elsif($ref eq 'ARRAY') {
138 #printf STDERR "%s:\n", $k;
139 my $i = 0;
140 foreach my $v (@{$val}) {
141 printf STDERR "%-${width}s %s\n", "$k\->[$i]", $v;
142 $i++;
143 }
144 } elsif($ref eq 'HASH') {
145 #printf STDERR "%s:\n", $k;
146 foreach my $k1 (keys %{$val}) {
147 printf STDERR "%-${width}s %s\n", "$k\->\{$k1\}", ${$val}{$k1};
148 }
149 } else {
150 printf STDERR "%-${width}s (-> %s)\n", $k, $ref;
151 }
152 }
153}
154
1551;
156
1570
=== removed directory '.pc/init_unload_oslec'
=== removed file '.pc/init_unload_oslec/dahdi.init'
--- .pc/init_unload_oslec/dahdi.init 2011-03-13 23:45:36 +0000
+++ .pc/init_unload_oslec/dahdi.init 1970-01-01 00:00:00 +0000
@@ -1,333 +0,0 @@
1#!/bin/sh
2#
3# dahdi This shell script takes care of loading and unloading \
4# DAHDI Telephony interfaces
5# chkconfig: 2345 9 92
6# description: The DAHDI drivers allow you to use your linux \
7# computer to accept incoming data and voice interfaces
8#
9# config: /etc/dahdi/init.conf
10
11### BEGIN INIT INFO
12# Provides: dahdi
13# Required-Start: $local_fs $remote_fs
14# Required-Stop: $local_fs $remote_fs
15# Should-Start: $network $syslog
16# Should-Stop: $network $syslog
17# Default-Start: 2 3 4 5
18# Default-Stop: 0 1 6
19# Description: dahdi - load and configure DAHDI modules
20### END INIT INFO
21
22initdir=/etc/init.d
23
24# Don't edit the following values. Edit /etc/dahdi/init.conf instead.
25
26DAHDI_CFG=/usr/sbin/dahdi_cfg
27DAHDI_CFG_CMD=${DAHDI_CFG_CMD:-"$DAHDI_CFG"} # e.g: for a custom system.conf location
28
29FXOTUNE=/usr/sbin/fxotune
30
31# The default syncer Astribank. Usually set automatically to a sane
32# value by xpp_sync(1) if you have an Astribank. You can set this to an
33# explicit Astribank (e.g: 01).
34XPP_SYNC=auto
35
36# The maximal timeout (seconds) to wait for udevd to finish generating
37# device nodes after the modules have loaded and before running dahdi_cfg.
38DAHDI_DEV_TIMEOUT=20
39
40# A list of modules to unload when stopping.
41# All of their dependencies will be unloaded as well.
42DAHDI_UNLOAD_MODULES="dahdi"
43
44#
45# Determine which kind of configuration we're using
46#
47system=redhat # assume redhat
48if [ -f /etc/debian_version ]; then
49 system=debian
50fi
51
52if [ -f /etc/gentoo-release ]; then
53 system=debian
54fi
55
56if [ -f /etc/SuSE-release -o -f /etc/novell-release ]
57then
58 system=debian
59fi
60
61# Source function library.
62if [ $system = redhat ]; then
63 . $initdir/functions || exit 0
64fi
65
66DAHDI_MODULES_FILE="/etc/dahdi/modules"
67
68[ -r /etc/dahdi/init.conf ] && . /etc/dahdi/init.conf
69
70if [ $system = redhat ]; then
71 LOCKFILE=/var/lock/subsys/dahdi
72fi
73
74# recursively unload a module and its dependencies, if possible.
75# where's modprobe -r when you need it?
76# inputs: module to unload.
77# returns: the result from
78unload_module() {
79 module="$1"
80 line=`lsmod 2>/dev/null | grep "^$1 "`
81 if [ "$line" = '' ]; then return; fi # module was not loaded
82
83 set -- $line
84 # $1: the original module, $2: size, $3: refcount, $4: deps list
85 mods=`echo $4 | tr , ' '`
86 ec_modules=""
87 # xpp_usb keeps the xpds below busy if an xpp hardware is
88 # connected. Hence must be removed before them:
89 case "$module" in xpd_*) mods="xpp_usb $mods";; esac
90
91 for mod in $mods; do
92 case "$mod" in
93 dahdi_echocan_*)
94 ec_modules="$mod $ec_modules"
95 ;;
96 *)
97 # run in a subshell, so it won't step over our vars:
98 (unload_module $mod)
99 ;;
100 esac
101 done
102 # Now that all the other dependencies are unloaded, we can unload the
103 # dahdi_echocan modules. The drivers that register spans may keep
104 # references on the echocan modules before they are unloaded.
105 for mod in $ec_modules; do
106 (unload_module $mod)
107 done
108 rmmod $module
109}
110
111unload_modules() {
112 for module in $DAHDI_UNLOAD_MODULES; do
113 unload_module $module
114 done
115}
116
117# In (xpp) hotplug mode, the init script is also executed from the
118# hotplug hook. In that case it should not attempt to loade modules.
119#
120# This function only retunrs false (1) if we're in hotplug mode and
121# coming from the hotplug hook script.
122hotplug_should_load_modules() {
123 if [ "$XPP_HOTPLUG_DAHDI" = yes -a "$CALLED_FROM_ATRIBANK_HOOK" != '' ]
124 then
125 return 1
126 fi
127 return 0
128}
129
130# In (xpp) hotplug mode: quit after we loaded modules.
131#
132# In hotplug mode, the main run should end here, whereas the rest of the
133# script should be finished by the instance running from the hook.
134# Note that we only get here if there are actually Astribanks on the
135# system (otherwise noone will trigger the run of the hotplug hook
136# script).
137hotplug_exit_after_load() {
138 if [ "$XPP_HOTPLUG_DAHDI" = yes -a "$CALLED_FROM_ATRIBANK_HOOK" = '' ]
139 then
140 exit 0
141 fi
142}
143
144# Initialize the Xorcom Astribank (xpp/) using perl utiliites:
145xpp_startup() {
146 # do nothing if there are no astribank devices:
147 if ! /usr/share/dahdi/waitfor_xpds; then return 0; fi
148
149 hotplug_exit_after_load
150
151 # overriding locales for the above two, as perl can be noisy
152 # when locales are missing.
153 # No register all the devices if they didn't auto-register:
154 LC_ALL=C dahdi_registration on
155}
156
157
158hpec_start() {
159 # HPEC license found
160 if ! echo /var/lib/digium/licenses/HPEC-*.lic | grep -v '\*' | grep -q .; then
161 return
162 fi
163
164 # dahdihpec_enable not installed in /usr/sbin
165 if [ ! -f /usr/sbin/dahdihpec_enable ]; then
166 echo -n "Running dahdihpec_enable: Failed"
167 echo -n "."
168 echo " The dahdihpec_enable binary is not installed in /usr/sbin."
169 return
170 fi
171
172 # dahdihpec_enable not set executable
173 if [ ! -x /usr/sbin/dahdihpec_enable ]; then
174 echo -n "Running dahdihpec_enable: Failed"
175 echo -n "."
176 echo " /usr/sbin/dahdihpec_enable is not set as executable."
177 return
178 fi
179
180 # dahdihpec_enable properly installed
181 if [ $system = debian ]; then
182 echo -n "Running dahdihpec_enable: "
183 /usr/sbin/dahdihpec_enable 2> /dev/null
184 elif [ $system = redhat ]; then
185 action "Running dahdihpec_enable: " /usr/sbin/dahdihpec_enable
186 fi
187 if [ $? = 0 ]; then
188 echo -n "done"
189 echo "."
190 else
191 echo -n "Failed"
192 echo -n "."
193 echo " This can be caused if you had already run dahdihpec_enable, or if your HPEC license is no longer valid."
194 fi
195}
196
197shutdown_dynamic() {
198 if ! grep -q ' DYN/' /proc/dahdi/* 2>/dev/null; then return; fi
199
200 # we should only get here if we have dynamic spans. Right?
201 $DAHDI_CFG_CMD -s
202}
203
204load_modules() {
205 # Some systems, e.g. Debian Lenny, add here -b, which will break
206 # loading of modules blacklisted in modprobe.d/*
207 unset MODPROBE_OPTIONS
208 modules=`sed -e 's/#.*$//' $DAHDI_MODULES_FILE 2>/dev/null`
209 #if [ "$modules" = '' ]; then
210 # what?
211 #fi
212 echo "Loading DAHDI hardware modules:"
213 modprobe dahdi
214 for line in $modules; do
215 if [ $system = debian ]; then
216 echo -n " ${line}: "
217 if modprobe $line 2> /dev/null; then
218 echo -n "done"
219 else
220 echo -n "error"
221 fi
222 elif [ $system = redhat ]; then
223 action " ${line}: " modprobe $line
224 fi
225 done
226 echo ""
227}
228
229if [ ! -x "$DAHDI_CFG" ]; then
230 echo "dahdi_cfg not executable"
231 exit 0
232fi
233
234if [ ! -f /etc/dahdi/system.conf ]; then
235 echo "/etc/dahdi/system.conf not found. Nothing to do."
236 exit 0
237fi
238
239RETVAL=0
240
241# See how we were called.
242case "$1" in
243 start)
244 if hotplug_should_load_modules; then
245 load_modules
246 fi
247
248 TMOUT=$DAHDI_DEV_TIMEOUT # max secs to wait
249
250 while [ ! -d /dev/dahdi ] ; do
251 sleep 1
252 TMOUT=`expr $TMOUT - 1`
253 if [ $TMOUT -eq 0 ] ; then
254 echo "Error: missing /dev/dahdi!"
255 exit 1
256 fi
257 done
258
259 xpp_startup
260
261 if [ ! -e /proc/dahdi/1 ]; then
262 echo "No hardware timing source found in /proc/dahdi, loading dahdi_dummy"
263 modprobe dahdi_dummy 2> /dev/null
264 fi
265
266 if [ $system = debian ]; then
267 echo -n "Running dahdi_cfg: "
268 $DAHDI_CFG_CMD 2> /dev/null && echo -n "done"
269 echo "."
270 elif [ $system = redhat ]; then
271 action "Running dahdi_cfg: " $DAHDI_CFG_CMD
272 fi
273 RETVAL=$?
274
275 if [ "$LOCKFILE" != '' ]; then
276 [ $RETVAL -eq 0 ] && touch $LOCKFILE
277 fi
278
279 if [ -x "$FXOTUNE" ] && [ -r /etc/fxotune.conf ]; then
280 # Allowed to fail if e.g. Asterisk already uses channels:
281 $FXOTUNE -s || :
282 fi
283
284 # Set the right Astribanks ticker:
285 LC_ALL=C xpp_sync "$XPP_SYNC"
286
287 hpec_start
288 ;;
289 stop)
290 # Unload drivers
291 #shutdown_dynamic # FIXME: needs test from someone with dynamic spans
292 echo -n "Unloading DAHDI hardware modules: "
293 if unload_modules; then
294 echo "done"
295 else
296 echo "error"
297 fi
298 if [ "$LOCKFILE" != '' ]; then
299 [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
300 fi
301 ;;
302 unload)
303 unload_modules
304 ;;
305 restart|force-reload)
306 $0 stop
307 $0 start
308 ;;
309 reload)
310 if [ $system = debian ]; then
311 echo -n "Rerunning dahdi_cfg: "
312 $DAHDI_CFG_CMD 2> /dev/null && echo -n "done"
313 echo "."
314 elif [ $system = redhat ]; then
315 action "Rerunning dahdi_cfg: " $DAHDI_CFG_CMD
316 fi
317 RETVAL=$?
318 ;;
319 status)
320 if [ -d /proc/dahdi ]; then
321 /usr/sbin/lsdahdi
322 RETVAL=0
323 else
324 RETVAL=3
325 fi
326 ;;
327 *)
328 echo "Usage: dahdi {start|stop|restart|status|reload|unload}"
329 exit 1
330esac
331
332exit $RETVAL
333
3340
=== removed directory '.pc/zaptel_perl'
=== removed directory '.pc/zaptel_perl/xpp'
=== removed file '.pc/zaptel_perl/xpp/Makefile'
--- .pc/zaptel_perl/xpp/Makefile 2011-03-13 23:45:36 +0000
+++ .pc/zaptel_perl/xpp/Makefile 1970-01-01 00:00:00 +0000
@@ -1,140 +0,0 @@
1PEDANTIC = -ansi -pedantic -std=c99
2
3INSTALL = install
4INSTALL_DATA = install -m 644
5
6#
7# Ugly hack to find kernel directories before/after the split
8# to kernel/user-space.
9#
10# These variables should be passed to us. But until then...
11#
12DAHDI_TOOLSDIR ?= ..
13DAHDI_KERNELDIR =
14
15-include $(DAHDI_TOOLSDIR)/makeopts
16
17INSTALL_DATA = $(INSTALL) -m 644
18
19# In 1.4 those are provided by autoconf through makeopts
20prefix ?= /usr
21datadir ?= $(prefix)/share
22mandir ?= $(datadir)/man
23INSTALL ?= install
24
25INSTALL_DATA = $(INSTALL) -m 644
26
27SBINDIR = $(prefix)/sbin
28DATADIR = $(datadir)/dahdi
29MANDIR = $(mandir)/man8
30HOTPLUG_USB_DIR = $(sysconfdir)/hotplug/usb
31PERLLIBDIR := $(shell eval `perl -V:sitelib`; echo "$$sitelib")
32PERL_DIRS := $(shell cd perl_modules; find * -name '[A-Z]*' -type d| xargs)
33PERL_MODS_PAT := *.pm $(PERL_DIRS:%=%/*.pm)
34PERL_MODS := $(shell cd perl_modules; echo $(PERL_MODS_PAT))
35
36# Variables that should be defined above, but need sane defaults:
37# FIXME: Are those values really sane?
38HOSTCC ?= $(CC)
39
40
41CFLAGS += -g -Wall $(USB_INCLUDE)
42
43%.8: %
44 pod2man --section 8 $^ > $@ || $(RM) $@
45PERL_SCRIPTS = \
46 dahdi_registration \
47 xpp_sync \
48 lsdahdi \
49 xpp_blink \
50 dahdi_genconf \
51 dahdi_hardware \
52 twinstar \
53 #
54
55PERL_MANS = $(PERL_SCRIPTS:%=%.8)
56
57ABHEXLOAD_OBJS = astribank_hexload.o hexfile.o pic_loader.o astribank_usb.o mpp_funcs.o debug.o
58ABTOOL_OBJS = astribank_tool.o astribank_usb.o mpp_funcs.o debug.o
59ABALLOW_OBJS = astribank_allow.o astribank_usb.o mpp_funcs.o debug.o
60
61TARGETS = .perlcheck astribank_is_starting
62PROG_INSTALL = astribank_is_starting
63MAN_INSTALL = $(PROG_INSTALL:%=%.8)
64ifeq (1,$(PBX_USB))
65TARGETS += fpga_load \
66 astribank_tool \
67 astribank_hexload \
68 astribank_allow \
69 test_parse
70PROG_INSTALL += fpga_load astribank_tool astribank_hexload astribank_allow
71endif
72ifneq (,$(PERLLIBDIR))
73PROG_INSTALL += $(PERL_SCRIPTS)
74TARGETS += $(PERL_MANS)
75endif
76
77all: $(TARGETS)
78
79docs: $(PERL_MANS)
80
81install: all
82 $(INSTALL) -d $(DESTDIR)$(SBINDIR)
83 $(INSTALL) $(PROG_INSTALL) $(DESTDIR)$(SBINDIR)/
84 $(INSTALL) -d $(DESTDIR)$(DATADIR)
85 $(INSTALL) xpp_fxloader astribank_hook $(DESTDIR)$(DATADIR)/
86 $(INSTALL) waitfor_xpds $(DESTDIR)$(DATADIR)/
87 $(INSTALL) -d $(DESTDIR)$(MANDIR)
88 $(INSTALL_DATA) $(MAN_INSTALL) $(DESTDIR)$(MANDIR)/
89 $(INSTALL) -d $(DESTDIR)$(HOTPLUG_USB_DIR)
90 $(INSTALL_DATA) xpp_fxloader.usermap $(DESTDIR)$(HOTPLUG_USB_DIR)/
91 # for backward compatibility and for hotplug users:
92 ln -sf $(DATADIR)/xpp_fxloader $(DESTDIR)$(HOTPLUG_USB_DIR)/
93ifneq (,$(PERLLIBDIR))
94 $(INSTALL) -d $(DESTDIR)$(PERLLIBDIR)
95 for i in $(PERL_DIRS); \
96 do \
97 $(INSTALL) -d "$(DESTDIR)$(PERLLIBDIR)/$$i"; \
98 done
99 for i in $(PERL_MODS); \
100 do \
101 $(INSTALL_DATA) "perl_modules/$$i" "$(DESTDIR)$(PERLLIBDIR)/$$i"; \
102 done
103endif
104
105fpga_load: fpga_load.o hexfile.o
106fpga_load: LIBS+=$(EXTRA_LIBS) $(USB_LIB)
107
108astribank_hexload: $(ABHEXLOAD_OBJS)
109astribank_hexload: LIBS+=$(EXTRA_LIBS) $(USB_LIB)
110
111astribank_tool: $(ABTOOL_OBJS)
112astribank_tool: LIBS+=$(EXTRA_LIBS) $(USB_LIB)
113
114astribank_allow: $(ABALLOW_OBJS)
115astribank_allow: LIBS+=$(EXTRA_LIBS) $(USB_LIB)
116
117astribank_is_starting: astribank_is_starting.o
118astribank_is_starting: LIBS+=$(EXTRA_LIBS)
119
120fpga_load.o: CFLAGS+=-D_GNU_SOURCE # We use memrchr()
121
122test_parse: test_parse.o hexfile.o
123test_parse: LIBS+=$(EXTRA_LIBS) $(USB_LIB)
124
125%: %.o
126 $(CC) $(LDFLAGS) $^ $(LIBS) -o $@
127
128.perlcheck: $(PERL_SCRIPTS)
129 for i in $^; do perl -I./perl_modules -c $$i || exit 1; done
130 touch $@
131
132clean:
133 $(RM) .depend *.o $(TARGETS)
134
135.PHONY: depend
136depend: .depend
137.depend: *.c *.h
138 @$(CC) -MM *.c > $@ || rm -f $@
139
140include .depend
1410
=== modified file '.version'
--- .version 2011-03-13 23:45:36 +0000
+++ .version 2013-08-25 04:54:26 +0000
@@ -1,1 +1,1 @@
12.4.112.7.0
22
=== removed file 'ChangeLog'
--- ChangeLog 2011-03-13 23:45:36 +0000
+++ ChangeLog 1970-01-01 00:00:00 +0000
@@ -1,1460 +0,0 @@
12011-03-03 Shaun Ruffell <sruffell@digium.com>
2
3 * dahdi-tools version 2.4.1 released.
4
52011-02-08 14:42 +0000 [r9733-9744] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
6
7 * /, xpp/perl_modules/Dahdi/Chans.pm,
8 xpp/perl_modules/Dahdi/Config/Gen/System.pm: dahdi-perl: more
9 left-over $span->xpd Replace the remaining $span->xpd with
10 xpd_of_span(). Following up on r9648. Merged revisions 9731 via
11 svnmerge from http://svn.digium.com/svn/dahdi/tools/trunk
12
13 * xpp/perl_modules/Dahdi/Hardware/USB.pm, /: dahdi-perl: fix xpp
14 driver in dahdi_hardware Don't require 'dahdi_hardware -v' to
15 show the driver for a USB device. Only works when the usbfs is
16 not used (when /proc/bus/usb is not mounted). Signed-off-by:
17 Tzafrir Cohen <tzafrir.cohen@xorcom.com> Merged revisions 9699
18 via svnmerge from http://svn.digium.com/svn/dahdi/tools/trunk
19
20 * /, xpp/perl_modules/Dahdi/Span.pm: dahdi-perl: left-over
21 $span->xpd Replace one remaining $span->{XPD} with xpd_of_span().
22 Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com> Merged
23 revisions 9648 via svnmerge from
24 http://svn.digium.com/svn/dahdi/tools/trunk
25
26 * /, xpp/perl_modules/Dahdi/Config/Gen/System.pm: dahdi_genconf:
27 Don't generate configurations that use channel 16 on E1 CAS
28 Attempting to use channel 16 on E1 CAS is disallowed since that
29 channel is reserved for RBS signaling. Configurations should not
30 be generated that attempt to use it. Closes DAHDI-763. Patch by
31 dmartinez. Merged revisions 9485 via svnmerge from
32 http://svn.digium.com/svn/dahdi/tools/trunk
33
34 * /, xpp/xpp_fxloader: xpp_fxloader: Don't try to load FPGA
35 firmware twice When called from udev to load the FPGA firmware,
36 make sure that this is not the event generated for the first
37 end-point of the existing two, as we need to talk with the second
38 one. This is probably better done in the udev rules, but will be
39 slightly more complicated to apply only to the FPGA loading and
40 not to USB firmware loading. Merged revisions 9482 via svnmerge
41 from http://svn.digium.com/svn/dahdi/tools/trunk
42
43 * dahdi_scan.c, /: dahdi_scan: Show CAS framing on the framing
44 line. Also, always append "/CRC4" on any span where that was
45 specified as an option. Signed-off-by: Shaun Ruffell
46 <sruffell@digium.com> Acked-by: Kinsey Moore <kmoore@digium.com>
47 Merged revisions 9473 via svnmerge from
48 http://svn.digium.com/svn/dahdi/tools/trunk
49
50 * dahdi_scan.c, /: Fixed up the loss of crc4-multiframe alignment
51 logic Loss of crc4-multiframe alignment on an E1 link is not a
52 condition which brings the span down. The span will continue to
53 run as long as it can maintain double frame alignment. Because of
54 this, we cannot place the LMFA alarm in the usual spaninfo.alarms
55 member, due to userspace programs using this as a catch-all for a
56 span being up or down. We can detect the alarm by watching the
57 frame error counter (fecount). If it continuously increments, the
58 span is configured for crc4, and the span remains OK (alarms =
59 0), then we are in loss of crc4-multiframe state. In order to
60 test this alarm, you'll need to synthesize a loss of crc4
61 alignment on the span. You can usually do this by configuring the
62 local span to use crc4 and the remote end to not use crc4. I used
63 the Fireberd 6000 in my lab to do this. dahdi-743 & dahdi-420
64 Acked-by: Shaun Ruffell <sruffell@digium.com> Merged revisions
65 9458 via svnmerge from
66 http://svn.digium.com/svn/dahdi/tools/trunk
67
68 * xpp/perl_modules/Dahdi/Hardware/PCI.pm, /: Dahdi::Hardware:
69 Support beroNet BN4S0e PCI Express card Add extra PCI IDs to
70 support "beroNet BN4S0e PCI Express 4x S0 Karte". Origin:
71 http://bugs.debian.org/600839 Merged revisions 9452 via svnmerge
72 from http://svn.digium.com/svn/dahdi/tools/trunk
73
74 * autoconfig.h.in, xpp/astribank_is_starting.c, /, configure,
75 configure.ac: astribank_is_starting: use semop if no semtimedop
76 astribank_is_starting should use a timeout for the semaphore, but
77 if the GNU-specific semtimedop() is not available, we'll just
78 fall back to using semop with no time out. Not as good, but
79 better than nothing. (closes issue #16783) Reported by: abelbeck
80 Merged revisions 9426 via svnmerge from
81 http://svn.digium.com/svn/dahdi/tools/trunk
82
83 * /, zonedata.c: tonezone: Add Macao,China to tone zone data Adding
84 Macao tone zone data according to
85 http://www.itu.int/ITU-T/inr/forms/files/tones-0203.pdf (closes
86 issue #17744) Reported by: alfredtang Patches: zonedata.patch
87 uploaded by alfredtang (license 1094) Merged revisions 9313 via
88 svnmerge from http://svn.digium.com/svn/dahdi/tools/trunk
89
902010-08-31 Shaun Ruffell <sruffell@digium.com>
91
92 * dahdi-tools version 2.4.0 released.
93
942010-08-31 16:12 +0000 [r9220] Kinsey Moore <kmoore@digium.com>
95
96 * ppp/dahdi.c: PPP: Fix an incorrect function call that was causing
97 dahdi.so to fail to load
98
992010-08-18 13:49 +0000 [r9159] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
100
101 * xpp/perl_modules/Dahdi/Config/Gen.pm: DAHDI-perl: Config (sort
102 of) for dynamic channels Generate some sort of configuration for
103 dynamic channels. Usable enough for testing.
104
1052010-08-18 Shaun Ruffell <sruffell@digium.com>
106
107 * dahdi-tools version 2.4.0-rc1 released.
108
1092010-08-13 18:40 +0000 [r9133] Shaun Ruffell <sruffell@digium.com>
110
111 * dahdi_scan.c: dahdi_scan: Use 'linecompat' to identify digital
112 spans. This fixes the case where the BRI spans on the Hx8 cards
113 were displayed as analog spans.
114
1152010-08-03 12:14 +0000 [r9079] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
116
117 * xpp/perl_modules/Dahdi/Hardware/PCI.pm,
118 xpp/perl_modules/Dahdi/Chans.pm: dahdi-perl: also detect Aligera
119 cards (closes issue #17783) Reported by: frawd Patches:
120 dahdi-tools_aligera.patch uploaded by frawd (license 610)
121
1222010-08-01 22:39 +0000 [r9076] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
123
124 * dahdi_scan.c, dahdi_maint.c: fix build of dahdi_scan and
125 dahdi_maint with -linux 2.3 New functionality that was added in
126 r8992 and r8993 uses new items defined only in dahdi-linux trunk
127 (and eventually: 2.4). As in both cases it's a single place to
128 check, we'll just ifdef it away.
129
1302010-07-30 15:28 +0000 [r9066-9067] Kinsey Moore <kmoore@digium.com>
131
132 * dahdi_cfg.c: dahdi_cfg: Display more appropriate error messages
133 when an invalid signaling is chosen along with suggestions on how
134 to fix the problem.
135
136 * xpp/perl_modules/Dahdi/Chans.pm: perl: make sure the channel
137 parser recognizes "Reserved" for unusable channels and fix a bug
138 preventing E&M-E1 from being detected properly
139
1402010-07-28 12:30 +0000 [r9031] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
141
142 * xpp/twinstar: twinstar: err on an invalid command.
143
1442010-07-26 18:56 +0000 [r8991-8994] Russ Meyerriecks <rmeyerreicks@digium.com>
145
146 * dahdi_scan.c: Removed no longer existing alarm condition
147
148 * dahdi_scan.c: Modified dahdi_sync to report detailed alarms
149
150 * dahdi_maint.c: wip: dahdi_maint can now trip the alarm sim
151
152 * dahdi_maint.c: dahdi_maint: Fixed outdated usage text
153
1542010-07-22 11:41 +0000 [r8964] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
155
156 * xpp/xpp_fxloader: increase maximal firmware delay to 15 seconds
157 Hmm... how badly congested can the startup of Centos be?
158
1592010-07-21 08:47 +0000 [r8948-8954] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
160
161 * xpp/astribank_hexload.8, xpp/astribank_tool.8,
162 xpp/astribank_allow.8: More hyphen/minus fixes.
163
164 * xpp/xpp_fxloader: xpp_fxloader: replace a sleep with a sleep loop
165 For newer kernels there's no need to sleep at all. For Centos5
166 systems there seems to be a need for a large sleep for firmware
167 load at boot time. So let's make it a loop.
168
169 * xpp/README.Astribank: README.Astribank: new VMWI settings
170
1712010-07-14 10:58 +0000 [r8923-8924] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
172
173 * xpp/perl_modules/Dahdi/Config/Gen.pm: dahdi_genconf: better error
174 message for a bad generator module
175
176 * xpp/perl_modules/Dahdi/Span.pm, xpp/genconf_parameters: Allow
177 using CONNECTOR/LABEL in genconf_parameters Allow using
178 CONNECTOR/LABEL in addition to SPAN and NUM for pri_termtype in
179 genconf_parameters
180
1812010-07-06 17:52 +0000 [r8854] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
182
183 * xpp/perl_modules/Dahdi/Hardware/PCI.pm: Extra PCI IDs for
184 Junghanns PCI-E card (dahdi-perl)
185
1862010-06-29 15:21 +0000 [r8827] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
187
188 * dahdi_tool.c: dahdi_tool: center span window as well. If your
189 window was larger than 80X25, you got a main "window" in the
190 center and the span one in the corner. This puts the span one in
191 the center as well.
192
1932010-06-15 15:44 +0000 [r8777] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
194
195 * dahdi_cfg.c: Convert all '%i' to '%d' in dahdi_cfg Various values
196 in system.conf were parsed using %i. This means that a value with
197 a leading 0x was considered hexadecimal and a value with a
198 leading 0 would be considered octal ('030' == '24' == '0x1E').
199 This was never documented and seems a potential cause for
200 confusion in case a leading zero sneaks in. It is thus removed.
201
2022010-06-03 20:56 +0000 [r8746] Doug Bailey <dbailey@digium.com>
203
204 * patlooptest.c: Add enhanced command line parsing and add more
205 options into how errors are flagged and what is displayed. Still
206 runs with the old usage: patlooptest <dahdi device> [<timeout>]
207
2082010-06-02 17:05 +0000 [r8741] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
209
210 * xpp/perl_modules/Dahdi/Hardware/PCI.pm: An extra PCI ID for an
211 OpenVox card I ran into.
212
2132010-05-20 13:10 +0000 [r8670] Sean Bright <sean@malleable.com>
214
215 * /, xpp: Add dahdi_maint and xpp/twinstar.8 to svn:ignore
216
2172010-05-17 13:26 +0000 [r8630-8638] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
218
219 * /, xpp/waitfor_xpds, xpp/astribank_hook: Fix bashism (Raphael
220 Geissert, checkbashism)
221
222 * xpp/perl_modules/Dahdi/Hardware/USB.pm: A more correct way to
223 pass parameters
224
2252010-05-09 14:09 +0000 [r8615] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
226
227 * dahdi_cfg.c: Remove duplicate code: rad_apply_channels
228 rad_apply_channels() was the same as apply_channels()
229
2302010-05-04 15:33 +0000 [r8606] Kevin P. Fleming <kpfleming@digium.com>
231
232 * dahdi_cfg.c: Report correct span number in dahdi_cfg verbose
233 output. When the DAHDI configuration file does not configure
234 every single span in the system, but leaves spans unconfigured,
235 the verbose output from dahdi_cfg would show incorrect span
236 numbers when reporting the line configuration, as it printed the
237 index into the array of configured spans, instead of their actual
238 span numbers.
239
2402010-05-03 13:54 +0000 [r8589] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
241
242 * xpp/xpp_fxloader: xpp_fxloader: make sure 1163 is not missed.
243
2442010-04-29 15:06 +0000 [r8580] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
245
246 * xpp/xpp_fxloader: Load xpp firmware in the background (udev) Move
247 loading the the xpp firmwares (when called from udev) to a
248 background sub-process. This helps with: * Don't block udev * It
249 seems that with older systems (e.g. CentOS 5) we need to wait a
250 bit for the device file to appear (in one of the upcoming udev
251 events). If we keep blocking udev, we won't have the device file.
252 The 'sleep' does not seem to be required for newer systems (e.g.
253 Debian Lenny).
254
2552010-04-22 09:55 +0000 [r8547] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
256
257 * xpp/Makefile: astribank_is_starting does not depend on libusb.
258
2592010-04-18 12:52 +0000 [r8529-8535] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
260
261 * dahdi.init: Add proper dependencies to the 'stop' action as well.
262
263 * doc/pattest.8, xpp/dahdi_genconf, xpp/astribank_is_starting.8,
264 doc/dahdi_cfg.8, doc/dahdi_test.8, doc/fxotune.8,
265 doc/dahdi_diag.8, doc/dahdi_scan.8, doc/patgen.8,
266 doc/dahdi_monitor.8: man pages: hyphen to minus Groff considers
267 '-' a hyphen. If we want a minus (or a dash) we need to use '\-'.
268
2692010-04-14 14:55 +0000 [r8520] Kinsey Moore <kmoore@digium.com>
270
271 * system.conf.sample: Add documentation for e&me1 (E&M over E1
272 lines).
273
2742010-04-12 Shaun Ruffell <sruffell@digium.com>
275
276 * dahdi-tools version 2.3.0 released.
277
2782010-04-12 20:18 +0000 [r8503-8508] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
279
280 * xpp/perl_modules/Dahdi/Hardware/USB.pm: Also detect USB devices
281 connected on a hub.
282
283 * xpp/perl_modules/Dahdi/Span.pm: Also detect type for Sangoma
284 E1/T1 cards.
285
2862010-04-01 15:45 +0000 [r8451] Shaun Ruffell <sruffell@digium.com>
287
288 * Makefile: dahdi_maint: install dahdi_maint on 'make install'
289
2902010-03-29 21:04 +0000 [r8444] Kinsey Moore <kmoore@digium.com>
291
292 * dahdi_maint.c: Add a space between words and correct an error
293 message.
294
2952010-03-25 15:29 +0000 [r8422-8430] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
296
297 * xpp/perl_modules/Dahdi/Hardware/PCI.pm: wcb4xxp - add Swyx 4xS0
298 SX2 QuadBri PCI IDs to dahdi-perl (issue #16493) Reported by:
299 nic_bellamy
300
301 * xpp/perl_modules/Dahdi/Hardware/PCI.pm: Some more wcb4xxp PCI IDs
302 for Junghanns cards (issue #15446) (issue #16447) Reported by:
303 lpistone Tested by: okrief
304
3052010-03-23 13:41 +0000 Russ Meyerriecks <rmeyerriecks@digium.com>
306
307 * dahdi-tools version 2.2.1.1 released.
308
3092010-03-10 17:37 +0000 Russ Meyerriecks <rmeyerriecks@digium.com>
310
311 * xpp/perl_modules/Dahdi/Hardware/PCI.pm: Added IDs for gen5 firmware
312
3132010-01-11 Shaun Ruffell <sruffell@digium.com>
314
315 * dahdi-tools version 2.2.1 released.
316
3172010-01-10 15:39 +0000 [r7793-7829] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
318
319 * /, xpp/README.Astribank: Another round of updates to
320 README.Astribank. zap->dahdi and others Merged revisions 7754 via
321 svnmerge from http://svn.digium.com/svn/dahdi/tools/trunk
322
323 * xpp/perl_modules/Dahdi/Hardware/USB.pm, /: dahdi-perl: only get
324 'serial' and 'devnum' attributes from Astribanks We can tell if a
325 device is an Astribank by the vendorId and productId attribute.
326 Get other attributed only after we give up on other devices.
327 (closes issue #16552) Merged revisions 7558 via svnmerge from
328 https://origsvn.digium.com/svn/dahdi/tools/trunk
329
330 * /, xpp/xpp_fxloader: xpp_fxloader: adapt to newer kernels This
331 commit prepares xpp_fxloader to get hotplug envirnment from newer
332 kernel versions: * DEVICE will eventually be replaced with
333 DEVNAME. Accept both (and look at DEVNAME first). * If we get
334 DEVICE, we'll probably get an invalid path based at /proc/bus/usb
335 . Fix it to use /dev/bus/usb . * While we're at it, allow using
336 PRODUCT from the envirnment instead of from the command-line.
337 This should allow fixing udev rules but will also work with
338 existing rules in DAHDI-linux from trunk (for systems where they
339 are valid). Merged revisions 7752 via svnmerge from
340 http://svn.digium.com/svn/dahdi/tools/trunk
341
342 * /, xpp/waitfor_xpds, xpp/twinstar_hook, xpp/xpp_fxloader: xpp:
343 Comment-only changes: copyright, keywords Merged revisions 7463
344 via svnmerge from http://svn.digium.com/svn/dahdi/tools/trunk
345
346 * /, xpp/twinstar: Add perldoc for twinstar. This also avoids a
347 bogus, empty twinstar.8 man page. Merged revisions 7219,7263 via
348 svnmerge from http://svn.digium.com/svn/dahdi/tools/trunk
349 ........ r7219 | tzafrir | 2009-09-27 13:49:40 +0200 (Sun, 27 Sep
350 2009) | 5 lines xpp: install twinstar by default; Add a man page
351 Add a man page to twinstar (as perl POD) and get it installed by
352 default. ........ r7263 | tzafrir | 2009-09-29 22:45:50 +0200
353 (Tue, 29 Sep 2009) | 2 lines xpp: fix a typo in documentation
354 ........
355
356 * README, /: Fix README for asciidoc 8.5.2 Tweak title a bit to
357 avoid asciidoc consider it a header for a syntax block. Merged
358 revisions 7792 via svnmerge from
359 http://svn.digium.com/svn/dahdi/tools/trunk
360
3612009-12-15 Shaun Ruffell <sruffell@digium.com>
362
363 * dahdi-tools version 2.2.1-rc2 released.
364
3652009-12-01 13:14 +0000 [r7655] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
366
367 * xpp/Makefile: Also install the twinstar tool on the system
368 Originaly part of trunk r7219.
369
3702009-11-22 11:48 +0000 [r7621] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
371
372 * xpp/astribank_hexload.c, xpp/perl_modules/Dahdi/Hardware/USB.pm,
373 xpp/mpp_funcs.c, xpp/astribank_tool.c, xpp/astribank_usb.h,
374 xpp/mpp_funcs.h, xpp/astribank_tool.8,
375 xpp/perl_modules/Dahdi/Xpp/Mpp.pm, xpp/mpp.h: xpp: MPP protocol
376 v.1.4 * New firmware loading protocol - Older one (1.3) is still
377 supported for now * Support loading firmwares from Astribanks
378 with a minimal firmware (1163) * astribank_tool -Q: always query,
379 regardless of verbosity level xpp rev: up to 7559 Merged
380 revisions 7609 via svnmerge from
381 https://origsvn.digium.com/svn/dahdi/tools/trunk
382
3832009-11-19 23:11 +0000 [r7611] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
384
385 * xpp/xpp_fxloader, xpp/astribank_tool.c: xpp: support loading
386 USB firmware into 1163 devices as well Demote some messages to
387 debug while we're at it. Merged revisions 7596 via svnmerge from
388 http://svn.digium.com/svn/dahdi/tools/trunk
389
3902009-11-05 09:41 +0000 [r7466-7492] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
391
392 * xpp/xpp_sync, xpp/perl_modules/Dahdi/Xpp/Xpd.pm: Use the
393 timing_priority attribute, if available, to provide more corrent
394 LED indiction and such.
395
396 * xpp: use xpd sysfs attr. timing_priority to set NT/TE
397
398 * dahdi.init, xpp/astribank_is_starting.c (added),
399 xpp/waitfor_xpds, xpp/astribank_is_starting.8 (added),
400 xpp/twinstar_hook, xpp/xpp_fxloader, xpp/Makefile,
401 xpp/astribank_hook, init.conf.sample: Add optional "hotplug mode"
402 to init scripts The hotplug mode is only used in
403 XPP_HOTPLUG_DAHDI=yes is set in /etc/dahdi/init.conf . If it is
404 set and the system actually has Astribanks, most of the init
405 script will actually be run from the context of a udev event.
406
407 * xpp: Add astribank_is_starting: astribank_is_running is used to
408 tell when we may have an Astribank that is initializing (and may
409 be re-enumerating and thus not listed as a device). It uses a
410 semaphore as we can always write to one and we can't always write
411 to a file. xpp: A man page for astribank_is_starting xpp rev: 7321
412
413 * dahdi.init: move module loading to a separate function Move the
414 module loading parts of the dahdi init script to a seperate
415 function - load_modules. To be used by a later commit. There is
416 not functional change here (but the diff is confusing).
417
418 * Add XPP_HOTPLUG_DAHDI mode: cfg initiated mostly from hotplug If
419 XPP_HOTPLUG_DAHDI=yes is set in /etc/dahdi/init.conf (which is
420 not the default), the normal run of the 'start' operation of the
421 dahdi init script will only be responsible for loading modules.
422 The rest will be done (if there are indeed Astribanks on the
423 system) by a second call to the init script once all of them have
424 connected. The astribank_hook has also been mostly rewritten.
425 Most of the functionality of twinstar_hook moved to it. The
426 current twinstar_hook is a simple example script.
427 XPP_HOTPLUG_DAHDI mode assumes that all Astribanks on the system
428 are listed in /etc/dahdi/xpp_order (which can be generated using,
429 e.g. 'dahdi_genconf xpporder')
430
431 * Fix XPP_HOTPLUG_DAHDI: logic; end of init.d script 'Hotplug mode'
432 was introduced in r7335. * The logic in the script was broken. -
433 Negative logic is not such a grand idea to start with. *
434 Interactive invocation of init.d ends when expected and not
435 sooner. This change makes waitfor_xpds wait longer. Rather than
436 waiting for all the Astribanks to load, it will now wait until
437 the initialization of dahdi from the Astribanks hook script is
438 run. This allows running e.g.: /etc/init.d/dahdi start;
439 /etc/init.d/asterisk start It also means that
440 'astribank_is_starting' is actually used as a semaphore and not
441 only as stamp file. As before, those changes have no effect if
442 hotplug mode is not explicitly enabled (setting
443 'XPP_HOTPLUG_DAHDI=yes' in init.conf).
444
445 * xpp: make astribank_is_starting build without warnings.
446 autoconfig.h is needed as semtimedop() requires _GNU_SOURCE. xpp
447 rev: 7471
448
449 * xpp/perl_modules/Dahdi/Config/Params.pm,
450 xpp/perl_modules/Dahdi/Config/Gen.pm,
451 xpp/perl_modules/Dahdi/Config/Gen/Chandahdi.pm,
452 xpp/perl_modules/Dahdi/Config/Gen/System.pm,
453 xpp/genconf_parameters: CAS DAHD/Asterisk configuration
454 generation support Also support generating (open)R2 config in
455 chan_dahdi.conf, while we're at it. Default configuration remains
456 ISDN as before if no extra settings are given in
457 genconf_parameters.
458
459
460 * dahdi-perl: chan_dahdi.conf generator can generate openr2 conf If
461 configured to use R2 ("pri_connection_type R2" in
462 genconf_parameters), the chandahdi generator of dahdi_genconf
463 will now generate configuration for the openr2 support in
464 chan_dahdi.
465
466 * xpp: Dahdi::Config::Gen.pm: improvements in preperation for
467 T1-CAS: - New channo_range() method which returns range strings
468 for any list of channel numbers (handle sorting, validation,
469 etc.) - Reimplement bchan_range() as a small wrapper around
470 channo_range(). - Another small wrapper is chan_range() that
471 works on channel objects. - Also a parse_chan_range() does the
472 reverse (from range string to a list of channel numbers). This
473 isn't used at the moment. xpp rev: 7306
474
475 * dahdi-perl: Add basic T1-CAS support for dahdi_genconf - Support
476 added in generators of system.conf and of chan_dahdi.conf . -
477 Some strange asumptions about being FXS/FXO depending on being
478 timing provider/supplier. - New gen_cas() method for Chandahdi
479 and System. - Now gen_digital() is a bit cleaner. - Call
480 gen_cas(), gen_openr2(), gen_digital() according to the
481 'pri_connection_type' config (CAS, R2, PRI/BRI). xpp rev: 7307
482
483
484 * dahdi_perl: improved config generation for T1 CAS A few extra
485 options for a CAS span signalling. xpp rev: 7343, 7346, 7369
486
487 * xpp: reduce the clutter of firmware loading Make the new XPP
488 tools much less verbose: * demote messages to be debug * Convert
489 multi-line messages to be single-line messages Making
490 xpp_fxloader run in debug mode can be done by setting DEBUG=yes
491 in /etc/dahdi/init.conf.
492
493 * dahdi-perl fixes, mostly xpp-specific. * Fix pattern for PCI BRI
494 cards * Fix recognizing xpp devices by @connector in xpp_order *
495 Print more helpful comments in xpp_order * Remove most (if not
496 all) need of /proc/bus/usb * Handle other similar "is_twinstar"
497 errors.
498
499 * dahdi_genconf: xpp_order generator: Extra '#' after connector
500 comment Add an extra '#' right after the connector string to make
501 it simpler to use the connector string from the generated
502 xpp_order. xpp rev: 7292
503
504 * xpp: make /proc/bus/usb/devices optional Get the information we
505 read from /proc/bus/usb/devices from /sys/bus/usb/devices .
506 Tested on my Debian Unstable with 2.6.30 kernel. The default is
507 still /proc/bus/usb and sysfs is only used if the procfs file is
508 not found. Also fixes a case of using the sysfs attribute busnum,
509 that does not exist in kernel 2.6.9 . Devise the bus number from
510 the name of the node.
511
512 * dahdi-perl: Avoid '"is_twinstar" on unblessed reference' Dpn't
513 panic if a device is not found in the list of hardware. This is
514 not only indication of a bug, but can also happen if a device
515 appeared after the script was started.
516
517 * zonedata.c: zonedata: Add tone definitions for Panama. (closes
518 issue #14832) Reported by: jlduran Patch by: jldruan
519
520 * Pass correct channel number to DAHDI_GET_PARAMS when passing span
521 numbers to dahdi_scan. When filtering, we weren't taking into
522 account the number of channels in the spans that we were
523 skipping. (closes issue #15553) Reported by: tony Patches:
524 20090723_issue15553.patch uploaded by seanbright (license 71)
525 Tested by: seanbright
526
527 * xpp: cleanup gcc warnings and one real astribank_tool bug xpp
528 rev: 7281
529
530 * Add a missing trailing slash on the install-libs target (closes
531 issue #15793) Reported by: pprindeville Patches:
532 dahdi-tools-makefile.patch uploaded by pprindeville (license 347)
533
534 * dahdi_genconf: Add the TC400P transcoder card to our hardware
535 list (seanbright)
536
5372009-06-08 17:02 +0000 [r6677-6678] Sean Bright <sean.bright@gmail.com>
538
539 * dahdi-tools version 2.2.0 released.
540
541 * Makefile: Since this 'echo' is part of a larger statement, we
542 don't need the @ symbol. Cleans up an error I am seeing on
543 Ubuntu.
544
545 * Makefile: Get rid of parallel build warnings from GNU make.
546
5472009-05-28 14:04 +0000 [r6668] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
548
549 * xpp/waitfor_xpds: xpp: if $dahdi_hardware is empty, don't use it
550 in an error message
551
5522009-05-27 Shaun Ruffell <sruffell@digium.com>
553
554 * dahdi-tools version 2.2.0-rc3 released.
555
5562009-05-26 09:55 +0000 [r6655-6657] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
557
558 * Makefile: Reword the message after 'make config' for the case no
559 hardware found Check the output of dahdi_hardware and give a
560 different message for the case it found no hardware. (closes
561 issue #14792) Reported by: Dovid Patches:
562 dahdi_hardware_nodev_make.diff uploaded by tzafrir (license 46)
563
564 * xpp/waitfor_xpds: Properly fix usage of waitfor_xpds in
565 non-standard settings. From xpp rev. 7137.
566
5672009-05-19 16:46 +0000 [r6643-6647] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
568
569 * xpp/perl_modules/Dahdi/Config/Params.pm, xpp/dahdi_genconf,
570 xpp/perl_modules/Dahdi/Config/Gen/Xpporder.pm,
571 xpp/perl_modules/Dahdi/Config/Gen/System.pm,
572 xpp/perl_modules/Dahdi/Xpp/Xpd.pm, xpp/genconf_parameters:
573 dahdi-perl: make dahdi_genconf default to hardhdlc
574 dahdi_genconf's 'bri_hardhdlc' parameter changes. Should
575 generally work with no need for manual configuration unless you
576 use a bristuffed driver (zaphfc, qozap). See notes in
577 genconf_parameters.
578
579 * xpp/waitfor_xpds, dahdi.init: dahdi.init: moved test for
580 astribanks into waitfor_xpds If the system starts with an
581 Astribank with no firmware, the firmware loading may take a while
582 and the Astribank only becomes ready some time after the DAHDI
583 init script starts. This means that the test at the beginning of
584 xpp_startup() in dahdi.init fails to find an Astribank, and the
585 init script simply continues ignoring this. This changeset moves
586 the testing inside the script waitfor_xpds. The script now: 1.
587 Tests for an Astribank using dahdi_hardware and exists
588 immediately if none found. 2. A loop (of maximum 10 seconds)
589 waits for the first Astribank to be detected by the driver. 3.
590 Waiting for the initialization of all the Astribanks to complete
591 (The original waitfor_xpds) The support for the old procfs
592 iinterface has been removed, as it has never been used with
593 DAHDI.
594
595 * xpp/Makefile, xpp/astribank_tool.8, xpp/astribank_allow.8
596 (added): xpp: install astribank_allow As we install it, we need a
597 matching man page.
598
5992009-05-17 12:01 +0000 [r6630-6632] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
600
601 * xpp/perl_modules/Dahdi/Config/Gen/Users.pm: A closer-to-reality
602 users.conf generation module
603
604 * xpp/perl_modules/Dahdi/Config/Gen/Xpporder.pm,
605 xpp/perl_modules/Dahdi/Xpp/Mpp.pm, xpp/genconf_parameters: Fix
606 typos in xpp documentation
607
6082009-05-14 14:02 +0000 [r6619] Shaun Ruffell <sruffell@digium.com>
609
610 * dahdi_cfg.c: dahdi_cfg: Default to the us tonezone if not
611 specified in system.conf. If there are not "loadzone" and
612 "defaultzone" lines in /etc/dahdi/system.conf, default to the us
613 zone. This mimics the behavior of older zaptel releases.
614 DAHDI-29.
615
6162009-05-13 20:18 +0000 [r6613-6617] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
617
618 * xpp/mpp_funcs.c, xpp/astribank_tool.c: astribank_tool: Support
619 'reset' of pre-MPP protocol as fallback As of USB firmware rev.
620 6926, the Astribank control connection protocol has changed in an
621 incompatible manner. If astribank_tool fails to open a device
622 when running a reset command, try to reset the device with the
623 command from the old (pre-MPP) protocol (A single 0x20 byte). No
624 support whatsoever for any other feature of the old protocol.
625 From xpp rev. 7067. (previous commit was xpp rev. 7066).
626
627 * xpp/mpp_funcs.c: xpp: better error reporting when failing to talk
628 to a pre-MPP Astribank.
629
630 * xpp/perl_modules/Dahdi/Chans.pm, xpp/perl_modules/Dahdi/Span.pm:
631 dahdi-perl: Patterns for Rhino E1/T1 cards.
632
6332009-05-12 07:50 +0000 [r6601-6603] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
634
635 * xpp/README.Astribank: A few more chan_zap -> chan_dahdi in
636 README.Astribank .
637
638 * xpp/perl_modules/Dahdi/Chans.pm: DAHDI-perl: Fix detection of
639 empty slots in Rhino cards.
640
6412009-05-09 06:33 +0000 [r6579-6585] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
642
643 * xpp/README.Astribank: Fix a broken link
644
645 * xpp/README.Astribank: documentation updates: xpp_order, new USB
646 loading, and more
647
648 * xpp/perl_modules/Dahdi.pm: dahdi-perl: scan only "number" files
649 under /proc . (In case someone, such as dahdi_dynamic_ethmf adds
650 there some other entries)
651
6522009-04-29 Shaun Ruffell <sruffell@digium.com>
653
654 * dahdi-tools version 2.2.0-rc2 released.
655
6562009-04-27 19:45 +0000 [r6512] Kevin P. Fleming <kpfleming@digium.com>
657
658 * configure, acinclude.m4: incorporate the autoconf 2.63 fixes here
659 too
660
6612009-04-26 10:29 +0000 [r6492] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
662
663 * Makefile, xpp/xpp_order (removed): Remove useless sample file The
664 sample xpp_order will be generated anyway when running
665 'dahdi_genconf xpporder' (see
666 xpp/perl_modules/Dahdi/Config/Gen/Xpporder.pm) . No need to
667 clutter the main DAHDI installation with it.
668
6692009-04-23 17:03 +0000 [r6476] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
670
671 * Makefile, xpp/xpp_order: xpp: xpp_order is another config file
672 that should go to /etc/dahdi Also slightly fix the sample config.
673
6742009-04-22 10:25 +0000 [r6427-6442] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
675
676 * dahdi.init: make sure '/etc/init.d/dahdi stop' ends with a
677 newline
678
679 * ppp/dahdi.c: Yet another left-over DAHDI_PARAMS. ppp almost
680 builds
681
682 * xpp/perl_modules/Dahdi/Config/Gen/Xpporder.pm:
683 Dahdi::Config::Gen::Xpporder: use number rather than object in
684 warning
685
6862009-04-21 13:44 +0000 [r6419-6421] Sean Bright <sean.bright@gmail.com>
687
688 * dahdi_monitor.c: Correct error check for fopen() calls in
689 dahdi_monitor.c. dahdi_monitor.c was checking for an error
690 calling fopen() by determining if the return value was less than
691 0. fopen(), however, returns a FILE * and returns NULL on
692 failure. (closes issue #14894) Reported by:
693 gknispel_proformatique Patches:
694 dahdi_monitor_fix_check_fopen_result.patch uploaded by gknispel
695 (license 261)
696
697 * dahdi_monitor.c: Use correct return value type for getopt(). In
698 dahdi_monitor.c, the return value of getopt() was being assigned
699 to a char while the function actually returns an int. Fix
700 suggested by reporter. (closes issue #14893) Reported by:
701 gknispel_proformatique
702
703 * dahdi_monitor.c: Whitespace and coding guidelines changes
704
7052009-04-20 13:44 +0000 [r6417] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
706
707 * xpp/dahdi_hardware, xpp/perl_modules/Dahdi/Xpp/Xbus.pm,
708 xpp/test_parse.c, xpp/twinstar, xpp/twinstar_hook,
709 xpp/twinstar_setup, xpp/perl_modules/Dahdi/Config/Gen/Xpporder.pm
710 (added), xpp/perl_modules/Dahdi/Xpp/Mpp.pm: xpp: twinstar-related
711 perl improvements * New generator Dahdi::Config::Gen::Xpporder
712 can generate and xpp_order config for an existing setup. * Add
713 more TwinStar related logic to Dahdi::Xpp::Mpp. Simplifies the
714 twinstar utility accordingly. * twinstar_hook: for the multiple
715 Astribanks case. * twinstar_setup: More logic tests. Now
716 delegates configuration generation to dahdi_genconf (with new
717 Xpporder generator). * dahdi_hardware: Show number of channels
718 with -v
719
7202009-04-16 17:32 +0000 [r6375] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
721
722 * xpp/xpp_fxloader: xpp_fxloader: exit properly when run with
723 incorrect argument
724
7252009-04-10 09:53 +0000 [r6344] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
726
727 * xpp/Makefile, xpp/astribank_hook (added): Move astribank_hook
728 from linux to tools. Install it by default
729
7302009-04-07 08:13 +0000 [r6337] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
731
732 * xpp/hexfile.c: hexfile.c was accidentally left out of r6313
733
7342009-04-02 20:56 +0000 [r6278-6313] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
735
736 * xpp/pic_loader.h (added), xpp/astribank_hexload.8 (added),
737 xpp/twinstar_setup (added), xpp/xpp_fxloader,
738 xpp/astribank_tool.c (added), xpp/astribank_allow.c (added), xpp,
739 xpp/xpp_sync, xpp/dahdi_genconf, xpp/twinstar (added),
740 xpp/mpp_funcs.c (added), xpp/Makefile, xpp/mpp_funcs.h (added),
741 xpp/astribank_tool.8 (added), xpp/perl_modules/Dahdi/Xpp/Mpp.pm
742 (added), xpp/astribank_upgrade (added),
743 xpp/perl_modules/Dahdi/Xpp.pm,
744 xpp/perl_modules/Dahdi/Hardware/PCI.pm, xpp/dahdi_hardware,
745 xpp/twinstar_hook (added), xpp/xpp_order (added),
746 xpp/astribank_hexload.c (added), xpp/dahdi_registration,
747 xpp/perl_modules/Dahdi/Hardware/USB.pm,
748 xpp/perl_modules/Dahdi/Xpp/Xbus.pm, xpp/debug.c (added),
749 xpp/dahdi_drivers, xpp/lsdahdi, xpp/astribank_usb.c (added),
750 xpp/hexfile.h, xpp/perl_modules/Dahdi/Hardware.pm, xpp/debug.h
751 (added), xpp/astribank_usb.h (added),
752 xpp/perl_modules/Dahdi/Xpp/Xpd.pm, xpp/mpp.h (added),
753 xpp/pic_loader.c (added): Support for Astribanks 116x: tools part
754 * New USB firmware loading mechanism. - Incompatible with
755 previous one: upgrade using fxload or hard reset -
756 astribank_hexload is the new low-level loading tool - fpga_load
757 remains for backward compatibility. - xpp/astribank_upgrade:
758 automate upgrading using fxload * Much enhanced control protocol
759 ("MPP") - astribank_tool is the low-level tool for that. *
760 Support for the TwinStar (dual USB port) - Managed through
761 astribank_tool - Wrapper perl modules and scripts provided *
762 Allow explicit ordering of Astribanks - /etc/dahdi/xpp_order -
763 explicit order of Astribanks on the system - The default sorter
764 is now to use those and fall back to connectors (previous
765 default). - An option to dahdi_registration to change sorting.
766
767 * hdlcstress.c: hdlcstress.c: add option -b not to stress BRI too
768 much Aparantly the HFC chip can't stand the heat of this test.
769 Let's give it an occasional rest. Also add getopts support.
770
771 * Makefile: Install genconf_parameters on 'make install' as well
772
773 * blacklist.sample: xpp_usb should not be blacklisted: it does not
774 register automatically anyway.
775
776 * xpp/perl_modules/Dahdi/Config/Gen/Modules.pm (added): Implement
777 'dahdi_genconf modules' (generate /etc/dahdi/modules)
778
7792009-03-29 18:53 +0000 [r6272] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
780
781 * xpp/perl_modules/Dahdi/Config/Gen.pm: dahdi_genconf: Set the
782 context same as groups.
783
7842009-03-26 18:28 +0000 [r6261] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
785
786 * doc/dahdi_scan.8: s/zap/dahdi/ again in dahd_scan.8
787
7882009-03-26 18:02 +0000 [r6259] Kevin P. Fleming <kpfleming@digium.com>
789
790 * dahdi_cfg.c: when /etc/dahdi/system.conf does not have an echo
791 canceller defined for a channel, but the channel previously had
792 one assigned, running dahdi_cfg does not remove the assigned echo
793 canceller from the channel as it should. this commit changes that
794 behavior, so that every channel with a defined signaling mode is
795 updated to have the proper (or no) echo canceller assigned.
796
7972009-03-22 10:31 +0000 [r6215] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
798
799 * xpp/perl_modules/Dahdi/Config/Gen/Users.pm,
800 xpp/perl_modules/Dahdi/Config/Gen/Chandahdi.pm,
801 xpp/perl_modules/Dahdi/Config/Gen/System.pm,
802 xpp/perl_modules/Dahdi/Config/Gen/Unicall.pm: dahdi-perl: "allow"
803 hand-editing of generated files Rework the text added by
804 dahdi_genconf generators to say that you can hand-edit files. But
805 just don't complain if they get mysteriously overriden when it is
806 run again :-) (closes issue #14569) Reported by: jtodd
807
8082009-03-17 17:07 +0000 [r6189] Jason Parker <jparker@digium.com>
809
810 * dahdi_monitor.c: Remove remnants of -p option, since it no longer
811 exists.
812
8132009-03-17 13:52 +0000 [r6187] Russell Bryant <russell@digium.com>
814
815 * zonedata.c: Add tone definitions for Turkey. (closes issue
816 #10450) Reported by: msahinbas
817
8182009-03-17 09:10 +0000 [r6167-6185] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
819
820 * Makefile: Use LIBS instead of LDFLAGS directly in tools Makefile
821 The Makefile of dahdi-tools set the variable LDFLAGS directly,
822 rather than adding to LIBS. This does not allow placing LIBS
823 after all the linked objects. (closes issue #14638) Reported by:
824 Chainsaw Patches: dahdi-tools-2.1.0.2-asneeded.patch uploaded by
825 Chainsaw (license 723)
826
827 * xpp/README.Astribank, xpp/xpp_sync, dahdi.init: dahdi.init: call
828 xpp_sync a bit later. xpp_sync needs to only be called after
829 dahdi_cfg was run, because the application of system.conf may
830 change the priority of a PRI module span (If it is a sync
831 provider, "NT", priority is lower). Also some documentation-only
832 changes for xpp_sync.
833
8342009-03-09 16:30 +0000 [r6110] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
835
836 * xpp/perl_modules/Dahdi/Chans.pm: Fix detection of channels of
837 dynamic spans in Dahdi::Chans Fix the pattern detection of
838 channels belonging to dynamic (dahdi_dynamic) spans in perl
839 programs that use Dahdi::Chans (e.g.: lsdahdi) (closes issue
840 #14630) Reported by: tamiel Patches:
841 20090309-perl5-Dahdi-Chans.diff uploaded by tamiel (license 712)
842
8432009-03-07 00:10 +0000 [r6107] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
844
845 * xpp/perl_modules/Dahdi/Chans.pm,
846 xpp/perl_modules/Dahdi/Hardware/USB.pm: Detect Sangoma USB FXO
847 device; fix detection of Sangoma DAHDI channels (By Alessandro
848 Zummo)
849
8502009-03-05 21:10 +0000 [r6095] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
851
852 * dahdi.init: Fix a typo in shutting down dynamic spans in
853 dahdi.init Fixes shutdown_dynamic() in the dahdi init.d script.
854 Not enabling it by default just yet (the second half of the
855 patch) until we get some further confirmation that such a
856 shutdown is always good. (from issue #14603) Reported by: tamiel
857 Patches: 20090304_dahdi.init.patch uploaded by tamiel (license
858 712)
859
8602009-03-03 20:39 +0000 [r6071-6078] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
861
862 * Makefile, README, /: Include sample genconf_parameters in
863 dahdi-tools README.
864
865 * xpp/perl_modules/Dahdi/Config/Params.pm,
866 xpp/perl_modules/Dahdi/Config/Gen.pm, xpp/genconf_parameters:
867 genconf_parameters: Add option fxo_default_start; Document
868 genconf_parameters * Add a dqahdi_genconf option
869 fxo_default_start, equivalent of fxs_default_start. * Set all
870 trunks in group 'group_lines' rather than hard-coded 0 (for TE)
871 and 6 (for NT). * Document all parameters in genconf_parameters.
872
873 * xpp/perl_modules/Dahdi/Config/Params.pm (added),
874 xpp/dahdi_genconf, xpp/perl_modules/Dahdi/Config/Gen.pm,
875 xpp/perl_modules/Dahdi/Config/Gen/Users.pm,
876 xpp/perl_modules/Dahdi/Config/Gen/Chandahdi.pm,
877 xpp/perl_modules/Dahdi/Config/Gen/System.pm,
878 xpp/perl_modules/Dahdi/Config/Gen/Unicall.pm: dahdi_genconf:
879 configuration handling cleanup. * Parsing genconf_parameters is
880 now in Dahdi::Config::Params All hard-coded defaults are there
881 too (in the item() method). * Dahdi::Config::Genconf is gone
882 (merged into Dahdi::Config::Gen) All semantic mapping is in the
883 constructor. * dahdi_genconf is now lean and mean. * Add some
884 implementation docs into these files.
885
886 * xpp/perl_modules/Dahdi/Config/Gen/System.pm: dahdi-perl: Do
887 generate 'echocanceller' in system.conf Fixed a regression from
888 r6013 .
889
890 * xpp/perl_modules/Dahdi/Config/GenconfDefaults.pm (removed):
891 dahdi-perl: Remove an obsolete and unused module
892 GenconfDefaults.pm
893
894 * xpp/README.Astribank: README.Astribank: Killed one remaining
895 /sys/devices/xpp
896
8972009-03-01 14:29 +0000 [r6054-6058] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
898
899 * xpp/README.Astribank: More README updates
900
901 * xpp/perl_modules/Dahdi/Xpp/Xbus.pm, xpp/dahdi_genconf,
902 xpp/perl_modules/Dahdi/Config/Gen/Chandahdi.pm,
903 xpp/perl_modules/Dahdi/Xpp/Xpd.pm: xpp-dahdi: freepbx code
904 generation; better procfs compatibility * dahdi_genconf -F will
905 generate chan_dahdi.conf for freepbx (like genzaptelconf -F) *
906 Better procfs compatibility for xpp modules.
907
908 * xpp/dahdi_drivers,
909 xpp/perl_modules/Dahdi/Config/GenconfDefaults.pm,
910 xpp/perl_modules/Dahdi/Config/Gen.pm,
911 xpp/perl_modules/Dahdi/Config/Gen/Users.pm: dahdi-perl: more
912 defensive coding and some docs
913
914 * xpp/perl_modules/Dahdi.pm: Dahdi.pm: the sample code should
915 actually work.
916
917 * xpp/fpga_load.c: fpga_load.c: Flush USB device buffer on startup.
918 Fixes some firmware loading issues.
919
9202009-02-26 15:41 +0000 [r6041-6043] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
921
922 * xpp/perl_modules/Dahdi/Hardware/PCI.pm: Add PCI IDs of another
923 HFC-S card that zaphfc can handle.
924
925 * xpp/perl_modules/Dahdi/Chans.pm: Fix a typo for detecting zaphfc.
926
9272009-02-18 21:20 +0000 [r6022] Doug Bailey <dbailey@digium.com>
928
929 * fxstest.c: Remove 8 bit restriction on setting indirect registers
930 (closes issue #14323) Reported by: alecdavis Patches:
931 fxstest_setindirect.diff.txt uploaded by alecdavis (license 585)
932 Tested by: alecdavis
933
9342009-02-13 21:09 +0000 [r6013] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
935
936 * xpp/dahdi_genconf, xpp/perl_modules/Dahdi/Config/Gen.pm (added),
937 xpp/perl_modules/Dahdi/Config/Gen/Users.pm (added),
938 xpp/perl_modules/Dahdi/Config/Gen/Chandahdi.pm (added),
939 xpp/perl_modules/Dahdi/Config/Gen/System.pm (added),
940 xpp/perl_modules/Dahdi/Config/Gen (added),
941 xpp/perl_modules/Dahdi/Config/Gen/Unicall.pm (added): Rework
942 dahdi_genconf to have separate configuration generation modules.
943 'dahdi_genconf foo bar' will use the modules
944 Dahdi::Config::Gen::Foo and Dahdi::Config::Gen::Bar to generate
945 configuraion files. Extra formats can thus be added without
946 modifying dahdi_genconf and independently of DAHDI.
947
9482009-02-08 11:04 +0000 [r5984] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
949
950 * xpp/dahdi_genconf: dahdi_genconf: do reset default files list
951 when command-line has files This fixes a regression that was
952 added whwn handling of R2 was added. Originally: Xorcom rev 6683.
953
9542009-01-28 18:49 +0000 [r5886] Shaun Ruffell <sruffell@digium.com>
955
956 * dahdi.init: Use the dahdihpec_enable tool instead of the
957 zaphpec_enable. Issue: DAHDI-233 patch by: cmoye
958
9592009-01-27 15:14 +0000 [r5827] Doug Bailey <dbailey@digium.com>
960
961 * fxstest.c: Break VMWI ioctl calls into two separate calls to
962 maintain old revision compatibility (issue #14104) Reported by:
963 alecdavis Tested by: dbailey
964
9652009-01-25 00:50 +0000 [r5808-5809] Sean Bright <sean.bright@gmail.com>
966
967 * dahdi.init: Use the debian commands on Gentoo. (closes issue
968 #14277) Reported by: darren1713 Patches: dahdi.init.txt uploaded
969 by darren1713 (license 116)
970
9712009-01-22 15:45 +0000 [r5800] Doug Bailey <dbailey@digium.com>
972
973 * fxstest.c: Alec Davis change to modify vmwi test to use new ioctl
974 call structure and enhance functionality (issue #14104) Reported
975 by: alecdavis Patches: mwiioctl_structure_fxstest.diff.txt
976 uploaded by dbailey (license ) Tested by: alecdavis, dbailey
977
9782009-01-20 18:54 +0000 [r5768] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
979
980 * xpp/dahdi_genconf: dahdi_genconf: Finally set $fxs_default_start
981 = 'ks' rather than 'ls'
982
9832009-01-19 15:19 +0000 [r5728] Doug Bailey <dbailey@digium.com>
984
985 * fxstest.c: Add test to excercise VMWI Enhance polarity test by
986 making sure the line is in an active state before testing (issue
987 #14104) Reported by: alecdavis Patches: dahditools-14104.diff.txt
988 uploaded by dbailey (license ) Tested by: alecdavis
989
9902009-01-19 12:46 +0000 [r5705-5707] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
991
992 * Makefile: dahdi-tools: Delete test binaries on 'make clean'
993
994 * xpp/perl_modules/Dahdi/Xpp/Xpd.pm, xpp/xpp_sync: xpp_sync xpd
995 order fix.
996
997 * xpp/perl_modules/Dahdi/Span.pm: Dahdi-perl: Do detect Astribank
998 PRI modules.
999
10002009-01-18 10:22 +0000 [r5671] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
1001
1002 * xpp/perl_modules/Dahdi/Xpp/Xbus.pm,
1003 xpp/perl_modules/Dahdi/Chans.pm,
1004 xpp/perl_modules/Dahdi/Xpp/Line.pm,
1005 xpp/perl_modules/Dahdi/Span.pm,
1006 xpp/perl_modules/Dahdi/Xpp/Xpd.pm, xpp/xpp_sync,
1007 xpp/perl_modules/Dahdi/Xpp.pm: XPP tool updates to match r5663:
1008 sysfs migration.
1009
10102009-01-16 14:18 +0000 [r5662] Sean Bright <sean.bright@gmail.com>
1011
1012 * configure, configure.ac: Properly detect GENERIC_HDLC_VERSION on
1013 various kernel versions. (closes issue #14150) Reported by:
1014 ccesario Patches: 20090115__bug14150.diff.txt uploaded by
1015 seanbright (license 71) Tested by: ccesario
1016
10172009-01-15 12:47 +0000 [r5661] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
1018
1019 * xpp/dahdi_genconf: Add an extra output format, 'asterisk': make
1020 the configuration readable for an Asterisk configuration parser.
1021
10222009-01-14 20:06 +0000 [r5656-5660] Sean Bright <sean.bright@gmail.com>
1023
1024 * hdlctest.c: Whitespace and coding guidelines changes only.
1025
1026 * hdlctest.c: Fix some uninitialized variable warnings that were
1027 causing hdlctest to not compile. Tested the program as well and
1028 it appears to work correctly. (closes issue #13906) Reported by:
1029 tzafrir
1030
1031 * dahdi_monitor.c: This commit deserves no comment.
1032
1033 * dahdi_monitor.c: The problem with using dahdi_copy_string here is
1034 that it is guaranteed to NULL terminate the destination string,
1035 which in this case was not correct. So revert back to using
1036 strncpy and also decrease the buffer by 1 since it was reserving
1037 an extra byte behind NULL for some reason. Fix suggested by
1038 reporter. (closes issue #14103) Reported by: gork
1039
10402009-01-06 08:09 +0000 [r5643] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
1041
1042 * xpp/perl_modules/Dahdi/Hardware/PCI.pm: d00d must be in small
1043 caps
1044
10452009-01-03 21:14 +0000 [r5626] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
1046
1047 * xpp/perl_modules/Dahdi/Span.pm: Dahdi::Span: Remove an
1048 over-general span header "pri" pattern. Should fix #14061 .
1049
10502008-12-16 17:02 +0000 [r5555] Doug Bailey <dbailey@digium.com>
1051
1052 * fxotune.c: Add ability to use sine tables for systems that don't
1053 have efficient floating point Add the ability to print out the
1054 best results found during tuning Some format cleanup
1055
10562008-12-15 Shaun Ruffell <sruffell@digium.com>
1057
1058 * dahdi-tools version 2.1.0.2 released.
1059
10602008-12-15 20:19 +0000 [r5533] Shaun Ruffell <sruffell@digium.com>
1061
1062 * Makefile: Overwrite the libtonezone.so.1.0 and libtonezone.so.1
1063 links and libraries in order to maintain binary compatibility
1064 with applications linked with dahdi-tools 2.0.0.
1065
10662008-12-15 11:19 +0000 [r5530-5532] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
1067
1068 * xpp/README.Astribank: README.Astribank: minor formatting fix.
1069
1070 * xpp/README.Astribank: Document patching the xpp BRI driver for
1071 now.
1072
1073 * dahdi_cfg.c: Allow the span timing to be up to 255. The test for
1074 15 was ineffective anyway. Some drivers can use higher values.
1075 See issue #13954 .
1076
10772008-12-11 Shaun Ruffell <sruffell@digium.com>
1078
1079 * dahdi-tools version 2.1.0.1 released.
1080
10812008-12-11 22:45 +0000 [r5514] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
1082
1083 * dahdi.init: Drop the "redhat" action at the 'stop' case for now:
1084 RHEL4's 'action' only works with programs and not with functions.
1085
10862008-12-09 Shaun Ruffell <sruffell@digium.com>
1087
1088 * dahdi-tools version 2.1.0 released.
1089
10902008-12-09 19:41 +0000 [r5461] Shaun Ruffell <sruffell@digium.com>
1091
1092 * modules.sample: Adding the wctc4xxp driver to the modules.sample.
1093
10942008-12-08 14:02 +0000 [r5452] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
1095
1096 * xpp/perl_modules/Dahdi/Span.pm: Fix detection of the B410P card.
1097 All ports will be reported as TE. Tested by write_erase on
1098 #asterisk-dev.
1099
11002008-12-05 00:24 +0000 [r5432-5440] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
1101
1102 * xpp/dahdi_genconf: dahdi_genconf: add output type 'modules'
1103 (/etc/dahdi/modules) Also improved documentation.
1104
1105 * xpp/README.Astribank: A minor formatting fix.
1106
11072008-12-01 18:41 +0000 [r5409-5426] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
1108
1109 * xpp/README.Astribank: Next README.Astribank revision: Devices are
1110 not under the bun. (And various other fixes)
1111
1112 * xpp/README.Astribank: README.Astribank catching up with sysfs,
1113 dahdi and all. Many more entries in the table of contents. Most
1114 of sysfs is documented.
1115
11162008-11-27 10:01 +0000 [r5402-5404] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
1117
1118 * Makefile, /: dahdi-tools: Re-add README.Astribank.html
1119 generation.
1120
1121 * xpp/README.Astribank (added): Moving README.Astribank to
1122 dahdi-tools .
1123
11242008-11-25 Shaun Ruffell <sruffell@digium.com>
1125
1126 * dahdi-tools version 2.1.0-rc5 released.
1127
11282008-11-24 20:42 +0000 [r5379-5381] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
1129
1130 * dahdi_cfg.c: dahdi_cfg: {} as per coding guidelines.
1131
1132 * dahdi_cfg.c: dahdi_cfg: Make the message about echo canceller
1133 selection verbose.
1134
1135 * xpp/waitfor_xpds, xpp/test_parse.c, xpp/xpp_fxloader,
1136 xpp/fpga_load.c: Add some missing copyright statements in the
1137 xpp/ directory as well.
1138
11392008-11-21 23:26 +0000 [r5365-5366] Kevin P. Fleming <kpfleming@digium.com>
1140
1141 * dahdi_diag.c, hdlcstress.c, patgen.c, patlooptest.c,
1142 hdlcverify.c, fxstest.c, timertest.c, hdlcgen.c, pattest.c,
1143 dahdi_test.c, dahdi_speed.c, hdlctest.c: add copyright headers to
1144 all the files that don't have them
1145
1146 * dahdi_monitor.c, fxotune.c: minor fixes to accommodate compilers
1147 who check return result usage
1148
11492008-11-19 21:16 +0000 [r5334] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
1150
1151 * dahdi.init: LSB init script comments.
1152
11532008-11-17 Shaun Ruffell <sruffell@digium.com>
1154
1155 * dahdi-tools version 2.1.0-rc4 released.
1156
11572008-11-16 17:55 +0000 [r5308-5309] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
1158
1159 * hdlcverify.c: Fix a compilation warning about signedness
1160
1161 * hdlcstress.c, patgen.c, patlooptest.c, pattest.c, hdlctest.c: Fix
1162 usage strings and eliminate all traces of tor
1163
11642008-11-10 Shaun Ruffell <sruffell@digium.com>
1165
1166 * dahdi-tools 2.1.0-rc3 released.
1167
11682008-11-06 22:38 +0000 [r5266] Doug Bailey <dbailey@digium.com>
1169
1170 * zonedata.c: set DTMF twist levels for listed EU countries to meet
1171 TBR-21 standard of -9/-11 dB
1172
11732008-11-05 Shaun Ruffell <sruffell@digium.com>
1174
1175 * dahdi-tools 2.1.0-rc2 released.
1176
11772008-11-05 19:17 +0000 [r5231] Shaun Ruffell <sruffell@digium.com>
1178
1179 * system.conf.sample: Update system.conf.sample to clarify BRI
1180 configuration.
1181
11822008-11-04 15:58 +0000 [r5228] Shaun Ruffell <sruffell@digium.com>
1183
1184 * hdlcstress.c, hdlcverify.c, hdlcgen.c, hdlctest.c: Fix
1185 compilation issues with the hdlc tests.
1186
11872008-11-03 20:14 +0000 [r5226] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
1188
1189 * Makefile: Bump SONAME of libtonezone to 2.0: API and ABI have not
1190 changed from Zaptel, but the library behaves differently.
1191
11922008-11-03 Shaun Ruffell <sruffell@digium.com>
1193
1194 * dahdi-tools 2.1.0-rc1 released.
1195
11962008-10-28 20:42 +0000 [r5160] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
1197
1198 * xpp/perl_modules/Dahdi/Chans.pm: Get wcb4xxp listed in lsdahdi .
1199
12002008-10-28 18:34 +0000 [r5155] Shaun Ruffell <sruffell@digium.com>
1201
1202 * xpp/perl_modules/Dahdi/Hardware/PCI.pm, blacklist.sample,
1203 modules.sample: Adding support for the wcb4xxp module.
1204
12052008-10-27 16:07 +0000 [r5134] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
1206
1207 * xpp/perl_modules/Dahdi/Xpp/Line.pm,
1208 xpp/perl_modules/Dahdi/Xpp.pm: perl xpp: Support for FXO batter
1209 attribute from sysfs (from r5133). Still falls back to reading
1210 the battery status from procfs. Also fixes error message.
1211
12122008-10-16 18:03 +0000 [r5098-5099] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
1213
1214 * xpp/waitfor_xpds (added), xpp/perl_modules/Dahdi/Xpp/Line.pm,
1215 xpp/Makefile, xpp/perl_modules/Dahdi/Xpp/Xpd.pm, dahdi.init,
1216 xpp/perl_modules/Dahdi/Xpp.pm: xpp: userspace support for sysfx
1217 migration. The userspace side of dahdi-linux r5097. * Perl
1218 modules default to using xpp sysfs but will fallback (with
1219 warning) to procfs interface. * An additional
1220 /usr/share/dahdi/waitfor_xpds to replace the line in the init.d
1221 script.
1222
1223 * xpp/dahdi_genconf: dahdi_genconf: report channel number in case
1224 of error.
1225
12262008-10-15 17:11 +0000 [r5094] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
1227
1228 * xpp/perl_modules/Dahdi/Chans.pm: Dahdi-perl: Fix detection of
1229 empty slots in Rhino analog cards. Closes issue #13685
1230
12312008-10-12 23:09 +0000 [r5088] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
1232
1233 * xpp/dahdi.cgi (added): A CGI script to give some information
1234 about Zaptel through the Dahdi perl interface. A simple demo. Not
1235 installed automatically.
1236
12372008-10-10 18:29 +0000 [r5079-5082] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
1238
1239 * Makefile: Fix 'make config' for distros with no chkconfig and no
1240 update-rc.d . This would cause the error on 'make config' for
1241 "unknown command dahdi", and 'make -n config' would show that it
1242 tries to run "dahdi defaults 15 30"
1243
1244 * dahdi_test.c: revert r5077 as r5078 fixes this better: now we can
1245 use 8 entries in a line.
1246
1247 * dahdi_test.c: make dahdi_test's prints fit in one line. It makes
1248 them slightly less "accurate", but we already use it in the
1249 verbose messages, and dahdi_test is not really accurate.
1250
12512008-10-10 16:15 +0000 [r5072-5077] Sean Bright <sean.bright@gmail.com>
1252
1253 * dahdi_test.c: Wrap at 6 instead of 8 so we are sure to fit on an
1254 80 column terminal.
1255
1256 * dahdi.init: Return the appropriate values to indicate if the
1257 modules are loaded or not.
1258
1259 * dahdi.init: Add a status command to the DAHDI init script.
1260 (closes issue #13655) Reported by: jcollie Patches:
1261 0001-Add-a-trivial-status-command-to-the-init-script.patch
1262 uploaded by jcollie (license 412) (Slight modification by me to
1263 update the usage text)
1264
12652008-10-03 19:37 +0000 [r5044] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
1266
1267 * xpp/perl_modules/Dahdi/Config/GenconfDefaults.pm: When the config
1268 file is not found: return "empty" data and don't die. Closes
1269 issues #13615 .
1270
12712008-10-03 19:03 +0000 [r5038-5042] Sean Bright <sean.bright@gmail.com>
1272
1273 * dahdi_test.c: Whitespace and formatting only.
1274
1275 * dahdi_test.c: The first line was getting wrapped after 7 instead
1276 of 8.
1277
1278 * xpp/genzaptelconf (removed), xpp/genzaptelconf.8 (removed):
1279 Remove some leftovers.
1280
1281 * dahdi_scan.c, doc/dahdi_scan.8: Fix the dahdi_scan manpage
1282 (s/dahdi_span/dahdi_scan/) and make dahdi_scan do what it is
1283 advertised to do. Namely take span numbers on the command line.
1284 (closes issue #13614) Reported by: jfinstrom
1285
12862008-09-29 Shaun Ruffell <sruffell@digium.com>
1287
1288 * dahdi-tools 2.0.0 released.
1289
12902008-09-25 15:47 +0000 [r4984] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
1291
1292 * dahdi.init: dahdi_init: Fix a typo in xpp initialization (Stephen
1293 Farrell)
1294
12952008-09-24 19:54 +0000 [r4977] Sean Bright <sean.bright@gmail.com>
1296
1297 * build_tools/menuselect-deps.in, configure, configure.ac,
1298 dahdi.xml: Re-enable sethdlc by default in menuselect. Add
1299 configure checks to properly discover the linux/hdlc.h
1300 dependency.
1301
13022008-09-24 17:35 +0000 [r4975] Jason Parker <jparker@digium.com>
1303
1304 * dahdi.xml: Disable sethdlc in menuselect by default. This is how
1305 it was in Zaptel, and it's causing issues. Ideally, this would
1306 eventually be checked in the configure script.
1307
13082008-09-23 04:56 +0000 [r4969] Shaun Ruffell <sruffell@digium.com>
1309
1310 * README: Removing the note about running install_prereq since from
1311 the README since that script is not present currently.
1312
13132008-09-16 18:26 +0000 [r4913-4915] Shaun Ruffell <sruffell@digium.com>
1314
1315 * dahdi.init: Remove the extra space printed after each line when a
1316 module is loaded.
1317
1318 * dahdi_cfg.c: Close the /dev/dahdi/channel file handle if we're
1319 unable to associate it with a particular channel.
1320
1321 * dahdi_cfg.c: Provide system error information if open on
1322 /dev/dahdi/channel fails.
1323
13242008-09-12 18:06 +0000 [r4904] Sean Bright <sean.bright@gmail.com>
1325
1326 * Makefile, /, configure, configure.ac, makeopts.in: A few changes:
1327 1) Start using menuselect trunk 2) Bring in changes similar to
1328 those in asterisk trunk so that 'make menuselect' works as it
1329 should from the dahdi-tools directory. 3) Stop looking for
1330 curses/ncurses in the top level configure since nothing uses it
1331 (except menuselect which will find it on it's own).
1332
13332008-09-11 20:52 +0000 [r4894] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
1334
1335 * xpp/Makefile, xpp/xpp.rules (removed): Move udev rules xpp.rules
1336 from dahdi-tools to dahdi-linux .
1337
13382008-09-11 15:45 +0000 [r4891-4893] Jason Parker <jparker@digium.com>
1339
1340 * Makefile: Fix installation of ifup-hdlc and init script when
1341 using DESTDIR. (Step 2 of cleanup) (closes issue #13430) Reported
1342 by: jcollie Patches:
1343 0001-Fix-install-of-ifup-hdlc-when-installing-into-an-alt.patch
1344 uploaded by jcollie (license 412) Tested by: qwell Note: Patch
1345 from #13430 was extended to modify init script installation as
1346 well.
1347
1348 * build_tools/genmodconf (removed), dahdi.rules (removed),
1349 build_tools/genudevrules (removed): Remove files that aren't used
1350 or are duplicated from dahdi-linux. Step 1 of cleanup.
1351
13522008-09-09 18:21 +0000 [r4882-4883] Jason Parker <jparker@digium.com>
1353
1354 * Makefile: Fix a few typos
1355
1356 * dahdi.init: Fix location of fxotune (closes issue #13428)
1357 Reported by: eeman
1358
13592008-09-04 16:37 +0000 [r4860] Shaun Ruffell <sruffell@digium.com>
1360
1361 * Makefile, UPGRADE.txt: * Updates the instructions presented after
1362 'make config' about where to set which modules are loaded. *
1363 Update UPGRADE.txt to indicate where to set which modules are
1364 loaded and where the module parameters are set. Issue# DAHDI-187
1365
13662008-09-03 19:38 +0000 [r4859] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
1367
1368 * Makefile, README, UPGRADE.txt: Slightly reformat UPDATES.txt for
1369 asciidoc . Include it in README.html . See e.g.
1370 http://docs.tzafrir.org.il/dahdi-tools/README.html#_upgrade_notes
1371 Also fix some links in the README.
1372
13732008-08-28 21:40 +0000 [r4853-4855] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
1374
1375 * dahdi.init: Simplify reading list of modules from
1376 /etc/dahdi/modules .
1377
1378 * doc, xpp: Ignore generated HTML files.
1379
1380 * xpp/Makefile: Don't install genzaptelconf: deprecated, and
1381 collides with Zaptel.
1382
13832008-08-27 17:13 +0000 [r4845-4850] Kevin P. Fleming <kpfleming@digium.com>
1384
1385 * modules.sample, dahdi.init: remove some silly echo statement
1386 constructions in the init script clean up the modules.sample file
1387 to have proper lists of cards supported by each module and remove
1388 reference to dahdi_dummy since the init script takes care of
1389 loading that module
1390
1391 * makeopts.in, fxotune.c: actually implement the rest of
1392 --enable-dev-mode, and fix up more problems it found
1393
1394 * Makefile, configure, configure.ac, sethdlc.c, makeopts.in,
1395 dahdi_cfg.c: add --enable-dev-mode support, and fix up a couple
1396 of warnings found using it (only two, surprisingly)
1397
13982008-08-26 14:35 +0000 [r4833-4844] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
1399
1400 * Makefile, README, system.conf.sample: * Add a "docs" target to
1401 generate documentation. * Demote/promote some headers. * Fix URL
1402 for on-line copy of the README.
1403
1404 * xpp/perl_modules/Dahdi/Chans.pm: Fix default path of dahdi_cfg
1405 (used for probing type of wctdm channels)
1406
14072008-08-25 16:12 +0000 [r4826-4827] Jason Parker <jparker@digium.com>
1408
1409 * dahdi_cfg.c: Fix more crazy formatting
1410
1411 * dahdi_cfg.c: Reverse some incorrect logic, and cleanup some very
1412 ugly formatting in passing.
1413
14142008-08-24 10:53 +0000 [r4821-4822] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
1415
1416 * dahdi_cfg.c: We've got a new "zap" string to zap.
1417
1418 * dahdi_cfg.c: dahdi_cfg.c: Reduce nesting in main() .
1419
14202008-08-24 05:54 +0000 [r4818] Matthew Fredrickson <creslin@digium.com>
1421
1422 * dahdi_cfg.c: Add support for 56 KB HDLC as well as selectable
1423 rate in system.conf
1424
14252008-08-20 Kevin P. Fleming <kpfleming@digium.com>
1426
1427 * dahdi-tools version 2.0.0-rc2 released.
1428
14292008-08-17 15:50 +0000 [r4787] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
1430
1431 * xpp/perl_modules/Dahdi/Chans.pm: Dahdi::Chans: fix leftovers from
1432 r4767 (handling of spaces) While r4767 solved some parsing
1433 problems of channels with "strange" encoding names, it introduced
1434 a new problem (e.g.: "RED" after "(In use)" which is fixed here.
1435
14362008-08-12 12:59 +0000 [r4764-4767] Tzafrir Cohen <tzafrir.cohen@xorcom.com>
1437
1438 * xpp/perl_modules/Dahdi/Chans.pm: Dahdi-perl: More robust parsing
1439 of channel signalling types. Use a list of signalling types
1440 rather than a regular experssion of a "word".
1441
1442 * xpp/dahdi_genconf, xpp/genconf_parameters: MFC/R2 configuration
1443 generation support If optional setting 'pri_connection_type' is
1444 set to R2, configure E1 spans as CAS and generate a unicall.conf
1445 snippet (unicall-channels.conf).
1446
1447 * xpp/perl_modules/Dahdi/Hardware/PCI.pm, xpp/xpp_fxloader: *
1448 xpp_fxloader: shows USB firmware version. * Update PCI IDs
1449 database.
1450
1451 * xpp/lsdahdi, xpp/perl_modules/Dahdi/Chans.pm: Dahdi-perl: Add
1452 alarms() method for channels. Use it in lsdahdi. * Better paring
1453 of the /proc/dahdi/N channel lines for alarms * Provide it as a
1454 separate alarms() method.
1455
14562008-08-06 Kevin P. Fleming <kpfleming@digium.com>
1457
1458 * dahdi-tools version 2.0.0-rc1 released.
1459
1460
14610
=== modified file 'Makefile'
--- Makefile 2011-03-13 23:45:36 +0000
+++ Makefile 2013-08-25 04:54:26 +0000
@@ -5,19 +5,7 @@
5#5#
6#6#
77
8# If the file .dahdi.makeopts is present in your home directory, you can
9# include all of your favorite menuselect options so that every time you download
10# a new version of Asterisk, you don't have to run menuselect to set them.
11# The file /etc/dahdi.makeopts will also be included but can be overridden
12# by the file in your home directory.
13
14GLOBAL_MAKEOPTS=$(wildcard /etc/dahdi.makeopts)
15USER_MAKEOPTS=$(wildcard ~/.dahdi.makeopts)
16
17ifeq ($(strip $(foreach var,clean distclean dist-clean update,$(findstring $(var),$(MAKECMDGOALS)))),)8ifeq ($(strip $(foreach var,clean distclean dist-clean update,$(findstring $(var),$(MAKECMDGOALS)))),)
18 ifneq ($(wildcard menuselect.makeopts),)
19 include menuselect.makeopts
20 endif
21endif9endif
2210
23ifeq ($(strip $(foreach var,clean distclean dist-clean update,$(findstring $(var),$(MAKECMDGOALS)))),)11ifeq ($(strip $(foreach var,clean distclean dist-clean update,$(findstring $(var),$(MAKECMDGOALS)))),)
@@ -100,6 +88,7 @@
100LIB_DIR:=$(libdir)88LIB_DIR:=$(libdir)
101INC_DIR:=$(includedir)/dahdi89INC_DIR:=$(includedir)/dahdi
102MAN_DIR:=$(mandir)/man890MAN_DIR:=$(mandir)/man8
91DATA_DIR:=${datadir}/dahdi
103CONFIG_DIR:=$(sysconfdir)/dahdi92CONFIG_DIR:=$(sysconfdir)/dahdi
104CONFIG_FILE:=$(CONFIG_DIR)/system.conf93CONFIG_FILE:=$(CONFIG_DIR)/system.conf
10594
@@ -111,10 +100,21 @@
111UTILS += patgen pattest patlooptest hdlcstress hdlctest hdlcgen \100UTILS += patgen pattest patlooptest hdlcstress hdlctest hdlcgen \
112 hdlcverify timertest dahdi_maint101 hdlcverify timertest dahdi_maint
113102
114BINS:=fxotune fxstest sethdlc dahdi_cfg dahdi_diag dahdi_monitor dahdi_speed dahdi_test dahdi_scan dahdi_tool dahdi_maint103
115BINS:=$(filter-out $(MENUSELECT_UTILS),$(BINS))104BINS:=fxotune dahdi_cfg dahdi_monitor dahdi_speed dahdi_test dahdi_scan dahdi_maint
105ifeq (1,$(PBX_NEWT))
106 BINS += dahdi_tool
107endif
108ifeq (1,$(PBX_HDLC))
109 BINS += sethdlc
110endif
116MAN_PAGES:=$(wildcard $(BINS:%=doc/%.8))111MAN_PAGES:=$(wildcard $(BINS:%=doc/%.8))
117112
113PINNED_DATA_SCRIPTS:=dahdi_cfg_device_args handle_device \
114 span_assignments span_types
115PINNED_UTILS:=dahdi_map
116PINNED_CONF:=pinned-spans.conf spantype.conf
117
118TEST_BINS:=patgen pattest patlooptest hdlcstress hdlctest hdlcgen hdlcverify timertest dahdi_maint118TEST_BINS:=patgen pattest patlooptest hdlcstress hdlctest hdlcgen hdlcverify timertest dahdi_maint
119# All the man pages. Not just installed ones:119# All the man pages. Not just installed ones:
120GROFF_PAGES := $(wildcard doc/*.8 xpp/*.8)120GROFF_PAGES := $(wildcard doc/*.8 xpp/*.8)
@@ -122,10 +122,7 @@
122122
123GENERATED_DOCS := $(GROFF_HTML) README.html README.Astribank.html123GENERATED_DOCS := $(GROFF_HTML) README.html README.Astribank.html
124124
125all: menuselect.makeopts 125all: prereq programs
126 @$(MAKE) _all
127
128_all: prereq programs
129126
130libs: $(LTZ_SO) $(LTZ_A)127libs: $(LTZ_SO) $(LTZ_A)
131128
@@ -176,6 +173,9 @@
176173
177dahdi_cfg: $(LTZ_A)174dahdi_cfg: $(LTZ_A)
178dahdi_cfg: LIBS+=-lm175dahdi_cfg: LIBS+=-lm
176dahdi_pcap:
177 $(CC) $(CFLAGS) dahdi_pcap.c -lpcap -o $@ $<
178
179179
180fxstest: $(LTZ_SO)180fxstest: $(LTZ_SO)
181fxstest: LIBS+=-lm181fxstest: LIBS+=-lm
@@ -233,6 +233,12 @@
233 $(INSTALL) -d $(DESTDIR)$(CONFIG_DIR)233 $(INSTALL) -d $(DESTDIR)$(CONFIG_DIR)
234 $(INSTALL) -m 644 system.conf.sample $(DESTDIR)$(CONFIG_FILE)234 $(INSTALL) -m 644 system.conf.sample $(DESTDIR)$(CONFIG_FILE)
235endif235endif
236ifeq ($(DAHDI_PINNED),yes)
237 install -d $(DESTDIR)$(DATA_DIR)
238 install $(PINNED_DATA_SCRIPTS) $(DESTDIR)$(DATA_DIR)/
239 install $(PINNED_UTILS) $(DESTDIR)/$(BIN_DIR)/
240 install -m 644 $(PINNED_CONF) $(DESTDIR)/$(CONFIG_DIR)/
241endif
236242
237install-libs: libs243install-libs: libs
238 $(INSTALL) -d -m 755 $(DESTDIR)/$(LIB_DIR)244 $(INSTALL) -d -m 755 $(DESTDIR)/$(LIB_DIR)
@@ -270,6 +276,12 @@
270 $(MAKE) -C $$dir install; \276 $(MAKE) -C $$dir install; \
271 done277 done
272278
279install-tests: tests
280ifneq (,$(TEST_BINS))
281 install -d $(DESTDIR)$(BIN_DIR)
282 install $(TEST_BINS) $(DESTDIR)$(BIN_DIR)/
283endif
284
273config:285config:
274ifneq (,$(COPY_INITD))286ifneq (,$(COPY_INITD))
275 $(COPY_INITD)287 $(COPY_INITD)
@@ -324,7 +336,6 @@
324 fi336 fi
325337
326clean:338clean:
327 -@$(MAKE) -C menuselect clean
328 rm -f $(BINS) $(TEST_BINS)339 rm -f $(BINS) $(TEST_BINS)
329 rm -f *.o dahdi_cfg tzdriver sethdlc340 rm -f *.o dahdi_cfg tzdriver sethdlc
330 rm -f $(LTZ_SO) $(LTZ_A) *.lo341 rm -f $(LTZ_SO) $(LTZ_A) *.lo
@@ -339,12 +350,12 @@
339 rm -f core350 rm -f core
340 rm -f dahdi_cfg-shared fxstest351 rm -f dahdi_cfg-shared fxstest
341 rm -rf $(GENERATED_DOCS) *.asciidoc tonezones.txt352 rm -rf $(GENERATED_DOCS) *.asciidoc tonezones.txt
353 rm -f dahdi_pcap
342354
343distclean: dist-clean355distclean: dist-clean
344356
345dist-clean: clean357dist-clean: clean
346 @$(MAKE) -C menuselect dist-clean358 rm -f makeopts
347 rm -f makeopts menuselect.makeopts menuselect-tree build_tools/menuselect-deps
348 rm -f config.log config.status359 rm -f config.log config.status
349 rm -f .*.d360 rm -f .*.d
350361
@@ -356,62 +367,7 @@
356 @echo "****"367 @echo "****"
357 @exit 1368 @exit 1
358369
359menuselect.makeopts: menuselect/menuselect menuselect-tree makeopts370.PHONY: distclean dist-clean clean all install programs tests devel data config update install-programs install-libs install-utils-subdirs utils-subdirs prereq
360 menuselect/menuselect --check-deps $@ $(GLOBAL_MAKEOPTS) $(USER_MAKEOPTS)
361
362menuconfig: menuselect
363
364cmenuconfig: cmenuselect
365
366gmenuconfig: gmenuselect
367
368nmenuconfig: nmenuselect
369
370menuselect: menuselect/cmenuselect menuselect/nmenuselect menuselect/gmenuselect
371 @if [ -x menuselect/nmenuselect ]; then \
372 $(MAKE) nmenuselect; \
373 elif [ -x menuselect/cmenuselect ]; then \
374 $(MAKE) cmenuselect; \
375 elif [ -x menuselect/gmenuselect ]; then \
376 $(MAKE) gmenuselect; \
377 else \
378 echo "No menuselect user interface found. Install ncurses,"; \
379 echo "newt or GTK libraries to build one and re-rerun"; \
380 echo "'make menuselect'."; \
381 fi
382
383cmenuselect: menuselect/cmenuselect menuselect-tree
384 -@menuselect/cmenuselect menuselect.makeopts $(GLOBAL_MAKEOPTS) $(USER_MAKEOPTS) && echo "menuselect changes saved!" || echo "menuselect changes NOT saved!"
385
386gmenuselect: menuselect/gmenuselect menuselect-tree
387 -@menuselect/gmenuselect menuselect.makeopts $(GLOBAL_MAKEOPTS) $(USER_MAKEOPTS) && echo "menuselect changes saved!" || echo "menuselect changes NOT saved!"
388
389nmenuselect: menuselect/nmenuselect menuselect-tree
390 -@menuselect/nmenuselect menuselect.makeopts $(GLOBAL_MAKEOPTS) $(USER_MAKEOPTS) && echo "menuselect changes saved!" || echo "menuselect changes NOT saved!"
391
392# options for make in menuselect/
393MAKE_MENUSELECT=CC="$(HOST_CC)" CXX="$(CXX)" LD="" AR="" RANLIB="" CFLAGS="" $(MAKE) -C menuselect CONFIGURE_SILENT="--silent"
394
395menuselect/menuselect: menuselect/makeopts
396 +$(MAKE_MENUSELECT) menuselect
397
398menuselect/cmenuselect: menuselect/makeopts
399 +$(MAKE_MENUSELECT) cmenuselect
400
401menuselect/gmenuselect: menuselect/makeopts
402 +$(MAKE_MENUSELECT) gmenuselect
403
404menuselect/nmenuselect: menuselect/makeopts
405 +$(MAKE_MENUSELECT) nmenuselect
406
407menuselect/makeopts: makeopts
408 +$(MAKE_MENUSELECT) makeopts
409
410menuselect-tree: dahdi.xml
411 @echo "Generating input for menuselect ..."
412 @build_tools/make_tree > $@
413
414.PHONY: menuselect distclean dist-clean clean all _all install programs tests devel data config update install-programs install-libs install-utils-subdirs utils-subdirs prereq
415371
416FORCE:372FORCE:
417373
418374
=== modified file 'README'
--- README 2011-03-13 23:45:36 +0000
+++ README 2013-08-25 04:54:26 +0000
@@ -1,10 +1,10 @@
1DAHDI Telephony Interface Driver1DAHDI Telephony Interface Driver
2=================================2=================================
3Asterisk Development Team <asteriskteam@digium.com>3Asterisk Development Team <asteriskteam@digium.com>
4$Revision: 7792 $, $Date: 2010-01-09 06:23:55 -0600 (Sat, 09 Jan 2010) $4$Revision$, $Date$
55
6DAHDI stands for Digium Asterisk Hardware Device Interface. This6DAHDI stands for Digium Asterisk Hardware Device Interface. This
7package contains the userspace tools to configure the kernel modules7package contains the user-space tools to configure the kernel modules
8included in the package dahdi-linux.8included in the package dahdi-linux.
99
10Build Requirements10Build Requirements
@@ -14,7 +14,7 @@
1414
15Build System15Build System
16~~~~~~~~~~~~16~~~~~~~~~~~~
17gcc and friends. Generally you will need to install the package gcc.17GCC and friends. Generally you will need to install the package gcc.
18There may be cases where you will need a specific version of gcc to build18There may be cases where you will need a specific version of gcc to build
19kernel modules.19kernel modules.
2020
@@ -34,8 +34,6 @@
34Note: If using `sudo` to build/install, you may need to add /sbin to your PATH.34Note: If using `sudo` to build/install, you may need to add /sbin to your PATH.
35----------------------------------35----------------------------------
36./configure36./configure
37# optional step: select custom configuration:
38#make menuselect
39make37make
40make install38make install
41# To install init scripts and config files:39# To install init scripts and config files:
@@ -51,7 +49,7 @@
51parts of DAHDI:49parts of DAHDI:
5250
53. Build targets:51. Build targets:
54 - make: Build DAHDI userspace programs. partial 52 - make: Build DAHDI user-space programs. partial
55 targets of it:53 targets of it:
56 * make 'utilname': builds 'utilname' alone (e.g: `make dahdi_diag`)54 * make 'utilname': builds 'utilname' alone (e.g: `make dahdi_diag`)
57 * make utils: Build libtonezone.55 * make utils: Build libtonezone.
@@ -66,7 +64,7 @@
66^^^^^^^^^^^^^^^^^^^^^^^^^64^^^^^^^^^^^^^^^^^^^^^^^^^
67The following may be useful when testing the package or when preparing a65The following may be useful when testing the package or when preparing a
68package for a binary distribution (such as an rpm package) installing66package for a binary distribution (such as an rpm package) installing
69onto a subtree rather than on th real system. 67onto a subtree rather than on the real system.
7068
71 make install DESTDIR=targetdir69 make install DESTDIR=targetdir
7270
@@ -75,9 +73,9 @@
7573
76Options For ./configure74Options For ./configure
77^^^^^^^^^^^^^^^^^^^^^^^75^^^^^^^^^^^^^^^^^^^^^^^
78The configure script various several tests and based on them generates76The configure script executes various tests and based on them generates
79some files ( build_tools/menuselect-deps and makeopts). You can pass it77makeopts. You can pass it --with options and variable settings, for
80--with options and variable settings, for instance:78instance:
8179
82 ./configure --without-ncurses CC="gcc-4.10"80 ./configure --without-ncurses CC="gcc-4.10"
8381
@@ -89,7 +87,7 @@
89To re-run ./configure with the same parameters it was run with last87To re-run ./configure with the same parameters it was run with last
90time, use:88time, use:
9189
92 ./ocnfig.status --recheck90 ./config.status --recheck
9391
9492
95Configuration93Configuration
@@ -106,7 +104,9 @@
106A sample annotated system.conf is included in this directory and104A sample annotated system.conf is included in this directory and
107installed by default. Edit it to suit your configuration. Alternatively 105installed by default. Edit it to suit your configuration. Alternatively
108use the script dahdi_genconf to generate one that should work with your 106use the script dahdi_genconf to generate one that should work with your
109system.107system. Note that while dahdi_genconf will generate a working configuration,
108it will not automatically detect hardware echo cancellation modules. These
109will have to be enabled manually in system.conf.
110110
111/etc/dahdi/init.conf111/etc/dahdi/init.conf
112~~~~~~~~~~~~~~~~~~~~112~~~~~~~~~~~~~~~~~~~~
@@ -136,7 +136,7 @@
136Tonezones136Tonezones
137~~~~~~~~~137~~~~~~~~~
138The file zonedata.c contains the information about the tone zones used138The file zonedata.c contains the information about the tone zones used
139in libtonezone (and hence also in ztcfg). Here is a list of those zones:139in libtonezone (and hence also in dahdi_cfg). Here is a list of those zones:
140140
141include::tonezones.txt[]141include::tonezones.txt[]
142142
@@ -144,14 +144,14 @@
144DAHDI PERL modules144DAHDI PERL modules
145~~~~~~~~~~~~~~~~~~145~~~~~~~~~~~~~~~~~~
146The directory xpp has, in addition to helper utilities for the146The directory xpp has, in addition to helper utilities for the
147Xorcom Astribank, a collection of perl modules to provide information147Xorcom Astribank, a collection of PERL modules to provide information
148related to DAHDI. The perl modules themselves are under xpp/perl_modules/ .148related to DAHDI. The PERL modules themselves are under xpp/perl_modules/ .
149In xpp/ there are several utilities that use those modules:149In xpp/ there are several utilities that use those modules:
150- xpp-specific: dahdi_registration, xpp_sync, xpp_blink .150- xpp-specific: dahdi_registration, xpp_sync, xpp_blink .
151- General: lsdahdi, dahdi_genconf, dahdi_hardware, dahdi_drivers151- General: lsdahdi, dahdi_genconf, dahdi_hardware, dahdi_drivers
152152
153The DAHDI perl modules will currently only be automatically installed if you153The DAHDI PERL modules will currently only be automatically installed if you
154happen to install the xpp directory. Those utilities require the perl modules 154happen to install the xpp directory. Those utilities require the PERL modules
155to be installed, however they will also look for them in the directory 155to be installed, however they will also look for them in the directory
156perl_modules, and thus can be run directly from the DAHDI source tree. For 156perl_modules, and thus can be run directly from the DAHDI source tree. For
157example:157example:
@@ -165,7 +165,7 @@
165 perldoc ./xpp/lsdahdi165 perldoc ./xpp/lsdahdi
166166
167Some of them are specific for the Xorcom Astribank and described in its167Some of them are specific for the Xorcom Astribank and described in its
168docuemntation. the others are:168documentation. the others are:
169169
170lsdahdi:: 170lsdahdi::
171 A somewhat glorified `cat /proc/dahdi/*`.171 A somewhat glorified `cat /proc/dahdi/*`.
@@ -174,9 +174,9 @@
174 /etc/dahdi/genconf_parameters (replaces genzaptelconf as well).174 /etc/dahdi/genconf_parameters (replaces genzaptelconf as well).
175dahdi_drivers::175dahdi_drivers::
176 A two-liner script (not installed by default) that simply returns the176 A two-liner script (not installed by default) that simply returns the
177 modules that should be modprobed on this system.177 modules that should be modprobe-d on this system.
178dahdi_hardware:: 178dahdi_hardware::
179 Uses the information from sysfs and its own knowledge to show179 Uses the information from SysFS and its own knowledge to show
180 what PCI/USB DAHDI hardware is connected and if it is currently used180 what PCI/USB DAHDI hardware is connected and if it is currently used
181 by a driver. Shows also some more information for Astribanks from181 by a driver. Shows also some more information for Astribanks from
182 /proc/xpp .182 /proc/xpp .
@@ -184,8 +184,8 @@
184184
185PPP Support185PPP Support
186~~~~~~~~~~~186~~~~~~~~~~~
187DAHDI digital cards can provide data channels through ppp as187DAHDI digital cards can provide data channels through PPP as
188point-to-point connections. This requires a plugin to the ppp daemon188point-to-point connections. This requires a plug-in to the PPP daemon
189that is included in the ppp/ subdirectory. To install it:189that is included in the ppp/ subdirectory. To install it:
190190
1911. Make sure you have the PPP source / headers installed. On Debian:1911. Make sure you have the PPP source / headers installed. On Debian:
192192
=== modified file 'UPGRADE.txt'
--- UPGRADE.txt 2009-06-01 08:23:38 +0000
+++ UPGRADE.txt 2013-08-25 04:54:26 +0000
@@ -62,10 +62,9 @@
62canceler to be used on the system's channels can be configured using62canceler to be used on the system's channels can be configured using
63the dahdi_cfg tool from the dahdi-tools package.63the dahdi_cfg tool from the dahdi-tools package.
6464
65IMPORTANT: It is *mandatory* to configure an echo canceler for the65IMPORTANT: It is *mandatory* to configure an echo canceler for the system's
66system's channels using dahdi_cfg unless the interface cards in use66channels using dahdi_cfg. There is *no* default echo canceler with DAHDI, not
67have echo canceler modules available and enabled. There is *no*67even hardware echo cancellation modules. See
68default software echo canceler with DAHDI. See
69<<_echo_cancellers,section on echo cancellers>> in sample system.conf.68<<_echo_cancellers,section on echo cancellers>> in sample system.conf.
7069
7170
7271
=== modified file 'blacklist.sample'
--- blacklist.sample 2009-06-01 08:23:38 +0000
+++ blacklist.sample 2013-08-25 04:54:26 +0000
@@ -4,6 +4,7 @@
44
5blacklist wct4xxp5blacklist wct4xxp
6blacklist wcte12xp6blacklist wcte12xp
7blacklist wcte13xp
7blacklist wct1xxp8blacklist wct1xxp
8blacklist wcte11xp9blacklist wcte11xp
9blacklist wctdm24xxp10blacklist wctdm24xxp
@@ -11,3 +12,10 @@
11blacklist wctdm12blacklist wctdm
12blacklist wctc4xxp13blacklist wctc4xxp
13blacklist wcb4xxp14blacklist wcb4xxp
15
16# Some mISDN drivers may try to attach to cards supported by DAHDI. If you
17# have a card which is *not* supported by DAHDI but supported by one of the
18# below drivers you should feel free to remove it from the blacklist below.
19blacklist hfcmulti
20blacklist netjet
21blacklist hfcpci
1422
=== modified file 'build_tools/dahdi_svn_tarball'
--- build_tools/dahdi_svn_tarball 2009-06-01 08:23:38 +0000
+++ build_tools/dahdi_svn_tarball 2013-08-25 04:54:26 +0000
@@ -18,7 +18,7 @@
1818
19usage() {19usage() {
20 echo >&2 "$0: Generate snapshot from DAHDI SVN"20 echo >&2 "$0: Generate snapshot from DAHDI SVN"
21 echo >&2 ' ($Id: dahdi_svn_tarball 4356 2008-05-23 16:39:27Z mattf $)'21 echo >&2 ' ($Id$)'
22 echo >&2 ""22 echo >&2 ""
23 echo >&2 "$0 [-r REV] [-2] [-s]"23 echo >&2 "$0 [-r REV] [-2] [-s]"
24 echo >&2 "$0 <-h | --help>: This message"24 echo >&2 "$0 <-h | --help>: This message"
2525
=== added file 'build_tools/dahdi_sysfs_copy'
--- build_tools/dahdi_sysfs_copy 1970-01-01 00:00:00 +0000
+++ build_tools/dahdi_sysfs_copy 2013-08-25 04:54:26 +0000
@@ -0,0 +1,142 @@
1#! /usr/bin/perl
2#
3# Written by Oron Peled <oron@actcom.co.il>
4# Copyright (C) 2012, Xorcom
5# This program is free software; you can redistribute and/or
6# modify it under the same terms as Perl itself.
7#
8#dahdi_sysfs_copy: Short perl script to copy dahdi related sysfs trees
9# into a designated directory.
10#
11# $Id: $
12#
13use strict;
14use warnings;
15
16use File::Path qw(mkpath);
17use File::Copy;
18use Cwd qw(realpath);
19
20my $destdir = shift || die "Usage: $0 <destdir>\n";
21
22my %symlinks;
23my %walk_ups;
24my %inode_cash;
25
26# Starting points for recursion
27my @toplevels = qw(
28 /sys/bus/dahdi_devices
29 /sys/bus/astribanks
30 /sys/class/dahdi
31 );
32
33# Loop prevention (by inode number lookup)
34sub seen {
35 my $ino = shift || die;
36 my $path = shift || die;
37 if(defined $inode_cash{$ino}) {
38 #print STDERR "DEBUG($ino): $path\n";
39 return 1;
40 }
41 $inode_cash{$ino}++;
42 return 0;
43}
44
45# Walk up a path and copy readable attributes from any
46# directory level.
47sub walk_up {
48 my $path = shift || die;
49 my $curr = $path;
50 # Walk up
51 for (my $curr = $path; $curr; $curr =~ s'/?[^/]+$'') {
52 my ($dev, $ino, $mode, $nlink, $uid, $gid) = lstat($curr);
53 next if seen($ino, $curr); # Skip visited directories
54 # Scan directory
55 opendir(my $d, $curr) || die "Failed opendir($curr): $!\n";
56 my @entries = readdir $d;
57 foreach my $entry (@entries) {
58 next if $entry =~ /^[.][.]?$/;
59 my $file = "$curr/$entry";
60 my ($dev, $ino, $mode, $nlink, $uid, $gid) = lstat($file);
61 # Copy file
62 if (-f _ && ($mode & 0004)) { # The '-r _' is buggy
63 copy($file, "$destdir$file") ||
64 die "Failed to copy '$file': $!\n";
65 }
66 }
67 closedir $d;
68 }
69}
70
71# Handle a given path (directory,symlink,regular-file)
72sub handle_path {
73 my $path = shift || die;
74 my ($dev, $ino, $mode, $nlink, $uid, $gid) = lstat($path);
75 # Save attributes before recursion starts
76 my $isdir = -d _;
77 my $islink = -l _;
78 my $isreadable = $mode & 00004; # The '-r _' was buggy
79 return if seen($ino, $path); # Loop prevention
80 my $dest = "$destdir/$path";
81 if ($isdir) {
82 mkpath("$dest");
83 scan_directory($path);
84 } elsif ($islink) {
85 # We follow links (the seen() protect us from loops)
86 my $target = readlink($path) ||
87 die "Failed readlink($path): $!\n";
88 my $follow = $target;
89 if ($target !~ m{^/}) { # fix relative symlinks
90 my $dir = $path;
91 $dir =~ s,/[^/]*$,,;
92 $follow = realpath("$dir/$target");
93 }
94 # Save symlink details, so we create them after all
95 # destination tree (subdirectories, files) is ready
96 die "Duplicate entry '$dest'\n" if exists $symlinks{$dest};
97 $symlinks{$dest} = "$target";
98 # Now follow symlink
99 handle_path($follow);
100 $walk_ups{$follow}++;
101 } elsif ($isreadable) {
102 copy($path, "$dest") ||
103 die "Failed to copy '$path': $!\n";
104 }
105}
106
107# Scan a given directory (calling handle_path for recursion)
108sub scan_directory {
109 my $dir = shift || die;
110 my $entry;
111 opendir(my $d, $dir) || die "Failed opendir($dir): $!\n";
112 my @dirs = readdir $d;
113 foreach my $entry (@dirs) {
114 next if $entry =~ /^[.][.]?$/;
115 handle_path("$dir/$entry");
116 }
117 closedir $d;
118}
119
120# Filter out non-existing toplevels
121my @scan = grep { lstat($_) } @toplevels;
122
123# Recurse all trees, creating subdirectories and copying files
124foreach my $path (@scan) {
125 handle_path($path);
126}
127
128# Now, that all sub-directories were created, we can
129# create the wanted symlinks
130for my $dest (keys %symlinks) {
131 my $link = $symlinks{$dest};
132 die "Missing link for '$dest'\n" unless defined $link;
133 unlink $dest if -l $dest;
134 symlink($link,$dest) ||
135 die "Failed symlink($link,$dest): $!\n";
136}
137
138# Walk up directories that were symlink destinations
139# and fill their attributes
140foreach my $dir (keys %walk_ups) {
141 walk_up($dir);
142}
0143
=== modified file 'build_tools/dump_sys_state'
--- build_tools/dump_sys_state 2011-03-13 23:45:36 +0000
+++ build_tools/dump_sys_state 2013-08-25 04:54:26 +0000
@@ -1,7 +1,7 @@
1#!/bin/sh1#!/bin/sh
22
3# dump_sys_state: dump some /sys and /proc files to a directory.3# dump_sys_state: dump some /sys and /proc files to a directory.
4# $Id: dump_sys_state 8211 2010-03-02 14:55:22Z tzafrir $4# $Id$
5#5#
6# Written by Tzafrir Cohen <tzafrir.cohen@xorcom.com>6# Written by Tzafrir Cohen <tzafrir.cohen@xorcom.com>
7# Copyright (C) 2009, Xorcom7# Copyright (C) 2009, Xorcom
@@ -31,117 +31,46 @@
31# # And then later:31# # And then later:
32# DAHDI_VIRT_TOP="$PWD/my_sys_state" dahdi_genconf32# DAHDI_VIRT_TOP="$PWD/my_sys_state" dahdi_genconf
3333
34name=dahdi_sys_state_dump34mydir=`dirname $0`
3535dahdi_sysfs_copy="$mydir/dahdi_sysfs_copy"
36usage() {
37 echo "$0: dump system data for Dahdi-Perl"
38 echo "Usage: $0 [<name>]]"
39 echo ""
40 echo "<name>: name of directory/tarball to create. Default: $name"
41}
42
43output_tar() {
44 gzip -9 >$name.tar.gz
45}
46
47output_cpio() {
48 gzip -9 >$name.cpio.gz
49}
50
51output_dir() {
52 rm -rf $name
53 mkdir -p $name
54 cd $name
55 #tar xf -
56 cpio -id
57}
5836
59# Give usage message on expected texts37# Give usage message on expected texts
60case $1 in 38
61 help | -* ) usage; exit 1;;39if [ "$#" -ne 0 ]; then
62esac40 echo >&2 "Usage: $0"
6341 exit 1
64if [ "$1" != '' ]; then42fi
65 name="$1"43
66fi44id="sys_dump.`hostname`_`date +%F_%H.%M.%S`"
6745tarball="$id.tar.gz"
68# funky permissions on procfs. Sadly rm -f does not kill them.46
69if [ -d "$name" ]; then47tmpdir=`mktemp -td 'dahdi_dump.XXXXXX'`
70 chmod -R u+w "$name"48echo -n >&2 "Creating ... "
71fi49trap "[ -d '$tmpdir' ] && rm -rf '$tmpdir'" 0 1 2 15
72rm -rf "$name"50
73mkdir -p "$name"51topdir="$tmpdir/$id"
74
75# delete a (potentially empty) list of files
76rm_files() {
77 xargs rm -f rm_files_non_existing_file
78}
7952
80if [ -r /proc/bus/usb/devices ]; then53if [ -r /proc/bus/usb/devices ]; then
81 mkdir -p "$name/proc/bus/usb"54 mkdir -p "$topdir/proc/bus/usb"
82 cp -a /proc/bus/usb/devices "$name/proc/bus/usb/"55 cp -a /proc/bus/usb/devices "$topdir/proc/bus/usb/"
83fi56fi
8457
85if [ -d /proc/dahdi ]; then58if [ -d /proc/dahdi ]; then
86 mkdir -p "$name/proc/dahdi"59 mkdir -p "$topdir/proc/dahdi"
87 if find /proc/dahdi -type f >/dev/null; then60 if find /proc/dahdi -type f >/dev/null; then
88 cp -a /proc/dahdi/* "$name/proc/dahdi/" 61 cp -a /proc/dahdi/* "$topdir/proc/dahdi/"
89 fi62 fi
90fi63fi
9164
92if [ -d /proc/xpp ]; then65if [ -d /proc/xpp ]; then
93 mkdir -p "$name/proc/xpp"66 mkdir -p "$topdir/proc/xpp"
94 if find /proc/xpp -type f >/dev/null; then67 if find /proc/xpp -type f >/dev/null; then
95 cp -a /proc/xpp/* "$name/proc/xpp/" 68 cp -a /proc/xpp/* "$topdir/proc/xpp/"
96 find "$name/proc/xpp" -type f -name command | rm_files69 find "$topdir/proc/xpp" -type f -name command -exec rm -f '{}' ';'
97 fi70 fi
98fi71fi
9972
100# FIXME: the following grab tons of files from sysfs. Any way to do with73"$dahdi_sysfs_copy" "$topdir"
101# less information?74echo -n >&2 "tarball ... "
102pci_dev_pat='/sys/devices/pci*'75( cd "$tmpdir" && tar czf - . ) > "$tarball";
103mkdir -p "$name/sys/devices"76echo >&2 "ready in '$tarball'"
104cp -a $pci_dev_pat "$name/sys/devices/" 2>/dev/null
105
106for bus in astribanks xpds pci pci_express usb; do
107 if [ -d /sys/bus/$bus ]; then
108 mkdir -p "$name/sys/bus/"
109 cp -a /sys/bus/$bus "$name/sys/bus/" 2>/dev/null
110 fi
111done
112
113# Remove PCI devices of irelevan classes:
114irrelevant_devs() {
115 grep . "$name"/$pci_dev_pat/0*/class "$name"/$pci_dev_pat/0*/0*/class \
116 | perl -n -e '# Perl provides commented regexes:
117 next unless m{/class:( # The following is a list of device classes
118 # that can be safely removed:
119 0x060000 | # Host bridge
120 0x030000 | # VGA compatible controller
121 0x038000 | # Display controller
122 0x040300 | # Audio device
123 0x060401 | # PCI bridge
124 0x060100 | # ISA bridge
125 0x01018a | # IDE interface
126 0x01018f | # IDE interface
127 0x0c0500 | # SMBus
128 0x060700 | # CardBus bridge
129 0x0c0010 | # FireWire (IEEE 1394)
130 # The following are not to be removed:
131 #0x0c0300 | # USB Controller (UHCI?)
132 #0x060400 | # PCI bridge
133 #0x0c0320 | # USB Controller (EHCI?)
134 #0x020000 | # Ethernet controller
135 #0x0c0010 | # Network controller: (Wifi?)
136 )$}x;
137 # Leave out just the name of the node:
138 s{/[^/]*$}{};
139 print;
140 print "\n"
141 '
142}
143
144# FIXME: deleting those seems to remove common 'vendor' directories
145# and mess things up. Skip it for now.
146#rm -rf `irrelevant_devs`
147
14877
=== modified file 'build_tools/make_tree'
--- build_tools/make_tree 2009-06-01 08:23:38 +0000
+++ build_tools/make_tree 2013-08-25 04:54:26 +0000
@@ -1,7 +0,0 @@
1#!/bin/sh
2
3echo "<?xml version=\"1.0\"?>"
4echo
5echo "<menu name=\"DAHDI Tools Selection\">"
6cat dahdi.xml
7echo "</menu>"
80
=== modified file 'build_tools/menuselect-deps.in'
--- build_tools/menuselect-deps.in 2009-06-01 08:23:38 +0000
+++ build_tools/menuselect-deps.in 2013-08-25 04:54:26 +0000
@@ -1,2 +0,0 @@
1LIBNEWT=@PBX_NEWT@
2HDLC=@PBX_HDLC@
30
=== modified file 'configure'
--- configure 2011-03-13 23:45:36 +0000
+++ configure 2013-08-25 04:54:26 +0000
@@ -1,12 +1,10 @@
1#! /bin/sh1#! /bin/sh
2# From configure.ac Revision: 8266 .2# From configure.ac Revision.
3# Guess values for system-dependent variables and create Makefiles.3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.67.4# Generated by GNU Autoconf 2.69.
5#5#
6#6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,7# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
9# Foundation, Inc.
10#8#
11#9#
12# This configure script is free software; the Free Software Foundation10# This configure script is free software; the Free Software Foundation
@@ -92,6 +90,7 @@
92IFS=" "" $as_nl"90IFS=" "" $as_nl"
9391
94# Find who we are. Look in the path if we contain no directory separator.92# Find who we are. Look in the path if we contain no directory separator.
93as_myself=
95case $0 in #((94case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;95 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
@@ -136,6 +135,31 @@
136# CDPATH.135# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138137
138# Use a proper internal environment variable to ensure we don't fall
139 # into an infinite loop, continuously re-executing ourselves.
140 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141 _as_can_reexec=no; export _as_can_reexec;
142 # We cannot yet assume a decent shell, so we have to provide a
143# neutralization value for shells without unset; and this also
144# works around shells that cannot unset nonexistent variables.
145# Preserve -v and -x to the replacement shell.
146BASH_ENV=/dev/null
147ENV=/dev/null
148(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149case $- in # ((((
150 *v*x* | *x*v* ) as_opts=-vx ;;
151 *v* ) as_opts=-v ;;
152 *x* ) as_opts=-x ;;
153 * ) as_opts= ;;
154esac
155exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156# Admittedly, this is quite paranoid, since all the known shells bail
157# out after a failed `exec'.
158$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
159as_fn_exit 255
160 fi
161 # We don't want this to propagate to other subprocesses.
162 { _as_can_reexec=; unset _as_can_reexec;}
139if test "x$CONFIG_SHELL" = x; then163if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :164 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh165 emulate sh
@@ -169,7 +193,8 @@
169else193else
170 exitcode=1; echo positional parameters were not saved.194 exitcode=1; echo positional parameters were not saved.
171fi195fi
172test x\$exitcode = x0 || exit 1"196test x\$exitcode = x0 || exit 1
197test -x / || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
@@ -214,14 +239,25 @@
214239
215240
216 if test "x$CONFIG_SHELL" != x; then :241 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a242 export CONFIG_SHELL
218 # neutralization value for shells without unset; and this also243 # We cannot yet assume a decent shell, so we have to provide a
219 # works around shells that cannot unset nonexistent variables.244# neutralization value for shells without unset; and this also
220 BASH_ENV=/dev/null245# works around shells that cannot unset nonexistent variables.
221 ENV=/dev/null246# Preserve -v and -x to the replacement shell.
222 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV247BASH_ENV=/dev/null
223 export CONFIG_SHELL248ENV=/dev/null
224 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}249(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
250case $- in # ((((
251 *v*x* | *x*v* ) as_opts=-vx ;;
252 *v* ) as_opts=-v ;;
253 *x* ) as_opts=-x ;;
254 * ) as_opts= ;;
255esac
256exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
257# Admittedly, this is quite paranoid, since all the known shells bail
258# out after a failed `exec'.
259$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260exit 255
225fi261fi
226262
227 if test x$as_have_required = xno; then :263 if test x$as_have_required = xno; then :
@@ -323,6 +359,14 @@
323359
324360
325} # as_fn_mkdir_p361} # as_fn_mkdir_p
362
363# as_fn_executable_p FILE
364# -----------------------
365# Test if FILE is an executable regular file.
366as_fn_executable_p ()
367{
368 test -f "$1" && test -x "$1"
369} # as_fn_executable_p
326# as_fn_append VAR VALUE370# as_fn_append VAR VALUE
327# ----------------------371# ----------------------
328# Append the text in VALUE to the end of the definition contained in VAR. Take372# Append the text in VALUE to the end of the definition contained in VAR. Take
@@ -444,6 +488,10 @@
444 chmod +x "$as_me.lineno" ||488 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446490
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
447 # Don't try to exec as it changes $[0], causing all sort of problems495 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the496 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).497 # original and so on. Autoconf is especially sensitive to this).
@@ -478,16 +526,16 @@
478 # ... but there are two gotchas:526 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.529 # In both cases, we have to default to `cp -pR'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 as_ln_s='cp -p'531 as_ln_s='cp -pR'
484 elif ln conf$$.file conf$$ 2>/dev/null; then532 elif ln conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s=ln533 as_ln_s=ln
486 else534 else
487 as_ln_s='cp -p'535 as_ln_s='cp -pR'
488 fi536 fi
489else537else
490 as_ln_s='cp -p'538 as_ln_s='cp -pR'
491fi539fi
492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493rmdir conf$$.dir 2>/dev/null541rmdir conf$$.dir 2>/dev/null
@@ -499,28 +547,8 @@
499 as_mkdir_p=false547 as_mkdir_p=false
500fi548fi
501549
502if test -x / >/dev/null 2>&1; then550as_test_x='test -x'
503 as_test_x='test -x'551as_executable_p=as_fn_executable_p
504else
505 if ls -dL / >/dev/null 2>&1; then
506 as_ls_L_option=L
507 else
508 as_ls_L_option=
509 fi
510 as_test_x='
511 eval sh -c '\''
512 if test -d "$1"; then
513 test -d "$1/.";
514 else
515 case $1 in #(
516 -*)set "./$1";;
517 esac;
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
520 '\'' sh
521 '
522fi
523as_executable_p=$as_test_x
524552
525# Sed expression to map a string onto a valid CPP name.553# Sed expression to map a string onto a valid CPP name.
526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
@@ -615,6 +643,7 @@
615DAHDI_INCLUDE643DAHDI_INCLUDE
616DAHDI_LIB644DAHDI_LIB
617DAHDI_DECLARATION_AFTER_STATEMENT645DAHDI_DECLARATION_AFTER_STATEMENT
646DAHDI_PINNED
618DAHDI_DEVMODE647DAHDI_DEVMODE
619DOWNLOAD648DOWNLOAD
620FETCH649FETCH
@@ -681,6 +710,7 @@
681ac_user_opts='710ac_user_opts='
682enable_option_checking711enable_option_checking
683enable_dev_mode712enable_dev_mode
713enable_pinned
684with_dahdi714with_dahdi
685with_newt715with_newt
686with_usb716with_usb
@@ -1100,7 +1130,7 @@
1100 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&21130 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1101 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&1131 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1102 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&21132 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1103 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}1133 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1104 ;;1134 ;;
11051135
1106 esac1136 esac
@@ -1151,8 +1181,6 @@
1151if test "x$host_alias" != x; then1181if test "x$host_alias" != x; then
1152 if test "x$build_alias" = x; then1182 if test "x$build_alias" = x; then
1153 cross_compiling=maybe1183 cross_compiling=maybe
1154 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1155 If a cross compiler is detected then cross compile mode will be used" >&2
1156 elif test "x$build_alias" != "x$host_alias"; then1184 elif test "x$build_alias" != "x$host_alias"; then
1157 cross_compiling=yes1185 cross_compiling=yes
1158 fi1186 fi
@@ -1306,6 +1334,7 @@
1306 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)1334 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1307 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]1335 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1308 --enable-dev-mode Turn on developer mode1336 --enable-dev-mode Turn on developer mode
1337 --enable-pinned Install pinned-spans support
13091338
1310Optional Packages:1339Optional Packages:
1311 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]1340 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
@@ -1393,9 +1422,9 @@
1393if $ac_init_version; then1422if $ac_init_version; then
1394 cat <<\_ACEOF1423 cat <<\_ACEOF
1395configure1424configure
1396generated by GNU Autoconf 2.671425generated by GNU Autoconf 2.69
13971426
1398Copyright (C) 2010 Free Software Foundation, Inc.1427Copyright (C) 2012 Free Software Foundation, Inc.
1399This configure script is free software; the Free Software Foundation1428This configure script is free software; the Free Software Foundation
1400gives unlimited permission to copy, distribute and modify it.1429gives unlimited permission to copy, distribute and modify it.
14011430
@@ -1441,7 +1470,7 @@
14411470
1442 ac_retval=11471 ac_retval=1
1443fi1472fi
1444 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}1473 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1445 as_fn_set_status $ac_retval1474 as_fn_set_status $ac_retval
14461475
1447} # ac_fn_c_try_compile1476} # ac_fn_c_try_compile
@@ -1478,7 +1507,7 @@
14781507
1479 ac_retval=11508 ac_retval=1
1480fi1509fi
1481 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}1510 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1482 as_fn_set_status $ac_retval1511 as_fn_set_status $ac_retval
14831512
1484} # ac_fn_c_try_cpp1513} # ac_fn_c_try_cpp
@@ -1491,10 +1520,10 @@
1491ac_fn_c_check_header_mongrel ()1520ac_fn_c_check_header_mongrel ()
1492{1521{
1493 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack1522 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1494 if eval "test \"\${$3+set}\"" = set; then :1523 if eval \${$3+:} false; then :
1495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&51524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1496$as_echo_n "checking for $2... " >&6; }1525$as_echo_n "checking for $2... " >&6; }
1497if eval "test \"\${$3+set}\"" = set; then :1526if eval \${$3+:} false; then :
1498 $as_echo_n "(cached) " >&61527 $as_echo_n "(cached) " >&6
1499fi1528fi
1500eval ac_res=\$$31529eval ac_res=\$$3
@@ -1557,7 +1586,7 @@
1557esac1586esac
1558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&51587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1559$as_echo_n "checking for $2... " >&6; }1588$as_echo_n "checking for $2... " >&6; }
1560if eval "test \"\${$3+set}\"" = set; then :1589if eval \${$3+:} false; then :
1561 $as_echo_n "(cached) " >&61590 $as_echo_n "(cached) " >&6
1562else1591else
1563 eval "$3=\$ac_header_compiler"1592 eval "$3=\$ac_header_compiler"
@@ -1566,7 +1595,7 @@
1566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&51595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1567$as_echo "$ac_res" >&6; }1596$as_echo "$ac_res" >&6; }
1568fi1597fi
1569 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}1598 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
15701599
1571} # ac_fn_c_check_header_mongrel1600} # ac_fn_c_check_header_mongrel
15721601
@@ -1607,7 +1636,7 @@
1607 ac_retval=$ac_status1636 ac_retval=$ac_status
1608fi1637fi
1609 rm -rf conftest.dSYM conftest_ipa8_conftest.oo1638 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1610 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}1639 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1611 as_fn_set_status $ac_retval1640 as_fn_set_status $ac_retval
16121641
1613} # ac_fn_c_try_run1642} # ac_fn_c_try_run
@@ -1621,7 +1650,7 @@
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&51651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1623$as_echo_n "checking for $2... " >&6; }1652$as_echo_n "checking for $2... " >&6; }
1624if eval "test \"\${$3+set}\"" = set; then :1653if eval \${$3+:} false; then :
1625 $as_echo_n "(cached) " >&61654 $as_echo_n "(cached) " >&6
1626else1655else
1627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext1656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -1639,7 +1668,7 @@
1639eval ac_res=\$$31668eval ac_res=\$$3
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&51669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1641$as_echo "$ac_res" >&6; }1670$as_echo "$ac_res" >&6; }
1642 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}1671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
16431672
1644} # ac_fn_c_check_header_compile1673} # ac_fn_c_check_header_compile
16451674
@@ -1670,7 +1699,7 @@
1670 test ! -s conftest.err1699 test ! -s conftest.err
1671 } && test -s conftest$ac_exeext && {1700 } && test -s conftest$ac_exeext && {
1672 test "$cross_compiling" = yes ||1701 test "$cross_compiling" = yes ||
1673 $as_test_x conftest$ac_exeext1702 test -x conftest$ac_exeext
1674 }; then :1703 }; then :
1675 ac_retval=01704 ac_retval=0
1676else1705else
@@ -1684,7 +1713,7 @@
1684 # interfere with the next link command; also delete a directory that is1713 # interfere with the next link command; also delete a directory that is
1685 # left behind by Apple's compiler. We do this before executing the actions.1714 # left behind by Apple's compiler. We do this before executing the actions.
1686 rm -rf conftest.dSYM conftest_ipa8_conftest.oo1715 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1687 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}1716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1688 as_fn_set_status $ac_retval1717 as_fn_set_status $ac_retval
16891718
1690} # ac_fn_c_try_link1719} # ac_fn_c_try_link
@@ -1697,7 +1726,7 @@
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&51727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1699$as_echo_n "checking for $2... " >&6; }1728$as_echo_n "checking for $2... " >&6; }
1700if eval "test \"\${$3+set}\"" = set; then :1729if eval \${$3+:} false; then :
1701 $as_echo_n "(cached) " >&61730 $as_echo_n "(cached) " >&6
1702else1731else
1703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext1732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -1752,7 +1781,7 @@
1752eval ac_res=\$$31781eval ac_res=\$$3
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&51782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1754$as_echo "$ac_res" >&6; }1783$as_echo "$ac_res" >&6; }
1755 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17561785
1757} # ac_fn_c_check_func1786} # ac_fn_c_check_func
1758cat >config.log <<_ACEOF1787cat >config.log <<_ACEOF
@@ -1760,7 +1789,7 @@
1760running configure, to aid debugging if configure makes a mistake.1789running configure, to aid debugging if configure makes a mistake.
17611790
1762It was created by $as_me, which was1791It was created by $as_me, which was
1763generated by GNU Autoconf 2.67. Invocation command line was1792generated by GNU Autoconf 2.69. Invocation command line was
17641793
1765 $ $0 $@1794 $ $0 $@
17661795
@@ -2018,7 +2047,7 @@
2018 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&52047 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2019$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}2048$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2020as_fn_error $? "failed to load site script $ac_site_file2049as_fn_error $? "failed to load site script $ac_site_file
2021See \`config.log' for more details" "$LINENO" 5 ; }2050See \`config.log' for more details" "$LINENO" 5; }
2022 fi2051 fi
2023done2052done
20242053
@@ -2141,7 +2170,7 @@
2141set dummy ${ac_tool_prefix}gcc; ac_word=$22170set dummy ${ac_tool_prefix}gcc; ac_word=$2
2142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&52171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2143$as_echo_n "checking for $ac_word... " >&6; }2172$as_echo_n "checking for $ac_word... " >&6; }
2144if test "${ac_cv_prog_CC+set}" = set; then :2173if ${ac_cv_prog_CC+:} false; then :
2145 $as_echo_n "(cached) " >&62174 $as_echo_n "(cached) " >&6
2146else2175else
2147 if test -n "$CC"; then2176 if test -n "$CC"; then
@@ -2153,7 +2182,7 @@
2153 IFS=$as_save_IFS2182 IFS=$as_save_IFS
2154 test -z "$as_dir" && as_dir=.2183 test -z "$as_dir" && as_dir=.
2155 for ac_exec_ext in '' $ac_executable_extensions; do2184 for ac_exec_ext in '' $ac_executable_extensions; do
2156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then2185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2157 ac_cv_prog_CC="${ac_tool_prefix}gcc"2186 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&52187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2159 break 22188 break 2
@@ -2181,7 +2210,7 @@
2181set dummy gcc; ac_word=$22210set dummy gcc; ac_word=$2
2182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&52211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2183$as_echo_n "checking for $ac_word... " >&6; }2212$as_echo_n "checking for $ac_word... " >&6; }
2184if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :2213if ${ac_cv_prog_ac_ct_CC+:} false; then :
2185 $as_echo_n "(cached) " >&62214 $as_echo_n "(cached) " >&6
2186else2215else
2187 if test -n "$ac_ct_CC"; then2216 if test -n "$ac_ct_CC"; then
@@ -2193,7 +2222,7 @@
2193 IFS=$as_save_IFS2222 IFS=$as_save_IFS
2194 test -z "$as_dir" && as_dir=.2223 test -z "$as_dir" && as_dir=.
2195 for ac_exec_ext in '' $ac_executable_extensions; do2224 for ac_exec_ext in '' $ac_executable_extensions; do
2196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then2225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2197 ac_cv_prog_ac_ct_CC="gcc"2226 ac_cv_prog_ac_ct_CC="gcc"
2198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&52227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2199 break 22228 break 2
@@ -2234,7 +2263,7 @@
2234set dummy ${ac_tool_prefix}cc; ac_word=$22263set dummy ${ac_tool_prefix}cc; ac_word=$2
2235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&52264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2236$as_echo_n "checking for $ac_word... " >&6; }2265$as_echo_n "checking for $ac_word... " >&6; }
2237if test "${ac_cv_prog_CC+set}" = set; then :2266if ${ac_cv_prog_CC+:} false; then :
2238 $as_echo_n "(cached) " >&62267 $as_echo_n "(cached) " >&6
2239else2268else
2240 if test -n "$CC"; then2269 if test -n "$CC"; then
@@ -2246,7 +2275,7 @@
2246 IFS=$as_save_IFS2275 IFS=$as_save_IFS
2247 test -z "$as_dir" && as_dir=.2276 test -z "$as_dir" && as_dir=.
2248 for ac_exec_ext in '' $ac_executable_extensions; do2277 for ac_exec_ext in '' $ac_executable_extensions; do
2249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then2278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2250 ac_cv_prog_CC="${ac_tool_prefix}cc"2279 ac_cv_prog_CC="${ac_tool_prefix}cc"
2251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&52280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2252 break 22281 break 2
@@ -2274,7 +2303,7 @@
2274set dummy cc; ac_word=$22303set dummy cc; ac_word=$2
2275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&52304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2276$as_echo_n "checking for $ac_word... " >&6; }2305$as_echo_n "checking for $ac_word... " >&6; }
2277if test "${ac_cv_prog_CC+set}" = set; then :2306if ${ac_cv_prog_CC+:} false; then :
2278 $as_echo_n "(cached) " >&62307 $as_echo_n "(cached) " >&6
2279else2308else
2280 if test -n "$CC"; then2309 if test -n "$CC"; then
@@ -2287,7 +2316,7 @@
2287 IFS=$as_save_IFS2316 IFS=$as_save_IFS
2288 test -z "$as_dir" && as_dir=.2317 test -z "$as_dir" && as_dir=.
2289 for ac_exec_ext in '' $ac_executable_extensions; do2318 for ac_exec_ext in '' $ac_executable_extensions; do
2290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then2319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2291 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then2320 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2292 ac_prog_rejected=yes2321 ac_prog_rejected=yes
2293 continue2322 continue
@@ -2333,7 +2362,7 @@
2333set dummy $ac_tool_prefix$ac_prog; ac_word=$22362set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&52363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2335$as_echo_n "checking for $ac_word... " >&6; }2364$as_echo_n "checking for $ac_word... " >&6; }
2336if test "${ac_cv_prog_CC+set}" = set; then :2365if ${ac_cv_prog_CC+:} false; then :
2337 $as_echo_n "(cached) " >&62366 $as_echo_n "(cached) " >&6
2338else2367else
2339 if test -n "$CC"; then2368 if test -n "$CC"; then
@@ -2345,7 +2374,7 @@
2345 IFS=$as_save_IFS2374 IFS=$as_save_IFS
2346 test -z "$as_dir" && as_dir=.2375 test -z "$as_dir" && as_dir=.
2347 for ac_exec_ext in '' $ac_executable_extensions; do2376 for ac_exec_ext in '' $ac_executable_extensions; do
2348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then2377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2349 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"2378 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&52379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2351 break 22380 break 2
@@ -2377,7 +2406,7 @@
2377set dummy $ac_prog; ac_word=$22406set dummy $ac_prog; ac_word=$2
2378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&52407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2379$as_echo_n "checking for $ac_word... " >&6; }2408$as_echo_n "checking for $ac_word... " >&6; }
2380if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :2409if ${ac_cv_prog_ac_ct_CC+:} false; then :
2381 $as_echo_n "(cached) " >&62410 $as_echo_n "(cached) " >&6
2382else2411else
2383 if test -n "$ac_ct_CC"; then2412 if test -n "$ac_ct_CC"; then
@@ -2389,7 +2418,7 @@
2389 IFS=$as_save_IFS2418 IFS=$as_save_IFS
2390 test -z "$as_dir" && as_dir=.2419 test -z "$as_dir" && as_dir=.
2391 for ac_exec_ext in '' $ac_executable_extensions; do2420 for ac_exec_ext in '' $ac_executable_extensions; do
2392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then2421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2393 ac_cv_prog_ac_ct_CC="$ac_prog"2422 ac_cv_prog_ac_ct_CC="$ac_prog"
2394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&52423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2395 break 22424 break 2
@@ -2432,7 +2461,7 @@
2432test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&52461test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2433$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}2462$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2434as_fn_error $? "no acceptable C compiler found in \$PATH2463as_fn_error $? "no acceptable C compiler found in \$PATH
2435See \`config.log' for more details" "$LINENO" 5 ; }2464See \`config.log' for more details" "$LINENO" 5; }
24362465
2437# Provide some information about the compiler.2466# Provide some information about the compiler.
2438$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&52467$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
@@ -2547,7 +2576,7 @@
2547{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&52576{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2548$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}2577$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2549as_fn_error 77 "C compiler cannot create executables2578as_fn_error 77 "C compiler cannot create executables
2550See \`config.log' for more details" "$LINENO" 5 ; }2579See \`config.log' for more details" "$LINENO" 5; }
2551else2580else
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&52581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2553$as_echo "yes" >&6; }2582$as_echo "yes" >&6; }
@@ -2590,7 +2619,7 @@
2590 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&52619 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2591$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}2620$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2592as_fn_error $? "cannot compute suffix of executables: cannot compile and link2621as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2593See \`config.log' for more details" "$LINENO" 5 ; }2622See \`config.log' for more details" "$LINENO" 5; }
2594fi2623fi
2595rm -f conftest conftest$ac_cv_exeext2624rm -f conftest conftest$ac_cv_exeext
2596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&52625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
@@ -2649,7 +2678,7 @@
2649$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}2678$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2650as_fn_error $? "cannot run C compiled programs.2679as_fn_error $? "cannot run C compiled programs.
2651If you meant to cross compile, use \`--host'.2680If you meant to cross compile, use \`--host'.
2652See \`config.log' for more details" "$LINENO" 5 ; }2681See \`config.log' for more details" "$LINENO" 5; }
2653 fi2682 fi
2654 fi2683 fi
2655fi2684fi
@@ -2660,7 +2689,7 @@
2660ac_clean_files=$ac_clean_files_save2689ac_clean_files=$ac_clean_files_save
2661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&52690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2662$as_echo_n "checking for suffix of object files... " >&6; }2691$as_echo_n "checking for suffix of object files... " >&6; }
2663if test "${ac_cv_objext+set}" = set; then :2692if ${ac_cv_objext+:} false; then :
2664 $as_echo_n "(cached) " >&62693 $as_echo_n "(cached) " >&6
2665else2694else
2666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext2695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -2701,7 +2730,7 @@
2701{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&52730{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2702$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}2731$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2703as_fn_error $? "cannot compute suffix of object files: cannot compile2732as_fn_error $? "cannot compute suffix of object files: cannot compile
2704See \`config.log' for more details" "$LINENO" 5 ; }2733See \`config.log' for more details" "$LINENO" 5; }
2705fi2734fi
2706rm -f conftest.$ac_cv_objext conftest.$ac_ext2735rm -f conftest.$ac_cv_objext conftest.$ac_ext
2707fi2736fi
@@ -2711,7 +2740,7 @@
2711ac_objext=$OBJEXT2740ac_objext=$OBJEXT
2712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&52741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2713$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }2742$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2714if test "${ac_cv_c_compiler_gnu+set}" = set; then :2743if ${ac_cv_c_compiler_gnu+:} false; then :
2715 $as_echo_n "(cached) " >&62744 $as_echo_n "(cached) " >&6
2716else2745else
2717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext2746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -2748,7 +2777,7 @@
2748ac_save_CFLAGS=$CFLAGS2777ac_save_CFLAGS=$CFLAGS
2749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&52778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2750$as_echo_n "checking whether $CC accepts -g... " >&6; }2779$as_echo_n "checking whether $CC accepts -g... " >&6; }
2751if test "${ac_cv_prog_cc_g+set}" = set; then :2780if ${ac_cv_prog_cc_g+:} false; then :
2752 $as_echo_n "(cached) " >&62781 $as_echo_n "(cached) " >&6
2753else2782else
2754 ac_save_c_werror_flag=$ac_c_werror_flag2783 ac_save_c_werror_flag=$ac_c_werror_flag
@@ -2826,7 +2855,7 @@
2826fi2855fi
2827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&52856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2828$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }2857$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2829if test "${ac_cv_prog_cc_c89+set}" = set; then :2858if ${ac_cv_prog_cc_c89+:} false; then :
2830 $as_echo_n "(cached) " >&62859 $as_echo_n "(cached) " >&6
2831else2860else
2832 ac_cv_prog_cc_c89=no2861 ac_cv_prog_cc_c89=no
@@ -2835,8 +2864,7 @@
2835/* end confdefs.h. */2864/* end confdefs.h. */
2836#include <stdarg.h>2865#include <stdarg.h>
2837#include <stdio.h>2866#include <stdio.h>
2838#include <sys/types.h>2867struct stat;
2839#include <sys/stat.h>
2840/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */2868/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2841struct buf { int x; };2869struct buf { int x; };
2842FILE * (*rcsopen) (struct buf *, struct stat *, int);2870FILE * (*rcsopen) (struct buf *, struct stat *, int);
@@ -2934,7 +2962,7 @@
2934 CPP=2962 CPP=
2935fi2963fi
2936if test -z "$CPP"; then2964if test -z "$CPP"; then
2937 if test "${ac_cv_prog_CPP+set}" = set; then :2965 if ${ac_cv_prog_CPP+:} false; then :
2938 $as_echo_n "(cached) " >&62966 $as_echo_n "(cached) " >&6
2939else2967else
2940 # Double quotes because CPP needs to be expanded2968 # Double quotes because CPP needs to be expanded
@@ -3050,7 +3078,7 @@
3050 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&53078 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3051$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}3079$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3052as_fn_error $? "C preprocessor \"$CPP\" fails sanity check3080as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3053See \`config.log' for more details" "$LINENO" 5 ; }3081See \`config.log' for more details" "$LINENO" 5; }
3054fi3082fi
30553083
3056ac_ext=c3084ac_ext=c
@@ -3062,7 +3090,7 @@
30623090
3063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&53091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3064$as_echo_n "checking for grep that handles long lines and -e... " >&6; }3092$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3065if test "${ac_cv_path_GREP+set}" = set; then :3093if ${ac_cv_path_GREP+:} false; then :
3066 $as_echo_n "(cached) " >&63094 $as_echo_n "(cached) " >&6
3067else3095else
3068 if test -z "$GREP"; then3096 if test -z "$GREP"; then
@@ -3076,7 +3104,7 @@
3076 for ac_prog in grep ggrep; do3104 for ac_prog in grep ggrep; do
3077 for ac_exec_ext in '' $ac_executable_extensions; do3105 for ac_exec_ext in '' $ac_executable_extensions; do
3078 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"3106 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3079 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue3107 as_fn_executable_p "$ac_path_GREP" || continue
3080# Check for GNU ac_path_GREP and select it if it is found.3108# Check for GNU ac_path_GREP and select it if it is found.
3081 # Check for GNU $ac_path_GREP3109 # Check for GNU $ac_path_GREP
3082case `"$ac_path_GREP" --version 2>&1` in3110case `"$ac_path_GREP" --version 2>&1` in
@@ -3125,7 +3153,7 @@
31253153
3126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&53154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3127$as_echo_n "checking for egrep... " >&6; }3155$as_echo_n "checking for egrep... " >&6; }
3128if test "${ac_cv_path_EGREP+set}" = set; then :3156if ${ac_cv_path_EGREP+:} false; then :
3129 $as_echo_n "(cached) " >&63157 $as_echo_n "(cached) " >&6
3130else3158else
3131 if echo a | $GREP -E '(a|b)' >/dev/null 2>&13159 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
@@ -3142,7 +3170,7 @@
3142 for ac_prog in egrep; do3170 for ac_prog in egrep; do
3143 for ac_exec_ext in '' $ac_executable_extensions; do3171 for ac_exec_ext in '' $ac_executable_extensions; do
3144 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"3172 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3145 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue3173 as_fn_executable_p "$ac_path_EGREP" || continue
3146# Check for GNU ac_path_EGREP and select it if it is found.3174# Check for GNU ac_path_EGREP and select it if it is found.
3147 # Check for GNU $ac_path_EGREP3175 # Check for GNU $ac_path_EGREP
3148case `"$ac_path_EGREP" --version 2>&1` in3176case `"$ac_path_EGREP" --version 2>&1` in
@@ -3192,7 +3220,7 @@
31923220
3193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&53221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3194$as_echo_n "checking for ANSI C header files... " >&6; }3222$as_echo_n "checking for ANSI C header files... " >&6; }
3195if test "${ac_cv_header_stdc+set}" = set; then :3223if ${ac_cv_header_stdc+:} false; then :
3196 $as_echo_n "(cached) " >&63224 $as_echo_n "(cached) " >&6
3197else3225else
3198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext3226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -3321,7 +3349,7 @@
33213349
33223350
3323 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"3351 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3324if test "x$ac_cv_header_minix_config_h" = x""yes; then :3352if test "x$ac_cv_header_minix_config_h" = xyes; then :
3325 MINIX=yes3353 MINIX=yes
3326else3354else
3327 MINIX=3355 MINIX=
@@ -3343,14 +3371,14 @@
33433371
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&53372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3345$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }3373$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3346if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :3374if ${ac_cv_safe_to_define___extensions__+:} false; then :
3347 $as_echo_n "(cached) " >&63375 $as_echo_n "(cached) " >&6
3348else3376else
3349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext3377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3350/* end confdefs.h. */3378/* end confdefs.h. */
33513379
3352# define __EXTENSIONS__ 13380# define __EXTENSIONS__ 1
3353 $ac_includes_default3381 $ac_includes_default
3354int3382int
3355main ()3383main ()
3356{3384{
@@ -3401,7 +3429,7 @@
3401set dummy ${ac_tool_prefix}ld; ac_word=$23429set dummy ${ac_tool_prefix}ld; ac_word=$2
3402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&53430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3403$as_echo_n "checking for $ac_word... " >&6; }3431$as_echo_n "checking for $ac_word... " >&6; }
3404if test "${ac_cv_prog_LD+set}" = set; then :3432if ${ac_cv_prog_LD+:} false; then :
3405 $as_echo_n "(cached) " >&63433 $as_echo_n "(cached) " >&6
3406else3434else
3407 if test -n "$LD"; then3435 if test -n "$LD"; then
@@ -3413,7 +3441,7 @@
3413 IFS=$as_save_IFS3441 IFS=$as_save_IFS
3414 test -z "$as_dir" && as_dir=.3442 test -z "$as_dir" && as_dir=.
3415 for ac_exec_ext in '' $ac_executable_extensions; do3443 for ac_exec_ext in '' $ac_executable_extensions; do
3416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then3444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3417 ac_cv_prog_LD="${ac_tool_prefix}ld"3445 ac_cv_prog_LD="${ac_tool_prefix}ld"
3418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&53446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3419 break 23447 break 2
@@ -3441,7 +3469,7 @@
3441set dummy ld; ac_word=$23469set dummy ld; ac_word=$2
3442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&53470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3443$as_echo_n "checking for $ac_word... " >&6; }3471$as_echo_n "checking for $ac_word... " >&6; }
3444if test "${ac_cv_prog_ac_ct_LD+set}" = set; then :3472if ${ac_cv_prog_ac_ct_LD+:} false; then :
3445 $as_echo_n "(cached) " >&63473 $as_echo_n "(cached) " >&6
3446else3474else
3447 if test -n "$ac_ct_LD"; then3475 if test -n "$ac_ct_LD"; then
@@ -3453,7 +3481,7 @@
3453 IFS=$as_save_IFS3481 IFS=$as_save_IFS
3454 test -z "$as_dir" && as_dir=.3482 test -z "$as_dir" && as_dir=.
3455 for ac_exec_ext in '' $ac_executable_extensions; do3483 for ac_exec_ext in '' $ac_executable_extensions; do
3456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then3484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3457 ac_cv_prog_ac_ct_LD="ld"3485 ac_cv_prog_ac_ct_LD="ld"
3458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&53486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3459 break 23487 break 2
@@ -3500,7 +3528,7 @@
3500set dummy ${ac_tool_prefix}gcc; ac_word=$23528set dummy ${ac_tool_prefix}gcc; ac_word=$2
3501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&53529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3502$as_echo_n "checking for $ac_word... " >&6; }3530$as_echo_n "checking for $ac_word... " >&6; }
3503if test "${ac_cv_prog_CC+set}" = set; then :3531if ${ac_cv_prog_CC+:} false; then :
3504 $as_echo_n "(cached) " >&63532 $as_echo_n "(cached) " >&6
3505else3533else
3506 if test -n "$CC"; then3534 if test -n "$CC"; then
@@ -3512,7 +3540,7 @@
3512 IFS=$as_save_IFS3540 IFS=$as_save_IFS
3513 test -z "$as_dir" && as_dir=.3541 test -z "$as_dir" && as_dir=.
3514 for ac_exec_ext in '' $ac_executable_extensions; do3542 for ac_exec_ext in '' $ac_executable_extensions; do
3515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then3543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3516 ac_cv_prog_CC="${ac_tool_prefix}gcc"3544 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&53545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3518 break 23546 break 2
@@ -3540,7 +3568,7 @@
3540set dummy gcc; ac_word=$23568set dummy gcc; ac_word=$2
3541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&53569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3542$as_echo_n "checking for $ac_word... " >&6; }3570$as_echo_n "checking for $ac_word... " >&6; }
3543if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :3571if ${ac_cv_prog_ac_ct_CC+:} false; then :
3544 $as_echo_n "(cached) " >&63572 $as_echo_n "(cached) " >&6
3545else3573else
3546 if test -n "$ac_ct_CC"; then3574 if test -n "$ac_ct_CC"; then
@@ -3552,7 +3580,7 @@
3552 IFS=$as_save_IFS3580 IFS=$as_save_IFS
3553 test -z "$as_dir" && as_dir=.3581 test -z "$as_dir" && as_dir=.
3554 for ac_exec_ext in '' $ac_executable_extensions; do3582 for ac_exec_ext in '' $ac_executable_extensions; do
3555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then3583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3556 ac_cv_prog_ac_ct_CC="gcc"3584 ac_cv_prog_ac_ct_CC="gcc"
3557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&53585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3558 break 23586 break 2
@@ -3593,7 +3621,7 @@
3593set dummy ${ac_tool_prefix}cc; ac_word=$23621set dummy ${ac_tool_prefix}cc; ac_word=$2
3594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&53622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3595$as_echo_n "checking for $ac_word... " >&6; }3623$as_echo_n "checking for $ac_word... " >&6; }
3596if test "${ac_cv_prog_CC+set}" = set; then :3624if ${ac_cv_prog_CC+:} false; then :
3597 $as_echo_n "(cached) " >&63625 $as_echo_n "(cached) " >&6
3598else3626else
3599 if test -n "$CC"; then3627 if test -n "$CC"; then
@@ -3605,7 +3633,7 @@
3605 IFS=$as_save_IFS3633 IFS=$as_save_IFS
3606 test -z "$as_dir" && as_dir=.3634 test -z "$as_dir" && as_dir=.
3607 for ac_exec_ext in '' $ac_executable_extensions; do3635 for ac_exec_ext in '' $ac_executable_extensions; do
3608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then3636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3609 ac_cv_prog_CC="${ac_tool_prefix}cc"3637 ac_cv_prog_CC="${ac_tool_prefix}cc"
3610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&53638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3611 break 23639 break 2
@@ -3633,7 +3661,7 @@
3633set dummy cc; ac_word=$23661set dummy cc; ac_word=$2
3634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&53662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3635$as_echo_n "checking for $ac_word... " >&6; }3663$as_echo_n "checking for $ac_word... " >&6; }
3636if test "${ac_cv_prog_CC+set}" = set; then :3664if ${ac_cv_prog_CC+:} false; then :
3637 $as_echo_n "(cached) " >&63665 $as_echo_n "(cached) " >&6
3638else3666else
3639 if test -n "$CC"; then3667 if test -n "$CC"; then
@@ -3646,7 +3674,7 @@
3646 IFS=$as_save_IFS3674 IFS=$as_save_IFS
3647 test -z "$as_dir" && as_dir=.3675 test -z "$as_dir" && as_dir=.
3648 for ac_exec_ext in '' $ac_executable_extensions; do3676 for ac_exec_ext in '' $ac_executable_extensions; do
3649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then3677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3650 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then3678 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3651 ac_prog_rejected=yes3679 ac_prog_rejected=yes
3652 continue3680 continue
@@ -3692,7 +3720,7 @@
3692set dummy $ac_tool_prefix$ac_prog; ac_word=$23720set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&53721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3694$as_echo_n "checking for $ac_word... " >&6; }3722$as_echo_n "checking for $ac_word... " >&6; }
3695if test "${ac_cv_prog_CC+set}" = set; then :3723if ${ac_cv_prog_CC+:} false; then :
3696 $as_echo_n "(cached) " >&63724 $as_echo_n "(cached) " >&6
3697else3725else
3698 if test -n "$CC"; then3726 if test -n "$CC"; then
@@ -3704,7 +3732,7 @@
3704 IFS=$as_save_IFS3732 IFS=$as_save_IFS
3705 test -z "$as_dir" && as_dir=.3733 test -z "$as_dir" && as_dir=.
3706 for ac_exec_ext in '' $ac_executable_extensions; do3734 for ac_exec_ext in '' $ac_executable_extensions; do
3707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then3735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3708 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"3736 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&53737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3710 break 23738 break 2
@@ -3736,7 +3764,7 @@
3736set dummy $ac_prog; ac_word=$23764set dummy $ac_prog; ac_word=$2
3737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&53765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3738$as_echo_n "checking for $ac_word... " >&6; }3766$as_echo_n "checking for $ac_word... " >&6; }
3739if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :3767if ${ac_cv_prog_ac_ct_CC+:} false; then :
3740 $as_echo_n "(cached) " >&63768 $as_echo_n "(cached) " >&6
3741else3769else
3742 if test -n "$ac_ct_CC"; then3770 if test -n "$ac_ct_CC"; then
@@ -3748,7 +3776,7 @@
3748 IFS=$as_save_IFS3776 IFS=$as_save_IFS
3749 test -z "$as_dir" && as_dir=.3777 test -z "$as_dir" && as_dir=.
3750 for ac_exec_ext in '' $ac_executable_extensions; do3778 for ac_exec_ext in '' $ac_executable_extensions; do
3751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then3779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3752 ac_cv_prog_ac_ct_CC="$ac_prog"3780 ac_cv_prog_ac_ct_CC="$ac_prog"
3753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&53781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3754 break 23782 break 2
@@ -3791,7 +3819,7 @@
3791test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&53819test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3792$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}3820$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3793as_fn_error $? "no acceptable C compiler found in \$PATH3821as_fn_error $? "no acceptable C compiler found in \$PATH
3794See \`config.log' for more details" "$LINENO" 5 ; }3822See \`config.log' for more details" "$LINENO" 5; }
37953823
3796# Provide some information about the compiler.3824# Provide some information about the compiler.
3797$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&53825$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
@@ -3820,7 +3848,7 @@
38203848
3821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&53849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3822$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }3850$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3823if test "${ac_cv_c_compiler_gnu+set}" = set; then :3851if ${ac_cv_c_compiler_gnu+:} false; then :
3824 $as_echo_n "(cached) " >&63852 $as_echo_n "(cached) " >&6
3825else3853else
3826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext3854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -3857,7 +3885,7 @@
3857ac_save_CFLAGS=$CFLAGS3885ac_save_CFLAGS=$CFLAGS
3858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&53886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3859$as_echo_n "checking whether $CC accepts -g... " >&6; }3887$as_echo_n "checking whether $CC accepts -g... " >&6; }
3860if test "${ac_cv_prog_cc_g+set}" = set; then :3888if ${ac_cv_prog_cc_g+:} false; then :
3861 $as_echo_n "(cached) " >&63889 $as_echo_n "(cached) " >&6
3862else3890else
3863 ac_save_c_werror_flag=$ac_c_werror_flag3891 ac_save_c_werror_flag=$ac_c_werror_flag
@@ -3935,7 +3963,7 @@
3935fi3963fi
3936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&53964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3937$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }3965$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3938if test "${ac_cv_prog_cc_c89+set}" = set; then :3966if ${ac_cv_prog_cc_c89+:} false; then :
3939 $as_echo_n "(cached) " >&63967 $as_echo_n "(cached) " >&6
3940else3968else
3941 ac_cv_prog_cc_c89=no3969 ac_cv_prog_cc_c89=no
@@ -3944,8 +3972,7 @@
3944/* end confdefs.h. */3972/* end confdefs.h. */
3945#include <stdarg.h>3973#include <stdarg.h>
3946#include <stdio.h>3974#include <stdio.h>
3947#include <sys/types.h>3975struct stat;
3948#include <sys/stat.h>
3949/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */3976/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3950struct buf { int x; };3977struct buf { int x; };
3951FILE * (*rcsopen) (struct buf *, struct stat *, int);3978FILE * (*rcsopen) (struct buf *, struct stat *, int);
@@ -4042,7 +4069,7 @@
4042 CPP=4069 CPP=
4043fi4070fi
4044if test -z "$CPP"; then4071if test -z "$CPP"; then
4045 if test "${ac_cv_prog_CPP+set}" = set; then :4072 if ${ac_cv_prog_CPP+:} false; then :
4046 $as_echo_n "(cached) " >&64073 $as_echo_n "(cached) " >&6
4047else4074else
4048 # Double quotes because CPP needs to be expanded4075 # Double quotes because CPP needs to be expanded
@@ -4158,7 +4185,7 @@
4158 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&54185 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4159$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}4186$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4160as_fn_error $? "C preprocessor \"$CPP\" fails sanity check4187as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4161See \`config.log' for more details" "$LINENO" 5 ; }4188See \`config.log' for more details" "$LINENO" 5; }
4162fi4189fi
41634190
4164ac_ext=c4191ac_ext=c
@@ -4213,7 +4240,7 @@
4213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&54240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4214$as_echo_n "checking for a BSD-compatible install... " >&6; }4241$as_echo_n "checking for a BSD-compatible install... " >&6; }
4215if test -z "$INSTALL"; then4242if test -z "$INSTALL"; then
4216if test "${ac_cv_path_install+set}" = set; then :4243if ${ac_cv_path_install+:} false; then :
4217 $as_echo_n "(cached) " >&64244 $as_echo_n "(cached) " >&6
4218else4245else
4219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR4246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
@@ -4233,7 +4260,7 @@
4233 # by default.4260 # by default.
4234 for ac_prog in ginstall scoinst install; do4261 for ac_prog in ginstall scoinst install; do
4235 for ac_exec_ext in '' $ac_executable_extensions; do4262 for ac_exec_ext in '' $ac_executable_extensions; do
4236 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then4263 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4237 if test $ac_prog = install &&4264 if test $ac_prog = install &&
4238 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then4265 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4239 # AIX install. It has an incompatible calling convention.4266 # AIX install. It has an incompatible calling convention.
@@ -4302,7 +4329,7 @@
43024329
4303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&54330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
4304$as_echo_n "checking for GNU make... " >&6; }4331$as_echo_n "checking for GNU make... " >&6; }
4305if test "${ac_cv_GNU_MAKE+set}" = set; then :4332if ${ac_cv_GNU_MAKE+:} false; then :
4306 $as_echo_n "(cached) " >&64333 $as_echo_n "(cached) " >&6
4307else4334else
4308 ac_cv_GNU_MAKE='Not Found' ;4335 ac_cv_GNU_MAKE='Not Found' ;
@@ -4348,7 +4375,7 @@
4348set dummy grep; ac_word=$24375set dummy grep; ac_word=$2
4349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&54376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4350$as_echo_n "checking for $ac_word... " >&6; }4377$as_echo_n "checking for $ac_word... " >&6; }
4351if test "${ac_cv_path_GREP+set}" = set; then :4378if ${ac_cv_path_GREP+:} false; then :
4352 $as_echo_n "(cached) " >&64379 $as_echo_n "(cached) " >&6
4353else4380else
4354 case $GREP in4381 case $GREP in
@@ -4362,7 +4389,7 @@
4362 IFS=$as_save_IFS4389 IFS=$as_save_IFS
4363 test -z "$as_dir" && as_dir=.4390 test -z "$as_dir" && as_dir=.
4364 for ac_exec_ext in '' $ac_executable_extensions; do4391 for ac_exec_ext in '' $ac_executable_extensions; do
4365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then4392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4366 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"4393 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&54394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4368 break 24395 break 2
@@ -4389,7 +4416,7 @@
4389set dummy sh; ac_word=$24416set dummy sh; ac_word=$2
4390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&54417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4391$as_echo_n "checking for $ac_word... " >&6; }4418$as_echo_n "checking for $ac_word... " >&6; }
4392if test "${ac_cv_path_SHELL+set}" = set; then :4419if ${ac_cv_path_SHELL+:} false; then :
4393 $as_echo_n "(cached) " >&64420 $as_echo_n "(cached) " >&6
4394else4421else
4395 case $SHELL in4422 case $SHELL in
@@ -4403,7 +4430,7 @@
4403 IFS=$as_save_IFS4430 IFS=$as_save_IFS
4404 test -z "$as_dir" && as_dir=.4431 test -z "$as_dir" && as_dir=.
4405 for ac_exec_ext in '' $ac_executable_extensions; do4432 for ac_exec_ext in '' $ac_executable_extensions; do
4406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then4433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4407 ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"4434 ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
4408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&54435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4409 break 24436 break 2
@@ -4430,7 +4457,7 @@
4430set dummy ln; ac_word=$24457set dummy ln; ac_word=$2
4431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&54458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4432$as_echo_n "checking for $ac_word... " >&6; }4459$as_echo_n "checking for $ac_word... " >&6; }
4433if test "${ac_cv_path_LN+set}" = set; then :4460if ${ac_cv_path_LN+:} false; then :
4434 $as_echo_n "(cached) " >&64461 $as_echo_n "(cached) " >&6
4435else4462else
4436 case $LN in4463 case $LN in
@@ -4444,7 +4471,7 @@
4444 IFS=$as_save_IFS4471 IFS=$as_save_IFS
4445 test -z "$as_dir" && as_dir=.4472 test -z "$as_dir" && as_dir=.
4446 for ac_exec_ext in '' $ac_executable_extensions; do4473 for ac_exec_ext in '' $ac_executable_extensions; do
4447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then4474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4448 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"4475 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&54476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4450 break 24477 break 2
@@ -4472,7 +4499,7 @@
4472set dummy wget; ac_word=$24499set dummy wget; ac_word=$2
4473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&54500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4474$as_echo_n "checking for $ac_word... " >&6; }4501$as_echo_n "checking for $ac_word... " >&6; }
4475if test "${ac_cv_path_WGET+set}" = set; then :4502if ${ac_cv_path_WGET+:} false; then :
4476 $as_echo_n "(cached) " >&64503 $as_echo_n "(cached) " >&6
4477else4504else
4478 case $WGET in4505 case $WGET in
@@ -4486,7 +4513,7 @@
4486 IFS=$as_save_IFS4513 IFS=$as_save_IFS
4487 test -z "$as_dir" && as_dir=.4514 test -z "$as_dir" && as_dir=.
4488 for ac_exec_ext in '' $ac_executable_extensions; do4515 for ac_exec_ext in '' $ac_executable_extensions; do
4489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then4516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4490 ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"4517 ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
4491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&54518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4492 break 24519 break 2
@@ -4516,7 +4543,7 @@
4516set dummy fetch; ac_word=$24543set dummy fetch; ac_word=$2
4517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&54544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4518$as_echo_n "checking for $ac_word... " >&6; }4545$as_echo_n "checking for $ac_word... " >&6; }
4519if test "${ac_cv_path_FETCH+set}" = set; then :4546if ${ac_cv_path_FETCH+:} false; then :
4520 $as_echo_n "(cached) " >&64547 $as_echo_n "(cached) " >&6
4521else4548else
4522 case $FETCH in4549 case $FETCH in
@@ -4530,7 +4557,7 @@
4530 IFS=$as_save_IFS4557 IFS=$as_save_IFS
4531 test -z "$as_dir" && as_dir=.4558 test -z "$as_dir" && as_dir=.
4532 for ac_exec_ext in '' $ac_executable_extensions; do4559 for ac_exec_ext in '' $ac_executable_extensions; do
4533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then4560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4534 ac_cv_path_FETCH="$as_dir/$ac_word$ac_exec_ext"4561 ac_cv_path_FETCH="$as_dir/$ac_word$ac_exec_ext"
4535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&54562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4536 break 24563 break 2
@@ -4569,7 +4596,18 @@
4569 enableval=$enable_dev_mode; case "${enableval}" in4596 enableval=$enable_dev_mode; case "${enableval}" in
4570 y|ye|yes) DAHDI_DEVMODE=yes ;;4597 y|ye|yes) DAHDI_DEVMODE=yes ;;
4571 n|no) DAHDI_DEVMODE=no ;;4598 n|no) DAHDI_DEVMODE=no ;;
4572 *) as_fn_error $? "bad value ${enableval} for --enable-dev-mode" "$LINENO" 5 ;;4599 *) as_fn_error $? "bad value ${enableval} for --enable-dev-mode" "$LINENO" 5 ;;
4600 esac
4601fi
4602
4603
4604
4605# Check whether --enable-pinned was given.
4606if test "${enable_pinned+set}" = set; then :
4607 enableval=$enable_pinned; case "${enableval}" in
4608 y|ye|yes) DAHDI_PINNED=yes ;;
4609 n|no) DAHDI_PINNED=no ;;
4610 *) as_fn_error $? "bad value ${enableval} for --enable-pinned" "$LINENO" 5 ;;
4573 esac4611 esac
4574fi4612fi
45754613
@@ -4788,7 +4826,7 @@
4788 as_ac_Lib=`$as_echo "ac_cv_lib_newt_${pbxfuncname}" | $as_tr_sh`4826 as_ac_Lib=`$as_echo "ac_cv_lib_newt_${pbxfuncname}" | $as_tr_sh`
4789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lnewt" >&54827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lnewt" >&5
4790$as_echo_n "checking for ${pbxfuncname} in -lnewt... " >&6; }4828$as_echo_n "checking for ${pbxfuncname} in -lnewt... " >&6; }
4791if eval "test \"\${$as_ac_Lib+set}\"" = set; then :4829if eval \${$as_ac_Lib+:} false; then :
4792 $as_echo_n "(cached) " >&64830 $as_echo_n "(cached) " >&6
4793else4831else
4794 ac_check_lib_save_LIBS=$LIBS4832 ac_check_lib_save_LIBS=$LIBS
@@ -4845,7 +4883,7 @@
4845 saved_cppflags="${CPPFLAGS}"4883 saved_cppflags="${CPPFLAGS}"
4846 CPPFLAGS="${CPPFLAGS} ${NEWT_INCLUDE} "4884 CPPFLAGS="${CPPFLAGS} ${NEWT_INCLUDE} "
4847 ac_fn_c_check_header_mongrel "$LINENO" "newt.h" "ac_cv_header_newt_h" "$ac_includes_default"4885 ac_fn_c_check_header_mongrel "$LINENO" "newt.h" "ac_cv_header_newt_h" "$ac_includes_default"
4848if test "x$ac_cv_header_newt_h" = x""yes; then :4886if test "x$ac_cv_header_newt_h" = xyes; then :
4849 NEWT_HEADER_FOUND=14887 NEWT_HEADER_FOUND=1
4850else4888else
4851 NEWT_HEADER_FOUND=04889 NEWT_HEADER_FOUND=0
@@ -4895,7 +4933,7 @@
4895 as_ac_Lib=`$as_echo "ac_cv_lib_usb_${pbxfuncname}" | $as_tr_sh`4933 as_ac_Lib=`$as_echo "ac_cv_lib_usb_${pbxfuncname}" | $as_tr_sh`
4896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lusb" >&54934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lusb" >&5
4897$as_echo_n "checking for ${pbxfuncname} in -lusb... " >&6; }4935$as_echo_n "checking for ${pbxfuncname} in -lusb... " >&6; }
4898if eval "test \"\${$as_ac_Lib+set}\"" = set; then :4936if eval \${$as_ac_Lib+:} false; then :
4899 $as_echo_n "(cached) " >&64937 $as_echo_n "(cached) " >&6
4900else4938else
4901 ac_check_lib_save_LIBS=$LIBS4939 ac_check_lib_save_LIBS=$LIBS
@@ -4952,7 +4990,7 @@
4952 saved_cppflags="${CPPFLAGS}"4990 saved_cppflags="${CPPFLAGS}"
4953 CPPFLAGS="${CPPFLAGS} ${USB_INCLUDE} "4991 CPPFLAGS="${CPPFLAGS} ${USB_INCLUDE} "
4954 ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"4992 ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
4955if test "x$ac_cv_header_usb_h" = x""yes; then :4993if test "x$ac_cv_header_usb_h" = xyes; then :
4956 USB_HEADER_FOUND=14994 USB_HEADER_FOUND=1
4957else4995else
4958 USB_HEADER_FOUND=04996 USB_HEADER_FOUND=0
@@ -4988,7 +5026,7 @@
4988for ac_func in semtimedop5026for ac_func in semtimedop
4989do :5027do :
4990 ac_fn_c_check_func "$LINENO" "semtimedop" "ac_cv_func_semtimedop"5028 ac_fn_c_check_func "$LINENO" "semtimedop" "ac_cv_func_semtimedop"
4991if test "x$ac_cv_func_semtimedop" = x""yes; then :5029if test "x$ac_cv_func_semtimedop" = xyes; then :
4992 cat >>confdefs.h <<_ACEOF5030 cat >>confdefs.h <<_ACEOF
4993#define HAVE_SEMTIMEDOP 15031#define HAVE_SEMTIMEDOP 1
4994_ACEOF5032_ACEOF
@@ -5153,7 +5191,7 @@
51535191
51545192
51555193
5156ac_config_files="$ac_config_files build_tools/menuselect-deps makeopts"5194ac_config_files="$ac_config_files makeopts"
51575195
5158cat >confcache <<\_ACEOF5196cat >confcache <<\_ACEOF
5159# This file is a shell script that caches the results of configure5197# This file is a shell script that caches the results of configure
@@ -5219,10 +5257,21 @@
5219 :end' >>confcache5257 :end' >>confcache
5220if diff "$cache_file" confcache >/dev/null 2>&1; then :; else5258if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5221 if test -w "$cache_file"; then5259 if test -w "$cache_file"; then
5222 test "x$cache_file" != "x/dev/null" &&5260 if test "x$cache_file" != "x/dev/null"; then
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&55261 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5224$as_echo "$as_me: updating cache $cache_file" >&6;}5262$as_echo "$as_me: updating cache $cache_file" >&6;}
5225 cat confcache >$cache_file5263 if test ! -f "$cache_file" || test -h "$cache_file"; then
5264 cat confcache >"$cache_file"
5265 else
5266 case $cache_file in #(
5267 */* | ?:*)
5268 mv -f confcache "$cache_file"$$ &&
5269 mv -f "$cache_file"$$ "$cache_file" ;; #(
5270 *)
5271 mv -f confcache "$cache_file" ;;
5272 esac
5273 fi
5274 fi
5226 else5275 else
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&55276 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5228$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}5277$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
@@ -5254,7 +5303,7 @@
52545303
52555304
52565305
5257: ${CONFIG_STATUS=./config.status}5306: "${CONFIG_STATUS=./config.status}"
5258ac_write_fail=05307ac_write_fail=0
5259ac_clean_files_save=$ac_clean_files5308ac_clean_files_save=$ac_clean_files
5260ac_clean_files="$ac_clean_files $CONFIG_STATUS"5309ac_clean_files="$ac_clean_files $CONFIG_STATUS"
@@ -5355,6 +5404,7 @@
5355IFS=" "" $as_nl"5404IFS=" "" $as_nl"
53565405
5357# Find who we are. Look in the path if we contain no directory separator.5406# Find who we are. Look in the path if we contain no directory separator.
5407as_myself=
5358case $0 in #((5408case $0 in #((
5359 *[\\/]* ) as_myself=$0 ;;5409 *[\\/]* ) as_myself=$0 ;;
5360 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR5410 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
@@ -5550,16 +5600,16 @@
5550 # ... but there are two gotchas:5600 # ... but there are two gotchas:
5551 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.5601 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5552 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.5602 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5553 # In both cases, we have to default to `cp -p'.5603 # In both cases, we have to default to `cp -pR'.
5554 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||5604 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5555 as_ln_s='cp -p'5605 as_ln_s='cp -pR'
5556 elif ln conf$$.file conf$$ 2>/dev/null; then5606 elif ln conf$$.file conf$$ 2>/dev/null; then
5557 as_ln_s=ln5607 as_ln_s=ln
5558 else5608 else
5559 as_ln_s='cp -p'5609 as_ln_s='cp -pR'
5560 fi5610 fi
5561else5611else
5562 as_ln_s='cp -p'5612 as_ln_s='cp -pR'
5563fi5613fi
5564rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file5614rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5565rmdir conf$$.dir 2>/dev/null5615rmdir conf$$.dir 2>/dev/null
@@ -5619,28 +5669,16 @@
5619 as_mkdir_p=false5669 as_mkdir_p=false
5620fi5670fi
56215671
5622if test -x / >/dev/null 2>&1; then5672
5623 as_test_x='test -x'5673# as_fn_executable_p FILE
5624else5674# -----------------------
5625 if ls -dL / >/dev/null 2>&1; then5675# Test if FILE is an executable regular file.
5626 as_ls_L_option=L5676as_fn_executable_p ()
5627 else5677{
5628 as_ls_L_option=5678 test -f "$1" && test -x "$1"
5629 fi5679} # as_fn_executable_p
5630 as_test_x='5680as_test_x='test -x'
5631 eval sh -c '\''5681as_executable_p=as_fn_executable_p
5632 if test -d "$1"; then
5633 test -d "$1/.";
5634 else
5635 case $1 in #(
5636 -*)set "./$1";;
5637 esac;
5638 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5639 ???[sx]*):;;*)false;;esac;fi
5640 '\'' sh
5641 '
5642fi
5643as_executable_p=$as_test_x
56445682
5645# Sed expression to map a string onto a valid CPP name.5683# Sed expression to map a string onto a valid CPP name.
5646as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"5684as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
@@ -5662,7 +5700,7 @@
5662# values after options handling.5700# values after options handling.
5663ac_log="5701ac_log="
5664This file was extended by $as_me, which was5702This file was extended by $as_me, which was
5665generated by GNU Autoconf 2.67. Invocation command line was5703generated by GNU Autoconf 2.69. Invocation command line was
56665704
5667 CONFIG_FILES = $CONFIG_FILES5705 CONFIG_FILES = $CONFIG_FILES
5668 CONFIG_HEADERS = $CONFIG_HEADERS5706 CONFIG_HEADERS = $CONFIG_HEADERS
@@ -5724,10 +5762,10 @@
5724ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"5762ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5725ac_cs_version="\\5763ac_cs_version="\\
5726config.status5764config.status
5727configured by $0, generated by GNU Autoconf 2.67,5765configured by $0, generated by GNU Autoconf 2.69,
5728 with options \\"\$ac_cs_config\\"5766 with options \\"\$ac_cs_config\\"
57295767
5730Copyright (C) 2010 Free Software Foundation, Inc.5768Copyright (C) 2012 Free Software Foundation, Inc.
5731This config.status script is free software; the Free Software Foundation5769This config.status script is free software; the Free Software Foundation
5732gives unlimited permission to copy, distribute and modify it."5770gives unlimited permission to copy, distribute and modify it."
57335771
@@ -5816,7 +5854,7 @@
5816_ACEOF5854_ACEOF
5817cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=15855cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5818if \$ac_cs_recheck; then5856if \$ac_cs_recheck; then
5819 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion5857 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5820 shift5858 shift
5821 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&65859 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5822 CONFIG_SHELL='$SHELL'5860 CONFIG_SHELL='$SHELL'
@@ -5846,10 +5884,9 @@
5846do5884do
5847 case $ac_config_target in5885 case $ac_config_target in
5848 "autoconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS autoconfig.h" ;;5886 "autoconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS autoconfig.h" ;;
5849 "build_tools/menuselect-deps") CONFIG_FILES="$CONFIG_FILES build_tools/menuselect-deps" ;;
5850 "makeopts") CONFIG_FILES="$CONFIG_FILES makeopts" ;;5887 "makeopts") CONFIG_FILES="$CONFIG_FILES makeopts" ;;
58515888
5852 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;5889 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5853 esac5890 esac
5854done5891done
58555892
@@ -5871,9 +5908,10 @@
5871# after its creation but before its name has been assigned to `$tmp'.5908# after its creation but before its name has been assigned to `$tmp'.
5872$debug ||5909$debug ||
5873{5910{
5874 tmp=5911 tmp= ac_tmp=
5875 trap 'exit_status=$?5912 trap 'exit_status=$?
5876 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status5913 : "${ac_tmp:=$tmp}"
5914 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5877' 05915' 0
5878 trap 'as_fn_exit 1' 1 2 13 155916 trap 'as_fn_exit 1' 1 2 13 15
5879}5917}
@@ -5881,12 +5919,13 @@
58815919
5882{5920{
5883 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&5921 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5884 test -n "$tmp" && test -d "$tmp"5922 test -d "$tmp"
5885} ||5923} ||
5886{5924{
5887 tmp=./conf$$-$RANDOM5925 tmp=./conf$$-$RANDOM
5888 (umask 077 && mkdir "$tmp")5926 (umask 077 && mkdir "$tmp")
5889} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 55927} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5928ac_tmp=$tmp
58905929
5891# Set up the scripts for CONFIG_FILES section.5930# Set up the scripts for CONFIG_FILES section.
5892# No need to generate them if there are no CONFIG_FILES.5931# No need to generate them if there are no CONFIG_FILES.
@@ -5908,7 +5947,7 @@
5908 ac_cs_awk_cr=$ac_cr5947 ac_cs_awk_cr=$ac_cr
5909fi5948fi
59105949
5911echo 'BEGIN {' >"$tmp/subs1.awk" &&5950echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5912_ACEOF5951_ACEOF
59135952
59145953
@@ -5936,7 +5975,7 @@
5936rm -f conf$$subs.sh5975rm -f conf$$subs.sh
59375976
5938cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=15977cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5939cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&5978cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5940_ACEOF5979_ACEOF
5941sed -n '5980sed -n '
5942h5981h
@@ -5984,7 +6023,7 @@
5984rm -f conf$$subs.awk6023rm -f conf$$subs.awk
5985cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=16024cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5986_ACAWK6025_ACAWK
5987cat >>"\$tmp/subs1.awk" <<_ACAWK &&6026cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5988 for (key in S) S_is_set[key] = 16027 for (key in S) S_is_set[key] = 1
5989 FS = ""6028 FS = ""
59906029
@@ -6016,7 +6055,7 @@
6016 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"6055 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6017else6056else
6018 cat6057 cat
6019fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \6058fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6020 || as_fn_error $? "could not setup config files machinery" "$LINENO" 56059 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6021_ACEOF6060_ACEOF
60226061
@@ -6050,7 +6089,7 @@
6050# No need to generate them if there are no CONFIG_HEADERS.6089# No need to generate them if there are no CONFIG_HEADERS.
6051# This happens for instance with `./config.status Makefile'.6090# This happens for instance with `./config.status Makefile'.
6052if test -n "$CONFIG_HEADERS"; then6091if test -n "$CONFIG_HEADERS"; then
6053cat >"$tmp/defines.awk" <<\_ACAWK ||6092cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6054BEGIN {6093BEGIN {
6055_ACEOF6094_ACEOF
60566095
@@ -6062,8 +6101,8 @@
6062# handling of long lines.6101# handling of long lines.
6063ac_delim='%!_!# '6102ac_delim='%!_!# '
6064for ac_last_try in false false :; do6103for ac_last_try in false false :; do
6065 ac_t=`sed -n "/$ac_delim/p" confdefs.h`6104 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6066 if test -z "$ac_t"; then6105 if test -z "$ac_tt"; then
6067 break6106 break
6068 elif $ac_last_try; then6107 elif $ac_last_try; then
6069 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 56108 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
@@ -6164,7 +6203,7 @@
6164 esac6203 esac
6165 case $ac_mode$ac_tag in6204 case $ac_mode$ac_tag in
6166 :[FHL]*:*);;6205 :[FHL]*:*);;
6167 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;6206 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6168 :[FH]-) ac_tag=-:-;;6207 :[FH]-) ac_tag=-:-;;
6169 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;6208 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6170 esac6209 esac
@@ -6183,7 +6222,7 @@
6183 for ac_f6222 for ac_f
6184 do6223 do
6185 case $ac_f in6224 case $ac_f in
6186 -) ac_f="$tmp/stdin";;6225 -) ac_f="$ac_tmp/stdin";;
6187 *) # Look for the file first in the build tree, then in the source tree6226 *) # Look for the file first in the build tree, then in the source tree
6188 # (if the path is not absolute). The absolute path cannot be DOS-style,6227 # (if the path is not absolute). The absolute path cannot be DOS-style,
6189 # because $ac_f cannot contain `:'.6228 # because $ac_f cannot contain `:'.
@@ -6192,7 +6231,7 @@
6192 [\\/$]*) false;;6231 [\\/$]*) false;;
6193 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;6232 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6194 esac ||6233 esac ||
6195 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;6234 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6196 esac6235 esac
6197 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac6236 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6198 as_fn_append ac_file_inputs " '$ac_f'"6237 as_fn_append ac_file_inputs " '$ac_f'"
@@ -6218,8 +6257,8 @@
6218 esac6257 esac
62196258
6220 case $ac_tag in6259 case $ac_tag in
6221 *:-:* | *:-) cat >"$tmp/stdin" \6260 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6222 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;6261 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6223 esac6262 esac
6224 ;;6263 ;;
6225 esac6264 esac
@@ -6349,21 +6388,22 @@
6349s&@INSTALL@&$ac_INSTALL&;t t6388s&@INSTALL@&$ac_INSTALL&;t t
6350$ac_datarootdir_hack6389$ac_datarootdir_hack
6351"6390"
6352eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \6391eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6353 || as_fn_error $? "could not create $ac_file" "$LINENO" 56392 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
63546393
6355test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&6394test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6356 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&6395 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6357 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&6396 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6397 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'6398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6359which seems to be undefined. Please make sure it is defined" >&56399which seems to be undefined. Please make sure it is defined" >&5
6360$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'6400$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6361which seems to be undefined. Please make sure it is defined" >&2;}6401which seems to be undefined. Please make sure it is defined" >&2;}
63626402
6363 rm -f "$tmp/stdin"6403 rm -f "$ac_tmp/stdin"
6364 case $ac_file in6404 case $ac_file in
6365 -) cat "$tmp/out" && rm -f "$tmp/out";;6405 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6366 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;6406 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6367 esac \6407 esac \
6368 || as_fn_error $? "could not create $ac_file" "$LINENO" 56408 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6369 ;;6409 ;;
@@ -6374,20 +6414,20 @@
6374 if test x"$ac_file" != x-; then6414 if test x"$ac_file" != x-; then
6375 {6415 {
6376 $as_echo "/* $configure_input */" \6416 $as_echo "/* $configure_input */" \
6377 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"6417 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6378 } >"$tmp/config.h" \6418 } >"$ac_tmp/config.h" \
6379 || as_fn_error $? "could not create $ac_file" "$LINENO" 56419 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6380 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then6420 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&56421 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6382$as_echo "$as_me: $ac_file is unchanged" >&6;}6422$as_echo "$as_me: $ac_file is unchanged" >&6;}
6383 else6423 else
6384 rm -f "$ac_file"6424 rm -f "$ac_file"
6385 mv "$tmp/config.h" "$ac_file" \6425 mv "$ac_tmp/config.h" "$ac_file" \
6386 || as_fn_error $? "could not create $ac_file" "$LINENO" 56426 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6387 fi6427 fi
6388 else6428 else
6389 $as_echo "/* $configure_input */" \6429 $as_echo "/* $configure_input */" \
6390 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \6430 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6391 || as_fn_error $? "could not create -" "$LINENO" 56431 || as_fn_error $? "could not create -" "$LINENO" 5
6392 fi6432 fi
6393 ;;6433 ;;
63946434
=== modified file 'configure.ac'
--- configure.ac 2011-03-13 23:45:36 +0000
+++ configure.ac 2013-08-25 04:54:26 +0000
@@ -12,7 +12,7 @@
12AC_CONFIG_SRCDIR([dahdi_cfg.c])12AC_CONFIG_SRCDIR([dahdi_cfg.c])
1313
14AC_COPYRIGHT("dahdi-tools")14AC_COPYRIGHT("dahdi-tools")
15AC_REVISION($Revision: 9736 $)15AC_REVISION($Revision$)
1616
17ac_default_prefix=/usr17ac_default_prefix=/usr
18if test ${sysconfdir} = '${prefix}/etc'; then18if test ${sysconfdir} = '${prefix}/etc'; then
@@ -79,6 +79,15 @@
79 esac])79 esac])
80AC_SUBST(DAHDI_DEVMODE)80AC_SUBST(DAHDI_DEVMODE)
8181
82AC_ARG_ENABLE(pinned,
83 [ --enable-pinned Install pinned-spans support],
84 [case "${enableval}" in
85 y|ye|yes) DAHDI_PINNED=yes ;;
86 n|no) DAHDI_PINNED=no ;;
87 *) AC_MSG_ERROR(bad value ${enableval} for --enable-pinned) ;;
88 esac])
89AC_SUBST(DAHDI_PINNED)
90
82AC_MSG_CHECKING(for -Wdeclaration-after-statement support)91AC_MSG_CHECKING(for -Wdeclaration-after-statement support)
83if $(${CC} -Wdeclaration-after-statement -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then92if $(${CC} -Wdeclaration-after-statement -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
84 AC_MSG_RESULT(yes)93 AC_MSG_RESULT(yes)
@@ -211,7 +220,7 @@
211220
212AC_SUBST(PPPD_VERSION)221AC_SUBST(PPPD_VERSION)
213222
214AC_CONFIG_FILES([build_tools/menuselect-deps makeopts])223AC_CONFIG_FILES([makeopts])
215AC_OUTPUT224AC_OUTPUT
216225
217AC_MSG_NOTICE(*** dahdi-tools build successfully configured ***)226AC_MSG_NOTICE(*** dahdi-tools build successfully configured ***)
218227
=== removed file 'dahdi-tools-2.4.1-summary.html'
--- dahdi-tools-2.4.1-summary.html 2011-03-13 23:45:36 +0000
+++ dahdi-tools-2.4.1-summary.html 1970-01-01 00:00:00 +0000
@@ -1,82 +0,0 @@
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xmlns="http://www.w3.org/1999/xhtml">
3<head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>Release Summary - dahdi-tools-2.4.1</title></head>
4<body>
5<h1 align="center"><a name="top">Release Summary</a></h1>
6<h3 align="center">dahdi-tools-2.4.1</h3>
7<h3 align="center">Date: 2011-03-03</h3>
8<h3 align="center">&lt;asteriskteam@digium.com&gt;</h3>
9<hr/>
10<h2 align="center">Table of Contents</h2>
11<ol>
12 <li><a href="#summary">Summary</a></li>
13 <li><a href="#contributors">Contributors</a></li>
14 <li><a href="#issues">Closed Issues</a></li>
15 <li><a href="#commits">Other Changes</a></li>
16 <li><a href="#diffstat">Diffstat</a></li>
17</ol>
18<hr/>
19<a name="summary"><h2 align="center">Summary</h2></a>
20<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>
21<p>The data in this summary reflects changes that have been made since the previous release, dahdi-tools-2.4.0.</p>
22<hr/>
23<a name="contributors"><h2 align="center">Contributors</h2></a>
24<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>
25<table width="100%" border="0">
26<tr>
27<td width="33%"><h3>Coders</h3></td>
28<td width="33%"><h3>Testers</h3></td>
29<td width="33%"><h3>Reporters</h3></td>
30</tr>
31<tr valign="top">
32<td>
3311 tzafrir<br/>
341 alfredtang<br/>
35</td>
36<td>
37</td>
38<td>
391 abelbeck<br/>
401 alfredtang<br/>
41</td>
42</tr>
43</table>
44<hr/>
45<a name="issues"><h2 align="center">Closed Issues</h2></a>
46<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>
47<h3>Category: General</h3><br/>
48<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/>
49Revision: <a href="http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9736">9736</a><br/>
50Reporter: abelbeck<br/>
51Coders: tzafrir<br/>
52<br/>
53<h3>Category: NewFeature</h3><br/>
54<a href="https://issues.asterisk.org/view.php?id=17744">#17744</a>: [patch] add macao to tone zone data<br/>
55Revision: <a href="http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9735">9735</a><br/>
56Reporter: alfredtang<br/>
57Coders: alfredtang<br/>
58<br/>
59<hr/>
60<a name="commits"><h2 align="center">Commits Not Associated with an Issue</h2></a>
61<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>
62<table width="100%" border="1">
63<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>
64<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>
65<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>
66<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>
67<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>
68<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>
69<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>
70<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>
71<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>
72<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>
73<td></td></tr></table>
74<hr/>
75<a name="diffstat"><h2 align="center">Diffstat Results</h2></a>
76<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>
77<pre>
780 files changed
79</pre><br/>
80<hr/>
81</body>
82</html>
830
=== removed file 'dahdi-tools-2.4.1-summary.txt'
--- dahdi-tools-2.4.1-summary.txt 2011-03-13 23:45:36 +0000
+++ dahdi-tools-2.4.1-summary.txt 1970-01-01 00:00:00 +0000
@@ -1,162 +0,0 @@
1 Release Summary
2
3 dahdi-tools-2.4.1
4
5 Date: 2011-03-03
6
7 <asteriskteam@digium.com>
8
9 --------------------------------------------------------------------------
10
11 Table of Contents
12
13  1. [1]Summary
14  2. [2]Contributors
15  3. [3]Closed Issues
16  4. [4]Other Changes
17  5. [5]Diffstat
18
19 --------------------------------------------------------------------------
20
21 Summary
22
23 [6][Back to Top]
24
25 This release includes only bug fixes. The changes included were made only
26 to address problems that have been identified in this release series.
27 Users should be able to safely upgrade to this version if this release
28 series is already in use. Users considering upgrading from a previous
29 release series are strongly encouraged to review the UPGRADE.txt document
30 as well as the CHANGES document for information about upgrading to this
31 release series.
32
33 The data in this summary reflects changes that have been made since the
34 previous release, dahdi-tools-2.4.0.
35
36 --------------------------------------------------------------------------
37
38 Contributors
39
40 [7][Back to Top]
41
42 This table lists the people who have submitted code, those that have
43 tested patches, as well as those that reported issues on the issue tracker
44 that were resolved in this release. For coders, the number is how many of
45 their patches (of any size) were committed into this release. For testers,
46 the number is the number of times their name was listed as assisting with
47 testing a patch. Finally, for reporters, the number is the number of
48 issues that they reported that were closed by commits that went into this
49 release.
50
51 Coders Testers Reporters
52 11 tzafrir 1 abelbeck
53 1 alfredtang 1 alfredtang
54
55 --------------------------------------------------------------------------
56
57 Closed Issues
58
59 [8][Back to Top]
60
61 This is a list of all issues from the issue tracker that were closed by
62 changes that went into this release.
63
64 Category: General
65
66 [9]#16783: [patch] DAHDI 2.2.1, XPP and astribank_is_starting.c uses
67 semtimedop() which is not supported in our uClibc.
68 Revision: [10]9736
69 Reporter: abelbeck
70 Coders: tzafrir
71
72 Category: NewFeature
73
74 [11]#17744: [patch] add macao to tone zone data
75 Revision: [12]9735
76 Reporter: alfredtang
77 Coders: alfredtang
78
79 --------------------------------------------------------------------------
80
81 Commits Not Associated with an Issue
82
83 [13][Back to Top]
84
85 This is a list of all changes that went into this release that did not
86 directly close an issue from the issue tracker. The commits may have been
87 marked as being related to an issue. If that is the case, the issue
88 numbers are listed here, as well.
89
90 +------------------------------------------------------------------------+
91 | Revision | Author | Summary | Issues |
92 | | | | Referenced |
93 |----------+---------+--------------------------------------+------------|
94 | [14]9733 | tzafrir | Branch dahdi-tools 2.4 | |
95 |----------+---------+--------------------------------------+------------|
96 | [15]9734 | tzafrir | svnmerge stuff | |
97 |----------+---------+--------------------------------------+------------|
98 | [16]9737 | tzafrir | Dahdi::Hardware: Support beroNet | |
99 | | | BN4S0e PCI Express card | |
100 |----------+---------+--------------------------------------+------------|
101 | [17]9738 | tzafrir | Fixed up the loss of crc4-multiframe | |
102 | | | alignment logic | |
103 |----------+---------+--------------------------------------+------------|
104 | [18]9739 | tzafrir | dahdi_scan: Show CAS framing on the | |
105 | | | framing line. | |
106 |----------+---------+--------------------------------------+------------|
107 | [19]9740 | tzafrir | xpp_fxloader: Don't try to load FPGA | |
108 | | | firmware twice | |
109 |----------+---------+--------------------------------------+------------|
110 | | | dahdi_genconf: Don't generate | |
111 | [20]9741 | tzafrir | configurations that use channel 16 | |
112 | | | on E1 CAS | |
113 |----------+---------+--------------------------------------+------------|
114 | [21]9742 | tzafrir | dahdi-perl: left-over $span->xpd | |
115 |----------+---------+--------------------------------------+------------|
116 | [22]9743 | tzafrir | dahdi-perl: fix xpp driver in | |
117 | | | dahdi_hardware | |
118 |----------+---------+--------------------------------------+------------|
119 | [23]9744 | tzafrir | dahdi-perl: more left-over | |
120 | | | $span->xpd | |
121 +------------------------------------------------------------------------+
122
123 --------------------------------------------------------------------------
124
125 Diffstat Results
126
127 [24][Back to Top]
128
129 This is a summary of the changes to the source code that went into this
130 release that was generated using the diffstat utility.
131
132 0 files changed
133
134 --------------------------------------------------------------------------
135
136References
137
138 Visible links
139 1. file:///home/sruffell/repotools/dahdi-tools-2.4.1-summary.html#summary
140 2. file:///home/sruffell/repotools/dahdi-tools-2.4.1-summary.html#contributors
141 3. file:///home/sruffell/repotools/dahdi-tools-2.4.1-summary.html#issues
142 4. file:///home/sruffell/repotools/dahdi-tools-2.4.1-summary.html#commits
143 5. file:///home/sruffell/repotools/dahdi-tools-2.4.1-summary.html#diffstat
144 6. file:///home/sruffell/repotools/dahdi-tools-2.4.1-summary.html#top
145 7. file:///home/sruffell/repotools/dahdi-tools-2.4.1-summary.html#top
146 8. file:///home/sruffell/repotools/dahdi-tools-2.4.1-summary.html#top
147 9. https://issues.asterisk.org/view.php?id=16783
148 10. http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9736
149 11. https://issues.asterisk.org/view.php?id=17744
150 12. http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9735
151 13. file:///home/sruffell/repotools/dahdi-tools-2.4.1-summary.html#top
152 14. http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9733
153 15. http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9734
154 16. http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9737
155 17. http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9738
156 18. http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9739
157 19. http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9740
158 20. http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9741
159 21. http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9742
160 22. http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9743
161 23. http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9744
162 24. file:///home/sruffell/repotools/dahdi-tools-2.4.1-summary.html#top
1630
=== modified file 'dahdi.init'
--- dahdi.init 2011-03-13 23:45:36 +0000
+++ dahdi.init 2013-08-25 04:54:26 +0000
@@ -16,6 +16,7 @@
16# Should-Stop: $network $syslog16# Should-Stop: $network $syslog
17# Default-Start: 2 3 4 517# Default-Start: 2 3 4 5
18# Default-Stop: 0 1 618# Default-Stop: 0 1 6
19# Short-Description: DAHDI kernel modules
19# Description: dahdi - load and configure DAHDI modules20# Description: dahdi - load and configure DAHDI modules
20### END INIT INFO21### END INIT INFO
2122
@@ -39,7 +40,7 @@
3940
40# A list of modules to unload when stopping.41# A list of modules to unload when stopping.
41# All of their dependencies will be unloaded as well.42# All of their dependencies will be unloaded as well.
42DAHDI_UNLOAD_MODULES="dahdi echo"43DAHDI_UNLOAD_MODULES="dahdi"
4344
44#45#
45# Determine which kind of configuration we're using46# Determine which kind of configuration we're using
@@ -226,6 +227,11 @@
226 echo ""227 echo ""
227}228}
228229
230# Make sure that either dahdi is loaded or modprobe-able
231dahdi_modules_loadable() {
232 modinfo dahdi >/dev/null 2>&1 || lsmod | grep -q -w ^dahdi
233}
234
229if [ ! -x "$DAHDI_CFG" ]; then235if [ ! -x "$DAHDI_CFG" ]; then
230 echo "dahdi_cfg not executable"236 echo "dahdi_cfg not executable"
231 exit 0237 exit 0
@@ -241,6 +247,10 @@
241# See how we were called.247# See how we were called.
242case "$1" in248case "$1" in
243 start)249 start)
250 if ! dahdi_modules_loadable; then
251 echo "No DAHDI modules on the system. Not starting"
252 exit 0
253 fi
244 if hotplug_should_load_modules; then254 if hotplug_should_load_modules; then
245 load_modules255 load_modules
246 fi256 fi
@@ -258,11 +268,6 @@
258268
259 xpp_startup269 xpp_startup
260270
261 if [ ! -e /proc/dahdi/1 ]; then
262 echo "No hardware timing source found in /proc/dahdi, loading dahdi_dummy"
263 modprobe dahdi_dummy 2> /dev/null
264 fi
265
266 if [ $system = debian ]; then271 if [ $system = debian ]; then
267 echo -n "Running dahdi_cfg: "272 echo -n "Running dahdi_cfg: "
268 $DAHDI_CFG_CMD 2> /dev/null && echo -n "done"273 $DAHDI_CFG_CMD 2> /dev/null && echo -n "done"
269274
=== added file 'dahdi.rules'
--- dahdi.rules 1970-01-01 00:00:00 +0000
+++ dahdi.rules 2013-08-25 04:54:26 +0000
@@ -0,0 +1,3 @@
1# DAHDI devices with ownership/permissions for running as non-root
2SUBSYSTEM=="dahdi", OWNER="asterisk", GROUP="asterisk", MODE="0660"
3SUBSYSTEM=="dahdi_devices", RUN="/usr/share/dahdi/handle_device"
04
=== modified file 'dahdi_cfg.c'
--- dahdi_cfg.c 2011-03-13 23:45:36 +0000
+++ dahdi_cfg.c 2013-08-25 04:54:26 +0000
@@ -85,6 +85,13 @@
8585
86static struct dahdi_chanconfig cc[DAHDI_MAX_CHANNELS];86static struct dahdi_chanconfig cc[DAHDI_MAX_CHANNELS];
8787
88static int current_span = 0;
89static int only_span = 0;
90static int restrict_channels = 0;
91static int selected_channels[DAHDI_MAX_CHANNELS];
92static int chan2span[DAHDI_MAX_CHANNELS];
93static int declared_spans[DAHDI_MAX_SPANS];
94
88static struct dahdi_attach_echocan ae[DAHDI_MAX_CHANNELS];95static struct dahdi_attach_echocan ae[DAHDI_MAX_CHANNELS];
8996
90static struct dahdi_dynamic_span zds[NUM_DYNAMIC];97static struct dahdi_dynamic_span zds[NUM_DYNAMIC];
@@ -176,16 +183,6 @@
176 }183 }
177}184}
178185
179int ind_ioctl(int channo, int fd, int op, void *data)
180{
181 struct dahdi_indirect_data ind;
182
183 ind.chan = channo;
184 ind.op = op;
185 ind.data = data;
186 return ioctl(fd, DAHDI_INDIRECT, &ind);
187}
188
189static void clear_fields()186static void clear_fields()
190{187{
191188
@@ -238,6 +235,35 @@
238 return buf;235 return buf;
239}236}
240237
238static int skip_channel(int x)
239{
240 int spanno = chan2span[x];
241
242 if (restrict_channels) {
243 if (!selected_channels[x])
244 return 1;
245 /* sanity check */
246 if (only_span) {
247 if (spanno != 0 && only_span != spanno) {
248 fprintf(stderr,
249 "Only span %d. Skip selected channel %d from span %d\n",
250 only_span, x, spanno);
251 return 1;
252 }
253 }
254 } else {
255 if (only_span && !declared_spans[only_span]) {
256 fprintf(stderr,
257 "Error: analog span %d given to '-S', without '-C' restriction.\n",
258 only_span);
259 exit(1);
260 }
261 if (only_span && only_span != spanno)
262 return 1;
263 }
264 return 0;
265}
266
241static int parseargs(char *input, char *output[], int maxargs, char sep)267static int parseargs(char *input, char *output[], int maxargs, char sep)
242{268{
243 char *c;269 char *c;
@@ -268,11 +294,10 @@
268int dspanconfig(char *keyword, char *args)294int dspanconfig(char *keyword, char *args)
269{295{
270 static char *realargs[10];296 static char *realargs[10];
271 int argc;
272 int res;297 int res;
273 int chans;298 int chans;
274 int timing;299 int timing;
275 argc = res = parseargs(args, realargs, 4, ',');300 res = parseargs(args, realargs, 4, ',');
276 if (res != 4) {301 if (res != 4) {
277 error("Incorrect number of arguments to 'dynamic' (should be <driver>,<address>,<num channels>, <timing>)\n");302 error("Incorrect number of arguments to 'dynamic' (should be <driver>,<address>,<num channels>, <timing>)\n");
278 return -1;303 return -1;
@@ -321,6 +346,8 @@
321 error("Span number should be a valid span number, not '%s'\n", realargs[0]);346 error("Span number should be a valid span number, not '%s'\n", realargs[0]);
322 return -1;347 return -1;
323 }348 }
349 current_span = span;
350 declared_spans[span] = 1;
324 res = sscanf(realargs[1], "%d", &timing);351 res = sscanf(realargs[1], "%d", &timing);
325 if ((res != 1) || (timing < 0) || (timing > MAX_TIMING)) {352 if ((res != 1) || (timing < 0) || (timing > MAX_TIMING)) {
326 error("Timing should be a number from 0 to %d, not '%s'\n", 353 error("Timing should be a number from 0 to %d, not '%s'\n",
@@ -492,6 +519,7 @@
492 int master=0;519 int master=0;
493 int dacschan = 0;520 int dacschan = 0;
494 char *idle;521 char *idle;
522 int is_digital;
495 bzero(chans, sizeof(chans));523 bzero(chans, sizeof(chans));
496 strtok(args, ":");524 strtok(args, ":");
497 idle = strtok(NULL, ":");525 idle = strtok(NULL, ":");
@@ -503,6 +531,7 @@
503 if (res <= 0)531 if (res <= 0)
504 return -1;532 return -1;
505 for (x=1;x<DAHDI_MAX_CHANNELS;x++) {533 for (x=1;x<DAHDI_MAX_CHANNELS;x++) {
534 is_digital = 0;
506 if (chans[x]) {535 if (chans[x]) {
507 if (slineno[x]) {536 if (slineno[x]) {
508 error("Channel %d already configured as '%s' at line %d\n", x, sig[x], slineno[x]);537 error("Channel %d already configured as '%s' at line %d\n", x, sig[x], slineno[x]);
@@ -548,6 +577,7 @@
548 return -1;577 return -1;
549 cc[x].sigtype = DAHDI_SIG_CAS;578 cc[x].sigtype = DAHDI_SIG_CAS;
550 sig[x] = sigtype_to_str(cc[x].sigtype);579 sig[x] = sigtype_to_str(cc[x].sigtype);
580 is_digital = 1;
551 } else if (!strcasecmp(keyword, "dacs")) {581 } else if (!strcasecmp(keyword, "dacs")) {
552 /* Setup channel for monitor */582 /* Setup channel for monitor */
553 cc[x].idlebits = dacschan;583 cc[x].idlebits = dacschan;
@@ -558,6 +588,7 @@
558 cc[dacschan].sigtype = DAHDI_SIG_DACS;588 cc[dacschan].sigtype = DAHDI_SIG_DACS;
559 sig[x] = sigtype_to_str(cc[dacschan].sigtype);589 sig[x] = sigtype_to_str(cc[dacschan].sigtype);
560 dacschan++;590 dacschan++;
591 is_digital = 1;
561 } else if (!strcasecmp(keyword, "dacsrbs")) {592 } else if (!strcasecmp(keyword, "dacsrbs")) {
562 /* Setup channel for monitor */593 /* Setup channel for monitor */
563 cc[x].idlebits = dacschan;594 cc[x].idlebits = dacschan;
@@ -567,6 +598,7 @@
567 cc[dacschan].idlebits = x;598 cc[dacschan].idlebits = x;
568 cc[dacschan].sigtype = DAHDI_SIG_DACS_RBS;599 cc[dacschan].sigtype = DAHDI_SIG_DACS_RBS;
569 sig[x] = sigtype_to_str(cc[dacschan].sigtype);600 sig[x] = sigtype_to_str(cc[dacschan].sigtype);
601 is_digital = 1;
570 dacschan++;602 dacschan++;
571 } else if (!strcasecmp(keyword, "unused")) {603 } else if (!strcasecmp(keyword, "unused")) {
572 cc[x].sigtype = 0;604 cc[x].sigtype = 0;
@@ -574,6 +606,7 @@
574 } else if (!strcasecmp(keyword, "indclear") || !strcasecmp(keyword, "bchan")) {606 } else if (!strcasecmp(keyword, "indclear") || !strcasecmp(keyword, "bchan")) {
575 cc[x].sigtype = DAHDI_SIG_CLEAR;607 cc[x].sigtype = DAHDI_SIG_CLEAR;
576 sig[x] = sigtype_to_str(cc[x].sigtype);608 sig[x] = sigtype_to_str(cc[x].sigtype);
609 is_digital = 1;
577 } else if (!strcasecmp(keyword, "clear")) {610 } else if (!strcasecmp(keyword, "clear")) {
578 sig[x] = sigtype_to_str(DAHDI_SIG_CLEAR);611 sig[x] = sigtype_to_str(DAHDI_SIG_CLEAR);
579 if (master) {612 if (master) {
@@ -583,6 +616,7 @@
583 cc[x].sigtype = DAHDI_SIG_CLEAR;616 cc[x].sigtype = DAHDI_SIG_CLEAR;
584 master = x;617 master = x;
585 }618 }
619 is_digital = 1;
586 } else if (!strcasecmp(keyword, "rawhdlc")) {620 } else if (!strcasecmp(keyword, "rawhdlc")) {
587 sig[x] = sigtype_to_str(DAHDI_SIG_HDLCRAW);621 sig[x] = sigtype_to_str(DAHDI_SIG_HDLCRAW);
588 if (master) {622 if (master) {
@@ -592,6 +626,7 @@
592 cc[x].sigtype = DAHDI_SIG_HDLCRAW;626 cc[x].sigtype = DAHDI_SIG_HDLCRAW;
593 master = x;627 master = x;
594 }628 }
629 is_digital = 1;
595 } else if (!strcasecmp(keyword, "nethdlc")) {630 } else if (!strcasecmp(keyword, "nethdlc")) {
596 sig[x] = sigtype_to_str(DAHDI_SIG_HDLCNET);631 sig[x] = sigtype_to_str(DAHDI_SIG_HDLCNET);
597 memset(cc[x].netdev_name, 0, sizeof(cc[x].netdev_name));632 memset(cc[x].netdev_name, 0, sizeof(cc[x].netdev_name));
@@ -605,6 +640,7 @@
605 }640 }
606 master = x;641 master = x;
607 }642 }
643 is_digital = 1;
608 } else if (!strcasecmp(keyword, "fcshdlc")) {644 } else if (!strcasecmp(keyword, "fcshdlc")) {
609 sig[x] = sigtype_to_str(DAHDI_SIG_HDLCFCS);645 sig[x] = sigtype_to_str(DAHDI_SIG_HDLCFCS);
610 if (master) {646 if (master) {
@@ -614,18 +650,26 @@
614 cc[x].sigtype = DAHDI_SIG_HDLCFCS;650 cc[x].sigtype = DAHDI_SIG_HDLCFCS;
615 master = x;651 master = x;
616 }652 }
653 is_digital = 1;
617 } else if (!strcasecmp(keyword, "dchan")) {654 } else if (!strcasecmp(keyword, "dchan")) {
618 sig[x] = "D-channel";655 sig[x] = "D-channel";
619 cc[x].sigtype = DAHDI_SIG_HDLCFCS;656 cc[x].sigtype = DAHDI_SIG_HDLCFCS;
657 is_digital = 1;
620 } else if (!strcasecmp(keyword, "hardhdlc")) {658 } else if (!strcasecmp(keyword, "hardhdlc")) {
621 sig[x] = "Hardware assisted D-channel";659 sig[x] = "Hardware assisted D-channel";
622 cc[x].sigtype = DAHDI_SIG_HARDHDLC;660 cc[x].sigtype = DAHDI_SIG_HARDHDLC;
661 is_digital = 1;
623 } else if (!strcasecmp(keyword, "mtp2")) {662 } else if (!strcasecmp(keyword, "mtp2")) {
624 sig[x] = "MTP2";663 sig[x] = "MTP2";
625 cc[x].sigtype = DAHDI_SIG_MTP2;664 cc[x].sigtype = DAHDI_SIG_MTP2;
665 is_digital = 1;
626 } else {666 } else {
627 fprintf(stderr, "Huh? (%s)\n", keyword);667 fprintf(stderr, "Huh? (%s)\n", keyword);
628 }668 }
669 if (is_digital)
670 chan2span[x] = current_span;
671 else
672 current_span = 0;
629 }673 }
630 }674 }
631 return 0;675 return 0;
@@ -677,6 +721,8 @@
677 int chanfd;721 int chanfd;
678722
679 for (x = 1; x < DAHDI_MAX_CHANNELS; x++) {723 for (x = 1; x < DAHDI_MAX_CHANNELS; x++) {
724 if (skip_channel(x))
725 continue;
680 chanfd = open("/dev/dahdi/channel", O_RDWR);726 chanfd = open("/dev/dahdi/channel", O_RDWR);
681 if (chanfd == -1) {727 if (chanfd == -1) {
682 fprintf(stderr, 728 fprintf(stderr,
@@ -765,13 +811,12 @@
765int ctcss(char *keyword, char *args)811int ctcss(char *keyword, char *args)
766{812{
767 static char *realargs[10];813 static char *realargs[10];
768 int argc;
769 int res;814 int res;
770 int rxtone;815 int rxtone;
771 int rxtag;816 int rxtag;
772 int txtone;817 int txtone;
773 int isdcs = 0;818 int isdcs = 0;
774 argc = res = parseargs(args, realargs, 3, ',');819 res = parseargs(args, realargs, 3, ',');
775 if (res != 3) {820 if (res != 3) {
776 error("Incorrect number of arguments to 'ctcss' (should be <rxtone>,<rxtag>,<txtone>)\n");821 error("Incorrect number of arguments to 'ctcss' (should be <rxtone>,<rxtag>,<txtone>)\n");
777 return -1;822 return -1;
@@ -818,10 +863,9 @@
818int dcsrx(char *keyword, char *args)863int dcsrx(char *keyword, char *args)
819{864{
820 static char *realargs[10];865 static char *realargs[10];
821 int argc;
822 int res;866 int res;
823 int rxtone;867 int rxtone;
824 argc = res = parseargs(args, realargs, 1, ',');868 res = parseargs(args, realargs, 1, ',');
825 if (res != 1) {869 if (res != 1) {
826 error("Incorrect number of arguments to 'dcsrx' (should be <rxtone>)\n");870 error("Incorrect number of arguments to 'dcsrx' (should be <rxtone>)\n");
827 return -1;871 return -1;
@@ -841,11 +885,10 @@
841int tx(char *keyword, char *args)885int tx(char *keyword, char *args)
842{886{
843 static char *realargs[10];887 static char *realargs[10];
844 int argc;
845 int res;888 int res;
846 int txtone;889 int txtone;
847 int isdcs = 0;890 int isdcs = 0;
848 argc = res = parseargs(args, realargs, 1, ',');891 res = parseargs(args, realargs, 1, ',');
849 if (res != 1) {892 if (res != 1) {
850 error("Incorrect number of arguments to 'tx' (should be <txtone>)\n");893 error("Incorrect number of arguments to 'tx' (should be <txtone>)\n");
851 return -1;894 return -1;
@@ -870,10 +913,9 @@
870int debounce_time(char *keyword, char *args)913int debounce_time(char *keyword, char *args)
871{914{
872 static char *realargs[10];915 static char *realargs[10];
873 int argc;
874 int res;916 int res;
875 int val;917 int val;
876 argc = res = parseargs(args, realargs, 1, ',');918 res = parseargs(args, realargs, 1, ',');
877 if (res != 1) {919 if (res != 1) {
878 error("Incorrect number of arguments to 'debouncetime' (should be <value>)\n");920 error("Incorrect number of arguments to 'debouncetime' (should be <value>)\n");
879 return -1;921 return -1;
@@ -893,10 +935,9 @@
893int burst_time(char *keyword, char *args)935int burst_time(char *keyword, char *args)
894{936{
895 static char *realargs[10];937 static char *realargs[10];
896 int argc;
897 int res;938 int res;
898 int val;939 int val;
899 argc = res = parseargs(args, realargs, 1, ',');940 res = parseargs(args, realargs, 1, ',');
900 if (res != 1) {941 if (res != 1) {
901 error("Incorrect number of arguments to 'bursttime' (should be <value>)\n");942 error("Incorrect number of arguments to 'bursttime' (should be <value>)\n");
902 return -1;943 return -1;
@@ -916,10 +957,9 @@
916int tx_gain(char *keyword, char *args)957int tx_gain(char *keyword, char *args)
917{958{
918 static char *realargs[10];959 static char *realargs[10];
919 int argc;
920 int res;960 int res;
921 int val;961 int val;
922 argc = res = parseargs(args, realargs, 1, ',');962 res = parseargs(args, realargs, 1, ',');
923 if (res != 1) {963 if (res != 1) {
924 error("Incorrect number of arguments to 'txgain' (should be <value>)\n");964 error("Incorrect number of arguments to 'txgain' (should be <value>)\n");
925 return -1;965 return -1;
@@ -937,10 +977,9 @@
937int rx_gain(char *keyword, char *args)977int rx_gain(char *keyword, char *args)
938{978{
939 static char *realargs[10];979 static char *realargs[10];
940 int argc;
941 int res;980 int res;
942 int val;981 int val;
943 argc = res = parseargs(args, realargs, 1, ',');982 res = parseargs(args, realargs, 1, ',');
944 if (res != 1) {983 if (res != 1) {
945 error("Incorrect number of arguments to 'rxgain' (should be <value>)\n");984 error("Incorrect number of arguments to 'rxgain' (should be <value>)\n");
946 return -1;985 return -1;
@@ -958,10 +997,9 @@
958int de_emp(char *keyword, char *args)997int de_emp(char *keyword, char *args)
959{998{
960 static char *realargs[10];999 static char *realargs[10];
961 int argc;
962 int res;1000 int res;
963 int val;1001 int val;
964 argc = res = parseargs(args, realargs, 1, ',');1002 res = parseargs(args, realargs, 1, ',');
965 if (res != 1) {1003 if (res != 1) {
966 error("Incorrect number of arguments to 'de-emp' (should be <value>)\n");1004 error("Incorrect number of arguments to 'de-emp' (should be <value>)\n");
967 return -1;1005 return -1;
@@ -981,10 +1019,9 @@
981int pre_emp(char *keyword, char *args)1019int pre_emp(char *keyword, char *args)
982{1020{
983 static char *realargs[10];1021 static char *realargs[10];
984 int argc;
985 int res;1022 int res;
986 int val;1023 int val;
987 argc = res = parseargs(args, realargs, 1, ',');1024 res = parseargs(args, realargs, 1, ',');
988 if (res != 1) {1025 if (res != 1) {
989 error("Incorrect number of arguments to 'pre_emp' (should be <value>)\n");1026 error("Incorrect number of arguments to 'pre_emp' (should be <value>)\n");
990 return -1;1027 return -1;
@@ -1004,10 +1041,9 @@
1004int invert_cor(char *keyword, char *args)1041int invert_cor(char *keyword, char *args)
1005{1042{
1006 static char *realargs[10];1043 static char *realargs[10];
1007 int argc;
1008 int res;1044 int res;
1009 int val;1045 int val;
1010 argc = res = parseargs(args, realargs, 1, ',');1046 res = parseargs(args, realargs, 1, ',');
1011 if (res != 1) {1047 if (res != 1) {
1012 error("Incorrect number of arguments to 'invertcor' (should be <value>)\n");1048 error("Incorrect number of arguments to 'invertcor' (should be <value>)\n");
1013 return -1;1049 return -1;
@@ -1031,10 +1067,9 @@
1031int ext_tone(char *keyword, char *args)1067int ext_tone(char *keyword, char *args)
1032{1068{
1033 static char *realargs[10];1069 static char *realargs[10];
1034 int argc;
1035 int res;1070 int res;
1036 int val;1071 int val;
1037 argc = res = parseargs(args, realargs, 1, ',');1072 res = parseargs(args, realargs, 1, ',');
1038 if (res != 1) {1073 if (res != 1) {
1039 error("Incorrect number of arguments to 'exttone' (should be <value>)\n");1074 error("Incorrect number of arguments to 'exttone' (should be <value>)\n");
1040 return -1;1075 return -1;
@@ -1060,11 +1095,10 @@
1060int cor_thresh(char *keyword, char *args)1095int cor_thresh(char *keyword, char *args)
1061{1096{
1062 static char *realargs[10];1097 static char *realargs[10];
1063 int argc;
1064 int res;1098 int res;
1065 int val;1099 int val;
1066 int x = 0;1100 int x = 0;
1067 argc = res = parseargs(args, realargs, 1, ',');1101 res = parseargs(args, realargs, 1, ',');
1068 if (res != 1) {1102 if (res != 1) {
1069 error("Incorrect number of arguments to 'corthresh' (should be <value>)\n");1103 error("Incorrect number of arguments to 'corthresh' (should be <value>)\n");
1070 return -1;1104 return -1;
@@ -1091,6 +1125,7 @@
1091 int res = 0;1125 int res = 0;
1092 int x,i,n;1126 int x,i,n;
1093 struct dahdi_radio_param p;1127 struct dahdi_radio_param p;
1128 int chanfd;
10941129
1095 toneindex = 1;1130 toneindex = 1;
1096 bzero(chans, sizeof(chans));1131 bzero(chans, sizeof(chans));
@@ -1099,8 +1134,21 @@
1099 return -1;1134 return -1;
1100 for (x=1;x<DAHDI_MAX_CHANNELS;x++) {1135 for (x=1;x<DAHDI_MAX_CHANNELS;x++) {
1101 if (chans[x]) {1136 if (chans[x]) {
1137 const char *CHANNEL_FILENAME = "/dev/dahdi/channel";
1138 chanfd = open(CHANNEL_FILENAME, O_RDWR);
1139 if (-1 == chanfd) {
1140 error("Failed to open '%s'.\n", CHANNEL_FILENAME);
1141 exit(-1);
1142 }
1143
1144 res = ioctl(chanfd, DAHDI_SPECIFY, &x);
1145 if (res) {
1146 error("Failed to open channel %d.\n", x);
1147 close(chanfd);
1148 continue;
1149 }
1102 p.radpar = DAHDI_RADPAR_NUMTONES;1150 p.radpar = DAHDI_RADPAR_NUMTONES;
1103 if (ind_ioctl(x,fd,DAHDI_RADIO_GETPARAM,&p) == -1)1151 if (ioctl(chanfd,DAHDI_RADIO_GETPARAM,&p) == -1)
1104 n = 0;1152 n = 0;
The diff has been truncated for viewing.

Subscribers

People subscribed via source and target branches

to all changes: