Package list bluez-firmware / upstream/latest
Import Upstream version 1.2 Nobuhiro Iwamatsu 3 years ago
20 changed file(s) with 2233 addition(s) and 1141 deletion(s). Raw diff Collapse all Expand all
0 Maxim Krasnyansky <maxk@qualcomm.com>
01 Marcel Holtmann <marcel@holtmann.org>
1 Original author.
2 Primary maintainer.
11 Version 2, June 1991
22
33 Copyright (C) 1989, 1991 Free Software Foundation, Inc.
4 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
4 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
55 Everyone is permitted to copy and distribute verbatim copies
66 of this license document, but changing it is not allowed.
77
304304
305305 You should have received a copy of the GNU General Public License
306306 along with this program; if not, write to the Free Software
307 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
307 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
308308
309309
310310 Also add information on how to contact you by electronic and paper mail.
312312 If the program is interactive, make it output a short notice like this
313313 when it starts in an interactive mode:
314314
315 Gnomovision version 69, Copyright (C) year name of author
315 Gnomovision version 69, Copyright (C) year name of author
316316 Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
317317 This is free software, and you are welcome to redistribute it
318318 under certain conditions; type `show c' for details.
0 ver 1.2:
1 Add ST Microelectronics firmware files.
2
3 ver 1.1:
4 Add old Broadcom firmware files.
5
06 ver 1.0:
17 Initial public release.
0 Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002 Free Software
1 Foundation, Inc.
2
3 This file is free documentation; the Free Software Foundation gives
0 Installation Instructions
1 *************************
2
3 Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005 Free
4 Software Foundation, Inc.
5
6 This file is free documentation; the Free Software Foundation gives
47 unlimited permission to copy, distribute and modify it.
58
69 Basic Installation
710 ==================
811
9 These are generic installation instructions.
12 These are generic installation instructions.
1013
1114 The `configure' shell script attempts to guess correct values for
1215 various system-dependent variables used during compilation. It uses
6669 Compilers and Options
6770 =====================
6871
69 Some systems require unusual options for compilation or linking that
70 the `configure' script does not know about. Run `./configure --help'
71 for details on some of the pertinent environment variables.
72 Some systems require unusual options for compilation or linking that the
73 `configure' script does not know about. Run `./configure --help' for
74 details on some of the pertinent environment variables.
7275
7376 You can give `configure' initial values for configuration parameters
7477 by setting variables in the command line or in the environment. Here
8184 Compiling For Multiple Architectures
8285 ====================================
8386
84 You can compile the package for more than one kind of computer at the
87 You can compile the package for more than one kind of computer at the
8588 same time, by placing the object files for each architecture in their
8689 own directory. To do this, you must use a version of `make' that
8790 supports the `VPATH' variable, such as GNU `make'. `cd' to the
98101 Installation Names
99102 ==================
100103
101 By default, `make install' will install the package's files in
104 By default, `make install' will install the package's files in
102105 `/usr/local/bin', `/usr/local/man', etc. You can specify an
103106 installation prefix other than `/usr/local' by giving `configure' the
104 option `--prefix=PATH'.
107 option `--prefix=PREFIX'.
105108
106109 You can specify separate installation prefixes for
107110 architecture-specific files and architecture-independent files. If you
108 give `configure' the option `--exec-prefix=PATH', the package will use
109 PATH as the prefix for installing programs and libraries.
111 give `configure' the option `--exec-prefix=PREFIX', the package will
112 use PREFIX as the prefix for installing programs and libraries.
110113 Documentation and other data files will still use the regular prefix.
111114
112115 In addition, if you use an unusual directory layout you can give
113 options like `--bindir=PATH' to specify different values for particular
116 options like `--bindir=DIR' to specify different values for particular
114117 kinds of files. Run `configure --help' for a list of the directories
115118 you can set and what kinds of files go in them.
116119
121124 Optional Features
122125 =================
123126
124 Some packages pay attention to `--enable-FEATURE' options to
127 Some packages pay attention to `--enable-FEATURE' options to
125128 `configure', where FEATURE indicates an optional part of the package.
126129 They may also pay attention to `--with-PACKAGE' options, where PACKAGE
127130 is something like `gnu-as' or `x' (for the X Window System). The
136139 Specifying the System Type
137140 ==========================
138141
139 There may be some features `configure' cannot figure out
140 automatically, but needs to determine by the type of machine the package
141 will run on. Usually, assuming the package is built to be run on the
142 _same_ architectures, `configure' can figure that out, but if it prints
143 a message saying it cannot guess the machine type, give it the
142 There may be some features `configure' cannot figure out automatically,
143 but needs to determine by the type of machine the package will run on.
144 Usually, assuming the package is built to be run on the _same_
145 architectures, `configure' can figure that out, but if it prints a
146 message saying it cannot guess the machine type, give it the
144147 `--build=TYPE' option. TYPE can either be a short name for the system
145148 type, such as `sun4', or a canonical name which has the form:
146149
166169 Sharing Defaults
167170 ================
168171
169 If you want to set default values for `configure' scripts to share,
170 you can create a site shell script called `config.site' that gives
171 default values for variables like `CC', `cache_file', and `prefix'.
172 If you want to set default values for `configure' scripts to share, you
173 can create a site shell script called `config.site' that gives default
174 values for variables like `CC', `cache_file', and `prefix'.
172175 `configure' looks for `PREFIX/share/config.site' if it exists, then
173176 `PREFIX/etc/config.site' if it exists. Or, you can set the
174177 `CONFIG_SITE' environment variable to the location of the site script.
177180 Defining Variables
178181 ==================
179182
180 Variables not defined in a site shell script can be set in the
183 Variables not defined in a site shell script can be set in the
181184 environment passed to `configure'. However, some packages may run
182185 configure again during the build, and the customized values of these
183186 variables may be lost. In order to avoid this problem, you should set
185188
186189 ./configure CC=/usr/local2/bin/gcc
187190
188 will cause the specified gcc to be used as the C compiler (unless it is
189 overridden in the site shell script).
191 causes the specified `gcc' to be used as the C compiler (unless it is
192 overridden in the site shell script). Here is a another example:
193
194 /bin/bash ./configure CONFIG_SHELL=/bin/bash
195
196 Here the `CONFIG_SHELL=/bin/bash' operand causes subsequent
197 configuration-related scripts to be executed by `/bin/bash'.
190198
191199 `configure' Invocation
192200 ======================
193201
194 `configure' recognizes the following options to control how it
195 operates.
202 `configure' recognizes the following options to control how it operates.
196203
197204 `--help'
198205 `-h'
0 #
1 # $Id: Makefile.am,v 1.2 2004/07/26 22:17:36 holtmann Exp $
2 #
30
4 firmwaredir = /lib/firmware
1 firmwaredir = $(libdir)/firmware
52
6 firmware = \
3 firmware_DATA = \
4 broadcom/BCM2033-MD.hex \
5 broadcom/BCM2033-FW.bin \
76 broadcom/BCM-LEGAL.txt \
8 broadcom/BCM2033-MD.hex \
9 broadcom/BCM2033-FW.bin
7 st/STLC2500_R4_00_03.ptc \
8 st/STLC2500_R4_00_06.ssf \
9 st/STLC2500_R4_02_02_WLAN.ssf \
10 st/STLC2500_R4_02_04.ptc
1011
11 EXTRA_DIST = $(firmware)
12 EXTRA_DIST = $(firmware_DATA) \
13 broadcom/BCM2033-2.13-FW.bin \
14 broadcom/BCM2033-2.14-FW.bin \
15 broadcom/BCM2033-2.15-FW.bin \
16 broadcom/BCM2033-2.16-FW.bin \
17 broadcom/bcm_changeba \
18 broadcom/bcm_changeid \
19 broadcom/bcm_hex2bin
1220
1321 MAINTAINERCLEANFILES = Makefile.in \
1422 aclocal.m4 configure config.h.in \
15 missing install-sh mkinstalldirs
16
17 install-data-local: $(firmware)
18 $(mkinstalldirs) $(DESTDIR)$(firmwaredir)
19 list='$?'; \
20 for i in $$list; do \
21 $(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(firmwaredir); \
22 done
23
24 uninstall-local: $(firmware)
25 list='$(notdir $?)'; \
26 for i in $$list; do \
27 rm -f $(DESTDIR)$(firmwaredir)/$$i; \
28 done
23 depcomp missing install-sh mkinstalldirs
1212 # PARTICULAR PURPOSE.
1313
1414 @SET_MAKE@
15
16 #
17 # $Id: Makefile.am,v 1.2 2004/07/26 22:17:36 holtmann Exp $
18 #
1915
2016 srcdir = @srcdir@
2117 top_srcdir = @top_srcdir@
7167 SHELL = @SHELL@
7268 STRIP = @STRIP@
7369 VERSION = @VERSION@
74 ac_ct_STRIP = @ac_ct_STRIP@
7570 am__leading_dot = @am__leading_dot@
7671 bindir = @bindir@
7772 build_alias = @build_alias@
7873 datadir = @datadir@
74 datarootdir = @datarootdir@
75 docdir = @docdir@
76 dvidir = @dvidir@
7977 exec_prefix = @exec_prefix@
8078 host_alias = @host_alias@
79 htmldir = @htmldir@
8180 includedir = @includedir@
8281 infodir = @infodir@
8382 install_sh = @install_sh@
8483 libdir = @libdir@
8584 libexecdir = @libexecdir@
85 localedir = @localedir@
8686 localstatedir = @localstatedir@
8787 mandir = @mandir@
8888 oldincludedir = @oldincludedir@
89 pdfdir = @pdfdir@
8990 prefix = @prefix@
9091 program_transform_name = @program_transform_name@
92 psdir = @psdir@
9193 sbindir = @sbindir@
9294 sharedstatedir = @sharedstatedir@
9395 sysconfdir = @sysconfdir@
9496 target_alias = @target_alias@
9597
96 firmwaredir = /lib/firmware
97
98 firmware = \
98 firmwaredir = $(libdir)/firmware
99
100 firmware_DATA = \
101 broadcom/BCM2033-MD.hex \
102 broadcom/BCM2033-FW.bin \
99103 broadcom/BCM-LEGAL.txt \
100 broadcom/BCM2033-MD.hex \
101 broadcom/BCM2033-FW.bin
102
103
104 EXTRA_DIST = $(firmware)
104 st/STLC2500_R4_00_03.ptc \
105 st/STLC2500_R4_00_06.ssf \
106 st/STLC2500_R4_02_02_WLAN.ssf \
107 st/STLC2500_R4_02_04.ptc
108
109
110 EXTRA_DIST = $(firmware_DATA) \
111 broadcom/BCM2033-2.13-FW.bin \
112 broadcom/BCM2033-2.14-FW.bin \
113 broadcom/BCM2033-2.15-FW.bin \
114 broadcom/BCM2033-2.16-FW.bin \
115 broadcom/bcm_changeba \
116 broadcom/bcm_changeid \
117 broadcom/bcm_hex2bin
118
105119
106120 MAINTAINERCLEANFILES = Makefile.in \
107121 aclocal.m4 configure config.h.in \
108 missing install-sh mkinstalldirs
122 depcomp missing install-sh mkinstalldirs
109123
110124 subdir = .
111125 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
112126 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
113127 CONFIG_CLEAN_FILES =
114 depcomp =
115 am__depfiles_maybe =
116128 DIST_SOURCES =
129 DATA = $(firmware_DATA)
130
117131 DIST_COMMON = README $(srcdir)/Makefile.in $(srcdir)/configure AUTHORS \
118132 COPYING ChangeLog INSTALL Makefile.am NEWS aclocal.m4 \
119133 configure.in install-sh missing mkinstalldirs
125139 configure.lineno
126140 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
127141 cd $(top_srcdir) && \
128 $(AUTOMAKE) --gnu --ignore-deps Makefile
142 $(AUTOMAKE) --gnu Makefile
129143 Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status
130144 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)
131145
137151 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ configure.in
138152 cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
139153 uninstall-info-am:
154 firmwareDATA_INSTALL = $(INSTALL_DATA)
155 install-firmwareDATA: $(firmware_DATA)
156 @$(NORMAL_INSTALL)
157 $(mkinstalldirs) $(DESTDIR)$(firmwaredir)
158 @list='$(firmware_DATA)'; for p in $$list; do \
159 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
160 f="`echo $$p | sed -e 's|^.*/||'`"; \
161 echo " $(firmwareDATA_INSTALL) $$d$$p $(DESTDIR)$(firmwaredir)/$$f"; \
162 $(firmwareDATA_INSTALL) $$d$$p $(DESTDIR)$(firmwaredir)/$$f; \
163 done
164
165 uninstall-firmwareDATA:
166 @$(NORMAL_UNINSTALL)
167 @list='$(firmware_DATA)'; for p in $$list; do \
168 f="`echo $$p | sed -e 's|^.*/||'`"; \
169 echo " rm -f $(DESTDIR)$(firmwaredir)/$$f"; \
170 rm -f $(DESTDIR)$(firmwaredir)/$$f; \
171 done
140172 tags: TAGS
141173 TAGS:
142174
160192 distdir: $(DISTFILES)
161193 $(am__remove_distdir)
162194 mkdir $(distdir)
163 $(mkinstalldirs) $(distdir)/broadcom
195 $(mkinstalldirs) $(distdir)/broadcom $(distdir)/st
164196 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
165197 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
166198 list='$(DISTFILES)'; for file in $$list; do \
258290 exit 1; } >&2
259291 check-am: all-am
260292 check: check-am
261 all-am: Makefile
293 all-am: Makefile $(DATA)
262294
263295 installdirs:
296 $(mkinstalldirs) $(DESTDIR)$(firmwaredir)
264297 install: install-am
265298 install-exec: install-exec-am
266299 install-data: install-data-am
303336
304337 info-am:
305338
306 install-data-am: install-data-local
339 install-data-am: install-firmwareDATA
307340
308341 install-exec-am:
309342
331364
332365 ps-am:
333366
334 uninstall-am: uninstall-info-am uninstall-local
367 uninstall-am: uninstall-firmwareDATA uninstall-info-am
335368
336369 .PHONY: all all-am check check-am clean clean-generic dist dist-all \
337370 dist-gzip distcheck distclean distclean-generic distcleancheck \
338371 distdir distuninstallcheck dvi dvi-am info info-am install \
339 install-am install-data install-data-am install-data-local \
340 install-exec install-exec-am install-info install-info-am \
341 install-man install-strip installcheck installcheck-am \
342 installdirs maintainer-clean maintainer-clean-generic \
343 mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
344 uninstall-am uninstall-info-am uninstall-local
345
346
347 install-data-local: $(firmware)
348 $(mkinstalldirs) $(DESTDIR)$(firmwaredir)
349 list='$?'; \
350 for i in $$list; do \
351 $(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(firmwaredir); \
352 done
353
354 uninstall-local: $(firmware)
355 list='$(notdir $?)'; \
356 for i in $$list; do \
357 rm -f $(DESTDIR)$(firmwaredir)/$$i; \
358 done
372 install-am install-data install-data-am install-exec \
373 install-exec-am install-firmwareDATA install-info \
374 install-info-am install-man install-strip installcheck \
375 installcheck-am installdirs maintainer-clean \
376 maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
377 pdf-am ps ps-am uninstall uninstall-am uninstall-firmwareDATA \
378 uninstall-info-am
379
359380 # Tell versions [3.59,3.63) of GNU make to not export all variables.
360381 # Otherwise a system limit (for SysV at least) may be exceeded.
361382 .NOEXPORT:
00 BlueZ - Bluetooth protocol stack for Linux
1 ******************************************
12
2 Copyright (C) 2003-2004 Marcel Holtmann <marcel@holtmann.org>
3 Copyright (C) 2002-2003 Maxim Krasnyansky <maxk@qualcomm.com>
4 Copyright (C) 2002-2006 Marcel Holtmann <marcel@holtmann.org>
35
46 Bluetooth firmware
57
68
7 1. Compilation and installation
9 Compilation and installation
10 ============================
811
912 In order to install Bluetooth firmware you need following software packages:
1013 - Linux Bluetooth protocol stack (BlueZ)
1114
1215 To configure run:
13 ./configure
16 ./configure --libdir=/lib
1417
1518 Configure automatically searches for all required components and packages.
1619
1720 To compile and install run:
18 make install
21 make && make install
1922
2023
21 2. Information
24 Information
25 ===========
2226
2327 Mailing lists:
2428 bluez-users@lists.sf.net - BlueZ general questions and discussions
0 #!/usr/bin/perl
1
2 #
3 # This is a tool to change the firmware bluetooth address. This tool will
4 # not work on older version of firmware. This tool will look for
5 # hcifw_bd_address[], once it finds it, it applies the bd address.
6 #
7 # Usage:
8 # bdaddrpatch.pl firmware.hex mapfile.m51 xxXXyyYYzzZZ
9 #
10 # firmware.hex is the intel hex file of the firmware
11 # that need be changed.
12 #
13 # xxXXyyYYzzZZ is the bluetooth address to be written into the firmware
14 #
15 #
16 # The output file will be FW5001_xxXXyyYYzzZZ.hex in the current directory
17
18
19 @FirmwareImage;
20
21
22 $address = 0;
23 $length = 0;
24
25 $C_INITSEG_START=0;
26 $C_INITSEG_END =0;
27
28
29 $bd_start_addr = "";
30
31 $outFileName = "";
32
33 $inFileName = "";
34
35 if( $#ARGV != 2 )
36 {
37 print "Usage: change_ba firmware.hex mapfile.m51 xxXXyyYYzzZZ > outputFile\n";
38
39 }
40 else
41 {
42 $inFileName = shift ARGV;
43 ParseOneFile( \@FirmwareImage, $inFileName);
44
45 ($C_INITSEG_START, $C_INITSEG_END, $bd_start_addr) =
46 ParseMapFile( shift ARGV );
47
48
49 # extract the desired bd address
50 $DesiredBDAddr = shift ARGV;
51
52
53 if( $inFileName =~ /(.*?)(\.hex)/ )
54 {
55 $inFileName = $1;
56 }
57
58 @result = split( /\\/, $inFileName);
59
60 $outFileBase = $result[$#result];
61
62 $outFileName = $outFileBase. "_$DesiredBDAddr.hex";
63
64 # print "out file name " , $outFileName,"\n";
65
66 $DesiredBDAddr =~ /(\w\w)(\w\w)(\w\w)(\w\w)(\w\w)(\w\w)/;
67
68 $DesiredBDAddr = uc("$6$5$4$3$2$1");
69
70 if( length($DesiredBDAddr) != 12)
71 {
72 print "BD address should be six bytes, xxXXyyYYzzZZ\n";
73 exit 1;
74 }
75
76 open( outFileHndl, ">$outFileName") ||
77 die "Can't open $outFileName for output\n";
78
79 # look for the target address, 0xc8a0
80
81 foreach $item (@FirmwareImage )
82 {
83 $address = hex $item->{"addr"};
84 $length = hex $item->{"len"};
85
86 if(( $address > $C_INITSEG_START ) &&
87 ( $address < $C_INITSEG_END) )
88 {
89 # print $item->{"addr"},"-->", $item->{"data"},"\n";
90
91 # So we found something that is in C_INITSEG
92 if( $item->{"data"} =~ /(\w*?)($bd_start_addr)(.{12})(.*)/)
93 {
94 # we find the starting address
95 #
96 # print $item->{"data"},"\n";
97
98 # print "$1--$2--$3--$4\n";
99
100 $item->{"data"} = "$1$2$DesiredBDAddr$4";
101
102 # print "before calc. ", $item->{"data"},":\n";
103
104 CalcChecksum( $item );
105 # print $item->{"data"}, $item->{"checksum"};
106 print "Change made\n";
107 }
108 }
109
110 #generate intel hex file output
111
112 print outFileHndl ":",$item->{"len"},
113 $item->{"addr"},
114 $item->{"type"},
115 $item->{"data"},
116 $item->{"checksum"},
117 "\n";
118 }
119
120
121
122
123 }
124
125 sub ParseMapFile()
126 {
127 local($filename) = shift @_;
128
129 open( file, $filename ) || die "Can't open $filename\n";
130
131 while( $line = <file> )
132 {
133 # look for C_INITSEG
134 if( $line =~ /C_INITSEG$/ )
135 {
136 $line =~ /^(\W*)CODE(\W*)([\d|A-F]*)H(\W*)([\d|A-F]*)/;
137 $C_INITSEG_START = hex $3;
138 $C_INITSEG_END = $C_INITSEG_START + hex $5;
139 if( $3 == 0 )
140 {
141 # this could be a multi-bank code
142 $line =~ /^(\W*)BANK1(\W*)([\d|A-F]*)H(\W*)([\d|A-F]*)/;
143 $C_INITSEG_START = hex $3;
144 $C_INITSEG_END = $C_INITSEG_START + hex $5;
145 }
146
147 # print "C_INITSEG_START = $C_INITSEG_START: $C_INITSEG_END\n";
148 }
149
150 # look for periph_bd_address
151 if( $line =~ /periph_bd_address/ )
152 {
153 $line =~ /^(\W)*(X:)([\d|A-F]*)/;
154 $bd_start_address = $3;
155 # print "bd_start_address = :$bd_start_address:\n";
156 # print "$line";
157 return( $C_INITSEG_START, $C_INITSEG_END, $bd_start_address);
158 }
159 }
160 return ();
161 }
162
163 sub ParseOneFile()
164 {
165 local ( $image ) = shift @_;
166 local($filename) = shift @_;
167 local ($line);
168
169
170 open( file, $filename ) || die "Can't open $filename\n";
171
172 while( $line = <file> )
173 {
174 $record = {};
175
176 $line =~ /:(\w\w)(\w{4})(\w\w)(.*)(\w\w)/;
177
178 $record->{"len"} = $1;
179 $record->{"addr"} = $2;
180 $record->{"type"} = $3;
181 $record->{"data"} = $4;
182 $record->{"checksum"} = $5;
183
184 push @$image, $record;
185 }
186
187 close(file);
188
189 }
190
191 sub CalcChecksum()
192 {
193 local ($record) = @_;
194 local ($tmp = 0 );
195 local ($i = 0);
196 local ($str = "");
197
198
199
200 $tmp = hex $record->{"len"};
201
202
203 $record->{"addr"} =~ /(\w\w)(\w\w)/;
204
205 $tmp += hex $1;
206
207
208 $tmp += hex $2;
209
210
211 $tmp += hex $record->{"type"};
212
213
214 # now let's work on the data part
215 $str = $record->{"data"} ;
216 for($i = 0; $i < length($str ) ; $i +=2 )
217 {
218 $tmp += hex( substr( $str , $i, 2 ) );
219
220 }
221
222 # take the modulo
223 $tmp = $tmp % 256 ;
224
225 $tmp = 0x100 - $tmp;
226
227 # handle case when checksum is zero
228 $tmp = $tmp % 256 ;
229
230 $record->{"checksum"} = sprintf("%02X",$tmp);
231 }
0 #!/usr/bin/perl
1
2 #
3 # This is a tool to change the usb product id and vendor id. It won't
4 # work on older version of firmware
5 #
6 # Usage:
7 # pidvidpatch.pl firmware.hex mapfile.m51 xxXXyyYY
8 #
9 # firmware.hex is the intel hex file of the firmware that need be changed.
10 #
11 # xxXXyyYY is the pidvid, e.g. a5c & 2039 become 0a5c2039
12 #
13 # The firmware.hex will be modified.
14
15
16 @FirmwareImage;
17
18
19 $address = 0;
20 $length = 0;
21
22 $C_INITSEG_START=0;
23 $C_INITSEG_END =0;
24
25
26 $pidvid_start_addr = "";
27
28 $pidvid="";
29
30 $outFileName = "";
31
32 if( $#ARGV != 2 )
33 {
34 print "Usage: change_id firmware.hex mapfile.m51 xxXXyyYY\n";
35 }
36 else
37 {
38 # get the in file name, we are going to use it as out file too
39 $outFileName = shift ARGV ;
40
41 ParseOneFile( \@FirmwareImage, $outFileName );
42
43 ($C_INITSEG_START, $C_INITSEG_END, $pidvid_start_addr) = ParseMapFile( shift ARGV );
44
45
46 print "start_address is " , $pidvid_start_addr,"\n";
47
48
49 $pidvid = "01" . uc(shift ARGV);
50
51 print "pidvid = $pidvid\n";
52
53 open( outFileHndl, ">$outFileName") ||
54 die "Can't open $outFileName for output\n";
55
56 # look for the target address,
57
58 foreach $item (@FirmwareImage )
59 {
60 $address = hex $item->{"addr"};
61 $length = hex $item->{"len"};
62
63 if(( $address > $C_INITSEG_START ) &&
64 ( $address < $C_INITSEG_END) )
65 {
66 # print $item->{"addr"},"-->", $item->{"data"},"\n";
67
68 # So we found something that is in C_INITSEG
69 if( $item->{"data"} =~ /(\w*?)($pidvid_start_addr)(.{10})(.*)/)
70 {
71 # we find the starting address
72 #
73 # print $item->{"data"},"\n";
74
75 # print "$1--$2--$3--$4\n";
76
77 $item->{"data"} = "$1$2$pidvid$4";
78
79 # print "before calc. ", $item->{"data"},":\n";
80
81 CalcChecksum( $item );
82 # print $item->{"data"}, $item->{"checksum"};
83 }
84 }
85
86 #generate intel hex file output
87
88 print outFileHndl ":",$item->{"len"},
89 $item->{"addr"},
90 $item->{"type"},
91 $item->{"data"},
92 $item->{"checksum"},
93 "\n";
94 }
95
96
97
98
99 }
100
101 sub ParseMapFile()
102 {
103 local($filename) = shift @_;
104
105 open( file, $filename ) || die "Can't open $filename\n";
106
107 while( $line = <file> )
108 {
109 # look for C_INITSEG
110 if( $line =~ /C_INITSEG/ )
111 {
112 $line =~ /^(\W*)CODE(\W*)([\d|A-F]*)H(\W*)([\d|A-F]*)/;
113 $C_INITSEG_START = hex $3;
114 $C_INITSEG_END = $C_INITSEG_START + hex $5;
115 if( $3 == 0 )
116 {
117 # this could be a multi-bank code
118 $line =~ /^(\W*)BANK1(\W*)([\d|A-F]*)H(\W*)([\d|A-F]*)/;
119 $C_INITSEG_START = hex $3;
120 $C_INITSEG_END = $C_INITSEG_START + hex $5;
121 }
122
123 # print "C_INITSEG_START = $C_INITSEG_START: $C_INITSEG_END\n";
124 }
125
126 # look for bbinit_pid_vid
127 if( $line =~ /bbinit_pid_vid/ )
128 {
129 $line =~ /^(\W)*(X:)([\d|A-F]*)/;
130 $start_address = $3;
131 # print "start_address = :$start_address:\n";
132 # print "$line";
133 return( $C_INITSEG_START, $C_INITSEG_END, $start_address);
134 }
135 }
136 return ();
137 }
138
139 sub ParseOneFile()
140 {
141 local ( $image ) = shift @_;
142 local($filename) = shift @_;
143 local ($line);
144
145
146 open( file, $filename ) || die "Can't open $filename\n";
147
148 while( $line = <file> )
149 {
150 $record = {};
151
152 $line =~ /:(\w\w)(\w{4})(\w\w)(.*)(\w\w)/;
153
154 $record->{"len"} = $1;
155 $record->{"addr"} = $2;
156 $record->{"type"} = $3;
157 $record->{"data"} = $4;
158 $record->{"checksum"} = $5;
159
160 push @$image, $record;
161 }
162
163 close(file);
164
165 }
166
167 sub CalcChecksum()
168 {
169 local ($record) = @_;
170 local ($tmp = 0 );
171 local ($i = 0);
172 local ($str = "");
173
174
175
176 $tmp = hex $record->{"len"};
177
178
179 $record->{"addr"} =~ /(\w\w)(\w\w)/;
180
181 $tmp += hex $1;
182
183
184 $tmp += hex $2;
185
186
187 $tmp += hex $record->{"type"};
188
189
190 # now let's work on the data part
191 $str = $record->{"data"} ;
192 for($i = 0; $i < length($str ) ; $i +=2 )
193 {
194 $tmp += hex( substr( $str , $i, 2 ) );
195
196 }
197
198 # take the modulo
199 $tmp = $tmp % 256 ;
200
201 $tmp = 0x100 - $tmp;
202
203 # handle case when checksum is zero
204 $tmp = $tmp % 256 ;
205
206 $record->{"checksum"} = sprintf("%02X",$tmp);
207 }
0 #!/usr/bin/perl
1 #
2 # This is a tool to convert three banked intel hex format files
3 # into a single intel hex format file. The common portion of the
4 # code will be removed.
5 #
6
7 @Bank0;
8
9 $BANK_LIMIT = "8000";
10
11 $bcm2039 = "BCM2039";
12
13 #@type;
14 $count;
15
16 $outFile="";
17 $filename="";
18
19 if(( @ARGV == 0 ) || ( @ARGV == 1 ))
20 {
21 print "Usage: IHex2Bin.pl inputFile.hex outputFile.bin\n";
22
23 }
24 else
25 {
26
27 $count=114688;
28
29 @Image[$count];
30
31 for( $i = 0 ; $i < $count; $i += 1 )
32 {
33 $Image[$i] = 0xff;
34 }
35
36 ParseOneFile( \@Bank0, shift ARGV );
37
38 $outfile = shift ARGV;
39
40 open (hdl, ">", $outfile ) || die "Can't open $outfile\n";
41 binmode hdl, ':raw';
42
43 foreach $item (@Bank0)
44 {
45 $baseAddr = hex $item->{"addr"};
46
47 if($item->{"type"} == 2)
48 {
49 $baseAddr += 0x8000;
50 }
51
52 if($item->{"type"} == 3)
53 {
54 $baseAddr += 0x10000;
55 }
56
57 $str = $item->{"data"} ;
58 for($i = 0; $i < length($str ) ; $i +=2 )
59 {
60 # cut the whole ascii string into two
61 # characters each and convert them into
62 # hex number.
63 $tmp = hex( substr( $str , $i, 2 ) );
64
65 # figure out the offset
66
67 $Image[$baseAddr ] = $tmp;
68
69 #increase the base address by one for next
70 # byte
71 $baseAddr += 1;
72 }
73 }
74
75 for( $i = 0 ; $i < $count; $i += 1 )
76 {
77 $val = sprintf("%02X", $Image[$i]);
78 $len = length($val);
79 $value = pack("H$len", $val);
80 print hdl $value;
81 }
82
83 close hdl;
84 }
85
86 exit 0;
87
88
89
90 sub ParseOneFile()
91 {
92 local ( $image ) = shift @_;
93 $filename = shift @_;
94 local ($line);
95
96
97 open( file, $filename ) || die "Can't open $filename\n";
98
99 binmode($filename);
100
101 while( $line = <file> )
102 {
103 $record = {};
104
105 $line =~ /:(\w\w)(\w{4})(\w\w)(.*)(\w\w)/;
106
107 $record->{"len"} = $1;
108 $record->{"addr"} = $2;
109 $record->{"type"} = $3;
110 $record->{"data"} = $4;
111 $record->{"checksum"} = $5;
112
113 push @$image, $record;
114 }
115
116 close(file);
117
118
119 }
+1538
-1034
configure less more
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.59.
2 # Generated by GNU Autoconf 2.59e.
33 #
4 # Copyright (C) 2003 Free Software Foundation, Inc.
4 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
5 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
56 # This configure script is free software; the Free Software Foundation
67 # gives unlimited permission to copy, distribute and modify it.
78 ## --------------------- ##
1516 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
1617 # is contrary to our usage. Disable this feature.
1718 alias -g '${1+"$@"}'='"$@"'
18 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19 set -o posix
20 fi
19 setopt NO_GLOB_SUBST
20 else
21 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22 fi
23 BIN_SH=xpg4; export BIN_SH # for Tru64
2124 DUALCASE=1; export DUALCASE # for MKS sh
2225
23 # Support unset when possible.
24 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25 as_unset=unset
26 else
27 as_unset=false
28 fi
29
30
31 # Work around bugs in pre-3.0 UWIN ksh.
32 $as_unset ENV MAIL MAILPATH
33 PS1='$ '
34 PS2='> '
35 PS4='+ '
36
37 # NLS nuisances.
38 for as_var in \
39 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
40 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41 LC_TELEPHONE LC_TIME
42 do
43 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
44 eval $as_var=C; export $as_var
45 else
46 $as_unset $as_var
47 fi
48 done
49
50 # Required to use basename.
51 if expr a : '\(a\)' >/dev/null 2>&1; then
52 as_expr=expr
53 else
54 as_expr=false
55 fi
56
57 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
58 as_basename=basename
59 else
60 as_basename=false
61 fi
62
63
64 # Name of the executable.
65 as_me=`$as_basename "$0" ||
66 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
67 X"$0" : 'X\(//\)$' \| \
68 X"$0" : 'X\(/\)$' \| \
69 . : '\(.\)' 2>/dev/null ||
70 echo X/"$0" |
71 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
72 /^X\/\(\/\/\)$/{ s//\1/; q; }
73 /^X\/\(\/\).*/{ s//\1/; q; }
74 s/.*/./; q'`
75
76
77 # PATH needs CR, and LINENO needs CR and PATH.
26
27 # PATH needs CR
7828 # Avoid depending upon Character Ranges.
7929 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8030 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9545 rm -f conf$$.sh
9646 fi
9747
98
99 as_lineno_1=$LINENO
100 as_lineno_2=$LINENO
101 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
102 test "x$as_lineno_1" != "x$as_lineno_2" &&
103 test "x$as_lineno_3" = "x$as_lineno_2" || {
104 # Find who we are. Look in the path if we contain no path at all
105 # relative or not.
106 case $0 in
107 *[\\/]* ) as_myself=$0 ;;
108 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48 # Support unset when possible.
49 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
50 as_unset=unset
51 else
52 as_unset=false
53 fi
54
55
56 # IFS
57 # We need space, tab and new line, in precisely that order. Quoting is
58 # there to prevent editors from complaining about space-tab.
59 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
60 # splitting by setting IFS to empty value.)
61 as_nl='
62 '
63 IFS=" "" $as_nl"
64
65 # Find who we are. Look in the path if we contain no directory separator.
66 case $0 in
67 *[\\/]* ) as_myself=$0 ;;
68 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10969 for as_dir in $PATH
11070 do
11171 IFS=$as_save_IFS
11272 test -z "$as_dir" && as_dir=.
11373 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11474 done
115
116 ;;
117 esac
118 # We did not find ourselves, most probably we were run as `sh COMMAND'
119 # in which case we are not to be found in the path.
120 if test "x$as_myself" = x; then
121 as_myself=$0
75 IFS=$as_save_IFS
76
77 ;;
78 esac
79 # We did not find ourselves, most probably we were run as `sh COMMAND'
80 # in which case we are not to be found in the path.
81 if test "x$as_myself" = x; then
82 as_myself=$0
83 fi
84 if test ! -f "$as_myself"; then
85 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
86 { (exit 1); exit 1; }
87 fi
88
89 # Work around bugs in pre-3.0 UWIN ksh.
90 for as_var in ENV MAIL MAILPATH
91 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
92 done
93 PS1='$ '
94 PS2='> '
95 PS4='+ '
96
97 # NLS nuisances.
98 for as_var in \
99 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
100 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
101 LC_TELEPHONE LC_TIME
102 do
103 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
104 eval $as_var=C; export $as_var
105 else
106 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
122107 fi
123 if test ! -f "$as_myself"; then
124 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
125 { (exit 1); exit 1; }; }
126 fi
127 case $CONFIG_SHELL in
128 '')
108 done
109
110 # Required to use basename.
111 if expr a : '\(a\)' >/dev/null 2>&1 &&
112 test "X`expr 00001 : '.*\(...\)'`" = X001; then
113 as_expr=expr
114 else
115 as_expr=false
116 fi
117
118 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
119 as_basename=basename
120 else
121 as_basename=false
122 fi
123
124
125 # Name of the executable.
126 as_me=`$as_basename -- "$0" ||
127 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
128 X"$0" : 'X\(//\)$' \| \
129 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
130 echo X/"$0" |
131 sed '/^.*\/\([^/][^/]*\)\/*$/{
132 s//\1/
133 q
134 }
135 /^X\/\(\/\/\)$/{
136 s//\1/
137 q
138 }
139 /^X\/\(\/\).*/{
140 s//\1/
141 q
142 }
143 s/.*/./; q'`
144
145 # CDPATH.
146 $as_unset CDPATH
147
148
149 if test "x$CONFIG_SHELL" = x; then
150 if (eval ":") 2>/dev/null; then
151 as_have_required=yes
152 else
153 as_have_required=no
154 fi
155
156 if test $as_have_required = yes && (eval ":
157 (as_func_return () {
158 (exit \$1)
159 }
160 as_func_success () {
161 as_func_return 0
162 }
163 as_func_failure () {
164 as_func_return 1
165 }
166 as_func_ret_success () {
167 return 0
168 }
169 as_func_ret_failure () {
170 return 1
171 }
172
173 exitcode=0
174 if as_func_success; then
175 :
176 else
177 exitcode=1
178 echo as_func_success failed.
179 fi
180
181 if as_func_failure; then
182 exitcode=1
183 echo as_func_failure succeeded.
184 fi
185
186 if as_func_ret_success; then
187 :
188 else
189 exitcode=1
190 echo as_func_ret_success failed.
191 fi
192
193 if as_func_ret_failure; then
194 exitcode=1
195 echo as_func_ret_failure succeeded.
196 fi
197
198 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
199 :
200 else
201 exitcode=1
202 echo positional parameters were not saved.
203 fi
204
205 test \$exitcode = 0) || { (exit 1); exit 1; }
206
207 (
208 as_lineno_1=\$LINENO
209 as_lineno_2=\$LINENO
210 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
211 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
212 ") 2> /dev/null; then
213 :
214 else
215 as_candidate_shells=
129216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
130 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
217 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
131218 do
132219 IFS=$as_save_IFS
133220 test -z "$as_dir" && as_dir=.
134 for as_base in sh bash ksh sh5; do
135 case $as_dir in
221 case $as_dir in
136222 /*)
137 if ("$as_dir/$as_base" -c '
223 for as_base in sh bash ksh sh5; do
224 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
225 done;;
226 esac
227 done
228 IFS=$as_save_IFS
229
230
231 for as_shell in $as_candidate_shells $SHELL; do
232 # Try only shells which exist, to save several forks.
233 if test -f "$as_shell" &&
234 { ("$as_shell") 2> /dev/null <<\_ASEOF
235 # Be Bourne compatible
236 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
237 emulate sh
238 NULLCMD=:
239 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
240 # is contrary to our usage. Disable this feature.
241 alias -g '${1+"$@"}'='"$@"'
242 setopt NO_GLOB_SUBST
243 else
244 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
245 fi
246 BIN_SH=xpg4; export BIN_SH # for Tru64
247 DUALCASE=1; export DUALCASE # for MKS sh
248
249 :
250 _ASEOF
251 }; then
252 CONFIG_SHELL=$as_shell
253 as_have_required=yes
254 if { "$as_shell" 2> /dev/null <<\_ASEOF
255 # Be Bourne compatible
256 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
257 emulate sh
258 NULLCMD=:
259 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
260 # is contrary to our usage. Disable this feature.
261 alias -g '${1+"$@"}'='"$@"'
262 setopt NO_GLOB_SUBST
263 else
264 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
265 fi
266 BIN_SH=xpg4; export BIN_SH # for Tru64
267 DUALCASE=1; export DUALCASE # for MKS sh
268
269 :
270 (as_func_return () {
271 (exit $1)
272 }
273 as_func_success () {
274 as_func_return 0
275 }
276 as_func_failure () {
277 as_func_return 1
278 }
279 as_func_ret_success () {
280 return 0
281 }
282 as_func_ret_failure () {
283 return 1
284 }
285
286 exitcode=0
287 if as_func_success; then
288 :
289 else
290 exitcode=1
291 echo as_func_success failed.
292 fi
293
294 if as_func_failure; then
295 exitcode=1
296 echo as_func_failure succeeded.
297 fi
298
299 if as_func_ret_success; then
300 :
301 else
302 exitcode=1
303 echo as_func_ret_success failed.
304 fi
305
306 if as_func_ret_failure; then
307 exitcode=1
308 echo as_func_ret_failure succeeded.
309 fi
310
311 if ( set x; as_func_ret_success y && test x = "$1" ); then
312 :
313 else
314 exitcode=1
315 echo positional parameters were not saved.
316 fi
317
318 test $exitcode = 0) || { (exit 1); exit 1; }
319
320 (
138321 as_lineno_1=$LINENO
139322 as_lineno_2=$LINENO
140 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
141323 test "x$as_lineno_1" != "x$as_lineno_2" &&
142 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
143 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
144 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
145 CONFIG_SHELL=$as_dir/$as_base
146 export CONFIG_SHELL
147 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
148 fi;;
149 esac
150 done
151 done
152 ;;
153 esac
324 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
325
326 _ASEOF
327 }; then
328 break
329 fi
330
331 fi
332
333 done
334
335 if test "x$CONFIG_SHELL" != x; then
336 for as_var in BASH_ENV ENV
337 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
338 done
339 export CONFIG_SHELL
340 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
341 fi
342
343
344 if test $as_have_required = no; then
345 echo This script requires a shell more modern than all the
346 echo shells that I found on your system. Please install a
347 echo modern shell, or manually run the script under such a
348 echo shell if you do have one.
349 { (exit 1); exit 1; }
350 fi
351
352
353 fi
354
355 fi
356
357
358
359 (eval "as_func_return () {
360 (exit \$1)
361 }
362 as_func_success () {
363 as_func_return 0
364 }
365 as_func_failure () {
366 as_func_return 1
367 }
368 as_func_ret_success () {
369 return 0
370 }
371 as_func_ret_failure () {
372 return 1
373 }
374
375 exitcode=0
376 if as_func_success; then
377 :
378 else
379 exitcode=1
380 echo as_func_success failed.
381 fi
382
383 if as_func_failure; then
384 exitcode=1
385 echo as_func_failure succeeded.
386 fi
387
388 if as_func_ret_success; then
389 :
390 else
391 exitcode=1
392 echo as_func_ret_success failed.
393 fi
394
395 if as_func_ret_failure; then
396 exitcode=1
397 echo as_func_ret_failure succeeded.
398 fi
399
400 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
401 :
402 else
403 exitcode=1
404 echo positional parameters were not saved.
405 fi
406
407 test \$exitcode = 0") || {
408 echo No shell found that supports shell functions.
409 echo Please tell autoconf@gnu.org about your system,
410 echo including any error possibly output before this
411 echo message
412 }
413
414
415
416 as_lineno_1=$LINENO
417 as_lineno_2=$LINENO
418 test "x$as_lineno_1" != "x$as_lineno_2" &&
419 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
154420
155421 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
156422 # uniformly replaced by the line number. The first 'sed' inserts a
157 # line-number line before each line; the second 'sed' does the real
158 # work. The second script uses 'N' to pair each line-number line
159 # with the numbered line, and appends trailing '-' during
160 # substitution so that $LINENO is not a special case at line end.
423 # line-number line after each line using $LINENO; the second 'sed'
424 # does the real work. The second script uses 'N' to pair each
425 # line-number line with the line containing $LINENO, and appends
426 # trailing '-' during substitution so that $LINENO is not a special
427 # case at line end.
161428 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
162 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
163 sed '=' <$as_myself |
429 # scripts with optimization help from Paolo Bonzini. Blame Lee
430 # E. McMahon (1931-1989) for sed's syntax. :-)
431 sed -n '
432 p
433 /[$]LINENO/=
434 ' <$as_myself |
164435 sed '
436 s/[$]LINENO.*/&-/
437 t lineno
438 b
439 :lineno
165440 N
166 s,$,-,
167 : loop
168 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
441 :loop
442 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
169443 t loop
170 s,-$,,
171 s,^['$as_cr_digits']*\n,,
444 s/-\n.*//
172445 ' >$as_me.lineno &&
173 chmod +x $as_me.lineno ||
446 chmod +x "$as_me.lineno" ||
174447 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
175448 { (exit 1); exit 1; }; }
176449
177450 # Don't try to exec as it changes $[0], causing all sort of problems
178451 # (the dirname of $[0] is not the place where we might find the
179 # original and so on. Autoconf is especially sensible to this).
180 . ./$as_me.lineno
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
181454 # Exit status is that of the last command.
182455 exit
183456 }
184457
185458
186 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
187 *c*,-n*) ECHO_N= ECHO_C='
188 ' ECHO_T=' ' ;;
189 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
190 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
459 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
460 as_dirname=dirname
461 else
462 as_dirname=false
463 fi
464
465 ECHO_C= ECHO_N= ECHO_T=
466 case `echo -n x` in
467 -n*)
468 case `echo 'x\c'` in
469 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
470 *) ECHO_C='\c';;
471 esac;;
472 *)
473 ECHO_N='-n';;
191474 esac
192475
193 if expr a : '\(a\)' >/dev/null 2>&1; then
476 if expr a : '\(a\)' >/dev/null 2>&1 &&
477 test "X`expr 00001 : '.*\(...\)'`" = X001; then
194478 as_expr=expr
195479 else
196480 as_expr=false
197481 fi
198482
199483 rm -f conf$$ conf$$.exe conf$$.file
484 if test -d conf$$.dir; then
485 rm -f conf$$.dir/conf$$.file
486 else
487 rm -f conf$$.dir
488 mkdir conf$$.dir
489 fi
200490 echo >conf$$.file
201491 if ln -s conf$$.file conf$$ 2>/dev/null; then
202 # We could just check for DJGPP; but this test a) works b) is more generic
203 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
204 if test -f conf$$.exe; then
205 # Don't use ln at all; we don't have any links
492 as_ln_s='ln -s'
493 # ... but there are two gotchas:
494 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
495 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
496 # In both cases, we have to default to `cp -p'.
497 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
206498 as_ln_s='cp -p'
207 else
208 as_ln_s='ln -s'
209 fi
210499 elif ln conf$$.file conf$$ 2>/dev/null; then
211500 as_ln_s=ln
212501 else
213502 as_ln_s='cp -p'
214503 fi
215 rm -f conf$$ conf$$.exe conf$$.file
504 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
505 rmdir conf$$.dir 2>/dev/null
216506
217507 if mkdir -p . 2>/dev/null; then
218508 as_mkdir_p=:
221511 as_mkdir_p=false
222512 fi
223513
224 as_executable_p="test -f"
514 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
515 # systems may use methods other than mode bits to determine executability.
516 cat >conf$$.file <<_ASEOF
517 #! /bin/sh
518 exit 0
519 _ASEOF
520 chmod +x conf$$.file
521 if test -x conf$$.file >/dev/null 2>&1; then
522 as_executable_p="test -x"
523 else
524 as_executable_p=:
525 fi
526 rm -f conf$$.file
225527
226528 # Sed expression to map a string onto a valid CPP name.
227529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
231533
232534
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS=" $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
535
536 exec 7<&0 </dev/null 6>&1
242537
243538 # Name of the host.
244539 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245540 # so uname gets run too.
246541 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247542
248 exec 6>&1
249
250543 #
251544 # Initializations.
252545 #
253546 ac_default_prefix=/usr/local
547 ac_clean_files=
254548 ac_config_libobj_dir=.
549 LIBOBJS=
255550 cross_compiling=no
256551 subdirs=
257552 MFLAGS=
258553 MAKEFLAGS=
259554 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265555
266556 # Identity of this package.
267557 PACKAGE_NAME=
270560 PACKAGE_STRING=
271561 PACKAGE_BUGREPORT=
272562
273 ac_default_prefix=/usr
274 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBOBJS LTLIBOBJS'
563 ac_default_prefix=
564 ac_subst_vars='SHELL
565 PATH_SEPARATOR
566 PACKAGE_NAME
567 PACKAGE_TARNAME
568 PACKAGE_VERSION
569 PACKAGE_STRING
570 PACKAGE_BUGREPORT
571 exec_prefix
572 prefix
573 program_transform_name
574 bindir
575 sbindir
576 libexecdir
577 datarootdir
578 datadir
579 sysconfdir
580 sharedstatedir
581 localstatedir
582 includedir
583 oldincludedir
584 docdir
585 infodir
586 htmldir
587 dvidir
588 pdfdir
589 psdir
590 libdir
591 localedir
592 mandir
593 DEFS
594 ECHO_C
595 ECHO_N
596 ECHO_T
597 LIBS
598 build_alias
599 host_alias
600 target_alias
601 INSTALL_PROGRAM
602 INSTALL_SCRIPT
603 INSTALL_DATA
604 CYGPATH_W
605 PACKAGE
606 VERSION
607 ACLOCAL
608 AUTOCONF
609 AUTOMAKE
610 AUTOHEADER
611 MAKEINFO
612 AMTAR
613 install_sh
614 STRIP
615 INSTALL_STRIP_PROGRAM
616 AWK
617 SET_MAKE
618 am__leading_dot
619 MAINTAINER_MODE_TRUE
620 MAINTAINER_MODE_FALSE
621 MAINT
622 LIBOBJS
623 LTLIBOBJS'
275624 ac_subst_files=''
625 ac_precious_vars='build_alias
626 host_alias
627 target_alias'
628
276629
277630 # Initialize some variables set by options.
278631 ac_init_help=
299652 # and all the variables that are supposed to be based on exec_prefix
300653 # by default will actually change.
301654 # Use braces instead of parens because sh, perl, etc. also accept them.
655 # (The list follows the same order as the GNU Coding Standards.)
302656 bindir='${exec_prefix}/bin'
303657 sbindir='${exec_prefix}/sbin'
304658 libexecdir='${exec_prefix}/libexec'
305 datadir='${prefix}/share'
659 datarootdir='${prefix}/share'
660 datadir='${datarootdir}'
306661 sysconfdir='${prefix}/etc'
307662 sharedstatedir='${prefix}/com'
308663 localstatedir='${prefix}/var'
309 libdir='${exec_prefix}/lib'
310664 includedir='${prefix}/include'
311665 oldincludedir='/usr/include'
312 infodir='${prefix}/info'
313 mandir='${prefix}/man'
666 docdir='${datarootdir}/doc/${PACKAGE}'
667 infodir='${datarootdir}/info'
668 htmldir='${docdir}'
669 dvidir='${docdir}'
670 pdfdir='${docdir}'
671 psdir='${docdir}'
672 libdir='${exec_prefix}/lib'
673 localedir='${datarootdir}/locale'
674 mandir='${datarootdir}/man'
314675
315676 ac_prev=
677 ac_dashdash=
316678 for ac_option
317679 do
318680 # If the previous option needs an argument, assign it.
319681 if test -n "$ac_prev"; then
320 eval "$ac_prev=\$ac_option"
682 eval $ac_prev=\$ac_option
321683 ac_prev=
322684 continue
323685 fi
324686
325 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
687 case $ac_option in
688 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
689 *) ac_optarg=yes ;;
690 esac
326691
327692 # Accept the important Cygnus configure options, so we can diagnose typos.
328693
329 case $ac_option in
694 case $ac_dashdash$ac_option in
695 --)
696 ac_dashdash=yes ;;
330697
331698 -bindir | --bindir | --bindi | --bind | --bin | --bi)
332699 ac_prev=bindir ;;
348715 --config-cache | -C)
349716 cache_file=config.cache ;;
350717
351 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
718 -datadir | --datadir | --datadi | --datad)
352719 ac_prev=datadir ;;
353 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
354 | --da=*)
720 -datadir=* | --datadir=* | --datadi=* | --datad=*)
355721 datadir=$ac_optarg ;;
722
723 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
724 | --dataroo | --dataro | --datar)
725 ac_prev=datarootdir ;;
726 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
727 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
728 datarootdir=$ac_optarg ;;
356729
357730 -disable-* | --disable-*)
358731 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
361734 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
362735 { (exit 1); exit 1; }; }
363736 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
364 eval "enable_$ac_feature=no" ;;
737 eval enable_$ac_feature=no ;;
738
739 -docdir | --docdir | --docdi | --doc | --do)
740 ac_prev=docdir ;;
741 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
742 docdir=$ac_optarg ;;
743
744 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
745 ac_prev=dvidir ;;
746 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
747 dvidir=$ac_optarg ;;
365748
366749 -enable-* | --enable-*)
367750 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
370753 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
371754 { (exit 1); exit 1; }; }
372755 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
373 case $ac_option in
374 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
375 *) ac_optarg=yes ;;
376 esac
377 eval "enable_$ac_feature='$ac_optarg'" ;;
756 eval enable_$ac_feature=\$ac_optarg ;;
378757
379758 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
380759 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
401780 -host=* | --host=* | --hos=* | --ho=*)
402781 host_alias=$ac_optarg ;;
403782
783 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
784 ac_prev=htmldir ;;
785 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
786 | --ht=*)
787 htmldir=$ac_optarg ;;
788
404789 -includedir | --includedir | --includedi | --included | --include \
405790 | --includ | --inclu | --incl | --inc)
406791 ac_prev=includedir ;;
425810 | --libexe=* | --libex=* | --libe=*)
426811 libexecdir=$ac_optarg ;;
427812
813 -localedir | --localedir | --localedi | --localed | --locale)
814 ac_prev=localedir ;;
815 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
816 localedir=$ac_optarg ;;
817
428818 -localstatedir | --localstatedir | --localstatedi | --localstated \
429 | --localstate | --localstat | --localsta | --localst \
430 | --locals | --local | --loca | --loc | --lo)
819 | --localstate | --localstat | --localsta | --localst | --locals)
431820 ac_prev=localstatedir ;;
432821 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
433 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
434 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
822 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
435823 localstatedir=$ac_optarg ;;
436824
437825 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
496884 | --progr-tra=* | --program-tr=* | --program-t=*)
497885 program_transform_name=$ac_optarg ;;
498886
887 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
888 ac_prev=pdfdir ;;
889 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
890 pdfdir=$ac_optarg ;;
891
892 -psdir | --psdir | --psdi | --psd | --ps)
893 ac_prev=psdir ;;
894 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
895 psdir=$ac_optarg ;;
896
499897 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
500898 | -silent | --silent | --silen | --sile | --sil)
501899 silent=yes ;;
552950 { echo "$as_me: error: invalid package name: $ac_package" >&2
553951 { (exit 1); exit 1; }; }
554952 ac_package=`echo $ac_package| sed 's/-/_/g'`
555 case $ac_option in
556 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
557 *) ac_optarg=yes ;;
558 esac
559 eval "with_$ac_package='$ac_optarg'" ;;
953 eval with_$ac_package=\$ac_optarg ;;
560954
561955 -without-* | --without-*)
562956 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
565959 { echo "$as_me: error: invalid package name: $ac_package" >&2
566960 { (exit 1); exit 1; }; }
567961 ac_package=`echo $ac_package | sed 's/-/_/g'`
568 eval "with_$ac_package=no" ;;
962 eval with_$ac_package=no ;;
569963
570964 --x)
571965 # Obsolete; use --with-x.
596990 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
597991 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
598992 { (exit 1); exit 1; }; }
599 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
600 eval "$ac_envvar='$ac_optarg'"
993 eval $ac_envvar=\$ac_optarg
601994 export $ac_envvar ;;
602995
603996 *)
6171010 { (exit 1); exit 1; }; }
6181011 fi
6191012
620 # Be sure to have absolute paths.
621 for ac_var in exec_prefix prefix
1013 # Be sure to have absolute directory names.
1014 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1015 datadir sysconfdir sharedstatedir localstatedir includedir \
1016 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1017 libdir localedir mandir
6221018 do
623 eval ac_val=$`echo $ac_var`
1019 eval ac_val=\$$ac_var
6241020 case $ac_val in
625 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
626 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
627 { (exit 1); exit 1; }; };;
1021 [\\/$]* | ?:[\\/]* ) continue;;
1022 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
6281023 esac
629 done
630
631 # Be sure to have absolute paths.
632 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
633 localstatedir libdir includedir oldincludedir infodir mandir
634 do
635 eval ac_val=$`echo $ac_var`
636 case $ac_val in
637 [\\/$]* | ?:[\\/]* ) ;;
638 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
639 { (exit 1); exit 1; }; };;
640 esac
1024 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1025 { (exit 1); exit 1; }; }
6411026 done
6421027
6431028 # There might be people who depend on the old broken behavior: `$host'
6641049 test "$silent" = yes && exec 6>/dev/null
6651050
6661051
1052 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1053 ac_ls_di=`ls -di .` &&
1054 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1055 { echo "$as_me: error: Working directory cannot be determined" >&2
1056 { (exit 1); exit 1; }; }
1057 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1058 { echo "$as_me: error: pwd does not report name of working directory" >&2
1059 { (exit 1); exit 1; }; }
1060
1061
6671062 # Find the source files, if location was not specified.
6681063 if test -z "$srcdir"; then
6691064 ac_srcdir_defaulted=yes
670 # Try the directory containing this script, then its parent.
671 ac_confdir=`(dirname "$0") 2>/dev/null ||
1065 # Try the directory containing this script, then the parent directory.
1066 ac_confdir=`$as_dirname -- "$0" ||
6721067 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6731068 X"$0" : 'X\(//\)[^/]' \| \
6741069 X"$0" : 'X\(//\)$' \| \
675 X"$0" : 'X\(/\)' \| \
676 . : '\(.\)' 2>/dev/null ||
1070 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6771071 echo X"$0" |
678 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
679 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
680 /^X\(\/\/\)$/{ s//\1/; q; }
681 /^X\(\/\).*/{ s//\1/; q; }
682 s/.*/./; q'`
1072 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1073 s//\1/
1074 q
1075 }
1076 /^X\(\/\/\)[^/].*/{
1077 s//\1/
1078 q
1079 }
1080 /^X\(\/\/\)$/{
1081 s//\1/
1082 q
1083 }
1084 /^X\(\/\).*/{
1085 s//\1/
1086 q
1087 }
1088 s/.*/./; q'`
6831089 srcdir=$ac_confdir
684 if test ! -r $srcdir/$ac_unique_file; then
1090 if test ! -r "$srcdir/$ac_unique_file"; then
6851091 srcdir=..
6861092 fi
6871093 else
6881094 ac_srcdir_defaulted=no
6891095 fi
690 if test ! -r $srcdir/$ac_unique_file; then
691 if test "$ac_srcdir_defaulted" = yes; then
692 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
1096 if test ! -r "$srcdir/$ac_unique_file"; then
1097 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1098 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
6931099 { (exit 1); exit 1; }; }
694 else
695 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1100 fi
1101 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1102 ac_abs_confdir=`(
1103 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
6961104 { (exit 1); exit 1; }; }
697 fi
698 fi
699 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
700 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
701 { (exit 1); exit 1; }; }
702 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
703 ac_env_build_alias_set=${build_alias+set}
704 ac_env_build_alias_value=$build_alias
705 ac_cv_env_build_alias_set=${build_alias+set}
706 ac_cv_env_build_alias_value=$build_alias
707 ac_env_host_alias_set=${host_alias+set}
708 ac_env_host_alias_value=$host_alias
709 ac_cv_env_host_alias_set=${host_alias+set}
710 ac_cv_env_host_alias_value=$host_alias
711 ac_env_target_alias_set=${target_alias+set}
712 ac_env_target_alias_value=$target_alias
713 ac_cv_env_target_alias_set=${target_alias+set}
714 ac_cv_env_target_alias_value=$target_alias
1105 pwd)`
1106 # When building in place, set srcdir=.
1107 if test "$ac_abs_confdir" = "$ac_pwd"; then
1108 srcdir=.
1109 fi
1110 # Remove unnecessary trailing slashes from srcdir.
1111 # Double slashes in file names in object file debugging info
1112 # mess up M-x gdb in Emacs.
1113 case $srcdir in
1114 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1115 esac
1116 for ac_var in $ac_precious_vars; do
1117 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1118 eval ac_env_${ac_var}_value=\$${ac_var}
1119 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1120 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1121 done
7151122
7161123 #
7171124 # Report the --help message.
7401147 -n, --no-create do not create output files
7411148 --srcdir=DIR find the sources in DIR [configure dir or \`..']
7421149
743 _ACEOF
744
745 cat <<_ACEOF
7461150 Installation directories:
7471151 --prefix=PREFIX install architecture-independent files in PREFIX
7481152 [$ac_default_prefix]
7601164 --bindir=DIR user executables [EPREFIX/bin]
7611165 --sbindir=DIR system admin executables [EPREFIX/sbin]
7621166 --libexecdir=DIR program executables [EPREFIX/libexec]
763 --datadir=DIR read-only architecture-independent data [PREFIX/share]
7641167 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
7651168 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
7661169 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
7671170 --libdir=DIR object code libraries [EPREFIX/lib]
7681171 --includedir=DIR C header files [PREFIX/include]
7691172 --oldincludedir=DIR C header files for non-gcc [/usr/include]
770 --infodir=DIR info documentation [PREFIX/info]
771 --mandir=DIR man documentation [PREFIX/man]
1173 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1174 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1175 --infodir=DIR info documentation [DATAROOTDIR/info]
1176 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1177 --mandir=DIR man documentation [DATAROOTDIR/man]
1178 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1179 --htmldir=DIR html documentation [DOCDIR]
1180 --dvidir=DIR dvi documentation [DOCDIR]
1181 --pdfdir=DIR pdf documentation [DOCDIR]
1182 --psdir=DIR ps documentation [DOCDIR]
7721183 _ACEOF
7731184
7741185 cat <<\_ACEOF
7911202 (and sometimes confusing) to the casual installer
7921203
7931204 _ACEOF
1205 ac_status=$?
7941206 fi
7951207
7961208 if test "$ac_init_help" = "recursive"; then
7971209 # If there are subdirs, report their specific --help.
798 ac_popdir=`pwd`
7991210 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
800 test -d $ac_dir || continue
1211 test -d "$ac_dir" || continue
8011212 ac_builddir=.
8021213
803 if test "$ac_dir" != .; then
1214 case "$ac_dir" in
1215 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1216 *)
8041217 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
805 # A "../" for each directory in $ac_dir_suffix.
806 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
807 else
808 ac_dir_suffix= ac_top_builddir=
809 fi
1218 # A ".." for each directory in $ac_dir_suffix.
1219 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1220 case $ac_top_builddir_sub in
1221 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1222 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1223 esac ;;
1224 esac
1225 ac_abs_top_builddir=$ac_pwd
1226 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1227 # for backward compatibility:
1228 ac_top_builddir=$ac_top_build_prefix
8101229
8111230 case $srcdir in
812 .) # No --srcdir option. We are building in place.
1231 .) # We are building in place.
8131232 ac_srcdir=.
814 if test -z "$ac_top_builddir"; then
815 ac_top_srcdir=.
816 else
817 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
818 fi ;;
819 [\\/]* | ?:[\\/]* ) # Absolute path.
1233 ac_top_srcdir=$ac_top_builddir_sub
1234 ac_abs_top_srcdir=$ac_pwd ;;
1235 [\\/]* | ?:[\\/]* ) # Absolute name.
8201236 ac_srcdir=$srcdir$ac_dir_suffix;
821 ac_top_srcdir=$srcdir ;;
822 *) # Relative path.
823 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
824 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1237 ac_top_srcdir=$srcdir
1238 ac_abs_top_srcdir=$srcdir ;;
1239 *) # Relative name.
1240 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1241 ac_top_srcdir=$ac_top_build_prefix$srcdir
1242 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8251243 esac
826
827 # Do not use `cd foo && pwd` to compute absolute paths, because
828 # the directories may not exist.
829 case `pwd` in
830 .) ac_abs_builddir="$ac_dir";;
831 *)
832 case "$ac_dir" in
833 .) ac_abs_builddir=`pwd`;;
834 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
835 *) ac_abs_builddir=`pwd`/"$ac_dir";;
836 esac;;
837 esac
838 case $ac_abs_builddir in
839 .) ac_abs_top_builddir=${ac_top_builddir}.;;
840 *)
841 case ${ac_top_builddir}. in
842 .) ac_abs_top_builddir=$ac_abs_builddir;;
843 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
844 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
845 esac;;
846 esac
847 case $ac_abs_builddir in
848 .) ac_abs_srcdir=$ac_srcdir;;
849 *)
850 case $ac_srcdir in
851 .) ac_abs_srcdir=$ac_abs_builddir;;
852 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
853 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
854 esac;;
855 esac
856 case $ac_abs_builddir in
857 .) ac_abs_top_srcdir=$ac_top_srcdir;;
858 *)
859 case $ac_top_srcdir in
860 .) ac_abs_top_srcdir=$ac_abs_builddir;;
861 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
862 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
863 esac;;
864 esac
865
866 cd $ac_dir
867 # Check for guested configure; otherwise get Cygnus style configure.
868 if test -f $ac_srcdir/configure.gnu; then
869 echo
870 $SHELL $ac_srcdir/configure.gnu --help=recursive
871 elif test -f $ac_srcdir/configure; then
872 echo
873 $SHELL $ac_srcdir/configure --help=recursive
874 elif test -f $ac_srcdir/configure.ac ||
875 test -f $ac_srcdir/configure.in; then
876 echo
877 $ac_configure --help
1244 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1245
1246 cd "$ac_dir" || { ac_status=$?; continue; }
1247 # Check for guested configure.
1248 if test -f "$ac_srcdir/configure.gnu"; then
1249 echo &&
1250 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1251 elif test -f "$ac_srcdir/configure"; then
1252 echo &&
1253 $SHELL "$ac_srcdir/configure" --help=recursive
8781254 else
8791255 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
880 fi
881 cd "$ac_popdir"
1256 fi || ac_status=$?
1257 cd "$ac_pwd" || { ac_status=$?; break; }
8821258 done
8831259 fi
8841260
885 test -n "$ac_init_help" && exit 0
1261 test -n "$ac_init_help" && exit $ac_status
8861262 if $ac_init_version; then
8871263 cat <<\_ACEOF
888
889 Copyright (C) 2003 Free Software Foundation, Inc.
1264 configure
1265 generated by GNU Autoconf 2.59e
1266
1267 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1268 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8901269 This configure script is free software; the Free Software Foundation
8911270 gives unlimited permission to copy, distribute and modify it.
8921271 _ACEOF
893 exit 0
894 fi
895 exec 5>config.log
896 cat >&5 <<_ACEOF
1272 exit
1273 fi
1274 cat >config.log <<_ACEOF
8971275 This file contains any messages produced by compilers while
8981276 running configure, to aid debugging if configure makes a mistake.
8991277
9001278 It was created by $as_me, which was
901 generated by GNU Autoconf 2.59. Invocation command line was
1279 generated by GNU Autoconf 2.59e. Invocation command line was
9021280
9031281 $ $0 $@
9041282
9051283 _ACEOF
1284 exec 5>>config.log
9061285 {
9071286 cat <<_ASUNAME
9081287 ## --------- ##
9211300 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
9221301 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
9231302 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
924 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1303 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
9251304 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
9261305 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
9271306 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
9351314 test -z "$as_dir" && as_dir=.
9361315 echo "PATH: $as_dir"
9371316 done
1317 IFS=$as_save_IFS
9381318
9391319 } >&5
9401320
9561336 ac_configure_args=
9571337 ac_configure_args0=
9581338 ac_configure_args1=
959 ac_sep=
9601339 ac_must_keep_next=false
9611340 for ac_pass in 1 2
9621341 do
9671346 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9681347 | -silent | --silent | --silen | --sile | --sil)
9691348 continue ;;
970 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1349 *\'*)
9711350 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9721351 esac
9731352 case $ac_pass in
9891368 -* ) ac_must_keep_next=true ;;
9901369 esac
9911370 fi
992 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
993 # Get rid of the leading space.
994 ac_sep=" "
1371 ac_configure_args="$ac_configure_args '$ac_arg'"
9951372 ;;
9961373 esac
9971374 done
10021379 # When interrupted or exit'd, cleanup temporary files, and complete
10031380 # config.log. We remove comments because anyway the quotes in there
10041381 # would cause problems or look ugly.
1005 # WARNING: Be sure not to use single quotes in there, as some shells,
1006 # such as our DU 5.0 friend, will then `close' the trap.
1382 # WARNING: Use '\'' to represent an apostrophe within the trap.
1383 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
10071384 trap 'exit_status=$?
10081385 # Save into config.log some information that might help in debugging.
10091386 {
10161393 _ASBOX
10171394 echo
10181395 # The following way of writing the cache mishandles newlines in values,
1019 {
1396 (
1397 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1398 eval ac_val=\$$ac_var
1399 case $ac_val in #(
1400 *${as_nl}*)
1401 case $ac_var in #(
1402 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1403 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1404 esac
1405 case $ac_var in #(
1406 _ | IFS | as_nl) ;; #(
1407 *) $as_unset $ac_var ;;
1408 esac ;;
1409 esac
1410 done
10201411 (set) 2>&1 |
1021 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1022 *ac_space=\ *)
1412 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1413 *${as_nl}ac_space=\ *)
10231414 sed -n \
1024 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1025 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1415 "s/'\''/'\''\\\\'\'''\''/g;
1416 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1417 ;; #(
1418 *)
1419 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10261420 ;;
1027 *)
1028 sed -n \
1029 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1030 ;;
1031 esac;
1032 }
1421 esac |
1422 sort
1423 )
10331424 echo
10341425
10351426 cat <<\_ASBOX
10401431 echo
10411432 for ac_var in $ac_subst_vars
10421433 do
1043 eval ac_val=$`echo $ac_var`
1044 echo "$ac_var='"'"'$ac_val'"'"'"
1434 eval ac_val=\$$ac_var
1435 case $ac_val in
1436 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1437 esac
1438 echo "$ac_var='\''$ac_val'\''"
10451439 done | sort
10461440 echo
10471441
10481442 if test -n "$ac_subst_files"; then
10491443 cat <<\_ASBOX
1050 ## ------------- ##
1051 ## Output files. ##
1052 ## ------------- ##
1444 ## ------------------- ##
1445 ## File substitutions. ##
1446 ## ------------------- ##
10531447 _ASBOX
10541448 echo
10551449 for ac_var in $ac_subst_files
10561450 do
1057 eval ac_val=$`echo $ac_var`
1058 echo "$ac_var='"'"'$ac_val'"'"'"
1451 eval ac_val=\$$ac_var
1452 case $ac_val in
1453 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1454 esac
1455 echo "$ac_var='\''$ac_val'\''"
10591456 done | sort
10601457 echo
10611458 fi
10671464 ## ----------- ##
10681465 _ASBOX
10691466 echo
1070 sed "/^$/d" confdefs.h | sort
1467 cat confdefs.h
10711468 echo
10721469 fi
10731470 test "$ac_signal" != 0 &&
10741471 echo "$as_me: caught signal $ac_signal"
10751472 echo "$as_me: exit $exit_status"
10761473 } >&5
1077 rm -f core *.core &&
1078 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1474 rm -f core *.core core.conftest.* &&
1475 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
10791476 exit $exit_status
1080 ' 0
1477 ' 0
10811478 for ac_signal in 1 2 13 15; do
10821479 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
10831480 done
10841481 ac_signal=0
10851482
10861483 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1087 rm -rf conftest* confdefs.h
1088 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1089 echo >confdefs.h
1484 rm -f -r conftest* confdefs.h
10901485
10911486 # Predefined preprocessor variables.
10921487
11171512
11181513 # Let the site file select an alternate cache file if it wants to.
11191514 # Prefer explicitly selected file to automatically selected ones.
1120 if test -z "$CONFIG_SITE"; then
1121 if test "x$prefix" != xNONE; then
1122 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1123 else
1124 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1125 fi
1126 fi
1127 for ac_site_file in $CONFIG_SITE; do
1515 if test -n "$CONFIG_SITE"; then
1516 set x "$CONFIG_SITE"
1517 elif test "x$prefix" != xNONE; then
1518 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1519 else
1520 set x "$ac_default_prefix/share/config.site" \
1521 "$ac_default_prefix/etc/config.site"
1522 fi
1523 shift
1524 for ac_site_file
1525 do
11281526 if test -r "$ac_site_file"; then
11291527 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
11301528 echo "$as_me: loading site script $ac_site_file" >&6;}
11401538 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
11411539 echo "$as_me: loading cache $cache_file" >&6;}
11421540 case $cache_file in
1143 [\\/]* | ?:[\\/]* ) . $cache_file;;
1144 *) . ./$cache_file;;
1541 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1542 *) . "./$cache_file";;
11451543 esac
11461544 fi
11471545 else
11531551 # Check that the precious variables saved in the cache have kept the same
11541552 # value.
11551553 ac_cache_corrupted=false
1156 for ac_var in `(set) 2>&1 |
1157 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1554 for ac_var in $ac_precious_vars; do
11581555 eval ac_old_set=\$ac_cv_env_${ac_var}_set
11591556 eval ac_new_set=\$ac_env_${ac_var}_set
1160 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1161 eval ac_new_val="\$ac_env_${ac_var}_value"
1557 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1558 eval ac_new_val=\$ac_env_${ac_var}_value
11621559 case $ac_old_set,$ac_new_set in
11631560 set,)
11641561 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
11831580 # Pass precious variables to config.status.
11841581 if test "$ac_new_set" = set; then
11851582 case $ac_new_val in
1186 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1187 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1583 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
11881584 *) ac_arg=$ac_var=$ac_new_val ;;
11891585 esac
11901586 case " $ac_configure_args " in
12011597 { (exit 1); exit 1; }; }
12021598 fi
12031599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
12041616 ac_ext=c
12051617 ac_cpp='$CPP $CPPFLAGS'
12061618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12091621
12101622
12111623
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
12291624 am__api_version="1.7"
12301625 ac_aux_dir=
1231 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1232 if test -f $ac_dir/install-sh; then
1626 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1627 if test -f "$ac_dir/install-sh"; then
12331628 ac_aux_dir=$ac_dir
12341629 ac_install_sh="$ac_aux_dir/install-sh -c"
12351630 break
1236 elif test -f $ac_dir/install.sh; then
1631 elif test -f "$ac_dir/install.sh"; then
12371632 ac_aux_dir=$ac_dir
12381633 ac_install_sh="$ac_aux_dir/install.sh -c"
12391634 break
1240 elif test -f $ac_dir/shtool; then
1635 elif test -f "$ac_dir/shtool"; then
12411636 ac_aux_dir=$ac_dir
12421637 ac_install_sh="$ac_aux_dir/shtool install -c"
12431638 break
12441639 fi
12451640 done
12461641 if test -z "$ac_aux_dir"; then
1247 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1248 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1642 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1643 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
12491644 { (exit 1); exit 1; }; }
12501645 fi
1251 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1252 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1253 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1646
1647 # These three variables are undocumented and unsupported,
1648 # and are intended to be withdrawn in a future Autoconf release.
1649 # They can cause serious problems if a builder's source tree is in a directory
1650 # whose full name contains unusual characters.
1651 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1652 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1653 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1654
12541655
12551656 # Find a good install program. We prefer a C program (faster),
12561657 # so one script is as good as another. But avoid the broken or
12651666 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12661667 # OS/2's system install, which has a completely different semantic
12671668 # ./install, which can be erroneously created by make from ./install.sh.
1268 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1269 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1669 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1670 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
12701671 if test -z "$INSTALL"; then
12711672 if test "${ac_cv_path_install+set}" = set; then
12721673 echo $ECHO_N "(cached) $ECHO_C" >&6
12881689 # by default.
12891690 for ac_prog in ginstall scoinst install; do
12901691 for ac_exec_ext in '' $ac_executable_extensions; do
1291 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1692 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
12921693 if test $ac_prog = install &&
12931694 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12941695 # AIX install. It has an incompatible calling convention.
13071708 ;;
13081709 esac
13091710 done
1711 IFS=$as_save_IFS
13101712
13111713
13121714 fi
13131715 if test "${ac_cv_path_install+set}" = set; then
13141716 INSTALL=$ac_cv_path_install
13151717 else
1316 # As a last resort, use the slow shell script. We don't cache a
1317 # path for INSTALL within a source directory, because that will
1718 # As a last resort, use the slow shell script. Don't cache a
1719 # value for INSTALL within a source directory, because that will
13181720 # break other packages using the cache if that directory is
1319 # removed, or if the path is relative.
1721 # removed, or if the value is a relative name.
13201722 INSTALL=$ac_install_sh
13211723 fi
13221724 fi
1323 echo "$as_me:$LINENO: result: $INSTALL" >&5
1324 echo "${ECHO_T}$INSTALL" >&6
1725 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1726 echo "${ECHO_T}$INSTALL" >&6; }
13251727
13261728 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13271729 # It thinks the first close brace ends the variable substitution.
13311733
13321734 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13331735
1334 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1335 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1736 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1737 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
13361738 # Just in case
13371739 sleep 1
13381740 echo timestamp > conftest.file
13741776 Check your system clock" >&2;}
13751777 { (exit 1); exit 1; }; }
13761778 fi
1377 echo "$as_me:$LINENO: result: yes" >&5
1378 echo "${ECHO_T}yes" >&6
1779 { echo "$as_me:$LINENO: result: yes" >&5
1780 echo "${ECHO_T}yes" >&6; }
13791781 test "$program_prefix" != NONE &&
1380 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1782 program_transform_name="s&^&$program_prefix&;$program_transform_name"
13811783 # Use a double $ so make ignores it.
13821784 test "$program_suffix" != NONE &&
1383 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1785 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
13841786 # Double any \ or $. echo might interpret backslashes.
13851787 # By default was `s,x,x', remove it if useless.
13861788 cat <<\_ACEOF >conftest.sed
13871789 s/[\\$]/&&/g;s/;s,x,x,$//
13881790 _ACEOF
13891791 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1390 rm conftest.sed
1792 rm -f conftest.sed
13911793
13921794
13931795 # expand $ac_aux_dir to an absolute path
14071809 do
14081810 # Extract the first word of "$ac_prog", so it can be a program name with args.
14091811 set dummy $ac_prog; ac_word=$2
1410 echo "$as_me:$LINENO: checking for $ac_word" >&5
1411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14121814 if test "${ac_cv_prog_AWK+set}" = set; then
14131815 echo $ECHO_N "(cached) $ECHO_C" >&6
14141816 else
14211823 IFS=$as_save_IFS
14221824 test -z "$as_dir" && as_dir=.
14231825 for ac_exec_ext in '' $ac_executable_extensions; do
1424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14251827 ac_cv_prog_AWK="$ac_prog"
14261828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14271829 break 2
14281830 fi
14291831 done
14301832 done
1833 IFS=$as_save_IFS
14311834
14321835 fi
14331836 fi
14341837 AWK=$ac_cv_prog_AWK
14351838 if test -n "$AWK"; then
1436 echo "$as_me:$LINENO: result: $AWK" >&5
1437 echo "${ECHO_T}$AWK" >&6
1438 else
1439 echo "$as_me:$LINENO: result: no" >&5
1440 echo "${ECHO_T}no" >&6
1441 fi
1839 { echo "$as_me:$LINENO: result: $AWK" >&5
1840 echo "${ECHO_T}$AWK" >&6; }
1841 else
1842 { echo "$as_me:$LINENO: result: no" >&5
1843 echo "${ECHO_T}no" >&6; }
1844 fi
1845
14421846
14431847 test -n "$AWK" && break
14441848 done
14451849
1446 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1447 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1448 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1449 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1850 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1851 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
1852 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/^a-zA-Z0-9_/_/g'`
1853 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
14501854 echo $ECHO_N "(cached) $ECHO_C" >&6
14511855 else
14521856 cat >conftest.make <<\_ACEOF
1857 SHELL = /bin/sh
14531858 all:
1454 @echo 'ac_maketemp="$(MAKE)"'
1859 @echo '@@@%%%=$(MAKE)=@@@%%%'
14551860 _ACEOF
14561861 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1457 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1458 if test -n "$ac_maketemp"; then
1459 eval ac_cv_prog_make_${ac_make}_set=yes
1460 else
1461 eval ac_cv_prog_make_${ac_make}_set=no
1462 fi
1862 case `${MAKE-make} -f conftest.make 2>/dev/null` in
1863 *@@@%%%=?*=@@@%%%*)
1864 eval ac_cv_prog_make_${ac_make}_set=yes;;
1865 *)
1866 eval ac_cv_prog_make_${ac_make}_set=no;;
1867 esac
14631868 rm -f conftest.make
14641869 fi
1465 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1466 echo "$as_me:$LINENO: result: yes" >&5
1467 echo "${ECHO_T}yes" >&6
1870 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1871 { echo "$as_me:$LINENO: result: yes" >&5
1872 echo "${ECHO_T}yes" >&6; }
14681873 SET_MAKE=
14691874 else
1470 echo "$as_me:$LINENO: result: no" >&5
1471 echo "${ECHO_T}no" >&6
1875 { echo "$as_me:$LINENO: result: no" >&5
1876 echo "${ECHO_T}no" >&6; }
14721877 SET_MAKE="MAKE=${MAKE-make}"
14731878 fi
14741879
15011906
15021907 # Define the identity of the package.
15031908 PACKAGE=bluez-firmware
1504 VERSION=1.0
1909 VERSION=1.2
15051910
15061911
15071912 cat >>confdefs.h <<_ACEOF
15421947 if test -n "$ac_tool_prefix"; then
15431948 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15441949 set dummy ${ac_tool_prefix}strip; ac_word=$2
1545 echo "$as_me:$LINENO: checking for $ac_word" >&5
1546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1950 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15471952 if test "${ac_cv_prog_STRIP+set}" = set; then
15481953 echo $ECHO_N "(cached) $ECHO_C" >&6
15491954 else
15561961 IFS=$as_save_IFS
15571962 test -z "$as_dir" && as_dir=.
15581963 for ac_exec_ext in '' $ac_executable_extensions; do
1559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15601965 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
15611966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15621967 break 2
15631968 fi
15641969 done
15651970 done
1971 IFS=$as_save_IFS
15661972
15671973 fi
15681974 fi
15691975 STRIP=$ac_cv_prog_STRIP
15701976 if test -n "$STRIP"; then
1571 echo "$as_me:$LINENO: result: $STRIP" >&5
1572 echo "${ECHO_T}$STRIP" >&6
1573 else
1574 echo "$as_me:$LINENO: result: no" >&5
1575 echo "${ECHO_T}no" >&6
1576 fi
1977 { echo "$as_me:$LINENO: result: $STRIP" >&5
1978 echo "${ECHO_T}$STRIP" >&6; }
1979 else
1980 { echo "$as_me:$LINENO: result: no" >&5
1981 echo "${ECHO_T}no" >&6; }
1982 fi
1983
15771984
15781985 fi
15791986 if test -z "$ac_cv_prog_STRIP"; then
15801987 ac_ct_STRIP=$STRIP
15811988 # Extract the first word of "strip", so it can be a program name with args.
15821989 set dummy strip; ac_word=$2
1583 echo "$as_me:$LINENO: checking for $ac_word" >&5
1584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1990 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15851992 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15861993 echo $ECHO_N "(cached) $ECHO_C" >&6
15871994 else
15942001 IFS=$as_save_IFS
15952002 test -z "$as_dir" && as_dir=.
15962003 for ac_exec_ext in '' $ac_executable_extensions; do
1597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15982005 ac_cv_prog_ac_ct_STRIP="strip"
15992006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16002007 break 2
16012008 fi
16022009 done
16032010 done
1604
1605 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2011 IFS=$as_save_IFS
2012
16062013 fi
16072014 fi
16082015 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
16092016 if test -n "$ac_ct_STRIP"; then
1610 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1611 echo "${ECHO_T}$ac_ct_STRIP" >&6
1612 else
1613 echo "$as_me:$LINENO: result: no" >&5
1614 echo "${ECHO_T}no" >&6
1615 fi
1616
1617 STRIP=$ac_ct_STRIP
2017 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2018 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2019 else
2020 { echo "$as_me:$LINENO: result: no" >&5
2021 echo "${ECHO_T}no" >&6; }
2022 fi
2023
2024 if test "x$ac_ct_STRIP" = x; then
2025 STRIP=":"
2026 else
2027 case $cross_compiling:$ac_tool_warned in
2028 yes:)
2029 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2030 whose name does not start with the host triplet. If you think this
2031 configuration is useful to you, please write to autoconf@gnu.org." >&5
2032 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2033 whose name does not start with the host triplet. If you think this
2034 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2035 ac_tool_warned=yes ;;
2036 esac
2037 STRIP=$ac_ct_STRIP
2038 fi
16182039 else
16192040 STRIP="$ac_cv_prog_STRIP"
16202041 fi
16282049
16292050
16302051
1631 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1632 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1633 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2052 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2053 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2054 # Check whether --enable-maintainer-mode was given.
16342055 if test "${enable_maintainer_mode+set}" = set; then
1635 enableval="$enable_maintainer_mode"
1636 USE_MAINTAINER_MODE=$enableval
2056 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
16372057 else
16382058 USE_MAINTAINER_MODE=no
1639 fi;
1640 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1641 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2059 fi
2060
2061 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2062 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
16422063
16432064
16442065 if test $USE_MAINTAINER_MODE = yes; then
16682089 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
16692090 # OS/2's system install, which has a completely different semantic
16702091 # ./install, which can be erroneously created by make from ./install.sh.
1671 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1672 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2092 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2093 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
16732094 if test -z "$INSTALL"; then
16742095 if test "${ac_cv_path_install+set}" = set; then
16752096 echo $ECHO_N "(cached) $ECHO_C" >&6
16912112 # by default.
16922113 for ac_prog in ginstall scoinst install; do
16932114 for ac_exec_ext in '' $ac_executable_extensions; do
1694 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2115 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
16952116 if test $ac_prog = install &&
16962117 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
16972118 # AIX install. It has an incompatible calling convention.
17102131 ;;
17112132 esac
17122133 done
2134 IFS=$as_save_IFS
17132135
17142136
17152137 fi
17162138 if test "${ac_cv_path_install+set}" = set; then
17172139 INSTALL=$ac_cv_path_install
17182140 else
1719 # As a last resort, use the slow shell script. We don't cache a
1720 # path for INSTALL within a source directory, because that will
2141 # As a last resort, use the slow shell script. Don't cache a
2142 # value for INSTALL within a source directory, because that will
17212143 # break other packages using the cache if that directory is
1722 # removed, or if the path is relative.
2144 # removed, or if the value is a relative name.
17232145 INSTALL=$ac_install_sh
17242146 fi
17252147 fi
1726 echo "$as_me:$LINENO: result: $INSTALL" >&5
1727 echo "${ECHO_T}$INSTALL" >&6
2148 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2149 echo "${ECHO_T}$INSTALL" >&6; }
17282150
17292151 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
17302152 # It thinks the first close brace ends the variable substitution.
17352157 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
17362158
17372159
1738 ac_config_files="$ac_config_files Makefile"
2160 ac_config_files="$ac_config_files Makefile"
2161
17392162 cat >confcache <<\_ACEOF
17402163 # This file is a shell script that caches the results of configure
17412164 # tests run on this system so they can be shared between configure
17542177
17552178 # The following way of writing the cache mishandles newlines in values,
17562179 # but we know of no workaround that is simple, portable, and efficient.
1757 # So, don't put newlines in cache variables' values.
2180 # So, we kill variables containing newlines.
17582181 # Ultrix sh set writes to stderr and can't be redirected directly,
17592182 # and sets the high bit in the cache file unless we assign to the vars.
1760 {
2183 (
2184 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
2185 eval ac_val=\$$ac_var
2186 case $ac_val in #(
2187 *${as_nl}*)
2188 case $ac_var in #(
2189 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2190 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2191 esac
2192 case $ac_var in #(
2193 _ | IFS | as_nl) ;; #(
2194 *) $as_unset $ac_var ;;
2195 esac ;;
2196 esac
2197 done
2198
17612199 (set) 2>&1 |
1762 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1763 *ac_space=\ *)
2200 case $as_nl`(ac_space=' '; set) 2>&1` in #(
2201 *${as_nl}ac_space=\ *)
17642202 # `set' does not quote correctly, so add quotes (double-quote
17652203 # substitution turns \\\\ into \\, and sed turns \\ into \).
17662204 sed -n \
17672205 "s/'/'\\\\''/g;
17682206 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1769 ;;
2207 ;; #(
17702208 *)
17712209 # `set' quotes correctly as required by POSIX, so do not add quotes.
1772 sed -n \
1773 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
2210 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17742211 ;;
1775 esac;
1776 } |
2212 esac |
2213 sort
2214 ) |
17772215 sed '
2216 /^ac_cv_env_/b end
17782217 t clear
1779 : clear
2218 :clear
17802219 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17812220 t end
1782 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
1783 : end' >>confcache
1784 if diff $cache_file confcache >/dev/null 2>&1; then :; else
1785 if test -w $cache_file; then
1786 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
2221 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2222 :end' >>confcache
2223 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
2224 if test -w "$cache_file"; then
2225 test "x$cache_file" != "x/dev/null" &&
2226 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
2227 echo "$as_me: updating cache $cache_file" >&6;}
17872228 cat confcache >$cache_file
17882229 else
1789 echo "not updating unwritable cache $cache_file"
2230 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
2231 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17902232 fi
17912233 fi
17922234 rm -f confcache
17942236 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17952237 # Let make expand exec_prefix.
17962238 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1797
1798 # VPATH may cause trouble with some makes, so we remove $(srcdir),
1799 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
1800 # trailing colons and then remove the whole line if VPATH becomes empty
1801 # (actually we leave an empty line to preserve line numbers).
1802 if test "x$srcdir" = x.; then
1803 ac_vpsub='/^[ ]*VPATH[ ]*=/{
1804 s/:*\$(srcdir):*/:/;
1805 s/:*\${srcdir}:*/:/;
1806 s/:*@srcdir@:*/:/;
1807 s/^\([^=]*=[ ]*\):*/\1/;
1808 s/:*$//;
1809 s/^[^=]*=[ ]*$//;
1810 }'
1811 fi
18122239
18132240 # Transform confdefs.h into DEFS.
18142241 # Protect against shell expansion while executing Makefile rules.
18152242 # Protect against Makefile macro expansion.
18162243 #
18172244 # If the first sed substitution is executed (which looks for macros that
1818 # take arguments), then we branch to the quote section. Otherwise,
2245 # take arguments), then branch to the quote section. Otherwise,
18192246 # look for a macro that doesn't take arguments.
1820 cat >confdef2opt.sed <<\_ACEOF
2247 ac_script='
18212248 t clear
1822 : clear
1823 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
2249 :clear
2250 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
18242251 t quote
1825 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
2252 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
18262253 t quote
1827 d
1828 : quote
1829 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
1830 s,\[,\\&,g
1831 s,\],\\&,g
1832 s,\$,$$,g
1833 p
1834 _ACEOF
1835 # We use echo to avoid assuming a particular line-breaking character.
1836 # The extra dot is to prevent the shell from consuming trailing
1837 # line-breaks from the sub-command output. A line-break within
1838 # single-quotes doesn't work because, if this script is created in a
1839 # platform that uses two characters for line-breaks (e.g., DOS), tr
1840 # would break.
1841 ac_LF_and_DOT=`echo; echo .`
1842 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
1843 rm -f confdef2opt.sed
2254 b any
2255 :quote
2256 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
2257 s/\[/\\&/g
2258 s/\]/\\&/g
2259 s/\$/$$/g
2260 H
2261 :any
2262 ${
2263 g
2264 s/^\n//
2265 s/\n/ /g
2266 p
2267 }
2268 '
2269 DEFS=`sed -n "$ac_script" confdefs.h`
18442270
18452271
18462272 ac_libobjs=
18472273 ac_ltlibobjs=
18482274 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18492275 # 1. Remove the extension, and $U if already installed.
1850 ac_i=`echo "$ac_i" |
1851 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
1852 # 2. Add them.
1853 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
1854 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
2276 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
2277 ac_i=`echo "$ac_i" | sed "$ac_script"`
2278 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
2279 # will be set to the directory where LIBOBJS objects are built.
2280 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
2281 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18552282 done
18562283 LIBOBJS=$ac_libobjs
18572284
18962323 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18972324 # is contrary to our usage. Disable this feature.
18982325 alias -g '${1+"$@"}'='"$@"'
1899 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
1900 set -o posix
1901 fi
2326 setopt NO_GLOB_SUBST
2327 else
2328 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
2329 fi
2330 BIN_SH=xpg4; export BIN_SH # for Tru64
19022331 DUALCASE=1; export DUALCASE # for MKS sh
19032332
1904 # Support unset when possible.
1905 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1906 as_unset=unset
1907 else
1908 as_unset=false
1909 fi
1910
1911
1912 # Work around bugs in pre-3.0 UWIN ksh.
1913 $as_unset ENV MAIL MAILPATH
1914 PS1='$ '
1915 PS2='> '
1916 PS4='+ '
1917
1918 # NLS nuisances.
1919 for as_var in \
1920 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
1921 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
1922 LC_TELEPHONE LC_TIME
1923 do
1924 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
1925 eval $as_var=C; export $as_var
1926 else
1927 $as_unset $as_var
1928 fi
1929 done
1930
1931 # Required to use basename.
1932 if expr a : '\(a\)' >/dev/null 2>&1; then
1933 as_expr=expr
1934 else
1935 as_expr=false
1936 fi
1937
1938 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
1939 as_basename=basename
1940 else
1941 as_basename=false
1942 fi
1943
1944
1945 # Name of the executable.
1946 as_me=`$as_basename "$0" ||
1947 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
1948 X"$0" : 'X\(//\)$' \| \
1949 X"$0" : 'X\(/\)$' \| \
1950 . : '\(.\)' 2>/dev/null ||
1951 echo X/"$0" |
1952 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
1953 /^X\/\(\/\/\)$/{ s//\1/; q; }
1954 /^X\/\(\/\).*/{ s//\1/; q; }
1955 s/.*/./; q'`
1956
1957
1958 # PATH needs CR, and LINENO needs CR and PATH.
2333
2334 # PATH needs CR
19592335 # Avoid depending upon Character Ranges.
19602336 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19612337 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19762352 rm -f conf$$.sh
19772353 fi
19782354
1979
1980 as_lineno_1=$LINENO
1981 as_lineno_2=$LINENO
1982 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
1983 test "x$as_lineno_1" != "x$as_lineno_2" &&
1984 test "x$as_lineno_3" = "x$as_lineno_2" || {
1985 # Find who we are. Look in the path if we contain no path at all
1986 # relative or not.
1987 case $0 in
1988 *[\\/]* ) as_myself=$0 ;;
1989 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355 # Support unset when possible.
2356 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
2357 as_unset=unset
2358 else
2359 as_unset=false
2360 fi
2361
2362
2363 # IFS
2364 # We need space, tab and new line, in precisely that order. Quoting is
2365 # there to prevent editors from complaining about space-tab.
2366 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
2367 # splitting by setting IFS to empty value.)
2368 as_nl='
2369 '
2370 IFS=" "" $as_nl"
2371
2372 # Find who we are. Look in the path if we contain no directory separator.
2373 case $0 in
2374 *[\\/]* ) as_myself=$0 ;;
2375 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19902376 for as_dir in $PATH
19912377 do
19922378 IFS=$as_save_IFS
19932379 test -z "$as_dir" && as_dir=.
19942380 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19952381 done
1996
1997 ;;
1998 esac
1999 # We did not find ourselves, most probably we were run as `sh COMMAND'
2000 # in which case we are not to be found in the path.
2001 if test "x$as_myself" = x; then
2002 as_myself=$0
2382 IFS=$as_save_IFS
2383
2384 ;;
2385 esac
2386 # We did not find ourselves, most probably we were run as `sh COMMAND'
2387 # in which case we are not to be found in the path.
2388 if test "x$as_myself" = x; then
2389 as_myself=$0
2390 fi
2391 if test ! -f "$as_myself"; then
2392 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
2393 { (exit 1); exit 1; }
2394 fi
2395
2396 # Work around bugs in pre-3.0 UWIN ksh.
2397 for as_var in ENV MAIL MAILPATH
2398 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
2399 done
2400 PS1='$ '
2401 PS2='> '
2402 PS4='+ '
2403