wok-next view openjade/stuff/patches/openjade-1.3.2-upstream-1.patch @ rev 20983

Small updates
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Sep 28 13:48:52 2018 +0300 (2018-09-28)
parents
children
line source
1 Submitted By: Bruce Dubbs <bdubbs_at_linuxfromscratch_dot_org>
2 Date: 2017-02-19
3 Initial Package Version: 1.3.2
4 Upstream Status: In debian files. Otherwize package is unmantained.
5 Origin: Debian
6 Description: Fixes segmentation faults with newer tool chain.
8 --- openjade1.3-1.3.2.orig/Makefile.prog.in
9 +++ openjade1.3-1.3.2/Makefile.prog.in
10 @@ -13,6 +13,7 @@
11 ALL_LIBS = $(XLIBS) $(LIBS)
12 Makefile.lt:
13 echo 'LT_LIBS='`echo $(ALL_LIBS)|sed 's/\.a/.la/g'` >Makefile.lt
14 + echo '.PHONY: -losp' >>Makefile.lt
16 PROG:=$(shell echo "$(PROG)" | sed '@program_transform_name@')
18 --- openjade1.3-1.3.2.orig/config.guess
19 +++ openjade1.3-1.3.2/config.guess
20 @@ -0,0 +1,1420 @@
21 +#! /bin/sh
22 +# Attempt to guess a canonical system name.
23 +# Copyright 1992-2014 Free Software Foundation, Inc.
24 +
25 +timestamp='2014-03-23'
26 +
27 +# This file is free software; you can redistribute it and/or modify it
28 +# under the terms of the GNU General Public License as published by
29 +# the Free Software Foundation; either version 3 of the License, or
30 +# (at your option) any later version.
31 +#
32 +# This program is distributed in the hope that it will be useful, but
33 +# WITHOUT ANY WARRANTY; without even the implied warranty of
34 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
35 +# General Public License for more details.
36 +#
37 +# You should have received a copy of the GNU General Public License
38 +# along with this program; if not, see <http://www.gnu.org/licenses/>.
39 +#
40 +# As a special exception to the GNU General Public License, if you
41 +# distribute this file as part of a program that contains a
42 +# configuration script generated by Autoconf, you may include it under
43 +# the same distribution terms that you use for the rest of that
44 +# program. This Exception is an additional permission under section 7
45 +# of the GNU General Public License, version 3 ("GPLv3").
46 +#
47 +# Originally written by Per Bothner.
48 +#
49 +# You can get the latest version of this script from:
50 +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
51 +#
52 +# Please send patches with a ChangeLog entry to config-patches@gnu.org.
53 +
54 +
55 +me=`echo "$0" | sed -e 's,.*/,,'`
56 +
57 +usage="\
58 +Usage: $0 [OPTION]
59 +
60 +Output the configuration name of the system \`$me' is run on.
61 +
62 +Operation modes:
63 + -h, --help print this help, then exit
64 + -t, --time-stamp print date of last modification, then exit
65 + -v, --version print version number, then exit
66 +
67 +Report bugs and patches to <config-patches@gnu.org>."
68 +
69 +version="\
70 +GNU config.guess ($timestamp)
71 +
72 +Originally written by Per Bothner.
73 +Copyright 1992-2014 Free Software Foundation, Inc.
74 +
75 +This is free software; see the source for copying conditions. There is NO
76 +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
77 +
78 +help="
79 +Try \`$me --help' for more information."
80 +
81 +# Parse command line
82 +while test $# -gt 0 ; do
83 + case $1 in
84 + --time-stamp | --time* | -t )
85 + echo "$timestamp" ; exit ;;
86 + --version | -v )
87 + echo "$version" ; exit ;;
88 + --help | --h* | -h )
89 + echo "$usage"; exit ;;
90 + -- ) # Stop option processing
91 + shift; break ;;
92 + - ) # Use stdin as input.
93 + break ;;
94 + -* )
95 + echo "$me: invalid option $1$help" >&2
96 + exit 1 ;;
97 + * )
98 + break ;;
99 + esac
100 +done
101 +
102 +if test $# != 0; then
103 + echo "$me: too many arguments$help" >&2
104 + exit 1
105 +fi
106 +
107 +trap 'exit 1' 1 2 15
108 +
109 +# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
110 +# compiler to aid in system detection is discouraged as it requires
111 +# temporary files to be created and, as you can see below, it is a
112 +# headache to deal with in a portable fashion.
113 +
114 +# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
115 +# use `HOST_CC' if defined, but it is deprecated.
116 +
117 +# Portable tmp directory creation inspired by the Autoconf team.
118 +
119 +set_cc_for_build='
120 +trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
121 +trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
122 +: ${TMPDIR=/tmp} ;
123 + { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
124 + { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
125 + { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
126 + { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
127 +dummy=$tmp/dummy ;
128 +tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
129 +case $CC_FOR_BUILD,$HOST_CC,$CC in
130 + ,,) echo "int x;" > $dummy.c ;
131 + for c in cc gcc c89 c99 ; do
132 + if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
133 + CC_FOR_BUILD="$c"; break ;
134 + fi ;
135 + done ;
136 + if test x"$CC_FOR_BUILD" = x ; then
137 + CC_FOR_BUILD=no_compiler_found ;
138 + fi
139 + ;;
140 + ,,*) CC_FOR_BUILD=$CC ;;
141 + ,*,*) CC_FOR_BUILD=$HOST_CC ;;
142 +esac ; set_cc_for_build= ;'
143 +
144 +# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
145 +# (ghazi@noc.rutgers.edu 1994-08-24)
146 +if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
147 + PATH=$PATH:/.attbin ; export PATH
148 +fi
149 +
150 +UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
151 +UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
152 +UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
153 +UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
154 +
155 +case "${UNAME_SYSTEM}" in
156 +Linux|GNU|GNU/*)
157 + # If the system lacks a compiler, then just pick glibc.
158 + # We could probably try harder.
159 + LIBC=gnu
160 +
161 + eval $set_cc_for_build
162 + cat <<-EOF > $dummy.c
163 + #include <features.h>
164 + #if defined(__UCLIBC__)
165 + LIBC=uclibc
166 + #elif defined(__dietlibc__)
167 + LIBC=dietlibc
168 + #else
169 + LIBC=gnu
170 + #endif
171 + EOF
172 + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`
173 + ;;
174 +esac
175 +
176 +# Note: order is significant - the case branches are not exclusive.
177 +
178 +case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
179 + *:NetBSD:*:*)
180 + # NetBSD (nbsd) targets should (where applicable) match one or
181 + # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
182 + # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
183 + # switched to ELF, *-*-netbsd* would select the old
184 + # object file format. This provides both forward
185 + # compatibility and a consistent mechanism for selecting the
186 + # object file format.
187 + #
188 + # Note: NetBSD doesn't particularly care about the vendor
189 + # portion of the name. We always set it to "unknown".
190 + sysctl="sysctl -n hw.machine_arch"
191 + UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
192 + /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
193 + case "${UNAME_MACHINE_ARCH}" in
194 + armeb) machine=armeb-unknown ;;
195 + arm*) machine=arm-unknown ;;
196 + sh3el) machine=shl-unknown ;;
197 + sh3eb) machine=sh-unknown ;;
198 + sh5el) machine=sh5le-unknown ;;
199 + *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
200 + esac
201 + # The Operating System including object format, if it has switched
202 + # to ELF recently, or will in the future.
203 + case "${UNAME_MACHINE_ARCH}" in
204 + arm*|i386|m68k|ns32k|sh3*|sparc|vax)
205 + eval $set_cc_for_build
206 + if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
207 + | grep -q __ELF__
208 + then
209 + # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
210 + # Return netbsd for either. FIX?
211 + os=netbsd
212 + else
213 + os=netbsdelf
214 + fi
215 + ;;
216 + *)
217 + os=netbsd
218 + ;;
219 + esac
220 + # The OS release
221 + # Debian GNU/NetBSD machines have a different userland, and
222 + # thus, need a distinct triplet. However, they do not need
223 + # kernel version information, so it can be replaced with a
224 + # suitable tag, in the style of linux-gnu.
225 + case "${UNAME_VERSION}" in
226 + Debian*)
227 + release='-gnu'
228 + ;;
229 + *)
230 + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
231 + ;;
232 + esac
233 + # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
234 + # contains redundant information, the shorter form:
235 + # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
236 + echo "${machine}-${os}${release}"
237 + exit ;;
238 + *:Bitrig:*:*)
239 + UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
240 + echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
241 + exit ;;
242 + *:OpenBSD:*:*)
243 + UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
244 + echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
245 + exit ;;
246 + *:ekkoBSD:*:*)
247 + echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
248 + exit ;;
249 + *:SolidBSD:*:*)
250 + echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
251 + exit ;;
252 + macppc:MirBSD:*:*)
253 + echo powerpc-unknown-mirbsd${UNAME_RELEASE}
254 + exit ;;
255 + *:MirBSD:*:*)
256 + echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
257 + exit ;;
258 + alpha:OSF1:*:*)
259 + case $UNAME_RELEASE in
260 + *4.0)
261 + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
262 + ;;
263 + *5.*)
264 + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
265 + ;;
266 + esac
267 + # According to Compaq, /usr/sbin/psrinfo has been available on
268 + # OSF/1 and Tru64 systems produced since 1995. I hope that
269 + # covers most systems running today. This code pipes the CPU
270 + # types through head -n 1, so we only detect the type of CPU 0.
271 + ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
272 + case "$ALPHA_CPU_TYPE" in
273 + "EV4 (21064)")
274 + UNAME_MACHINE="alpha" ;;
275 + "EV4.5 (21064)")
276 + UNAME_MACHINE="alpha" ;;
277 + "LCA4 (21066/21068)")
278 + UNAME_MACHINE="alpha" ;;
279 + "EV5 (21164)")
280 + UNAME_MACHINE="alphaev5" ;;
281 + "EV5.6 (21164A)")
282 + UNAME_MACHINE="alphaev56" ;;
283 + "EV5.6 (21164PC)")
284 + UNAME_MACHINE="alphapca56" ;;
285 + "EV5.7 (21164PC)")
286 + UNAME_MACHINE="alphapca57" ;;
287 + "EV6 (21264)")
288 + UNAME_MACHINE="alphaev6" ;;
289 + "EV6.7 (21264A)")
290 + UNAME_MACHINE="alphaev67" ;;
291 + "EV6.8CB (21264C)")
292 + UNAME_MACHINE="alphaev68" ;;
293 + "EV6.8AL (21264B)")
294 + UNAME_MACHINE="alphaev68" ;;
295 + "EV6.8CX (21264D)")
296 + UNAME_MACHINE="alphaev68" ;;
297 + "EV6.9A (21264/EV69A)")
298 + UNAME_MACHINE="alphaev69" ;;
299 + "EV7 (21364)")
300 + UNAME_MACHINE="alphaev7" ;;
301 + "EV7.9 (21364A)")
302 + UNAME_MACHINE="alphaev79" ;;
303 + esac
304 + # A Pn.n version is a patched version.
305 + # A Vn.n version is a released version.
306 + # A Tn.n version is a released field test version.
307 + # A Xn.n version is an unreleased experimental baselevel.
308 + # 1.2 uses "1.2" for uname -r.
309 + echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
310 + # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
311 + exitcode=$?
312 + trap '' 0
313 + exit $exitcode ;;
314 + Alpha\ *:Windows_NT*:*)
315 + # How do we know it's Interix rather than the generic POSIX subsystem?
316 + # Should we change UNAME_MACHINE based on the output of uname instead
317 + # of the specific Alpha model?
318 + echo alpha-pc-interix
319 + exit ;;
320 + 21064:Windows_NT:50:3)
321 + echo alpha-dec-winnt3.5
322 + exit ;;
323 + Amiga*:UNIX_System_V:4.0:*)
324 + echo m68k-unknown-sysv4
325 + exit ;;
326 + *:[Aa]miga[Oo][Ss]:*:*)
327 + echo ${UNAME_MACHINE}-unknown-amigaos
328 + exit ;;
329 + *:[Mm]orph[Oo][Ss]:*:*)
330 + echo ${UNAME_MACHINE}-unknown-morphos
331 + exit ;;
332 + *:OS/390:*:*)
333 + echo i370-ibm-openedition
334 + exit ;;
335 + *:z/VM:*:*)
336 + echo s390-ibm-zvmoe
337 + exit ;;
338 + *:OS400:*:*)
339 + echo powerpc-ibm-os400
340 + exit ;;
341 + arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
342 + echo arm-acorn-riscix${UNAME_RELEASE}
343 + exit ;;
344 + arm*:riscos:*:*|arm*:RISCOS:*:*)
345 + echo arm-unknown-riscos
346 + exit ;;
347 + SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
348 + echo hppa1.1-hitachi-hiuxmpp
349 + exit ;;
350 + Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
351 + # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
352 + if test "`(/bin/universe) 2>/dev/null`" = att ; then
353 + echo pyramid-pyramid-sysv3
354 + else
355 + echo pyramid-pyramid-bsd
356 + fi
357 + exit ;;
358 + NILE*:*:*:dcosx)
359 + echo pyramid-pyramid-svr4
360 + exit ;;
361 + DRS?6000:unix:4.0:6*)
362 + echo sparc-icl-nx6
363 + exit ;;
364 + DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
365 + case `/usr/bin/uname -p` in
366 + sparc) echo sparc-icl-nx7; exit ;;
367 + esac ;;
368 + s390x:SunOS:*:*)
369 + echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
370 + exit ;;
371 + sun4H:SunOS:5.*:*)
372 + echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
373 + exit ;;
374 + sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
375 + echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
376 + exit ;;
377 + i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
378 + echo i386-pc-auroraux${UNAME_RELEASE}
379 + exit ;;
380 + i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
381 + eval $set_cc_for_build
382 + SUN_ARCH="i386"
383 + # If there is a compiler, see if it is configured for 64-bit objects.
384 + # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
385 + # This test works for both compilers.
386 + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
387 + if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
388 + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
389 + grep IS_64BIT_ARCH >/dev/null
390 + then
391 + SUN_ARCH="x86_64"
392 + fi
393 + fi
394 + echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
395 + exit ;;
396 + sun4*:SunOS:6*:*)
397 + # According to config.sub, this is the proper way to canonicalize
398 + # SunOS6. Hard to guess exactly what SunOS6 will be like, but
399 + # it's likely to be more like Solaris than SunOS4.
400 + echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
401 + exit ;;
402 + sun4*:SunOS:*:*)
403 + case "`/usr/bin/arch -k`" in
404 + Series*|S4*)
405 + UNAME_RELEASE=`uname -v`
406 + ;;
407 + esac
408 + # Japanese Language versions have a version number like `4.1.3-JL'.
409 + echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
410 + exit ;;
411 + sun3*:SunOS:*:*)
412 + echo m68k-sun-sunos${UNAME_RELEASE}
413 + exit ;;
414 + sun*:*:4.2BSD:*)
415 + UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
416 + test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
417 + case "`/bin/arch`" in
418 + sun3)
419 + echo m68k-sun-sunos${UNAME_RELEASE}
420 + ;;
421 + sun4)
422 + echo sparc-sun-sunos${UNAME_RELEASE}
423 + ;;
424 + esac
425 + exit ;;
426 + aushp:SunOS:*:*)
427 + echo sparc-auspex-sunos${UNAME_RELEASE}
428 + exit ;;
429 + # The situation for MiNT is a little confusing. The machine name
430 + # can be virtually everything (everything which is not
431 + # "atarist" or "atariste" at least should have a processor
432 + # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
433 + # to the lowercase version "mint" (or "freemint"). Finally
434 + # the system name "TOS" denotes a system which is actually not
435 + # MiNT. But MiNT is downward compatible to TOS, so this should
436 + # be no problem.
437 + atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
438 + echo m68k-atari-mint${UNAME_RELEASE}
439 + exit ;;
440 + atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
441 + echo m68k-atari-mint${UNAME_RELEASE}
442 + exit ;;
443 + *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
444 + echo m68k-atari-mint${UNAME_RELEASE}
445 + exit ;;
446 + milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
447 + echo m68k-milan-mint${UNAME_RELEASE}
448 + exit ;;
449 + hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
450 + echo m68k-hades-mint${UNAME_RELEASE}
451 + exit ;;
452 + *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
453 + echo m68k-unknown-mint${UNAME_RELEASE}
454 + exit ;;
455 + m68k:machten:*:*)
456 + echo m68k-apple-machten${UNAME_RELEASE}
457 + exit ;;
458 + powerpc:machten:*:*)
459 + echo powerpc-apple-machten${UNAME_RELEASE}
460 + exit ;;
461 + RISC*:Mach:*:*)
462 + echo mips-dec-mach_bsd4.3
463 + exit ;;
464 + RISC*:ULTRIX:*:*)
465 + echo mips-dec-ultrix${UNAME_RELEASE}
466 + exit ;;
467 + VAX*:ULTRIX*:*:*)
468 + echo vax-dec-ultrix${UNAME_RELEASE}
469 + exit ;;
470 + 2020:CLIX:*:* | 2430:CLIX:*:*)
471 + echo clipper-intergraph-clix${UNAME_RELEASE}
472 + exit ;;
473 + mips:*:*:UMIPS | mips:*:*:RISCos)
474 + eval $set_cc_for_build
475 + sed 's/^ //' << EOF >$dummy.c
476 +#ifdef __cplusplus
477 +#include <stdio.h> /* for printf() prototype */
478 + int main (int argc, char *argv[]) {
479 +#else
480 + int main (argc, argv) int argc; char *argv[]; {
481 +#endif
482 + #if defined (host_mips) && defined (MIPSEB)
483 + #if defined (SYSTYPE_SYSV)
484 + printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
485 + #endif
486 + #if defined (SYSTYPE_SVR4)
487 + printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
488 + #endif
489 + #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
490 + printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
491 + #endif
492 + #endif
493 + exit (-1);
494 + }
495 +EOF
496 + $CC_FOR_BUILD -o $dummy $dummy.c &&
497 + dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
498 + SYSTEM_NAME=`$dummy $dummyarg` &&
499 + { echo "$SYSTEM_NAME"; exit; }
500 + echo mips-mips-riscos${UNAME_RELEASE}
501 + exit ;;
502 + Motorola:PowerMAX_OS:*:*)
503 + echo powerpc-motorola-powermax
504 + exit ;;
505 + Motorola:*:4.3:PL8-*)
506 + echo powerpc-harris-powermax
507 + exit ;;
508 + Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
509 + echo powerpc-harris-powermax
510 + exit ;;
511 + Night_Hawk:Power_UNIX:*:*)
512 + echo powerpc-harris-powerunix
513 + exit ;;
514 + m88k:CX/UX:7*:*)
515 + echo m88k-harris-cxux7
516 + exit ;;
517 + m88k:*:4*:R4*)
518 + echo m88k-motorola-sysv4
519 + exit ;;
520 + m88k:*:3*:R3*)
521 + echo m88k-motorola-sysv3
522 + exit ;;
523 + AViiON:dgux:*:*)
524 + # DG/UX returns AViiON for all architectures
525 + UNAME_PROCESSOR=`/usr/bin/uname -p`
526 + if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
527 + then
528 + if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
529 + [ ${TARGET_BINARY_INTERFACE}x = x ]
530 + then
531 + echo m88k-dg-dgux${UNAME_RELEASE}
532 + else
533 + echo m88k-dg-dguxbcs${UNAME_RELEASE}
534 + fi
535 + else
536 + echo i586-dg-dgux${UNAME_RELEASE}
537 + fi
538 + exit ;;
539 + M88*:DolphinOS:*:*) # DolphinOS (SVR3)
540 + echo m88k-dolphin-sysv3
541 + exit ;;
542 + M88*:*:R3*:*)
543 + # Delta 88k system running SVR3
544 + echo m88k-motorola-sysv3
545 + exit ;;
546 + XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
547 + echo m88k-tektronix-sysv3
548 + exit ;;
549 + Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
550 + echo m68k-tektronix-bsd
551 + exit ;;
552 + *:IRIX*:*:*)
553 + echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
554 + exit ;;
555 + ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
556 + echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
557 + exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
558 + i*86:AIX:*:*)
559 + echo i386-ibm-aix
560 + exit ;;
561 + ia64:AIX:*:*)
562 + if [ -x /usr/bin/oslevel ] ; then
563 + IBM_REV=`/usr/bin/oslevel`
564 + else
565 + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
566 + fi
567 + echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
568 + exit ;;
569 + *:AIX:2:3)
570 + if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
571 + eval $set_cc_for_build
572 + sed 's/^ //' << EOF >$dummy.c
573 + #include <sys/systemcfg.h>
574 +
575 + main()
576 + {
577 + if (!__power_pc())
578 + exit(1);
579 + puts("powerpc-ibm-aix3.2.5");
580 + exit(0);
581 + }
582 +EOF
583 + if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
584 + then
585 + echo "$SYSTEM_NAME"
586 + else
587 + echo rs6000-ibm-aix3.2.5
588 + fi
589 + elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
590 + echo rs6000-ibm-aix3.2.4
591 + else
592 + echo rs6000-ibm-aix3.2
593 + fi
594 + exit ;;
595 + *:AIX:*:[4567])
596 + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
597 + if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
598 + IBM_ARCH=rs6000
599 + else
600 + IBM_ARCH=powerpc
601 + fi
602 + if [ -x /usr/bin/oslevel ] ; then
603 + IBM_REV=`/usr/bin/oslevel`
604 + else
605 + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
606 + fi
607 + echo ${IBM_ARCH}-ibm-aix${IBM_REV}
608 + exit ;;
609 + *:AIX:*:*)
610 + echo rs6000-ibm-aix
611 + exit ;;
612 + ibmrt:4.4BSD:*|romp-ibm:BSD:*)
613 + echo romp-ibm-bsd4.4
614 + exit ;;
615 + ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
616 + echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
617 + exit ;; # report: romp-ibm BSD 4.3
618 + *:BOSX:*:*)
619 + echo rs6000-bull-bosx
620 + exit ;;
621 + DPX/2?00:B.O.S.:*:*)
622 + echo m68k-bull-sysv3
623 + exit ;;
624 + 9000/[34]??:4.3bsd:1.*:*)
625 + echo m68k-hp-bsd
626 + exit ;;
627 + hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
628 + echo m68k-hp-bsd4.4
629 + exit ;;
630 + 9000/[34678]??:HP-UX:*:*)
631 + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
632 + case "${UNAME_MACHINE}" in
633 + 9000/31? ) HP_ARCH=m68000 ;;
634 + 9000/[34]?? ) HP_ARCH=m68k ;;
635 + 9000/[678][0-9][0-9])
636 + if [ -x /usr/bin/getconf ]; then
637 + sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
638 + sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
639 + case "${sc_cpu_version}" in
640 + 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
641 + 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
642 + 532) # CPU_PA_RISC2_0
643 + case "${sc_kernel_bits}" in
644 + 32) HP_ARCH="hppa2.0n" ;;
645 + 64) HP_ARCH="hppa2.0w" ;;
646 + '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
647 + esac ;;
648 + esac
649 + fi
650 + if [ "${HP_ARCH}" = "" ]; then
651 + eval $set_cc_for_build
652 + sed 's/^ //' << EOF >$dummy.c
653 +
654 + #define _HPUX_SOURCE
655 + #include <stdlib.h>
656 + #include <unistd.h>
657 +
658 + int main ()
659 + {
660 + #if defined(_SC_KERNEL_BITS)
661 + long bits = sysconf(_SC_KERNEL_BITS);
662 + #endif
663 + long cpu = sysconf (_SC_CPU_VERSION);
664 +
665 + switch (cpu)
666 + {
667 + case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
668 + case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
669 + case CPU_PA_RISC2_0:
670 + #if defined(_SC_KERNEL_BITS)
671 + switch (bits)
672 + {
673 + case 64: puts ("hppa2.0w"); break;
674 + case 32: puts ("hppa2.0n"); break;
675 + default: puts ("hppa2.0"); break;
676 + } break;
677 + #else /* !defined(_SC_KERNEL_BITS) */
678 + puts ("hppa2.0"); break;
679 + #endif
680 + default: puts ("hppa1.0"); break;
681 + }
682 + exit (0);
683 + }
684 +EOF
685 + (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
686 + test -z "$HP_ARCH" && HP_ARCH=hppa
687 + fi ;;
688 + esac
689 + if [ ${HP_ARCH} = "hppa2.0w" ]
690 + then
691 + eval $set_cc_for_build
692 +
693 + # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
694 + # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
695 + # generating 64-bit code. GNU and HP use different nomenclature:
696 + #
697 + # $ CC_FOR_BUILD=cc ./config.guess
698 + # => hppa2.0w-hp-hpux11.23
699 + # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
700 + # => hppa64-hp-hpux11.23
701 +
702 + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
703 + grep -q __LP64__
704 + then
705 + HP_ARCH="hppa2.0w"
706 + else
707 + HP_ARCH="hppa64"
708 + fi
709 + fi
710 + echo ${HP_ARCH}-hp-hpux${HPUX_REV}
711 + exit ;;
712 + ia64:HP-UX:*:*)
713 + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
714 + echo ia64-hp-hpux${HPUX_REV}
715 + exit ;;
716 + 3050*:HI-UX:*:*)
717 + eval $set_cc_for_build
718 + sed 's/^ //' << EOF >$dummy.c
719 + #include <unistd.h>
720 + int
721 + main ()
722 + {
723 + long cpu = sysconf (_SC_CPU_VERSION);
724 + /* The order matters, because CPU_IS_HP_MC68K erroneously returns
725 + true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
726 + results, however. */
727 + if (CPU_IS_PA_RISC (cpu))
728 + {
729 + switch (cpu)
730 + {
731 + case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
732 + case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
733 + case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
734 + default: puts ("hppa-hitachi-hiuxwe2"); break;
735 + }
736 + }
737 + else if (CPU_IS_HP_MC68K (cpu))
738 + puts ("m68k-hitachi-hiuxwe2");
739 + else puts ("unknown-hitachi-hiuxwe2");
740 + exit (0);
741 + }
742 +EOF
743 + $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
744 + { echo "$SYSTEM_NAME"; exit; }
745 + echo unknown-hitachi-hiuxwe2
746 + exit ;;
747 + 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
748 + echo hppa1.1-hp-bsd
749 + exit ;;
750 + 9000/8??:4.3bsd:*:*)
751 + echo hppa1.0-hp-bsd
752 + exit ;;
753 + *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
754 + echo hppa1.0-hp-mpeix
755 + exit ;;
756 + hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
757 + echo hppa1.1-hp-osf
758 + exit ;;
759 + hp8??:OSF1:*:*)
760 + echo hppa1.0-hp-osf
761 + exit ;;
762 + i*86:OSF1:*:*)
763 + if [ -x /usr/sbin/sysversion ] ; then
764 + echo ${UNAME_MACHINE}-unknown-osf1mk
765 + else
766 + echo ${UNAME_MACHINE}-unknown-osf1
767 + fi
768 + exit ;;
769 + parisc*:Lites*:*:*)
770 + echo hppa1.1-hp-lites
771 + exit ;;
772 + C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
773 + echo c1-convex-bsd
774 + exit ;;
775 + C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
776 + if getsysinfo -f scalar_acc
777 + then echo c32-convex-bsd
778 + else echo c2-convex-bsd
779 + fi
780 + exit ;;
781 + C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
782 + echo c34-convex-bsd
783 + exit ;;
784 + C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
785 + echo c38-convex-bsd
786 + exit ;;
787 + C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
788 + echo c4-convex-bsd
789 + exit ;;
790 + CRAY*Y-MP:*:*:*)
791 + echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
792 + exit ;;
793 + CRAY*[A-Z]90:*:*:*)
794 + echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
795 + | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
796 + -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
797 + -e 's/\.[^.]*$/.X/'
798 + exit ;;
799 + CRAY*TS:*:*:*)
800 + echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
801 + exit ;;
802 + CRAY*T3E:*:*:*)
803 + echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
804 + exit ;;
805 + CRAY*SV1:*:*:*)
806 + echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
807 + exit ;;
808 + *:UNICOS/mp:*:*)
809 + echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
810 + exit ;;
811 + F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
812 + FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
813 + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
814 + FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
815 + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
816 + exit ;;
817 + 5000:UNIX_System_V:4.*:*)
818 + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
819 + FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
820 + echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
821 + exit ;;
822 + i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
823 + echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
824 + exit ;;
825 + sparc*:BSD/OS:*:*)
826 + echo sparc-unknown-bsdi${UNAME_RELEASE}
827 + exit ;;
828 + *:BSD/OS:*:*)
829 + echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
830 + exit ;;
831 + *:FreeBSD:*:*)
832 + UNAME_PROCESSOR=`/usr/bin/uname -p`
833 + case ${UNAME_PROCESSOR} in
834 + amd64)
835 + echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
836 + *)
837 + echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
838 + esac
839 + exit ;;
840 + i*:CYGWIN*:*)
841 + echo ${UNAME_MACHINE}-pc-cygwin
842 + exit ;;
843 + *:MINGW64*:*)
844 + echo ${UNAME_MACHINE}-pc-mingw64
845 + exit ;;
846 + *:MINGW*:*)
847 + echo ${UNAME_MACHINE}-pc-mingw32
848 + exit ;;
849 + *:MSYS*:*)
850 + echo ${UNAME_MACHINE}-pc-msys
851 + exit ;;
852 + i*:windows32*:*)
853 + # uname -m includes "-pc" on this system.
854 + echo ${UNAME_MACHINE}-mingw32
855 + exit ;;
856 + i*:PW*:*)
857 + echo ${UNAME_MACHINE}-pc-pw32
858 + exit ;;
859 + *:Interix*:*)
860 + case ${UNAME_MACHINE} in
861 + x86)
862 + echo i586-pc-interix${UNAME_RELEASE}
863 + exit ;;
864 + authenticamd | genuineintel | EM64T)
865 + echo x86_64-unknown-interix${UNAME_RELEASE}
866 + exit ;;
867 + IA64)
868 + echo ia64-unknown-interix${UNAME_RELEASE}
869 + exit ;;
870 + esac ;;
871 + [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
872 + echo i${UNAME_MACHINE}-pc-mks
873 + exit ;;
874 + 8664:Windows_NT:*)
875 + echo x86_64-pc-mks
876 + exit ;;
877 + i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
878 + # How do we know it's Interix rather than the generic POSIX subsystem?
879 + # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
880 + # UNAME_MACHINE based on the output of uname instead of i386?
881 + echo i586-pc-interix
882 + exit ;;
883 + i*:UWIN*:*)
884 + echo ${UNAME_MACHINE}-pc-uwin
885 + exit ;;
886 + amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
887 + echo x86_64-unknown-cygwin
888 + exit ;;
889 + p*:CYGWIN*:*)
890 + echo powerpcle-unknown-cygwin
891 + exit ;;
892 + prep*:SunOS:5.*:*)
893 + echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
894 + exit ;;
895 + *:GNU:*:*)
896 + # the GNU system
897 + echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
898 + exit ;;
899 + *:GNU/*:*:*)
900 + # other systems with GNU libc and userland
901 + echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
902 + exit ;;
903 + i*86:Minix:*:*)
904 + echo ${UNAME_MACHINE}-pc-minix
905 + exit ;;
906 + aarch64:Linux:*:*)
907 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
908 + exit ;;
909 + aarch64_be:Linux:*:*)
910 + UNAME_MACHINE=aarch64_be
911 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
912 + exit ;;
913 + alpha:Linux:*:*)
914 + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
915 + EV5) UNAME_MACHINE=alphaev5 ;;
916 + EV56) UNAME_MACHINE=alphaev56 ;;
917 + PCA56) UNAME_MACHINE=alphapca56 ;;
918 + PCA57) UNAME_MACHINE=alphapca56 ;;
919 + EV6) UNAME_MACHINE=alphaev6 ;;
920 + EV67) UNAME_MACHINE=alphaev67 ;;
921 + EV68*) UNAME_MACHINE=alphaev68 ;;
922 + esac
923 + objdump --private-headers /bin/sh | grep -q ld.so.1
924 + if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
925 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
926 + exit ;;
927 + arc:Linux:*:* | arceb:Linux:*:*)
928 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
929 + exit ;;
930 + arm*:Linux:*:*)
931 + eval $set_cc_for_build
932 + if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
933 + | grep -q __ARM_EABI__
934 + then
935 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
936 + else
937 + if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
938 + | grep -q __ARM_PCS_VFP
939 + then
940 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
941 + else
942 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
943 + fi
944 + fi
945 + exit ;;
946 + avr32*:Linux:*:*)
947 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
948 + exit ;;
949 + cris:Linux:*:*)
950 + echo ${UNAME_MACHINE}-axis-linux-${LIBC}
951 + exit ;;
952 + crisv32:Linux:*:*)
953 + echo ${UNAME_MACHINE}-axis-linux-${LIBC}
954 + exit ;;
955 + frv:Linux:*:*)
956 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
957 + exit ;;
958 + hexagon:Linux:*:*)
959 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
960 + exit ;;
961 + i*86:Linux:*:*)
962 + echo ${UNAME_MACHINE}-pc-linux-${LIBC}
963 + exit ;;
964 + ia64:Linux:*:*)
965 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
966 + exit ;;
967 + m32r*:Linux:*:*)
968 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
969 + exit ;;
970 + m68*:Linux:*:*)
971 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
972 + exit ;;
973 + mips:Linux:*:* | mips64:Linux:*:*)
974 + eval $set_cc_for_build
975 + sed 's/^ //' << EOF >$dummy.c
976 + #undef CPU
977 + #undef ${UNAME_MACHINE}
978 + #undef ${UNAME_MACHINE}el
979 + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
980 + CPU=${UNAME_MACHINE}el
981 + #else
982 + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
983 + CPU=${UNAME_MACHINE}
984 + #else
985 + CPU=
986 + #endif
987 + #endif
988 +EOF
989 + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
990 + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
991 + ;;
992 + openrisc*:Linux:*:*)
993 + echo or1k-unknown-linux-${LIBC}
994 + exit ;;
995 + or32:Linux:*:* | or1k*:Linux:*:*)
996 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
997 + exit ;;
998 + padre:Linux:*:*)
999 + echo sparc-unknown-linux-${LIBC}
1000 + exit ;;
1001 + parisc64:Linux:*:* | hppa64:Linux:*:*)
1002 + echo hppa64-unknown-linux-${LIBC}
1003 + exit ;;
1004 + parisc:Linux:*:* | hppa:Linux:*:*)
1005 + # Look for CPU level
1006 + case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
1007 + PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
1008 + PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
1009 + *) echo hppa-unknown-linux-${LIBC} ;;
1010 + esac
1011 + exit ;;
1012 + ppc64:Linux:*:*)
1013 + echo powerpc64-unknown-linux-${LIBC}
1014 + exit ;;
1015 + ppc:Linux:*:*)
1016 + echo powerpc-unknown-linux-${LIBC}
1017 + exit ;;
1018 + ppc64le:Linux:*:*)
1019 + echo powerpc64le-unknown-linux-${LIBC}
1020 + exit ;;
1021 + ppcle:Linux:*:*)
1022 + echo powerpcle-unknown-linux-${LIBC}
1023 + exit ;;
1024 + s390:Linux:*:* | s390x:Linux:*:*)
1025 + echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
1026 + exit ;;
1027 + sh64*:Linux:*:*)
1028 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1029 + exit ;;
1030 + sh*:Linux:*:*)
1031 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1032 + exit ;;
1033 + sparc:Linux:*:* | sparc64:Linux:*:*)
1034 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1035 + exit ;;
1036 + tile*:Linux:*:*)
1037 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1038 + exit ;;
1039 + vax:Linux:*:*)
1040 + echo ${UNAME_MACHINE}-dec-linux-${LIBC}
1041 + exit ;;
1042 + x86_64:Linux:*:*)
1043 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1044 + exit ;;
1045 + xtensa*:Linux:*:*)
1046 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1047 + exit ;;
1048 + i*86:DYNIX/ptx:4*:*)
1049 + # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
1050 + # earlier versions are messed up and put the nodename in both
1051 + # sysname and nodename.
1052 + echo i386-sequent-sysv4
1053 + exit ;;
1054 + i*86:UNIX_SV:4.2MP:2.*)
1055 + # Unixware is an offshoot of SVR4, but it has its own version
1056 + # number series starting with 2...
1057 + # I am not positive that other SVR4 systems won't match this,
1058 + # I just have to hope. -- rms.
1059 + # Use sysv4.2uw... so that sysv4* matches it.
1060 + echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
1061 + exit ;;
1062 + i*86:OS/2:*:*)
1063 + # If we were able to find `uname', then EMX Unix compatibility
1064 + # is probably installed.
1065 + echo ${UNAME_MACHINE}-pc-os2-emx
1066 + exit ;;
1067 + i*86:XTS-300:*:STOP)
1068 + echo ${UNAME_MACHINE}-unknown-stop
1069 + exit ;;
1070 + i*86:atheos:*:*)
1071 + echo ${UNAME_MACHINE}-unknown-atheos
1072 + exit ;;
1073 + i*86:syllable:*:*)
1074 + echo ${UNAME_MACHINE}-pc-syllable
1075 + exit ;;
1076 + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
1077 + echo i386-unknown-lynxos${UNAME_RELEASE}
1078 + exit ;;
1079 + i*86:*DOS:*:*)
1080 + echo ${UNAME_MACHINE}-pc-msdosdjgpp
1081 + exit ;;
1082 + i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
1083 + UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
1084 + if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1085 + echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
1086 + else
1087 + echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
1088 + fi
1089 + exit ;;
1090 + i*86:*:5:[678]*)
1091 + # UnixWare 7.x, OpenUNIX and OpenServer 6.
1092 + case `/bin/uname -X | grep "^Machine"` in
1093 + *486*) UNAME_MACHINE=i486 ;;
1094 + *Pentium) UNAME_MACHINE=i586 ;;
1095 + *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
1096 + esac
1097 + echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1098 + exit ;;
1099 + i*86:*:3.2:*)
1100 + if test -f /usr/options/cb.name; then
1101 + UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
1102 + echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
1103 + elif /bin/uname -X 2>/dev/null >/dev/null ; then
1104 + UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
1105 + (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
1106 + (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
1107 + && UNAME_MACHINE=i586
1108 + (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
1109 + && UNAME_MACHINE=i686
1110 + (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
1111 + && UNAME_MACHINE=i686
1112 + echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
1113 + else
1114 + echo ${UNAME_MACHINE}-pc-sysv32
1115 + fi
1116 + exit ;;
1117 + pc:*:*:*)
1118 + # Left here for compatibility:
1119 + # uname -m prints for DJGPP always 'pc', but it prints nothing about
1120 + # the processor, so we play safe by assuming i586.
1121 + # Note: whatever this is, it MUST be the same as what config.sub
1122 + # prints for the "djgpp" host, or else GDB configury will decide that
1123 + # this is a cross-build.
1124 + echo i586-pc-msdosdjgpp
1125 + exit ;;
1126 + Intel:Mach:3*:*)
1127 + echo i386-pc-mach3
1128 + exit ;;
1129 + paragon:*:*:*)
1130 + echo i860-intel-osf1
1131 + exit ;;
1132 + i860:*:4.*:*) # i860-SVR4
1133 + if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1134 + echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
1135 + else # Add other i860-SVR4 vendors below as they are discovered.
1136 + echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
1137 + fi
1138 + exit ;;
1139 + mini*:CTIX:SYS*5:*)
1140 + # "miniframe"
1141 + echo m68010-convergent-sysv
1142 + exit ;;
1143 + mc68k:UNIX:SYSTEM5:3.51m)
1144 + echo m68k-convergent-sysv
1145 + exit ;;
1146 + M680?0:D-NIX:5.3:*)
1147 + echo m68k-diab-dnix
1148 + exit ;;
1149 + M68*:*:R3V[5678]*:*)
1150 + test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
1151 + 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
1152 + OS_REL=''
1153 + test -r /etc/.relid \
1154 + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1155 + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1156 + && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1157 + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1158 + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1159 + 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1160 + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1161 + && { echo i486-ncr-sysv4; exit; } ;;
1162 + NCR*:*:4.2:* | MPRAS*:*:4.2:*)
1163 + OS_REL='.3'
1164 + test -r /etc/.relid \
1165 + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1166 + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1167 + && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1168 + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1169 + && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
1170 + /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
1171 + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1172 + m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1173 + echo m68k-unknown-lynxos${UNAME_RELEASE}
1174 + exit ;;
1175 + mc68030:UNIX_System_V:4.*:*)
1176 + echo m68k-atari-sysv4
1177 + exit ;;
1178 + TSUNAMI:LynxOS:2.*:*)
1179 + echo sparc-unknown-lynxos${UNAME_RELEASE}
1180 + exit ;;
1181 + rs6000:LynxOS:2.*:*)
1182 + echo rs6000-unknown-lynxos${UNAME_RELEASE}
1183 + exit ;;
1184 + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
1185 + echo powerpc-unknown-lynxos${UNAME_RELEASE}
1186 + exit ;;
1187 + SM[BE]S:UNIX_SV:*:*)
1188 + echo mips-dde-sysv${UNAME_RELEASE}
1189 + exit ;;
1190 + RM*:ReliantUNIX-*:*:*)
1191 + echo mips-sni-sysv4
1192 + exit ;;
1193 + RM*:SINIX-*:*:*)
1194 + echo mips-sni-sysv4
1195 + exit ;;
1196 + *:SINIX-*:*:*)
1197 + if uname -p 2>/dev/null >/dev/null ; then
1198 + UNAME_MACHINE=`(uname -p) 2>/dev/null`
1199 + echo ${UNAME_MACHINE}-sni-sysv4
1200 + else
1201 + echo ns32k-sni-sysv
1202 + fi
1203 + exit ;;
1204 + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1205 + # says <Richard.M.Bartel@ccMail.Census.GOV>
1206 + echo i586-unisys-sysv4
1207 + exit ;;
1208 + *:UNIX_System_V:4*:FTX*)
1209 + # From Gerald Hewes <hewes@openmarket.com>.
1210 + # How about differentiating between stratus architectures? -djm
1211 + echo hppa1.1-stratus-sysv4
1212 + exit ;;
1213 + *:*:*:FTX*)
1214 + # From seanf@swdc.stratus.com.
1215 + echo i860-stratus-sysv4
1216 + exit ;;
1217 + i*86:VOS:*:*)
1218 + # From Paul.Green@stratus.com.
1219 + echo ${UNAME_MACHINE}-stratus-vos
1220 + exit ;;
1221 + *:VOS:*:*)
1222 + # From Paul.Green@stratus.com.
1223 + echo hppa1.1-stratus-vos
1224 + exit ;;
1225 + mc68*:A/UX:*:*)
1226 + echo m68k-apple-aux${UNAME_RELEASE}
1227 + exit ;;
1228 + news*:NEWS-OS:6*:*)
1229 + echo mips-sony-newsos6
1230 + exit ;;
1231 + R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1232 + if [ -d /usr/nec ]; then
1233 + echo mips-nec-sysv${UNAME_RELEASE}
1234 + else
1235 + echo mips-unknown-sysv${UNAME_RELEASE}
1236 + fi
1237 + exit ;;
1238 + BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
1239 + echo powerpc-be-beos
1240 + exit ;;
1241 + BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
1242 + echo powerpc-apple-beos
1243 + exit ;;
1244 + BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
1245 + echo i586-pc-beos
1246 + exit ;;
1247 + BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
1248 + echo i586-pc-haiku
1249 + exit ;;
1250 + x86_64:Haiku:*:*)
1251 + echo x86_64-unknown-haiku
1252 + exit ;;
1253 + SX-4:SUPER-UX:*:*)
1254 + echo sx4-nec-superux${UNAME_RELEASE}
1255 + exit ;;
1256 + SX-5:SUPER-UX:*:*)
1257 + echo sx5-nec-superux${UNAME_RELEASE}
1258 + exit ;;
1259 + SX-6:SUPER-UX:*:*)
1260 + echo sx6-nec-superux${UNAME_RELEASE}
1261 + exit ;;
1262 + SX-7:SUPER-UX:*:*)
1263 + echo sx7-nec-superux${UNAME_RELEASE}
1264 + exit ;;
1265 + SX-8:SUPER-UX:*:*)
1266 + echo sx8-nec-superux${UNAME_RELEASE}
1267 + exit ;;
1268 + SX-8R:SUPER-UX:*:*)
1269 + echo sx8r-nec-superux${UNAME_RELEASE}
1270 + exit ;;
1271 + Power*:Rhapsody:*:*)
1272 + echo powerpc-apple-rhapsody${UNAME_RELEASE}
1273 + exit ;;
1274 + *:Rhapsody:*:*)
1275 + echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1276 + exit ;;
1277 + *:Darwin:*:*)
1278 + UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1279 + eval $set_cc_for_build
1280 + if test "$UNAME_PROCESSOR" = unknown ; then
1281 + UNAME_PROCESSOR=powerpc
1282 + fi
1283 + if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
1284 + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1285 + if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1286 + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1287 + grep IS_64BIT_ARCH >/dev/null
1288 + then
1289 + case $UNAME_PROCESSOR in
1290 + i386) UNAME_PROCESSOR=x86_64 ;;
1291 + powerpc) UNAME_PROCESSOR=powerpc64 ;;
1292 + esac
1293 + fi
1294 + fi
1295 + elif test "$UNAME_PROCESSOR" = i386 ; then
1296 + # Avoid executing cc on OS X 10.9, as it ships with a stub
1297 + # that puts up a graphical alert prompting to install
1298 + # developer tools. Any system running Mac OS X 10.7 or
1299 + # later (Darwin 11 and later) is required to have a 64-bit
1300 + # processor. This is not true of the ARM version of Darwin
1301 + # that Apple uses in portable devices.
1302 + UNAME_PROCESSOR=x86_64
1303 + fi
1304 + echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1305 + exit ;;
1306 + *:procnto*:*:* | *:QNX:[0123456789]*:*)
1307 + UNAME_PROCESSOR=`uname -p`
1308 + if test "$UNAME_PROCESSOR" = "x86"; then
1309 + UNAME_PROCESSOR=i386
1310 + UNAME_MACHINE=pc
1311 + fi
1312 + echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
1313 + exit ;;
1314 + *:QNX:*:4*)
1315 + echo i386-pc-qnx
1316 + exit ;;
1317 + NEO-?:NONSTOP_KERNEL:*:*)
1318 + echo neo-tandem-nsk${UNAME_RELEASE}
1319 + exit ;;
1320 + NSE-*:NONSTOP_KERNEL:*:*)
1321 + echo nse-tandem-nsk${UNAME_RELEASE}
1322 + exit ;;
1323 + NSR-?:NONSTOP_KERNEL:*:*)
1324 + echo nsr-tandem-nsk${UNAME_RELEASE}
1325 + exit ;;
1326 + *:NonStop-UX:*:*)
1327 + echo mips-compaq-nonstopux
1328 + exit ;;
1329 + BS2000:POSIX*:*:*)
1330 + echo bs2000-siemens-sysv
1331 + exit ;;
1332 + DS/*:UNIX_System_V:*:*)
1333 + echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
1334 + exit ;;
1335 + *:Plan9:*:*)
1336 + # "uname -m" is not consistent, so use $cputype instead. 386
1337 + # is converted to i386 for consistency with other x86
1338 + # operating systems.
1339 + if test "$cputype" = "386"; then
1340 + UNAME_MACHINE=i386
1341 + else
1342 + UNAME_MACHINE="$cputype"
1343 + fi
1344 + echo ${UNAME_MACHINE}-unknown-plan9
1345 + exit ;;
1346 + *:TOPS-10:*:*)
1347 + echo pdp10-unknown-tops10
1348 + exit ;;
1349 + *:TENEX:*:*)
1350 + echo pdp10-unknown-tenex
1351 + exit ;;
1352 + KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1353 + echo pdp10-dec-tops20
1354 + exit ;;
1355 + XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
1356 + echo pdp10-xkl-tops20
1357 + exit ;;
1358 + *:TOPS-20:*:*)
1359 + echo pdp10-unknown-tops20
1360 + exit ;;
1361 + *:ITS:*:*)
1362 + echo pdp10-unknown-its
1363 + exit ;;
1364 + SEI:*:*:SEIUX)
1365 + echo mips-sei-seiux${UNAME_RELEASE}
1366 + exit ;;
1367 + *:DragonFly:*:*)
1368 + echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1369 + exit ;;
1370 + *:*VMS:*:*)
1371 + UNAME_MACHINE=`(uname -p) 2>/dev/null`
1372 + case "${UNAME_MACHINE}" in
1373 + A*) echo alpha-dec-vms ; exit ;;
1374 + I*) echo ia64-dec-vms ; exit ;;
1375 + V*) echo vax-dec-vms ; exit ;;
1376 + esac ;;
1377 + *:XENIX:*:SysV)
1378 + echo i386-pc-xenix
1379 + exit ;;
1380 + i*86:skyos:*:*)
1381 + echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1382 + exit ;;
1383 + i*86:rdos:*:*)
1384 + echo ${UNAME_MACHINE}-pc-rdos
1385 + exit ;;
1386 + i*86:AROS:*:*)
1387 + echo ${UNAME_MACHINE}-pc-aros
1388 + exit ;;
1389 + x86_64:VMkernel:*:*)
1390 + echo ${UNAME_MACHINE}-unknown-esx
1391 + exit ;;
1392 +esac
1394 +cat >&2 <<EOF
1395 +$0: unable to guess system type
1397 +This script, last modified $timestamp, has failed to recognize
1398 +the operating system you are using. It is advised that you
1399 +download the most up to date version of the config scripts from
1401 + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
1402 +and
1403 + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
1405 +If the version you run ($0) is already up to date, please
1406 +send the following data and any information you think might be
1407 +pertinent to <config-patches@gnu.org> in order to provide the needed
1408 +information to handle your system.
1410 +config.guess timestamp = $timestamp
1412 +uname -m = `(uname -m) 2>/dev/null || echo unknown`
1413 +uname -r = `(uname -r) 2>/dev/null || echo unknown`
1414 +uname -s = `(uname -s) 2>/dev/null || echo unknown`
1415 +uname -v = `(uname -v) 2>/dev/null || echo unknown`
1417 +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
1418 +/bin/uname -X = `(/bin/uname -X) 2>/dev/null`
1420 +hostinfo = `(hostinfo) 2>/dev/null`
1421 +/bin/universe = `(/bin/universe) 2>/dev/null`
1422 +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
1423 +/bin/arch = `(/bin/arch) 2>/dev/null`
1424 +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
1425 +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
1427 +UNAME_MACHINE = ${UNAME_MACHINE}
1428 +UNAME_RELEASE = ${UNAME_RELEASE}
1429 +UNAME_SYSTEM = ${UNAME_SYSTEM}
1430 +UNAME_VERSION = ${UNAME_VERSION}
1431 +EOF
1433 +exit 1
1435 +# Local variables:
1436 +# eval: (add-hook 'write-file-hooks 'time-stamp)
1437 +# time-stamp-start: "timestamp='"
1438 +# time-stamp-format: "%:y-%02m-%02d"
1439 +# time-stamp-end: "'"
1440 +# End:
1441 --- openjade1.3-1.3.2.orig/config.sub
1442 +++ openjade1.3-1.3.2/config.sub
1443 @@ -0,0 +1,1794 @@
1444 +#! /bin/sh
1445 +# Configuration validation subroutine script.
1446 +# Copyright 1992-2014 Free Software Foundation, Inc.
1448 +timestamp='2014-05-01'
1450 +# This file is free software; you can redistribute it and/or modify it
1451 +# under the terms of the GNU General Public License as published by
1452 +# the Free Software Foundation; either version 3 of the License, or
1453 +# (at your option) any later version.
1454 +#
1455 +# This program is distributed in the hope that it will be useful, but
1456 +# WITHOUT ANY WARRANTY; without even the implied warranty of
1457 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1458 +# General Public License for more details.
1459 +#
1460 +# You should have received a copy of the GNU General Public License
1461 +# along with this program; if not, see <http://www.gnu.org/licenses/>.
1462 +#
1463 +# As a special exception to the GNU General Public License, if you
1464 +# distribute this file as part of a program that contains a
1465 +# configuration script generated by Autoconf, you may include it under
1466 +# the same distribution terms that you use for the rest of that
1467 +# program. This Exception is an additional permission under section 7
1468 +# of the GNU General Public License, version 3 ("GPLv3").
1471 +# Please send patches with a ChangeLog entry to config-patches@gnu.org.
1472 +#
1473 +# Configuration subroutine to validate and canonicalize a configuration type.
1474 +# Supply the specified configuration type as an argument.
1475 +# If it is invalid, we print an error message on stderr and exit with code 1.
1476 +# Otherwise, we print the canonical config type on stdout and succeed.
1478 +# You can get the latest version of this script from:
1479 +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
1481 +# This file is supposed to be the same for all GNU packages
1482 +# and recognize all the CPU types, system types and aliases
1483 +# that are meaningful with *any* GNU software.
1484 +# Each package is responsible for reporting which valid configurations
1485 +# it does not support. The user should be able to distinguish
1486 +# a failure to support a valid configuration from a meaningless
1487 +# configuration.
1489 +# The goal of this file is to map all the various variations of a given
1490 +# machine specification into a single specification in the form:
1491 +# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
1492 +# or in some cases, the newer four-part form:
1493 +# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
1494 +# It is wrong to echo any other type of specification.
1496 +me=`echo "$0" | sed -e 's,.*/,,'`
1498 +usage="\
1499 +Usage: $0 [OPTION] CPU-MFR-OPSYS
1500 + $0 [OPTION] ALIAS
1502 +Canonicalize a configuration name.
1504 +Operation modes:
1505 + -h, --help print this help, then exit
1506 + -t, --time-stamp print date of last modification, then exit
1507 + -v, --version print version number, then exit
1509 +Report bugs and patches to <config-patches@gnu.org>."
1511 +version="\
1512 +GNU config.sub ($timestamp)
1514 +Copyright 1992-2014 Free Software Foundation, Inc.
1516 +This is free software; see the source for copying conditions. There is NO
1517 +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
1519 +help="
1520 +Try \`$me --help' for more information."
1522 +# Parse command line
1523 +while test $# -gt 0 ; do
1524 + case $1 in
1525 + --time-stamp | --time* | -t )
1526 + echo "$timestamp" ; exit ;;
1527 + --version | -v )
1528 + echo "$version" ; exit ;;
1529 + --help | --h* | -h )
1530 + echo "$usage"; exit ;;
1531 + -- ) # Stop option processing
1532 + shift; break ;;
1533 + - ) # Use stdin as input.
1534 + break ;;
1535 + -* )
1536 + echo "$me: invalid option $1$help"
1537 + exit 1 ;;
1539 + *local*)
1540 + # First pass through any local machine types.
1541 + echo $1
1542 + exit ;;
1544 + * )
1545 + break ;;
1546 + esac
1547 +done
1549 +case $# in
1550 + 0) echo "$me: missing argument$help" >&2
1551 + exit 1;;
1552 + 1) ;;
1553 + *) echo "$me: too many arguments$help" >&2
1554 + exit 1;;
1555 +esac
1557 +# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
1558 +# Here we must recognize all the valid KERNEL-OS combinations.
1559 +maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
1560 +case $maybe_os in
1561 + nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
1562 + linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
1563 + knetbsd*-gnu* | netbsd*-gnu* | \
1564 + kopensolaris*-gnu* | \
1565 + storm-chaos* | os2-emx* | rtmk-nova*)
1566 + os=-$maybe_os
1567 + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
1568 + ;;
1569 + android-linux)
1570 + os=-linux-android
1571 + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
1572 + ;;
1573 + *)
1574 + basic_machine=`echo $1 | sed 's/-[^-]*$//'`
1575 + if [ $basic_machine != $1 ]
1576 + then os=`echo $1 | sed 's/.*-/-/'`
1577 + else os=; fi
1578 + ;;
1579 +esac
1581 +### Let's recognize common machines as not being operating systems so
1582 +### that things like config.sub decstation-3100 work. We also
1583 +### recognize some manufacturers as not being operating systems, so we
1584 +### can provide default operating systems below.
1585 +case $os in
1586 + -sun*os*)
1587 + # Prevent following clause from handling this invalid input.
1588 + ;;
1589 + -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
1590 + -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
1591 + -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
1592 + -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
1593 + -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
1594 + -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
1595 + -apple | -axis | -knuth | -cray | -microblaze*)
1596 + os=
1597 + basic_machine=$1
1598 + ;;
1599 + -bluegene*)
1600 + os=-cnk
1601 + ;;
1602 + -sim | -cisco | -oki | -wec | -winbond)
1603 + os=
1604 + basic_machine=$1
1605 + ;;
1606 + -scout)
1607 + ;;
1608 + -wrs)
1609 + os=-vxworks
1610 + basic_machine=$1
1611 + ;;
1612 + -chorusos*)
1613 + os=-chorusos
1614 + basic_machine=$1
1615 + ;;
1616 + -chorusrdb)
1617 + os=-chorusrdb
1618 + basic_machine=$1
1619 + ;;
1620 + -hiux*)
1621 + os=-hiuxwe2
1622 + ;;
1623 + -sco6)
1624 + os=-sco5v6
1625 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1626 + ;;
1627 + -sco5)
1628 + os=-sco3.2v5
1629 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1630 + ;;
1631 + -sco4)
1632 + os=-sco3.2v4
1633 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1634 + ;;
1635 + -sco3.2.[4-9]*)
1636 + os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
1637 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1638 + ;;
1639 + -sco3.2v[4-9]*)
1640 + # Don't forget version if it is 3.2v4 or newer.
1641 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1642 + ;;
1643 + -sco5v6*)
1644 + # Don't forget version if it is 3.2v4 or newer.
1645 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1646 + ;;
1647 + -sco*)
1648 + os=-sco3.2v2
1649 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1650 + ;;
1651 + -udk*)
1652 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1653 + ;;
1654 + -isc)
1655 + os=-isc2.2
1656 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1657 + ;;
1658 + -clix*)
1659 + basic_machine=clipper-intergraph
1660 + ;;
1661 + -isc*)
1662 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1663 + ;;
1664 + -lynx*178)
1665 + os=-lynxos178
1666 + ;;
1667 + -lynx*5)
1668 + os=-lynxos5
1669 + ;;
1670 + -lynx*)
1671 + os=-lynxos
1672 + ;;
1673 + -ptx*)
1674 + basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
1675 + ;;
1676 + -windowsnt*)
1677 + os=`echo $os | sed -e 's/windowsnt/winnt/'`
1678 + ;;
1679 + -psos*)
1680 + os=-psos
1681 + ;;
1682 + -mint | -mint[0-9]*)
1683 + basic_machine=m68k-atari
1684 + os=-mint
1685 + ;;
1686 +esac
1688 +# Decode aliases for certain CPU-COMPANY combinations.
1689 +case $basic_machine in
1690 + # Recognize the basic CPU types without company name.
1691 + # Some are omitted here because they have special meanings below.
1692 + 1750a | 580 \
1693 + | a29k \
1694 + | aarch64 | aarch64_be \
1695 + | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
1696 + | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
1697 + | am33_2.0 \
1698 + | arc | arceb \
1699 + | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
1700 + | avr | avr32 \
1701 + | be32 | be64 \
1702 + | bfin \
1703 + | c4x | c8051 | clipper \
1704 + | d10v | d30v | dlx | dsp16xx \
1705 + | epiphany \
1706 + | fido | fr30 | frv \
1707 + | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
1708 + | hexagon \
1709 + | i370 | i860 | i960 | ia64 \
1710 + | ip2k | iq2000 \
1711 + | k1om \
1712 + | le32 | le64 \
1713 + | lm32 \
1714 + | m32c | m32r | m32rle | m68000 | m68k | m88k \
1715 + | maxq | mb | microblaze | microblazeel | mcore | mep | metag \
1716 + | mips | mipsbe | mipseb | mipsel | mipsle \
1717 + | mips16 \
1718 + | mips64 | mips64el \
1719 + | mips64octeon | mips64octeonel \
1720 + | mips64orion | mips64orionel \
1721 + | mips64r5900 | mips64r5900el \
1722 + | mips64vr | mips64vrel \
1723 + | mips64vr4100 | mips64vr4100el \
1724 + | mips64vr4300 | mips64vr4300el \
1725 + | mips64vr5000 | mips64vr5000el \
1726 + | mips64vr5900 | mips64vr5900el \
1727 + | mipsisa32 | mipsisa32el \
1728 + | mipsisa32r2 | mipsisa32r2el \
1729 + | mipsisa32r6 | mipsisa32r6el \
1730 + | mipsisa64 | mipsisa64el \
1731 + | mipsisa64r2 | mipsisa64r2el \
1732 + | mipsisa64r6 | mipsisa64r6el \
1733 + | mipsisa64sb1 | mipsisa64sb1el \
1734 + | mipsisa64sr71k | mipsisa64sr71kel \
1735 + | mipsr5900 | mipsr5900el \
1736 + | mipstx39 | mipstx39el \
1737 + | mn10200 | mn10300 \
1738 + | moxie \
1739 + | mt \
1740 + | msp430 \
1741 + | nds32 | nds32le | nds32be \
1742 + | nios | nios2 | nios2eb | nios2el \
1743 + | ns16k | ns32k \
1744 + | open8 | or1k | or1knd | or32 \
1745 + | pdp10 | pdp11 | pj | pjl \
1746 + | powerpc | powerpc64 | powerpc64le | powerpcle \
1747 + | pyramid \
1748 + | rl78 | rx \
1749 + | score \
1750 + | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
1751 + | sh64 | sh64le \
1752 + | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
1753 + | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
1754 + | spu \
1755 + | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
1756 + | ubicom32 \
1757 + | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
1758 + | we32k \
1759 + | x86 | xc16x | xstormy16 | xtensa \
1760 + | z8k | z80)
1761 + basic_machine=$basic_machine-unknown
1762 + ;;
1763 + c54x)
1764 + basic_machine=tic54x-unknown
1765 + ;;
1766 + c55x)
1767 + basic_machine=tic55x-unknown
1768 + ;;
1769 + c6x)
1770 + basic_machine=tic6x-unknown
1771 + ;;
1772 + m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
1773 + basic_machine=$basic_machine-unknown
1774 + os=-none
1775 + ;;
1776 + m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
1777 + ;;
1778 + ms1)
1779 + basic_machine=mt-unknown
1780 + ;;
1782 + strongarm | thumb | xscale)
1783 + basic_machine=arm-unknown
1784 + ;;
1785 + xgate)
1786 + basic_machine=$basic_machine-unknown
1787 + os=-none
1788 + ;;
1789 + xscaleeb)
1790 + basic_machine=armeb-unknown
1791 + ;;
1793 + xscaleel)
1794 + basic_machine=armel-unknown
1795 + ;;
1797 + # We use `pc' rather than `unknown'
1798 + # because (1) that's what they normally are, and
1799 + # (2) the word "unknown" tends to confuse beginning users.
1800 + i*86 | x86_64)
1801 + basic_machine=$basic_machine-pc
1802 + ;;
1803 + # Object if more than one company name word.
1804 + *-*-*)
1805 + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
1806 + exit 1
1807 + ;;
1808 + # Recognize the basic CPU types with company name.
1809 + 580-* \
1810 + | a29k-* \
1811 + | aarch64-* | aarch64_be-* \
1812 + | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
1813 + | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
1814 + | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
1815 + | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
1816 + | avr-* | avr32-* \
1817 + | be32-* | be64-* \
1818 + | bfin-* | bs2000-* \
1819 + | c[123]* | c30-* | [cjt]90-* | c4x-* \
1820 + | c8051-* | clipper-* | craynv-* | cydra-* \
1821 + | d10v-* | d30v-* | dlx-* \
1822 + | elxsi-* \
1823 + | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
1824 + | h8300-* | h8500-* \
1825 + | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
1826 + | hexagon-* \
1827 + | i*86-* | i860-* | i960-* | ia64-* \
1828 + | ip2k-* | iq2000-* \
1829 + | k1om-* \
1830 + | le32-* | le64-* \
1831 + | lm32-* \
1832 + | m32c-* | m32r-* | m32rle-* \
1833 + | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
1834 + | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
1835 + | microblaze-* | microblazeel-* \
1836 + | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
1837 + | mips16-* \
1838 + | mips64-* | mips64el-* \
1839 + | mips64octeon-* | mips64octeonel-* \
1840 + | mips64orion-* | mips64orionel-* \
1841 + | mips64r5900-* | mips64r5900el-* \
1842 + | mips64vr-* | mips64vrel-* \
1843 + | mips64vr4100-* | mips64vr4100el-* \
1844 + | mips64vr4300-* | mips64vr4300el-* \
1845 + | mips64vr5000-* | mips64vr5000el-* \
1846 + | mips64vr5900-* | mips64vr5900el-* \
1847 + | mipsisa32-* | mipsisa32el-* \
1848 + | mipsisa32r2-* | mipsisa32r2el-* \
1849 + | mipsisa32r6-* | mipsisa32r6el-* \
1850 + | mipsisa64-* | mipsisa64el-* \
1851 + | mipsisa64r2-* | mipsisa64r2el-* \
1852 + | mipsisa64r6-* | mipsisa64r6el-* \
1853 + | mipsisa64sb1-* | mipsisa64sb1el-* \
1854 + | mipsisa64sr71k-* | mipsisa64sr71kel-* \
1855 + | mipsr5900-* | mipsr5900el-* \
1856 + | mipstx39-* | mipstx39el-* \
1857 + | mmix-* \
1858 + | mt-* \
1859 + | msp430-* \
1860 + | nds32-* | nds32le-* | nds32be-* \
1861 + | nios-* | nios2-* | nios2eb-* | nios2el-* \
1862 + | none-* | np1-* | ns16k-* | ns32k-* \
1863 + | open8-* \
1864 + | or1k*-* \
1865 + | orion-* \
1866 + | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
1867 + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
1868 + | pyramid-* \
1869 + | rl78-* | romp-* | rs6000-* | rx-* \
1870 + | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
1871 + | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
1872 + | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
1873 + | sparclite-* \
1874 + | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
1875 + | tahoe-* \
1876 + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
1877 + | tile*-* \
1878 + | tron-* \
1879 + | ubicom32-* \
1880 + | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
1881 + | vax-* \
1882 + | we32k-* \
1883 + | x86-* | x86_64-* | xc16x-* | xps100-* \
1884 + | xstormy16-* | xtensa*-* \
1885 + | ymp-* \
1886 + | z8k-* | z80-*)
1887 + ;;
1888 + # Recognize the basic CPU types without company name, with glob match.
1889 + xtensa*)
1890 + basic_machine=$basic_machine-unknown
1891 + ;;
1892 + # Recognize the various machine names and aliases which stand
1893 + # for a CPU type and a company and sometimes even an OS.
1894 + 386bsd)
1895 + basic_machine=i386-unknown
1896 + os=-bsd
1897 + ;;
1898 + 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
1899 + basic_machine=m68000-att
1900 + ;;
1901 + 3b*)
1902 + basic_machine=we32k-att
1903 + ;;
1904 + a29khif)
1905 + basic_machine=a29k-amd
1906 + os=-udi
1907 + ;;
1908 + abacus)
1909 + basic_machine=abacus-unknown
1910 + ;;
1911 + adobe68k)
1912 + basic_machine=m68010-adobe
1913 + os=-scout
1914 + ;;
1915 + alliant | fx80)
1916 + basic_machine=fx80-alliant
1917 + ;;
1918 + altos | altos3068)
1919 + basic_machine=m68k-altos
1920 + ;;
1921 + am29k)
1922 + basic_machine=a29k-none
1923 + os=-bsd
1924 + ;;
1925 + amd64)
1926 + basic_machine=x86_64-pc
1927 + ;;
1928 + amd64-*)
1929 + basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
1930 + ;;
1931 + amdahl)
1932 + basic_machine=580-amdahl
1933 + os=-sysv
1934 + ;;
1935 + amiga | amiga-*)
1936 + basic_machine=m68k-unknown
1937 + ;;
1938 + amigaos | amigados)
1939 + basic_machine=m68k-unknown
1940 + os=-amigaos
1941 + ;;
1942 + amigaunix | amix)
1943 + basic_machine=m68k-unknown
1944 + os=-sysv4
1945 + ;;
1946 + apollo68)
1947 + basic_machine=m68k-apollo
1948 + os=-sysv
1949 + ;;
1950 + apollo68bsd)
1951 + basic_machine=m68k-apollo
1952 + os=-bsd
1953 + ;;
1954 + aros)
1955 + basic_machine=i386-pc
1956 + os=-aros
1957 + ;;
1958 + aux)
1959 + basic_machine=m68k-apple
1960 + os=-aux
1961 + ;;
1962 + balance)
1963 + basic_machine=ns32k-sequent
1964 + os=-dynix
1965 + ;;
1966 + blackfin)
1967 + basic_machine=bfin-unknown
1968 + os=-linux
1969 + ;;
1970 + blackfin-*)
1971 + basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
1972 + os=-linux
1973 + ;;
1974 + bluegene*)
1975 + basic_machine=powerpc-ibm
1976 + os=-cnk
1977 + ;;
1978 + c54x-*)
1979 + basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
1980 + ;;
1981 + c55x-*)
1982 + basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
1983 + ;;
1984 + c6x-*)
1985 + basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
1986 + ;;
1987 + c90)
1988 + basic_machine=c90-cray
1989 + os=-unicos
1990 + ;;
1991 + cegcc)
1992 + basic_machine=arm-unknown
1993 + os=-cegcc
1994 + ;;
1995 + convex-c1)
1996 + basic_machine=c1-convex
1997 + os=-bsd
1998 + ;;
1999 + convex-c2)
2000 + basic_machine=c2-convex
2001 + os=-bsd
2002 + ;;
2003 + convex-c32)
2004 + basic_machine=c32-convex
2005 + os=-bsd
2006 + ;;
2007 + convex-c34)
2008 + basic_machine=c34-convex
2009 + os=-bsd
2010 + ;;
2011 + convex-c38)
2012 + basic_machine=c38-convex
2013 + os=-bsd
2014 + ;;
2015 + cray | j90)
2016 + basic_machine=j90-cray
2017 + os=-unicos
2018 + ;;
2019 + craynv)
2020 + basic_machine=craynv-cray
2021 + os=-unicosmp
2022 + ;;
2023 + cr16 | cr16-*)
2024 + basic_machine=cr16-unknown
2025 + os=-elf
2026 + ;;
2027 + crds | unos)
2028 + basic_machine=m68k-crds
2029 + ;;
2030 + crisv32 | crisv32-* | etraxfs*)
2031 + basic_machine=crisv32-axis
2032 + ;;
2033 + cris | cris-* | etrax*)
2034 + basic_machine=cris-axis
2035 + ;;
2036 + crx)
2037 + basic_machine=crx-unknown
2038 + os=-elf
2039 + ;;
2040 + da30 | da30-*)
2041 + basic_machine=m68k-da30
2042 + ;;
2043 + decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
2044 + basic_machine=mips-dec
2045 + ;;
2046 + decsystem10* | dec10*)
2047 + basic_machine=pdp10-dec
2048 + os=-tops10
2049 + ;;
2050 + decsystem20* | dec20*)
2051 + basic_machine=pdp10-dec
2052 + os=-tops20
2053 + ;;
2054 + delta | 3300 | motorola-3300 | motorola-delta \
2055 + | 3300-motorola | delta-motorola)
2056 + basic_machine=m68k-motorola
2057 + ;;
2058 + delta88)
2059 + basic_machine=m88k-motorola
2060 + os=-sysv3
2061 + ;;
2062 + dicos)
2063 + basic_machine=i686-pc
2064 + os=-dicos
2065 + ;;
2066 + djgpp)
2067 + basic_machine=i586-pc
2068 + os=-msdosdjgpp
2069 + ;;
2070 + dpx20 | dpx20-*)
2071 + basic_machine=rs6000-bull
2072 + os=-bosx
2073 + ;;
2074 + dpx2* | dpx2*-bull)
2075 + basic_machine=m68k-bull
2076 + os=-sysv3
2077 + ;;
2078 + ebmon29k)
2079 + basic_machine=a29k-amd
2080 + os=-ebmon
2081 + ;;
2082 + elxsi)
2083 + basic_machine=elxsi-elxsi
2084 + os=-bsd
2085 + ;;
2086 + encore | umax | mmax)
2087 + basic_machine=ns32k-encore
2088 + ;;
2089 + es1800 | OSE68k | ose68k | ose | OSE)
2090 + basic_machine=m68k-ericsson
2091 + os=-ose
2092 + ;;
2093 + fx2800)
2094 + basic_machine=i860-alliant
2095 + ;;
2096 + genix)
2097 + basic_machine=ns32k-ns
2098 + ;;
2099 + gmicro)
2100 + basic_machine=tron-gmicro
2101 + os=-sysv
2102 + ;;
2103 + go32)
2104 + basic_machine=i386-pc
2105 + os=-go32
2106 + ;;
2107 + h3050r* | hiux*)
2108 + basic_machine=hppa1.1-hitachi
2109 + os=-hiuxwe2
2110 + ;;
2111 + h8300hms)
2112 + basic_machine=h8300-hitachi
2113 + os=-hms
2114 + ;;
2115 + h8300xray)
2116 + basic_machine=h8300-hitachi
2117 + os=-xray
2118 + ;;
2119 + h8500hms)
2120 + basic_machine=h8500-hitachi
2121 + os=-hms
2122 + ;;
2123 + harris)
2124 + basic_machine=m88k-harris
2125 + os=-sysv3
2126 + ;;
2127 + hp300-*)
2128 + basic_machine=m68k-hp
2129 + ;;
2130 + hp300bsd)
2131 + basic_machine=m68k-hp
2132 + os=-bsd
2133 + ;;
2134 + hp300hpux)
2135 + basic_machine=m68k-hp
2136 + os=-hpux
2137 + ;;
2138 + hp3k9[0-9][0-9] | hp9[0-9][0-9])
2139 + basic_machine=hppa1.0-hp
2140 + ;;
2141 + hp9k2[0-9][0-9] | hp9k31[0-9])
2142 + basic_machine=m68000-hp
2143 + ;;
2144 + hp9k3[2-9][0-9])
2145 + basic_machine=m68k-hp
2146 + ;;
2147 + hp9k6[0-9][0-9] | hp6[0-9][0-9])
2148 + basic_machine=hppa1.0-hp
2149 + ;;
2150 + hp9k7[0-79][0-9] | hp7[0-79][0-9])
2151 + basic_machine=hppa1.1-hp
2152 + ;;
2153 + hp9k78[0-9] | hp78[0-9])
2154 + # FIXME: really hppa2.0-hp
2155 + basic_machine=hppa1.1-hp
2156 + ;;
2157 + hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
2158 + # FIXME: really hppa2.0-hp
2159 + basic_machine=hppa1.1-hp
2160 + ;;
2161 + hp9k8[0-9][13679] | hp8[0-9][13679])
2162 + basic_machine=hppa1.1-hp
2163 + ;;
2164 + hp9k8[0-9][0-9] | hp8[0-9][0-9])
2165 + basic_machine=hppa1.0-hp
2166 + ;;
2167 + hppa-next)
2168 + os=-nextstep3
2169 + ;;
2170 + hppaosf)
2171 + basic_machine=hppa1.1-hp
2172 + os=-osf
2173 + ;;
2174 + hppro)
2175 + basic_machine=hppa1.1-hp
2176 + os=-proelf
2177 + ;;
2178 + i370-ibm* | ibm*)
2179 + basic_machine=i370-ibm
2180 + ;;
2181 + i*86v32)
2182 + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
2183 + os=-sysv32
2184 + ;;
2185 + i*86v4*)
2186 + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
2187 + os=-sysv4
2188 + ;;
2189 + i*86v)
2190 + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
2191 + os=-sysv
2192 + ;;
2193 + i*86sol2)
2194 + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
2195 + os=-solaris2
2196 + ;;
2197 + i386mach)
2198 + basic_machine=i386-mach
2199 + os=-mach
2200 + ;;
2201 + i386-vsta | vsta)
2202 + basic_machine=i386-unknown
2203 + os=-vsta
2204 + ;;
2205 + iris | iris4d)
2206 + basic_machine=mips-sgi
2207 + case $os in
2208 + -irix*)
2209 + ;;
2210 + *)
2211 + os=-irix4
2212 + ;;
2213 + esac
2214 + ;;
2215 + isi68 | isi)
2216 + basic_machine=m68k-isi
2217 + os=-sysv
2218 + ;;
2219 + m68knommu)
2220 + basic_machine=m68k-unknown
2221 + os=-linux
2222 + ;;
2223 + m68knommu-*)
2224 + basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
2225 + os=-linux
2226 + ;;
2227 + m88k-omron*)
2228 + basic_machine=m88k-omron
2229 + ;;
2230 + magnum | m3230)
2231 + basic_machine=mips-mips
2232 + os=-sysv
2233 + ;;
2234 + merlin)
2235 + basic_machine=ns32k-utek
2236 + os=-sysv
2237 + ;;
2238 + microblaze*)
2239 + basic_machine=microblaze-xilinx
2240 + ;;
2241 + mingw64)
2242 + basic_machine=x86_64-pc
2243 + os=-mingw64
2244 + ;;
2245 + mingw32)
2246 + basic_machine=i686-pc
2247 + os=-mingw32
2248 + ;;
2249 + mingw32ce)
2250 + basic_machine=arm-unknown
2251 + os=-mingw32ce
2252 + ;;
2253 + miniframe)
2254 + basic_machine=m68000-convergent
2255 + ;;
2256 + *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
2257 + basic_machine=m68k-atari
2258 + os=-mint
2259 + ;;
2260 + mips3*-*)
2261 + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
2262 + ;;
2263 + mips3*)
2264 + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
2265 + ;;
2266 + monitor)
2267 + basic_machine=m68k-rom68k
2268 + os=-coff
2269 + ;;
2270 + morphos)
2271 + basic_machine=powerpc-unknown
2272 + os=-morphos
2273 + ;;
2274 + msdos)
2275 + basic_machine=i386-pc
2276 + os=-msdos
2277 + ;;
2278 + ms1-*)
2279 + basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
2280 + ;;
2281 + msys)
2282 + basic_machine=i686-pc
2283 + os=-msys
2284 + ;;
2285 + mvs)
2286 + basic_machine=i370-ibm
2287 + os=-mvs
2288 + ;;
2289 + nacl)
2290 + basic_machine=le32-unknown
2291 + os=-nacl
2292 + ;;
2293 + ncr3000)
2294 + basic_machine=i486-ncr
2295 + os=-sysv4
2296 + ;;
2297 + netbsd386)
2298 + basic_machine=i386-unknown
2299 + os=-netbsd
2300 + ;;
2301 + netwinder)
2302 + basic_machine=armv4l-rebel
2303 + os=-linux
2304 + ;;
2305 + news | news700 | news800 | news900)
2306 + basic_machine=m68k-sony
2307 + os=-newsos
2308 + ;;
2309 + news1000)
2310 + basic_machine=m68030-sony
2311 + os=-newsos
2312 + ;;
2313 + news-3600 | risc-news)
2314 + basic_machine=mips-sony
2315 + os=-newsos
2316 + ;;
2317 + necv70)
2318 + basic_machine=v70-nec
2319 + os=-sysv
2320 + ;;
2321 + next | m*-next )
2322 + basic_machine=m68k-next
2323 + case $os in
2324 + -nextstep* )
2325 + ;;
2326 + -ns2*)
2327 + os=-nextstep2
2328 + ;;
2329 + *)
2330 + os=-nextstep3
2331 + ;;
2332 + esac
2333 + ;;
2334 + nh3000)
2335 + basic_machine=m68k-harris
2336 + os=-cxux
2337 + ;;
2338 + nh[45]000)
2339 + basic_machine=m88k-harris
2340 + os=-cxux
2341 + ;;
2342 + nindy960)
2343 + basic_machine=i960-intel
2344 + os=-nindy
2345 + ;;
2346 + mon960)
2347 + basic_machine=i960-intel
2348 + os=-mon960
2349 + ;;
2350 + nonstopux)
2351 + basic_machine=mips-compaq
2352 + os=-nonstopux
2353 + ;;
2354 + np1)
2355 + basic_machine=np1-gould
2356 + ;;
2357 + neo-tandem)
2358 + basic_machine=neo-tandem
2359 + ;;
2360 + nse-tandem)
2361 + basic_machine=nse-tandem
2362 + ;;
2363 + nsr-tandem)
2364 + basic_machine=nsr-tandem
2365 + ;;
2366 + op50n-* | op60c-*)
2367 + basic_machine=hppa1.1-oki
2368 + os=-proelf
2369 + ;;
2370 + openrisc | openrisc-*)
2371 + basic_machine=or32-unknown
2372 + ;;
2373 + os400)
2374 + basic_machine=powerpc-ibm
2375 + os=-os400
2376 + ;;
2377 + OSE68000 | ose68000)
2378 + basic_machine=m68000-ericsson
2379 + os=-ose
2380 + ;;
2381 + os68k)
2382 + basic_machine=m68k-none
2383 + os=-os68k
2384 + ;;
2385 + pa-hitachi)
2386 + basic_machine=hppa1.1-hitachi
2387 + os=-hiuxwe2
2388 + ;;
2389 + paragon)
2390 + basic_machine=i860-intel
2391 + os=-osf
2392 + ;;
2393 + parisc)
2394 + basic_machine=hppa-unknown
2395 + os=-linux
2396 + ;;
2397 + parisc-*)
2398 + basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
2399 + os=-linux
2400 + ;;
2401 + pbd)
2402 + basic_machine=sparc-tti
2403 + ;;
2404 + pbb)
2405 + basic_machine=m68k-tti
2406 + ;;
2407 + pc532 | pc532-*)
2408 + basic_machine=ns32k-pc532
2409 + ;;
2410 + pc98)
2411 + basic_machine=i386-pc
2412 + ;;
2413 + pc98-*)
2414 + basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
2415 + ;;
2416 + pentium | p5 | k5 | k6 | nexgen | viac3)
2417 + basic_machine=i586-pc
2418 + ;;
2419 + pentiumpro | p6 | 6x86 | athlon | athlon_*)
2420 + basic_machine=i686-pc
2421 + ;;
2422 + pentiumii | pentium2 | pentiumiii | pentium3)
2423 + basic_machine=i686-pc
2424 + ;;
2425 + pentium4)
2426 + basic_machine=i786-pc
2427 + ;;
2428 + pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
2429 + basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
2430 + ;;
2431 + pentiumpro-* | p6-* | 6x86-* | athlon-*)
2432 + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
2433 + ;;
2434 + pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
2435 + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
2436 + ;;
2437 + pentium4-*)
2438 + basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
2439 + ;;
2440 + pn)
2441 + basic_machine=pn-gould
2442 + ;;
2443 + power) basic_machine=power-ibm
2444 + ;;
2445 + ppc | ppcbe) basic_machine=powerpc-unknown
2446 + ;;
2447 + ppc-* | ppcbe-*)
2448 + basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
2449 + ;;
2450 + ppcle | powerpclittle | ppc-le | powerpc-little)
2451 + basic_machine=powerpcle-unknown
2452 + ;;
2453 + ppcle-* | powerpclittle-*)
2454 + basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
2455 + ;;
2456 + ppc64) basic_machine=powerpc64-unknown
2457 + ;;
2458 + ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
2459 + ;;
2460 + ppc64le | powerpc64little | ppc64-le | powerpc64-little)
2461 + basic_machine=powerpc64le-unknown
2462 + ;;
2463 + ppc64le-* | powerpc64little-*)
2464 + basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
2465 + ;;
2466 + ps2)
2467 + basic_machine=i386-ibm
2468 + ;;
2469 + pw32)
2470 + basic_machine=i586-unknown
2471 + os=-pw32
2472 + ;;
2473 + rdos | rdos64)
2474 + basic_machine=x86_64-pc
2475 + os=-rdos
2476 + ;;
2477 + rdos32)
2478 + basic_machine=i386-pc
2479 + os=-rdos
2480 + ;;
2481 + rom68k)
2482 + basic_machine=m68k-rom68k
2483 + os=-coff
2484 + ;;
2485 + rm[46]00)
2486 + basic_machine=mips-siemens
2487 + ;;
2488 + rtpc | rtpc-*)
2489 + basic_machine=romp-ibm
2490 + ;;
2491 + s390 | s390-*)
2492 + basic_machine=s390-ibm
2493 + ;;
2494 + s390x | s390x-*)
2495 + basic_machine=s390x-ibm
2496 + ;;
2497 + sa29200)
2498 + basic_machine=a29k-amd
2499 + os=-udi
2500 + ;;
2501 + sb1)
2502 + basic_machine=mipsisa64sb1-unknown
2503 + ;;
2504 + sb1el)
2505 + basic_machine=mipsisa64sb1el-unknown
2506 + ;;
2507 + sde)
2508 + basic_machine=mipsisa32-sde
2509 + os=-elf
2510 + ;;
2511 + sei)
2512 + basic_machine=mips-sei
2513 + os=-seiux
2514 + ;;
2515 + sequent)
2516 + basic_machine=i386-sequent
2517 + ;;
2518 + sh)
2519 + basic_machine=sh-hitachi
2520 + os=-hms
2521 + ;;
2522 + sh5el)
2523 + basic_machine=sh5le-unknown
2524 + ;;
2525 + sh64)
2526 + basic_machine=sh64-unknown
2527 + ;;
2528 + sparclite-wrs | simso-wrs)
2529 + basic_machine=sparclite-wrs
2530 + os=-vxworks
2531 + ;;
2532 + sps7)
2533 + basic_machine=m68k-bull
2534 + os=-sysv2
2535 + ;;
2536 + spur)
2537 + basic_machine=spur-unknown
2538 + ;;
2539 + st2000)
2540 + basic_machine=m68k-tandem
2541 + ;;
2542 + stratus)
2543 + basic_machine=i860-stratus
2544 + os=-sysv4
2545 + ;;
2546 + strongarm-* | thumb-*)
2547 + basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
2548 + ;;
2549 + sun2)
2550 + basic_machine=m68000-sun
2551 + ;;
2552 + sun2os3)
2553 + basic_machine=m68000-sun
2554 + os=-sunos3
2555 + ;;
2556 + sun2os4)
2557 + basic_machine=m68000-sun
2558 + os=-sunos4
2559 + ;;
2560 + sun3os3)
2561 + basic_machine=m68k-sun
2562 + os=-sunos3
2563 + ;;
2564 + sun3os4)
2565 + basic_machine=m68k-sun
2566 + os=-sunos4
2567 + ;;
2568 + sun4os3)
2569 + basic_machine=sparc-sun
2570 + os=-sunos3
2571 + ;;
2572 + sun4os4)
2573 + basic_machine=sparc-sun
2574 + os=-sunos4
2575 + ;;
2576 + sun4sol2)
2577 + basic_machine=sparc-sun
2578 + os=-solaris2
2579 + ;;
2580 + sun3 | sun3-*)
2581 + basic_machine=m68k-sun
2582 + ;;
2583 + sun4)
2584 + basic_machine=sparc-sun
2585 + ;;
2586 + sun386 | sun386i | roadrunner)
2587 + basic_machine=i386-sun
2588 + ;;
2589 + sv1)
2590 + basic_machine=sv1-cray
2591 + os=-unicos
2592 + ;;
2593 + symmetry)
2594 + basic_machine=i386-sequent
2595 + os=-dynix
2596 + ;;
2597 + t3e)
2598 + basic_machine=alphaev5-cray
2599 + os=-unicos
2600 + ;;
2601 + t90)
2602 + basic_machine=t90-cray
2603 + os=-unicos
2604 + ;;
2605 + tile*)
2606 + basic_machine=$basic_machine-unknown
2607 + os=-linux-gnu
2608 + ;;
2609 + tx39)
2610 + basic_machine=mipstx39-unknown
2611 + ;;
2612 + tx39el)
2613 + basic_machine=mipstx39el-unknown
2614 + ;;
2615 + toad1)
2616 + basic_machine=pdp10-xkl
2617 + os=-tops20
2618 + ;;
2619 + tower | tower-32)
2620 + basic_machine=m68k-ncr
2621 + ;;
2622 + tpf)
2623 + basic_machine=s390x-ibm
2624 + os=-tpf
2625 + ;;
2626 + udi29k)
2627 + basic_machine=a29k-amd
2628 + os=-udi
2629 + ;;
2630 + ultra3)
2631 + basic_machine=a29k-nyu
2632 + os=-sym1
2633 + ;;
2634 + v810 | necv810)
2635 + basic_machine=v810-nec
2636 + os=-none
2637 + ;;
2638 + vaxv)
2639 + basic_machine=vax-dec
2640 + os=-sysv
2641 + ;;
2642 + vms)
2643 + basic_machine=vax-dec
2644 + os=-vms
2645 + ;;
2646 + vpp*|vx|vx-*)
2647 + basic_machine=f301-fujitsu
2648 + ;;
2649 + vxworks960)
2650 + basic_machine=i960-wrs
2651 + os=-vxworks
2652 + ;;
2653 + vxworks68)
2654 + basic_machine=m68k-wrs
2655 + os=-vxworks
2656 + ;;
2657 + vxworks29k)
2658 + basic_machine=a29k-wrs
2659 + os=-vxworks
2660 + ;;
2661 + w65*)
2662 + basic_machine=w65-wdc
2663 + os=-none
2664 + ;;
2665 + w89k-*)
2666 + basic_machine=hppa1.1-winbond
2667 + os=-proelf
2668 + ;;
2669 + xbox)
2670 + basic_machine=i686-pc
2671 + os=-mingw32
2672 + ;;
2673 + xps | xps100)
2674 + basic_machine=xps100-honeywell
2675 + ;;
2676 + xscale-* | xscalee[bl]-*)
2677 + basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
2678 + ;;
2679 + ymp)
2680 + basic_machine=ymp-cray
2681 + os=-unicos
2682 + ;;
2683 + z8k-*-coff)
2684 + basic_machine=z8k-unknown
2685 + os=-sim
2686 + ;;
2687 + z80-*-coff)
2688 + basic_machine=z80-unknown
2689 + os=-sim
2690 + ;;
2691 + none)
2692 + basic_machine=none-none
2693 + os=-none
2694 + ;;
2696 +# Here we handle the default manufacturer of certain CPU types. It is in
2697 +# some cases the only manufacturer, in others, it is the most popular.
2698 + w89k)
2699 + basic_machine=hppa1.1-winbond
2700 + ;;
2701 + op50n)
2702 + basic_machine=hppa1.1-oki
2703 + ;;
2704 + op60c)
2705 + basic_machine=hppa1.1-oki
2706 + ;;
2707 + romp)
2708 + basic_machine=romp-ibm
2709 + ;;
2710 + mmix)
2711 + basic_machine=mmix-knuth
2712 + ;;
2713 + rs6000)
2714 + basic_machine=rs6000-ibm
2715 + ;;
2716 + vax)
2717 + basic_machine=vax-dec
2718 + ;;
2719 + pdp10)
2720 + # there are many clones, so DEC is not a safe bet
2721 + basic_machine=pdp10-unknown
2722 + ;;
2723 + pdp11)
2724 + basic_machine=pdp11-dec
2725 + ;;
2726 + we32k)
2727 + basic_machine=we32k-att
2728 + ;;
2729 + sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
2730 + basic_machine=sh-unknown
2731 + ;;
2732 + sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
2733 + basic_machine=sparc-sun
2734 + ;;
2735 + cydra)
2736 + basic_machine=cydra-cydrome
2737 + ;;
2738 + orion)
2739 + basic_machine=orion-highlevel
2740 + ;;
2741 + orion105)
2742 + basic_machine=clipper-highlevel
2743 + ;;
2744 + mac | mpw | mac-mpw)
2745 + basic_machine=m68k-apple
2746 + ;;
2747 + pmac | pmac-mpw)
2748 + basic_machine=powerpc-apple
2749 + ;;
2750 + *-unknown)
2751 + # Make sure to match an already-canonicalized machine name.
2752 + ;;
2753 + *)
2754 + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
2755 + exit 1
2756 + ;;
2757 +esac
2759 +# Here we canonicalize certain aliases for manufacturers.
2760 +case $basic_machine in
2761 + *-digital*)
2762 + basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
2763 + ;;
2764 + *-commodore*)
2765 + basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
2766 + ;;
2767 + *)
2768 + ;;
2769 +esac
2771 +# Decode manufacturer-specific aliases for certain operating systems.
2773 +if [ x"$os" != x"" ]
2774 +then
2775 +case $os in
2776 + # First match some system type aliases
2777 + # that might get confused with valid system types.
2778 + # -solaris* is a basic system type, with this one exception.
2779 + -auroraux)
2780 + os=-auroraux
2781 + ;;
2782 + -solaris1 | -solaris1.*)
2783 + os=`echo $os | sed -e 's|solaris1|sunos4|'`
2784 + ;;
2785 + -solaris)
2786 + os=-solaris2
2787 + ;;
2788 + -svr4*)
2789 + os=-sysv4
2790 + ;;
2791 + -unixware*)
2792 + os=-sysv4.2uw
2793 + ;;
2794 + -gnu/linux*)
2795 + os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
2796 + ;;
2797 + # First accept the basic system types.
2798 + # The portable systems comes first.
2799 + # Each alternative MUST END IN A *, to match a version number.
2800 + # -sysv* is not here because it comes later, after sysvr4.
2801 + -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
2802 + | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
2803 + | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
2804 + | -sym* | -kopensolaris* | -plan9* \
2805 + | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
2806 + | -aos* | -aros* \
2807 + | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
2808 + | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
2809 + | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
2810 + | -bitrig* | -openbsd* | -solidbsd* \
2811 + | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
2812 + | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
2813 + | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
2814 + | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
2815 + | -chorusos* | -chorusrdb* | -cegcc* \
2816 + | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
2817 + | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
2818 + | -linux-newlib* | -linux-musl* | -linux-uclibc* \
2819 + | -uxpv* | -beos* | -mpeix* | -udk* \
2820 + | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
2821 + | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
2822 + | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
2823 + | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
2824 + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
2825 + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
2826 + | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -tirtos*)
2827 + # Remember, each alternative MUST END IN *, to match a version number.
2828 + ;;
2829 + -qnx*)
2830 + case $basic_machine in
2831 + x86-* | i*86-*)
2832 + ;;
2833 + *)
2834 + os=-nto$os
2835 + ;;
2836 + esac
2837 + ;;
2838 + -nto-qnx*)
2839 + ;;
2840 + -nto*)
2841 + os=`echo $os | sed -e 's|nto|nto-qnx|'`
2842 + ;;
2843 + -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
2844 + | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
2845 + | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
2846 + ;;
2847 + -mac*)
2848 + os=`echo $os | sed -e 's|mac|macos|'`
2849 + ;;
2850 + -linux-dietlibc)
2851 + os=-linux-dietlibc
2852 + ;;
2853 + -linux*)
2854 + os=`echo $os | sed -e 's|linux|linux-gnu|'`
2855 + ;;
2856 + -sunos5*)
2857 + os=`echo $os | sed -e 's|sunos5|solaris2|'`
2858 + ;;
2859 + -sunos6*)
2860 + os=`echo $os | sed -e 's|sunos6|solaris3|'`
2861 + ;;
2862 + -opened*)
2863 + os=-openedition
2864 + ;;
2865 + -os400*)
2866 + os=-os400
2867 + ;;
2868 + -wince*)
2869 + os=-wince
2870 + ;;
2871 + -osfrose*)
2872 + os=-osfrose
2873 + ;;
2874 + -osf*)
2875 + os=-osf
2876 + ;;
2877 + -utek*)
2878 + os=-bsd
2879 + ;;
2880 + -dynix*)
2881 + os=-bsd
2882 + ;;
2883 + -acis*)
2884 + os=-aos
2885 + ;;
2886 + -atheos*)
2887 + os=-atheos
2888 + ;;
2889 + -syllable*)
2890 + os=-syllable
2891 + ;;
2892 + -386bsd)
2893 + os=-bsd
2894 + ;;
2895 + -ctix* | -uts*)
2896 + os=-sysv
2897 + ;;
2898 + -nova*)
2899 + os=-rtmk-nova
2900 + ;;
2901 + -ns2 )
2902 + os=-nextstep2
2903 + ;;
2904 + -nsk*)
2905 + os=-nsk
2906 + ;;
2907 + # Preserve the version number of sinix5.
2908 + -sinix5.*)
2909 + os=`echo $os | sed -e 's|sinix|sysv|'`
2910 + ;;
2911 + -sinix*)
2912 + os=-sysv4
2913 + ;;
2914 + -tpf*)
2915 + os=-tpf
2916 + ;;
2917 + -triton*)
2918 + os=-sysv3
2919 + ;;
2920 + -oss*)
2921 + os=-sysv3
2922 + ;;
2923 + -svr4)
2924 + os=-sysv4
2925 + ;;
2926 + -svr3)
2927 + os=-sysv3
2928 + ;;
2929 + -sysvr4)
2930 + os=-sysv4
2931 + ;;
2932 + # This must come after -sysvr4.
2933 + -sysv*)
2934 + ;;
2935 + -ose*)
2936 + os=-ose
2937 + ;;
2938 + -es1800*)
2939 + os=-ose
2940 + ;;
2941 + -xenix)
2942 + os=-xenix
2943 + ;;
2944 + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
2945 + os=-mint
2946 + ;;
2947 + -aros*)
2948 + os=-aros
2949 + ;;
2950 + -zvmoe)
2951 + os=-zvmoe
2952 + ;;
2953 + -dicos*)
2954 + os=-dicos
2955 + ;;
2956 + -nacl*)
2957 + ;;
2958 + -none)
2959 + ;;
2960 + *)
2961 + # Get rid of the `-' at the beginning of $os.
2962 + os=`echo $os | sed 's/[^-]*-//'`
2963 + echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
2964 + exit 1
2965 + ;;
2966 +esac
2967 +else
2969 +# Here we handle the default operating systems that come with various machines.
2970 +# The value should be what the vendor currently ships out the door with their
2971 +# machine or put another way, the most popular os provided with the machine.
2973 +# Note that if you're going to try to match "-MANUFACTURER" here (say,
2974 +# "-sun"), then you have to tell the case statement up towards the top
2975 +# that MANUFACTURER isn't an operating system. Otherwise, code above
2976 +# will signal an error saying that MANUFACTURER isn't an operating
2977 +# system, and we'll never get to this point.
2979 +case $basic_machine in
2980 + score-*)
2981 + os=-elf
2982 + ;;
2983 + spu-*)
2984 + os=-elf
2985 + ;;
2986 + *-acorn)
2987 + os=-riscix1.2
2988 + ;;
2989 + arm*-rebel)
2990 + os=-linux
2991 + ;;
2992 + arm*-semi)
2993 + os=-aout
2994 + ;;
2995 + c4x-* | tic4x-*)
2996 + os=-coff
2997 + ;;
2998 + c8051-*)
2999 + os=-elf
3000 + ;;
3001 + hexagon-*)
3002 + os=-elf
3003 + ;;
3004 + tic54x-*)
3005 + os=-coff
3006 + ;;
3007 + tic55x-*)
3008 + os=-coff
3009 + ;;
3010 + tic6x-*)
3011 + os=-coff
3012 + ;;
3013 + # This must come before the *-dec entry.
3014 + pdp10-*)
3015 + os=-tops20
3016 + ;;
3017 + pdp11-*)
3018 + os=-none
3019 + ;;
3020 + *-dec | vax-*)
3021 + os=-ultrix4.2
3022 + ;;
3023 + m68*-apollo)
3024 + os=-domain
3025 + ;;
3026 + i386-sun)
3027 + os=-sunos4.0.2
3028 + ;;
3029 + m68000-sun)
3030 + os=-sunos3
3031 + ;;
3032 + m68*-cisco)
3033 + os=-aout
3034 + ;;
3035 + mep-*)
3036 + os=-elf
3037 + ;;
3038 + mips*-cisco)
3039 + os=-elf
3040 + ;;
3041 + mips*-*)
3042 + os=-elf
3043 + ;;
3044 + or32-*)
3045 + os=-coff
3046 + ;;
3047 + *-tti) # must be before sparc entry or we get the wrong os.
3048 + os=-sysv3
3049 + ;;
3050 + sparc-* | *-sun)
3051 + os=-sunos4.1.1
3052 + ;;
3053 + *-be)
3054 + os=-beos
3055 + ;;
3056 + *-haiku)
3057 + os=-haiku
3058 + ;;
3059 + *-ibm)
3060 + os=-aix
3061 + ;;
3062 + *-knuth)
3063 + os=-mmixware
3064 + ;;
3065 + *-wec)
3066 + os=-proelf
3067 + ;;
3068 + *-winbond)
3069 + os=-proelf
3070 + ;;
3071 + *-oki)
3072 + os=-proelf
3073 + ;;
3074 + *-hp)
3075 + os=-hpux
3076 + ;;
3077 + *-hitachi)
3078 + os=-hiux
3079 + ;;
3080 + i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
3081 + os=-sysv
3082 + ;;
3083 + *-cbm)
3084 + os=-amigaos
3085 + ;;
3086 + *-dg)
3087 + os=-dgux
3088 + ;;
3089 + *-dolphin)
3090 + os=-sysv3
3091 + ;;
3092 + m68k-ccur)
3093 + os=-rtu
3094 + ;;
3095 + m88k-omron*)
3096 + os=-luna
3097 + ;;
3098 + *-next )
3099 + os=-nextstep
3100 + ;;
3101 + *-sequent)
3102 + os=-ptx
3103 + ;;
3104 + *-crds)
3105 + os=-unos
3106 + ;;
3107 + *-ns)
3108 + os=-genix
3109 + ;;
3110 + i370-*)
3111 + os=-mvs
3112 + ;;
3113 + *-next)
3114 + os=-nextstep3
3115 + ;;
3116 + *-gould)
3117 + os=-sysv
3118 + ;;
3119 + *-highlevel)
3120 + os=-bsd
3121 + ;;
3122 + *-encore)
3123 + os=-bsd
3124 + ;;
3125 + *-sgi)
3126 + os=-irix
3127 + ;;
3128 + *-siemens)
3129 + os=-sysv4
3130 + ;;
3131 + *-masscomp)
3132 + os=-rtu
3133 + ;;
3134 + f30[01]-fujitsu | f700-fujitsu)
3135 + os=-uxpv
3136 + ;;
3137 + *-rom68k)
3138 + os=-coff
3139 + ;;
3140 + *-*bug)
3141 + os=-coff
3142 + ;;
3143 + *-apple)
3144 + os=-macos
3145 + ;;
3146 + *-atari*)
3147 + os=-mint
3148 + ;;
3149 + *)
3150 + os=-none
3151 + ;;
3152 +esac
3153 +fi
3155 +# Here we handle the case where we know the os, and the CPU type, but not the
3156 +# manufacturer. We pick the logical manufacturer.
3157 +vendor=unknown
3158 +case $basic_machine in
3159 + *-unknown)
3160 + case $os in
3161 + -riscix*)
3162 + vendor=acorn
3163 + ;;
3164 + -sunos*)
3165 + vendor=sun
3166 + ;;
3167 + -cnk*|-aix*)
3168 + vendor=ibm
3169 + ;;
3170 + -beos*)
3171 + vendor=be
3172 + ;;
3173 + -hpux*)
3174 + vendor=hp
3175 + ;;
3176 + -mpeix*)
3177 + vendor=hp
3178 + ;;
3179 + -hiux*)
3180 + vendor=hitachi
3181 + ;;
3182 + -unos*)
3183 + vendor=crds
3184 + ;;
3185 + -dgux*)
3186 + vendor=dg
3187 + ;;
3188 + -luna*)
3189 + vendor=omron
3190 + ;;
3191 + -genix*)
3192 + vendor=ns
3193 + ;;
3194 + -mvs* | -opened*)
3195 + vendor=ibm
3196 + ;;
3197 + -os400*)
3198 + vendor=ibm
3199 + ;;
3200 + -ptx*)
3201 + vendor=sequent
3202 + ;;
3203 + -tpf*)
3204 + vendor=ibm
3205 + ;;
3206 + -vxsim* | -vxworks* | -windiss*)
3207 + vendor=wrs
3208 + ;;
3209 + -aux*)
3210 + vendor=apple
3211 + ;;
3212 + -hms*)
3213 + vendor=hitachi
3214 + ;;
3215 + -mpw* | -macos*)
3216 + vendor=apple
3217 + ;;
3218 + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
3219 + vendor=atari
3220 + ;;
3221 + -vos*)
3222 + vendor=stratus
3223 + ;;
3224 + esac
3225 + basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
3226 + ;;
3227 +esac
3229 +echo $basic_machine$os
3230 +exit
3232 +# Local variables:
3233 +# eval: (add-hook 'write-file-hooks 'time-stamp)
3234 +# time-stamp-start: "timestamp='"
3235 +# time-stamp-format: "%:y-%02m-%02d"
3236 +# time-stamp-end: "'"
3237 +# End:
3238 --- openjade1.3-1.3.2.orig/config/config.guess
3239 +++ openjade1.3-1.3.2/config/config.guess
3240 @@ -1,9 +1,9 @@
3241 #! /bin/sh
3242 # Attempt to guess a canonical system name.
3243 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3244 -# 2000, 2001, 2002 Free Software Foundation, Inc.
3245 +# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
3247 -timestamp='2002-01-10'
3248 +timestamp='2005-04-22'
3250 # This file is free software; you can redistribute it and/or modify it
3251 # under the terms of the GNU General Public License as published by
3252 @@ -53,7 +53,7 @@
3253 GNU config.guess ($timestamp)
3255 Originally written by Per Bothner.
3256 -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
3257 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
3258 Free Software Foundation, Inc.
3260 This is free software; see the source for copying conditions. There is NO
3261 @@ -88,30 +88,42 @@
3262 exit 1
3263 fi
3265 +trap 'exit 1' 1 2 15
3267 -dummy=dummy-$$
3268 -trap 'rm -f $dummy.c $dummy.o $dummy.rel $dummy; exit 1' 1 2 15
3269 +# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
3270 +# compiler to aid in system detection is discouraged as it requires
3271 +# temporary files to be created and, as you can see below, it is a
3272 +# headache to deal with in a portable fashion.
3274 -# CC_FOR_BUILD -- compiler used by this script.
3275 # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
3276 # use `HOST_CC' if defined, but it is deprecated.
3278 -set_cc_for_build='case $CC_FOR_BUILD,$HOST_CC,$CC in
3279 - ,,) echo "int dummy(){}" > $dummy.c ;
3280 - for c in cc gcc c89 ; do
3281 - ($c $dummy.c -c -o $dummy.o) >/dev/null 2>&1 ;
3282 - if test $? = 0 ; then
3283 +# Portable tmp directory creation inspired by the Autoconf team.
3285 +set_cc_for_build='
3286 +trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
3287 +trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
3288 +: ${TMPDIR=/tmp} ;
3289 + { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
3290 + { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
3291 + { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
3292 + { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
3293 +dummy=$tmp/dummy ;
3294 +tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
3295 +case $CC_FOR_BUILD,$HOST_CC,$CC in
3296 + ,,) echo "int x;" > $dummy.c ;
3297 + for c in cc gcc c89 c99 ; do
3298 + if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
3299 CC_FOR_BUILD="$c"; break ;
3300 fi ;
3301 done ;
3302 - rm -f $dummy.c $dummy.o $dummy.rel ;
3303 if test x"$CC_FOR_BUILD" = x ; then
3304 CC_FOR_BUILD=no_compiler_found ;
3305 fi
3306 ;;
3307 ,,*) CC_FOR_BUILD=$CC ;;
3308 ,*,*) CC_FOR_BUILD=$HOST_CC ;;
3309 -esac'
3310 +esac ;'
3312 # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
3313 # (ghazi@noc.rutgers.edu 1994-08-24)
3314 @@ -138,9 +150,11 @@
3316 # Note: NetBSD doesn't particularly care about the vendor
3317 # portion of the name. We always set it to "unknown".
3318 - UNAME_MACHINE_ARCH=`(uname -p) 2>/dev/null` || \
3319 - UNAME_MACHINE_ARCH=unknown
3320 + sysctl="sysctl -n hw.machine_arch"
3321 + UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
3322 + /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
3323 case "${UNAME_MACHINE_ARCH}" in
3324 + armeb) machine=armeb-unknown ;;
3325 arm*) machine=arm-unknown ;;
3326 sh3el) machine=shl-unknown ;;
3327 sh3eb) machine=sh-unknown ;;
3328 @@ -166,21 +180,38 @@
3329 ;;
3330 esac
3331 # The OS release
3332 - release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
3333 + # Debian GNU/NetBSD machines have a different userland, and
3334 + # thus, need a distinct triplet. However, they do not need
3335 + # kernel version information, so it can be replaced with a
3336 + # suitable tag, in the style of linux-gnu.
3337 + case "${UNAME_VERSION}" in
3338 + Debian*)
3339 + release='-gnu'
3340 + ;;
3341 + *)
3342 + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
3343 + ;;
3344 + esac
3345 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
3346 # contains redundant information, the shorter form:
3347 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
3348 echo "${machine}-${os}${release}"
3349 exit 0 ;;
3350 + amd64:OpenBSD:*:*)
3351 + echo x86_64-unknown-openbsd${UNAME_RELEASE}
3352 + exit 0 ;;
3353 amiga:OpenBSD:*:*)
3354 echo m68k-unknown-openbsd${UNAME_RELEASE}
3355 exit 0 ;;
3356 - arc:OpenBSD:*:*)
3357 - echo mipsel-unknown-openbsd${UNAME_RELEASE}
3358 + cats:OpenBSD:*:*)
3359 + echo arm-unknown-openbsd${UNAME_RELEASE}
3360 exit 0 ;;
3361 hp300:OpenBSD:*:*)
3362 echo m68k-unknown-openbsd${UNAME_RELEASE}
3363 exit 0 ;;
3364 + luna88k:OpenBSD:*:*)
3365 + echo m88k-unknown-openbsd${UNAME_RELEASE}
3366 + exit 0 ;;
3367 mac68k:OpenBSD:*:*)
3368 echo m68k-unknown-openbsd${UNAME_RELEASE}
3369 exit 0 ;;
3370 @@ -196,83 +227,76 @@
3371 mvmeppc:OpenBSD:*:*)
3372 echo powerpc-unknown-openbsd${UNAME_RELEASE}
3373 exit 0 ;;
3374 - pmax:OpenBSD:*:*)
3375 - echo mipsel-unknown-openbsd${UNAME_RELEASE}
3376 - exit 0 ;;
3377 sgi:OpenBSD:*:*)
3378 - echo mipseb-unknown-openbsd${UNAME_RELEASE}
3379 + echo mips64-unknown-openbsd${UNAME_RELEASE}
3380 exit 0 ;;
3381 sun3:OpenBSD:*:*)
3382 echo m68k-unknown-openbsd${UNAME_RELEASE}
3383 exit 0 ;;
3384 - wgrisc:OpenBSD:*:*)
3385 - echo mipsel-unknown-openbsd${UNAME_RELEASE}
3386 - exit 0 ;;
3387 *:OpenBSD:*:*)
3388 echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
3389 exit 0 ;;
3390 + *:ekkoBSD:*:*)
3391 + echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
3392 + exit 0 ;;
3393 + macppc:MirBSD:*:*)
3394 + echo powerppc-unknown-mirbsd${UNAME_RELEASE}
3395 + exit 0 ;;
3396 + *:MirBSD:*:*)
3397 + echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
3398 + exit 0 ;;
3399 alpha:OSF1:*:*)
3400 - if test $UNAME_RELEASE = "V4.0"; then
3401 + case $UNAME_RELEASE in
3402 + *4.0)
3403 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
3404 - fi
3405 + ;;
3406 + *5.*)
3407 + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
3408 + ;;
3409 + esac
3410 + # According to Compaq, /usr/sbin/psrinfo has been available on
3411 + # OSF/1 and Tru64 systems produced since 1995. I hope that
3412 + # covers most systems running today. This code pipes the CPU
3413 + # types through head -n 1, so we only detect the type of CPU 0.
3414 + ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
3415 + case "$ALPHA_CPU_TYPE" in
3416 + "EV4 (21064)")
3417 + UNAME_MACHINE="alpha" ;;
3418 + "EV4.5 (21064)")
3419 + UNAME_MACHINE="alpha" ;;
3420 + "LCA4 (21066/21068)")
3421 + UNAME_MACHINE="alpha" ;;
3422 + "EV5 (21164)")
3423 + UNAME_MACHINE="alphaev5" ;;
3424 + "EV5.6 (21164A)")
3425 + UNAME_MACHINE="alphaev56" ;;
3426 + "EV5.6 (21164PC)")
3427 + UNAME_MACHINE="alphapca56" ;;
3428 + "EV5.7 (21164PC)")
3429 + UNAME_MACHINE="alphapca57" ;;
3430 + "EV6 (21264)")
3431 + UNAME_MACHINE="alphaev6" ;;
3432 + "EV6.7 (21264A)")
3433 + UNAME_MACHINE="alphaev67" ;;
3434 + "EV6.8CB (21264C)")
3435 + UNAME_MACHINE="alphaev68" ;;
3436 + "EV6.8AL (21264B)")
3437 + UNAME_MACHINE="alphaev68" ;;
3438 + "EV6.8CX (21264D)")
3439 + UNAME_MACHINE="alphaev68" ;;
3440 + "EV6.9A (21264/EV69A)")
3441 + UNAME_MACHINE="alphaev69" ;;
3442 + "EV7 (21364)")
3443 + UNAME_MACHINE="alphaev7" ;;
3444 + "EV7.9 (21364A)")
3445 + UNAME_MACHINE="alphaev79" ;;
3446 + esac
3447 + # A Pn.n version is a patched version.
3448 # A Vn.n version is a released version.
3449 # A Tn.n version is a released field test version.
3450 # A Xn.n version is an unreleased experimental baselevel.
3451 # 1.2 uses "1.2" for uname -r.
3452 - cat <<EOF >$dummy.s
3453 - .data
3454 -\$Lformat:
3455 - .byte 37,100,45,37,120,10,0 # "%d-%x\n"
3457 - .text
3458 - .globl main
3459 - .align 4
3460 - .ent main
3461 -main:
3462 - .frame \$30,16,\$26,0
3463 - ldgp \$29,0(\$27)
3464 - .prologue 1
3465 - .long 0x47e03d80 # implver \$0
3466 - lda \$2,-1
3467 - .long 0x47e20c21 # amask \$2,\$1
3468 - lda \$16,\$Lformat
3469 - mov \$0,\$17
3470 - not \$1,\$18
3471 - jsr \$26,printf
3472 - ldgp \$29,0(\$26)
3473 - mov 0,\$16
3474 - jsr \$26,exit
3475 - .end main
3476 -EOF
3477 - eval $set_cc_for_build
3478 - $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
3479 - if test "$?" = 0 ; then
3480 - case `./$dummy` in
3481 - 0-0)
3482 - UNAME_MACHINE="alpha"
3483 - ;;
3484 - 1-0)
3485 - UNAME_MACHINE="alphaev5"
3486 - ;;
3487 - 1-1)
3488 - UNAME_MACHINE="alphaev56"
3489 - ;;
3490 - 1-101)
3491 - UNAME_MACHINE="alphapca56"
3492 - ;;
3493 - 2-303)
3494 - UNAME_MACHINE="alphaev6"
3495 - ;;
3496 - 2-307)
3497 - UNAME_MACHINE="alphaev67"
3498 - ;;
3499 - 2-1307)
3500 - UNAME_MACHINE="alphaev68"
3501 - ;;
3502 - esac
3503 - fi
3504 - rm -f $dummy.s $dummy
3505 - echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
3506 + echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
3507 exit 0 ;;
3508 Alpha\ *:Windows_NT*:*)
3509 # How do we know it's Interix rather than the generic POSIX subsystem?
3510 @@ -295,6 +319,12 @@
3511 *:OS/390:*:*)
3512 echo i370-ibm-openedition
3513 exit 0 ;;
3514 + *:z/VM:*:*)
3515 + echo s390-ibm-zvmoe
3516 + exit 0 ;;
3517 + *:OS400:*:*)
3518 + echo powerpc-ibm-os400
3519 + exit 0 ;;
3520 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
3521 echo arm-acorn-riscix${UNAME_RELEASE}
3522 exit 0;;
3523 @@ -312,6 +342,13 @@
3524 NILE*:*:*:dcosx)
3525 echo pyramid-pyramid-svr4
3526 exit 0 ;;
3527 + DRS?6000:unix:4.0:6*)
3528 + echo sparc-icl-nx6
3529 + exit 0 ;;
3530 + DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
3531 + case `/usr/bin/uname -p` in
3532 + sparc) echo sparc-icl-nx7 && exit 0 ;;
3533 + esac ;;
3534 sun4H:SunOS:5.*:*)
3535 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
3536 exit 0 ;;
3537 @@ -340,7 +377,7 @@
3538 echo m68k-sun-sunos${UNAME_RELEASE}
3539 exit 0 ;;
3540 sun*:*:4.2BSD:*)
3541 - UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
3542 + UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
3543 test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
3544 case "`/bin/arch`" in
3545 sun3)
3546 @@ -380,6 +417,9 @@
3547 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
3548 echo m68k-unknown-mint${UNAME_RELEASE}
3549 exit 0 ;;
3550 + m68k:machten:*:*)
3551 + echo m68k-apple-machten${UNAME_RELEASE}
3552 + exit 0 ;;
3553 powerpc:machten:*:*)
3554 echo powerpc-apple-machten${UNAME_RELEASE}
3555 exit 0 ;;
3556 @@ -418,15 +458,20 @@
3557 exit (-1);
3559 EOF
3560 - $CC_FOR_BUILD $dummy.c -o $dummy \
3561 - && ./$dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
3562 - && rm -f $dummy.c $dummy && exit 0
3563 - rm -f $dummy.c $dummy
3564 + $CC_FOR_BUILD -o $dummy $dummy.c \
3565 + && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
3566 + && exit 0
3567 echo mips-mips-riscos${UNAME_RELEASE}
3568 exit 0 ;;
3569 Motorola:PowerMAX_OS:*:*)
3570 echo powerpc-motorola-powermax
3571 exit 0 ;;
3572 + Motorola:*:4.3:PL8-*)
3573 + echo powerpc-harris-powermax
3574 + exit 0 ;;
3575 + Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
3576 + echo powerpc-harris-powermax
3577 + exit 0 ;;
3578 Night_Hawk:Power_UNIX:*:*)
3579 echo powerpc-harris-powerunix
3580 exit 0 ;;
3581 @@ -499,8 +544,7 @@
3582 exit(0);
3584 EOF
3585 - $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0
3586 - rm -f $dummy.c $dummy
3587 + $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
3588 echo rs6000-ibm-aix3.2.5
3589 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
3590 echo rs6000-ibm-aix3.2.4
3591 @@ -509,7 +553,7 @@
3592 fi
3593 exit 0 ;;
3594 *:AIX:*:[45])
3595 - IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ print $1 }'`
3596 + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
3597 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
3598 IBM_ARCH=rs6000
3599 else
3600 @@ -598,11 +642,21 @@
3601 exit (0);
3603 EOF
3604 - (CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null) && HP_ARCH=`./$dummy`
3605 - if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi
3606 - rm -f $dummy.c $dummy
3607 + (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
3608 + test -z "$HP_ARCH" && HP_ARCH=hppa
3609 fi ;;
3610 esac
3611 + if [ ${HP_ARCH} = "hppa2.0w" ]
3612 + then
3613 + # avoid double evaluation of $set_cc_for_build
3614 + test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
3615 + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
3616 + then
3617 + HP_ARCH="hppa2.0w"
3618 + else
3619 + HP_ARCH="hppa64"
3620 + fi
3621 + fi
3622 echo ${HP_ARCH}-hp-hpux${HPUX_REV}
3623 exit 0 ;;
3624 ia64:HP-UX:*:*)
3625 @@ -636,8 +690,7 @@
3626 exit (0);
3628 EOF
3629 - $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0
3630 - rm -f $dummy.c $dummy
3631 + $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
3632 echo unknown-hitachi-hiuxwe2
3633 exit 0 ;;
3634 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
3635 @@ -683,9 +736,6 @@
3636 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
3637 echo c4-convex-bsd
3638 exit 0 ;;
3639 - CRAY*X-MP:*:*:*)
3640 - echo xmp-cray-unicos
3641 - exit 0 ;;
3642 CRAY*Y-MP:*:*:*)
3643 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
3644 exit 0 ;;
3645 @@ -698,24 +748,26 @@
3646 CRAY*TS:*:*:*)
3647 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
3648 exit 0 ;;
3649 - CRAY*T3D:*:*:*)
3650 - echo alpha-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
3651 - exit 0 ;;
3652 CRAY*T3E:*:*:*)
3653 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
3654 exit 0 ;;
3655 CRAY*SV1:*:*:*)
3656 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
3657 exit 0 ;;
3658 - CRAY-2:*:*:*)
3659 - echo cray2-cray-unicos
3660 - exit 0 ;;
3661 + *:UNICOS/mp:*:*)
3662 + echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
3663 + exit 0 ;;
3664 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
3665 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
3666 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
3667 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
3668 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
3669 exit 0 ;;
3670 + 5000:UNIX_System_V:4.*:*)
3671 + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
3672 + FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
3673 + echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
3674 + exit 0 ;;
3675 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
3676 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
3677 exit 0 ;;
3678 @@ -737,18 +789,24 @@
3679 i*:PW*:*)
3680 echo ${UNAME_MACHINE}-pc-pw32
3681 exit 0 ;;
3682 - x86:Interix*:3*)
3683 - echo i386-pc-interix3
3684 + x86:Interix*:[34]*)
3685 + echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
3686 + exit 0 ;;
3687 + [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
3688 + echo i${UNAME_MACHINE}-pc-mks
3689 exit 0 ;;
3690 i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
3691 # How do we know it's Interix rather than the generic POSIX subsystem?
3692 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
3693 # UNAME_MACHINE based on the output of uname instead of i386?
3694 - echo i386-pc-interix
3695 + echo i586-pc-interix
3696 exit 0 ;;
3697 i*:UWIN*:*)
3698 echo ${UNAME_MACHINE}-pc-uwin
3699 exit 0 ;;
3700 + amd64:CYGWIN*:*:*)
3701 + echo x86_64-unknown-cygwin
3702 + exit 0 ;;
3703 p*:CYGWIN*:*)
3704 echo powerpcle-unknown-cygwin
3705 exit 0 ;;
3706 @@ -756,16 +814,33 @@
3707 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
3708 exit 0 ;;
3709 *:GNU:*:*)
3710 + # the GNU system
3711 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
3712 exit 0 ;;
3713 + *:GNU/*:*:*)
3714 + # other systems with GNU libc and userland
3715 + echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
3716 + exit 0 ;;
3717 i*86:Minix:*:*)
3718 echo ${UNAME_MACHINE}-pc-minix
3719 exit 0 ;;
3720 arm*:Linux:*:*)
3721 echo ${UNAME_MACHINE}-unknown-linux-gnu
3722 exit 0 ;;
3723 + cris:Linux:*:*)
3724 + echo cris-axis-linux-gnu
3725 + exit 0 ;;
3726 + crisv32:Linux:*:*)
3727 + echo crisv32-axis-linux-gnu
3728 + exit 0 ;;
3729 + frv:Linux:*:*)
3730 + echo frv-unknown-linux-gnu
3731 + exit 0 ;;
3732 ia64:Linux:*:*)
3733 - echo ${UNAME_MACHINE}-unknown-linux
3734 + echo ${UNAME_MACHINE}-unknown-linux-gnu
3735 + exit 0 ;;
3736 + m32r*:Linux:*:*)
3737 + echo ${UNAME_MACHINE}-unknown-linux-gnu
3738 exit 0 ;;
3739 m68*:Linux:*:*)
3740 echo ${UNAME_MACHINE}-unknown-linux-gnu
3741 @@ -776,19 +851,37 @@
3742 #undef CPU
3743 #undef mips
3744 #undef mipsel
3745 - #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
3746 - CPU=mipsel
3747 + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
3748 + CPU=mipsel
3749 #else
3750 - #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
3751 + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
3752 CPU=mips
3753 #else
3754 CPU=
3755 #endif
3756 - #endif
3757 + #endif
3758 +EOF
3759 + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
3760 + test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
3761 + ;;
3762 + mips64:Linux:*:*)
3763 + eval $set_cc_for_build
3764 + sed 's/^ //' << EOF >$dummy.c
3765 + #undef CPU
3766 + #undef mips64
3767 + #undef mips64el
3768 + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
3769 + CPU=mips64el
3770 + #else
3771 + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
3772 + CPU=mips64
3773 + #else
3774 + CPU=
3775 + #endif
3776 + #endif
3777 EOF
3778 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
3779 - rm -f $dummy.c
3780 - test x"${CPU}" != x && echo "${CPU}-pc-linux-gnu" && exit 0
3781 + test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
3782 ;;
3783 ppc:Linux:*:*)
3784 echo powerpc-unknown-linux-gnu
3785 @@ -824,6 +917,9 @@
3786 s390:Linux:*:* | s390x:Linux:*:*)
3787 echo ${UNAME_MACHINE}-ibm-linux
3788 exit 0 ;;
3789 + sh64*:Linux:*:*)
3790 + echo ${UNAME_MACHINE}-unknown-linux-gnu
3791 + exit 0 ;;
3792 sh*:Linux:*:*)
3793 echo ${UNAME_MACHINE}-unknown-linux-gnu
3794 exit 0 ;;
3795 @@ -837,7 +933,8 @@
3796 # The BFD linker knows what the default object file format is, so
3797 # first see if it will tell us. cd to the root directory to prevent
3798 # problems with other programs or directories called `ld' in the path.
3799 - ld_supported_targets=`cd /; ld --help 2>&1 \
3800 + # Set LC_ALL=C to ensure ld outputs messages in English.
3801 + ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
3802 | sed -ne '/supported targets:/!d
3803 s/[ ][ ]*/ /g
3804 s/.*supported targets: *//
3805 @@ -849,7 +946,7 @@
3806 ;;
3807 a.out-i386-linux)
3808 echo "${UNAME_MACHINE}-pc-linux-gnuaout"
3809 - exit 0 ;;
3810 + exit 0 ;;
3811 coff-i386)
3812 echo "${UNAME_MACHINE}-pc-linux-gnucoff"
3813 exit 0 ;;
3814 @@ -874,11 +971,17 @@
3815 LIBC=gnulibc1
3816 # endif
3817 #else
3818 + #ifdef __INTEL_COMPILER
3819 + LIBC=gnu
3820 + #else
3821 LIBC=gnuaout
3822 #endif
3823 + #endif
3824 + #ifdef __dietlibc__
3825 + LIBC=dietlibc
3826 + #endif
3827 EOF
3828 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
3829 - rm -f $dummy.c
3830 test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
3831 test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
3832 ;;
3833 @@ -896,6 +999,26 @@
3834 # Use sysv4.2uw... so that sysv4* matches it.
3835 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
3836 exit 0 ;;
3837 + i*86:OS/2:*:*)
3838 + # If we were able to find `uname', then EMX Unix compatibility
3839 + # is probably installed.
3840 + echo ${UNAME_MACHINE}-pc-os2-emx
3841 + exit 0 ;;
3842 + i*86:XTS-300:*:STOP)
3843 + echo ${UNAME_MACHINE}-unknown-stop
3844 + exit 0 ;;
3845 + i*86:atheos:*:*)
3846 + echo ${UNAME_MACHINE}-unknown-atheos
3847 + exit 0 ;;
3848 + i*86:syllable:*:*)
3849 + echo ${UNAME_MACHINE}-pc-syllable
3850 + exit 0 ;;
3851 + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
3852 + echo i386-unknown-lynxos${UNAME_RELEASE}
3853 + exit 0 ;;
3854 + i*86:*DOS:*:*)
3855 + echo ${UNAME_MACHINE}-pc-msdosdjgpp
3856 + exit 0 ;;
3857 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
3858 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
3859 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
3860 @@ -917,22 +1040,19 @@
3861 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
3862 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
3863 elif /bin/uname -X 2>/dev/null >/dev/null ; then
3864 - UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')`
3865 - (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486
3866 - (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \
3867 + UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
3868 + (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
3869 + (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
3870 && UNAME_MACHINE=i586
3871 - (/bin/uname -X|egrep '^Machine.*Pent ?II' >/dev/null) \
3872 + (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
3873 && UNAME_MACHINE=i686
3874 - (/bin/uname -X|egrep '^Machine.*Pentium Pro' >/dev/null) \
3875 + (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
3876 && UNAME_MACHINE=i686
3877 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
3878 else
3879 echo ${UNAME_MACHINE}-pc-sysv32
3880 fi
3881 exit 0 ;;
3882 - i*86:*DOS:*:*)
3883 - echo ${UNAME_MACHINE}-pc-msdosdjgpp
3884 - exit 0 ;;
3885 pc:*:*:*)
3886 # Left here for compatibility:
3887 # uname -m prints for DJGPP always 'pc', but it prints nothing about
3888 @@ -956,9 +1076,15 @@
3889 # "miniframe"
3890 echo m68010-convergent-sysv
3891 exit 0 ;;
3892 - M68*:*:R3V[567]*:*)
3893 + mc68k:UNIX:SYSTEM5:3.51m)
3894 + echo m68k-convergent-sysv
3895 + exit 0 ;;
3896 + M680?0:D-NIX:5.3:*)
3897 + echo m68k-diab-dnix
3898 + exit 0 ;;
3899 + M68*:*:R3V[5678]*:*)
3900 test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
3901 - 3[34]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0)
3902 + 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
3903 OS_REL=''
3904 test -r /etc/.relid \
3905 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
3906 @@ -975,9 +1101,6 @@
3907 mc68030:UNIX_System_V:4.*:*)
3908 echo m68k-atari-sysv4
3909 exit 0 ;;
3910 - i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
3911 - echo i386-unknown-lynxos${UNAME_RELEASE}
3912 - exit 0 ;;
3913 TSUNAMI:LynxOS:2.*:*)
3914 echo sparc-unknown-lynxos${UNAME_RELEASE}
3915 exit 0 ;;
3916 @@ -1017,6 +1140,10 @@
3917 # From seanf@swdc.stratus.com.
3918 echo i860-stratus-sysv4
3919 exit 0 ;;
3920 + i*86:VOS:*:*)
3921 + # From Paul.Green@stratus.com.
3922 + echo ${UNAME_MACHINE}-stratus-vos
3923 + exit 0 ;;
3924 *:VOS:*:*)
3925 # From Paul.Green@stratus.com.
3926 echo hppa1.1-stratus-vos
3927 @@ -1049,6 +1176,9 @@
3928 SX-5:SUPER-UX:*:*)
3929 echo sx5-nec-superux${UNAME_RELEASE}
3930 exit 0 ;;
3931 + SX-6:SUPER-UX:*:*)
3932 + echo sx6-nec-superux${UNAME_RELEASE}
3933 + exit 0 ;;
3934 Power*:Rhapsody:*:*)
3935 echo powerpc-apple-rhapsody${UNAME_RELEASE}
3936 exit 0 ;;
3937 @@ -1056,18 +1186,28 @@
3938 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
3939 exit 0 ;;
3940 *:Darwin:*:*)
3941 - echo `uname -p`-apple-darwin${UNAME_RELEASE}
3942 + UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
3943 + case $UNAME_PROCESSOR in
3944 + *86) UNAME_PROCESSOR=i686 ;;
3945 + unknown) UNAME_PROCESSOR=powerpc ;;
3946 + esac
3947 + echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
3948 exit 0 ;;
3949 *:procnto*:*:* | *:QNX:[0123456789]*:*)
3950 - if test "${UNAME_MACHINE}" = "x86pc"; then
3951 + UNAME_PROCESSOR=`uname -p`
3952 + if test "$UNAME_PROCESSOR" = "x86"; then
3953 + UNAME_PROCESSOR=i386
3954 UNAME_MACHINE=pc
3955 fi
3956 - echo `uname -p`-${UNAME_MACHINE}-nto-qnx
3957 + echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
3958 exit 0 ;;
3959 *:QNX:*:4*)
3960 echo i386-pc-qnx
3961 exit 0 ;;
3962 - NSR-[GKLNPTVW]:NONSTOP_KERNEL:*:*)
3963 + NSE-?:NONSTOP_KERNEL:*:*)
3964 + echo nse-tandem-nsk${UNAME_RELEASE}
3965 + exit 0 ;;
3966 + NSR-?:NONSTOP_KERNEL:*:*)
3967 echo nsr-tandem-nsk${UNAME_RELEASE}
3968 exit 0 ;;
3969 *:NonStop-UX:*:*)
3970 @@ -1090,11 +1230,6 @@
3971 fi
3972 echo ${UNAME_MACHINE}-unknown-plan9
3973 exit 0 ;;
3974 - i*86:OS/2:*:*)
3975 - # If we were able to find `uname', then EMX Unix compatibility
3976 - # is probably installed.
3977 - echo ${UNAME_MACHINE}-pc-os2-emx
3978 - exit 0 ;;
3979 *:TOPS-10:*:*)
3980 echo pdp10-unknown-tops10
3981 exit 0 ;;
3982 @@ -1113,11 +1248,21 @@
3983 *:ITS:*:*)
3984 echo pdp10-unknown-its
3985 exit 0 ;;
3986 - i*86:XTS-300:*:STOP)
3987 - echo ${UNAME_MACHINE}-unknown-stop
3988 + SEI:*:*:SEIUX)
3989 + echo mips-sei-seiux${UNAME_RELEASE}
3990 exit 0 ;;
3991 - i*86:atheos:*:*)
3992 - echo ${UNAME_MACHINE}-unknown-atheos
3993 + *:DragonFly:*:*)
3994 + echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
3995 + exit 0 ;;
3996 + *:*VMS:*:*)
3997 + UNAME_MACHINE=`(uname -p) 2>/dev/null`
3998 + case "${UNAME_MACHINE}" in
3999 + A*) echo alpha-dec-vms && exit 0 ;;
4000 + I*) echo ia64-dec-vms && exit 0 ;;
4001 + V*) echo vax-dec-vms && exit 0 ;;
4002 + esac ;;
4003 + *:XENIX:*:SysV)
4004 + echo i386-pc-xenix
4005 exit 0 ;;
4006 esac
4008 @@ -1239,8 +1384,7 @@
4010 EOF
4012 -$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy && rm -f $dummy.c $dummy && exit 0
4013 -rm -f $dummy.c $dummy
4014 +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
4016 # Apollos put the system type in the environment.
4018 @@ -1279,7 +1423,9 @@
4019 the operating system you are using. It is advised that you
4020 download the most up to date version of the config scripts from
4022 - ftp://ftp.gnu.org/pub/gnu/config/
4023 + http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
4024 +and
4025 + http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
4027 If the version you run ($0) is already up to date, please
4028 send the following data and any information you think might be
4029 --- openjade1.3-1.3.2.orig/config/config.sub
4030 +++ openjade1.3-1.3.2/config/config.sub
4031 @@ -1,9 +1,9 @@
4032 #! /bin/sh
4033 # Configuration validation subroutine script.
4034 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4035 -# 2000, 2001, 2002 Free Software Foundation, Inc.
4036 +# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
4038 -timestamp='2002-01-02'
4039 +timestamp='2005-04-22'
4041 # This file is (in principle) common to ALL GNU software.
4042 # The presence of a machine in this file suggests that SOME GNU software
4043 @@ -70,7 +70,7 @@
4044 version="\
4045 GNU config.sub ($timestamp)
4047 -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
4048 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
4049 Free Software Foundation, Inc.
4051 This is free software; see the source for copying conditions. There is NO
4052 @@ -118,7 +118,8 @@
4053 # Here we must recognize all the valid KERNEL-OS combinations.
4054 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
4055 case $maybe_os in
4056 - nto-qnx* | linux-gnu* | storm-chaos* | os2-emx* | windows32-*)
4057 + nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \
4058 + kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
4059 os=-$maybe_os
4060 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
4061 ;;
4062 @@ -144,7 +145,7 @@
4063 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
4064 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
4065 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
4066 - -apple | -axis)
4067 + -apple | -axis | -knuth | -cray)
4068 os=
4069 basic_machine=$1
4070 ;;
4071 @@ -228,31 +229,47 @@
4072 | a29k \
4073 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
4074 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
4075 + | am33_2.0 \
4076 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
4077 + | bfin \
4078 | c4x | clipper \
4079 - | d10v | d30v | dsp16xx \
4080 - | fr30 \
4081 + | d10v | d30v | dlx | dsp16xx \
4082 + | fr30 | frv \
4083 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
4084 | i370 | i860 | i960 | ia64 \
4085 - | m32r | m68000 | m68k | m88k | mcore \
4086 - | mips16 | mips64 | mips64el | mips64orion | mips64orionel \
4087 - | mips64vr4100 | mips64vr4100el | mips64vr4300 \
4088 - | mips64vr4300el | mips64vr5000 | mips64vr5000el \
4089 - | mipsbe | mipseb | mipsel | mipsle | mipstx39 | mipstx39el \
4090 - | mipsisa32 \
4091 + | ip2k | iq2000 \
4092 + | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \
4093 + | mips | mipsbe | mipseb | mipsel | mipsle \
4094 + | mips16 \
4095 + | mips64 | mips64el \
4096 + | mips64vr | mips64vrel \
4097 + | mips64orion | mips64orionel \
4098 + | mips64vr4100 | mips64vr4100el \
4099 + | mips64vr4300 | mips64vr4300el \
4100 + | mips64vr5000 | mips64vr5000el \
4101 + | mipsisa32 | mipsisa32el \
4102 + | mipsisa32r2 | mipsisa32r2el \
4103 + | mipsisa64 | mipsisa64el \
4104 + | mipsisa64r2 | mipsisa64r2el \
4105 + | mipsisa64sb1 | mipsisa64sb1el \
4106 + | mipsisa64sr71k | mipsisa64sr71kel \
4107 + | mipstx39 | mipstx39el \
4108 | mn10200 | mn10300 \
4109 + | msp430 \
4110 | ns16k | ns32k \
4111 - | openrisc \
4112 + | openrisc | or32 \
4113 | pdp10 | pdp11 | pj | pjl \
4114 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
4115 | pyramid \
4116 - | sh | sh[34] | sh[34]eb | shbe | shle \
4117 - | sparc | sparc64 | sparclet | sparclite | sparcv9 | sparcv9b \
4118 + | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
4119 + | sh64 | sh64le \
4120 + | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \
4121 + | sparcv8 | sparcv9 | sparcv9b \
4122 | strongarm \
4123 - | tahoe | thumb | tic80 | tron \
4124 + | tahoe | thumb | tic4x | tic80 | tron \
4125 | v850 | v850e \
4126 | we32k \
4127 - | x86 | xscale | xstormy16 | xtensa \
4128 + | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
4129 | z8k)
4130 basic_machine=$basic_machine-unknown
4131 ;;
4132 @@ -281,38 +298,56 @@
4133 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
4134 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
4135 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
4136 - | arm-* | armbe-* | armle-* | armv*-* \
4137 + | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
4138 | avr-* \
4139 - | bs2000-* \
4140 - | c[123]* | c30-* | [cjt]90-* | c54x-* \
4141 - | clipper-* | cray2-* | cydra-* \
4142 - | d10v-* | d30v-* \
4143 + | bfin-* | bs2000-* \
4144 + | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
4145 + | clipper-* | craynv-* | cydra-* \
4146 + | d10v-* | d30v-* | dlx-* \
4147 | elxsi-* \
4148 - | f30[01]-* | f700-* | fr30-* | fx80-* \
4149 + | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
4150 | h8300-* | h8500-* \
4151 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
4152 | i*86-* | i860-* | i960-* | ia64-* \
4153 - | m32r-* \
4154 - | m68000-* | m680[01234]0-* | m68360-* | m683?2-* | m68k-* \
4155 - | m88110-* | m88k-* | mcore-* \
4156 - | mips-* | mips16-* | mips64-* | mips64el-* | mips64orion-* \
4157 - | mips64orionel-* | mips64vr4100-* | mips64vr4100el-* \
4158 - | mips64vr4300-* | mips64vr4300el-* | mipsbe-* | mipseb-* \
4159 - | mipsle-* | mipsel-* | mipstx39-* | mipstx39el-* \
4160 + | ip2k-* | iq2000-* \
4161 + | m32r-* | m32rle-* \
4162 + | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
4163 + | m88110-* | m88k-* | maxq-* | mcore-* \
4164 + | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
4165 + | mips16-* \
4166 + | mips64-* | mips64el-* \
4167 + | mips64vr-* | mips64vrel-* \
4168 + | mips64orion-* | mips64orionel-* \
4169 + | mips64vr4100-* | mips64vr4100el-* \
4170 + | mips64vr4300-* | mips64vr4300el-* \
4171 + | mips64vr5000-* | mips64vr5000el-* \
4172 + | mipsisa32-* | mipsisa32el-* \
4173 + | mipsisa32r2-* | mipsisa32r2el-* \
4174 + | mipsisa64-* | mipsisa64el-* \
4175 + | mipsisa64r2-* | mipsisa64r2el-* \
4176 + | mipsisa64sb1-* | mipsisa64sb1el-* \
4177 + | mipsisa64sr71k-* | mipsisa64sr71kel-* \
4178 + | mipstx39-* | mipstx39el-* \
4179 + | mmix-* \
4180 + | msp430-* \
4181 | none-* | np1-* | ns16k-* | ns32k-* \
4182 | orion-* \
4183 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
4184 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
4185 | pyramid-* \
4186 | romp-* | rs6000-* \
4187 - | sh-* | sh[34]-* | sh[34]eb-* | shbe-* | shle-* \
4188 - | sparc-* | sparc64-* | sparc86x-* | sparclite-* \
4189 - | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* \
4190 - | t3e-* | tahoe-* | thumb-* | tic30-* | tic54x-* | tic80-* | tron-* \
4191 + | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
4192 + | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
4193 + | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \
4194 + | sparclite-* \
4195 + | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
4196 + | tahoe-* | thumb-* \
4197 + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
4198 + | tron-* \
4199 | v850-* | v850e-* | vax-* \
4200 | we32k-* \
4201 - | x86-* | x86_64-* | xmp-* | xps100-* | xscale-* | xstormy16-* \
4202 - | xtensa-* \
4203 + | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
4204 + | xstormy16-* | xtensa-* \
4205 | ymp-* \
4206 | z8k-*)
4207 ;;
4208 @@ -332,6 +367,9 @@
4209 basic_machine=a29k-amd
4210 os=-udi
4211 ;;
4212 + abacus)
4213 + basic_machine=abacus-unknown
4214 + ;;
4215 adobe68k)
4216 basic_machine=m68010-adobe
4217 os=-scout
4218 @@ -346,6 +384,12 @@
4219 basic_machine=a29k-none
4220 os=-bsd
4221 ;;
4222 + amd64)
4223 + basic_machine=x86_64-pc
4224 + ;;
4225 + amd64-*)
4226 + basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
4227 + ;;
4228 amdahl)
4229 basic_machine=580-amdahl
4230 os=-sysv
4231 @@ -377,6 +421,10 @@
4232 basic_machine=ns32k-sequent
4233 os=-dynix
4234 ;;
4235 + c90)
4236 + basic_machine=c90-cray
4237 + os=-unicos
4238 + ;;
4239 convex-c1)
4240 basic_machine=c1-convex
4241 os=-bsd
4242 @@ -397,24 +445,31 @@
4243 basic_machine=c38-convex
4244 os=-bsd
4245 ;;
4246 - cray | ymp)
4247 - basic_machine=ymp-cray
4248 + cray | j90)
4249 + basic_machine=j90-cray
4250 os=-unicos
4251 ;;
4252 - cray2)
4253 - basic_machine=cray2-cray
4254 - os=-unicos
4255 + craynv)
4256 + basic_machine=craynv-cray
4257 + os=-unicosmp
4258 ;;
4259 - [cjt]90)
4260 - basic_machine=${basic_machine}-cray
4261 - os=-unicos
4262 + cr16c)
4263 + basic_machine=cr16c-unknown
4264 + os=-elf
4265 ;;
4266 crds | unos)
4267 basic_machine=m68k-crds
4268 ;;
4269 + crisv32 | crisv32-* | etraxfs*)
4270 + basic_machine=crisv32-axis
4271 + ;;
4272 cris | cris-* | etrax*)
4273 basic_machine=cris-axis
4274 ;;
4275 + crx)
4276 + basic_machine=crx-unknown
4277 + os=-elf
4278 + ;;
4279 da30 | da30-*)
4280 basic_machine=m68k-da30
4281 ;;
4282 @@ -437,6 +492,10 @@
4283 basic_machine=m88k-motorola
4284 os=-sysv3
4285 ;;
4286 + djgpp)
4287 + basic_machine=i586-pc
4288 + os=-msdosdjgpp
4289 + ;;
4290 dpx20 | dpx20-*)
4291 basic_machine=rs6000-bull
4292 os=-bosx
4293 @@ -609,24 +668,12 @@
4294 basic_machine=m68k-atari
4295 os=-mint
4296 ;;
4297 - mipsel*-linux*)
4298 - basic_machine=mipsel-unknown
4299 - os=-linux-gnu
4300 - ;;
4301 - mips*-linux*)
4302 - basic_machine=mips-unknown
4303 - os=-linux-gnu
4304 - ;;
4305 mips3*-*)
4306 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
4307 ;;
4308 mips3*)
4309 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
4310 ;;
4311 - mmix*)
4312 - basic_machine=mmix-knuth
4313 - os=-mmixware
4314 - ;;
4315 monitor)
4316 basic_machine=m68k-rom68k
4317 os=-coff
4318 @@ -714,6 +761,14 @@
4319 basic_machine=hppa1.1-oki
4320 os=-proelf
4321 ;;
4322 + or32 | or32-*)
4323 + basic_machine=or32-unknown
4324 + os=-coff
4325 + ;;
4326 + os400)
4327 + basic_machine=powerpc-ibm
4328 + os=-os400
4329 + ;;
4330 OSE68000 | ose68000)
4331 basic_machine=m68000-ericsson
4332 os=-ose
4333 @@ -736,49 +791,55 @@
4334 pbb)
4335 basic_machine=m68k-tti
4336 ;;
4337 - pc532 | pc532-*)
4338 + pc532 | pc532-*)
4339 basic_machine=ns32k-pc532
4340 ;;
4341 pentium | p5 | k5 | k6 | nexgen | viac3)
4342 basic_machine=i586-pc
4343 ;;
4344 - pentiumpro | p6 | 6x86 | athlon)
4345 + pentiumpro | p6 | 6x86 | athlon | athlon_*)
4346 basic_machine=i686-pc
4347 ;;
4348 - pentiumii | pentium2)
4349 + pentiumii | pentium2 | pentiumiii | pentium3)
4350 basic_machine=i686-pc
4351 ;;
4352 + pentium4)
4353 + basic_machine=i786-pc
4354 + ;;
4355 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
4356 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
4357 ;;
4358 pentiumpro-* | p6-* | 6x86-* | athlon-*)
4359 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
4360 ;;
4361 - pentiumii-* | pentium2-*)
4362 + pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
4363 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
4364 ;;
4365 + pentium4-*)
4366 + basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
4367 + ;;
4368 pn)
4369 basic_machine=pn-gould
4370 ;;
4371 power) basic_machine=power-ibm
4372 ;;
4373 ppc) basic_machine=powerpc-unknown
4374 - ;;
4375 + ;;
4376 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
4377 ;;
4378 ppcle | powerpclittle | ppc-le | powerpc-little)
4379 basic_machine=powerpcle-unknown
4380 - ;;
4381 + ;;
4382 ppcle-* | powerpclittle-*)
4383 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
4384 ;;
4385 ppc64) basic_machine=powerpc64-unknown
4386 - ;;
4387 + ;;
4388 ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
4389 ;;
4390 ppc64le | powerpc64little | ppc64-le | powerpc64-little)
4391 basic_machine=powerpc64le-unknown
4392 - ;;
4393 + ;;
4394 ppc64le-* | powerpc64little-*)
4395 basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
4396 ;;
4397 @@ -809,6 +870,16 @@
4398 basic_machine=a29k-amd
4399 os=-udi
4400 ;;
4401 + sb1)
4402 + basic_machine=mipsisa64sb1-unknown
4403 + ;;
4404 + sb1el)
4405 + basic_machine=mipsisa64sb1el-unknown
4406 + ;;
4407 + sei)
4408 + basic_machine=mips-sei
4409 + os=-seiux
4410 + ;;
4411 sequent)
4412 basic_machine=i386-sequent
4413 ;;
4414 @@ -816,6 +887,9 @@
4415 basic_machine=sh-hitachi
4416 os=-hms
4417 ;;
4418 + sh64)
4419 + basic_machine=sh64-unknown
4420 + ;;
4421 sparclite-wrs | simso-wrs)
4422 basic_machine=sparclite-wrs
4423 os=-vxworks
4424 @@ -883,13 +957,25 @@
4425 os=-dynix
4426 ;;
4427 t3e)
4428 - basic_machine=t3e-cray
4429 + basic_machine=alphaev5-cray
4430 + os=-unicos
4431 + ;;
4432 + t90)
4433 + basic_machine=t90-cray
4434 os=-unicos
4435 ;;
4436 tic54x | c54x*)
4437 basic_machine=tic54x-unknown
4438 os=-coff
4439 ;;
4440 + tic55x | c55x*)
4441 + basic_machine=tic55x-unknown
4442 + os=-coff
4443 + ;;
4444 + tic6x | c6x*)
4445 + basic_machine=tic6x-unknown
4446 + os=-coff
4447 + ;;
4448 tx39)
4449 basic_machine=mipstx39-unknown
4450 ;;
4451 @@ -903,6 +989,10 @@
4452 tower | tower-32)
4453 basic_machine=m68k-ncr
4454 ;;
4455 + tpf)
4456 + basic_machine=s390x-ibm
4457 + os=-tpf
4458 + ;;
4459 udi29k)
4460 basic_machine=a29k-amd
4461 os=-udi
4462 @@ -924,8 +1014,8 @@
4463 os=-vms
4464 ;;
4465 vpp*|vx|vx-*)
4466 - basic_machine=f301-fujitsu
4467 - ;;
4468 + basic_machine=f301-fujitsu
4469 + ;;
4470 vxworks960)
4471 basic_machine=i960-wrs
4472 os=-vxworks
4473 @@ -946,17 +1036,17 @@
4474 basic_machine=hppa1.1-winbond
4475 os=-proelf
4476 ;;
4477 - windows32)
4478 - basic_machine=i386-pc
4479 - os=-windows32-msvcrt
4480 - ;;
4481 - xmp)
4482 - basic_machine=xmp-cray
4483 - os=-unicos
4484 + xbox)
4485 + basic_machine=i686-pc
4486 + os=-mingw32
4487 ;;
4488 - xps | xps100)
4489 + xps | xps100)
4490 basic_machine=xps100-honeywell
4491 ;;
4492 + ymp)
4493 + basic_machine=ymp-cray
4494 + os=-unicos
4495 + ;;
4496 z8k-*-coff)
4497 basic_machine=z8k-unknown
4498 os=-sim
4499 @@ -977,16 +1067,12 @@
4500 op60c)
4501 basic_machine=hppa1.1-oki
4502 ;;
4503 - mips)
4504 - if [ x$os = x-linux-gnu ]; then
4505 - basic_machine=mips-unknown
4506 - else
4507 - basic_machine=mips-mips
4508 - fi
4509 - ;;
4510 romp)
4511 basic_machine=romp-ibm
4512 ;;
4513 + mmix)
4514 + basic_machine=mmix-knuth
4515 + ;;
4516 rs6000)
4517 basic_machine=rs6000-ibm
4518 ;;
4519 @@ -1003,13 +1089,16 @@
4520 we32k)
4521 basic_machine=we32k-att
4522 ;;
4523 - sh3 | sh4 | sh3eb | sh4eb)
4524 + sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
4525 basic_machine=sh-unknown
4526 ;;
4527 - sparc | sparcv9 | sparcv9b)
4528 + sh64)
4529 + basic_machine=sh64-unknown
4530 + ;;
4531 + sparc | sparcv8 | sparcv9 | sparcv9b)
4532 basic_machine=sparc-sun
4533 ;;
4534 - cydra)
4535 + cydra)
4536 basic_machine=cydra-cydrome
4537 ;;
4538 orion)
4539 @@ -1024,10 +1113,6 @@
4540 pmac | pmac-mpw)
4541 basic_machine=powerpc-apple
4542 ;;
4543 - c4x*)
4544 - basic_machine=c4x-none
4545 - os=-coff
4546 - ;;
4547 *-unknown)
4548 # Make sure to match an already-canonicalized machine name.
4549 ;;
4550 @@ -1083,17 +1168,20 @@
4551 | -aos* \
4552 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
4553 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
4554 - | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
4555 - | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
4556 + | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
4557 + | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
4558 + | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
4559 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
4560 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
4561 | -chorusos* | -chorusrdb* \
4562 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
4563 - | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
4564 - | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
4565 + | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
4566 + | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
4567 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
4568 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
4569 - | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* | -morphos*)
4570 + | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
4571 + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
4572 + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
4573 # Remember, each alternative MUST END IN *, to match a version number.
4574 ;;
4575 -qnx*)
4576 @@ -1105,8 +1193,10 @@
4577 ;;
4578 esac
4579 ;;
4580 + -nto-qnx*)
4581 + ;;
4582 -nto*)
4583 - os=-nto-qnx
4584 + os=`echo $os | sed -e 's|nto|nto-qnx|'`
4585 ;;
4586 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
4587 | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
4588 @@ -1115,6 +1205,9 @@
4589 -mac*)
4590 os=`echo $os | sed -e 's|mac|macos|'`
4591 ;;
4592 + -linux-dietlibc)
4593 + os=-linux-dietlibc
4594 + ;;
4595 -linux*)
4596 os=`echo $os | sed -e 's|linux|linux-gnu|'`
4597 ;;
4598 @@ -1127,6 +1220,9 @@
4599 -opened*)
4600 os=-openedition
4601 ;;
4602 + -os400*)
4603 + os=-os400
4604 + ;;
4605 -wince*)
4606 os=-wince
4607 ;;
4608 @@ -1148,14 +1244,20 @@
4609 -atheos*)
4610 os=-atheos
4611 ;;
4612 + -syllable*)
4613 + os=-syllable
4614 + ;;
4615 -386bsd)
4616 os=-bsd
4617 ;;
4618 -ctix* | -uts*)
4619 os=-sysv
4620 ;;
4621 + -nova*)
4622 + os=-rtmk-nova
4623 + ;;
4624 -ns2 )
4625 - os=-nextstep2
4626 + os=-nextstep2
4627 ;;
4628 -nsk*)
4629 os=-nsk
4630 @@ -1167,6 +1269,9 @@
4631 -sinix*)
4632 os=-sysv4
4633 ;;
4634 + -tpf*)
4635 + os=-tpf
4636 + ;;
4637 -triton*)
4638 os=-sysv3
4639 ;;
4640 @@ -1194,8 +1299,17 @@
4641 -xenix)
4642 os=-xenix
4643 ;;
4644 - -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
4645 - os=-mint
4646 + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
4647 + os=-mint
4648 + ;;
4649 + -aros*)
4650 + os=-aros
4651 + ;;
4652 + -kaos*)
4653 + os=-kaos
4654 + ;;
4655 + -zvmoe)
4656 + os=-zvmoe
4657 ;;
4658 -none)
4659 ;;
4660 @@ -1228,11 +1342,14 @@
4661 arm*-semi)
4662 os=-aout
4663 ;;
4664 + c4x-* | tic4x-*)
4665 + os=-coff
4666 + ;;
4667 # This must come before the *-dec entry.
4668 pdp10-*)
4669 os=-tops20
4670 ;;
4671 - pdp11-*)
4672 + pdp11-*)
4673 os=-none
4674 ;;
4675 *-dec | vax-*)
4676 @@ -1259,6 +1376,9 @@
4677 mips*-*)
4678 os=-elf
4679 ;;
4680 + or32-*)
4681 + os=-coff
4682 + ;;
4683 *-tti) # must be before sparc entry or we get the wrong os.
4684 os=-sysv3
4685 ;;
4686 @@ -1271,6 +1391,9 @@
4687 *-ibm)
4688 os=-aix
4689 ;;
4690 + *-knuth)
4691 + os=-mmixware
4692 + ;;
4693 *-wec)
4694 os=-proelf
4695 ;;
4696 @@ -1322,19 +1445,19 @@
4697 *-next)
4698 os=-nextstep3
4699 ;;
4700 - *-gould)
4701 + *-gould)
4702 os=-sysv
4703 ;;
4704 - *-highlevel)
4705 + *-highlevel)
4706 os=-bsd
4707 ;;
4708 *-encore)
4709 os=-bsd
4710 ;;
4711 - *-sgi)
4712 + *-sgi)
4713 os=-irix
4714 ;;
4715 - *-siemens)
4716 + *-siemens)
4717 os=-sysv4
4718 ;;
4719 *-masscomp)
4720 @@ -1403,10 +1526,16 @@
4721 -mvs* | -opened*)
4722 vendor=ibm
4723 ;;
4724 + -os400*)
4725 + vendor=ibm
4726 + ;;
4727 -ptx*)
4728 vendor=sequent
4729 ;;
4730 - -vxsim* | -vxworks*)
4731 + -tpf*)
4732 + vendor=ibm
4733 + ;;
4734 + -vxsim* | -vxworks* | -windiss*)
4735 vendor=wrs
4736 ;;
4737 -aux*)
4738 --- openjade1.3-1.3.2.orig/config/configure.in
4739 +++ openjade1.3-1.3.2/config/configure.in
4740 @@ -1,7 +1,7 @@
4741 dnl
4742 dnl configure.in
4743 dnl
4744 -AC_REVISION($Id: configure.in,v 1.8.4.2.2.12 2002/12/01 11:53:21 icastle Exp $)
4745 +AC_REVISION($Id: configure.in,v 1.8.4.2.2.11 2002/11/16 18:27:23 icastle Exp $)
4746 dnl
4747 dnl Process this file with autoconf to produce a configure script.
4748 dnl
4749 @@ -51,9 +51,6 @@
4750 /usr/local/include/OpenSP) osplibdir=/usr/local/lib ;;
4751 *) osplibdir=/usr/lib ;;
4752 esac
4753 -# On PPC64 libosp is to be found in /usr/lib64; thus
4754 -# fall back to this directory
4755 -test -d ${osplibdir}64 && osplibdir=${osplibdir}64
4756 AC_MSG_CHECKING(location of OpenSP Library)
4757 AC_ARG_ENABLE(splibdir,
4758 [ --enable-splibdir=pathlist
4759 @@ -98,6 +95,7 @@
4760 AC_PROG_LN_S
4761 AC_PROG_CXX
4762 AC_PATH_PROGS(PERL, perl, perl)
4763 +AC_PATH_PROGS(SED, sed, sed)
4764 test "$INSTALL" = "./config/install-sh -c" && INSTALL=`pwd`"/config/install-sh -c"
4766 dnl
4767 @@ -174,8 +172,14 @@
4769 dnl
4770 dnl Check for thread support.
4771 -AC_CHECK_LIB(threads,cthread_fork,LIB_THREADS="-lthreads",LIB_THREADS="")
4772 -AC_SUBST(LIB_THREADS)
4773 +case "${host}" in
4774 + *-*-gnu*)
4775 + ;;
4776 + *)
4777 + AC_CHECK_LIB(threads,cthread_fork,LIB_THREADS="-lthreads",LIB_THREADS="")
4778 + AC_SUBST(LIB_THREADS)
4779 + ;;
4780 +esac
4782 dnl
4783 dnl Check if type of size_t is unsigned int
4784 --- openjade1.3-1.3.2.orig/config/libtool
4785 +++ openjade1.3-1.3.2/config/libtool
4786 @@ -0,0 +1,5229 @@
4787 +#! /bin/sh
4789 +# libtool - Provide generalized library-building support services.
4790 +# Generated automatically by (GNU openjade 1.3.2)
4791 +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4792 +#
4793 +# Copyright (C) 1996-2000 Free Software Foundation, Inc.
4794 +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4795 +#
4796 +# This program is free software; you can redistribute it and/or modify
4797 +# it under the terms of the GNU General Public License as published by
4798 +# the Free Software Foundation; either version 2 of the License, or
4799 +# (at your option) any later version.
4800 +#
4801 +# This program is distributed in the hope that it will be useful, but
4802 +# WITHOUT ANY WARRANTY; without even the implied warranty of
4803 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4804 +# General Public License for more details.
4805 +#
4806 +# You should have received a copy of the GNU General Public License
4807 +# along with this program; if not, write to the Free Software
4808 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
4809 +#
4810 +# As a special exception to the GNU General Public License, if you
4811 +# distribute this file as part of a program that contains a
4812 +# configuration script generated by Autoconf, you may include it under
4813 +# the same distribution terms that you use for the rest of that program.
4815 +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
4816 +Xsed="sed -e s/^X//"
4818 +# The HP-UX ksh and POSIX shell print the target directory to stdout
4819 +# if CDPATH is set.
4820 +if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
4822 +# ### BEGIN LIBTOOL CONFIG
4824 +# Libtool was configured on host ml330:
4826 +# Shell to use when invoking shell scripts.
4827 +SHELL="/bin/sh"
4829 +# Whether or not to build shared libraries.
4830 +build_libtool_libs=no
4832 +# Whether or not to add -lc for building shared libraries.
4833 +build_libtool_need_lc=yes
4835 +# Whether or not to build static libraries.
4836 +build_old_libs=yes
4838 +# Whether or not to optimize for fast installation.
4839 +fast_install=needless
4841 +# The host system.
4842 +host_alias=
4843 +host=i686-pc-linux-gnu
4845 +# An echo program that does not interpret backslashes.
4846 +echo="echo"
4848 +# The archiver.
4849 +AR="ar"
4850 +AR_FLAGS="cru"
4852 +# The default C compiler.
4853 +CC="gcc"
4855 +# Is the compiler the GNU C compiler?
4856 +with_gcc=yes
4858 +# The linker used to build libraries.
4859 +LD="/usr/bin/ld"
4861 +# Whether we need hard or soft links.
4862 +LN_S="ln -s"
4864 +# A BSD-compatible nm program.
4865 +NM="/usr/bin/nm -B"
4867 +# A symbol stripping program
4868 +STRIP=strip
4870 +# Used to examine libraries when file_magic_cmd begins "file"
4871 +MAGIC_CMD=file
4873 +# Used on cygwin: DLL creation program.
4874 +DLLTOOL="dlltool"
4876 +# Used on cygwin: object dumper.
4877 +OBJDUMP="objdump"
4879 +# Used on cygwin: assembler.
4880 +AS="as"
4882 +# The name of the directory that contains temporary libtool files.
4883 +objdir=.libs
4885 +# How to create reloadable object files.
4886 +reload_flag=" -r"
4887 +reload_cmds="\$LD\$reload_flag -o \$output\$reload_objs"
4889 +# How to pass a linker flag through the compiler.
4890 +wl="-Wl,"
4892 +# Object file suffix (normally "o").
4893 +objext="o"
4895 +# Old archive suffix (normally "a").
4896 +libext="a"
4898 +# Executable file suffix (normally "").
4899 +exeext=""
4901 +# Additional compiler flags for building library objects.
4902 +pic_flag=" -fPIC"
4903 +pic_mode=default
4905 +# Does compiler simultaneously support -c and -o options?
4906 +compiler_c_o="no"
4908 +# Can we write directly to a .lo ?
4909 +compiler_o_lo="no"
4911 +# Must we lock files when doing compilation ?
4912 +need_locks="yes"
4914 +# Do we need the lib prefix for modules?
4915 +need_lib_prefix=no
4917 +# Do we need a version for libraries?
4918 +need_version=no
4920 +# Whether dlopen is supported.
4921 +dlopen_support=unknown
4923 +# Whether dlopen of programs is supported.
4924 +dlopen_self=unknown
4926 +# Whether dlopen of statically linked programs is supported.
4927 +dlopen_self_static=unknown
4929 +# Compiler flag to prevent dynamic linking.
4930 +link_static_flag="-static"
4932 +# Compiler flag to turn off builtin functions.
4933 +no_builtin_flag=" -fno-builtin -fno-rtti -fno-exceptions"
4935 +# Compiler flag to allow reflexive dlopens.
4936 +export_dynamic_flag_spec="\${wl}--export-dynamic"
4938 +# Compiler flag to generate shared objects directly from archives.
4939 +whole_archive_flag_spec="\${wl}--whole-archive\$convenience \${wl}--no-whole-archive"
4941 +# Compiler flag to generate thread-safe objects.
4942 +thread_safe_flag_spec=""
4944 +# Library versioning type.
4945 +version_type=linux
4947 +# Format of library name prefix.
4948 +libname_spec="lib\$name"
4950 +# List of archive names. First name is the real one, the rest are links.
4951 +# The last name is the one that the linker finds with -lNAME.
4952 +library_names_spec="\${libname}\${release}.so\$versuffix \${libname}\${release}.so\$major \$libname.so"
4954 +# The coded name of the library, if different from the real name.
4955 +soname_spec="\${libname}\${release}.so\$major"
4957 +# Commands used to build and install an old-style archive.
4958 +RANLIB="ranlib"
4959 +old_archive_cmds="\$AR \$AR_FLAGS \$oldlib\$oldobjs\$old_deplibs~\$RANLIB \$oldlib"
4960 +old_postinstall_cmds="\$RANLIB \$oldlib~chmod 644 \$oldlib"
4961 +old_postuninstall_cmds=""
4963 +# Create an old-style archive from a shared archive.
4964 +old_archive_from_new_cmds=""
4966 +# Create a temporary old-style archive to link instead of a shared archive.
4967 +old_archive_from_expsyms_cmds=""
4969 +# Commands used to build and install a shared archive.
4970 +archive_cmds="\$CC -shared \$libobjs \$deplibs \$compiler_flags \${wl}-soname \$wl\$soname -o \$lib"
4971 +archive_expsym_cmds="\$CC -shared \$libobjs \$deplibs \$compiler_flags \${wl}-soname \$wl\$soname \${wl}-retain-symbols-file \$wl\$export_symbols -o \$lib"
4972 +postinstall_cmds=""
4973 +postuninstall_cmds=""
4975 +# Commands to strip libraries.
4976 +old_striplib="strip --strip-debug"
4977 +striplib="strip --strip-unneeded"
4979 +# Method to check whether dependent libraries are shared objects.
4980 +deplibs_check_method="pass_all"
4982 +# Command to use when deplibs_check_method == file_magic.
4983 +file_magic_cmd="\$MAGIC_CMD"
4985 +# Flag that allows shared libraries with undefined symbols to be built.
4986 +allow_undefined_flag=""
4988 +# Flag that forces no undefined symbols.
4989 +no_undefined_flag=""
4991 +# Commands used to finish a libtool library installation in a directory.
4992 +finish_cmds="PATH=\\\"\\\$PATH:/sbin\\\" ldconfig -n \$libdir"
4994 +# Same as above, but a single script fragment to be evaled but not shown.
4995 +finish_eval=""
4997 +# Take the output of nm and produce a listing of raw symbols and C names.
4998 +global_symbol_pipe="sed -n -e 's/^.*[ ]\\([ABCDGISTW][ABCDGISTW]*\\)[ ][ ]*\\(\\)\\([_A-Za-z][_A-Za-z0-9]*\\)\$/\\1 \\2\\3 \\3/p'"
5000 +# Transform the output of nm in a proper C declaration
5001 +global_symbol_to_cdecl="sed -n -e 's/^. .* \\(.*\\)\$/extern char \\1;/p'"
5003 +# This is the shared library runtime path variable.
5004 +runpath_var=LD_RUN_PATH
5006 +# This is the shared library path variable.
5007 +shlibpath_var=LD_LIBRARY_PATH
5009 +# Is shlibpath searched before the hard-coded library search path?
5010 +shlibpath_overrides_runpath=no
5012 +# How to hardcode a shared library path into an executable.
5013 +hardcode_action=immediate
5015 +# Whether we should hardcode library paths into libraries.
5016 +hardcode_into_libs=yes
5018 +# Flag to hardcode $libdir into a binary during linking.
5019 +# This must work even if $libdir does not exist.
5020 +hardcode_libdir_flag_spec="\${wl}--rpath \${wl}\$libdir"
5022 +# Whether we need a single -rpath flag with a separated argument.
5023 +hardcode_libdir_separator=""
5025 +# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
5026 +# resulting binary.
5027 +hardcode_direct=no
5029 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5030 +# resulting binary.
5031 +hardcode_minus_L=no
5033 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5034 +# the resulting binary.
5035 +hardcode_shlibpath_var=unsupported
5037 +# Variables whose values should be saved in libtool wrapper scripts and
5038 +# restored at relink time.
5039 +variables_saved_for_relink="PATH LD_LIBRARY_PATH LD_RUN_PATH GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5041 +# Whether libtool must link a program against all its dependency libraries.
5042 +link_all_deplibs=unknown
5044 +# Compile-time system search path for libraries
5045 +sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5047 +# Run-time system search path for libraries
5048 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
5050 +# Fix the shell variable $srcfile for the compiler.
5051 +fix_srcfile_path=""
5053 +# Set to yes if exported symbols are required.
5054 +always_export_symbols=no
5056 +# The commands to list exported symbols.
5057 +export_symbols_cmds="\$NM \$libobjs \$convenience | \$global_symbol_pipe | sed 's/.* //' | sort | uniq > \$export_symbols"
5059 +# The commands to extract the exported symbol list from a shared archive.
5060 +extract_expsyms_cmds=""
5062 +# Symbols that should not be listed in the preloaded symbols.
5063 +exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5065 +# Symbols that must always be exported.
5066 +include_expsyms=""
5068 +# ### END LIBTOOL CONFIG
5070 +# ltmain.sh - Provide generalized library-building support services.
5071 +# NOTE: Changing this file will not affect anything until you rerun configure.
5072 +#
5073 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
5074 +# Free Software Foundation, Inc.
5075 +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
5076 +#
5077 +# This program is free software; you can redistribute it and/or modify
5078 +# it under the terms of the GNU General Public License as published by
5079 +# the Free Software Foundation; either version 2 of the License, or
5080 +# (at your option) any later version.
5081 +#
5082 +# This program is distributed in the hope that it will be useful, but
5083 +# WITHOUT ANY WARRANTY; without even the implied warranty of
5084 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5085 +# General Public License for more details.
5086 +#
5087 +# You should have received a copy of the GNU General Public License
5088 +# along with this program; if not, write to the Free Software
5089 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
5090 +#
5091 +# As a special exception to the GNU General Public License, if you
5092 +# distribute this file as part of a program that contains a
5093 +# configuration script generated by Autoconf, you may include it under
5094 +# the same distribution terms that you use for the rest of that program.
5096 +# Check that we have a working $echo.
5097 +if test "X$1" = X--no-reexec; then
5098 + # Discard the --no-reexec flag, and continue.
5099 + shift
5100 +elif test "X$1" = X--fallback-echo; then
5101 + # Avoid inline document here, it may be left over
5102 + :
5103 +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
5104 + # Yippee, $echo works!
5105 + :
5106 +else
5107 + # Restart under the correct shell, and then maybe $echo will work.
5108 + exec $SHELL "$0" --no-reexec ${1+"$@"}
5109 +fi
5111 +if test "X$1" = X--fallback-echo; then
5112 + # used as fallback echo
5113 + shift
5114 + cat <<EOF
5115 +$*
5116 +EOF
5117 + exit 0
5118 +fi
5120 +# The name of this program.
5121 +progname=`$echo "$0" | sed 's%^.*/%%'`
5122 +modename="$progname"
5124 +# Constants.
5125 +PROGRAM=ltmain.sh
5126 +PACKAGE=libtool
5127 +VERSION=1.4
5128 +TIMESTAMP=" (1.920 2001/04/24 23:26:18)"
5130 +default_mode=
5131 +help="Try \`$progname --help' for more information."
5132 +magic="%%%MAGIC variable%%%"
5133 +mkdir="mkdir"
5134 +mv="mv -f"
5135 +rm="rm -f"
5137 +# Sed substitution that helps us do robust quoting. It backslashifies
5138 +# metacharacters that are still active within double-quoted strings.
5139 +Xsed='sed -e 1s/^X//'
5140 +sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
5141 +SP2NL='tr \040 \012'
5142 +NL2SP='tr \015\012 \040\040'
5144 +# NLS nuisances.
5145 +# Only set LANG and LC_ALL to C if already set.
5146 +# These must not be set unconditionally because not all systems understand
5147 +# e.g. LANG=C (notably SCO).
5148 +# We save the old values to restore during execute mode.
5149 +if test "${LC_ALL+set}" = set; then
5150 + save_LC_ALL="$LC_ALL"; LC_ALL=C; export LC_ALL
5151 +fi
5152 +if test "${LANG+set}" = set; then
5153 + save_LANG="$LANG"; LANG=C; export LANG
5154 +fi
5156 +if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
5157 + echo "$modename: not configured to build any kind of library" 1>&2
5158 + echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
5159 + exit 1
5160 +fi
5162 +# Global variables.
5163 +mode=$default_mode
5164 +nonopt=
5165 +prev=
5166 +prevopt=
5167 +run=
5168 +show="$echo"
5169 +show_help=
5170 +execute_dlfiles=
5171 +lo2o="s/\\.lo\$/.${objext}/"
5172 +o2lo="s/\\.${objext}\$/.lo/"
5174 +# Parse our command line options once, thoroughly.
5175 +while test $# -gt 0
5176 +do
5177 + arg="$1"
5178 + shift
5180 + case $arg in
5181 + -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
5182 + *) optarg= ;;
5183 + esac
5185 + # If the previous option needs an argument, assign it.
5186 + if test -n "$prev"; then
5187 + case $prev in
5188 + execute_dlfiles)
5189 + execute_dlfiles="$execute_dlfiles $arg"
5190 + ;;
5191 + *)
5192 + eval "$prev=\$arg"
5193 + ;;
5194 + esac
5196 + prev=
5197 + prevopt=
5198 + continue
5199 + fi
5201 + # Have we seen a non-optional argument yet?
5202 + case $arg in
5203 + --help)
5204 + show_help=yes
5205 + ;;
5207 + --version)
5208 + echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
5209 + exit 0
5210 + ;;
5212 + --config)
5213 + sed -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $0
5214 + exit 0
5215 + ;;
5217 + --debug)
5218 + echo "$progname: enabling shell trace mode"
5219 + set -x
5220 + ;;
5222 + --dry-run | -n)
5223 + run=:
5224 + ;;
5226 + --features)
5227 + echo "host: $host"
5228 + if test "$build_libtool_libs" = yes; then
5229 + echo "enable shared libraries"
5230 + else
5231 + echo "disable shared libraries"
5232 + fi
5233 + if test "$build_old_libs" = yes; then
5234 + echo "enable static libraries"
5235 + else
5236 + echo "disable static libraries"
5237 + fi
5238 + exit 0
5239 + ;;
5241 + --finish) mode="finish" ;;
5243 + --mode) prevopt="--mode" prev=mode ;;
5244 + --mode=*) mode="$optarg" ;;
5246 + --quiet | --silent)
5247 + show=:
5248 + ;;
5250 + -dlopen)
5251 + prevopt="-dlopen"
5252 + prev=execute_dlfiles
5253 + ;;
5255 + -*)
5256 + $echo "$modename: unrecognized option \`$arg'" 1>&2
5257 + $echo "$help" 1>&2
5258 + exit 1
5259 + ;;
5261 + *)
5262 + nonopt="$arg"
5263 + break
5264 + ;;
5265 + esac
5266 +done
5268 +if test -n "$prevopt"; then
5269 + $echo "$modename: option \`$prevopt' requires an argument" 1>&2
5270 + $echo "$help" 1>&2
5271 + exit 1
5272 +fi
5274 +if test -z "$show_help"; then
5276 + # Infer the operation mode.
5277 + if test -z "$mode"; then
5278 + case $nonopt in
5279 + *cc | *++ | gcc* | *-gcc*)
5280 + mode=link
5281 + for arg
5282 + do
5283 + case $arg in
5284 + -c)
5285 + mode=compile
5286 + break
5287 + ;;
5288 + esac
5289 + done
5290 + ;;
5291 + *db | *dbx | *strace | *truss)
5292 + mode=execute
5293 + ;;
5294 + *install*|cp|mv)
5295 + mode=install
5296 + ;;
5297 + *rm)
5298 + mode=uninstall
5299 + ;;
5300 + *)
5301 + # If we have no mode, but dlfiles were specified, then do execute mode.
5302 + test -n "$execute_dlfiles" && mode=execute
5304 + # Just use the default operation mode.
5305 + if test -z "$mode"; then
5306 + if test -n "$nonopt"; then
5307 + $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2
5308 + else
5309 + $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2
5310 + fi
5311 + fi
5312 + ;;
5313 + esac
5314 + fi
5316 + # Only execute mode is allowed to have -dlopen flags.
5317 + if test -n "$execute_dlfiles" && test "$mode" != execute; then
5318 + $echo "$modename: unrecognized option \`-dlopen'" 1>&2
5319 + $echo "$help" 1>&2
5320 + exit 1
5321 + fi
5323 + # Change the help message to a mode-specific one.
5324 + generic_help="$help"
5325 + help="Try \`$modename --help --mode=$mode' for more information."
5327 + # These modes are in order of execution frequency so that they run quickly.
5328 + case $mode in
5329 + # libtool compile mode
5330 + compile)
5331 + modename="$modename: compile"
5332 + # Get the compilation command and the source file.
5333 + base_compile=
5334 + prev=
5335 + lastarg=
5336 + srcfile="$nonopt"
5337 + suppress_output=
5339 + user_target=no
5340 + for arg
5341 + do
5342 + case $prev in
5343 + "") ;;
5344 + xcompiler)
5345 + # Aesthetically quote the previous argument.
5346 + prev=
5347 + lastarg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
5349 + case $arg in
5350 + # Double-quote args containing other shell metacharacters.
5351 + # Many Bourne shells cannot handle close brackets correctly
5352 + # in scan sets, so we specify it separately.
5353 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
5354 + arg="\"$arg\""
5355 + ;;
5356 + esac
5358 + # Add the previous argument to base_compile.
5359 + if test -z "$base_compile"; then
5360 + base_compile="$lastarg"
5361 + else
5362 + base_compile="$base_compile $lastarg"
5363 + fi
5364 + continue
5365 + ;;
5366 + esac
5368 + # Accept any command-line options.
5369 + case $arg in
5370 + -o)
5371 + if test "$user_target" != "no"; then
5372 + $echo "$modename: you cannot specify \`-o' more than once" 1>&2
5373 + exit 1
5374 + fi
5375 + user_target=next
5376 + ;;
5378 + -static)
5379 + build_old_libs=yes
5380 + continue
5381 + ;;
5383 + -prefer-pic)
5384 + pic_mode=yes
5385 + continue
5386 + ;;
5388 + -prefer-non-pic)
5389 + pic_mode=no
5390 + continue
5391 + ;;
5393 + -Xcompiler)
5394 + prev=xcompiler
5395 + continue
5396 + ;;
5398 + -Wc,*)
5399 + args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
5400 + lastarg=
5401 + IFS="${IFS= }"; save_ifs="$IFS"; IFS=','
5402 + for arg in $args; do
5403 + IFS="$save_ifs"
5405 + # Double-quote args containing other shell metacharacters.
5406 + # Many Bourne shells cannot handle close brackets correctly
5407 + # in scan sets, so we specify it separately.
5408 + case $arg in
5409 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
5410 + arg="\"$arg\""
5411 + ;;
5412 + esac
5413 + lastarg="$lastarg $arg"
5414 + done
5415 + IFS="$save_ifs"
5416 + lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
5418 + # Add the arguments to base_compile.
5419 + if test -z "$base_compile"; then
5420 + base_compile="$lastarg"
5421 + else
5422 + base_compile="$base_compile $lastarg"
5423 + fi
5424 + continue
5425 + ;;
5426 + esac
5428 + case $user_target in
5429 + next)
5430 + # The next one is the -o target name
5431 + user_target=yes
5432 + continue
5433 + ;;
5434 + yes)
5435 + # We got the output file
5436 + user_target=set
5437 + libobj="$arg"
5438 + continue
5439 + ;;
5440 + esac
5442 + # Accept the current argument as the source file.
5443 + lastarg="$srcfile"
5444 + srcfile="$arg"
5446 + # Aesthetically quote the previous argument.
5448 + # Backslashify any backslashes, double quotes, and dollar signs.
5449 + # These are the only characters that are still specially
5450 + # interpreted inside of double-quoted scrings.
5451 + lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
5453 + # Double-quote args containing other shell metacharacters.
5454 + # Many Bourne shells cannot handle close brackets correctly
5455 + # in scan sets, so we specify it separately.
5456 + case $lastarg in
5457 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
5458 + lastarg="\"$lastarg\""
5459 + ;;
5460 + esac
5462 + # Add the previous argument to base_compile.
5463 + if test -z "$base_compile"; then
5464 + base_compile="$lastarg"
5465 + else
5466 + base_compile="$base_compile $lastarg"
5467 + fi
5468 + done
5470 + case $user_target in
5471 + set)
5472 + ;;
5473 + no)
5474 + # Get the name of the library object.
5475 + libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
5476 + ;;
5477 + *)
5478 + $echo "$modename: you must specify a target with \`-o'" 1>&2
5479 + exit 1
5480 + ;;
5481 + esac
5483 + # Recognize several different file suffixes.
5484 + # If the user specifies -o file.o, it is replaced with file.lo
5485 + xform='[cCFSfmso]'
5486 + case $libobj in
5487 + *.ada) xform=ada ;;
5488 + *.adb) xform=adb ;;
5489 + *.ads) xform=ads ;;
5490 + *.asm) xform=asm ;;
5491 + *.c++) xform=c++ ;;
5492 + *.cc) xform=cc ;;
5493 + *.cpp) xform=cpp ;;
5494 + *.cxx) xform=cxx ;;
5495 + *.f90) xform=f90 ;;
5496 + *.for) xform=for ;;
5497 + esac
5499 + libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
5501 + case $libobj in
5502 + *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
5503 + *)
5504 + $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
5505 + exit 1
5506 + ;;
5507 + esac
5509 + if test -z "$base_compile"; then
5510 + $echo "$modename: you must specify a compilation command" 1>&2
5511 + $echo "$help" 1>&2
5512 + exit 1
5513 + fi
5515 + # Delete any leftover library objects.
5516 + if test "$build_old_libs" = yes; then
5517 + removelist="$obj $libobj"
5518 + else
5519 + removelist="$libobj"
5520 + fi
5522 + $run $rm $removelist
5523 + trap "$run $rm $removelist; exit 1" 1 2 15
5525 + # On Cygwin there's no "real" PIC flag so we must build both object types
5526 + case $host_os in
5527 + cygwin* | mingw* | pw32* | os2*)
5528 + pic_mode=default
5529 + ;;
5530 + esac
5531 + if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
5532 + # non-PIC code in shared libraries is not supported
5533 + pic_mode=default
5534 + fi
5536 + # Calculate the filename of the output object if compiler does
5537 + # not support -o with -c
5538 + if test "$compiler_c_o" = no; then
5539 + output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
5540 + lockfile="$output_obj.lock"
5541 + removelist="$removelist $output_obj $lockfile"
5542 + trap "$run $rm $removelist; exit 1" 1 2 15
5543 + else
5544 + need_locks=no
5545 + lockfile=
5546 + fi
5548 + # Lock this critical section if it is needed
5549 + # We use this script file to make the link, it avoids creating a new file
5550 + if test "$need_locks" = yes; then
5551 + until $run ln "$0" "$lockfile" 2>/dev/null; do
5552 + $show "Waiting for $lockfile to be removed"
5553 + sleep 2
5554 + done
5555 + elif test "$need_locks" = warn; then
5556 + if test -f "$lockfile"; then
5557 + echo "\
5558 +*** ERROR, $lockfile exists and contains:
5559 +`cat $lockfile 2>/dev/null`
5561 +This indicates that another process is trying to use the same
5562 +temporary object file, and libtool could not work around it because
5563 +your compiler does not support \`-c' and \`-o' together. If you
5564 +repeat this compilation, it may succeed, by chance, but you had better
5565 +avoid parallel builds (make -j) in this platform, or get a better
5566 +compiler."
5568 + $run $rm $removelist
5569 + exit 1
5570 + fi
5571 + echo $srcfile > "$lockfile"
5572 + fi
5574 + if test -n "$fix_srcfile_path"; then
5575 + eval srcfile=\"$fix_srcfile_path\"
5576 + fi
5578 + # Only build a PIC object if we are building libtool libraries.
5579 + if test "$build_libtool_libs" = yes; then
5580 + # Without this assignment, base_compile gets emptied.
5581 + fbsd_hideous_sh_bug=$base_compile
5583 + if test "$pic_mode" != no; then
5584 + # All platforms use -DPIC, to notify preprocessed assembler code.
5585 + command="$base_compile $srcfile $pic_flag -DPIC"
5586 + else
5587 + # Don't build PIC code
5588 + command="$base_compile $srcfile"
5589 + fi
5590 + if test "$build_old_libs" = yes; then
5591 + lo_libobj="$libobj"
5592 + dir=`$echo "X$libobj" | $Xsed -e 's%/[^/]*$%%'`
5593 + if test "X$dir" = "X$libobj"; then
5594 + dir="$objdir"
5595 + else
5596 + dir="$dir/$objdir"
5597 + fi
5598 + libobj="$dir/"`$echo "X$libobj" | $Xsed -e 's%^.*/%%'`
5600 + if test -d "$dir"; then
5601 + $show "$rm $libobj"
5602 + $run $rm $libobj
5603 + else
5604 + $show "$mkdir $dir"
5605 + $run $mkdir $dir
5606 + status=$?
5607 + if test $status -ne 0 && test ! -d $dir; then
5608 + exit $status
5609 + fi
5610 + fi
5611 + fi
5612 + if test "$compiler_o_lo" = yes; then
5613 + output_obj="$libobj"
5614 + command="$command -o $output_obj"
5615 + elif test "$compiler_c_o" = yes; then
5616 + output_obj="$obj"
5617 + command="$command -o $output_obj"
5618 + fi
5620 + $run $rm "$output_obj"
5621 + $show "$command"
5622 + if $run eval "$command"; then :
5623 + else
5624 + test -n "$output_obj" && $run $rm $removelist
5625 + exit 1
5626 + fi
5628 + if test "$need_locks" = warn &&
5629 + test x"`cat $lockfile 2>/dev/null`" != x"$srcfile"; then
5630 + echo "\
5631 +*** ERROR, $lockfile contains:
5632 +`cat $lockfile 2>/dev/null`
5634 +but it should contain:
5635 +$srcfile
5637 +This indicates that another process is trying to use the same
5638 +temporary object file, and libtool could not work around it because
5639 +your compiler does not support \`-c' and \`-o' together. If you
5640 +repeat this compilation, it may succeed, by chance, but you had better
5641 +avoid parallel builds (make -j) in this platform, or get a better
5642 +compiler."
5644 + $run $rm $removelist
5645 + exit 1
5646 + fi
5648 + # Just move the object if needed, then go on to compile the next one
5649 + if test x"$output_obj" != x"$libobj"; then
5650 + $show "$mv $output_obj $libobj"
5651 + if $run $mv $output_obj $libobj; then :
5652 + else
5653 + error=$?
5654 + $run $rm $removelist
5655 + exit $error
5656 + fi
5657 + fi
5659 + # If we have no pic_flag, then copy the object into place and finish.
5660 + if (test -z "$pic_flag" || test "$pic_mode" != default) &&
5661 + test "$build_old_libs" = yes; then
5662 + # Rename the .lo from within objdir to obj
5663 + if test -f $obj; then
5664 + $show $rm $obj
5665 + $run $rm $obj
5666 + fi
5668 + $show "$mv $libobj $obj"
5669 + if $run $mv $libobj $obj; then :
5670 + else
5671 + error=$?
5672 + $run $rm $removelist
5673 + exit $error
5674 + fi
5676 + xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
5677 + if test "X$xdir" = "X$obj"; then
5678 + xdir="."
5679 + else
5680 + xdir="$xdir"
5681 + fi
5682 + baseobj=`$echo "X$obj" | $Xsed -e "s%.*/%%"`
5683 + libobj=`$echo "X$baseobj" | $Xsed -e "$o2lo"`
5684 + # Now arrange that obj and lo_libobj become the same file
5685 + $show "(cd $xdir && $LN_S $baseobj $libobj)"
5686 + if $run eval '(cd $xdir && $LN_S $baseobj $libobj)'; then
5687 + exit 0
5688 + else
5689 + error=$?
5690 + $run $rm $removelist
5691 + exit $error
5692 + fi
5693 + fi
5695 + # Allow error messages only from the first compilation.
5696 + suppress_output=' >/dev/null 2>&1'
5697 + fi
5699 + # Only build a position-dependent object if we build old libraries.
5700 + if test "$build_old_libs" = yes; then
5701 + if test "$pic_mode" != yes; then
5702 + # Don't build PIC code
5703 + command="$base_compile $srcfile"
5704 + else
5705 + # All platforms use -DPIC, to notify preprocessed assembler code.
5706 + command="$base_compile $srcfile $pic_flag -DPIC"
5707 + fi
5708 + if test "$compiler_c_o" = yes; then
5709 + command="$command -o $obj"
5710 + output_obj="$obj"
5711 + fi
5713 + # Suppress compiler output if we already did a PIC compilation.
5714 + command="$command$suppress_output"
5715 + $run $rm "$output_obj"
5716 + $show "$command"
5717 + if $run eval "$command"; then :
5718 + else
5719 + $run $rm $removelist
5720 + exit 1
5721 + fi
5723 + if test "$need_locks" = warn &&
5724 + test x"`cat $lockfile 2>/dev/null`" != x"$srcfile"; then
5725 + echo "\
5726 +*** ERROR, $lockfile contains:
5727 +`cat $lockfile 2>/dev/null`
5729 +but it should contain:
5730 +$srcfile
5732 +This indicates that another process is trying to use the same
5733 +temporary object file, and libtool could not work around it because
5734 +your compiler does not support \`-c' and \`-o' together. If you
5735 +repeat this compilation, it may succeed, by chance, but you had better
5736 +avoid parallel builds (make -j) in this platform, or get a better
5737 +compiler."
5739 + $run $rm $removelist
5740 + exit 1
5741 + fi
5743 + # Just move the object if needed
5744 + if test x"$output_obj" != x"$obj"; then
5745 + $show "$mv $output_obj $obj"
5746 + if $run $mv $output_obj $obj; then :
5747 + else
5748 + error=$?
5749 + $run $rm $removelist
5750 + exit $error
5751 + fi
5752 + fi
5754 + # Create an invalid libtool object if no PIC, so that we do not
5755 + # accidentally link it into a program.
5756 + if test "$build_libtool_libs" != yes; then
5757 + $show "echo timestamp > $libobj"
5758 + $run eval "echo timestamp > \$libobj" || exit $?
5759 + else
5760 + # Move the .lo from within objdir
5761 + $show "$mv $libobj $lo_libobj"
5762 + if $run $mv $libobj $lo_libobj; then :
5763 + else
5764 + error=$?
5765 + $run $rm $removelist
5766 + exit $error
5767 + fi
5768 + fi
5769 + fi
5771 + # Unlock the critical section if it was locked
5772 + if test "$need_locks" != no; then
5773 + $run $rm "$lockfile"
5774 + fi
5776 + exit 0
5777 + ;;
5779 + # libtool link mode
5780 + link | relink)
5781 + modename="$modename: link"
5782 + case $host in
5783 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
5784 + # It is impossible to link a dll without this setting, and
5785 + # we shouldn't force the makefile maintainer to figure out
5786 + # which system we are compiling for in order to pass an extra
5787 + # flag for every libtool invokation.
5788 + # allow_undefined=no
5790 + # FIXME: Unfortunately, there are problems with the above when trying
5791 + # to make a dll which has undefined symbols, in which case not
5792 + # even a static library is built. For now, we need to specify
5793 + # -no-undefined on the libtool link line when we can be certain
5794 + # that all symbols are satisfied, otherwise we get a static library.
5795 + allow_undefined=yes
5796 + ;;
5797 + *)
5798 + allow_undefined=yes
5799 + ;;
5800 + esac
5801 + libtool_args="$nonopt"
5802 + compile_command="$nonopt"
5803 + finalize_command="$nonopt"
5805 + compile_rpath=
5806 + finalize_rpath=
5807 + compile_shlibpath=
5808 + finalize_shlibpath=
5809 + convenience=
5810 + old_convenience=
5811 + deplibs=
5812 + old_deplibs=
5813 + compiler_flags=
5814 + linker_flags=
5815 + dllsearchpath=
5816 + lib_search_path=`pwd`
5818 + avoid_version=no
5819 + dlfiles=
5820 + dlprefiles=
5821 + dlself=no
5822 + export_dynamic=no
5823 + export_symbols=
5824 + export_symbols_regex=
5825 + generated=
5826 + libobjs=
5827 + ltlibs=
5828 + module=no
5829 + no_install=no
5830 + objs=
5831 + prefer_static_libs=no
5832 + preload=no
5833 + prev=
5834 + prevarg=
5835 + release=
5836 + rpath=
5837 + xrpath=
5838 + perm_rpath=
5839 + temp_rpath=
5840 + thread_safe=no
5841 + vinfo=
5843 + # We need to know -static, to get the right output filenames.
5844 + for arg
5845 + do
5846 + case $arg in
5847 + -all-static | -static)
5848 + if test "X$arg" = "X-all-static"; then
5849 + if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
5850 + $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
5851 + fi
5852 + if test -n "$link_static_flag"; then
5853 + dlopen_self=$dlopen_self_static
5854 + fi
5855 + else
5856 + if test -z "$pic_flag" && test -n "$link_static_flag"; then
5857 + dlopen_self=$dlopen_self_static
5858 + fi
5859 + fi
5860 + build_libtool_libs=no
5861 + build_old_libs=yes
5862 + prefer_static_libs=yes
5863 + break
5864 + ;;
5865 + esac
5866 + done
5868 + # See if our shared archives depend on static archives.
5869 + test -n "$old_archive_from_new_cmds" && build_old_libs=yes
5871 + # Go through the arguments, transforming them on the way.
5872 + while test $# -gt 0; do
5873 + arg="$1"
5874 + shift
5875 + case $arg in
5876 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
5877 + qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
5878 + ;;
5879 + *) qarg=$arg ;;
5880 + esac
5881 + libtool_args="$libtool_args $qarg"
5883 + # If the previous option needs an argument, assign it.
5884 + if test -n "$prev"; then
5885 + case $prev in
5886 + output)
5887 + compile_command="$compile_command @OUTPUT@"
5888 + finalize_command="$finalize_command @OUTPUT@"
5889 + ;;
5890 + esac
5892 + case $prev in
5893 + dlfiles|dlprefiles)
5894 + if test "$preload" = no; then
5895 + # Add the symbol object into the linking commands.
5896 + compile_command="$compile_command @SYMFILE@"
5897 + finalize_command="$finalize_command @SYMFILE@"
5898 + preload=yes
5899 + fi
5900 + case $arg in
5901 + *.la | *.lo) ;; # We handle these cases below.
5902 + force)
5903 + if test "$dlself" = no; then
5904 + dlself=needless
5905 + export_dynamic=yes
5906 + fi
5907 + prev=
5908 + continue
5909 + ;;
5910 + self)
5911 + if test "$prev" = dlprefiles; then
5912 + dlself=yes
5913 + elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
5914 + dlself=yes
5915 + else
5916 + dlself=needless
5917 + export_dynamic=yes
5918 + fi
5919 + prev=
5920 + continue
5921 + ;;
5922 + *)
5923 + if test "$prev" = dlfiles; then
5924 + dlfiles="$dlfiles $arg"
5925 + else
5926 + dlprefiles="$dlprefiles $arg"
5927 + fi
5928 + prev=
5929 + continue
5930 + ;;
5931 + esac
5932 + ;;
5933 + expsyms)
5934 + export_symbols="$arg"
5935 + if test ! -f "$arg"; then
5936 + $echo "$modename: symbol file \`$arg' does not exist"
5937 + exit 1
5938 + fi
5939 + prev=
5940 + continue
5941 + ;;
5942 + expsyms_regex)
5943 + export_symbols_regex="$arg"
5944 + prev=
5945 + continue
5946 + ;;
5947 + release)
5948 + release="-$arg"
5949 + prev=
5950 + continue
5951 + ;;
5952 + rpath | xrpath)
5953 + # We need an absolute path.
5954 + case $arg in
5955 + [\\/]* | [A-Za-z]:[\\/]*) ;;
5956 + *)
5957 + $echo "$modename: only absolute run-paths are allowed" 1>&2
5958 + exit 1
5959 + ;;
5960 + esac
5961 + if test "$prev" = rpath; then
5962 + case "$rpath " in
5963 + *" $arg "*) ;;
5964 + *) rpath="$rpath $arg" ;;
5965 + esac
5966 + else
5967 + case "$xrpath " in
5968 + *" $arg "*) ;;
5969 + *) xrpath="$xrpath $arg" ;;
5970 + esac
5971 + fi
5972 + prev=
5973 + continue
5974 + ;;
5975 + xcompiler)
5976 + compiler_flags="$compiler_flags $qarg"
5977 + prev=
5978 + compile_command="$compile_command $qarg"
5979 + finalize_command="$finalize_command $qarg"
5980 + continue
5981 + ;;
5982 + xlinker)
5983 + linker_flags="$linker_flags $qarg"
5984 + compiler_flags="$compiler_flags $wl$qarg"
5985 + prev=
5986 + compile_command="$compile_command $wl$qarg"
5987 + finalize_command="$finalize_command $wl$qarg"
5988 + continue
5989 + ;;
5990 + *)
5991 + eval "$prev=\"\$arg\""
5992 + prev=
5993 + continue
5994 + ;;
5995 + esac
5996 + fi # test -n $prev
5998 + prevarg="$arg"
6000 + case $arg in
6001 + -all-static)
6002 + if test -n "$link_static_flag"; then
6003 + compile_command="$compile_command $link_static_flag"
6004 + finalize_command="$finalize_command $link_static_flag"
6005 + fi
6006 + continue
6007 + ;;
6009 + -allow-undefined)
6010 + # FIXME: remove this flag sometime in the future.
6011 + $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
6012 + continue
6013 + ;;
6015 + -avoid-version)
6016 + avoid_version=yes
6017 + continue
6018 + ;;
6020 + -dlopen)
6021 + prev=dlfiles
6022 + continue
6023 + ;;
6025 + -dlpreopen)
6026 + prev=dlprefiles
6027 + continue
6028 + ;;
6030 + -export-dynamic)
6031 + export_dynamic=yes
6032 + continue
6033 + ;;
6035 + -export-symbols | -export-symbols-regex)
6036 + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
6037 + $echo "$modename: more than one -exported-symbols argument is not allowed"
6038 + exit 1
6039 + fi
6040 + if test "X$arg" = "X-export-symbols"; then
6041 + prev=expsyms
6042 + else
6043 + prev=expsyms_regex
6044 + fi
6045 + continue
6046 + ;;
6048 + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
6049 + # so, if we see these flags be careful not to treat them like -L
6050 + -L[A-Z][A-Z]*:*)
6051 + case $with_gcc/$host in
6052 + no/*-*-irix*)
6053 + compile_command="$compile_command $arg"
6054 + finalize_command="$finalize_command $arg"
6055 + ;;
6056 + esac
6057 + continue
6058 + ;;
6060 + -L*)
6061 + dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
6062 + # We need an absolute path.
6063 + case $dir in
6064 + [\\/]* | [A-Za-z]:[\\/]*) ;;
6065 + *)
6066 + absdir=`cd "$dir" && pwd`
6067 + if test -z "$absdir"; then
6068 + $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
6069 + exit 1
6070 + fi
6071 + dir="$absdir"
6072 + ;;
6073 + esac
6074 + case "$deplibs " in
6075 + *" -L$dir "*) ;;
6076 + *)
6077 + deplibs="$deplibs -L$dir"
6078 + lib_search_path="$lib_search_path $dir"
6079 + ;;
6080 + esac
6081 + case $host in
6082 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
6083 + case :$dllsearchpath: in
6084 + *":$dir:"*) ;;
6085 + *) dllsearchpath="$dllsearchpath:$dir";;
6086 + esac
6087 + ;;
6088 + esac
6089 + continue
6090 + ;;
6092 + -l*)
6093 + if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
6094 + case $host in
6095 + *-*-cygwin* | *-*-pw32* | *-*-beos*)
6096 + # These systems don't actually have a C or math library (as such)
6097 + continue
6098 + ;;
6099 + *-*-mingw* | *-*-os2*)
6100 + # These systems don't actually have a C library (as such)
6101 + test "X$arg" = "X-lc" && continue
6102 + ;;
6103 + esac
6104 + fi
6105 + deplibs="$deplibs $arg"
6106 + continue
6107 + ;;
6109 + -module)
6110 + module=yes
6111 + continue
6112 + ;;
6114 + -no-fast-install)
6115 + fast_install=no
6116 + continue
6117 + ;;
6119 + -no-install)
6120 + case $host in
6121 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
6122 + # The PATH hackery in wrapper scripts is required on Windows
6123 + # in order for the loader to find any dlls it needs.
6124 + $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
6125 + $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
6126 + fast_install=no
6127 + ;;
6128 + *) no_install=yes ;;
6129 + esac
6130 + continue
6131 + ;;
6133 + -no-undefined)
6134 + allow_undefined=no
6135 + continue
6136 + ;;
6138 + -o) prev=output ;;
6140 + -release)
6141 + prev=release
6142 + continue
6143 + ;;
6145 + -rpath)
6146 + prev=rpath
6147 + continue
6148 + ;;
6150 + -R)
6151 + prev=xrpath
6152 + continue
6153 + ;;
6155 + -R*)
6156 + dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
6157 + # We need an absolute path.
6158 + case $dir in
6159 + [\\/]* | [A-Za-z]:[\\/]*) ;;
6160 + *)
6161 + $echo "$modename: only absolute run-paths are allowed" 1>&2
6162 + exit 1
6163 + ;;
6164 + esac
6165 + case "$xrpath " in
6166 + *" $dir "*) ;;
6167 + *) xrpath="$xrpath $dir" ;;
6168 + esac
6169 + continue
6170 + ;;
6172 + -static)
6173 + # The effects of -static are defined in a previous loop.
6174 + # We used to do the same as -all-static on platforms that
6175 + # didn't have a PIC flag, but the assumption that the effects
6176 + # would be equivalent was wrong. It would break on at least
6177 + # Digital Unix and AIX.
6178 + continue
6179 + ;;
6181 + -thread-safe)
6182 + thread_safe=yes
6183 + continue
6184 + ;;
6186 + -version-info)
6187 + prev=vinfo
6188 + continue
6189 + ;;
6191 + -Wc,*)
6192 + args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
6193 + arg=
6194 + IFS="${IFS= }"; save_ifs="$IFS"; IFS=','
6195 + for flag in $args; do
6196 + IFS="$save_ifs"
6197 + case $flag in
6198 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
6199 + flag="\"$flag\""
6200 + ;;
6201 + esac
6202 + arg="$arg $wl$flag"
6203 + compiler_flags="$compiler_flags $flag"
6204 + done
6205 + IFS="$save_ifs"
6206 + arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
6207 + ;;
6209 + -Wl,*)
6210 + args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
6211 + arg=
6212 + IFS="${IFS= }"; save_ifs="$IFS"; IFS=','
6213 + for flag in $args; do
6214 + IFS="$save_ifs"
6215 + case $flag in
6216 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
6217 + flag="\"$flag\""
6218 + ;;
6219 + esac
6220 + arg="$arg $wl$flag"
6221 + compiler_flags="$compiler_flags $wl$flag"
6222 + linker_flags="$linker_flags $flag"
6223 + done
6224 + IFS="$save_ifs"
6225 + arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
6226 + ;;
6228 + -Xcompiler)
6229 + prev=xcompiler
6230 + continue
6231 + ;;
6233 + -Xlinker)
6234 + prev=xlinker
6235 + continue
6236 + ;;
6238 + # Some other compiler flag.
6239 + -* | +*)
6240 + # Unknown arguments in both finalize_command and compile_command need
6241 + # to be aesthetically quoted because they are evaled later.
6242 + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
6243 + case $arg in
6244 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
6245 + arg="\"$arg\""
6246 + ;;
6247 + esac
6248 + ;;
6250 + *.lo | *.$objext)
6251 + # A library or standard object.
6252 + if test "$prev" = dlfiles; then
6253 + # This file was specified with -dlopen.
6254 + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
6255 + dlfiles="$dlfiles $arg"
6256 + prev=
6257 + continue
6258 + else
6259 + # If libtool objects are unsupported, then we need to preload.
6260 + prev=dlprefiles
6261 + fi
6262 + fi
6264 + if test "$prev" = dlprefiles; then
6265 + # Preload the old-style object.
6266 + dlprefiles="$dlprefiles "`$echo "X$arg" | $Xsed -e "$lo2o"`
6267 + prev=
6268 + else
6269 + case $arg in
6270 + *.lo) libobjs="$libobjs $arg" ;;
6271 + *) objs="$objs $arg" ;;
6272 + esac
6273 + fi
6274 + ;;
6276 + *.$libext)
6277 + # An archive.
6278 + deplibs="$deplibs $arg"
6279 + old_deplibs="$old_deplibs $arg"
6280 + continue
6281 + ;;
6283 + *.la)
6284 + # A libtool-controlled library.
6286 + if test "$prev" = dlfiles; then
6287 + # This library was specified with -dlopen.
6288 + dlfiles="$dlfiles $arg"
6289 + prev=
6290 + elif test "$prev" = dlprefiles; then
6291 + # The library was specified with -dlpreopen.
6292 + dlprefiles="$dlprefiles $arg"
6293 + prev=
6294 + else
6295 + deplibs="$deplibs $arg"
6296 + fi
6297 + continue
6298 + ;;
6300 + # Some other compiler argument.
6301 + *)
6302 + # Unknown arguments in both finalize_command and compile_command need
6303 + # to be aesthetically quoted because they are evaled later.
6304 + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
6305 + case $arg in
6306 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
6307 + arg="\"$arg\""
6308 + ;;
6309 + esac
6310 + ;;
6311 + esac # arg
6313 + # Now actually substitute the argument into the commands.
6314 + if test -n "$arg"; then
6315 + compile_command="$compile_command $arg"
6316 + finalize_command="$finalize_command $arg"
6317 + fi
6318 + done # argument parsing loop
6320 + if test -n "$prev"; then
6321 + $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
6322 + $echo "$help" 1>&2
6323 + exit 1
6324 + fi
6326 + if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
6327 + eval arg=\"$export_dynamic_flag_spec\"
6328 + compile_command="$compile_command $arg"
6329 + finalize_command="$finalize_command $arg"
6330 + fi
6332 + # calculate the name of the file, without its directory
6333 + outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
6334 + libobjs_save="$libobjs"
6336 + if test -n "$shlibpath_var"; then
6337 + # get the directories listed in $shlibpath_var
6338 + eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
6339 + else
6340 + shlib_search_path=
6341 + fi
6342 + eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
6343 + eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
6345 + output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
6346 + if test "X$output_objdir" = "X$output"; then
6347 + output_objdir="$objdir"
6348 + else
6349 + output_objdir="$output_objdir/$objdir"
6350 + fi
6351 + # Create the object directory.
6352 + if test ! -d $output_objdir; then
6353 + $show "$mkdir $output_objdir"
6354 + $run $mkdir $output_objdir
6355 + status=$?
6356 + if test $status -ne 0 && test ! -d $output_objdir; then
6357 + exit $status
6358 + fi
6359 + fi
6361 + # Determine the type of output
6362 + case $output in
6363 + "")
6364 + $echo "$modename: you must specify an output file" 1>&2
6365 + $echo "$help" 1>&2
6366 + exit 1
6367 + ;;
6368 + *.$libext) linkmode=oldlib ;;
6369 + *.lo | *.$objext) linkmode=obj ;;
6370 + *.la) linkmode=lib ;;
6371 + *) linkmode=prog ;; # Anything else should be a program.
6372 + esac
6374 + specialdeplibs=
6375 + libs=
6376 + # Find all interdependent deplibs by searching for libraries
6377 + # that are linked more than once (e.g. -la -lb -la)
6378 + for deplib in $deplibs; do
6379 + case "$libs " in
6380 + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
6381 + esac
6382 + libs="$libs $deplib"
6383 + done
6384 + deplibs=
6385 + newdependency_libs=
6386 + newlib_search_path=
6387 + need_relink=no # whether we're linking any uninstalled libtool libraries
6388 + notinst_deplibs= # not-installed libtool libraries
6389 + notinst_path= # paths that contain not-installed libtool libraries
6390 + case $linkmode in
6391 + lib)
6392 + passes="conv link"
6393 + for file in $dlfiles $dlprefiles; do
6394 + case $file in
6395 + *.la) ;;
6396 + *)
6397 + $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
6398 + exit 1
6399 + ;;
6400 + esac
6401 + done
6402 + ;;
6403 + prog)
6404 + compile_deplibs=
6405 + finalize_deplibs=
6406 + alldeplibs=no
6407 + newdlfiles=
6408 + newdlprefiles=
6409 + passes="conv scan dlopen dlpreopen link"
6410 + ;;
6411 + *) passes="conv"
6412 + ;;
6413 + esac
6414 + for pass in $passes; do
6415 + if test "$linkmode" = prog; then
6416 + # Determine which files to process
6417 + case $pass in
6418 + dlopen)
6419 + libs="$dlfiles"
6420 + save_deplibs="$deplibs" # Collect dlpreopened libraries
6421 + deplibs=
6422 + ;;
6423 + dlpreopen) libs="$dlprefiles" ;;
6424 + link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
6425 + esac
6426 + fi
6427 + for deplib in $libs; do
6428 + lib=
6429 + found=no
6430 + case $deplib in
6431 + -l*)
6432 + if test "$linkmode" = oldlib && test "$linkmode" = obj; then
6433 + $echo "$modename: warning: \`-l' is ignored for archives/objects: $deplib" 1>&2
6434 + continue
6435 + fi
6436 + if test "$pass" = conv; then
6437 + deplibs="$deplib $deplibs"
6438 + continue
6439 + fi
6440 + name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
6441 + for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
6442 + # Search the libtool library
6443 + lib="$searchdir/lib${name}.la"
6444 + if test -f "$lib"; then
6445 + found=yes
6446 + break
6447 + fi
6448 + done
6449 + if test "$found" != yes; then
6450 + # deplib doesn't seem to be a libtool library
6451 + if test "$linkmode,$pass" = "prog,link"; then
6452 + compile_deplibs="$deplib $compile_deplibs"
6453 + finalize_deplibs="$deplib $finalize_deplibs"
6454 + else
6455 + deplibs="$deplib $deplibs"
6456 + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
6457 + fi
6458 + continue
6459 + fi
6460 + ;; # -l
6461 + -L*)
6462 + case $linkmode in
6463 + lib)
6464 + deplibs="$deplib $deplibs"
6465 + test "$pass" = conv && continue
6466 + newdependency_libs="$deplib $newdependency_libs"
6467 + newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
6468 + ;;
6469 + prog)
6470 + if test "$pass" = conv; then
6471 + deplibs="$deplib $deplibs"
6472 + continue
6473 + fi
6474 + if test "$pass" = scan; then
6475 + deplibs="$deplib $deplibs"
6476 + newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
6477 + else
6478 + compile_deplibs="$deplib $compile_deplibs"
6479 + finalize_deplibs="$deplib $finalize_deplibs"
6480 + fi
6481 + ;;
6482 + *)
6483 + $echo "$modename: warning: \`-L' is ignored for archives/objects: $deplib" 1>&2
6484 + ;;
6485 + esac # linkmode
6486 + continue
6487 + ;; # -L
6488 + -R*)
6489 + if test "$pass" = link; then
6490 + dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
6491 + # Make sure the xrpath contains only unique directories.
6492 + case "$xrpath " in
6493 + *" $dir "*) ;;
6494 + *) xrpath="$xrpath $dir" ;;
6495 + esac
6496 + fi
6497 + deplibs="$deplib $deplibs"
6498 + continue
6499 + ;;
6500 + *.la) lib="$deplib" ;;
6501 + *.$libext)
6502 + if test "$pass" = conv; then
6503 + deplibs="$deplib $deplibs"
6504 + continue
6505 + fi
6506 + case $linkmode in
6507 + lib)
6508 + if test "$deplibs_check_method" != pass_all; then
6509 + echo
6510 + echo "*** Warning: This library needs some functionality provided by $deplib."
6511 + echo "*** I have the capability to make that library automatically link in when"
6512 + echo "*** you link to this library. But I can only do this if you have a"
6513 + echo "*** shared version of the library, which you do not appear to have."
6514 + else
6515 + echo
6516 + echo "*** Warning: Linking the shared library $output against the"
6517 + echo "*** static library $deplib is not portable!"
6518 + deplibs="$deplib $deplibs"
6519 + fi
6520 + continue
6521 + ;;
6522 + prog)
6523 + if test "$pass" != link; then
6524 + deplibs="$deplib $deplibs"
6525 + else
6526 + compile_deplibs="$deplib $compile_deplibs"
6527 + finalize_deplibs="$deplib $finalize_deplibs"
6528 + fi
6529 + continue
6530 + ;;
6531 + esac # linkmode
6532 + ;; # *.$libext
6533 + *.lo | *.$objext)
6534 + if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
6535 + # If there is no dlopen support or we're linking statically,
6536 + # we need to preload.
6537 + newdlprefiles="$newdlprefiles $deplib"
6538 + compile_deplibs="$deplib $compile_deplibs"
6539 + finalize_deplibs="$deplib $finalize_deplibs"
6540 + else
6541 + newdlfiles="$newdlfiles $deplib"
6542 + fi
6543 + continue
6544 + ;;
6545 + %DEPLIBS%)
6546 + alldeplibs=yes
6547 + continue
6548 + ;;
6549 + esac # case $deplib
6550 + if test $found = yes || test -f "$lib"; then :
6551 + else
6552 + $echo "$modename: cannot find the library \`$lib'" 1>&2
6553 + exit 1
6554 + fi
6556 + # Check to see that this really is a libtool archive.
6557 + if (sed -e '2q' $lib | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
6558 + else
6559 + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
6560 + exit 1
6561 + fi
6563 + ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
6564 + test "X$ladir" = "X$lib" && ladir="."
6566 + dlname=
6567 + dlopen=
6568 + dlpreopen=
6569 + libdir=
6570 + library_names=
6571 + old_library=
6572 + # If the library was installed with an old release of libtool,
6573 + # it will not redefine variable installed.
6574 + installed=yes
6576 + # Read the .la file
6577 + case $lib in
6578 + */* | *\\*) . $lib ;;
6579 + *) . ./$lib ;;
6580 + esac
6582 + if test "$linkmode,$pass" = "lib,link" ||
6583 + test "$linkmode,$pass" = "prog,scan" ||
6584 + { test "$linkmode" = oldlib && test "$linkmode" = obj; }; then
6585 + # Add dl[pre]opened files of deplib
6586 + test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
6587 + test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
6588 + fi
6590 + if test "$pass" = conv; then
6591 + # Only check for convenience libraries
6592 + deplibs="$lib $deplibs"
6593 + if test -z "$libdir"; then
6594 + if test -z "$old_library"; then
6595 + $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
6596 + exit 1
6597 + fi
6598 + # It is a libtool convenience library, so add in its objects.
6599 + convenience="$convenience $ladir/$objdir/$old_library"
6600 + old_convenience="$old_convenience $ladir/$objdir/$old_library"
6601 + tmp_libs=
6602 + for deplib in $dependency_libs; do
6603 + deplibs="$deplib $deplibs"
6604 + case "$tmp_libs " in
6605 + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
6606 + esac
6607 + tmp_libs="$tmp_libs $deplib"
6608 + done
6609 + elif test "$linkmode" != prog && test "$linkmode" != lib; then
6610 + $echo "$modename: \`$lib' is not a convenience library" 1>&2
6611 + exit 1
6612 + fi
6613 + continue
6614 + fi # $pass = conv
6616 + # Get the name of the library we link against.
6617 + linklib=
6618 + for l in $old_library $library_names; do
6619 + linklib="$l"
6620 + done
6621 + if test -z "$linklib"; then
6622 + $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
6623 + exit 1
6624 + fi
6626 + # This library was specified with -dlopen.
6627 + if test "$pass" = dlopen; then
6628 + if test -z "$libdir"; then
6629 + $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
6630 + exit 1
6631 + fi
6632 + if test -z "$dlname" || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
6633 + # If there is no dlname, no dlopen support or we're linking
6634 + # statically, we need to preload.
6635 + dlprefiles="$dlprefiles $lib"
6636 + else
6637 + newdlfiles="$newdlfiles $lib"
6638 + fi
6639 + continue
6640 + fi # $pass = dlopen
6642 + # We need an absolute path.
6643 + case $ladir in
6644 + [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
6645 + *)
6646 + abs_ladir=`cd "$ladir" && pwd`
6647 + if test -z "$abs_ladir"; then
6648 + $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2
6649 + $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
6650 + abs_ladir="$ladir"
6651 + fi
6652 + ;;
6653 + esac
6654 + laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
6656 + # Find the relevant object directory and library name.
6657 + if test "X$installed" = Xyes; then
6658 + if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
6659 + $echo "$modename: warning: library \`$lib' was moved." 1>&2
6660 + dir="$ladir"
6661 + absdir="$abs_ladir"
6662 + libdir="$abs_ladir"
6663 + else
6664 + dir="$libdir"
6665 + absdir="$libdir"
6666 + fi
6667 + else
6668 + dir="$ladir/$objdir"
6669 + absdir="$abs_ladir/$objdir"
6670 + # Remove this search path later
6671 + notinst_path="$notinst_path $abs_ladir"
6672 + fi # $installed = yes
6673 + name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
6675 + # This library was specified with -dlpreopen.
6676 + if test "$pass" = dlpreopen; then
6677 + if test -z "$libdir"; then
6678 + $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
6679 + exit 1
6680 + fi
6681 + # Prefer using a static library (so that no silly _DYNAMIC symbols
6682 + # are required to link).
6683 + if test -n "$old_library"; then
6684 + newdlprefiles="$newdlprefiles $dir/$old_library"
6685 + # Otherwise, use the dlname, so that lt_dlopen finds it.
6686 + elif test -n "$dlname"; then
6687 + newdlprefiles="$newdlprefiles $dir/$dlname"
6688 + else
6689 + newdlprefiles="$newdlprefiles $dir/$linklib"
6690 + fi
6691 + fi # $pass = dlpreopen
6693 + if test -z "$libdir"; then
6694 + # Link the convenience library
6695 + if test "$linkmode" = lib; then
6696 + deplibs="$dir/$old_library $deplibs"
6697 + elif test "$linkmode,$pass" = "prog,link"; then
6698 + compile_deplibs="$dir/$old_library $compile_deplibs"
6699 + finalize_deplibs="$dir/$old_library $finalize_deplibs"
6700 + else
6701 + deplibs="$lib $deplibs"
6702 + fi
6703 + continue
6704 + fi
6706 + if test "$linkmode" = prog && test "$pass" != link; then
6707 + newlib_search_path="$newlib_search_path $ladir"
6708 + deplibs="$lib $deplibs"
6710 + linkalldeplibs=no
6711 + if test "$link_all_deplibs" != no || test -z "$library_names" ||
6712 + test "$build_libtool_libs" = no; then
6713 + linkalldeplibs=yes
6714 + fi
6716 + tmp_libs=
6717 + for deplib in $dependency_libs; do
6718 + case $deplib in
6719 + -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
6720 + esac
6721 + # Need to link against all dependency_libs?
6722 + if test $linkalldeplibs = yes; then
6723 + deplibs="$deplib $deplibs"
6724 + else
6725 + # Need to hardcode shared library paths
6726 + # or/and link against static libraries
6727 + newdependency_libs="$deplib $newdependency_libs"
6728 + fi
6729 + case "$tmp_libs " in
6730 + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
6731 + esac
6732 + tmp_libs="$tmp_libs $deplib"
6733 + done # for deplib
6734 + continue
6735 + fi # $linkmode = prog...
6737 + link_static=no # Whether the deplib will be linked statically
6738 + if test -n "$library_names" &&
6739 + { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
6740 + # Link against this shared library
6742 + if test "$linkmode,$pass" = "prog,link" ||
6743 + { test "$linkmode" = lib && test "$hardcode_into_libs" = yes; }; then
6744 + # Hardcode the library path.
6745 + # Skip directories that are in the system default run-time
6746 + # search path.
6747 + case " $sys_lib_dlsearch_path " in
6748 + *" $absdir "*) ;;
6749 + *)
6750 + case "$compile_rpath " in
6751 + *" $absdir "*) ;;
6752 + *) compile_rpath="$compile_rpath $absdir"
6753 + esac
6754 + ;;
6755 + esac
6756 + case " $sys_lib_dlsearch_path " in
6757 + *" $libdir "*) ;;
6758 + *)
6759 + case "$finalize_rpath " in
6760 + *" $libdir "*) ;;
6761 + *) finalize_rpath="$finalize_rpath $libdir"
6762 + esac
6763 + ;;
6764 + esac
6765 + if test "$linkmode" = prog; then
6766 + # We need to hardcode the library path
6767 + if test -n "$shlibpath_var"; then
6768 + # Make sure the rpath contains only unique directories.
6769 + case "$temp_rpath " in
6770 + *" $dir "*) ;;
6771 + *" $absdir "*) ;;
6772 + *) temp_rpath="$temp_rpath $dir" ;;
6773 + esac
6774 + fi
6775 + fi
6776 + fi # $linkmode,$pass = prog,link...
6778 + if test "$alldeplibs" = yes &&
6779 + { test "$deplibs_check_method" = pass_all ||
6780 + { test "$build_libtool_libs" = yes &&
6781 + test -n "$library_names"; }; }; then
6782 + # We only need to search for static libraries
6783 + continue
6784 + fi
6786 + if test "$installed" = no; then
6787 + notinst_deplibs="$notinst_deplibs $lib"
6788 + need_relink=yes
6789 + fi
6791 + if test -n "$old_archive_from_expsyms_cmds"; then
6792 + # figure out the soname
6793 + set dummy $library_names
6794 + realname="$2"
6795 + shift; shift
6796 + libname=`eval \\$echo \"$libname_spec\"`
6797 + # use dlname if we got it. it's perfectly good, no?
6798 + if test -n "$dlname"; then
6799 + soname="$dlname"
6800 + elif test -n "$soname_spec"; then
6801 + # bleh windows
6802 + case $host in
6803 + *cygwin*)
6804 + major=`expr $current - $age`
6805 + versuffix="-$major"
6806 + ;;
6807 + esac
6808 + eval soname=\"$soname_spec\"
6809 + else
6810 + soname="$realname"
6811 + fi
6813 + # Make a new name for the extract_expsyms_cmds to use
6814 + soroot="$soname"
6815 + soname=`echo $soroot | sed -e 's/^.*\///'`
6816 + newlib="libimp-`echo $soname | sed 's/^lib//;s/\.dll$//'`.a"
6818 + # If the library has no export list, then create one now
6819 + if test -f "$output_objdir/$soname-def"; then :
6820 + else
6821 + $show "extracting exported symbol list from \`$soname'"
6822 + IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
6823 + eval cmds=\"$extract_expsyms_cmds\"
6824 + for cmd in $cmds; do
6825 + IFS="$save_ifs"
6826 + $show "$cmd"
6827 + $run eval "$cmd" || exit $?
6828 + done
6829 + IFS="$save_ifs"
6830 + fi
6832 + # Create $newlib
6833 + if test -f "$output_objdir/$newlib"; then :; else
6834 + $show "generating import library for \`$soname'"
6835 + IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
6836 + eval cmds=\"$old_archive_from_expsyms_cmds\"
6837 + for cmd in $cmds; do
6838 + IFS="$save_ifs"
6839 + $show "$cmd"
6840 + $run eval "$cmd" || exit $?
6841 + done
6842 + IFS="$save_ifs"
6843 + fi
6844 + # make sure the library variables are pointing to the new library
6845 + dir=$output_objdir
6846 + linklib=$newlib
6847 + fi # test -n $old_archive_from_expsyms_cmds
6849 + if test "$linkmode" = prog || test "$mode" != relink; then
6850 + add_shlibpath=
6851 + add_dir=
6852 + add=
6853 + lib_linked=yes
6854 + case $hardcode_action in
6855 + immediate | unsupported)
6856 + if test "$hardcode_direct" = no; then
6857 + add="$dir/$linklib"
6858 + elif test "$hardcode_minus_L" = no; then
6859 + case $host in
6860 + *-*-sunos*) add_shlibpath="$dir" ;;
6861 + esac
6862 + add_dir="-L$dir"
6863 + add="-l$name"
6864 + elif test "$hardcode_shlibpath_var" = no; then
6865 + add_shlibpath="$dir"
6866 + add="-l$name"
6867 + else
6868 + lib_linked=no
6869 + fi
6870 + ;;
6871 + relink)
6872 + if test "$hardcode_direct" = yes; then
6873 + add="$dir/$linklib"
6874 + elif test "$hardcode_minus_L" = yes; then
6875 + add_dir="-L$dir"
6876 + add="-l$name"
6877 + elif test "$hardcode_shlibpath_var" = yes; then
6878 + add_shlibpath="$dir"
6879 + add="-l$name"
6880 + else
6881 + lib_linked=no
6882 + fi
6883 + ;;
6884 + *) lib_linked=no ;;
6885 + esac
6887 + if test "$lib_linked" != yes; then
6888 + $echo "$modename: configuration error: unsupported hardcode properties"
6889 + exit 1
6890 + fi
6892 + if test -n "$add_shlibpath"; then
6893 + case :$compile_shlibpath: in
6894 + *":$add_shlibpath:"*) ;;
6895 + *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
6896 + esac
6897 + fi
6898 + if test "$linkmode" = prog; then
6899 + test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
6900 + test -n "$add" && compile_deplibs="$add $compile_deplibs"
6901 + else
6902 + test -n "$add_dir" && deplibs="$add_dir $deplibs"
6903 + test -n "$add" && deplibs="$add $deplibs"
6904 + if test "$hardcode_direct" != yes && \
6905 + test "$hardcode_minus_L" != yes && \
6906 + test "$hardcode_shlibpath_var" = yes; then
6907 + case :$finalize_shlibpath: in
6908 + *":$libdir:"*) ;;
6909 + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
6910 + esac
6911 + fi
6912 + fi
6913 + fi
6915 + if test "$linkmode" = prog || test "$mode" = relink; then
6916 + add_shlibpath=
6917 + add_dir=
6918 + add=
6919 + # Finalize command for both is simple: just hardcode it.
6920 + if test "$hardcode_direct" = yes; then
6921 + add="$libdir/$linklib"
6922 + elif test "$hardcode_minus_L" = yes; then
6923 + add_dir="-L$libdir"
6924 + add="-l$name"
6925 + elif test "$hardcode_shlibpath_var" = yes; then
6926 + case :$finalize_shlibpath: in
6927 + *":$libdir:"*) ;;
6928 + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
6929 + esac
6930 + add="-l$name"
6931 + else
6932 + # We cannot seem to hardcode it, guess we'll fake it.
6933 + add_dir="-L$libdir"
6934 + add="-l$name"
6935 + fi
6937 + if test "$linkmode" = prog; then
6938 + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
6939 + test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
6940 + else
6941 + test -n "$add_dir" && deplibs="$add_dir $deplibs"
6942 + test -n "$add" && deplibs="$add $deplibs"
6943 + fi
6944 + fi
6945 + elif test "$linkmode" = prog; then
6946 + if test "$alldeplibs" = yes &&
6947 + { test "$deplibs_check_method" = pass_all ||
6948 + { test "$build_libtool_libs" = yes &&
6949 + test -n "$library_names"; }; }; then
6950 + # We only need to search for static libraries
6951 + continue
6952 + fi
6954 + # Try to link the static library
6955 + # Here we assume that one of hardcode_direct or hardcode_minus_L
6956 + # is not unsupported. This is valid on all known static and
6957 + # shared platforms.
6958 + if test "$hardcode_direct" != unsupported; then
6959 + test -n "$old_library" && linklib="$old_library"
6960 + compile_deplibs="$dir/$linklib $compile_deplibs"
6961 + finalize_deplibs="$dir/$linklib $finalize_deplibs"
6962 + else
6963 + compile_deplibs="-l$name -L$dir $compile_deplibs"
6964 + finalize_deplibs="-l$name -L$dir $finalize_deplibs"
6965 + fi
6966 + elif test "$build_libtool_libs" = yes; then
6967 + # Not a shared library
6968 + if test "$deplibs_check_method" != pass_all; then
6969 + # We're trying link a shared library against a static one
6970 + # but the system doesn't support it.
6972 + # Just print a warning and add the library to dependency_libs so
6973 + # that the program can be linked against the static library.
6974 + echo
6975 + echo "*** Warning: This library needs some functionality provided by $lib."
6976 + echo "*** I have the capability to make that library automatically link in when"
6977 + echo "*** you link to this library. But I can only do this if you have a"
6978 + echo "*** shared version of the library, which you do not appear to have."
6979 + if test "$module" = yes; then
6980 + echo "*** Therefore, libtool will create a static module, that should work "
6981 + echo "*** as long as the dlopening application is linked with the -dlopen flag."
6982 + if test -z "$global_symbol_pipe"; then
6983 + echo
6984 + echo "*** However, this would only work if libtool was able to extract symbol"
6985 + echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
6986 + echo "*** not find such a program. So, this module is probably useless."
6987 + echo "*** \`nm' from GNU binutils and a full rebuild may help."
6988 + fi
6989 + if test "$build_old_libs" = no; then
6990 + build_libtool_libs=module
6991 + build_old_libs=yes
6992 + else
6993 + build_libtool_libs=no
6994 + fi
6995 + fi
6996 + else
6997 + convenience="$convenience $dir/$old_library"
6998 + old_convenience="$old_convenience $dir/$old_library"
6999 + deplibs="$dir/$old_library $deplibs"
7000 + link_static=yes
7001 + fi
7002 + fi # link shared/static library?
7004 + if test "$linkmode" = lib; then
7005 + if test -n "$dependency_libs" &&
7006 + { test "$hardcode_into_libs" != yes || test $build_old_libs = yes ||
7007 + test $link_static = yes; }; then
7008 + # Extract -R from dependency_libs
7009 + temp_deplibs=
7010 + for libdir in $dependency_libs; do
7011 + case $libdir in
7012 + -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
7013 + case " $xrpath " in
7014 + *" $temp_xrpath "*) ;;
7015 + *) xrpath="$xrpath $temp_xrpath";;
7016 + esac;;
7017 + *) temp_deplibs="$temp_deplibs $libdir";;
7018 + esac
7019 + done
7020 + dependency_libs="$temp_deplibs"
7021 + fi
7023 + newlib_search_path="$newlib_search_path $absdir"
7024 + # Link against this library
7025 + test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
7026 + # ... and its dependency_libs
7027 + tmp_libs=
7028 + for deplib in $dependency_libs; do
7029 + newdependency_libs="$deplib $newdependency_libs"
7030 + case "$tmp_libs " in
7031 + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
7032 + esac
7033 + tmp_libs="$tmp_libs $deplib"
7034 + done
7036 + if test "$link_all_deplibs" != no; then
7037 + # Add the search paths of all dependency libraries
7038 + for deplib in $dependency_libs; do
7039 + case $deplib in
7040 + -L*) path="$deplib" ;;
7041 + *.la)
7042 + dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
7043 + test "X$dir" = "X$deplib" && dir="."
7044 + # We need an absolute path.
7045 + case $dir in
7046 + [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
7047 + *)
7048 + absdir=`cd "$dir" && pwd`
7049 + if test -z "$absdir"; then
7050 + $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
7051 + absdir="$dir"
7052 + fi
7053 + ;;
7054 + esac
7055 + if grep "^installed=no" $deplib > /dev/null; then
7056 + path="-L$absdir/$objdir"
7057 + else
7058 + eval libdir=`sed -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
7059 + if test -z "$libdir"; then
7060 + $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
7061 + exit 1
7062 + fi
7063 + if test "$absdir" != "$libdir"; then
7064 + $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
7065 + fi
7066 + path="-L$absdir"
7067 + fi
7068 + ;;
7069 + *) continue ;;
7070 + esac
7071 + case " $deplibs " in
7072 + *" $path "*) ;;
7073 + *) deplibs="$deplibs $path" ;;
7074 + esac
7075 + done
7076 + fi # link_all_deplibs != no
7077 + fi # linkmode = lib
7078 + done # for deplib in $libs
7079 + if test "$pass" = dlpreopen; then
7080 + # Link the dlpreopened libraries before other libraries
7081 + for deplib in $save_deplibs; do
7082 + deplibs="$deplib $deplibs"
7083 + done
7084 + fi
7085 + if test "$pass" != dlopen; then
7086 + test "$pass" != scan && dependency_libs="$newdependency_libs"
7087 + if test "$pass" != conv; then
7088 + # Make sure lib_search_path contains only unique directories.
7089 + lib_search_path=
7090 + for dir in $newlib_search_path; do
7091 + case "$lib_search_path " in
7092 + *" $dir "*) ;;
7093 + *) lib_search_path="$lib_search_path $dir" ;;
7094 + esac
7095 + done
7096 + newlib_search_path=
7097 + fi
7099 + if test "$linkmode,$pass" != "prog,link"; then
7100 + vars="deplibs"
7101 + else
7102 + vars="compile_deplibs finalize_deplibs"
7103 + fi
7104 + for var in $vars dependency_libs; do
7105 + # Add libraries to $var in reverse order
7106 + eval tmp_libs=\"\$$var\"
7107 + new_libs=
7108 + for deplib in $tmp_libs; do
7109 + case $deplib in
7110 + -L*) new_libs="$deplib $new_libs" ;;
7111 + *)
7112 + case " $specialdeplibs " in
7113 + *" $deplib "*) new_libs="$deplib $new_libs" ;;
7114 + *)
7115 + case " $new_libs " in
7116 + *" $deplib "*) ;;
7117 + *) new_libs="$deplib $new_libs" ;;
7118 + esac
7119 + ;;
7120 + esac
7121 + ;;
7122 + esac
7123 + done
7124 + tmp_libs=
7125 + for deplib in $new_libs; do
7126 + case $deplib in
7127 + -L*)
7128 + case " $tmp_libs " in
7129 + *" $deplib "*) ;;
7130 + *) tmp_libs="$tmp_libs $deplib" ;;
7131 + esac
7132 + ;;
7133 + *) tmp_libs="$tmp_libs $deplib" ;;
7134 + esac
7135 + done
7136 + eval $var=\"$tmp_libs\"
7137 + done # for var
7138 + fi
7139 + if test "$pass" = "conv" &&
7140 + { test "$linkmode" = "lib" || test "$linkmode" = "prog"; }; then
7141 + libs="$deplibs" # reset libs
7142 + deplibs=
7143 + fi
7144 + done # for pass
7145 + if test "$linkmode" = prog; then
7146 + dlfiles="$newdlfiles"
7147 + dlprefiles="$newdlprefiles"
7148 + fi
7150 + case $linkmode in
7151 + oldlib)
7152 + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
7153 + $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
7154 + fi
7156 + if test -n "$rpath"; then
7157 + $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2
7158 + fi
7160 + if test -n "$xrpath"; then
7161 + $echo "$modename: warning: \`-R' is ignored for archives" 1>&2
7162 + fi
7164 + if test -n "$vinfo"; then
7165 + $echo "$modename: warning: \`-version-info' is ignored for archives" 1>&2
7166 + fi
7168 + if test -n "$release"; then
7169 + $echo "$modename: warning: \`-release' is ignored for archives" 1>&2
7170 + fi
7172 + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
7173 + $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
7174 + fi
7176 + # Now set the variables for building old libraries.
7177 + build_libtool_libs=no
7178 + oldlibs="$output"
7179 + objs="$objs$old_deplibs"
7180 + ;;
7182 + lib)
7183 + # Make sure we only generate libraries of the form `libNAME.la'.
7184 + case $outputname in
7185 + lib*)
7186 + name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
7187 + eval libname=\"$libname_spec\"
7188 + ;;
7189 + *)
7190 + if test "$module" = no; then
7191 + $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
7192 + $echo "$help" 1>&2
7193 + exit 1
7194 + fi
7195 + if test "$need_lib_prefix" != no; then
7196 + # Add the "lib" prefix for modules if required
7197 + name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
7198 + eval libname=\"$libname_spec\"
7199 + else
7200 + libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
7201 + fi
7202 + ;;
7203 + esac
7205 + if test -n "$objs"; then
7206 + if test "$deplibs_check_method" != pass_all; then
7207 + $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
7208 + exit 1
7209 + else
7210 + echo
7211 + echo "*** Warning: Linking the shared library $output against the non-libtool"
7212 + echo "*** objects $objs is not portable!"
7213 + libobjs="$libobjs $objs"
7214 + fi
7215 + fi
7217 + if test "$dlself" != no; then
7218 + $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2
7219 + fi
7221 + set dummy $rpath
7222 + if test $# -gt 2; then
7223 + $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
7224 + fi
7225 + install_libdir="$2"
7227 + oldlibs=
7228 + if test -z "$rpath"; then
7229 + if test "$build_libtool_libs" = yes; then
7230 + # Building a libtool convenience library.
7231 + libext=al
7232 + oldlibs="$output_objdir/$libname.$libext $oldlibs"
7233 + build_libtool_libs=convenience
7234 + build_old_libs=yes
7235 + fi
7237 + if test -n "$vinfo"; then
7238 + $echo "$modename: warning: \`-version-info' is ignored for convenience libraries" 1>&2
7239 + fi
7241 + if test -n "$release"; then
7242 + $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2
7243 + fi
7244 + else
7246 + # Parse the version information argument.
7247 + IFS="${IFS= }"; save_ifs="$IFS"; IFS=':'
7248 + set dummy $vinfo 0 0 0
7249 + IFS="$save_ifs"
7251 + if test -n "$8"; then
7252 + $echo "$modename: too many parameters to \`-version-info'" 1>&2
7253 + $echo "$help" 1>&2
7254 + exit 1
7255 + fi
7257 + current="$2"
7258 + revision="$3"
7259 + age="$4"
7261 + # Check that each of the things are valid numbers.
7262 + case $current in
7263 + 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
7264 + *)
7265 + $echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2
7266 + $echo "$modename: \`$vinfo' is not valid version information" 1>&2
7267 + exit 1
7268 + ;;
7269 + esac
7271 + case $revision in
7272 + 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
7273 + *)
7274 + $echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2
7275 + $echo "$modename: \`$vinfo' is not valid version information" 1>&2
7276 + exit 1
7277 + ;;
7278 + esac
7280 + case $age in
7281 + 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
7282 + *)
7283 + $echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2
7284 + $echo "$modename: \`$vinfo' is not valid version information" 1>&2
7285 + exit 1
7286 + ;;
7287 + esac
7289 + if test $age -gt $current; then
7290 + $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
7291 + $echo "$modename: \`$vinfo' is not valid version information" 1>&2
7292 + exit 1
7293 + fi
7295 + # Calculate the version variables.
7296 + major=
7297 + versuffix=
7298 + verstring=
7299 + case $version_type in
7300 + none) ;;
7302 + darwin)
7303 + # Like Linux, but with the current version available in
7304 + # verstring for coding it into the library header
7305 + major=.`expr $current - $age`
7306 + versuffix="$major.$age.$revision"
7307 + # Darwin ld doesn't like 0 for these options...
7308 + minor_current=`expr $current + 1`
7309 + verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
7310 + ;;
7312 + freebsd-aout)
7313 + major=".$current"
7314 + versuffix=".$current.$revision";
7315 + ;;
7317 + freebsd-elf)
7318 + major=".$current"
7319 + versuffix=".$current";
7320 + ;;
7322 + irix)
7323 + major=`expr $current - $age + 1`
7324 + verstring="sgi$major.$revision"
7326 + # Add in all the interfaces that we are compatible with.
7327 + loop=$revision
7328 + while test $loop != 0; do
7329 + iface=`expr $revision - $loop`
7330 + loop=`expr $loop - 1`
7331 + verstring="sgi$major.$iface:$verstring"
7332 + done
7334 + # Before this point, $major must not contain `.'.
7335 + major=.$major
7336 + versuffix="$major.$revision"
7337 + ;;
7339 + linux)
7340 + major=.`expr $current - $age`
7341 + versuffix="$major.$age.$revision"
7342 + ;;
7344 + osf)
7345 + major=`expr $current - $age`
7346 + versuffix=".$current.$age.$revision"
7347 + verstring="$current.$age.$revision"
7349 + # Add in all the interfaces that we are compatible with.
7350 + loop=$age
7351 + while test $loop != 0; do
7352 + iface=`expr $current - $loop`
7353 + loop=`expr $loop - 1`
7354 + verstring="$verstring:${iface}.0"
7355 + done
7357 + # Make executables depend on our current version.
7358 + verstring="$verstring:${current}.0"
7359 + ;;
7361 + sunos)
7362 + major=".$current"
7363 + versuffix=".$current.$revision"
7364 + ;;
7366 + windows)
7367 + # Use '-' rather than '.', since we only want one
7368 + # extension on DOS 8.3 filesystems.
7369 + major=`expr $current - $age`
7370 + versuffix="-$major"
7371 + ;;
7373 + *)
7374 + $echo "$modename: unknown library version type \`$version_type'" 1>&2
7375 + echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
7376 + exit 1
7377 + ;;
7378 + esac
7380 + # Clear the version info if we defaulted, and they specified a release.
7381 + if test -z "$vinfo" && test -n "$release"; then
7382 + major=
7383 + verstring="0.0"
7384 + if test "$need_version" = no; then
7385 + versuffix=
7386 + else
7387 + versuffix=".0.0"
7388 + fi
7389 + fi
7391 + # Remove version info from name if versioning should be avoided
7392 + if test "$avoid_version" = yes && test "$need_version" = no; then
7393 + major=
7394 + versuffix=
7395 + verstring=""
7396 + fi
7398 + # Check to see if the archive will have undefined symbols.
7399 + if test "$allow_undefined" = yes; then
7400 + if test "$allow_undefined_flag" = unsupported; then
7401 + $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2
7402 + build_libtool_libs=no
7403 + build_old_libs=yes
7404 + fi
7405 + else
7406 + # Don't allow undefined symbols.
7407 + allow_undefined_flag="$no_undefined_flag"
7408 + fi
7409 + fi
7411 + if test "$mode" != relink; then
7412 + # Remove our outputs.
7413 + $show "${rm}r $output_objdir/$outputname $output_objdir/$libname.* $output_objdir/${libname}${release}.*"
7414 + $run ${rm}r $output_objdir/$outputname $output_objdir/$libname.* $output_objdir/${libname}${release}.*
7415 + fi
7417 + # Now set the variables for building old libraries.
7418 + if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
7419 + oldlibs="$oldlibs $output_objdir/$libname.$libext"
7421 + # Transform .lo files to .o files.
7422 + oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
7423 + fi
7425 + # Eliminate all temporary directories.
7426 + for path in $notinst_path; do
7427 + lib_search_path=`echo "$lib_search_path " | sed -e 's% $path % %g'`
7428 + deplibs=`echo "$deplibs " | sed -e 's% -L$path % %g'`
7429 + dependency_libs=`echo "$dependency_libs " | sed -e 's% -L$path % %g'`
7430 + done
7432 + if test -n "$xrpath"; then
7433 + # If the user specified any rpath flags, then add them.
7434 + temp_xrpath=
7435 + for libdir in $xrpath; do
7436 + temp_xrpath="$temp_xrpath -R$libdir"
7437 + case "$finalize_rpath " in
7438 + *" $libdir "*) ;;
7439 + *) finalize_rpath="$finalize_rpath $libdir" ;;
7440 + esac
7441 + done
7442 + if test $hardcode_into_libs != yes || test $build_old_libs = yes; then
7443 + dependency_libs="$temp_xrpath $dependency_libs"
7444 + fi
7445 + fi
7447 + # Make sure dlfiles contains only unique files that won't be dlpreopened
7448 + old_dlfiles="$dlfiles"
7449 + dlfiles=
7450 + for lib in $old_dlfiles; do
7451 + case " $dlprefiles $dlfiles " in
7452 + *" $lib "*) ;;
7453 + *) dlfiles="$dlfiles $lib" ;;
7454 + esac
7455 + done
7457 + # Make sure dlprefiles contains only unique files
7458 + old_dlprefiles="$dlprefiles"
7459 + dlprefiles=
7460 + for lib in $old_dlprefiles; do
7461 + case "$dlprefiles " in
7462 + *" $lib "*) ;;
7463 + *) dlprefiles="$dlprefiles $lib" ;;
7464 + esac
7465 + done
7467 + if test "$build_libtool_libs" = yes; then
7468 + if test -n "$rpath"; then
7469 + case $host in
7470 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
7471 + # these systems don't actually have a c library (as such)!
7472 + ;;
7473 + *-*-rhapsody* | *-*-darwin1.[012])
7474 + # Rhapsody C library is in the System framework
7475 + deplibs="$deplibs -framework System"
7476 + ;;
7477 + *-*-netbsd*)
7478 + # Don't link with libc until the a.out ld.so is fixed.
7479 + ;;
7480 + *)
7481 + # Add libc to deplibs on all other systems if necessary.
7482 + if test "$build_libtool_need_lc" = "yes"; then
7483 + deplibs="$deplibs -lc"
7484 + fi
7485 + ;;
7486 + esac
7487 + fi
7489 + # Transform deplibs into only deplibs that can be linked in shared.
7490 + name_save=$name
7491 + libname_save=$libname
7492 + release_save=$release
7493 + versuffix_save=$versuffix
7494 + major_save=$major
7495 + # I'm not sure if I'm treating the release correctly. I think
7496 + # release should show up in the -l (ie -lgmp5) so we don't want to
7497 + # add it in twice. Is that correct?
7498 + release=""
7499 + versuffix=""
7500 + major=""
7501 + newdeplibs=
7502 + droppeddeps=no
7503 + case $deplibs_check_method in
7504 + pass_all)
7505 + # Don't check for shared/static. Everything works.
7506 + # This might be a little naive. We might want to check
7507 + # whether the library exists or not. But this is on
7508 + # osf3 & osf4 and I'm not really sure... Just
7509 + # implementing what was already the behaviour.
7510 + newdeplibs=$deplibs
7511 + ;;
7512 + test_compile)
7513 + # This code stresses the "libraries are programs" paradigm to its
7514 + # limits. Maybe even breaks it. We compile a program, linking it
7515 + # against the deplibs as a proxy for the library. Then we can check
7516 + # whether they linked in statically or dynamically with ldd.
7517 + $rm conftest.c
7518 + cat > conftest.c <<EOF
7519 + int main() { return 0; }
7520 +EOF
7521 + $rm conftest
7522 + $CC -o conftest conftest.c $deplibs
7523 + if test $? -eq 0 ; then
7524 + ldd_output=`ldd conftest`
7525 + for i in $deplibs; do
7526 + name="`expr $i : '-l\(.*\)'`"
7527 + # If $name is empty we are operating on a -L argument.
7528 + if test -n "$name" && test "$name" != "0"; then
7529 + libname=`eval \\$echo \"$libname_spec\"`
7530 + deplib_matches=`eval \\$echo \"$library_names_spec\"`
7531 + set dummy $deplib_matches
7532 + deplib_match=$2
7533 + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
7534 + newdeplibs="$newdeplibs $i"
7535 + else
7536 + droppeddeps=yes
7537 + echo
7538 + echo "*** Warning: This library needs some functionality provided by $i."
7539 + echo "*** I have the capability to make that library automatically link in when"
7540 + echo "*** you link to this library. But I can only do this if you have a"
7541 + echo "*** shared version of the library, which you do not appear to have."
7542 + fi
7543 + else
7544 + newdeplibs="$newdeplibs $i"
7545 + fi
7546 + done
7547 + else
7548 + # Error occured in the first compile. Let's try to salvage the situation:
7549 + # Compile a seperate program for each library.
7550 + for i in $deplibs; do
7551 + name="`expr $i : '-l\(.*\)'`"
7552 + # If $name is empty we are operating on a -L argument.
7553 + if test -n "$name" && test "$name" != "0"; then
7554 + $rm conftest
7555 + $CC -o conftest conftest.c $i
7556 + # Did it work?
7557 + if test $? -eq 0 ; then
7558 + ldd_output=`ldd conftest`
7559 + libname=`eval \\$echo \"$libname_spec\"`
7560 + deplib_matches=`eval \\$echo \"$library_names_spec\"`
7561 + set dummy $deplib_matches
7562 + deplib_match=$2
7563 + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
7564 + newdeplibs="$newdeplibs $i"
7565 + else
7566 + droppeddeps=yes
7567 + echo
7568 + echo "*** Warning: This library needs some functionality provided by $i."
7569 + echo "*** I have the capability to make that library automatically link in when"
7570 + echo "*** you link to this library. But I can only do this if you have a"
7571 + echo "*** shared version of the library, which you do not appear to have."
7572 + fi
7573 + else
7574 + droppeddeps=yes
7575 + echo
7576 + echo "*** Warning! Library $i is needed by this library but I was not able to"
7577 + echo "*** make it link in! You will probably need to install it or some"
7578 + echo "*** library that it depends on before this library will be fully"
7579 + echo "*** functional. Installing it before continuing would be even better."
7580 + fi
7581 + else
7582 + newdeplibs="$newdeplibs $i"
7583 + fi
7584 + done
7585 + fi
7586 + ;;
7587 + file_magic*)
7588 + set dummy $deplibs_check_method
7589 + file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
7590 + for a_deplib in $deplibs; do
7591 + name="`expr $a_deplib : '-l\(.*\)'`"
7592 + # If $name is empty we are operating on a -L argument.
7593 + if test -n "$name" && test "$name" != "0"; then
7594 + libname=`eval \\$echo \"$libname_spec\"`
7595 + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
7596 + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
7597 + for potent_lib in $potential_libs; do
7598 + # Follow soft links.
7599 + if ls -lLd "$potent_lib" 2>/dev/null \
7600 + | grep " -> " >/dev/null; then
7601 + continue
7602 + fi
7603 + # The statement above tries to avoid entering an
7604 + # endless loop below, in case of cyclic links.
7605 + # We might still enter an endless loop, since a link
7606 + # loop can be closed while we follow links,
7607 + # but so what?
7608 + potlib="$potent_lib"
7609 + while test -h "$potlib" 2>/dev/null; do
7610 + potliblink=`ls -ld $potlib | sed 's/.* -> //'`
7611 + case $potliblink in
7612 + [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
7613 + *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
7614 + esac
7615 + done
7616 + if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
7617 + | sed 10q \
7618 + | egrep "$file_magic_regex" > /dev/null; then
7619 + newdeplibs="$newdeplibs $a_deplib"
7620 + a_deplib=""
7621 + break 2
7622 + fi
7623 + done
7624 + done
7625 + if test -n "$a_deplib" ; then
7626 + droppeddeps=yes
7627 + echo
7628 + echo "*** Warning: This library needs some functionality provided by $a_deplib."
7629 + echo "*** I have the capability to make that library automatically link in when"
7630 + echo "*** you link to this library. But I can only do this if you have a"
7631 + echo "*** shared version of the library, which you do not appear to have."
7632 + fi
7633 + else
7634 + # Add a -L argument.
7635 + newdeplibs="$newdeplibs $a_deplib"
7636 + fi
7637 + done # Gone through all deplibs.
7638 + ;;
7639 + match_pattern*)
7640 + set dummy $deplibs_check_method
7641 + match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
7642 + for a_deplib in $deplibs; do
7643 + name="`expr $a_deplib : '-l\(.*\)'`"
7644 + # If $name is empty we are operating on a -L argument.
7645 + if test -n "$name" && test "$name" != "0"; then
7646 + libname=`eval \\$echo \"$libname_spec\"`
7647 + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
7648 + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
7649 + for potent_lib in $potential_libs; do
7650 + if eval echo \"$potent_lib\" 2>/dev/null \
7651 + | sed 10q \
7652 + | egrep "$match_pattern_regex" > /dev/null; then
7653 + newdeplibs="$newdeplibs $a_deplib"
7654 + a_deplib=""
7655 + break 2
7656 + fi
7657 + done
7658 + done
7659 + if test -n "$a_deplib" ; then
7660 + droppeddeps=yes
7661 + echo
7662 + echo "*** Warning: This library needs some functionality provided by $a_deplib."
7663 + echo "*** I have the capability to make that library automatically link in when"
7664 + echo "*** you link to this library. But I can only do this if you have a"
7665 + echo "*** shared version of the library, which you do not appear to have."
7666 + fi
7667 + else
7668 + # Add a -L argument.
7669 + newdeplibs="$newdeplibs $a_deplib"
7670 + fi
7671 + done # Gone through all deplibs.
7672 + ;;
7673 + none | unknown | *)
7674 + newdeplibs=""
7675 + if $echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
7676 + -e 's/ -[LR][^ ]*//g' -e 's/[ ]//g' |
7677 + grep . >/dev/null; then
7678 + echo
7679 + if test "X$deplibs_check_method" = "Xnone"; then
7680 + echo "*** Warning: inter-library dependencies are not supported in this platform."
7681 + else
7682 + echo "*** Warning: inter-library dependencies are not known to be supported."
7683 + fi
7684 + echo "*** All declared inter-library dependencies are being dropped."
7685 + droppeddeps=yes
7686 + fi
7687 + ;;
7688 + esac
7689 + versuffix=$versuffix_save
7690 + major=$major_save
7691 + release=$release_save
7692 + libname=$libname_save
7693 + name=$name_save
7695 + case $host in
7696 + *-*-rhapsody* | *-*-darwin1.[012])
7697 + # On Rhapsody replace the C library is the System framework
7698 + newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
7699 + ;;
7700 + esac
7702 + if test "$droppeddeps" = yes; then
7703 + if test "$module" = yes; then
7704 + echo
7705 + echo "*** Warning: libtool could not satisfy all declared inter-library"
7706 + echo "*** dependencies of module $libname. Therefore, libtool will create"
7707 + echo "*** a static module, that should work as long as the dlopening"
7708 + echo "*** application is linked with the -dlopen flag."
7709 + if test -z "$global_symbol_pipe"; then
7710 + echo
7711 + echo "*** However, this would only work if libtool was able to extract symbol"
7712 + echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
7713 + echo "*** not find such a program. So, this module is probably useless."
7714 + echo "*** \`nm' from GNU binutils and a full rebuild may help."
7715 + fi
7716 + if test "$build_old_libs" = no; then
7717 + oldlibs="$output_objdir/$libname.$libext"
7718 + build_libtool_libs=module
7719 + build_old_libs=yes
7720 + else
7721 + build_libtool_libs=no
7722 + fi
7723 + else
7724 + echo "*** The inter-library dependencies that have been dropped here will be"
7725 + echo "*** automatically added whenever a program is linked with this library"
7726 + echo "*** or is declared to -dlopen it."
7728 + if test $allow_undefined = no; then
7729 + echo
7730 + echo "*** Since this library must not contain undefined symbols,"
7731 + echo "*** because either the platform does not support them or"
7732 + echo "*** it was explicitly requested with -no-undefined,"
7733 + echo "*** libtool will only create a static version of it."
7734 + if test "$build_old_libs" = no; then
7735 + oldlibs="$output_objdir/$libname.$libext"
7736 + build_libtool_libs=module
7737 + build_old_libs=yes
7738 + else
7739 + build_libtool_libs=no
7740 + fi
7741 + fi
7742 + fi
7743 + fi
7744 + # Done checking deplibs!
7745 + deplibs=$newdeplibs
7746 + fi
7748 + # All the library-specific variables (install_libdir is set above).
7749 + library_names=
7750 + old_library=
7751 + dlname=
7753 + # Test again, we may have decided not to build it any more
7754 + if test "$build_libtool_libs" = yes; then
7755 + if test "$hardcode_into_libs" = yes; then
7756 + # Hardcode the library paths
7757 + hardcode_libdirs=
7758 + dep_rpath=
7759 + rpath="$finalize_rpath"
7760 + test "$mode" != relink && rpath="$compile_rpath$rpath"
7761 + for libdir in $rpath; do
7762 + if test -n "$hardcode_libdir_flag_spec"; then
7763 + if test -n "$hardcode_libdir_separator"; then
7764 + if test -z "$hardcode_libdirs"; then
7765 + hardcode_libdirs="$libdir"
7766 + else
7767 + # Just accumulate the unique libdirs.
7768 + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
7769 + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
7770 + ;;
7771 + *)
7772 + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
7773 + ;;
7774 + esac
7775 + fi
7776 + else
7777 + eval flag=\"$hardcode_libdir_flag_spec\"
7778 + dep_rpath="$dep_rpath $flag"
7779 + fi
7780 + elif test -n "$runpath_var"; then
7781 + case "$perm_rpath " in
7782 + *" $libdir "*) ;;
7783 + *) perm_rpath="$perm_rpath $libdir" ;;
7784 + esac
7785 + fi
7786 + done
7787 + # Substitute the hardcoded libdirs into the rpath.
7788 + if test -n "$hardcode_libdir_separator" &&
7789 + test -n "$hardcode_libdirs"; then
7790 + libdir="$hardcode_libdirs"
7791 + eval dep_rpath=\"$hardcode_libdir_flag_spec\"
7792 + fi
7793 + if test -n "$runpath_var" && test -n "$perm_rpath"; then
7794 + # We should set the runpath_var.
7795 + rpath=
7796 + for dir in $perm_rpath; do
7797 + rpath="$rpath$dir:"
7798 + done
7799 + eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
7800 + fi
7801 + test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
7802 + fi
7804 + shlibpath="$finalize_shlibpath"
7805 + test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
7806 + if test -n "$shlibpath"; then
7807 + eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
7808 + fi
7810 + # Get the real and link names of the library.
7811 + eval library_names=\"$library_names_spec\"
7812 + set dummy $library_names
7813 + realname="$2"
7814 + shift; shift
7816 + if test -n "$soname_spec"; then
7817 + eval soname=\"$soname_spec\"
7818 + else
7819 + soname="$realname"
7820 + fi
7821 + test -z "$dlname" && dlname=$soname
7823 + lib="$output_objdir/$realname"
7824 + for link
7825 + do
7826 + linknames="$linknames $link"
7827 + done
7829 + # Ensure that we have .o objects for linkers which dislike .lo
7830 + # (e.g. aix) in case we are running --disable-static
7831 + for obj in $libobjs; do
7832 + xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
7833 + if test "X$xdir" = "X$obj"; then
7834 + xdir="."
7835 + else
7836 + xdir="$xdir"
7837 + fi
7838 + baseobj=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
7839 + oldobj=`$echo "X$baseobj" | $Xsed -e "$lo2o"`
7840 + if test ! -f $xdir/$oldobj; then
7841 + $show "(cd $xdir && ${LN_S} $baseobj $oldobj)"
7842 + $run eval '(cd $xdir && ${LN_S} $baseobj $oldobj)' || exit $?
7843 + fi
7844 + done
7846 + # Use standard objects if they are pic
7847 + test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
7849 + # Prepare the list of exported symbols
7850 + if test -z "$export_symbols"; then
7851 + if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
7852 + $show "generating symbol list for \`$libname.la'"
7853 + export_symbols="$output_objdir/$libname.exp"
7854 + $run $rm $export_symbols
7855 + eval cmds=\"$export_symbols_cmds\"
7856 + IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
7857 + for cmd in $cmds; do
7858 + IFS="$save_ifs"
7859 + $show "$cmd"
7860 + $run eval "$cmd" || exit $?
7861 + done
7862 + IFS="$save_ifs"
7863 + if test -n "$export_symbols_regex"; then
7864 + $show "egrep -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
7865 + $run eval 'egrep -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
7866 + $show "$mv \"${export_symbols}T\" \"$export_symbols\""
7867 + $run eval '$mv "${export_symbols}T" "$export_symbols"'
7868 + fi
7869 + fi
7870 + fi
7872 + if test -n "$export_symbols" && test -n "$include_expsyms"; then
7873 + $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
7874 + fi
7876 + if test -n "$convenience"; then
7877 + if test -n "$whole_archive_flag_spec"; then
7878 + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
7879 + else
7880 + gentop="$output_objdir/${outputname}x"
7881 + $show "${rm}r $gentop"
7882 + $run ${rm}r "$gentop"
7883 + $show "mkdir $gentop"
7884 + $run mkdir "$gentop"
7885 + status=$?
7886 + if test $status -ne 0 && test ! -d "$gentop"; then
7887 + exit $status
7888 + fi
7889 + generated="$generated $gentop"
7891 + for xlib in $convenience; do
7892 + # Extract the objects.
7893 + case $xlib in
7894 + [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
7895 + *) xabs=`pwd`"/$xlib" ;;
7896 + esac
7897 + xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
7898 + xdir="$gentop/$xlib"
7900 + $show "${rm}r $xdir"
7901 + $run ${rm}r "$xdir"
7902 + $show "mkdir $xdir"
7903 + $run mkdir "$xdir"
7904 + status=$?
7905 + if test $status -ne 0 && test ! -d "$xdir"; then
7906 + exit $status
7907 + fi
7908 + $show "(cd $xdir && $AR x $xabs)"
7909 + $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
7911 + libobjs="$libobjs "`find $xdir -name \*.o -print -o -name \*.lo -print | $NL2SP`
7912 + done
7913 + fi
7914 + fi
7916 + if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
7917 + eval flag=\"$thread_safe_flag_spec\"
7918 + linker_flags="$linker_flags $flag"
7919 + fi
7921 + # Make a backup of the uninstalled library when relinking
7922 + if test "$mode" = relink; then
7923 + $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $?
7924 + fi
7926 + # Do each of the archive commands.
7927 + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
7928 + eval cmds=\"$archive_expsym_cmds\"
7929 + else
7930 + eval cmds=\"$archive_cmds\"
7931 + fi
7932 + IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
7933 + for cmd in $cmds; do
7934 + IFS="$save_ifs"
7935 + $show "$cmd"
7936 + $run eval "$cmd" || exit $?
7937 + done
7938 + IFS="$save_ifs"
7940 + # Restore the uninstalled library and exit
7941 + if test "$mode" = relink; then
7942 + $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
7943 + exit 0
7944 + fi
7946 + # Create links to the real library.
7947 + for linkname in $linknames; do
7948 + if test "$realname" != "$linkname"; then
7949 + $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)"
7950 + $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $?
7951 + fi
7952 + done
7954 + # If -module or -export-dynamic was specified, set the dlname.
7955 + if test "$module" = yes || test "$export_dynamic" = yes; then
7956 + # On all known operating systems, these are identical.
7957 + dlname="$soname"
7958 + fi
7959 + fi
7960 + ;;
7962 + obj)
7963 + if test -n "$deplibs"; then
7964 + $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
7965 + fi
7967 + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
7968 + $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
7969 + fi
7971 + if test -n "$rpath"; then
7972 + $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2
7973 + fi
7975 + if test -n "$xrpath"; then
7976 + $echo "$modename: warning: \`-R' is ignored for objects" 1>&2
7977 + fi
7979 + if test -n "$vinfo"; then
7980 + $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2
7981 + fi
7983 + if test -n "$release"; then
7984 + $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
7985 + fi
7987 + case $output in
7988 + *.lo)
7989 + if test -n "$objs$old_deplibs"; then
7990 + $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
7991 + exit 1
7992 + fi
7993 + libobj="$output"
7994 + obj=`$echo "X$output" | $Xsed -e "$lo2o"`
7995 + ;;
7996 + *)
7997 + libobj=
7998 + obj="$output"
7999 + ;;
8000 + esac
8002 + # Delete the old objects.
8003 + $run $rm $obj $libobj
8005 + # Objects from convenience libraries. This assumes
8006 + # single-version convenience libraries. Whenever we create
8007 + # different ones for PIC/non-PIC, this we'll have to duplicate
8008 + # the extraction.
8009 + reload_conv_objs=
8010 + gentop=
8011 + # reload_cmds runs $LD directly, so let us get rid of
8012 + # -Wl from whole_archive_flag_spec
8013 + wl=
8015 + if test -n "$convenience"; then
8016 + if test -n "$whole_archive_flag_spec"; then
8017 + eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
8018 + else
8019 + gentop="$output_objdir/${obj}x"
8020 + $show "${rm}r $gentop"
8021 + $run ${rm}r "$gentop"
8022 + $show "mkdir $gentop"
8023 + $run mkdir "$gentop"
8024 + status=$?
8025 + if test $status -ne 0 && test ! -d "$gentop"; then
8026 + exit $status
8027 + fi
8028 + generated="$generated $gentop"
8030 + for xlib in $convenience; do
8031 + # Extract the objects.
8032 + case $xlib in
8033 + [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
8034 + *) xabs=`pwd`"/$xlib" ;;
8035 + esac
8036 + xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
8037 + xdir="$gentop/$xlib"
8039 + $show "${rm}r $xdir"
8040 + $run ${rm}r "$xdir"
8041 + $show "mkdir $xdir"
8042 + $run mkdir "$xdir"
8043 + status=$?
8044 + if test $status -ne 0 && test ! -d "$xdir"; then
8045 + exit $status
8046 + fi
8047 + $show "(cd $xdir && $AR x $xabs)"
8048 + $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
8050 + reload_conv_objs="$reload_objs "`find $xdir -name \*.o -print -o -name \*.lo -print | $NL2SP`
8051 + done
8052 + fi
8053 + fi
8055 + # Create the old-style object.
8056 + reload_objs="$objs$old_deplibs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
8058 + output="$obj"
8059 + eval cmds=\"$reload_cmds\"
8060 + IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
8061 + for cmd in $cmds; do
8062 + IFS="$save_ifs"
8063 + $show "$cmd"
8064 + $run eval "$cmd" || exit $?
8065 + done
8066 + IFS="$save_ifs"
8068 + # Exit if we aren't doing a library object file.
8069 + if test -z "$libobj"; then
8070 + if test -n "$gentop"; then
8071 + $show "${rm}r $gentop"
8072 + $run ${rm}r $gentop
8073 + fi
8075 + exit 0
8076 + fi
8078 + if test "$build_libtool_libs" != yes; then
8079 + if test -n "$gentop"; then
8080 + $show "${rm}r $gentop"
8081 + $run ${rm}r $gentop
8082 + fi
8084 + # Create an invalid libtool object if no PIC, so that we don't
8085 + # accidentally link it into a program.
8086 + $show "echo timestamp > $libobj"
8087 + $run eval "echo timestamp > $libobj" || exit $?
8088 + exit 0
8089 + fi
8091 + if test -n "$pic_flag" || test "$pic_mode" != default; then
8092 + # Only do commands if we really have different PIC objects.
8093 + reload_objs="$libobjs $reload_conv_objs"
8094 + output="$libobj"
8095 + eval cmds=\"$reload_cmds\"
8096 + IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
8097 + for cmd in $cmds; do
8098 + IFS="$save_ifs"
8099 + $show "$cmd"
8100 + $run eval "$cmd" || exit $?
8101 + done
8102 + IFS="$save_ifs"
8103 + else
8104 + # Just create a symlink.
8105 + $show $rm $libobj
8106 + $run $rm $libobj
8107 + xdir=`$echo "X$libobj" | $Xsed -e 's%/[^/]*$%%'`
8108 + if test "X$xdir" = "X$libobj"; then
8109 + xdir="."
8110 + else
8111 + xdir="$xdir"
8112 + fi
8113 + baseobj=`$echo "X$libobj" | $Xsed -e 's%^.*/%%'`
8114 + oldobj=`$echo "X$baseobj" | $Xsed -e "$lo2o"`
8115 + $show "(cd $xdir && $LN_S $oldobj $baseobj)"
8116 + $run eval '(cd $xdir && $LN_S $oldobj $baseobj)' || exit $?
8117 + fi
8119 + if test -n "$gentop"; then
8120 + $show "${rm}r $gentop"
8121 + $run ${rm}r $gentop
8122 + fi
8124 + exit 0
8125 + ;;
8127 + prog)
8128 + case $host in
8129 + *cygwin*) output=`echo $output | sed -e 's,.exe$,,;s,$,.exe,'` ;;
8130 + esac
8131 + if test -n "$vinfo"; then
8132 + $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
8133 + fi
8135 + if test -n "$release"; then
8136 + $echo "$modename: warning: \`-release' is ignored for programs" 1>&2
8137 + fi
8139 + if test "$preload" = yes; then
8140 + if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown &&
8141 + test "$dlopen_self_static" = unknown; then
8142 + $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
8143 + fi
8144 + fi
8146 + case $host in
8147 + *-*-rhapsody* | *-*-darwin1.[012])
8148 + # On Rhapsody replace the C library is the System framework
8149 + compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
8150 + finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
8151 + ;;
8152 + esac
8154 + compile_command="$compile_command $compile_deplibs"
8155 + finalize_command="$finalize_command $finalize_deplibs"
8157 + if test -n "$rpath$xrpath"; then
8158 + # If the user specified any rpath flags, then add them.
8159 + for libdir in $rpath $xrpath; do
8160 + # This is the magic to use -rpath.
8161 + case "$finalize_rpath " in
8162 + *" $libdir "*) ;;
8163 + *) finalize_rpath="$finalize_rpath $libdir" ;;
8164 + esac
8165 + done
8166 + fi
8168 + # Now hardcode the library paths
8169 + rpath=
8170 + hardcode_libdirs=
8171 + for libdir in $compile_rpath $finalize_rpath; do
8172 + if test -n "$hardcode_libdir_flag_spec"; then
8173 + if test -n "$hardcode_libdir_separator"; then
8174 + if test -z "$hardcode_libdirs"; then
8175 + hardcode_libdirs="$libdir"
8176 + else
8177 + # Just accumulate the unique libdirs.
8178 + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
8179 + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
8180 + ;;
8181 + *)
8182 + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
8183 + ;;
8184 + esac
8185 + fi
8186 + else
8187 + eval flag=\"$hardcode_libdir_flag_spec\"
8188 + rpath="$rpath $flag"
8189 + fi
8190 + elif test -n "$runpath_var"; then
8191 + case "$perm_rpath " in
8192 + *" $libdir "*) ;;
8193 + *) perm_rpath="$perm_rpath $libdir" ;;
8194 + esac
8195 + fi
8196 + case $host in
8197 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
8198 + case :$dllsearchpath: in
8199 + *":$libdir:"*) ;;
8200 + *) dllsearchpath="$dllsearchpath:$libdir";;
8201 + esac
8202 + ;;
8203 + esac
8204 + done
8205 + # Substitute the hardcoded libdirs into the rpath.
8206 + if test -n "$hardcode_libdir_separator" &&
8207 + test -n "$hardcode_libdirs"; then
8208 + libdir="$hardcode_libdirs"
8209 + eval rpath=\" $hardcode_libdir_flag_spec\"
8210 + fi
8211 + compile_rpath="$rpath"
8213 + rpath=
8214 + hardcode_libdirs=
8215 + for libdir in $finalize_rpath; do
8216 + if test -n "$hardcode_libdir_flag_spec"; then
8217 + if test -n "$hardcode_libdir_separator"; then
8218 + if test -z "$hardcode_libdirs"; then
8219 + hardcode_libdirs="$libdir"
8220 + else
8221 + # Just accumulate the unique libdirs.
8222 + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
8223 + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
8224 + ;;
8225 + *)
8226 + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
8227 + ;;
8228 + esac
8229 + fi
8230 + else
8231 + eval flag=\"$hardcode_libdir_flag_spec\"
8232 + rpath="$rpath $flag"
8233 + fi
8234 + elif test -n "$runpath_var"; then
8235 + case "$finalize_perm_rpath " in
8236 + *" $libdir "*) ;;
8237 + *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
8238 + esac
8239 + fi
8240 + done
8241 + # Substitute the hardcoded libdirs into the rpath.
8242 + if test -n "$hardcode_libdir_separator" &&
8243 + test -n "$hardcode_libdirs"; then
8244 + libdir="$hardcode_libdirs"
8245 + eval rpath=\" $hardcode_libdir_flag_spec\"
8246 + fi
8247 + finalize_rpath="$rpath"
8249 + if test -n "$libobjs" && test "$build_old_libs" = yes; then
8250 + # Transform all the library objects into standard objects.
8251 + compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
8252 + finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
8253 + fi
8255 + dlsyms=
8256 + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
8257 + if test -n "$NM" && test -n "$global_symbol_pipe"; then
8258 + dlsyms="${outputname}S.c"
8259 + else
8260 + $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2
8261 + fi
8262 + fi
8264 + if test -n "$dlsyms"; then
8265 + case $dlsyms in
8266 + "") ;;
8267 + *.c)
8268 + # Discover the nlist of each of the dlfiles.
8269 + nlist="$output_objdir/${outputname}.nm"
8271 + $show "$rm $nlist ${nlist}S ${nlist}T"
8272 + $run $rm "$nlist" "${nlist}S" "${nlist}T"
8274 + # Parse the name list into a source file.
8275 + $show "creating $output_objdir/$dlsyms"
8277 + test -z "$run" && $echo > "$output_objdir/$dlsyms" "\
8278 +/* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */
8279 +/* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */
8281 +#ifdef __cplusplus
8282 +extern \"C\" {
8283 +#endif
8285 +/* Prevent the only kind of declaration conflicts we can make. */
8286 +#define lt_preloaded_symbols some_other_symbol
8288 +/* External symbol declarations for the compiler. */\
8289 +"
8291 + if test "$dlself" = yes; then
8292 + $show "generating symbol list for \`$output'"
8294 + test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
8296 + # Add our own program objects to the symbol list.
8297 + progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
8298 + for arg in $progfiles; do
8299 + $show "extracting global C symbols from \`$arg'"
8300 + $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
8301 + done
8303 + if test -n "$exclude_expsyms"; then
8304 + $run eval 'egrep -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
8305 + $run eval '$mv "$nlist"T "$nlist"'
8306 + fi
8308 + if test -n "$export_symbols_regex"; then
8309 + $run eval 'egrep -e "$export_symbols_regex" "$nlist" > "$nlist"T'
8310 + $run eval '$mv "$nlist"T "$nlist"'
8311 + fi
8313 + # Prepare the list of exported symbols
8314 + if test -z "$export_symbols"; then
8315 + export_symbols="$output_objdir/$output.exp"
8316 + $run $rm $export_symbols
8317 + $run eval "sed -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
8318 + else
8319 + $run eval "sed -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"'
8320 + $run eval 'grep -f "$output_objdir/$output.exp" < "$nlist" > "$nlist"T'
8321 + $run eval 'mv "$nlist"T "$nlist"'
8322 + fi
8323 + fi
8325 + for arg in $dlprefiles; do
8326 + $show "extracting global C symbols from \`$arg'"
8327 + name=`echo "$arg" | sed -e 's%^.*/%%'`
8328 + $run eval 'echo ": $name " >> "$nlist"'
8329 + $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
8330 + done
8332 + if test -z "$run"; then
8333 + # Make sure we have at least an empty file.
8334 + test -f "$nlist" || : > "$nlist"
8336 + if test -n "$exclude_expsyms"; then
8337 + egrep -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
8338 + $mv "$nlist"T "$nlist"
8339 + fi
8341 + # Try sorting and uniquifying the output.
8342 + if grep -v "^: " < "$nlist" | sort +2 | uniq > "$nlist"S; then
8343 + :
8344 + else
8345 + grep -v "^: " < "$nlist" > "$nlist"S
8346 + fi
8348 + if test -f "$nlist"S; then
8349 + eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
8350 + else
8351 + echo '/* NONE */' >> "$output_objdir/$dlsyms"
8352 + fi
8354 + $echo >> "$output_objdir/$dlsyms" "\
8356 +#undef lt_preloaded_symbols
8358 +#if defined (__STDC__) && __STDC__
8359 +# define lt_ptr_t void *
8360 +#else
8361 +# define lt_ptr_t char *
8362 +# define const
8363 +#endif
8365 +/* The mapping between symbol names and symbols. */
8366 +const struct {
8367 + const char *name;
8368 + lt_ptr_t address;
8369 +}
8370 +lt_preloaded_symbols[] =
8371 +{\
8372 +"
8374 + sed -n -e 's/^: \([^ ]*\) $/ {\"\1\", (lt_ptr_t) 0},/p' \
8375 + -e 's/^. \([^ ]*\) \([^ ]*\)$/ {"\2", (lt_ptr_t) \&\2},/p' \
8376 + < "$nlist" >> "$output_objdir/$dlsyms"
8378 + $echo >> "$output_objdir/$dlsyms" "\
8379 + {0, (lt_ptr_t) 0}
8380 +};
8382 +/* This works around a problem in FreeBSD linker */
8383 +#ifdef FREEBSD_WORKAROUND
8384 +static const void *lt_preloaded_setup() {
8385 + return lt_preloaded_symbols;
8386 +}
8387 +#endif
8389 +#ifdef __cplusplus
8390 +}
8391 +#endif\
8392 +"
8393 + fi
8395 + pic_flag_for_symtable=
8396 + case $host in
8397 + # compiling the symbol table file with pic_flag works around
8398 + # a FreeBSD bug that causes programs to crash when -lm is
8399 + # linked before any other PIC object. But we must not use
8400 + # pic_flag when linking with -static. The problem exists in
8401 + # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
8402 + *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
8403 + case "$compile_command " in
8404 + *" -static "*) ;;
8405 + *) pic_flag_for_symtable=" $pic_flag -DPIC -DFREEBSD_WORKAROUND";;
8406 + esac;;
8407 + *-*-hpux*)
8408 + case "$compile_command " in
8409 + *" -static "*) ;;
8410 + *) pic_flag_for_symtable=" $pic_flag -DPIC";;
8411 + esac
8412 + esac
8414 + # Now compile the dynamic symbol file.
8415 + $show "(cd $output_objdir && $CC -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
8416 + $run eval '(cd $output_objdir && $CC -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
8418 + # Clean up the generated files.
8419 + $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
8420 + $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
8422 + # Transform the symbol file into the correct name.
8423 + compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
8424 + finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
8425 + ;;
8426 + *)
8427 + $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
8428 + exit 1
8429 + ;;
8430 + esac
8431 + else
8432 + # We keep going just in case the user didn't refer to
8433 + # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
8434 + # really was required.
8436 + # Nullify the symbol file.
8437 + compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
8438 + finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
8439 + fi
8441 + if test $need_relink = no || test "$build_libtool_libs" != yes; then
8442 + # Replace the output file specification.
8443 + compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
8444 + link_command="$compile_command$compile_rpath"
8446 + # We have no uninstalled library dependencies, so finalize right now.
8447 + $show "$link_command"
8448 + $run eval "$link_command"
8449 + status=$?
8451 + # Delete the generated files.
8452 + if test -n "$dlsyms"; then
8453 + $show "$rm $output_objdir/${outputname}S.${objext}"
8454 + $run $rm "$output_objdir/${outputname}S.${objext}"
8455 + fi
8457 + exit $status
8458 + fi
8460 + if test -n "$shlibpath_var"; then
8461 + # We should set the shlibpath_var
8462 + rpath=
8463 + for dir in $temp_rpath; do
8464 + case $dir in
8465 + [\\/]* | [A-Za-z]:[\\/]*)
8466 + # Absolute path.
8467 + rpath="$rpath$dir:"
8468 + ;;
8469 + *)
8470 + # Relative path: add a thisdir entry.
8471 + rpath="$rpath\$thisdir/$dir:"
8472 + ;;
8473 + esac
8474 + done
8475 + temp_rpath="$rpath"
8476 + fi
8478 + if test -n "$compile_shlibpath$finalize_shlibpath"; then
8479 + compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
8480 + fi
8481 + if test -n "$finalize_shlibpath"; then
8482 + finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
8483 + fi
8485 + compile_var=
8486 + finalize_var=
8487 + if test -n "$runpath_var"; then
8488 + if test -n "$perm_rpath"; then
8489 + # We should set the runpath_var.
8490 + rpath=
8491 + for dir in $perm_rpath; do
8492 + rpath="$rpath$dir:"
8493 + done
8494 + compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
8495 + fi
8496 + if test -n "$finalize_perm_rpath"; then
8497 + # We should set the runpath_var.
8498 + rpath=
8499 + for dir in $finalize_perm_rpath; do
8500 + rpath="$rpath$dir:"
8501 + done
8502 + finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
8503 + fi
8504 + fi
8506 + if test "$no_install" = yes; then
8507 + # We don't need to create a wrapper script.
8508 + link_command="$compile_var$compile_command$compile_rpath"
8509 + # Replace the output file specification.
8510 + link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
8511 + # Delete the old output file.
8512 + $run $rm $output
8513 + # Link the executable and exit
8514 + $show "$link_command"
8515 + $run eval "$link_command" || exit $?
8516 + exit 0
8517 + fi
8519 + if test "$hardcode_action" = relink; then
8520 + # Fast installation is not supported
8521 + link_command="$compile_var$compile_command$compile_rpath"
8522 + relink_command="$finalize_var$finalize_command$finalize_rpath"
8524 + $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
8525 + $echo "$modename: \`$output' will be relinked during installation" 1>&2
8526 + else
8527 + if test "$fast_install" != no; then
8528 + link_command="$finalize_var$compile_command$finalize_rpath"
8529 + if test "$fast_install" = yes; then
8530 + relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
8531 + else
8532 + # fast_install is set to needless
8533 + relink_command=
8534 + fi
8535 + else
8536 + link_command="$compile_var$compile_command$compile_rpath"
8537 + relink_command="$finalize_var$finalize_command$finalize_rpath"
8538 + fi
8539 + fi
8541 + # Replace the output file specification.
8542 + link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
8544 + # Delete the old output files.
8545 + $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
8547 + $show "$link_command"
8548 + $run eval "$link_command" || exit $?
8550 + # Now create the wrapper script.
8551 + $show "creating $output"
8553 + # Quote the relink command for shipping.
8554 + if test -n "$relink_command"; then
8555 + # Preserve any variables that may affect compiler behavior
8556 + for var in $variables_saved_for_relink; do
8557 + if eval test -z \"\${$var+set}\"; then
8558 + relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
8559 + elif eval var_value=\$$var; test -z "$var_value"; then
8560 + relink_command="$var=; export $var; $relink_command"
8561 + else
8562 + var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
8563 + relink_command="$var=\"$var_value\"; export $var; $relink_command"
8564 + fi
8565 + done
8566 + relink_command="cd `pwd`; $relink_command"
8567 + relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
8568 + fi
8570 + # Quote $echo for shipping.
8571 + if test "X$echo" = "X$SHELL $0 --fallback-echo"; then
8572 + case $0 in
8573 + [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $0 --fallback-echo";;
8574 + *) qecho="$SHELL `pwd`/$0 --fallback-echo";;
8575 + esac
8576 + qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
8577 + else
8578 + qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"`
8579 + fi
8581 + # Only actually do things if our run command is non-null.
8582 + if test -z "$run"; then
8583 + # win32 will think the script is a binary if it has
8584 + # a .exe suffix, so we strip it off here.
8585 + case $output in
8586 + *.exe) output=`echo $output|sed 's,.exe$,,'` ;;
8587 + esac
8588 + # test for cygwin because mv fails w/o .exe extensions
8589 + case $host in
8590 + *cygwin*) exeext=.exe ;;
8591 + *) exeext= ;;
8592 + esac
8593 + $rm $output
8594 + trap "$rm $output; exit 1" 1 2 15
8596 + $echo > $output "\
8597 +#! $SHELL
8599 +# $output - temporary wrapper script for $objdir/$outputname
8600 +# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
8601 +#
8602 +# The $output program cannot be directly executed until all the libtool
8603 +# libraries that it depends on are installed.
8604 +#
8605 +# This wrapper script should never be moved out of the build directory.
8606 +# If it is, it will not operate correctly.
8608 +# Sed substitution that helps us do robust quoting. It backslashifies
8609 +# metacharacters that are still active within double-quoted strings.
8610 +Xsed='sed -e 1s/^X//'
8611 +sed_quote_subst='$sed_quote_subst'
8613 +# The HP-UX ksh and POSIX shell print the target directory to stdout
8614 +# if CDPATH is set.
8615 +if test \"\${CDPATH+set}\" = set; then CDPATH=:; export CDPATH; fi
8617 +relink_command=\"$relink_command\"
8619 +# This environment variable determines our operation mode.
8620 +if test \"\$libtool_install_magic\" = \"$magic\"; then
8621 + # install mode needs the following variable:
8622 + notinst_deplibs='$notinst_deplibs'
8623 +else
8624 + # When we are sourced in execute mode, \$file and \$echo are already set.
8625 + if test \"\$libtool_execute_magic\" != \"$magic\"; then
8626 + echo=\"$qecho\"
8627 + file=\"\$0\"
8628 + # Make sure echo works.
8629 + if test \"X\$1\" = X--no-reexec; then
8630 + # Discard the --no-reexec flag, and continue.
8631 + shift
8632 + elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then
8633 + # Yippee, \$echo works!
8634 + :
8635 + else
8636 + # Restart under the correct shell, and then maybe \$echo will work.
8637 + exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
8638 + fi
8639 + fi\
8640 +"
8641 + $echo >> $output "\
8643 + # Find the directory that this script lives in.
8644 + thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
8645 + test \"x\$thisdir\" = \"x\$file\" && thisdir=.
8647 + # Follow symbolic links until we get to the real thisdir.
8648 + file=\`ls -ld \"\$file\" | sed -n 's/.*-> //p'\`
8649 + while test -n \"\$file\"; do
8650 + destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
8652 + # If there was a directory component, then change thisdir.
8653 + if test \"x\$destdir\" != \"x\$file\"; then
8654 + case \"\$destdir\" in
8655 + [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
8656 + *) thisdir=\"\$thisdir/\$destdir\" ;;
8657 + esac
8658 + fi
8660 + file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
8661 + file=\`ls -ld \"\$thisdir/\$file\" | sed -n 's/.*-> //p'\`
8662 + done
8664 + # Try to get the absolute directory name.
8665 + absdir=\`cd \"\$thisdir\" && pwd\`
8666 + test -n \"\$absdir\" && thisdir=\"\$absdir\"
8667 +"
8669 + if test "$fast_install" = yes; then
8670 + echo >> $output "\
8671 + program=lt-'$outputname'$exeext
8672 + progdir=\"\$thisdir/$objdir\"
8674 + if test ! -f \"\$progdir/\$program\" || \\
8675 + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | sed 1q\`; \\
8676 + test \"X\$file\" != \"X\$progdir/\$program\"; }; then
8678 + file=\"\$\$-\$program\"
8680 + if test ! -d \"\$progdir\"; then
8681 + $mkdir \"\$progdir\"
8682 + else
8683 + $rm \"\$progdir/\$file\"
8684 + fi"
8686 + echo >> $output "\
8688 + # relink executable if necessary
8689 + if test -n \"\$relink_command\"; then
8690 + if (eval \$relink_command); then :
8691 + else
8692 + $rm \"\$progdir/\$file\"
8693 + exit 1
8694 + fi
8695 + fi
8697 + $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
8698 + { $rm \"\$progdir/\$program\";
8699 + $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; }
8700 + $rm \"\$progdir/\$file\"
8701 + fi"
8702 + else
8703 + echo >> $output "\
8704 + program='$outputname'
8705 + progdir=\"\$thisdir/$objdir\"
8706 +"
8707 + fi
8709 + echo >> $output "\
8711 + if test -f \"\$progdir/\$program\"; then"
8713 + # Export our shlibpath_var if we have one.
8714 + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
8715 + $echo >> $output "\
8716 + # Add our own library path to $shlibpath_var
8717 + $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
8719 + # Some systems cannot cope with colon-terminated $shlibpath_var
8720 + # The second colon is a workaround for a bug in BeOS R4 sed
8721 + $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
8723 + export $shlibpath_var
8724 +"
8725 + fi
8727 + # fixup the dll searchpath if we need to.
8728 + if test -n "$dllsearchpath"; then
8729 + $echo >> $output "\
8730 + # Add the dll search path components to the executable PATH
8731 + PATH=$dllsearchpath:\$PATH
8732 +"
8733 + fi
8735 + $echo >> $output "\
8736 + if test \"\$libtool_execute_magic\" != \"$magic\"; then
8737 + # Run the actual program with our arguments.
8738 +"
8739 + case $host in
8740 + # win32 systems need to use the prog path for dll
8741 + # lookup to work
8742 + *-*-cygwin* | *-*-pw32*)
8743 + $echo >> $output "\
8744 + exec \$progdir/\$program \${1+\"\$@\"}
8745 +"
8746 + ;;
8748 + # Backslashes separate directories on plain windows
8749 + *-*-mingw | *-*-os2*)
8750 + $echo >> $output "\
8751 + exec \$progdir\\\\\$program \${1+\"\$@\"}
8752 +"
8753 + ;;
8755 + *)
8756 + $echo >> $output "\
8757 + # Export the path to the program.
8758 + PATH=\"\$progdir:\$PATH\"
8759 + export PATH
8761 + exec \$program \${1+\"\$@\"}
8762 +"
8763 + ;;
8764 + esac
8765 + $echo >> $output "\
8766 + \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\"
8767 + exit 1
8768 + fi
8769 + else
8770 + # The program doesn't exist.
8771 + \$echo \"\$0: error: \$progdir/\$program does not exist\" 1>&2
8772 + \$echo \"This script is just a wrapper for \$program.\" 1>&2
8773 + echo \"See the $PACKAGE documentation for more information.\" 1>&2
8774 + exit 1
8775 + fi
8776 +fi\
8777 +"
8778 + chmod +x $output
8779 + fi
8780 + exit 0
8781 + ;;
8782 + esac
8784 + # See if we need to build an old-fashioned archive.
8785 + for oldlib in $oldlibs; do
8787 + if test "$build_libtool_libs" = convenience; then
8788 + oldobjs="$libobjs_save"
8789 + addlibs="$convenience"
8790 + build_libtool_libs=no
8791 + else
8792 + if test "$build_libtool_libs" = module; then
8793 + oldobjs="$libobjs_save"
8794 + build_libtool_libs=no
8795 + else
8796 + oldobjs="$objs$old_deplibs "`$echo "X$libobjs_save" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`
8797 + fi
8798 + addlibs="$old_convenience"
8799 + fi
8801 + if test -n "$addlibs"; then
8802 + gentop="$output_objdir/${outputname}x"
8803 + $show "${rm}r $gentop"
8804 + $run ${rm}r "$gentop"
8805 + $show "mkdir $gentop"
8806 + $run mkdir "$gentop"
8807 + status=$?
8808 + if test $status -ne 0 && test ! -d "$gentop"; then
8809 + exit $status
8810 + fi
8811 + generated="$generated $gentop"
8813 + # Add in members from convenience archives.
8814 + for xlib in $addlibs; do
8815 + # Extract the objects.
8816 + case $xlib in
8817 + [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
8818 + *) xabs=`pwd`"/$xlib" ;;
8819 + esac
8820 + xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
8821 + xdir="$gentop/$xlib"
8823 + $show "${rm}r $xdir"
8824 + $run ${rm}r "$xdir"
8825 + $show "mkdir $xdir"
8826 + $run mkdir "$xdir"
8827 + status=$?
8828 + if test $status -ne 0 && test ! -d "$xdir"; then
8829 + exit $status
8830 + fi
8831 + $show "(cd $xdir && $AR x $xabs)"
8832 + $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
8834 + oldobjs="$oldobjs "`find $xdir -name \*.${objext} -print -o -name \*.lo -print | $NL2SP`
8835 + done
8836 + fi
8838 + # Do each command in the archive commands.
8839 + if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
8840 + eval cmds=\"$old_archive_from_new_cmds\"
8841 + else
8842 + # Ensure that we have .o objects in place in case we decided
8843 + # not to build a shared library, and have fallen back to building
8844 + # static libs even though --disable-static was passed!
8845 + for oldobj in $oldobjs; do
8846 + if test ! -f $oldobj; then
8847 + xdir=`$echo "X$oldobj" | $Xsed -e 's%/[^/]*$%%'`
8848 + if test "X$xdir" = "X$oldobj"; then
8849 + xdir="."
8850 + else
8851 + xdir="$xdir"
8852 + fi
8853 + baseobj=`$echo "X$oldobj" | $Xsed -e 's%^.*/%%'`
8854 + obj=`$echo "X$baseobj" | $Xsed -e "$o2lo"`
8855 + $show "(cd $xdir && ${LN_S} $obj $baseobj)"
8856 + $run eval '(cd $xdir && ${LN_S} $obj $baseobj)' || exit $?
8857 + fi
8858 + done
8860 + eval cmds=\"$old_archive_cmds\"
8861 + fi
8862 + IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
8863 + for cmd in $cmds; do
8864 + IFS="$save_ifs"
8865 + $show "$cmd"
8866 + $run eval "$cmd" || exit $?
8867 + done
8868 + IFS="$save_ifs"
8869 + done
8871 + if test -n "$generated"; then
8872 + $show "${rm}r$generated"
8873 + $run ${rm}r$generated
8874 + fi
8876 + # Now create the libtool archive.
8877 + case $output in
8878 + *.la)
8879 + old_library=
8880 + test "$build_old_libs" = yes && old_library="$libname.$libext"
8881 + $show "creating $output"
8883 + # Preserve any variables that may affect compiler behavior
8884 + for var in $variables_saved_for_relink; do
8885 + if eval test -z \"\${$var+set}\"; then
8886 + relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
8887 + elif eval var_value=\$$var; test -z "$var_value"; then
8888 + relink_command="$var=; export $var; $relink_command"
8889 + else
8890 + var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
8891 + relink_command="$var=\"$var_value\"; export $var; $relink_command"
8892 + fi
8893 + done
8894 + # Quote the link command for shipping.
8895 + relink_command="cd `pwd`; $SHELL $0 --mode=relink $libtool_args"
8896 + relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
8898 + # Only create the output if not a dry run.
8899 + if test -z "$run"; then
8900 + for installed in no yes; do
8901 + if test "$installed" = yes; then
8902 + if test -z "$install_libdir"; then
8903 + break
8904 + fi
8905 + output="$output_objdir/$outputname"i
8906 + # Replace all uninstalled libtool libraries with the installed ones
8907 + newdependency_libs=
8908 + for deplib in $dependency_libs; do
8909 + case $deplib in
8910 + *.la)
8911 + name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
8912 + eval libdir=`sed -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
8913 + if test -z "$libdir"; then
8914 + $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
8915 + exit 1
8916 + fi
8917 + newdependency_libs="$newdependency_libs $libdir/$name"
8918 + ;;
8919 + *) newdependency_libs="$newdependency_libs $deplib" ;;
8920 + esac
8921 + done
8922 + dependency_libs="$newdependency_libs"
8923 + newdlfiles=
8924 + for lib in $dlfiles; do
8925 + name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
8926 + eval libdir=`sed -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
8927 + if test -z "$libdir"; then
8928 + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
8929 + exit 1
8930 + fi
8931 + newdlfiles="$newdlfiles $libdir/$name"
8932 + done
8933 + dlfiles="$newdlfiles"
8934 + newdlprefiles=
8935 + for lib in $dlprefiles; do
8936 + name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
8937 + eval libdir=`sed -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
8938 + if test -z "$libdir"; then
8939 + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
8940 + exit 1
8941 + fi
8942 + newdlprefiles="$newdlprefiles $libdir/$name"
8943 + done
8944 + dlprefiles="$newdlprefiles"
8945 + fi
8946 + $rm $output
8947 + # place dlname in correct position for cygwin
8948 + tdlname=$dlname
8949 + case $host,$output,$installed,$module,$dlname in
8950 + *cygwin*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
8951 + esac
8952 + $echo > $output "\
8953 +# $outputname - a libtool library file
8954 +# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
8955 +#
8956 +# Please DO NOT delete this file!
8957 +# It is necessary for linking the library.
8959 +# The name that we can dlopen(3).
8960 +dlname='$tdlname'
8962 +# Names of this library.
8963 +library_names='$library_names'
8965 +# The name of the static archive.
8966 +old_library='$old_library'
8968 +# Libraries that this one depends upon.
8969 +dependency_libs='$dependency_libs'
8971 +# Version information for $libname.
8972 +current=$current
8973 +age=$age
8974 +revision=$revision
8976 +# Is this an already installed library?
8977 +installed=$installed
8979 +# Files to dlopen/dlpreopen
8980 +dlopen='$dlfiles'
8981 +dlpreopen='$dlprefiles'
8983 +# Directory that this library needs to be installed in:
8984 +libdir='$install_libdir'"
8985 + if test "$installed" = no && test $need_relink = yes; then
8986 + $echo >> $output "\
8987 +relink_command=\"$relink_command\""
8988 + fi
8989 + done
8990 + fi
8992 + # Do a symbolic link so that the libtool archive can be found in
8993 + # LD_LIBRARY_PATH before the program is installed.
8994 + $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
8995 + $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
8996 + ;;
8997 + esac
8998 + exit 0
8999 + ;;
9001 + # libtool install mode
9002 + install)
9003 + modename="$modename: install"
9005 + # There may be an optional sh(1) argument at the beginning of
9006 + # install_prog (especially on Windows NT).
9007 + if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
9008 + # Allow the use of GNU shtool's install command.
9009 + $echo "X$nonopt" | $Xsed | grep shtool > /dev/null; then
9010 + # Aesthetically quote it.
9011 + arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
9012 + case $arg in
9013 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
9014 + arg="\"$arg\""
9015 + ;;
9016 + esac
9017 + install_prog="$arg "
9018 + arg="$1"
9019 + shift
9020 + else
9021 + install_prog=
9022 + arg="$nonopt"
9023 + fi
9025 + # The real first argument should be the name of the installation program.
9026 + # Aesthetically quote it.
9027 + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
9028 + case $arg in
9029 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
9030 + arg="\"$arg\""
9031 + ;;
9032 + esac
9033 + install_prog="$install_prog$arg"
9035 + # We need to accept at least all the BSD install flags.
9036 + dest=
9037 + files=
9038 + opts=
9039 + prev=
9040 + install_type=
9041 + isdir=no
9042 + stripme=
9043 + for arg
9044 + do
9045 + if test -n "$dest"; then
9046 + files="$files $dest"
9047 + dest="$arg"
9048 + continue
9049 + fi
9051 + case $arg in
9052 + -d) isdir=yes ;;
9053 + -f) prev="-f" ;;
9054 + -g) prev="-g" ;;
9055 + -m) prev="-m" ;;
9056 + -o) prev="-o" ;;
9057 + -s)
9058 + stripme=" -s"
9059 + continue
9060 + ;;
9061 + -*) ;;
9063 + *)
9064 + # If the previous option needed an argument, then skip it.
9065 + if test -n "$prev"; then
9066 + prev=
9067 + else
9068 + dest="$arg"
9069 + continue
9070 + fi
9071 + ;;
9072 + esac
9074 + # Aesthetically quote the argument.
9075 + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
9076 + case $arg in
9077 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
9078 + arg="\"$arg\""
9079 + ;;
9080 + esac
9081 + install_prog="$install_prog $arg"
9082 + done
9084 + if test -z "$install_prog"; then
9085 + $echo "$modename: you must specify an install program" 1>&2
9086 + $echo "$help" 1>&2
9087 + exit 1
9088 + fi
9090 + if test -n "$prev"; then
9091 + $echo "$modename: the \`$prev' option requires an argument" 1>&2
9092 + $echo "$help" 1>&2
9093 + exit 1
9094 + fi
9096 + if test -z "$files"; then
9097 + if test -z "$dest"; then
9098 + $echo "$modename: no file or destination specified" 1>&2
9099 + else
9100 + $echo "$modename: you must specify a destination" 1>&2
9101 + fi
9102 + $echo "$help" 1>&2
9103 + exit 1
9104 + fi
9106 + # Strip any trailing slash from the destination.
9107 + dest=`$echo "X$dest" | $Xsed -e 's%/$%%'`
9109 + # Check to see that the destination is a directory.
9110 + test -d "$dest" && isdir=yes
9111 + if test "$isdir" = yes; then
9112 + destdir="$dest"
9113 + destname=
9114 + else
9115 + destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'`
9116 + test "X$destdir" = "X$dest" && destdir=.
9117 + destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'`
9119 + # Not a directory, so check to see that there is only one file specified.
9120 + set dummy $files
9121 + if test $# -gt 2; then
9122 + $echo "$modename: \`$dest' is not a directory" 1>&2
9123 + $echo "$help" 1>&2
9124 + exit 1
9125 + fi
9126 + fi
9127 + case $destdir in
9128 + [\\/]* | [A-Za-z]:[\\/]*) ;;
9129 + *)
9130 + for file in $files; do
9131 + case $file in
9132 + *.lo) ;;
9133 + *)
9134 + $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
9135 + $echo "$help" 1>&2
9136 + exit 1
9137 + ;;
9138 + esac
9139 + done
9140 + ;;
9141 + esac
9143 + # This variable tells wrapper scripts just to set variables rather
9144 + # than running their programs.
9145 + libtool_install_magic="$magic"
9147 + staticlibs=
9148 + future_libdirs=
9149 + current_libdirs=
9150 + for file in $files; do
9152 + # Do each installation.
9153 + case $file in
9154 + *.$libext)
9155 + # Do the static libraries later.
9156 + staticlibs="$staticlibs $file"
9157 + ;;
9159 + *.la)
9160 + # Check to see that this really is a libtool archive.
9161 + if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
9162 + else
9163 + $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
9164 + $echo "$help" 1>&2
9165 + exit 1
9166 + fi
9168 + library_names=
9169 + old_library=
9170 + relink_command=
9171 + # If there is no directory component, then add one.
9172 + case $file in
9173 + */* | *\\*) . $file ;;
9174 + *) . ./$file ;;
9175 + esac
9177 + # Add the libdir to current_libdirs if it is the destination.
9178 + if test "X$destdir" = "X$libdir"; then
9179 + case "$current_libdirs " in
9180 + *" $libdir "*) ;;
9181 + *) current_libdirs="$current_libdirs $libdir" ;;
9182 + esac
9183 + else
9184 + # Note the libdir as a future libdir.
9185 + case "$future_libdirs " in
9186 + *" $libdir "*) ;;
9187 + *) future_libdirs="$future_libdirs $libdir" ;;
9188 + esac
9189 + fi
9191 + dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/
9192 + test "X$dir" = "X$file/" && dir=
9193 + dir="$dir$objdir"
9195 + if test -n "$relink_command"; then
9196 + $echo "$modename: warning: relinking \`$file'" 1>&2
9197 + $show "$relink_command"
9198 + if $run eval "$relink_command"; then :
9199 + else
9200 + $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
9201 + continue
9202 + fi
9203 + fi
9205 + # See the names of the shared library.
9206 + set dummy $library_names
9207 + if test -n "$2"; then
9208 + realname="$2"
9209 + shift
9210 + shift
9212 + srcname="$realname"
9213 + test -n "$relink_command" && srcname="$realname"T
9215 + # Install the shared library and build the symlinks.
9216 + $show "$install_prog $dir/$srcname $destdir/$realname"
9217 + $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $?
9218 + if test -n "$stripme" && test -n "$striplib"; then
9219 + $show "$striplib $destdir/$realname"
9220 + $run eval "$striplib $destdir/$realname" || exit $?
9221 + fi
9223 + if test $# -gt 0; then
9224 + # Delete the old symlinks, and create new ones.
9225 + for linkname
9226 + do
9227 + if test "$linkname" != "$realname"; then
9228 + $show "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
9229 + $run eval "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
9230 + fi
9231 + done
9232 + fi
9234 + # Do each command in the postinstall commands.
9235 + lib="$destdir/$realname"
9236 + eval cmds=\"$postinstall_cmds\"
9237 + IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
9238 + for cmd in $cmds; do
9239 + IFS="$save_ifs"
9240 + $show "$cmd"
9241 + $run eval "$cmd" || exit $?
9242 + done
9243 + IFS="$save_ifs"
9244 + fi
9246 + # Install the pseudo-library for information purposes.
9247 + name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
9248 + instname="$dir/$name"i
9249 + $show "$install_prog $instname $destdir/$name"
9250 + $run eval "$install_prog $instname $destdir/$name" || exit $?
9252 + # Maybe install the static library, too.
9253 + test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
9254 + ;;
9256 + *.lo)
9257 + # Install (i.e. copy) a libtool object.
9259 + # Figure out destination file name, if it wasn't already specified.
9260 + if test -n "$destname"; then
9261 + destfile="$destdir/$destname"
9262 + else
9263 + destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
9264 + destfile="$destdir/$destfile"
9265 + fi
9267 + # Deduce the name of the destination old-style object file.
9268 + case $destfile in
9269 + *.lo)
9270 + staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
9271 + ;;
9272 + *.$objext)
9273 + staticdest="$destfile"
9274 + destfile=
9275 + ;;
9276 + *)
9277 + $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
9278 + $echo "$help" 1>&2
9279 + exit 1
9280 + ;;
9281 + esac
9283 + # Install the libtool object if requested.
9284 + if test -n "$destfile"; then
9285 + $show "$install_prog $file $destfile"
9286 + $run eval "$install_prog $file $destfile" || exit $?
9287 + fi
9289 + # Install the old object if enabled.
9290 + if test "$build_old_libs" = yes; then
9291 + # Deduce the name of the old-style object file.
9292 + staticobj=`$echo "X$file" | $Xsed -e "$lo2o"`
9294 + $show "$install_prog $staticobj $staticdest"
9295 + $run eval "$install_prog \$staticobj \$staticdest" || exit $?
9296 + fi
9297 + exit 0
9298 + ;;
9300 + *)
9301 + # Figure out destination file name, if it wasn't already specified.
9302 + if test -n "$destname"; then
9303 + destfile="$destdir/$destname"
9304 + else
9305 + destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
9306 + destfile="$destdir/$destfile"
9307 + fi
9309 + # Do a test to see if this is really a libtool program.
9310 + if (sed -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
9311 + notinst_deplibs=
9312 + relink_command=
9314 + # If there is no directory component, then add one.
9315 + case $file in
9316 + */* | *\\*) . $file ;;
9317 + *) . ./$file ;;
9318 + esac
9320 + # Check the variables that should have been set.
9321 + if test -z "$notinst_deplibs"; then
9322 + $echo "$modename: invalid libtool wrapper script \`$file'" 1>&2
9323 + exit 1
9324 + fi
9326 + finalize=yes
9327 + for lib in $notinst_deplibs; do
9328 + # Check to see that each library is installed.
9329 + libdir=
9330 + if test -f "$lib"; then
9331 + # If there is no directory component, then add one.
9332 + case $lib in
9333 + */* | *\\*) . $lib ;;
9334 + *) . ./$lib ;;
9335 + esac
9336 + fi
9337 + libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
9338 + if test -n "$libdir" && test ! -f "$libfile"; then
9339 + $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
9340 + finalize=no
9341 + fi
9342 + done
9344 + relink_command=
9345 + # If there is no directory component, then add one.
9346 + case $file in
9347 + */* | *\\*) . $file ;;
9348 + *) . ./$file ;;
9349 + esac
9351 + outputname=
9352 + if test "$fast_install" = no && test -n "$relink_command"; then
9353 + if test "$finalize" = yes && test -z "$run"; then
9354 + tmpdir="/tmp"
9355 + test -n "$TMPDIR" && tmpdir="$TMPDIR"
9356 + tmpdir="$tmpdir/libtool-$$"
9357 + if $mkdir -p "$tmpdir" && chmod 700 "$tmpdir"; then :
9358 + else
9359 + $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2
9360 + continue
9361 + fi
9362 + file=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
9363 + outputname="$tmpdir/$file"
9364 + # Replace the output file specification.
9365 + relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
9367 + $show "$relink_command"
9368 + if $run eval "$relink_command"; then :
9369 + else
9370 + $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
9371 + ${rm}r "$tmpdir"
9372 + continue
9373 + fi
9374 + file="$outputname"
9375 + else
9376 + $echo "$modename: warning: cannot relink \`$file'" 1>&2
9377 + fi
9378 + else
9379 + # Install the binary that we compiled earlier.
9380 + file=`$echo "X$file" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
9381 + fi
9382 + fi
9384 + # remove .exe since cygwin /usr/bin/install will append another
9385 + # one anyways
9386 + case $install_prog,$host in
9387 + /usr/bin/install*,*cygwin*)
9388 + case $file:$destfile in
9389 + *.exe:*.exe)
9390 + # this is ok
9391 + ;;
9392 + *.exe:*)
9393 + destfile=$destfile.exe
9394 + ;;
9395 + *:*.exe)
9396 + destfile=`echo $destfile | sed -e 's,.exe$,,'`
9397 + ;;
9398 + esac
9399 + ;;
9400 + esac
9401 + $show "$install_prog$stripme $file $destfile"
9402 + $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
9403 + test -n "$outputname" && ${rm}r "$tmpdir"
9404 + ;;
9405 + esac
9406 + done
9408 + for file in $staticlibs; do
9409 + name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
9411 + # Set up the ranlib parameters.
9412 + oldlib="$destdir/$name"
9414 + $show "$install_prog $file $oldlib"
9415 + $run eval "$install_prog \$file \$oldlib" || exit $?
9417 + if test -n "$stripme" && test -n "$striplib"; then
9418 + $show "$old_striplib $oldlib"
9419 + $run eval "$old_striplib $oldlib" || exit $?
9420 + fi
9422 + # Do each command in the postinstall commands.
9423 + eval cmds=\"$old_postinstall_cmds\"
9424 + IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
9425 + for cmd in $cmds; do
9426 + IFS="$save_ifs"
9427 + $show "$cmd"
9428 + $run eval "$cmd" || exit $?
9429 + done
9430 + IFS="$save_ifs"
9431 + done
9433 + if test -n "$future_libdirs"; then
9434 + $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2
9435 + fi
9437 + if test -n "$current_libdirs"; then
9438 + # Maybe just do a dry run.
9439 + test -n "$run" && current_libdirs=" -n$current_libdirs"
9440 + exec $SHELL $0 --finish$current_libdirs
9441 + exit 1
9442 + fi
9444 + exit 0
9445 + ;;
9447 + # libtool finish mode
9448 + finish)
9449 + modename="$modename: finish"
9450 + libdirs="$nonopt"
9451 + admincmds=
9453 + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
9454 + for dir
9455 + do
9456 + libdirs="$libdirs $dir"
9457 + done
9459 + for libdir in $libdirs; do
9460 + if test -n "$finish_cmds"; then
9461 + # Do each command in the finish commands.
9462 + eval cmds=\"$finish_cmds\"
9463 + IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
9464 + for cmd in $cmds; do
9465 + IFS="$save_ifs"
9466 + $show "$cmd"
9467 + $run eval "$cmd" || admincmds="$admincmds
9468 + $cmd"
9469 + done
9470 + IFS="$save_ifs"
9471 + fi
9472 + if test -n "$finish_eval"; then
9473 + # Do the single finish_eval.
9474 + eval cmds=\"$finish_eval\"
9475 + $run eval "$cmds" || admincmds="$admincmds
9476 + $cmds"
9477 + fi
9478 + done
9479 + fi
9481 + # Exit here if they wanted silent mode.
9482 + test "$show" = ":" && exit 0
9484 + echo "----------------------------------------------------------------------"
9485 + echo "Libraries have been installed in:"
9486 + for libdir in $libdirs; do
9487 + echo " $libdir"
9488 + done
9489 + echo
9490 + echo "If you ever happen to want to link against installed libraries"
9491 + echo "in a given directory, LIBDIR, you must either use libtool, and"
9492 + echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
9493 + echo "flag during linking and do at least one of the following:"
9494 + if test -n "$shlibpath_var"; then
9495 + echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
9496 + echo " during execution"
9497 + fi
9498 + if test -n "$runpath_var"; then
9499 + echo " - add LIBDIR to the \`$runpath_var' environment variable"
9500 + echo " during linking"
9501 + fi
9502 + if test -n "$hardcode_libdir_flag_spec"; then
9503 + libdir=LIBDIR
9504 + eval flag=\"$hardcode_libdir_flag_spec\"
9506 + echo " - use the \`$flag' linker flag"
9507 + fi
9508 + if test -n "$admincmds"; then
9509 + echo " - have your system administrator run these commands:$admincmds"
9510 + fi
9511 + if test -f /etc/ld.so.conf; then
9512 + echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
9513 + fi
9514 + echo
9515 + echo "See any operating system documentation about shared libraries for"
9516 + echo "more information, such as the ld(1) and ld.so(8) manual pages."
9517 + echo "----------------------------------------------------------------------"
9518 + exit 0
9519 + ;;
9521 + # libtool execute mode
9522 + execute)
9523 + modename="$modename: execute"
9525 + # The first argument is the command name.
9526 + cmd="$nonopt"
9527 + if test -z "$cmd"; then
9528 + $echo "$modename: you must specify a COMMAND" 1>&2
9529 + $echo "$help"
9530 + exit 1
9531 + fi
9533 + # Handle -dlopen flags immediately.
9534 + for file in $execute_dlfiles; do
9535 + if test ! -f "$file"; then
9536 + $echo "$modename: \`$file' is not a file" 1>&2
9537 + $echo "$help" 1>&2
9538 + exit 1
9539 + fi
9541 + dir=
9542 + case $file in
9543 + *.la)
9544 + # Check to see that this really is a libtool archive.
9545 + if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
9546 + else
9547 + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
9548 + $echo "$help" 1>&2
9549 + exit 1
9550 + fi
9552 + # Read the libtool library.
9553 + dlname=
9554 + library_names=
9556 + # If there is no directory component, then add one.
9557 + case $file in
9558 + */* | *\\*) . $file ;;
9559 + *) . ./$file ;;
9560 + esac
9562 + # Skip this library if it cannot be dlopened.
9563 + if test -z "$dlname"; then
9564 + # Warn if it was a shared library.
9565 + test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'"
9566 + continue
9567 + fi
9569 + dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
9570 + test "X$dir" = "X$file" && dir=.
9572 + if test -f "$dir/$objdir/$dlname"; then
9573 + dir="$dir/$objdir"
9574 + else
9575 + $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
9576 + exit 1
9577 + fi
9578 + ;;
9580 + *.lo)
9581 + # Just add the directory containing the .lo file.
9582 + dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
9583 + test "X$dir" = "X$file" && dir=.
9584 + ;;
9586 + *)
9587 + $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2
9588 + continue
9589 + ;;
9590 + esac
9592 + # Get the absolute pathname.
9593 + absdir=`cd "$dir" && pwd`
9594 + test -n "$absdir" && dir="$absdir"
9596 + # Now add the directory to shlibpath_var.
9597 + if eval "test -z \"\$$shlibpath_var\""; then
9598 + eval "$shlibpath_var=\"\$dir\""
9599 + else
9600 + eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
9601 + fi
9602 + done
9604 + # This variable tells wrapper scripts just to set shlibpath_var
9605 + # rather than running their programs.
9606 + libtool_execute_magic="$magic"
9608 + # Check if any of the arguments is a wrapper script.
9609 + args=
9610 + for file
9611 + do
9612 + case $file in
9613 + -*) ;;
9614 + *)
9615 + # Do a test to see if this is really a libtool program.
9616 + if (sed -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
9617 + # If there is no directory component, then add one.
9618 + case $file in
9619 + */* | *\\*) . $file ;;
9620 + *) . ./$file ;;
9621 + esac
9623 + # Transform arg to wrapped name.
9624 + file="$progdir/$program"
9625 + fi
9626 + ;;
9627 + esac
9628 + # Quote arguments (to preserve shell metacharacters).
9629 + file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"`
9630 + args="$args \"$file\""
9631 + done
9633 + if test -z "$run"; then
9634 + if test -n "$shlibpath_var"; then
9635 + # Export the shlibpath_var.
9636 + eval "export $shlibpath_var"
9637 + fi
9639 + # Restore saved enviroment variables
9640 + if test "${save_LC_ALL+set}" = set; then
9641 + LC_ALL="$save_LC_ALL"; export LC_ALL
9642 + fi
9643 + if test "${save_LANG+set}" = set; then
9644 + LANG="$save_LANG"; export LANG
9645 + fi
9647 + # Now actually exec the command.
9648 + eval "exec \$cmd$args"
9650 + $echo "$modename: cannot exec \$cmd$args"
9651 + exit 1
9652 + else
9653 + # Display what would be done.
9654 + if test -n "$shlibpath_var"; then
9655 + eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
9656 + $echo "export $shlibpath_var"
9657 + fi
9658 + $echo "$cmd$args"
9659 + exit 0
9660 + fi
9661 + ;;
9663 + # libtool clean and uninstall mode
9664 + clean | uninstall)
9665 + modename="$modename: $mode"
9666 + rm="$nonopt"
9667 + files=
9668 + rmforce=
9669 + exit_status=0
9671 + # This variable tells wrapper scripts just to set variables rather
9672 + # than running their programs.
9673 + libtool_install_magic="$magic"
9675 + for arg
9676 + do
9677 + case $arg in
9678 + -f) rm="$rm $arg"; rmforce=yes ;;
9679 + -*) rm="$rm $arg" ;;
9680 + *) files="$files $arg" ;;
9681 + esac
9682 + done
9684 + if test -z "$rm"; then
9685 + $echo "$modename: you must specify an RM program" 1>&2
9686 + $echo "$help" 1>&2
9687 + exit 1
9688 + fi
9690 + rmdirs=
9692 + for file in $files; do
9693 + dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
9694 + if test "X$dir" = "X$file"; then
9695 + dir=.
9696 + objdir="$objdir"
9697 + else
9698 + objdir="$dir/$objdir"
9699 + fi
9700 + name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
9701 + test $mode = uninstall && objdir="$dir"
9703 + # Remember objdir for removal later, being careful to avoid duplicates
9704 + if test $mode = clean; then
9705 + case " $rmdirs " in
9706 + *" $objdir "*) ;;
9707 + *) rmdirs="$rmdirs $objdir" ;;
9708 + esac
9709 + fi
9711 + # Don't error if the file doesn't exist and rm -f was used.
9712 + if (test -L "$file") >/dev/null 2>&1 \
9713 + || (test -h "$file") >/dev/null 2>&1 \
9714 + || test -f "$file"; then
9715 + :
9716 + elif test -d "$file"; then
9717 + exit_status=1
9718 + continue
9719 + elif test "$rmforce" = yes; then
9720 + continue
9721 + fi
9723 + rmfiles="$file"
9725 + case $name in
9726 + *.la)
9727 + # Possibly a libtool archive, so verify it.
9728 + if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
9729 + . $dir/$name
9731 + # Delete the libtool libraries and symlinks.
9732 + for n in $library_names; do
9733 + rmfiles="$rmfiles $objdir/$n"
9734 + done
9735 + test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
9736 + test $mode = clean && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
9738 + if test $mode = uninstall; then
9739 + if test -n "$library_names"; then
9740 + # Do each command in the postuninstall commands.
9741 + eval cmds=\"$postuninstall_cmds\"
9742 + IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
9743 + for cmd in $cmds; do
9744 + IFS="$save_ifs"
9745 + $show "$cmd"
9746 + $run eval "$cmd"
9747 + if test $? != 0 && test "$rmforce" != yes; then
9748 + exit_status=1
9749 + fi
9750 + done
9751 + IFS="$save_ifs"
9752 + fi
9754 + if test -n "$old_library"; then
9755 + # Do each command in the old_postuninstall commands.
9756 + eval cmds=\"$old_postuninstall_cmds\"
9757 + IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
9758 + for cmd in $cmds; do
9759 + IFS="$save_ifs"
9760 + $show "$cmd"
9761 + $run eval "$cmd"
9762 + if test $? != 0 && test "$rmforce" != yes; then
9763 + exit_status=1
9764 + fi
9765 + done
9766 + IFS="$save_ifs"
9767 + fi
9768 + # FIXME: should reinstall the best remaining shared library.
9769 + fi
9770 + fi
9771 + ;;
9773 + *.lo)
9774 + if test "$build_old_libs" = yes; then
9775 + oldobj=`$echo "X$name" | $Xsed -e "$lo2o"`
9776 + rmfiles="$rmfiles $dir/$oldobj"
9777 + fi
9778 + ;;
9780 + *)
9781 + # Do a test to see if this is a libtool program.
9782 + if test $mode = clean &&
9783 + (sed -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
9784 + relink_command=
9785 + . $dir/$file
9787 + rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
9788 + if test "$fast_install" = yes && test -n "$relink_command"; then
9789 + rmfiles="$rmfiles $objdir/lt-$name"
9790 + fi
9791 + fi
9792 + ;;
9793 + esac
9794 + $show "$rm $rmfiles"
9795 + $run $rm $rmfiles || exit_status=1
9796 + done
9798 + # Try to remove the ${objdir}s in the directories where we deleted files
9799 + for dir in $rmdirs; do
9800 + if test -d "$dir"; then
9801 + $show "rmdir $dir"
9802 + $run rmdir $dir >/dev/null 2>&1
9803 + fi
9804 + done
9806 + exit $exit_status
9807 + ;;
9809 + "")
9810 + $echo "$modename: you must specify a MODE" 1>&2
9811 + $echo "$generic_help" 1>&2
9812 + exit 1
9813 + ;;
9814 + esac
9816 + $echo "$modename: invalid operation mode \`$mode'" 1>&2
9817 + $echo "$generic_help" 1>&2
9818 + exit 1
9819 +fi # test -z "$show_help"
9821 +# We need to display help for each of the modes.
9822 +case $mode in
9823 +"") $echo \
9824 +"Usage: $modename [OPTION]... [MODE-ARG]...
9826 +Provide generalized library-building support services.
9828 + --config show all configuration variables
9829 + --debug enable verbose shell tracing
9830 +-n, --dry-run display commands without modifying any files
9831 + --features display basic configuration information and exit
9832 + --finish same as \`--mode=finish'
9833 + --help display this help message and exit
9834 + --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS]
9835 + --quiet same as \`--silent'
9836 + --silent don't print informational messages
9837 + --version print version information
9839 +MODE must be one of the following:
9841 + clean remove files from the build directory
9842 + compile compile a source file into a libtool object
9843 + execute automatically set library path, then run a program
9844 + finish complete the installation of libtool libraries
9845 + install install libraries or executables
9846 + link create a library or an executable
9847 + uninstall remove libraries from an installed directory
9849 +MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for
9850 +a more detailed description of MODE."
9851 + exit 0
9852 + ;;
9854 +clean)
9855 + $echo \
9856 +"Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
9858 +Remove files from the build directory.
9860 +RM is the name of the program to use to delete files associated with each FILE
9861 +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
9862 +to RM.
9864 +If FILE is a libtool library, object or program, all the files associated
9865 +with it are deleted. Otherwise, only FILE itself is deleted using RM."
9866 + ;;
9868 +compile)
9869 + $echo \
9870 +"Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
9872 +Compile a source file into a libtool library object.
9874 +This mode accepts the following additional options:
9876 + -o OUTPUT-FILE set the output file name to OUTPUT-FILE
9877 + -prefer-pic try to building PIC objects only
9878 + -prefer-non-pic try to building non-PIC objects only
9879 + -static always build a \`.o' file suitable for static linking
9881 +COMPILE-COMMAND is a command to be used in creating a \`standard' object file
9882 +from the given SOURCEFILE.
9884 +The output file name is determined by removing the directory component from
9885 +SOURCEFILE, then substituting the C source code suffix \`.c' with the
9886 +library object suffix, \`.lo'."
9887 + ;;
9889 +execute)
9890 + $echo \
9891 +"Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]...
9893 +Automatically set library path, then run a program.
9895 +This mode accepts the following additional options:
9897 + -dlopen FILE add the directory containing FILE to the library path
9899 +This mode sets the library path environment variable according to \`-dlopen'
9900 +flags.
9902 +If any of the ARGS are libtool executable wrappers, then they are translated
9903 +into their corresponding uninstalled binary, and any of their required library
9904 +directories are added to the library path.
9906 +Then, COMMAND is executed, with ARGS as arguments."
9907 + ;;
9909 +finish)
9910 + $echo \
9911 +"Usage: $modename [OPTION]... --mode=finish [LIBDIR]...
9913 +Complete the installation of libtool libraries.
9915 +Each LIBDIR is a directory that contains libtool libraries.
9917 +The commands that this mode executes may require superuser privileges. Use
9918 +the \`--dry-run' option if you just want to see what would be executed."
9919 + ;;
9921 +install)
9922 + $echo \
9923 +"Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND...
9925 +Install executables or libraries.
9927 +INSTALL-COMMAND is the installation command. The first component should be
9928 +either the \`install' or \`cp' program.
9930 +The rest of the components are interpreted as arguments to that command (only
9931 +BSD-compatible install options are recognized)."
9932 + ;;
9934 +link)
9935 + $echo \
9936 +"Usage: $modename [OPTION]... --mode=link LINK-COMMAND...
9938 +Link object files or libraries together to form another library, or to
9939 +create an executable program.
9941 +LINK-COMMAND is a command using the C compiler that you would use to create
9942 +a program from several object files.
9944 +The following components of LINK-COMMAND are treated specially:
9946 + -all-static do not do any dynamic linking at all
9947 + -avoid-version do not add a version suffix if possible
9948 + -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
9949 + -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
9950 + -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
9951 + -export-symbols SYMFILE
9952 + try to export only the symbols listed in SYMFILE
9953 + -export-symbols-regex REGEX
9954 + try to export only the symbols matching REGEX
9955 + -LLIBDIR search LIBDIR for required installed libraries
9956 + -lNAME OUTPUT-FILE requires the installed library libNAME
9957 + -module build a library that can dlopened
9958 + -no-fast-install disable the fast-install mode
9959 + -no-install link a not-installable executable
9960 + -no-undefined declare that a library does not refer to external symbols
9961 + -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
9962 + -release RELEASE specify package release information
9963 + -rpath LIBDIR the created library will eventually be installed in LIBDIR
9964 + -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
9965 + -static do not do any dynamic linking of libtool libraries
9966 + -version-info CURRENT[:REVISION[:AGE]]
9967 + specify library version info [each variable defaults to 0]
9969 +All other options (arguments beginning with \`-') are ignored.
9971 +Every other argument is treated as a filename. Files ending in \`.la' are
9972 +treated as uninstalled libtool libraries, other files are standard or library
9973 +object files.
9975 +If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
9976 +only library objects (\`.lo' files) may be specified, and \`-rpath' is
9977 +required, except when creating a convenience library.
9979 +If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
9980 +using \`ar' and \`ranlib', or on Windows using \`lib'.
9982 +If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
9983 +is created, otherwise an executable program is created."
9984 + ;;
9986 +uninstall)
9987 + $echo \
9988 +"Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
9990 +Remove libraries from an installation directory.
9992 +RM is the name of the program to use to delete files associated with each FILE
9993 +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
9994 +to RM.
9996 +If FILE is a libtool library, all the files associated with it are deleted.
9997 +Otherwise, only FILE itself is deleted using RM."
9998 + ;;
10000 +*)
10001 + $echo "$modename: invalid operation mode \`$mode'" 1>&2
10002 + $echo "$help" 1>&2
10003 + exit 1
10004 + ;;
10005 +esac
10007 +echo
10008 +$echo "Try \`$modename --help' for more information about other modes."
10010 +exit 0
10012 +# Local Variables:
10013 +# mode:shell-script
10014 +# sh-indentation:2
10015 +# End:
10016 --- openjade1.3-1.3.2.orig/configure
10017 +++ openjade1.3-1.3.2/configure
10018 @@ -1,178 +1,11 @@
10019 #! /bin/sh
10020 # From configure.in Id: configure.in.
10021 # Guess values for system-dependent variables and create Makefiles.
10022 -# Generated by GNU Autoconf 2.53.
10023 +# Generated by GNU Autoconf 2.59.
10025 -# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
10026 -# Free Software Foundation, Inc.
10027 +# Copyright (C) 2003 Free Software Foundation, Inc.
10028 # This configure script is free software; the Free Software Foundation
10029 # gives unlimited permission to copy, distribute and modify it.
10031 -# Find the correct PATH separator. Usually this is `:', but
10032 -# DJGPP uses `;' like DOS.
10033 -if test "X${PATH_SEPARATOR+set}" != Xset; then
10034 - UNAME=${UNAME-`uname 2>/dev/null`}
10035 - case X$UNAME in
10036 - *-DOS) lt_cv_sys_path_separator=';' ;;
10037 - *) lt_cv_sys_path_separator=':' ;;
10038 - esac
10039 -fi
10042 -# Check that we are running under the correct shell.
10043 -SHELL=${CONFIG_SHELL-/bin/sh}
10045 -case X$ECHO in
10046 -X*--fallback-echo)
10047 - # Remove one level of quotation (which was required for Make).
10048 - ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
10049 - ;;
10050 -esac
10052 -echo=${ECHO-echo}
10053 -if test "X$1" = X--no-reexec; then
10054 - # Discard the --no-reexec flag, and continue.
10055 - shift
10056 -elif test "X$1" = X--fallback-echo; then
10057 - # Avoid inline document here, it may be left over
10058 - :
10059 -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
10060 - # Yippee, $echo works!
10061 - :
10062 -else
10063 - # Restart under the correct shell.
10064 - exec $SHELL "$0" --no-reexec ${1+"$@"}
10065 -fi
10067 -if test "X$1" = X--fallback-echo; then
10068 - # used as fallback echo
10069 - shift
10070 - cat <<EOF
10072 -EOF
10073 - exit 0
10074 -fi
10076 -# The HP-UX ksh and POSIX shell print the target directory to stdout
10077 -# if CDPATH is set.
10078 -if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
10080 -if test -z "$ECHO"; then
10081 -if test "X${echo_test_string+set}" != Xset; then
10082 -# find a string as large as possible, as long as the shell can cope with it
10083 - for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
10084 - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
10085 - if (echo_test_string="`eval $cmd`") 2>/dev/null &&
10086 - echo_test_string="`eval $cmd`" &&
10087 - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
10088 - then
10089 - break
10090 - fi
10091 - done
10092 -fi
10094 -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
10095 - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
10096 - test "X$echo_testing_string" = "X$echo_test_string"; then
10097 - :
10098 -else
10099 - # The Solaris, AIX, and Digital Unix default echo programs unquote
10100 - # backslashes. This makes it impossible to quote backslashes using
10101 - # echo "$something" | sed 's/\\/\\\\/g'
10102 - #
10103 - # So, first we look for a working echo in the user's PATH.
10105 - IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
10106 - for dir in $PATH /usr/ucb; do
10107 - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
10108 - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
10109 - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
10110 - test "X$echo_testing_string" = "X$echo_test_string"; then
10111 - echo="$dir/echo"
10112 - break
10113 - fi
10114 - done
10115 - IFS="$save_ifs"
10117 - if test "X$echo" = Xecho; then
10118 - # We didn't find a better echo, so look for alternatives.
10119 - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
10120 - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
10121 - test "X$echo_testing_string" = "X$echo_test_string"; then
10122 - # This shell has a builtin print -r that does the trick.
10123 - echo='print -r'
10124 - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
10125 - test "X$CONFIG_SHELL" != X/bin/ksh; then
10126 - # If we have ksh, try running configure again with it.
10127 - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
10128 - export ORIGINAL_CONFIG_SHELL
10129 - CONFIG_SHELL=/bin/ksh
10130 - export CONFIG_SHELL
10131 - exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
10132 - else
10133 - # Try using printf.
10134 - echo='printf %s\n'
10135 - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
10136 - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
10137 - test "X$echo_testing_string" = "X$echo_test_string"; then
10138 - # Cool, printf works
10139 - :
10140 - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
10141 - test "X$echo_testing_string" = 'X\t' &&
10142 - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
10143 - test "X$echo_testing_string" = "X$echo_test_string"; then
10144 - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
10145 - export CONFIG_SHELL
10146 - SHELL="$CONFIG_SHELL"
10147 - export SHELL
10148 - echo="$CONFIG_SHELL $0 --fallback-echo"
10149 - elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
10150 - test "X$echo_testing_string" = 'X\t' &&
10151 - echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
10152 - test "X$echo_testing_string" = "X$echo_test_string"; then
10153 - echo="$CONFIG_SHELL $0 --fallback-echo"
10154 - else
10155 - # maybe with a smaller string...
10156 - prev=:
10158 - for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
10159 - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
10160 - then
10161 - break
10162 - fi
10163 - prev="$cmd"
10164 - done
10166 - if test "$prev" != 'sed 50q "$0"'; then
10167 - echo_test_string=`eval $prev`
10168 - export echo_test_string
10169 - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
10170 - else
10171 - # Oops. We lost completely, so just stick with echo.
10172 - echo=echo
10173 - fi
10174 - fi
10175 - fi
10176 - fi
10177 -fi
10178 -fi
10180 -# Copy echo and quote the copy suitably for passing to libtool from
10181 -# the Makefile, instead of quoting the original, which is used later.
10182 -ECHO=$echo
10183 -if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
10184 - ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
10185 -fi
10189 -if expr a : '\(a\)' >/dev/null 2>&1; then
10190 - as_expr=expr
10191 -else
10192 - as_expr=false
10193 -fi
10196 ## --------------------- ##
10197 ## M4sh Initialization. ##
10198 ## --------------------- ##
10199 @@ -181,46 +14,57 @@
10200 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10201 emulate sh
10202 NULLCMD=:
10203 + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10204 + # is contrary to our usage. Disable this feature.
10205 + alias -g '${1+"$@"}'='"$@"'
10206 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10207 set -o posix
10208 fi
10209 +DUALCASE=1; export DUALCASE # for MKS sh
10211 -# NLS nuisances.
10212 # Support unset when possible.
10213 -if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
10214 +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10215 as_unset=unset
10216 else
10217 as_unset=false
10218 fi
10220 -(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
10221 - { $as_unset LANG || test "${LANG+set}" != set; } ||
10222 - { LANG=C; export LANG; }
10223 -(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
10224 - { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
10225 - { LC_ALL=C; export LC_ALL; }
10226 -(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
10227 - { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
10228 - { LC_TIME=C; export LC_TIME; }
10229 -(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
10230 - { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
10231 - { LC_CTYPE=C; export LC_CTYPE; }
10232 -(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
10233 - { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
10234 - { LANGUAGE=C; export LANGUAGE; }
10235 -(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
10236 - { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
10237 - { LC_COLLATE=C; export LC_COLLATE; }
10238 -(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
10239 - { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
10240 - { LC_NUMERIC=C; export LC_NUMERIC; }
10241 -(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
10242 - { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
10243 - { LC_MESSAGES=C; export LC_MESSAGES; }
10245 +# Work around bugs in pre-3.0 UWIN ksh.
10246 +$as_unset ENV MAIL MAILPATH
10247 +PS1='$ '
10248 +PS2='> '
10249 +PS4='+ '
10251 +# NLS nuisances.
10252 +for as_var in \
10253 + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10254 + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10255 + LC_TELEPHONE LC_TIME
10256 +do
10257 + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10258 + eval $as_var=C; export $as_var
10259 + else
10260 + $as_unset $as_var
10261 + fi
10262 +done
10264 +# Required to use basename.
10265 +if expr a : '\(a\)' >/dev/null 2>&1; then
10266 + as_expr=expr
10267 +else
10268 + as_expr=false
10269 +fi
10271 +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10272 + as_basename=basename
10273 +else
10274 + as_basename=false
10275 +fi
10278 # Name of the executable.
10279 -as_me=`(basename "$0") 2>/dev/null ||
10280 +as_me=`$as_basename "$0" ||
10281 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10282 X"$0" : 'X\(//\)$' \| \
10283 X"$0" : 'X\(/\)$' \| \
10284 @@ -231,6 +75,7 @@
10285 /^X\/\(\/\).*/{ s//\1/; q; }
10286 s/.*/./; q'`
10289 # PATH needs CR, and LINENO needs CR and PATH.
10290 # Avoid depending upon Character Ranges.
10291 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10292 @@ -241,15 +86,15 @@
10294 # The user is always right.
10295 if test "${PATH_SEPARATOR+set}" != set; then
10296 - echo "#! /bin/sh" >conftest.sh
10297 - echo "exit 0" >>conftest.sh
10298 - chmod +x conftest.sh
10299 - if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
10300 + echo "#! /bin/sh" >conf$$.sh
10301 + echo "exit 0" >>conf$$.sh
10302 + chmod +x conf$$.sh
10303 + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10304 PATH_SEPARATOR=';'
10305 else
10306 PATH_SEPARATOR=:
10307 fi
10308 - rm -f conftest.sh
10309 + rm -f conf$$.sh
10310 fi
10313 @@ -297,6 +142,8 @@
10314 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10315 test "x$as_lineno_1" != "x$as_lineno_2" &&
10316 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10317 + $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10318 + $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10319 CONFIG_SHELL=$as_dir/$as_base
10320 export CONFIG_SHELL
10321 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10322 @@ -369,13 +216,20 @@
10323 fi
10324 rm -f conf$$ conf$$.exe conf$$.file
10326 +if mkdir -p . 2>/dev/null; then
10327 + as_mkdir_p=:
10328 +else
10329 + test -d ./-p && rmdir ./-p
10330 + as_mkdir_p=false
10331 +fi
10333 as_executable_p="test -f"
10335 # Sed expression to map a string onto a valid CPP name.
10336 -as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
10337 +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10339 # Sed expression to map a string onto a valid variable name.
10340 -as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
10341 +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10344 # IFS
10345 @@ -385,7 +239,165 @@
10346 IFS=" $as_nl"
10348 # CDPATH.
10349 -$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
10350 +$as_unset CDPATH
10353 +# Find the correct PATH separator. Usually this is `:', but
10354 +# DJGPP uses `;' like DOS.
10355 +if test "X${PATH_SEPARATOR+set}" != Xset; then
10356 + UNAME=${UNAME-`uname 2>/dev/null`}
10357 + case X$UNAME in
10358 + *-DOS) lt_cv_sys_path_separator=';' ;;
10359 + *) lt_cv_sys_path_separator=':' ;;
10360 + esac
10361 +fi
10364 +# Check that we are running under the correct shell.
10365 +SHELL=${CONFIG_SHELL-/bin/sh}
10367 +case X$ECHO in
10368 +X*--fallback-echo)
10369 + # Remove one level of quotation (which was required for Make).
10370 + ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
10371 + ;;
10372 +esac
10374 +echo=${ECHO-echo}
10375 +if test "X$1" = X--no-reexec; then
10376 + # Discard the --no-reexec flag, and continue.
10377 + shift
10378 +elif test "X$1" = X--fallback-echo; then
10379 + # Avoid inline document here, it may be left over
10380 + :
10381 +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
10382 + # Yippee, $echo works!
10383 + :
10384 +else
10385 + # Restart under the correct shell.
10386 + exec $SHELL "$0" --no-reexec ${1+"$@"}
10387 +fi
10389 +if test "X$1" = X--fallback-echo; then
10390 + # used as fallback echo
10391 + shift
10392 + cat <<EOF
10394 +EOF
10395 + exit 0
10396 +fi
10398 +# The HP-UX ksh and POSIX shell print the target directory to stdout
10399 +# if CDPATH is set.
10400 +if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
10402 +if test -z "$ECHO"; then
10403 +if test "X${echo_test_string+set}" != Xset; then
10404 +# find a string as large as possible, as long as the shell can cope with it
10405 + for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
10406 + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
10407 + if (echo_test_string="`eval $cmd`") 2>/dev/null &&
10408 + echo_test_string="`eval $cmd`" &&
10409 + (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
10410 + then
10411 + break
10412 + fi
10413 + done
10414 +fi
10416 +if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
10417 + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
10418 + test "X$echo_testing_string" = "X$echo_test_string"; then
10419 + :
10420 +else
10421 + # The Solaris, AIX, and Digital Unix default echo programs unquote
10422 + # backslashes. This makes it impossible to quote backslashes using
10423 + # echo "$something" | sed 's/\\/\\\\/g'
10424 + #
10425 + # So, first we look for a working echo in the user's PATH.
10427 + IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
10428 + for dir in $PATH /usr/ucb; do
10429 + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
10430 + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
10431 + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
10432 + test "X$echo_testing_string" = "X$echo_test_string"; then
10433 + echo="$dir/echo"
10434 + break
10435 + fi
10436 + done
10437 + IFS="$save_ifs"
10439 + if test "X$echo" = Xecho; then
10440 + # We didn't find a better echo, so look for alternatives.
10441 + if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
10442 + echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
10443 + test "X$echo_testing_string" = "X$echo_test_string"; then
10444 + # This shell has a builtin print -r that does the trick.
10445 + echo='print -r'
10446 + elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
10447 + test "X$CONFIG_SHELL" != X/bin/ksh; then
10448 + # If we have ksh, try running configure again with it.
10449 + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
10450 + export ORIGINAL_CONFIG_SHELL
10451 + CONFIG_SHELL=/bin/ksh
10452 + export CONFIG_SHELL
10453 + exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
10454 + else
10455 + # Try using printf.
10456 + echo='printf %s\n'
10457 + if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
10458 + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
10459 + test "X$echo_testing_string" = "X$echo_test_string"; then
10460 + # Cool, printf works
10461 + :
10462 + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
10463 + test "X$echo_testing_string" = 'X\t' &&
10464 + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
10465 + test "X$echo_testing_string" = "X$echo_test_string"; then
10466 + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
10467 + export CONFIG_SHELL
10468 + SHELL="$CONFIG_SHELL"
10469 + export SHELL
10470 + echo="$CONFIG_SHELL $0 --fallback-echo"
10471 + elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
10472 + test "X$echo_testing_string" = 'X\t' &&
10473 + echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
10474 + test "X$echo_testing_string" = "X$echo_test_string"; then
10475 + echo="$CONFIG_SHELL $0 --fallback-echo"
10476 + else
10477 + # maybe with a smaller string...
10478 + prev=:
10480 + for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
10481 + if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
10482 + then
10483 + break
10484 + fi
10485 + prev="$cmd"
10486 + done
10488 + if test "$prev" != 'sed 50q "$0"'; then
10489 + echo_test_string=`eval $prev`
10490 + export echo_test_string
10491 + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
10492 + else
10493 + # Oops. We lost completely, so just stick with echo.
10494 + echo=echo
10495 + fi
10496 + fi
10497 + fi
10498 + fi
10499 +fi
10500 +fi
10502 +# Copy echo and quote the copy suitably for passing to libtool from
10503 +# the Makefile, instead of quoting the original, which is used later.
10504 +ECHO=$echo
10505 +if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
10506 + ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
10507 +fi
10511 # Name of the host.
10512 @@ -399,6 +411,7 @@
10513 # Initializations.
10515 ac_default_prefix=/usr/local
10516 +ac_config_libobj_dir=.
10517 cross_compiling=no
10518 subdirs=
10519 MFLAGS=
10520 @@ -455,6 +468,8 @@
10521 # include <unistd.h>
10522 #endif"
10524 +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 PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE TOP SPINCLUDEDIR SPLIBDIR build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S CXX CXXFLAGS ac_ct_CXX PERL SED CPP EGREP LIB_THREADS CXXCPP ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP LIBTOOL LIBTOOL_DEPS LINKFLAGS LIBOBJS LTLIBOBJS'
10525 +ac_subst_files=''
10527 # Initialize some variables set by options.
10528 ac_init_help=
10529 @@ -812,7 +827,7 @@
10531 # Be sure to have absolute paths.
10532 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
10533 - localstatedir libdir includedir oldincludedir infodir mandir
10534 + localstatedir libdir includedir oldincludedir infodir mandir
10535 do
10536 eval ac_val=$`echo $ac_var`
10537 case $ac_val in
10538 @@ -852,10 +867,10 @@
10539 # Try the directory containing this script, then its parent.
10540 ac_confdir=`(dirname "$0") 2>/dev/null ||
10541 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10542 - X"$0" : 'X\(//\)[^/]' \| \
10543 - X"$0" : 'X\(//\)$' \| \
10544 - X"$0" : 'X\(/\)' \| \
10545 - . : '\(.\)' 2>/dev/null ||
10546 + X"$0" : 'X\(//\)[^/]' \| \
10547 + X"$0" : 'X\(//\)$' \| \
10548 + X"$0" : 'X\(/\)' \| \
10549 + . : '\(.\)' 2>/dev/null ||
10550 echo X"$0" |
10551 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10552 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10553 @@ -878,6 +893,9 @@
10554 { (exit 1); exit 1; }; }
10555 fi
10556 fi
10557 +(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
10558 + { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
10559 + { (exit 1); exit 1; }; }
10560 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
10561 ac_env_build_alias_set=${build_alias+set}
10562 ac_env_build_alias_value=$build_alias
10563 @@ -956,9 +974,9 @@
10564 cat <<_ACEOF
10565 Installation directories:
10566 --prefix=PREFIX install architecture-independent files in PREFIX
10567 - [$ac_default_prefix]
10568 + [$ac_default_prefix]
10569 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
10570 - [PREFIX]
10571 + [PREFIX]
10573 By default, \`make install' will install all the files in
10574 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
10575 @@ -1073,12 +1091,45 @@
10576 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10577 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10578 esac
10579 -# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10580 -# absolute.
10581 -ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10582 -ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
10583 -ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10584 -ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10586 +# Do not use `cd foo && pwd` to compute absolute paths, because
10587 +# the directories may not exist.
10588 +case `pwd` in
10589 +.) ac_abs_builddir="$ac_dir";;
10590 +*)
10591 + case "$ac_dir" in
10592 + .) ac_abs_builddir=`pwd`;;
10593 + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10594 + *) ac_abs_builddir=`pwd`/"$ac_dir";;
10595 + esac;;
10596 +esac
10597 +case $ac_abs_builddir in
10598 +.) ac_abs_top_builddir=${ac_top_builddir}.;;
10599 +*)
10600 + case ${ac_top_builddir}. in
10601 + .) ac_abs_top_builddir=$ac_abs_builddir;;
10602 + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10603 + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10604 + esac;;
10605 +esac
10606 +case $ac_abs_builddir in
10607 +.) ac_abs_srcdir=$ac_srcdir;;
10608 +*)
10609 + case $ac_srcdir in
10610 + .) ac_abs_srcdir=$ac_abs_builddir;;
10611 + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10612 + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10613 + esac;;
10614 +esac
10615 +case $ac_abs_builddir in
10616 +.) ac_abs_top_srcdir=$ac_top_srcdir;;
10617 +*)
10618 + case $ac_top_srcdir in
10619 + .) ac_abs_top_srcdir=$ac_abs_builddir;;
10620 + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10621 + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10622 + esac;;
10623 +esac
10625 cd $ac_dir
10626 # Check for guested configure; otherwise get Cygnus style configure.
10627 @@ -1089,13 +1140,13 @@
10628 echo
10629 $SHELL $ac_srcdir/configure --help=recursive
10630 elif test -f $ac_srcdir/configure.ac ||
10631 - test -f $ac_srcdir/configure.in; then
10632 + test -f $ac_srcdir/configure.in; then
10633 echo
10634 $ac_configure --help
10635 else
10636 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
10637 fi
10638 - cd $ac_popdir
10639 + cd "$ac_popdir"
10640 done
10641 fi
10643 @@ -1103,8 +1154,7 @@
10644 if $ac_init_version; then
10645 cat <<\_ACEOF
10647 -Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
10648 -Free Software Foundation, Inc.
10649 +Copyright (C) 2003 Free Software Foundation, Inc.
10650 This configure script is free software; the Free Software Foundation
10651 gives unlimited permission to copy, distribute and modify it.
10652 _ACEOF
10653 @@ -1116,7 +1166,7 @@
10654 running configure, to aid debugging if configure makes a mistake.
10656 It was created by $as_me, which was
10657 -generated by GNU Autoconf 2.53. Invocation command line was
10658 +generated by GNU Autoconf 2.59. Invocation command line was
10660 $ $0 $@
10662 @@ -1168,27 +1218,54 @@
10664 # Keep a trace of the command line.
10665 # Strip out --no-create and --no-recursion so they do not pile up.
10666 +# Strip out --silent because we don't want to record it for future runs.
10667 # Also quote any args containing shell meta-characters.
10668 +# Make two passes to allow for proper duplicate-argument suppression.
10669 ac_configure_args=
10670 +ac_configure_args0=
10671 +ac_configure_args1=
10672 ac_sep=
10673 -for ac_arg
10674 +ac_must_keep_next=false
10675 +for ac_pass in 1 2
10676 do
10677 - case $ac_arg in
10678 - -no-create | --no-create | --no-creat | --no-crea | --no-cre \
10679 - | --no-cr | --no-c | -n ) continue ;;
10680 - -no-recursion | --no-recursion | --no-recursio | --no-recursi \
10681 - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
10682 - continue ;;
10683 - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
10684 - ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10685 - esac
10686 - case " $ac_configure_args " in
10687 - *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
10688 - *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
10689 - ac_sep=" " ;;
10690 - esac
10691 - # Get rid of the leading space.
10692 + for ac_arg
10693 + do
10694 + case $ac_arg in
10695 + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
10696 + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10697 + | -silent | --silent | --silen | --sile | --sil)
10698 + continue ;;
10699 + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
10700 + ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10701 + esac
10702 + case $ac_pass in
10703 + 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
10704 + 2)
10705 + ac_configure_args1="$ac_configure_args1 '$ac_arg'"
10706 + if test $ac_must_keep_next = true; then
10707 + ac_must_keep_next=false # Got value, back to normal.
10708 + else
10709 + case $ac_arg in
10710 + *=* | --config-cache | -C | -disable-* | --disable-* \
10711 + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
10712 + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
10713 + | -with-* | --with-* | -without-* | --without-* | --x)
10714 + case "$ac_configure_args0 " in
10715 + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
10716 + esac
10717 + ;;
10718 + -* ) ac_must_keep_next=true ;;
10719 + esac
10720 + fi
10721 + ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
10722 + # Get rid of the leading space.
10723 + ac_sep=" "
10724 + ;;
10725 + esac
10726 + done
10727 done
10728 +$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
10729 +$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
10731 # When interrupted or exit'd, cleanup temporary files, and complete
10732 # config.log. We remove comments because anyway the quotes in there
10733 @@ -1199,6 +1276,7 @@
10734 # Save into config.log some information that might help in debugging.
10736 echo
10738 cat <<\_ASBOX
10739 ## ---------------- ##
10740 ## Cache variables. ##
10741 @@ -1211,16 +1289,45 @@
10742 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
10743 *ac_space=\ *)
10744 sed -n \
10745 - "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
10746 - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
10747 + "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
10748 + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
10749 ;;
10750 *)
10751 sed -n \
10752 - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10753 + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10754 ;;
10755 esac;
10757 echo
10759 + cat <<\_ASBOX
10760 +## ----------------- ##
10761 +## Output variables. ##
10762 +## ----------------- ##
10763 +_ASBOX
10764 + echo
10765 + for ac_var in $ac_subst_vars
10766 + do
10767 + eval ac_val=$`echo $ac_var`
10768 + echo "$ac_var='"'"'$ac_val'"'"'"
10769 + done | sort
10770 + echo
10772 + if test -n "$ac_subst_files"; then
10773 + cat <<\_ASBOX
10774 +## ------------- ##
10775 +## Output files. ##
10776 +## ------------- ##
10777 +_ASBOX
10778 + echo
10779 + for ac_var in $ac_subst_files
10780 + do
10781 + eval ac_val=$`echo $ac_var`
10782 + echo "$ac_var='"'"'$ac_val'"'"'"
10783 + done | sort
10784 + echo
10785 + fi
10787 if test -s confdefs.h; then
10788 cat <<\_ASBOX
10789 ## ----------- ##
10790 @@ -1228,14 +1335,14 @@
10791 ## ----------- ##
10792 _ASBOX
10793 echo
10794 - sed "/^$/d" confdefs.h
10795 + sed "/^$/d" confdefs.h | sort
10796 echo
10797 fi
10798 test "$ac_signal" != 0 &&
10799 echo "$as_me: caught signal $ac_signal"
10800 echo "$as_me: exit $exit_status"
10801 } >&5
10802 - rm -f core core.* *.core &&
10803 + rm -f core *.core &&
10804 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
10805 exit $exit_status
10806 ' 0
10807 @@ -1315,7 +1422,7 @@
10808 # value.
10809 ac_cache_corrupted=false
10810 for ac_var in `(set) 2>&1 |
10811 - sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
10812 + sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
10813 eval ac_old_set=\$ac_cv_env_${ac_var}_set
10814 eval ac_new_set=\$ac_env_${ac_var}_set
10815 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
10816 @@ -1332,13 +1439,13 @@
10817 ,);;
10818 *)
10819 if test "x$ac_old_val" != "x$ac_new_val"; then
10820 - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
10821 + { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
10822 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
10823 - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
10824 + { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
10825 echo "$as_me: former value: $ac_old_val" >&2;}
10826 - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
10827 + { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
10828 echo "$as_me: current value: $ac_new_val" >&2;}
10829 - ac_cache_corrupted=:
10830 + ac_cache_corrupted=:
10831 fi;;
10832 esac
10833 # Pass precious variables to config.status.
10834 @@ -1385,6 +1492,7 @@
10839 ac_aux_dir=
10840 for ac_dir in config $srcdir/config; do
10841 if test -f $ac_dir/install-sh; then
10842 @@ -1421,6 +1529,7 @@
10843 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10844 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
10845 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10846 +# OS/2's system install, which has a completely different semantic
10847 # ./install, which can be erroneously created by make from ./install.sh.
10848 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10849 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
10850 @@ -1437,6 +1546,7 @@
10851 case $as_dir/ in
10852 ./ | .// | /cC/* | \
10853 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10854 + ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
10855 /usr/ucb/* ) ;;
10856 *)
10857 # OSF1 and SCO ODT 3.0 have their own names for install.
10858 @@ -1444,20 +1554,20 @@
10859 # by default.
10860 for ac_prog in ginstall scoinst install; do
10861 for ac_exec_ext in '' $ac_executable_extensions; do
10862 - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
10863 - if test $ac_prog = install &&
10864 - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10865 - # AIX install. It has an incompatible calling convention.
10866 - :
10867 - elif test $ac_prog = install &&
10868 - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10869 - # program-specific install script used by HP pwplus--don't use.
10870 - :
10871 - else
10872 - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10873 - break 3
10874 - fi
10875 - fi
10876 + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
10877 + if test $ac_prog = install &&
10878 + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10879 + # AIX install. It has an incompatible calling convention.
10880 + :
10881 + elif test $ac_prog = install &&
10882 + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10883 + # program-specific install script used by HP pwplus--don't use.
10884 + :
10885 + else
10886 + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10887 + break 3
10888 + fi
10889 + fi
10890 done
10891 done
10892 ;;
10893 @@ -1545,15 +1655,15 @@
10894 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
10895 rm conftest.sed
10897 -echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
10898 -echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
10899 -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
10900 +echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10901 +echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
10902 +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
10903 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
10904 echo $ECHO_N "(cached) $ECHO_C" >&6
10905 else
10906 cat >conftest.make <<\_ACEOF
10907 all:
10908 - @echo 'ac_maketemp="${MAKE}"'
10909 + @echo 'ac_maketemp="$(MAKE)"'
10910 _ACEOF
10911 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10912 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
10913 @@ -1751,9 +1861,6 @@
10914 /usr/local/include/OpenSP) osplibdir=/usr/local/lib ;;
10915 *) osplibdir=/usr/lib ;;
10916 esac
10917 -# On PPC64 libosp is to be found in /usr/lib64; thus
10918 -# fall back to this directory
10919 -test -d ${osplibdir}64 && osplibdir=${osplibdir}64
10920 echo "$as_me:$LINENO: checking location of OpenSP Library" >&5
10921 echo $ECHO_N "checking location of OpenSP Library... $ECHO_C" >&6
10922 # Check whether --enable-splibdir or --disable-splibdir was given.
10923 @@ -2048,9 +2155,7 @@
10924 # However, it has the same basename, so the bogon will be chosen
10925 # first if we set CC to just the basename; use the full file name.
10926 shift
10927 - set dummy "$as_dir/$ac_word" ${1+"$@"}
10928 - shift
10929 - ac_cv_prog_CC="$@"
10930 + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10931 fi
10932 fi
10933 fi
10934 @@ -2155,8 +2260,10 @@
10935 fi
10938 -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
10939 -echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
10940 +test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10941 +See \`config.log' for more details." >&5
10942 +echo "$as_me: error: no acceptable C compiler found in \$PATH
10943 +See \`config.log' for more details." >&2;}
10944 { (exit 1); exit 1; }; }
10946 # Provide some information about the compiler.
10947 @@ -2180,15 +2287,12 @@
10948 (exit $ac_status); }
10950 cat >conftest.$ac_ext <<_ACEOF
10951 -#line $LINENO "configure"
10952 -#include "confdefs.h"
10953 +/* confdefs.h. */
10954 +_ACEOF
10955 +cat confdefs.h >>conftest.$ac_ext
10956 +cat >>conftest.$ac_ext <<_ACEOF
10957 +/* end confdefs.h. */
10959 -#ifdef F77_DUMMY_MAIN
10960 -# ifdef __cplusplus
10961 - extern "C"
10962 -# endif
10963 - int F77_DUMMY_MAIN() { return 1; }
10964 -#endif
10965 int
10966 main ()
10968 @@ -2198,12 +2302,12 @@
10970 _ACEOF
10971 ac_clean_files_save=$ac_clean_files
10972 -ac_clean_files="$ac_clean_files a.out a.exe"
10973 +ac_clean_files="$ac_clean_files a.out a.exe b.out"
10974 # Try to create an executable without -o first, disregard a.out.
10975 # It will help us diagnose broken compilers, and finding out an intuition
10976 # of exeext.
10977 -echo "$as_me:$LINENO: checking for C compiler default output" >&5
10978 -echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
10979 +echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10980 +echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
10981 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10982 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10983 (eval $ac_link_default) 2>&5
10984 @@ -2217,26 +2321,39 @@
10985 # Be careful to initialize this variable, since it used to be cached.
10986 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10987 ac_cv_exeext=
10988 -for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
10989 - ls a.out conftest 2>/dev/null;
10990 - ls a.* conftest.* 2>/dev/null`; do
10991 +# b.out is created by i960 compilers.
10992 +for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10993 +do
10994 + test -f "$ac_file" || continue
10995 case $ac_file in
10996 - *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
10997 - a.out ) # We found the default executable, but exeext='' is most
10998 - # certainly right.
10999 - break;;
11000 - *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11001 - # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
11002 - export ac_cv_exeext
11003 - break;;
11004 - * ) break;;
11005 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
11006 + ;;
11007 + conftest.$ac_ext )
11008 + # This is the source file.
11009 + ;;
11010 + [ab].out )
11011 + # We found the default executable, but exeext='' is most
11012 + # certainly right.
11013 + break;;
11014 + *.* )
11015 + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11016 + # FIXME: I believe we export ac_cv_exeext for Libtool,
11017 + # but it would be cool to find out if it's true. Does anybody
11018 + # maintain Libtool? --akim.
11019 + export ac_cv_exeext
11020 + break;;
11021 + * )
11022 + break;;
11023 esac
11024 done
11025 else
11026 echo "$as_me: failed program was:" >&5
11027 -cat conftest.$ac_ext >&5
11028 -{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
11029 -echo "$as_me: error: C compiler cannot create executables" >&2;}
11030 +sed 's/^/| /' conftest.$ac_ext >&5
11032 +{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11033 +See \`config.log' for more details." >&5
11034 +echo "$as_me: error: C compiler cannot create executables
11035 +See \`config.log' for more details." >&2;}
11036 { (exit 77); exit 77; }; }
11037 fi
11039 @@ -2263,9 +2380,11 @@
11040 cross_compiling=yes
11041 else
11042 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11043 -If you meant to cross compile, use \`--host'." >&5
11044 +If you meant to cross compile, use \`--host'.
11045 +See \`config.log' for more details." >&5
11046 echo "$as_me: error: cannot run C compiled programs.
11047 -If you meant to cross compile, use \`--host'." >&2;}
11048 +If you meant to cross compile, use \`--host'.
11049 +See \`config.log' for more details." >&2;}
11050 { (exit 1); exit 1; }; }
11051 fi
11052 fi
11053 @@ -2273,7 +2392,7 @@
11054 echo "$as_me:$LINENO: result: yes" >&5
11055 echo "${ECHO_T}yes" >&6
11057 -rm -f a.out a.exe conftest$ac_cv_exeext
11058 +rm -f a.out a.exe conftest$ac_cv_exeext b.out
11059 ac_clean_files=$ac_clean_files_save
11060 # Check the compiler produces executables we can run. If not, either
11061 # the compiler is broken, or we cross compile.
11062 @@ -2293,18 +2412,21 @@
11063 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
11064 # work properly (i.e., refer to `conftest.exe'), while it won't with
11065 # `rm'.
11066 -for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
11067 +for ac_file in conftest.exe conftest conftest.*; do
11068 + test -f "$ac_file" || continue
11069 case $ac_file in
11070 - *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
11071 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11072 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11073 - export ac_cv_exeext
11074 - break;;
11075 + export ac_cv_exeext
11076 + break;;
11077 * ) break;;
11078 esac
11079 done
11080 else
11081 - { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
11082 -echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
11083 + { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11084 +See \`config.log' for more details." >&5
11085 +echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11086 +See \`config.log' for more details." >&2;}
11087 { (exit 1); exit 1; }; }
11088 fi
11090 @@ -2321,15 +2443,12 @@
11091 echo $ECHO_N "(cached) $ECHO_C" >&6
11092 else
11093 cat >conftest.$ac_ext <<_ACEOF
11094 -#line $LINENO "configure"
11095 -#include "confdefs.h"
11096 +/* confdefs.h. */
11097 +_ACEOF
11098 +cat confdefs.h >>conftest.$ac_ext
11099 +cat >>conftest.$ac_ext <<_ACEOF
11100 +/* end confdefs.h. */
11102 -#ifdef F77_DUMMY_MAIN
11103 -# ifdef __cplusplus
11104 - extern "C"
11105 -# endif
11106 - int F77_DUMMY_MAIN() { return 1; }
11107 -#endif
11108 int
11109 main ()
11111 @@ -2346,16 +2465,19 @@
11112 (exit $ac_status); }; then
11113 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11114 case $ac_file in
11115 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
11116 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11117 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11118 break;;
11119 esac
11120 done
11121 else
11122 echo "$as_me: failed program was:" >&5
11123 -cat conftest.$ac_ext >&5
11124 -{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
11125 -echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
11126 +sed 's/^/| /' conftest.$ac_ext >&5
11128 +{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11129 +See \`config.log' for more details." >&5
11130 +echo "$as_me: error: cannot compute suffix of object files: cannot compile
11131 +See \`config.log' for more details." >&2;}
11132 { (exit 1); exit 1; }; }
11133 fi
11135 @@ -2371,15 +2493,12 @@
11136 echo $ECHO_N "(cached) $ECHO_C" >&6
11137 else
11138 cat >conftest.$ac_ext <<_ACEOF
11139 -#line $LINENO "configure"
11140 -#include "confdefs.h"
11141 +/* confdefs.h. */
11142 +_ACEOF
11143 +cat confdefs.h >>conftest.$ac_ext
11144 +cat >>conftest.$ac_ext <<_ACEOF
11145 +/* end confdefs.h. */
11147 -#ifdef F77_DUMMY_MAIN
11148 -# ifdef __cplusplus
11149 - extern "C"
11150 -# endif
11151 - int F77_DUMMY_MAIN() { return 1; }
11152 -#endif
11153 int
11154 main ()
11156 @@ -2393,11 +2512,20 @@
11157 _ACEOF
11158 rm -f conftest.$ac_objext
11159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11160 - (eval $ac_compile) 2>&5
11161 + (eval $ac_compile) 2>conftest.er1
11162 ac_status=$?
11163 + grep -v '^ *+' conftest.er1 >conftest.err
11164 + rm -f conftest.er1
11165 + cat conftest.err >&5
11166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167 (exit $ac_status); } &&
11168 - { ac_try='test -s conftest.$ac_objext'
11169 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11170 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11171 + (eval $ac_try) 2>&5
11172 + ac_status=$?
11173 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174 + (exit $ac_status); }; } &&
11175 + { ac_try='test -s conftest.$ac_objext'
11176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11177 (eval $ac_try) 2>&5
11178 ac_status=$?
11179 @@ -2406,10 +2534,11 @@
11180 ac_compiler_gnu=yes
11181 else
11182 echo "$as_me: failed program was:" >&5
11183 -cat conftest.$ac_ext >&5
11184 +sed 's/^/| /' conftest.$ac_ext >&5
11186 ac_compiler_gnu=no
11187 fi
11188 -rm -f conftest.$ac_objext conftest.$ac_ext
11189 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11190 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11192 fi
11193 @@ -2425,15 +2554,12 @@
11194 echo $ECHO_N "(cached) $ECHO_C" >&6
11195 else
11196 cat >conftest.$ac_ext <<_ACEOF
11197 -#line $LINENO "configure"
11198 -#include "confdefs.h"
11199 +/* confdefs.h. */
11200 +_ACEOF
11201 +cat confdefs.h >>conftest.$ac_ext
11202 +cat >>conftest.$ac_ext <<_ACEOF
11203 +/* end confdefs.h. */
11205 -#ifdef F77_DUMMY_MAIN
11206 -# ifdef __cplusplus
11207 - extern "C"
11208 -# endif
11209 - int F77_DUMMY_MAIN() { return 1; }
11210 -#endif
11211 int
11212 main ()
11214 @@ -2444,11 +2570,20 @@
11215 _ACEOF
11216 rm -f conftest.$ac_objext
11217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11218 - (eval $ac_compile) 2>&5
11219 + (eval $ac_compile) 2>conftest.er1
11220 ac_status=$?
11221 + grep -v '^ *+' conftest.er1 >conftest.err
11222 + rm -f conftest.er1
11223 + cat conftest.err >&5
11224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225 (exit $ac_status); } &&
11226 - { ac_try='test -s conftest.$ac_objext'
11227 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11228 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11229 + (eval $ac_try) 2>&5
11230 + ac_status=$?
11231 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 + (exit $ac_status); }; } &&
11233 + { ac_try='test -s conftest.$ac_objext'
11234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11235 (eval $ac_try) 2>&5
11236 ac_status=$?
11237 @@ -2457,10 +2592,11 @@
11238 ac_cv_prog_cc_g=yes
11239 else
11240 echo "$as_me: failed program was:" >&5
11241 -cat conftest.$ac_ext >&5
11242 +sed 's/^/| /' conftest.$ac_ext >&5
11244 ac_cv_prog_cc_g=no
11245 fi
11246 -rm -f conftest.$ac_objext conftest.$ac_ext
11247 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11248 fi
11249 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11250 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11251 @@ -2479,6 +2615,120 @@
11252 CFLAGS=
11253 fi
11254 fi
11255 +echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11256 +echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11257 +if test "${ac_cv_prog_cc_stdc+set}" = set; then
11258 + echo $ECHO_N "(cached) $ECHO_C" >&6
11259 +else
11260 + ac_cv_prog_cc_stdc=no
11261 +ac_save_CC=$CC
11262 +cat >conftest.$ac_ext <<_ACEOF
11263 +/* confdefs.h. */
11264 +_ACEOF
11265 +cat confdefs.h >>conftest.$ac_ext
11266 +cat >>conftest.$ac_ext <<_ACEOF
11267 +/* end confdefs.h. */
11268 +#include <stdarg.h>
11269 +#include <stdio.h>
11270 +#include <sys/types.h>
11271 +#include <sys/stat.h>
11272 +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11273 +struct buf { int x; };
11274 +FILE * (*rcsopen) (struct buf *, struct stat *, int);
11275 +static char *e (p, i)
11276 + char **p;
11277 + int i;
11278 +{
11279 + return p[i];
11280 +}
11281 +static char *f (char * (*g) (char **, int), char **p, ...)
11282 +{
11283 + char *s;
11284 + va_list v;
11285 + va_start (v,p);
11286 + s = g (p, va_arg (v,int));
11287 + va_end (v);
11288 + return s;
11289 +}
11291 +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11292 + function prototypes and stuff, but not '\xHH' hex character constants.
11293 + These don't provoke an error unfortunately, instead are silently treated
11294 + as 'x'. The following induces an error, until -std1 is added to get
11295 + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11296 + array size at least. It's necessary to write '\x00'==0 to get something
11297 + that's true only with -std1. */
11298 +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11300 +int test (int i, double x);
11301 +struct s1 {int (*f) (int a);};
11302 +struct s2 {int (*f) (double a);};
11303 +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11304 +int argc;
11305 +char **argv;
11306 +int
11307 +main ()
11308 +{
11309 +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11310 + ;
11311 + return 0;
11312 +}
11313 +_ACEOF
11314 +# Don't try gcc -ansi; that turns off useful extensions and
11315 +# breaks some systems' header files.
11316 +# AIX -qlanglvl=ansi
11317 +# Ultrix and OSF/1 -std1
11318 +# HP-UX 10.20 and later -Ae
11319 +# HP-UX older versions -Aa -D_HPUX_SOURCE
11320 +# SVR4 -Xc -D__EXTENSIONS__
11321 +for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11322 +do
11323 + CC="$ac_save_CC $ac_arg"
11324 + rm -f conftest.$ac_objext
11325 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11326 + (eval $ac_compile) 2>conftest.er1
11327 + ac_status=$?
11328 + grep -v '^ *+' conftest.er1 >conftest.err
11329 + rm -f conftest.er1
11330 + cat conftest.err >&5
11331 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 + (exit $ac_status); } &&
11333 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11334 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11335 + (eval $ac_try) 2>&5
11336 + ac_status=$?
11337 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 + (exit $ac_status); }; } &&
11339 + { ac_try='test -s conftest.$ac_objext'
11340 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11341 + (eval $ac_try) 2>&5
11342 + ac_status=$?
11343 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344 + (exit $ac_status); }; }; then
11345 + ac_cv_prog_cc_stdc=$ac_arg
11346 +break
11347 +else
11348 + echo "$as_me: failed program was:" >&5
11349 +sed 's/^/| /' conftest.$ac_ext >&5
11351 +fi
11352 +rm -f conftest.err conftest.$ac_objext
11353 +done
11354 +rm -f conftest.$ac_ext conftest.$ac_objext
11355 +CC=$ac_save_CC
11357 +fi
11359 +case "x$ac_cv_prog_cc_stdc" in
11360 + x|xno)
11361 + echo "$as_me:$LINENO: result: none needed" >&5
11362 +echo "${ECHO_T}none needed" >&6 ;;
11363 + *)
11364 + echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11365 +echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11366 + CC="$CC $ac_cv_prog_cc_stdc" ;;
11367 +esac
11369 # Some people use a C++ compiler to compile C. Since we use `exit',
11370 # in C++ we need to declare it. In case someone uses the same compiler
11371 # for both compiling C and C++ we need to have the C++ compiler decide
11372 @@ -2490,19 +2740,27 @@
11373 _ACEOF
11374 rm -f conftest.$ac_objext
11375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11376 - (eval $ac_compile) 2>&5
11377 + (eval $ac_compile) 2>conftest.er1
11378 ac_status=$?
11379 + grep -v '^ *+' conftest.er1 >conftest.err
11380 + rm -f conftest.er1
11381 + cat conftest.err >&5
11382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383 (exit $ac_status); } &&
11384 - { ac_try='test -s conftest.$ac_objext'
11385 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11386 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11387 + (eval $ac_try) 2>&5
11388 + ac_status=$?
11389 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390 + (exit $ac_status); }; } &&
11391 + { ac_try='test -s conftest.$ac_objext'
11392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11393 (eval $ac_try) 2>&5
11394 ac_status=$?
11395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396 (exit $ac_status); }; }; then
11397 for ac_declaration in \
11398 - ''\
11399 - '#include <stdlib.h>' \
11400 + '' \
11401 'extern "C" void std::exit (int) throw (); using std::exit;' \
11402 'extern "C" void std::exit (int); using std::exit;' \
11403 'extern "C" void exit (int) throw ();' \
11404 @@ -2510,16 +2768,13 @@
11405 'void exit (int);'
11406 do
11407 cat >conftest.$ac_ext <<_ACEOF
11408 -#line $LINENO "configure"
11409 -#include "confdefs.h"
11410 -#include <stdlib.h>
11411 +/* confdefs.h. */
11412 +_ACEOF
11413 +cat confdefs.h >>conftest.$ac_ext
11414 +cat >>conftest.$ac_ext <<_ACEOF
11415 +/* end confdefs.h. */
11416 $ac_declaration
11417 -#ifdef F77_DUMMY_MAIN
11418 -# ifdef __cplusplus
11419 - extern "C"
11420 -# endif
11421 - int F77_DUMMY_MAIN() { return 1; }
11422 -#endif
11423 +#include <stdlib.h>
11424 int
11425 main ()
11427 @@ -2530,11 +2785,20 @@
11428 _ACEOF
11429 rm -f conftest.$ac_objext
11430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11431 - (eval $ac_compile) 2>&5
11432 + (eval $ac_compile) 2>conftest.er1
11433 ac_status=$?
11434 + grep -v '^ *+' conftest.er1 >conftest.err
11435 + rm -f conftest.er1
11436 + cat conftest.err >&5
11437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438 (exit $ac_status); } &&
11439 - { ac_try='test -s conftest.$ac_objext'
11440 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11441 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11442 + (eval $ac_try) 2>&5
11443 + ac_status=$?
11444 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 + (exit $ac_status); }; } &&
11446 + { ac_try='test -s conftest.$ac_objext'
11447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11448 (eval $ac_try) 2>&5
11449 ac_status=$?
11450 @@ -2543,20 +2807,18 @@
11452 else
11453 echo "$as_me: failed program was:" >&5
11454 -cat conftest.$ac_ext >&5
11455 +sed 's/^/| /' conftest.$ac_ext >&5
11457 continue
11458 fi
11459 -rm -f conftest.$ac_objext conftest.$ac_ext
11460 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11461 cat >conftest.$ac_ext <<_ACEOF
11462 -#line $LINENO "configure"
11463 -#include "confdefs.h"
11464 +/* confdefs.h. */
11465 +_ACEOF
11466 +cat confdefs.h >>conftest.$ac_ext
11467 +cat >>conftest.$ac_ext <<_ACEOF
11468 +/* end confdefs.h. */
11469 $ac_declaration
11470 -#ifdef F77_DUMMY_MAIN
11471 -# ifdef __cplusplus
11472 - extern "C"
11473 -# endif
11474 - int F77_DUMMY_MAIN() { return 1; }
11475 -#endif
11476 int
11477 main ()
11479 @@ -2567,11 +2829,20 @@
11480 _ACEOF
11481 rm -f conftest.$ac_objext
11482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11483 - (eval $ac_compile) 2>&5
11484 + (eval $ac_compile) 2>conftest.er1
11485 ac_status=$?
11486 + grep -v '^ *+' conftest.er1 >conftest.err
11487 + rm -f conftest.er1
11488 + cat conftest.err >&5
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); } &&
11491 - { ac_try='test -s conftest.$ac_objext'
11492 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11493 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11494 + (eval $ac_try) 2>&5
11495 + ac_status=$?
11496 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 + (exit $ac_status); }; } &&
11498 + { ac_try='test -s conftest.$ac_objext'
11499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500 (eval $ac_try) 2>&5
11501 ac_status=$?
11502 @@ -2580,9 +2851,10 @@
11503 break
11504 else
11505 echo "$as_me: failed program was:" >&5
11506 -cat conftest.$ac_ext >&5
11507 +sed 's/^/| /' conftest.$ac_ext >&5
11509 fi
11510 -rm -f conftest.$ac_objext conftest.$ac_ext
11511 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11512 done
11513 rm -f conftest*
11514 if test -n "$ac_declaration"; then
11515 @@ -2593,9 +2865,10 @@
11517 else
11518 echo "$as_me: failed program was:" >&5
11519 -cat conftest.$ac_ext >&5
11520 +sed 's/^/| /' conftest.$ac_ext >&5
11522 fi
11523 -rm -f conftest.$ac_objext conftest.$ac_ext
11524 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11525 ac_ext=c
11526 ac_cpp='$CPP $CPPFLAGS'
11527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11528 @@ -2613,6 +2886,7 @@
11529 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11530 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11531 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11532 +# OS/2's system install, which has a completely different semantic
11533 # ./install, which can be erroneously created by make from ./install.sh.
11534 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11535 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11536 @@ -2629,6 +2903,7 @@
11537 case $as_dir/ in
11538 ./ | .// | /cC/* | \
11539 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11540 + ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11541 /usr/ucb/* ) ;;
11542 *)
11543 # OSF1 and SCO ODT 3.0 have their own names for install.
11544 @@ -2636,20 +2911,20 @@
11545 # by default.
11546 for ac_prog in ginstall scoinst install; do
11547 for ac_exec_ext in '' $ac_executable_extensions; do
11548 - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11549 - if test $ac_prog = install &&
11550 - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11551 - # AIX install. It has an incompatible calling convention.
11552 - :
11553 - elif test $ac_prog = install &&
11554 - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11555 - # program-specific install script used by HP pwplus--don't use.
11556 - :
11557 - else
11558 - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11559 - break 3
11560 - fi
11561 - fi
11562 + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11563 + if test $ac_prog = install &&
11564 + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11565 + # AIX install. It has an incompatible calling convention.
11566 + :
11567 + elif test $ac_prog = install &&
11568 + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11569 + # program-specific install script used by HP pwplus--don't use.
11570 + :
11571 + else
11572 + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11573 + break 3
11574 + fi
11575 + fi
11576 done
11577 done
11578 ;;
11579 @@ -2809,15 +3084,12 @@
11580 echo $ECHO_N "(cached) $ECHO_C" >&6
11581 else
11582 cat >conftest.$ac_ext <<_ACEOF
11583 -#line $LINENO "configure"
11584 -#include "confdefs.h"
11585 +/* confdefs.h. */
11586 +_ACEOF
11587 +cat confdefs.h >>conftest.$ac_ext
11588 +cat >>conftest.$ac_ext <<_ACEOF
11589 +/* end confdefs.h. */
11591 -#ifdef F77_DUMMY_MAIN
11592 -# ifdef __cplusplus
11593 - extern "C"
11594 -# endif
11595 - int F77_DUMMY_MAIN() { return 1; }
11596 -#endif
11597 int
11598 main ()
11600 @@ -2831,11 +3103,20 @@
11601 _ACEOF
11602 rm -f conftest.$ac_objext
11603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11604 - (eval $ac_compile) 2>&5
11605 + (eval $ac_compile) 2>conftest.er1
11606 ac_status=$?
11607 + grep -v '^ *+' conftest.er1 >conftest.err
11608 + rm -f conftest.er1
11609 + cat conftest.err >&5
11610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611 (exit $ac_status); } &&
11612 - { ac_try='test -s conftest.$ac_objext'
11613 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11614 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11615 + (eval $ac_try) 2>&5
11616 + ac_status=$?
11617 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 + (exit $ac_status); }; } &&
11619 + { ac_try='test -s conftest.$ac_objext'
11620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11621 (eval $ac_try) 2>&5
11622 ac_status=$?
11623 @@ -2844,10 +3125,11 @@
11624 ac_compiler_gnu=yes
11625 else
11626 echo "$as_me: failed program was:" >&5
11627 -cat conftest.$ac_ext >&5
11628 +sed 's/^/| /' conftest.$ac_ext >&5
11630 ac_compiler_gnu=no
11631 fi
11632 -rm -f conftest.$ac_objext conftest.$ac_ext
11633 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11634 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11636 fi
11637 @@ -2863,15 +3145,12 @@
11638 echo $ECHO_N "(cached) $ECHO_C" >&6
11639 else
11640 cat >conftest.$ac_ext <<_ACEOF
11641 -#line $LINENO "configure"
11642 -#include "confdefs.h"
11643 +/* confdefs.h. */
11644 +_ACEOF
11645 +cat confdefs.h >>conftest.$ac_ext
11646 +cat >>conftest.$ac_ext <<_ACEOF
11647 +/* end confdefs.h. */
11649 -#ifdef F77_DUMMY_MAIN
11650 -# ifdef __cplusplus
11651 - extern "C"
11652 -# endif
11653 - int F77_DUMMY_MAIN() { return 1; }
11654 -#endif
11655 int
11656 main ()
11658 @@ -2882,11 +3161,20 @@
11659 _ACEOF
11660 rm -f conftest.$ac_objext
11661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11662 - (eval $ac_compile) 2>&5
11663 + (eval $ac_compile) 2>conftest.er1
11664 ac_status=$?
11665 + grep -v '^ *+' conftest.er1 >conftest.err
11666 + rm -f conftest.er1
11667 + cat conftest.err >&5
11668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669 (exit $ac_status); } &&
11670 - { ac_try='test -s conftest.$ac_objext'
11671 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11672 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11673 + (eval $ac_try) 2>&5
11674 + ac_status=$?
11675 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 + (exit $ac_status); }; } &&
11677 + { ac_try='test -s conftest.$ac_objext'
11678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11679 (eval $ac_try) 2>&5
11680 ac_status=$?
11681 @@ -2895,10 +3183,11 @@
11682 ac_cv_prog_cxx_g=yes
11683 else
11684 echo "$as_me: failed program was:" >&5
11685 -cat conftest.$ac_ext >&5
11686 +sed 's/^/| /' conftest.$ac_ext >&5
11688 ac_cv_prog_cxx_g=no
11689 fi
11690 -rm -f conftest.$ac_objext conftest.$ac_ext
11691 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11692 fi
11693 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11694 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
11695 @@ -2918,8 +3207,7 @@
11696 fi
11697 fi
11698 for ac_declaration in \
11699 - ''\
11700 - '#include <stdlib.h>' \
11701 + '' \
11702 'extern "C" void std::exit (int) throw (); using std::exit;' \
11703 'extern "C" void std::exit (int); using std::exit;' \
11704 'extern "C" void exit (int) throw ();' \
11705 @@ -2927,16 +3215,13 @@
11706 'void exit (int);'
11707 do
11708 cat >conftest.$ac_ext <<_ACEOF
11709 -#line $LINENO "configure"
11710 -#include "confdefs.h"
11711 -#include <stdlib.h>
11712 +/* confdefs.h. */
11713 +_ACEOF
11714 +cat confdefs.h >>conftest.$ac_ext
11715 +cat >>conftest.$ac_ext <<_ACEOF
11716 +/* end confdefs.h. */
11717 $ac_declaration
11718 -#ifdef F77_DUMMY_MAIN
11719 -# ifdef __cplusplus
11720 - extern "C"
11721 -# endif
11722 - int F77_DUMMY_MAIN() { return 1; }
11723 -#endif
11724 +#include <stdlib.h>
11725 int
11726 main ()
11728 @@ -2947,11 +3232,20 @@
11729 _ACEOF
11730 rm -f conftest.$ac_objext
11731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11732 - (eval $ac_compile) 2>&5
11733 + (eval $ac_compile) 2>conftest.er1
11734 ac_status=$?
11735 + grep -v '^ *+' conftest.er1 >conftest.err
11736 + rm -f conftest.er1
11737 + cat conftest.err >&5
11738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739 (exit $ac_status); } &&
11740 - { ac_try='test -s conftest.$ac_objext'
11741 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11742 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11743 + (eval $ac_try) 2>&5
11744 + ac_status=$?
11745 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746 + (exit $ac_status); }; } &&
11747 + { ac_try='test -s conftest.$ac_objext'
11748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11749 (eval $ac_try) 2>&5
11750 ac_status=$?
11751 @@ -2960,20 +3254,18 @@
11753 else
11754 echo "$as_me: failed program was:" >&5
11755 -cat conftest.$ac_ext >&5
11756 +sed 's/^/| /' conftest.$ac_ext >&5
11758 continue
11759 fi
11760 -rm -f conftest.$ac_objext conftest.$ac_ext
11761 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11762 cat >conftest.$ac_ext <<_ACEOF
11763 -#line $LINENO "configure"
11764 -#include "confdefs.h"
11765 +/* confdefs.h. */
11766 +_ACEOF
11767 +cat confdefs.h >>conftest.$ac_ext
11768 +cat >>conftest.$ac_ext <<_ACEOF
11769 +/* end confdefs.h. */
11770 $ac_declaration
11771 -#ifdef F77_DUMMY_MAIN
11772 -# ifdef __cplusplus
11773 - extern "C"
11774 -# endif
11775 - int F77_DUMMY_MAIN() { return 1; }
11776 -#endif
11777 int
11778 main ()
11780 @@ -2984,11 +3276,20 @@
11781 _ACEOF
11782 rm -f conftest.$ac_objext
11783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11784 - (eval $ac_compile) 2>&5
11785 + (eval $ac_compile) 2>conftest.er1
11786 ac_status=$?
11787 + grep -v '^ *+' conftest.er1 >conftest.err
11788 + rm -f conftest.er1
11789 + cat conftest.err >&5
11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791 (exit $ac_status); } &&
11792 - { ac_try='test -s conftest.$ac_objext'
11793 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11794 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11795 + (eval $ac_try) 2>&5
11796 + ac_status=$?
11797 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 + (exit $ac_status); }; } &&
11799 + { ac_try='test -s conftest.$ac_objext'
11800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11801 (eval $ac_try) 2>&5
11802 ac_status=$?
11803 @@ -2997,9 +3298,10 @@
11804 break
11805 else
11806 echo "$as_me: failed program was:" >&5
11807 -cat conftest.$ac_ext >&5
11808 +sed 's/^/| /' conftest.$ac_ext >&5
11810 fi
11811 -rm -f conftest.$ac_objext conftest.$ac_ext
11812 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11813 done
11814 rm -f conftest*
11815 if test -n "$ac_declaration"; then
11816 @@ -3059,6 +3361,51 @@
11817 done
11818 test -n "$PERL" || PERL="perl"
11820 +for ac_prog in sed
11821 +do
11822 + # Extract the first word of "$ac_prog", so it can be a program name with args.
11823 +set dummy $ac_prog; ac_word=$2
11824 +echo "$as_me:$LINENO: checking for $ac_word" >&5
11825 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11826 +if test "${ac_cv_path_SED+set}" = set; then
11827 + echo $ECHO_N "(cached) $ECHO_C" >&6
11828 +else
11829 + case $SED in
11830 + [\\/]* | ?:[\\/]*)
11831 + ac_cv_path_SED="$SED" # Let the user override the test with a path.
11832 + ;;
11833 + *)
11834 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11835 +for as_dir in $PATH
11836 +do
11837 + IFS=$as_save_IFS
11838 + test -z "$as_dir" && as_dir=.
11839 + for ac_exec_ext in '' $ac_executable_extensions; do
11840 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11841 + ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11842 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11843 + break 2
11844 + fi
11845 +done
11846 +done
11848 + ;;
11849 +esac
11850 +fi
11851 +SED=$ac_cv_path_SED
11853 +if test -n "$SED"; then
11854 + echo "$as_me:$LINENO: result: $SED" >&5
11855 +echo "${ECHO_T}$SED" >&6
11856 +else
11857 + echo "$as_me:$LINENO: result: no" >&5
11858 +echo "${ECHO_T}no" >&6
11859 +fi
11861 + test -n "$SED" && break
11862 +done
11863 +test -n "$SED" || SED="sed"
11865 test "$INSTALL" = "./config/install-sh -c" && INSTALL=`pwd`"/config/install-sh -c"
11868 @@ -3069,11 +3416,6 @@
11869 *)
11870 if test "$GXX"
11871 then
11872 - echo "$as_me:$LINENO: checking whether GNU C++ supports automatic template instantiation" >&5
11873 -echo $ECHO_N "checking whether GNU C++ supports automatic template instantiation... $ECHO_C" >&6
11874 -if test "${ac_cv_c_gnu_automatic_templates+set}" = set; then
11875 - echo $ECHO_N "(cached) $ECHO_C" >&6
11876 -else
11878 ac_ext=c
11879 ac_cpp='$CPP $CPPFLAGS'
11880 @@ -3098,24 +3440,34 @@
11881 do
11882 # Use a header file that comes with gcc, so configuring glibc
11883 # with a fresh cross-compiler works.
11884 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11885 + # <limits.h> exists even on freestanding compilers.
11886 # On the NeXT, cc -E runs the code through the compiler's parser,
11887 # not just through cpp. "Syntax error" is here to catch this case.
11888 cat >conftest.$ac_ext <<_ACEOF
11889 -#line $LINENO "configure"
11890 -#include "confdefs.h"
11891 -#include <assert.h>
11892 - Syntax error
11893 +/* confdefs.h. */
11894 +_ACEOF
11895 +cat confdefs.h >>conftest.$ac_ext
11896 +cat >>conftest.$ac_ext <<_ACEOF
11897 +/* end confdefs.h. */
11898 +#ifdef __STDC__
11899 +# include <limits.h>
11900 +#else
11901 +# include <assert.h>
11902 +#endif
11903 + Syntax error
11904 _ACEOF
11905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11906 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11907 ac_status=$?
11908 - egrep -v '^ *\+' conftest.er1 >conftest.err
11909 + grep -v '^ *+' conftest.er1 >conftest.err
11910 rm -f conftest.er1
11911 cat conftest.err >&5
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); } >/dev/null; then
11914 if test -s conftest.err; then
11915 ac_cpp_err=$ac_c_preproc_warn_flag
11916 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11917 else
11918 ac_cpp_err=
11919 fi
11920 @@ -3126,7 +3478,8 @@
11922 else
11923 echo "$as_me: failed program was:" >&5
11924 - cat conftest.$ac_ext >&5
11925 +sed 's/^/| /' conftest.$ac_ext >&5
11927 # Broken: fails on valid input.
11928 continue
11929 fi
11930 @@ -3135,20 +3488,24 @@
11931 # OK, works on sane cases. Now check whether non-existent headers
11932 # can be detected and how.
11933 cat >conftest.$ac_ext <<_ACEOF
11934 -#line $LINENO "configure"
11935 -#include "confdefs.h"
11936 +/* confdefs.h. */
11937 +_ACEOF
11938 +cat confdefs.h >>conftest.$ac_ext
11939 +cat >>conftest.$ac_ext <<_ACEOF
11940 +/* end confdefs.h. */
11941 #include <ac_nonexistent.h>
11942 _ACEOF
11943 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11944 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11945 ac_status=$?
11946 - egrep -v '^ *\+' conftest.er1 >conftest.err
11947 + grep -v '^ *+' conftest.er1 >conftest.err
11948 rm -f conftest.er1
11949 cat conftest.err >&5
11950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 (exit $ac_status); } >/dev/null; then
11952 if test -s conftest.err; then
11953 ac_cpp_err=$ac_c_preproc_warn_flag
11954 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11955 else
11956 ac_cpp_err=
11957 fi
11958 @@ -3160,7 +3517,8 @@
11959 continue
11960 else
11961 echo "$as_me: failed program was:" >&5
11962 - cat conftest.$ac_ext >&5
11963 +sed 's/^/| /' conftest.$ac_ext >&5
11965 # Passes both tests.
11966 ac_preproc_ok=:
11967 break
11968 @@ -3189,24 +3547,34 @@
11969 do
11970 # Use a header file that comes with gcc, so configuring glibc
11971 # with a fresh cross-compiler works.
11972 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11973 + # <limits.h> exists even on freestanding compilers.
11974 # On the NeXT, cc -E runs the code through the compiler's parser,
11975 # not just through cpp. "Syntax error" is here to catch this case.
11976 cat >conftest.$ac_ext <<_ACEOF
11977 -#line $LINENO "configure"
11978 -#include "confdefs.h"
11979 -#include <assert.h>
11980 - Syntax error
11981 +/* confdefs.h. */
11982 +_ACEOF
11983 +cat confdefs.h >>conftest.$ac_ext
11984 +cat >>conftest.$ac_ext <<_ACEOF
11985 +/* end confdefs.h. */
11986 +#ifdef __STDC__
11987 +# include <limits.h>
11988 +#else
11989 +# include <assert.h>
11990 +#endif
11991 + Syntax error
11992 _ACEOF
11993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11994 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11995 ac_status=$?
11996 - egrep -v '^ *\+' conftest.er1 >conftest.err
11997 + grep -v '^ *+' conftest.er1 >conftest.err
11998 rm -f conftest.er1
11999 cat conftest.err >&5
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); } >/dev/null; then
12002 if test -s conftest.err; then
12003 ac_cpp_err=$ac_c_preproc_warn_flag
12004 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12005 else
12006 ac_cpp_err=
12007 fi
12008 @@ -3217,7 +3585,8 @@
12010 else
12011 echo "$as_me: failed program was:" >&5
12012 - cat conftest.$ac_ext >&5
12013 +sed 's/^/| /' conftest.$ac_ext >&5
12015 # Broken: fails on valid input.
12016 continue
12017 fi
12018 @@ -3226,20 +3595,24 @@
12019 # OK, works on sane cases. Now check whether non-existent headers
12020 # can be detected and how.
12021 cat >conftest.$ac_ext <<_ACEOF
12022 -#line $LINENO "configure"
12023 -#include "confdefs.h"
12024 +/* confdefs.h. */
12025 +_ACEOF
12026 +cat confdefs.h >>conftest.$ac_ext
12027 +cat >>conftest.$ac_ext <<_ACEOF
12028 +/* end confdefs.h. */
12029 #include <ac_nonexistent.h>
12030 _ACEOF
12031 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12032 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12033 ac_status=$?
12034 - egrep -v '^ *\+' conftest.er1 >conftest.err
12035 + grep -v '^ *+' conftest.er1 >conftest.err
12036 rm -f conftest.er1
12037 cat conftest.err >&5
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); } >/dev/null; then
12040 if test -s conftest.err; then
12041 ac_cpp_err=$ac_c_preproc_warn_flag
12042 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12043 else
12044 ac_cpp_err=
12045 fi
12046 @@ -3251,7 +3624,8 @@
12047 continue
12048 else
12049 echo "$as_me: failed program was:" >&5
12050 - cat conftest.$ac_ext >&5
12051 +sed 's/^/| /' conftest.$ac_ext >&5
12053 # Passes both tests.
12054 ac_preproc_ok=:
12055 break
12056 @@ -3264,8 +3638,10 @@
12057 if $ac_preproc_ok; then
12059 else
12060 - { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
12061 -echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
12062 + { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12063 +See \`config.log' for more details." >&5
12064 +echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12065 +See \`config.log' for more details." >&2;}
12066 { (exit 1); exit 1; }; }
12067 fi
12069 @@ -3276,9 +3652,32 @@
12070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12073 -cat >conftest.$ac_ext <<_ACEOF
12074 -#line $LINENO "configure"
12075 -#include "confdefs.h"
12076 +echo "$as_me:$LINENO: checking for egrep" >&5
12077 +echo $ECHO_N "checking for egrep... $ECHO_C" >&6
12078 +if test "${ac_cv_prog_egrep+set}" = set; then
12079 + echo $ECHO_N "(cached) $ECHO_C" >&6
12080 +else
12081 + if echo a | (grep -E '(a|b)') >/dev/null 2>&1
12082 + then ac_cv_prog_egrep='grep -E'
12083 + else ac_cv_prog_egrep='egrep'
12084 + fi
12085 +fi
12086 +echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
12087 +echo "${ECHO_T}$ac_cv_prog_egrep" >&6
12088 + EGREP=$ac_cv_prog_egrep
12091 +echo "$as_me:$LINENO: checking whether GNU C++ supports automatic template instantiation" >&5
12092 +echo $ECHO_N "checking whether GNU C++ supports automatic template instantiation... $ECHO_C" >&6
12093 +if test "${ac_cv_c_gnu_automatic_templates+set}" = set; then
12094 + echo $ECHO_N "(cached) $ECHO_C" >&6
12095 +else
12096 + cat >conftest.$ac_ext <<_ACEOF
12097 +/* confdefs.h. */
12098 +_ACEOF
12099 +cat confdefs.h >>conftest.$ac_ext
12100 +cat >>conftest.$ac_ext <<_ACEOF
12101 +/* end confdefs.h. */
12103 #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 8)
12104 yes
12105 @@ -3286,7 +3685,7 @@
12107 _ACEOF
12108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12109 - egrep "yes" >/dev/null 2>&1; then
12110 + $EGREP "yes" >/dev/null 2>&1; then
12111 ac_cv_c_gnu_automatic_templates=yes
12112 else
12113 ac_cv_c_gnu_automatic_templates=no
12114 @@ -3321,49 +3720,67 @@
12115 echo $ECHO_N "(cached) $ECHO_C" >&6
12116 else
12117 cat >conftest.$ac_ext <<_ACEOF
12118 -#line $LINENO "configure"
12119 -#include "confdefs.h"
12120 +/* confdefs.h. */
12121 +_ACEOF
12122 +cat confdefs.h >>conftest.$ac_ext
12123 +cat >>conftest.$ac_ext <<_ACEOF
12124 +/* end confdefs.h. */
12125 #include <stdlib.h>
12126 #include <stdarg.h>
12127 #include <string.h>
12128 #include <float.h>
12130 +int
12131 +main ()
12132 +{
12134 + ;
12135 + return 0;
12136 +}
12137 _ACEOF
12138 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12139 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12140 +rm -f conftest.$ac_objext
12141 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12142 + (eval $ac_compile) 2>conftest.er1
12143 ac_status=$?
12144 - egrep -v '^ *\+' conftest.er1 >conftest.err
12145 + grep -v '^ *+' conftest.er1 >conftest.err
12146 rm -f conftest.er1
12147 cat conftest.err >&5
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 - (exit $ac_status); } >/dev/null; then
12150 - if test -s conftest.err; then
12151 - ac_cpp_err=$ac_c_preproc_warn_flag
12152 - else
12153 - ac_cpp_err=
12154 - fi
12155 -else
12156 - ac_cpp_err=yes
12157 -fi
12158 -if test -z "$ac_cpp_err"; then
12159 + (exit $ac_status); } &&
12160 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12161 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12162 + (eval $ac_try) 2>&5
12163 + ac_status=$?
12164 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 + (exit $ac_status); }; } &&
12166 + { ac_try='test -s conftest.$ac_objext'
12167 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12168 + (eval $ac_try) 2>&5
12169 + ac_status=$?
12170 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 + (exit $ac_status); }; }; then
12172 ac_cv_header_stdc=yes
12173 else
12174 echo "$as_me: failed program was:" >&5
12175 - cat conftest.$ac_ext >&5
12176 - ac_cv_header_stdc=no
12177 +sed 's/^/| /' conftest.$ac_ext >&5
12179 +ac_cv_header_stdc=no
12180 fi
12181 -rm -f conftest.err conftest.$ac_ext
12182 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12184 if test $ac_cv_header_stdc = yes; then
12185 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12186 cat >conftest.$ac_ext <<_ACEOF
12187 -#line $LINENO "configure"
12188 -#include "confdefs.h"
12189 +/* confdefs.h. */
12190 +_ACEOF
12191 +cat confdefs.h >>conftest.$ac_ext
12192 +cat >>conftest.$ac_ext <<_ACEOF
12193 +/* end confdefs.h. */
12194 #include <string.h>
12196 _ACEOF
12197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12198 - egrep "memchr" >/dev/null 2>&1; then
12199 + $EGREP "memchr" >/dev/null 2>&1; then
12201 else
12202 ac_cv_header_stdc=no
12203 @@ -3375,13 +3792,16 @@
12204 if test $ac_cv_header_stdc = yes; then
12205 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12206 cat >conftest.$ac_ext <<_ACEOF
12207 -#line $LINENO "configure"
12208 -#include "confdefs.h"
12209 +/* confdefs.h. */
12210 +_ACEOF
12211 +cat confdefs.h >>conftest.$ac_ext
12212 +cat >>conftest.$ac_ext <<_ACEOF
12213 +/* end confdefs.h. */
12214 #include <stdlib.h>
12216 _ACEOF
12217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12218 - egrep "free" >/dev/null 2>&1; then
12219 + $EGREP "free" >/dev/null 2>&1; then
12221 else
12222 ac_cv_header_stdc=no
12223 @@ -3396,16 +3816,20 @@
12225 else
12226 cat >conftest.$ac_ext <<_ACEOF
12227 -#line $LINENO "configure"
12228 -#include "confdefs.h"
12229 +/* confdefs.h. */
12230 +_ACEOF
12231 +cat confdefs.h >>conftest.$ac_ext
12232 +cat >>conftest.$ac_ext <<_ACEOF
12233 +/* end confdefs.h. */
12234 #include <ctype.h>
12235 #if ((' ' & 0x0FF) == 0x020)
12236 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12237 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12238 #else
12239 -# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
12240 - || ('j' <= (c) && (c) <= 'r') \
12241 - || ('s' <= (c) && (c) <= 'z'))
12242 +# define ISLOWER(c) \
12243 + (('a' <= (c) && (c) <= 'i') \
12244 + || ('j' <= (c) && (c) <= 'r') \
12245 + || ('s' <= (c) && (c) <= 'z'))
12246 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12247 #endif
12249 @@ -3416,7 +3840,7 @@
12250 int i;
12251 for (i = 0; i < 256; i++)
12252 if (XOR (islower (i), ISLOWER (i))
12253 - || toupper (i) != TOUPPER (i))
12254 + || toupper (i) != TOUPPER (i))
12255 exit(2);
12256 exit (0);
12258 @@ -3436,11 +3860,12 @@
12259 else
12260 echo "$as_me: program exited with status $ac_status" >&5
12261 echo "$as_me: failed program was:" >&5
12262 -cat conftest.$ac_ext >&5
12263 +sed 's/^/| /' conftest.$ac_ext >&5
12265 ( exit $ac_status )
12266 ac_cv_header_stdc=no
12267 fi
12268 -rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12269 +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12270 fi
12271 fi
12272 fi
12273 @@ -3465,7 +3890,7 @@
12276 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
12277 - inttypes.h stdint.h unistd.h
12278 + inttypes.h stdint.h unistd.h
12279 do
12280 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12281 echo "$as_me:$LINENO: checking for $ac_header" >&5
12282 @@ -3474,19 +3899,31 @@
12283 echo $ECHO_N "(cached) $ECHO_C" >&6
12284 else
12285 cat >conftest.$ac_ext <<_ACEOF
12286 -#line $LINENO "configure"
12287 -#include "confdefs.h"
12288 +/* confdefs.h. */
12289 +_ACEOF
12290 +cat confdefs.h >>conftest.$ac_ext
12291 +cat >>conftest.$ac_ext <<_ACEOF
12292 +/* end confdefs.h. */
12293 $ac_includes_default
12295 #include <$ac_header>
12296 _ACEOF
12297 rm -f conftest.$ac_objext
12298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12299 - (eval $ac_compile) 2>&5
12300 + (eval $ac_compile) 2>conftest.er1
12301 ac_status=$?
12302 + grep -v '^ *+' conftest.er1 >conftest.err
12303 + rm -f conftest.er1
12304 + cat conftest.err >&5
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); } &&
12307 - { ac_try='test -s conftest.$ac_objext'
12308 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12309 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12310 + (eval $ac_try) 2>&5
12311 + ac_status=$?
12312 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313 + (exit $ac_status); }; } &&
12314 + { ac_try='test -s conftest.$ac_objext'
12315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12316 (eval $ac_try) 2>&5
12317 ac_status=$?
12318 @@ -3495,10 +3932,11 @@
12319 eval "$as_ac_Header=yes"
12320 else
12321 echo "$as_me: failed program was:" >&5
12322 -cat conftest.$ac_ext >&5
12323 +sed 's/^/| /' conftest.$ac_ext >&5
12325 eval "$as_ac_Header=no"
12326 fi
12327 -rm -f conftest.$ac_objext conftest.$ac_ext
12328 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12329 fi
12330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12331 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12332 @@ -3529,18 +3967,30 @@
12333 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12335 cat >conftest.$ac_ext <<_ACEOF
12336 -#line $LINENO "configure"
12337 -#include "confdefs.h"
12338 +/* confdefs.h. */
12339 +_ACEOF
12340 +cat confdefs.h >>conftest.$ac_ext
12341 +cat >>conftest.$ac_ext <<_ACEOF
12342 +/* end confdefs.h. */
12343 $ac_includes_default
12344 #include <$ac_header>
12345 _ACEOF
12346 rm -f conftest.$ac_objext
12347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12348 - (eval $ac_compile) 2>&5
12349 + (eval $ac_compile) 2>conftest.er1
12350 ac_status=$?
12351 + grep -v '^ *+' conftest.er1 >conftest.err
12352 + rm -f conftest.er1
12353 + cat conftest.err >&5
12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); } &&
12356 - { ac_try='test -s conftest.$ac_objext'
12357 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12358 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12359 + (eval $ac_try) 2>&5
12360 + ac_status=$?
12361 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 + (exit $ac_status); }; } &&
12363 + { ac_try='test -s conftest.$ac_objext'
12364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12365 (eval $ac_try) 2>&5
12366 ac_status=$?
12367 @@ -3549,10 +3999,11 @@
12368 ac_header_compiler=yes
12369 else
12370 echo "$as_me: failed program was:" >&5
12371 -cat conftest.$ac_ext >&5
12372 +sed 's/^/| /' conftest.$ac_ext >&5
12374 ac_header_compiler=no
12375 fi
12376 -rm -f conftest.$ac_objext conftest.$ac_ext
12377 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12378 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12379 echo "${ECHO_T}$ac_header_compiler" >&6
12381 @@ -3560,169 +4011,94 @@
12382 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12384 cat >conftest.$ac_ext <<_ACEOF
12385 -#line $LINENO "configure"
12386 -#include "confdefs.h"
12387 +/* confdefs.h. */
12388 +_ACEOF
12389 +cat confdefs.h >>conftest.$ac_ext
12390 +cat >>conftest.$ac_ext <<_ACEOF
12391 +/* end confdefs.h. */
12392 #include <$ac_header>
12393 _ACEOF
12394 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12395 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12396 ac_status=$?
12397 - egrep -v '^ *\+' conftest.er1 >conftest.err
12398 + grep -v '^ *+' conftest.er1 >conftest.err
12399 rm -f conftest.er1
12400 cat conftest.err >&5
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); } >/dev/null; then
12403 - if test -s conftest.err; then
12404 - ac_cpp_err=$ac_c_preproc_warn_flag
12405 - else
12406 - ac_cpp_err=
12407 - fi
12408 -else
12409 - ac_cpp_err=yes
12410 -fi
12411 -if test -z "$ac_cpp_err"; then
12412 - ac_header_preproc=yes
12413 -else
12414 - echo "$as_me: failed program was:" >&5
12415 - cat conftest.$ac_ext >&5
12416 - ac_header_preproc=no
12417 -fi
12418 -rm -f conftest.err conftest.$ac_ext
12419 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12420 -echo "${ECHO_T}$ac_header_preproc" >&6
12422 -# So? What about this header?
12423 -case $ac_header_compiler:$ac_header_preproc in
12424 - yes:no )
12425 - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12426 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12427 - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12428 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12429 - no:yes )
12430 - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12431 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12432 - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12433 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12434 - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12435 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12436 -esac
12437 -echo "$as_me:$LINENO: checking for $ac_header" >&5
12438 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12439 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
12440 - echo $ECHO_N "(cached) $ECHO_C" >&6
12441 -else
12442 - eval "$as_ac_Header=$ac_header_preproc"
12443 -fi
12444 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12445 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12447 -fi
12448 -if test `eval echo '${'$as_ac_Header'}'` = yes; then
12449 - cat >>confdefs.h <<_ACEOF
12450 -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12451 -_ACEOF
12453 -fi
12455 -done
12458 -echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12459 -echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12460 -if test "${ac_cv_prog_cc_stdc+set}" = set; then
12461 - echo $ECHO_N "(cached) $ECHO_C" >&6
12462 -else
12463 - ac_cv_prog_cc_stdc=no
12464 -ac_save_CC=$CC
12465 -cat >conftest.$ac_ext <<_ACEOF
12466 -#line $LINENO "configure"
12467 -#include "confdefs.h"
12468 -#include <stdarg.h>
12469 -#include <stdio.h>
12470 -#include <sys/types.h>
12471 -#include <sys/stat.h>
12472 -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12473 -struct buf { int x; };
12474 -FILE * (*rcsopen) (struct buf *, struct stat *, int);
12475 -static char *e (p, i)
12476 - char **p;
12477 - int i;
12478 -{
12479 - return p[i];
12480 -}
12481 -static char *f (char * (*g) (char **, int), char **p, ...)
12482 -{
12483 - char *s;
12484 - va_list v;
12485 - va_start (v,p);
12486 - s = g (p, va_arg (v,int));
12487 - va_end (v);
12488 - return s;
12489 -}
12490 -int test (int i, double x);
12491 -struct s1 {int (*f) (int a);};
12492 -struct s2 {int (*f) (double a);};
12493 -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12494 -int argc;
12495 -char **argv;
12496 -#ifdef F77_DUMMY_MAIN
12497 -# ifdef __cplusplus
12498 - extern "C"
12499 -# endif
12500 - int F77_DUMMY_MAIN() { return 1; }
12501 -#endif
12502 -int
12503 -main ()
12504 -{
12505 -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12506 - ;
12507 - return 0;
12508 -}
12509 -_ACEOF
12510 -# Don't try gcc -ansi; that turns off useful extensions and
12511 -# breaks some systems' header files.
12512 -# AIX -qlanglvl=ansi
12513 -# Ultrix and OSF/1 -std1
12514 -# HP-UX 10.20 and later -Ae
12515 -# HP-UX older versions -Aa -D_HPUX_SOURCE
12516 -# SVR4 -Xc -D__EXTENSIONS__
12517 -for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12518 -do
12519 - CC="$ac_save_CC $ac_arg"
12520 - rm -f conftest.$ac_objext
12521 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12522 - (eval $ac_compile) 2>&5
12523 - ac_status=$?
12524 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 - (exit $ac_status); } &&
12526 - { ac_try='test -s conftest.$ac_objext'
12527 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12528 - (eval $ac_try) 2>&5
12529 - ac_status=$?
12530 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531 - (exit $ac_status); }; }; then
12532 - ac_cv_prog_cc_stdc=$ac_arg
12533 -break
12534 + if test -s conftest.err; then
12535 + ac_cpp_err=$ac_c_preproc_warn_flag
12536 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12537 + else
12538 + ac_cpp_err=
12539 + fi
12540 else
12541 - echo "$as_me: failed program was:" >&5
12542 -cat conftest.$ac_ext >&5
12543 + ac_cpp_err=yes
12544 fi
12545 -rm -f conftest.$ac_objext
12546 -done
12547 -rm -f conftest.$ac_ext conftest.$ac_objext
12548 -CC=$ac_save_CC
12549 +if test -z "$ac_cpp_err"; then
12550 + ac_header_preproc=yes
12551 +else
12552 + echo "$as_me: failed program was:" >&5
12553 +sed 's/^/| /' conftest.$ac_ext >&5
12555 + ac_header_preproc=no
12556 fi
12557 +rm -f conftest.err conftest.$ac_ext
12558 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12559 +echo "${ECHO_T}$ac_header_preproc" >&6
12561 -case "x$ac_cv_prog_cc_stdc" in
12562 - x|xno)
12563 - echo "$as_me:$LINENO: result: none needed" >&5
12564 -echo "${ECHO_T}none needed" >&6 ;;
12565 - *)
12566 - echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12567 -echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12568 - CC="$CC $ac_cv_prog_cc_stdc" ;;
12569 +# So? What about this header?
12570 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12571 + yes:no: )
12572 + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12573 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12574 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12575 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12576 + ac_header_preproc=yes
12577 + ;;
12578 + no:yes:* )
12579 + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12580 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12581 + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12582 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12583 + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12584 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12585 + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12586 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12587 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12588 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12589 + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12590 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12591 + (
12592 + cat <<\_ASBOX
12593 +## ------------------------------------------ ##
12594 +## Report this to the AC_PACKAGE_NAME lists. ##
12595 +## ------------------------------------------ ##
12596 +_ASBOX
12597 + ) |
12598 + sed "s/^/$as_me: WARNING: /" >&2
12599 + ;;
12600 esac
12601 +echo "$as_me:$LINENO: checking for $ac_header" >&5
12602 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12603 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
12604 + echo $ECHO_N "(cached) $ECHO_C" >&6
12605 +else
12606 + eval "$as_ac_Header=\$ac_header_preproc"
12607 +fi
12608 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12609 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12611 +fi
12612 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
12613 + cat >>confdefs.h <<_ACEOF
12614 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12615 +_ACEOF
12617 +fi
12619 +done
12622 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12623 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12624 @@ -3730,15 +4106,12 @@
12625 echo $ECHO_N "(cached) $ECHO_C" >&6
12626 else
12627 cat >conftest.$ac_ext <<_ACEOF
12628 -#line $LINENO "configure"
12629 -#include "confdefs.h"
12630 +/* confdefs.h. */
12631 +_ACEOF
12632 +cat confdefs.h >>conftest.$ac_ext
12633 +cat >>conftest.$ac_ext <<_ACEOF
12634 +/* end confdefs.h. */
12636 -#ifdef F77_DUMMY_MAIN
12637 -# ifdef __cplusplus
12638 - extern "C"
12639 -# endif
12640 - int F77_DUMMY_MAIN() { return 1; }
12641 -#endif
12642 int
12643 main ()
12645 @@ -3795,11 +4168,20 @@
12646 _ACEOF
12647 rm -f conftest.$ac_objext
12648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12649 - (eval $ac_compile) 2>&5
12650 + (eval $ac_compile) 2>conftest.er1
12651 ac_status=$?
12652 + grep -v '^ *+' conftest.er1 >conftest.err
12653 + rm -f conftest.er1
12654 + cat conftest.err >&5
12655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656 (exit $ac_status); } &&
12657 - { ac_try='test -s conftest.$ac_objext'
12658 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12659 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12660 + (eval $ac_try) 2>&5
12661 + ac_status=$?
12662 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663 + (exit $ac_status); }; } &&
12664 + { ac_try='test -s conftest.$ac_objext'
12665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12666 (eval $ac_try) 2>&5
12667 ac_status=$?
12668 @@ -3808,10 +4190,11 @@
12669 ac_cv_c_const=yes
12670 else
12671 echo "$as_me: failed program was:" >&5
12672 -cat conftest.$ac_ext >&5
12673 +sed 's/^/| /' conftest.$ac_ext >&5
12675 ac_cv_c_const=no
12676 fi
12677 -rm -f conftest.$ac_objext conftest.$ac_ext
12678 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12679 fi
12680 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12681 echo "${ECHO_T}$ac_cv_c_const" >&6
12682 @@ -3831,21 +4214,34 @@
12683 ac_cv_c_inline=no
12684 for ac_kw in inline __inline__ __inline; do
12685 cat >conftest.$ac_ext <<_ACEOF
12686 -#line $LINENO "configure"
12687 -#include "confdefs.h"
12688 +/* confdefs.h. */
12689 +_ACEOF
12690 +cat confdefs.h >>conftest.$ac_ext
12691 +cat >>conftest.$ac_ext <<_ACEOF
12692 +/* end confdefs.h. */
12693 #ifndef __cplusplus
12694 -static $ac_kw int static_foo () {return 0; }
12695 -$ac_kw int foo () {return 0; }
12696 +typedef int foo_t;
12697 +static $ac_kw foo_t static_foo () {return 0; }
12698 +$ac_kw foo_t foo () {return 0; }
12699 #endif
12701 _ACEOF
12702 rm -f conftest.$ac_objext
12703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12704 - (eval $ac_compile) 2>&5
12705 + (eval $ac_compile) 2>conftest.er1
12706 ac_status=$?
12707 + grep -v '^ *+' conftest.er1 >conftest.err
12708 + rm -f conftest.er1
12709 + cat conftest.err >&5
12710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711 (exit $ac_status); } &&
12712 - { ac_try='test -s conftest.$ac_objext'
12713 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12714 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12715 + (eval $ac_try) 2>&5
12716 + ac_status=$?
12717 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 + (exit $ac_status); }; } &&
12719 + { ac_try='test -s conftest.$ac_objext'
12720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12721 (eval $ac_try) 2>&5
12722 ac_status=$?
12723 @@ -3854,25 +4250,30 @@
12724 ac_cv_c_inline=$ac_kw; break
12725 else
12726 echo "$as_me: failed program was:" >&5
12727 -cat conftest.$ac_ext >&5
12728 +sed 's/^/| /' conftest.$ac_ext >&5
12730 fi
12731 -rm -f conftest.$ac_objext conftest.$ac_ext
12732 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12733 done
12735 fi
12736 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
12737 echo "${ECHO_T}$ac_cv_c_inline" >&6
12740 case $ac_cv_c_inline in
12741 inline | yes) ;;
12742 - no)
12743 -cat >>confdefs.h <<\_ACEOF
12744 -#define inline
12745 -_ACEOF
12746 - ;;
12747 - *) cat >>confdefs.h <<_ACEOF
12748 -#define inline $ac_cv_c_inline
12749 + *)
12750 + case $ac_cv_c_inline in
12751 + no) ac_val=;;
12752 + *) ac_val=$ac_cv_c_inline;;
12753 + esac
12754 + cat >>confdefs.h <<_ACEOF
12755 +#ifndef __cplusplus
12756 +#define inline $ac_val
12757 +#endif
12758 _ACEOF
12759 - ;;
12760 + ;;
12761 esac
12763 echo "$as_me:$LINENO: checking for size_t" >&5
12764 @@ -3881,15 +4282,12 @@
12765 echo $ECHO_N "(cached) $ECHO_C" >&6
12766 else
12767 cat >conftest.$ac_ext <<_ACEOF
12768 -#line $LINENO "configure"
12769 -#include "confdefs.h"
12770 +/* confdefs.h. */
12771 +_ACEOF
12772 +cat confdefs.h >>conftest.$ac_ext
12773 +cat >>conftest.$ac_ext <<_ACEOF
12774 +/* end confdefs.h. */
12775 $ac_includes_default
12776 -#ifdef F77_DUMMY_MAIN
12777 -# ifdef __cplusplus
12778 - extern "C"
12779 -# endif
12780 - int F77_DUMMY_MAIN() { return 1; }
12781 -#endif
12782 int
12783 main ()
12785 @@ -3903,11 +4301,20 @@
12786 _ACEOF
12787 rm -f conftest.$ac_objext
12788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12789 - (eval $ac_compile) 2>&5
12790 + (eval $ac_compile) 2>conftest.er1
12791 ac_status=$?
12792 + grep -v '^ *+' conftest.er1 >conftest.err
12793 + rm -f conftest.er1
12794 + cat conftest.err >&5
12795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796 (exit $ac_status); } &&
12797 - { ac_try='test -s conftest.$ac_objext'
12798 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12799 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12800 + (eval $ac_try) 2>&5
12801 + ac_status=$?
12802 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803 + (exit $ac_status); }; } &&
12804 + { ac_try='test -s conftest.$ac_objext'
12805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12806 (eval $ac_try) 2>&5
12807 ac_status=$?
12808 @@ -3916,10 +4323,11 @@
12809 ac_cv_type_size_t=yes
12810 else
12811 echo "$as_me: failed program was:" >&5
12812 -cat conftest.$ac_ext >&5
12813 +sed 's/^/| /' conftest.$ac_ext >&5
12815 ac_cv_type_size_t=no
12816 fi
12817 -rm -f conftest.$ac_objext conftest.$ac_ext
12818 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12819 fi
12820 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12821 echo "${ECHO_T}$ac_cv_type_size_t" >&6
12822 @@ -3940,15 +4348,12 @@
12823 echo $ECHO_N "(cached) $ECHO_C" >&6
12824 else
12825 cat >conftest.$ac_ext <<_ACEOF
12826 -#line $LINENO "configure"
12827 -#include "confdefs.h"
12828 +/* confdefs.h. */
12829 +_ACEOF
12830 +cat confdefs.h >>conftest.$ac_ext
12831 +cat >>conftest.$ac_ext <<_ACEOF
12832 +/* end confdefs.h. */
12833 $ac_includes_default
12834 -#ifdef F77_DUMMY_MAIN
12835 -# ifdef __cplusplus
12836 - extern "C"
12837 -# endif
12838 - int F77_DUMMY_MAIN() { return 1; }
12839 -#endif
12840 int
12841 main ()
12843 @@ -3961,11 +4366,63 @@
12844 _ACEOF
12845 rm -f conftest.$ac_objext
12846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12847 - (eval $ac_compile) 2>&5
12848 + (eval $ac_compile) 2>conftest.er1
12849 + ac_status=$?
12850 + grep -v '^ *+' conftest.er1 >conftest.err
12851 + rm -f conftest.er1
12852 + cat conftest.err >&5
12853 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854 + (exit $ac_status); } &&
12855 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12856 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12857 + (eval $ac_try) 2>&5
12858 + ac_status=$?
12859 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860 + (exit $ac_status); }; } &&
12861 + { ac_try='test -s conftest.$ac_objext'
12862 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12863 + (eval $ac_try) 2>&5
12864 + ac_status=$?
12865 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866 + (exit $ac_status); }; }; then
12867 + ac_cv_member_struct_stat_st_blksize=yes
12868 +else
12869 + echo "$as_me: failed program was:" >&5
12870 +sed 's/^/| /' conftest.$ac_ext >&5
12872 +cat >conftest.$ac_ext <<_ACEOF
12873 +/* confdefs.h. */
12874 +_ACEOF
12875 +cat confdefs.h >>conftest.$ac_ext
12876 +cat >>conftest.$ac_ext <<_ACEOF
12877 +/* end confdefs.h. */
12878 +$ac_includes_default
12879 +int
12880 +main ()
12881 +{
12882 +static struct stat ac_aggr;
12883 +if (sizeof ac_aggr.st_blksize)
12884 +return 0;
12885 + ;
12886 + return 0;
12887 +}
12888 +_ACEOF
12889 +rm -f conftest.$ac_objext
12890 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12891 + (eval $ac_compile) 2>conftest.er1
12892 ac_status=$?
12893 + grep -v '^ *+' conftest.er1 >conftest.err
12894 + rm -f conftest.er1
12895 + cat conftest.err >&5
12896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897 (exit $ac_status); } &&
12898 - { ac_try='test -s conftest.$ac_objext'
12899 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12900 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12901 + (eval $ac_try) 2>&5
12902 + ac_status=$?
12903 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904 + (exit $ac_status); }; } &&
12905 + { ac_try='test -s conftest.$ac_objext'
12906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12907 (eval $ac_try) 2>&5
12908 ac_status=$?
12909 @@ -3974,10 +4431,13 @@
12910 ac_cv_member_struct_stat_st_blksize=yes
12911 else
12912 echo "$as_me: failed program was:" >&5
12913 -cat conftest.$ac_ext >&5
12914 +sed 's/^/| /' conftest.$ac_ext >&5
12916 ac_cv_member_struct_stat_st_blksize=no
12917 fi
12918 -rm -f conftest.$ac_objext conftest.$ac_ext
12919 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12920 +fi
12921 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12922 fi
12923 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
12924 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
12925 @@ -4001,15 +4461,12 @@
12926 echo $ECHO_N "(cached) $ECHO_C" >&6
12927 else
12928 cat >conftest.$ac_ext <<_ACEOF
12929 -#line $LINENO "configure"
12930 -#include "confdefs.h"
12931 +/* confdefs.h. */
12932 +_ACEOF
12933 +cat confdefs.h >>conftest.$ac_ext
12934 +cat >>conftest.$ac_ext <<_ACEOF
12935 +/* end confdefs.h. */
12936 #include <signal.h>
12937 -#ifdef F77_DUMMY_MAIN
12938 -# ifdef __cplusplus
12939 - extern "C"
12940 -# endif
12941 - int F77_DUMMY_MAIN() { return 1; }
12942 -#endif
12943 int
12944 main ()
12946 @@ -4020,11 +4477,20 @@
12947 _ACEOF
12948 rm -f conftest.$ac_objext conftest$ac_exeext
12949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12950 - (eval $ac_link) 2>&5
12951 + (eval $ac_link) 2>conftest.er1
12952 ac_status=$?
12953 + grep -v '^ *+' conftest.er1 >conftest.err
12954 + rm -f conftest.er1
12955 + cat conftest.err >&5
12956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957 (exit $ac_status); } &&
12958 - { ac_try='test -s conftest$ac_exeext'
12959 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12960 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12961 + (eval $ac_try) 2>&5
12962 + ac_status=$?
12963 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964 + (exit $ac_status); }; } &&
12965 + { ac_try='test -s conftest$ac_exeext'
12966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12967 (eval $ac_try) 2>&5
12968 ac_status=$?
12969 @@ -4033,10 +4499,12 @@
12970 ac_cv_have_sig_atomic_t=yes
12971 else
12972 echo "$as_me: failed program was:" >&5
12973 -cat conftest.$ac_ext >&5
12974 +sed 's/^/| /' conftest.$ac_ext >&5
12976 ac_cv_have_sig_atomic_t=no
12977 fi
12978 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12979 +rm -f conftest.err conftest.$ac_objext \
12980 + conftest$ac_exeext conftest.$ac_ext
12981 fi
12982 echo "$as_me:$LINENO: result: $ac_cv_have_sig_atomic_t" >&5
12983 echo "${ECHO_T}$ac_cv_have_sig_atomic_t" >&6
12984 @@ -4048,15 +4516,12 @@
12985 echo $ECHO_N "(cached) $ECHO_C" >&6
12986 else
12987 cat >conftest.$ac_ext <<_ACEOF
12988 -#line $LINENO "configure"
12989 -#include "confdefs.h"
12990 +/* confdefs.h. */
12991 +_ACEOF
12992 +cat confdefs.h >>conftest.$ac_ext
12993 +cat >>conftest.$ac_ext <<_ACEOF
12994 +/* end confdefs.h. */
12995 $ac_includes_default
12996 -#ifdef F77_DUMMY_MAIN
12997 -# ifdef __cplusplus
12998 - extern "C"
12999 -# endif
13000 - int F77_DUMMY_MAIN() { return 1; }
13001 -#endif
13002 int
13003 main ()
13005 @@ -4070,11 +4535,20 @@
13006 _ACEOF
13007 rm -f conftest.$ac_objext
13008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13009 - (eval $ac_compile) 2>&5
13010 + (eval $ac_compile) 2>conftest.er1
13011 ac_status=$?
13012 + grep -v '^ *+' conftest.er1 >conftest.err
13013 + rm -f conftest.er1
13014 + cat conftest.err >&5
13015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016 (exit $ac_status); } &&
13017 - { ac_try='test -s conftest.$ac_objext'
13018 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13019 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13020 + (eval $ac_try) 2>&5
13021 + ac_status=$?
13022 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023 + (exit $ac_status); }; } &&
13024 + { ac_try='test -s conftest.$ac_objext'
13025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13026 (eval $ac_try) 2>&5
13027 ac_status=$?
13028 @@ -4083,10 +4557,11 @@
13029 ac_cv_type_sig_atomic_t=yes
13030 else
13031 echo "$as_me: failed program was:" >&5
13032 -cat conftest.$ac_ext >&5
13033 +sed 's/^/| /' conftest.$ac_ext >&5
13035 ac_cv_type_sig_atomic_t=no
13036 fi
13037 -rm -f conftest.$ac_objext conftest.$ac_ext
13038 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13039 fi
13040 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
13041 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
13042 @@ -4108,15 +4583,12 @@
13043 echo $ECHO_N "(cached) $ECHO_C" >&6
13044 else
13045 cat >conftest.$ac_ext <<_ACEOF
13046 -#line $LINENO "configure"
13047 -#include "confdefs.h"
13048 +/* confdefs.h. */
13049 +_ACEOF
13050 +cat confdefs.h >>conftest.$ac_ext
13051 +cat >>conftest.$ac_ext <<_ACEOF
13052 +/* end confdefs.h. */
13053 $ac_includes_default
13054 -#ifdef F77_DUMMY_MAIN
13055 -# ifdef __cplusplus
13056 - extern "C"
13057 -# endif
13058 - int F77_DUMMY_MAIN() { return 1; }
13059 -#endif
13060 int
13061 main ()
13063 @@ -4130,11 +4602,20 @@
13064 _ACEOF
13065 rm -f conftest.$ac_objext
13066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13067 - (eval $ac_compile) 2>&5
13068 + (eval $ac_compile) 2>conftest.er1
13069 ac_status=$?
13070 + grep -v '^ *+' conftest.er1 >conftest.err
13071 + rm -f conftest.er1
13072 + cat conftest.err >&5
13073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074 (exit $ac_status); } &&
13075 - { ac_try='test -s conftest.$ac_objext'
13076 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13077 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13078 + (eval $ac_try) 2>&5
13079 + ac_status=$?
13080 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081 + (exit $ac_status); }; } &&
13082 + { ac_try='test -s conftest.$ac_objext'
13083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13084 (eval $ac_try) 2>&5
13085 ac_status=$?
13086 @@ -4143,10 +4624,11 @@
13087 ac_cv_type_size_t=yes
13088 else
13089 echo "$as_me: failed program was:" >&5
13090 -cat conftest.$ac_ext >&5
13091 +sed 's/^/| /' conftest.$ac_ext >&5
13093 ac_cv_type_size_t=no
13094 fi
13095 -rm -f conftest.$ac_objext conftest.$ac_ext
13096 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13097 fi
13098 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13099 echo "${ECHO_T}$ac_cv_type_size_t" >&6
13100 @@ -4164,15 +4646,12 @@
13101 if test "$cross_compiling" = yes; then
13102 # Depending upon the size, compute the lo and hi bounds.
13103 cat >conftest.$ac_ext <<_ACEOF
13104 -#line $LINENO "configure"
13105 -#include "confdefs.h"
13106 +/* confdefs.h. */
13107 +_ACEOF
13108 +cat confdefs.h >>conftest.$ac_ext
13109 +cat >>conftest.$ac_ext <<_ACEOF
13110 +/* end confdefs.h. */
13111 $ac_includes_default
13112 -#ifdef F77_DUMMY_MAIN
13113 -# ifdef __cplusplus
13114 - extern "C"
13115 -# endif
13116 - int F77_DUMMY_MAIN() { return 1; }
13117 -#endif
13118 int
13119 main ()
13121 @@ -4185,11 +4664,20 @@
13122 _ACEOF
13123 rm -f conftest.$ac_objext
13124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13125 - (eval $ac_compile) 2>&5
13126 + (eval $ac_compile) 2>conftest.er1
13127 ac_status=$?
13128 + grep -v '^ *+' conftest.er1 >conftest.err
13129 + rm -f conftest.er1
13130 + cat conftest.err >&5
13131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132 (exit $ac_status); } &&
13133 - { ac_try='test -s conftest.$ac_objext'
13134 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13135 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13136 + (eval $ac_try) 2>&5
13137 + ac_status=$?
13138 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 + (exit $ac_status); }; } &&
13140 + { ac_try='test -s conftest.$ac_objext'
13141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13142 (eval $ac_try) 2>&5
13143 ac_status=$?
13144 @@ -4198,15 +4686,12 @@
13145 ac_lo=0 ac_mid=0
13146 while :; do
13147 cat >conftest.$ac_ext <<_ACEOF
13148 -#line $LINENO "configure"
13149 -#include "confdefs.h"
13150 +/* confdefs.h. */
13151 +_ACEOF
13152 +cat confdefs.h >>conftest.$ac_ext
13153 +cat >>conftest.$ac_ext <<_ACEOF
13154 +/* end confdefs.h. */
13155 $ac_includes_default
13156 -#ifdef F77_DUMMY_MAIN
13157 -# ifdef __cplusplus
13158 - extern "C"
13159 -# endif
13160 - int F77_DUMMY_MAIN() { return 1; }
13161 -#endif
13162 int
13163 main ()
13165 @@ -4219,11 +4704,20 @@
13166 _ACEOF
13167 rm -f conftest.$ac_objext
13168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13169 - (eval $ac_compile) 2>&5
13170 + (eval $ac_compile) 2>conftest.er1
13171 ac_status=$?
13172 + grep -v '^ *+' conftest.er1 >conftest.err
13173 + rm -f conftest.er1
13174 + cat conftest.err >&5
13175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176 (exit $ac_status); } &&
13177 - { ac_try='test -s conftest.$ac_objext'
13178 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13179 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13180 + (eval $ac_try) 2>&5
13181 + ac_status=$?
13182 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 + (exit $ac_status); }; } &&
13184 + { ac_try='test -s conftest.$ac_objext'
13185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13186 (eval $ac_try) 2>&5
13187 ac_status=$?
13188 @@ -4232,29 +4726,28 @@
13189 ac_hi=$ac_mid; break
13190 else
13191 echo "$as_me: failed program was:" >&5
13192 -cat conftest.$ac_ext >&5
13193 +sed 's/^/| /' conftest.$ac_ext >&5
13195 ac_lo=`expr $ac_mid + 1`
13196 - if test $ac_lo -le $ac_mid; then
13197 - ac_lo= ac_hi=
13198 - break
13199 - fi
13200 - ac_mid=`expr 2 '*' $ac_mid + 1`
13201 + if test $ac_lo -le $ac_mid; then
13202 + ac_lo= ac_hi=
13203 + break
13204 + fi
13205 + ac_mid=`expr 2 '*' $ac_mid + 1`
13206 fi
13207 -rm -f conftest.$ac_objext conftest.$ac_ext
13208 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13209 done
13210 else
13211 echo "$as_me: failed program was:" >&5
13212 -cat conftest.$ac_ext >&5
13213 +sed 's/^/| /' conftest.$ac_ext >&5
13215 cat >conftest.$ac_ext <<_ACEOF
13216 -#line $LINENO "configure"
13217 -#include "confdefs.h"
13218 +/* confdefs.h. */
13219 +_ACEOF
13220 +cat confdefs.h >>conftest.$ac_ext
13221 +cat >>conftest.$ac_ext <<_ACEOF
13222 +/* end confdefs.h. */
13223 $ac_includes_default
13224 -#ifdef F77_DUMMY_MAIN
13225 -# ifdef __cplusplus
13226 - extern "C"
13227 -# endif
13228 - int F77_DUMMY_MAIN() { return 1; }
13229 -#endif
13230 int
13231 main ()
13233 @@ -4267,11 +4760,20 @@
13234 _ACEOF
13235 rm -f conftest.$ac_objext
13236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13237 - (eval $ac_compile) 2>&5
13238 + (eval $ac_compile) 2>conftest.er1
13239 ac_status=$?
13240 + grep -v '^ *+' conftest.er1 >conftest.err
13241 + rm -f conftest.er1
13242 + cat conftest.err >&5
13243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244 (exit $ac_status); } &&
13245 - { ac_try='test -s conftest.$ac_objext'
13246 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13247 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13248 + (eval $ac_try) 2>&5
13249 + ac_status=$?
13250 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251 + (exit $ac_status); }; } &&
13252 + { ac_try='test -s conftest.$ac_objext'
13253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13254 (eval $ac_try) 2>&5
13255 ac_status=$?
13256 @@ -4280,15 +4782,12 @@
13257 ac_hi=-1 ac_mid=-1
13258 while :; do
13259 cat >conftest.$ac_ext <<_ACEOF
13260 -#line $LINENO "configure"
13261 -#include "confdefs.h"
13262 +/* confdefs.h. */
13263 +_ACEOF
13264 +cat confdefs.h >>conftest.$ac_ext
13265 +cat >>conftest.$ac_ext <<_ACEOF
13266 +/* end confdefs.h. */
13267 $ac_includes_default
13268 -#ifdef F77_DUMMY_MAIN
13269 -# ifdef __cplusplus
13270 - extern "C"
13271 -# endif
13272 - int F77_DUMMY_MAIN() { return 1; }
13273 -#endif
13274 int
13275 main ()
13277 @@ -4301,11 +4800,20 @@
13278 _ACEOF
13279 rm -f conftest.$ac_objext
13280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13281 - (eval $ac_compile) 2>&5
13282 + (eval $ac_compile) 2>conftest.er1
13283 ac_status=$?
13284 + grep -v '^ *+' conftest.er1 >conftest.err
13285 + rm -f conftest.er1
13286 + cat conftest.err >&5
13287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 (exit $ac_status); } &&
13289 - { ac_try='test -s conftest.$ac_objext'
13290 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13291 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13292 + (eval $ac_try) 2>&5
13293 + ac_status=$?
13294 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295 + (exit $ac_status); }; } &&
13296 + { ac_try='test -s conftest.$ac_objext'
13297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13298 (eval $ac_try) 2>&5
13299 ac_status=$?
13300 @@ -4314,37 +4822,36 @@
13301 ac_lo=$ac_mid; break
13302 else
13303 echo "$as_me: failed program was:" >&5
13304 -cat conftest.$ac_ext >&5
13305 +sed 's/^/| /' conftest.$ac_ext >&5
13307 ac_hi=`expr '(' $ac_mid ')' - 1`
13308 - if test $ac_mid -le $ac_hi; then
13309 - ac_lo= ac_hi=
13310 - break
13311 - fi
13312 - ac_mid=`expr 2 '*' $ac_mid`
13313 + if test $ac_mid -le $ac_hi; then
13314 + ac_lo= ac_hi=
13315 + break
13316 + fi
13317 + ac_mid=`expr 2 '*' $ac_mid`
13318 fi
13319 -rm -f conftest.$ac_objext conftest.$ac_ext
13320 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13321 done
13322 else
13323 echo "$as_me: failed program was:" >&5
13324 -cat conftest.$ac_ext >&5
13325 +sed 's/^/| /' conftest.$ac_ext >&5
13327 ac_lo= ac_hi=
13328 fi
13329 -rm -f conftest.$ac_objext conftest.$ac_ext
13330 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13331 fi
13332 -rm -f conftest.$ac_objext conftest.$ac_ext
13333 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13334 # Binary search between lo and hi bounds.
13335 while test "x$ac_lo" != "x$ac_hi"; do
13336 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13337 cat >conftest.$ac_ext <<_ACEOF
13338 -#line $LINENO "configure"
13339 -#include "confdefs.h"
13340 +/* confdefs.h. */
13341 +_ACEOF
13342 +cat confdefs.h >>conftest.$ac_ext
13343 +cat >>conftest.$ac_ext <<_ACEOF
13344 +/* end confdefs.h. */
13345 $ac_includes_default
13346 -#ifdef F77_DUMMY_MAIN
13347 -# ifdef __cplusplus
13348 - extern "C"
13349 -# endif
13350 - int F77_DUMMY_MAIN() { return 1; }
13351 -#endif
13352 int
13353 main ()
13355 @@ -4357,11 +4864,20 @@
13356 _ACEOF
13357 rm -f conftest.$ac_objext
13358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13359 - (eval $ac_compile) 2>&5
13360 + (eval $ac_compile) 2>conftest.er1
13361 ac_status=$?
13362 + grep -v '^ *+' conftest.er1 >conftest.err
13363 + rm -f conftest.er1
13364 + cat conftest.err >&5
13365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366 (exit $ac_status); } &&
13367 - { ac_try='test -s conftest.$ac_objext'
13368 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13369 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13370 + (eval $ac_try) 2>&5
13371 + ac_status=$?
13372 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373 + (exit $ac_status); }; } &&
13374 + { ac_try='test -s conftest.$ac_objext'
13375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13376 (eval $ac_try) 2>&5
13377 ac_status=$?
13378 @@ -4370,37 +4886,37 @@
13379 ac_hi=$ac_mid
13380 else
13381 echo "$as_me: failed program was:" >&5
13382 -cat conftest.$ac_ext >&5
13383 +sed 's/^/| /' conftest.$ac_ext >&5
13385 ac_lo=`expr '(' $ac_mid ')' + 1`
13386 fi
13387 -rm -f conftest.$ac_objext conftest.$ac_ext
13388 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13389 done
13390 case $ac_lo in
13391 ?*) ac_cv_sizeof_size_t=$ac_lo;;
13392 -'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77" >&5
13393 -echo "$as_me: error: cannot compute sizeof (size_t), 77" >&2;}
13394 +'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
13395 +See \`config.log' for more details." >&5
13396 +echo "$as_me: error: cannot compute sizeof (size_t), 77
13397 +See \`config.log' for more details." >&2;}
13398 { (exit 1); exit 1; }; } ;;
13399 esac
13400 else
13401 if test "$cross_compiling" = yes; then
13402 - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13403 -echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13404 + { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
13405 +echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
13406 { (exit 1); exit 1; }; }
13407 else
13408 cat >conftest.$ac_ext <<_ACEOF
13409 -#line $LINENO "configure"
13410 -#include "confdefs.h"
13411 +/* confdefs.h. */
13412 +_ACEOF
13413 +cat confdefs.h >>conftest.$ac_ext
13414 +cat >>conftest.$ac_ext <<_ACEOF
13415 +/* end confdefs.h. */
13416 $ac_includes_default
13417 long longval () { return (long) (sizeof (size_t)); }
13418 unsigned long ulongval () { return (long) (sizeof (size_t)); }
13419 #include <stdio.h>
13420 #include <stdlib.h>
13421 -#ifdef F77_DUMMY_MAIN
13422 -# ifdef __cplusplus
13423 - extern "C"
13424 -# endif
13425 - int F77_DUMMY_MAIN() { return 1; }
13426 -#endif
13427 int
13428 main ()
13430 @@ -4443,13 +4959,16 @@
13431 else
13432 echo "$as_me: program exited with status $ac_status" >&5
13433 echo "$as_me: failed program was:" >&5
13434 -cat conftest.$ac_ext >&5
13435 +sed 's/^/| /' conftest.$ac_ext >&5
13437 ( exit $ac_status )
13438 -{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77" >&5
13439 -echo "$as_me: error: cannot compute sizeof (size_t), 77" >&2;}
13440 +{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
13441 +See \`config.log' for more details." >&5
13442 +echo "$as_me: error: cannot compute sizeof (size_t), 77
13443 +See \`config.log' for more details." >&2;}
13444 { (exit 1); exit 1; }; }
13445 fi
13446 -rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13447 +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13448 fi
13449 fi
13450 rm -f conftest.val
13451 @@ -4470,15 +4989,12 @@
13452 echo $ECHO_N "(cached) $ECHO_C" >&6
13453 else
13454 cat >conftest.$ac_ext <<_ACEOF
13455 -#line $LINENO "configure"
13456 -#include "confdefs.h"
13457 +/* confdefs.h. */
13458 +_ACEOF
13459 +cat confdefs.h >>conftest.$ac_ext
13460 +cat >>conftest.$ac_ext <<_ACEOF
13461 +/* end confdefs.h. */
13462 $ac_includes_default
13463 -#ifdef F77_DUMMY_MAIN
13464 -# ifdef __cplusplus
13465 - extern "C"
13466 -# endif
13467 - int F77_DUMMY_MAIN() { return 1; }
13468 -#endif
13469 int
13470 main ()
13472 @@ -4492,11 +5008,20 @@
13473 _ACEOF
13474 rm -f conftest.$ac_objext
13475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13476 - (eval $ac_compile) 2>&5
13477 + (eval $ac_compile) 2>conftest.er1
13478 ac_status=$?
13479 + grep -v '^ *+' conftest.er1 >conftest.err
13480 + rm -f conftest.er1
13481 + cat conftest.err >&5
13482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483 (exit $ac_status); } &&
13484 - { ac_try='test -s conftest.$ac_objext'
13485 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13486 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13487 + (eval $ac_try) 2>&5
13488 + ac_status=$?
13489 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 + (exit $ac_status); }; } &&
13491 + { ac_try='test -s conftest.$ac_objext'
13492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13493 (eval $ac_try) 2>&5
13494 ac_status=$?
13495 @@ -4505,10 +5030,11 @@
13496 ac_cv_type_unsigned_int=yes
13497 else
13498 echo "$as_me: failed program was:" >&5
13499 -cat conftest.$ac_ext >&5
13500 +sed 's/^/| /' conftest.$ac_ext >&5
13502 ac_cv_type_unsigned_int=no
13503 fi
13504 -rm -f conftest.$ac_objext conftest.$ac_ext
13505 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13506 fi
13507 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
13508 echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6
13509 @@ -4526,15 +5052,12 @@
13510 if test "$cross_compiling" = yes; then
13511 # Depending upon the size, compute the lo and hi bounds.
13512 cat >conftest.$ac_ext <<_ACEOF
13513 -#line $LINENO "configure"
13514 -#include "confdefs.h"
13515 +/* confdefs.h. */
13516 +_ACEOF
13517 +cat confdefs.h >>conftest.$ac_ext
13518 +cat >>conftest.$ac_ext <<_ACEOF
13519 +/* end confdefs.h. */
13520 $ac_includes_default
13521 -#ifdef F77_DUMMY_MAIN
13522 -# ifdef __cplusplus
13523 - extern "C"
13524 -# endif
13525 - int F77_DUMMY_MAIN() { return 1; }
13526 -#endif
13527 int
13528 main ()
13530 @@ -4547,11 +5070,20 @@
13531 _ACEOF
13532 rm -f conftest.$ac_objext
13533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13534 - (eval $ac_compile) 2>&5
13535 + (eval $ac_compile) 2>conftest.er1
13536 ac_status=$?
13537 + grep -v '^ *+' conftest.er1 >conftest.err
13538 + rm -f conftest.er1
13539 + cat conftest.err >&5
13540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541 (exit $ac_status); } &&
13542 - { ac_try='test -s conftest.$ac_objext'
13543 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13544 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13545 + (eval $ac_try) 2>&5
13546 + ac_status=$?
13547 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 + (exit $ac_status); }; } &&
13549 + { ac_try='test -s conftest.$ac_objext'
13550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13551 (eval $ac_try) 2>&5
13552 ac_status=$?
13553 @@ -4560,15 +5092,12 @@
13554 ac_lo=0 ac_mid=0
13555 while :; do
13556 cat >conftest.$ac_ext <<_ACEOF
13557 -#line $LINENO "configure"
13558 -#include "confdefs.h"
13559 +/* confdefs.h. */
13560 +_ACEOF
13561 +cat confdefs.h >>conftest.$ac_ext
13562 +cat >>conftest.$ac_ext <<_ACEOF
13563 +/* end confdefs.h. */
13564 $ac_includes_default
13565 -#ifdef F77_DUMMY_MAIN
13566 -# ifdef __cplusplus
13567 - extern "C"
13568 -# endif
13569 - int F77_DUMMY_MAIN() { return 1; }
13570 -#endif
13571 int
13572 main ()
13574 @@ -4581,11 +5110,20 @@
13575 _ACEOF
13576 rm -f conftest.$ac_objext
13577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13578 - (eval $ac_compile) 2>&5
13579 + (eval $ac_compile) 2>conftest.er1
13580 ac_status=$?
13581 + grep -v '^ *+' conftest.er1 >conftest.err
13582 + rm -f conftest.er1
13583 + cat conftest.err >&5
13584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585 (exit $ac_status); } &&
13586 - { ac_try='test -s conftest.$ac_objext'
13587 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13588 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13589 + (eval $ac_try) 2>&5
13590 + ac_status=$?
13591 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592 + (exit $ac_status); }; } &&
13593 + { ac_try='test -s conftest.$ac_objext'
13594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13595 (eval $ac_try) 2>&5
13596 ac_status=$?
13597 @@ -4594,29 +5132,28 @@
13598 ac_hi=$ac_mid; break
13599 else
13600 echo "$as_me: failed program was:" >&5
13601 -cat conftest.$ac_ext >&5
13602 +sed 's/^/| /' conftest.$ac_ext >&5
13604 ac_lo=`expr $ac_mid + 1`
13605 - if test $ac_lo -le $ac_mid; then
13606 - ac_lo= ac_hi=
13607 - break
13608 - fi
13609 - ac_mid=`expr 2 '*' $ac_mid + 1`
13610 + if test $ac_lo -le $ac_mid; then
13611 + ac_lo= ac_hi=
13612 + break
13613 + fi
13614 + ac_mid=`expr 2 '*' $ac_mid + 1`
13615 fi
13616 -rm -f conftest.$ac_objext conftest.$ac_ext
13617 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13618 done
13619 else
13620 echo "$as_me: failed program was:" >&5
13621 -cat conftest.$ac_ext >&5
13622 +sed 's/^/| /' conftest.$ac_ext >&5
13624 cat >conftest.$ac_ext <<_ACEOF
13625 -#line $LINENO "configure"
13626 -#include "confdefs.h"
13627 +/* confdefs.h. */
13628 +_ACEOF
13629 +cat confdefs.h >>conftest.$ac_ext
13630 +cat >>conftest.$ac_ext <<_ACEOF
13631 +/* end confdefs.h. */
13632 $ac_includes_default
13633 -#ifdef F77_DUMMY_MAIN
13634 -# ifdef __cplusplus
13635 - extern "C"
13636 -# endif
13637 - int F77_DUMMY_MAIN() { return 1; }
13638 -#endif
13639 int
13640 main ()
13642 @@ -4629,11 +5166,20 @@
13643 _ACEOF
13644 rm -f conftest.$ac_objext
13645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13646 - (eval $ac_compile) 2>&5
13647 + (eval $ac_compile) 2>conftest.er1
13648 ac_status=$?
13649 + grep -v '^ *+' conftest.er1 >conftest.err
13650 + rm -f conftest.er1
13651 + cat conftest.err >&5
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); } &&
13654 - { ac_try='test -s conftest.$ac_objext'
13655 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13656 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13657 + (eval $ac_try) 2>&5
13658 + ac_status=$?
13659 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 + (exit $ac_status); }; } &&
13661 + { ac_try='test -s conftest.$ac_objext'
13662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13663 (eval $ac_try) 2>&5
13664 ac_status=$?
13665 @@ -4642,15 +5188,12 @@
13666 ac_hi=-1 ac_mid=-1
13667 while :; do
13668 cat >conftest.$ac_ext <<_ACEOF
13669 -#line $LINENO "configure"
13670 -#include "confdefs.h"
13671 +/* confdefs.h. */
13672 +_ACEOF
13673 +cat confdefs.h >>conftest.$ac_ext
13674 +cat >>conftest.$ac_ext <<_ACEOF
13675 +/* end confdefs.h. */
13676 $ac_includes_default
13677 -#ifdef F77_DUMMY_MAIN
13678 -# ifdef __cplusplus
13679 - extern "C"
13680 -# endif
13681 - int F77_DUMMY_MAIN() { return 1; }
13682 -#endif
13683 int
13684 main ()
13686 @@ -4663,11 +5206,20 @@
13687 _ACEOF
13688 rm -f conftest.$ac_objext
13689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13690 - (eval $ac_compile) 2>&5
13691 + (eval $ac_compile) 2>conftest.er1
13692 ac_status=$?
13693 + grep -v '^ *+' conftest.er1 >conftest.err
13694 + rm -f conftest.er1
13695 + cat conftest.err >&5
13696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 (exit $ac_status); } &&
13698 - { ac_try='test -s conftest.$ac_objext'
13699 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13700 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13701 + (eval $ac_try) 2>&5
13702 + ac_status=$?
13703 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 + (exit $ac_status); }; } &&
13705 + { ac_try='test -s conftest.$ac_objext'
13706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13707 (eval $ac_try) 2>&5
13708 ac_status=$?
13709 @@ -4676,37 +5228,36 @@
13710 ac_lo=$ac_mid; break
13711 else
13712 echo "$as_me: failed program was:" >&5
13713 -cat conftest.$ac_ext >&5
13714 +sed 's/^/| /' conftest.$ac_ext >&5
13716 ac_hi=`expr '(' $ac_mid ')' - 1`
13717 - if test $ac_mid -le $ac_hi; then
13718 - ac_lo= ac_hi=
13719 - break
13720 - fi
13721 - ac_mid=`expr 2 '*' $ac_mid`
13722 + if test $ac_mid -le $ac_hi; then
13723 + ac_lo= ac_hi=
13724 + break
13725 + fi
13726 + ac_mid=`expr 2 '*' $ac_mid`
13727 fi
13728 -rm -f conftest.$ac_objext conftest.$ac_ext
13729 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13730 done
13731 else
13732 echo "$as_me: failed program was:" >&5
13733 -cat conftest.$ac_ext >&5
13734 +sed 's/^/| /' conftest.$ac_ext >&5
13736 ac_lo= ac_hi=
13737 fi
13738 -rm -f conftest.$ac_objext conftest.$ac_ext
13739 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13740 fi
13741 -rm -f conftest.$ac_objext conftest.$ac_ext
13742 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13743 # Binary search between lo and hi bounds.
13744 while test "x$ac_lo" != "x$ac_hi"; do
13745 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13746 cat >conftest.$ac_ext <<_ACEOF
13747 -#line $LINENO "configure"
13748 -#include "confdefs.h"
13749 +/* confdefs.h. */
13750 +_ACEOF
13751 +cat confdefs.h >>conftest.$ac_ext
13752 +cat >>conftest.$ac_ext <<_ACEOF
13753 +/* end confdefs.h. */
13754 $ac_includes_default
13755 -#ifdef F77_DUMMY_MAIN
13756 -# ifdef __cplusplus
13757 - extern "C"
13758 -# endif
13759 - int F77_DUMMY_MAIN() { return 1; }
13760 -#endif
13761 int
13762 main ()
13764 @@ -4719,11 +5270,20 @@
13765 _ACEOF
13766 rm -f conftest.$ac_objext
13767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13768 - (eval $ac_compile) 2>&5
13769 + (eval $ac_compile) 2>conftest.er1
13770 ac_status=$?
13771 + grep -v '^ *+' conftest.er1 >conftest.err
13772 + rm -f conftest.er1
13773 + cat conftest.err >&5
13774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775 (exit $ac_status); } &&
13776 - { ac_try='test -s conftest.$ac_objext'
13777 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13778 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13779 + (eval $ac_try) 2>&5
13780 + ac_status=$?
13781 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782 + (exit $ac_status); }; } &&
13783 + { ac_try='test -s conftest.$ac_objext'
13784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13785 (eval $ac_try) 2>&5
13786 ac_status=$?
13787 @@ -4732,37 +5292,37 @@
13788 ac_hi=$ac_mid
13789 else
13790 echo "$as_me: failed program was:" >&5
13791 -cat conftest.$ac_ext >&5
13792 +sed 's/^/| /' conftest.$ac_ext >&5
13794 ac_lo=`expr '(' $ac_mid ')' + 1`
13795 fi
13796 -rm -f conftest.$ac_objext conftest.$ac_ext
13797 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13798 done
13799 case $ac_lo in
13800 ?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
13801 -'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77" >&5
13802 -echo "$as_me: error: cannot compute sizeof (unsigned int), 77" >&2;}
13803 +'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
13804 +See \`config.log' for more details." >&5
13805 +echo "$as_me: error: cannot compute sizeof (unsigned int), 77
13806 +See \`config.log' for more details." >&2;}
13807 { (exit 1); exit 1; }; } ;;
13808 esac
13809 else
13810 if test "$cross_compiling" = yes; then
13811 - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13812 -echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13813 + { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
13814 +echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
13815 { (exit 1); exit 1; }; }
13816 else
13817 cat >conftest.$ac_ext <<_ACEOF
13818 -#line $LINENO "configure"
13819 -#include "confdefs.h"
13820 +/* confdefs.h. */
13821 +_ACEOF
13822 +cat confdefs.h >>conftest.$ac_ext
13823 +cat >>conftest.$ac_ext <<_ACEOF
13824 +/* end confdefs.h. */
13825 $ac_includes_default
13826 long longval () { return (long) (sizeof (unsigned int)); }
13827 unsigned long ulongval () { return (long) (sizeof (unsigned int)); }
13828 #include <stdio.h>
13829 #include <stdlib.h>
13830 -#ifdef F77_DUMMY_MAIN
13831 -# ifdef __cplusplus
13832 - extern "C"
13833 -# endif
13834 - int F77_DUMMY_MAIN() { return 1; }
13835 -#endif
13836 int
13837 main ()
13839 @@ -4805,13 +5365,16 @@
13840 else
13841 echo "$as_me: program exited with status $ac_status" >&5
13842 echo "$as_me: failed program was:" >&5
13843 -cat conftest.$ac_ext >&5
13844 +sed 's/^/| /' conftest.$ac_ext >&5
13846 ( exit $ac_status )
13847 -{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77" >&5
13848 -echo "$as_me: error: cannot compute sizeof (unsigned int), 77" >&2;}
13849 +{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
13850 +See \`config.log' for more details." >&5
13851 +echo "$as_me: error: cannot compute sizeof (unsigned int), 77
13852 +See \`config.log' for more details." >&2;}
13853 { (exit 1); exit 1; }; }
13854 fi
13855 -rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13856 +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13857 fi
13858 fi
13859 rm -f conftest.val
13860 @@ -4834,49 +5397,72 @@
13861 echo $ECHO_N "(cached) $ECHO_C" >&6
13862 else
13863 cat >conftest.$ac_ext <<_ACEOF
13864 -#line $LINENO "configure"
13865 -#include "confdefs.h"
13866 +/* confdefs.h. */
13867 +_ACEOF
13868 +cat confdefs.h >>conftest.$ac_ext
13869 +cat >>conftest.$ac_ext <<_ACEOF
13870 +/* end confdefs.h. */
13871 +/* Define setlocale to an innocuous variant, in case <limits.h> declares setlocale.
13872 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
13873 +#define setlocale innocuous_setlocale
13875 /* System header to define __stub macros and hopefully few prototypes,
13876 - which can conflict with char setlocale (); below. */
13877 -#include <assert.h>
13878 + which can conflict with char setlocale (); below.
13879 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13880 + <limits.h> exists even on freestanding compilers. */
13882 +#ifdef __STDC__
13883 +# include <limits.h>
13884 +#else
13885 +# include <assert.h>
13886 +#endif
13888 +#undef setlocale
13890 /* Override any gcc2 internal prototype to avoid an error. */
13891 #ifdef __cplusplus
13892 extern "C"
13893 +{
13894 #endif
13895 /* We use char because int might match the return type of a gcc2
13896 builtin and then its argument prototype would still apply. */
13897 char setlocale ();
13898 -char (*f) ();
13900 -#ifdef F77_DUMMY_MAIN
13901 -# ifdef __cplusplus
13902 - extern "C"
13903 -# endif
13904 - int F77_DUMMY_MAIN() { return 1; }
13905 -#endif
13906 -int
13907 -main ()
13908 -{
13909 /* The GNU C library defines this for functions which it implements
13910 to always fail with ENOSYS. Some functions are actually named
13911 something starting with __ and the normal name is an alias. */
13912 #if defined (__stub_setlocale) || defined (__stub___setlocale)
13913 choke me
13914 #else
13915 -f = setlocale;
13916 +char (*f) () = setlocale;
13917 +#endif
13918 +#ifdef __cplusplus
13919 +}
13920 #endif
13922 +int
13923 +main ()
13924 +{
13925 +return f != setlocale;
13927 return 0;
13929 _ACEOF
13930 rm -f conftest.$ac_objext conftest$ac_exeext
13931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13932 - (eval $ac_link) 2>&5
13933 + (eval $ac_link) 2>conftest.er1
13934 ac_status=$?
13935 + grep -v '^ *+' conftest.er1 >conftest.err
13936 + rm -f conftest.er1
13937 + cat conftest.err >&5
13938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939 (exit $ac_status); } &&
13940 - { ac_try='test -s conftest$ac_exeext'
13941 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13942 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13943 + (eval $ac_try) 2>&5
13944 + ac_status=$?
13945 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946 + (exit $ac_status); }; } &&
13947 + { ac_try='test -s conftest$ac_exeext'
13948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13949 (eval $ac_try) 2>&5
13950 ac_status=$?
13951 @@ -4885,10 +5471,12 @@
13952 ac_cv_func_setlocale=yes
13953 else
13954 echo "$as_me: failed program was:" >&5
13955 -cat conftest.$ac_ext >&5
13956 +sed 's/^/| /' conftest.$ac_ext >&5
13958 ac_cv_func_setlocale=no
13959 fi
13960 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13961 +rm -f conftest.err conftest.$ac_objext \
13962 + conftest$ac_exeext conftest.$ac_ext
13963 fi
13964 echo "$as_me:$LINENO: result: $ac_cv_func_setlocale" >&5
13965 echo "${ECHO_T}$ac_cv_func_setlocale" >&6
13966 @@ -4905,49 +5493,72 @@
13967 echo $ECHO_N "(cached) $ECHO_C" >&6
13968 else
13969 cat >conftest.$ac_ext <<_ACEOF
13970 -#line $LINENO "configure"
13971 -#include "confdefs.h"
13972 +/* confdefs.h. */
13973 +_ACEOF
13974 +cat confdefs.h >>conftest.$ac_ext
13975 +cat >>conftest.$ac_ext <<_ACEOF
13976 +/* end confdefs.h. */
13977 +/* Define towupper to an innocuous variant, in case <limits.h> declares towupper.
13978 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
13979 +#define towupper innocuous_towupper
13981 /* System header to define __stub macros and hopefully few prototypes,
13982 - which can conflict with char towupper (); below. */
13983 -#include <assert.h>
13984 + which can conflict with char towupper (); below.
13985 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13986 + <limits.h> exists even on freestanding compilers. */
13988 +#ifdef __STDC__
13989 +# include <limits.h>
13990 +#else
13991 +# include <assert.h>
13992 +#endif
13994 +#undef towupper
13996 /* Override any gcc2 internal prototype to avoid an error. */
13997 #ifdef __cplusplus
13998 extern "C"
13999 +{
14000 #endif
14001 /* We use char because int might match the return type of a gcc2
14002 builtin and then its argument prototype would still apply. */
14003 char towupper ();
14004 -char (*f) ();
14006 -#ifdef F77_DUMMY_MAIN
14007 -# ifdef __cplusplus
14008 - extern "C"
14009 -# endif
14010 - int F77_DUMMY_MAIN() { return 1; }
14011 -#endif
14012 -int
14013 -main ()
14014 -{
14015 /* The GNU C library defines this for functions which it implements
14016 to always fail with ENOSYS. Some functions are actually named
14017 something starting with __ and the normal name is an alias. */
14018 #if defined (__stub_towupper) || defined (__stub___towupper)
14019 choke me
14020 #else
14021 -f = towupper;
14022 +char (*f) () = towupper;
14023 +#endif
14024 +#ifdef __cplusplus
14025 +}
14026 #endif
14028 +int
14029 +main ()
14030 +{
14031 +return f != towupper;
14033 return 0;
14035 _ACEOF
14036 rm -f conftest.$ac_objext conftest$ac_exeext
14037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14038 - (eval $ac_link) 2>&5
14039 + (eval $ac_link) 2>conftest.er1
14040 ac_status=$?
14041 + grep -v '^ *+' conftest.er1 >conftest.err
14042 + rm -f conftest.er1
14043 + cat conftest.err >&5
14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 (exit $ac_status); } &&
14046 - { ac_try='test -s conftest$ac_exeext'
14047 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14048 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14049 + (eval $ac_try) 2>&5
14050 + ac_status=$?
14051 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052 + (exit $ac_status); }; } &&
14053 + { ac_try='test -s conftest$ac_exeext'
14054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14055 (eval $ac_try) 2>&5
14056 ac_status=$?
14057 @@ -4956,10 +5567,12 @@
14058 ac_cv_func_towupper=yes
14059 else
14060 echo "$as_me: failed program was:" >&5
14061 -cat conftest.$ac_ext >&5
14062 +sed 's/^/| /' conftest.$ac_ext >&5
14064 ac_cv_func_towupper=no
14065 fi
14066 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14067 +rm -f conftest.err conftest.$ac_objext \
14068 + conftest$ac_exeext conftest.$ac_ext
14069 fi
14070 echo "$as_me:$LINENO: result: $ac_cv_func_towupper" >&5
14071 echo "${ECHO_T}$ac_cv_func_towupper" >&6
14072 @@ -4976,49 +5589,72 @@
14073 echo $ECHO_N "(cached) $ECHO_C" >&6
14074 else
14075 cat >conftest.$ac_ext <<_ACEOF
14076 -#line $LINENO "configure"
14077 -#include "confdefs.h"
14078 +/* confdefs.h. */
14079 +_ACEOF
14080 +cat confdefs.h >>conftest.$ac_ext
14081 +cat >>conftest.$ac_ext <<_ACEOF
14082 +/* end confdefs.h. */
14083 +/* Define gettext to an innocuous variant, in case <limits.h> declares gettext.
14084 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
14085 +#define gettext innocuous_gettext
14087 /* System header to define __stub macros and hopefully few prototypes,
14088 - which can conflict with char gettext (); below. */
14089 -#include <assert.h>
14090 + which can conflict with char gettext (); below.
14091 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14092 + <limits.h> exists even on freestanding compilers. */
14094 +#ifdef __STDC__
14095 +# include <limits.h>
14096 +#else
14097 +# include <assert.h>
14098 +#endif
14100 +#undef gettext
14102 /* Override any gcc2 internal prototype to avoid an error. */
14103 #ifdef __cplusplus
14104 extern "C"
14105 +{
14106 #endif
14107 /* We use char because int might match the return type of a gcc2
14108 builtin and then its argument prototype would still apply. */
14109 char gettext ();
14110 -char (*f) ();
14112 -#ifdef F77_DUMMY_MAIN
14113 -# ifdef __cplusplus
14114 - extern "C"
14115 -# endif
14116 - int F77_DUMMY_MAIN() { return 1; }
14117 -#endif
14118 -int
14119 -main ()
14120 -{
14121 /* The GNU C library defines this for functions which it implements
14122 to always fail with ENOSYS. Some functions are actually named
14123 something starting with __ and the normal name is an alias. */
14124 #if defined (__stub_gettext) || defined (__stub___gettext)
14125 choke me
14126 #else
14127 -f = gettext;
14128 +char (*f) () = gettext;
14129 +#endif
14130 +#ifdef __cplusplus
14131 +}
14132 #endif
14134 +int
14135 +main ()
14136 +{
14137 +return f != gettext;
14139 return 0;
14141 _ACEOF
14142 rm -f conftest.$ac_objext conftest$ac_exeext
14143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14144 - (eval $ac_link) 2>&5
14145 + (eval $ac_link) 2>conftest.er1
14146 ac_status=$?
14147 + grep -v '^ *+' conftest.er1 >conftest.err
14148 + rm -f conftest.er1
14149 + cat conftest.err >&5
14150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151 (exit $ac_status); } &&
14152 - { ac_try='test -s conftest$ac_exeext'
14153 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14154 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14155 + (eval $ac_try) 2>&5
14156 + ac_status=$?
14157 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158 + (exit $ac_status); }; } &&
14159 + { ac_try='test -s conftest$ac_exeext'
14160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14161 (eval $ac_try) 2>&5
14162 ac_status=$?
14163 @@ -5027,10 +5663,12 @@
14164 ac_cv_func_gettext=yes
14165 else
14166 echo "$as_me: failed program was:" >&5
14167 -cat conftest.$ac_ext >&5
14168 +sed 's/^/| /' conftest.$ac_ext >&5
14170 ac_cv_func_gettext=no
14171 fi
14172 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14173 +rm -f conftest.err conftest.$ac_objext \
14174 + conftest$ac_exeext conftest.$ac_ext
14175 fi
14176 echo "$as_me:$LINENO: result: $ac_cv_func_gettext" >&5
14177 echo "${ECHO_T}$ac_cv_func_gettext" >&6
14178 @@ -5048,8 +5686,11 @@
14179 ac_check_lib_save_LIBS=$LIBS
14180 LIBS="-lintl $LIBS"
14181 cat >conftest.$ac_ext <<_ACEOF
14182 -#line $LINENO "configure"
14183 -#include "confdefs.h"
14184 +/* confdefs.h. */
14185 +_ACEOF
14186 +cat confdefs.h >>conftest.$ac_ext
14187 +cat >>conftest.$ac_ext <<_ACEOF
14188 +/* end confdefs.h. */
14190 /* Override any gcc2 internal prototype to avoid an error. */
14191 #ifdef __cplusplus
14192 @@ -5058,12 +5699,6 @@
14193 /* We use char because int might match the return type of a gcc2
14194 builtin and then its argument prototype would still apply. */
14195 char gettext ();
14196 -#ifdef F77_DUMMY_MAIN
14197 -# ifdef __cplusplus
14198 - extern "C"
14199 -# endif
14200 - int F77_DUMMY_MAIN() { return 1; }
14201 -#endif
14202 int
14203 main ()
14205 @@ -5074,11 +5709,20 @@
14206 _ACEOF
14207 rm -f conftest.$ac_objext conftest$ac_exeext
14208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14209 - (eval $ac_link) 2>&5
14210 + (eval $ac_link) 2>conftest.er1
14211 ac_status=$?
14212 + grep -v '^ *+' conftest.er1 >conftest.err
14213 + rm -f conftest.er1
14214 + cat conftest.err >&5
14215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216 (exit $ac_status); } &&
14217 - { ac_try='test -s conftest$ac_exeext'
14218 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14219 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14220 + (eval $ac_try) 2>&5
14221 + ac_status=$?
14222 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223 + (exit $ac_status); }; } &&
14224 + { ac_try='test -s conftest$ac_exeext'
14225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14226 (eval $ac_try) 2>&5
14227 ac_status=$?
14228 @@ -5087,10 +5731,12 @@
14229 ac_cv_lib_intl_gettext=yes
14230 else
14231 echo "$as_me: failed program was:" >&5
14232 -cat conftest.$ac_ext >&5
14233 +sed 's/^/| /' conftest.$ac_ext >&5
14235 ac_cv_lib_intl_gettext=no
14236 fi
14237 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14238 +rm -f conftest.err conftest.$ac_objext \
14239 + conftest$ac_exeext conftest.$ac_ext
14240 LIBS=$ac_check_lib_save_LIBS
14241 fi
14242 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
14243 @@ -5105,6 +5751,10 @@
14244 fi
14247 +case "${host}" in
14248 + *-*-gnu*)
14249 + ;;
14250 + *)
14251 echo "$as_me:$LINENO: checking for cthread_fork in -lthreads" >&5
14252 echo $ECHO_N "checking for cthread_fork in -lthreads... $ECHO_C" >&6
14253 if test "${ac_cv_lib_threads_cthread_fork+set}" = set; then
14254 @@ -5113,8 +5763,11 @@
14255 ac_check_lib_save_LIBS=$LIBS
14256 LIBS="-lthreads $LIBS"
14257 cat >conftest.$ac_ext <<_ACEOF
14258 -#line $LINENO "configure"
14259 -#include "confdefs.h"
14260 +/* confdefs.h. */
14261 +_ACEOF
14262 +cat confdefs.h >>conftest.$ac_ext
14263 +cat >>conftest.$ac_ext <<_ACEOF
14264 +/* end confdefs.h. */
14266 /* Override any gcc2 internal prototype to avoid an error. */
14267 #ifdef __cplusplus
14268 @@ -5123,12 +5776,6 @@
14269 /* We use char because int might match the return type of a gcc2
14270 builtin and then its argument prototype would still apply. */
14271 char cthread_fork ();
14272 -#ifdef F77_DUMMY_MAIN
14273 -# ifdef __cplusplus
14274 - extern "C"
14275 -# endif
14276 - int F77_DUMMY_MAIN() { return 1; }
14277 -#endif
14278 int
14279 main ()
14281 @@ -5139,11 +5786,20 @@
14282 _ACEOF
14283 rm -f conftest.$ac_objext conftest$ac_exeext
14284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14285 - (eval $ac_link) 2>&5
14286 + (eval $ac_link) 2>conftest.er1
14287 ac_status=$?
14288 + grep -v '^ *+' conftest.er1 >conftest.err
14289 + rm -f conftest.er1
14290 + cat conftest.err >&5
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); } &&
14293 - { ac_try='test -s conftest$ac_exeext'
14294 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14295 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14296 + (eval $ac_try) 2>&5
14297 + ac_status=$?
14298 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299 + (exit $ac_status); }; } &&
14300 + { ac_try='test -s conftest$ac_exeext'
14301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14302 (eval $ac_try) 2>&5
14303 ac_status=$?
14304 @@ -5152,10 +5808,12 @@
14305 ac_cv_lib_threads_cthread_fork=yes
14306 else
14307 echo "$as_me: failed program was:" >&5
14308 -cat conftest.$ac_ext >&5
14309 +sed 's/^/| /' conftest.$ac_ext >&5
14311 ac_cv_lib_threads_cthread_fork=no
14312 fi
14313 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14314 +rm -f conftest.err conftest.$ac_objext \
14315 + conftest$ac_exeext conftest.$ac_ext
14316 LIBS=$ac_check_lib_save_LIBS
14317 fi
14318 echo "$as_me:$LINENO: result: $ac_cv_lib_threads_cthread_fork" >&5
14319 @@ -5165,6 +5823,7 @@
14320 else
14321 LIB_THREADS=""
14322 fi
14323 +esac
14327 @@ -5183,19 +5842,16 @@
14328 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14330 cat >conftest.$ac_ext <<_ACEOF
14331 -#line $LINENO "configure"
14332 -#include "confdefs.h"
14333 +/* confdefs.h. */
14334 +_ACEOF
14335 +cat confdefs.h >>conftest.$ac_ext
14336 +cat >>conftest.$ac_ext <<_ACEOF
14337 +/* end confdefs.h. */
14338 #include <unistd.h>
14340 template<class T> class foo { };
14343 -#ifdef F77_DUMMY_MAIN
14344 -# ifdef __cplusplus
14345 - extern "C"
14346 -# endif
14347 - int F77_DUMMY_MAIN() { return 1; }
14348 -#endif
14349 int
14350 main ()
14352 @@ -5210,11 +5866,20 @@
14353 _ACEOF
14354 rm -f conftest.$ac_objext
14355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14356 - (eval $ac_compile) 2>&5
14357 + (eval $ac_compile) 2>conftest.er1
14358 ac_status=$?
14359 + grep -v '^ *+' conftest.er1 >conftest.err
14360 + rm -f conftest.er1
14361 + cat conftest.err >&5
14362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363 (exit $ac_status); } &&
14364 - { ac_try='test -s conftest.$ac_objext'
14365 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14366 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14367 + (eval $ac_try) 2>&5
14368 + ac_status=$?
14369 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 + (exit $ac_status); }; } &&
14371 + { ac_try='test -s conftest.$ac_objext'
14372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14373 (eval $ac_try) 2>&5
14374 ac_status=$?
14375 @@ -5223,9 +5888,10 @@
14376 ac_cv_size_t_is_uint=yes
14377 else
14378 echo "$as_me: failed program was:" >&5
14379 -cat conftest.$ac_ext >&5
14380 +sed 's/^/| /' conftest.$ac_ext >&5
14382 fi
14383 -rm -f conftest.$ac_objext conftest.$ac_ext
14384 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14385 ac_ext=c
14386 ac_cpp='$CPP $CPPFLAGS'
14387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14388 @@ -5253,15 +5919,12 @@
14389 echo $ECHO_N "(cached) $ECHO_C" >&6
14390 else
14391 cat >conftest.$ac_ext <<_ACEOF
14392 -#line $LINENO "configure"
14393 -#include "confdefs.h"
14394 +/* confdefs.h. */
14395 +_ACEOF
14396 +cat confdefs.h >>conftest.$ac_ext
14397 +cat >>conftest.$ac_ext <<_ACEOF
14398 +/* end confdefs.h. */
14400 -#ifdef F77_DUMMY_MAIN
14401 -# ifdef __cplusplus
14402 - extern "C"
14403 -# endif
14404 - int F77_DUMMY_MAIN() { return 1; }
14405 -#endif
14406 int
14407 main ()
14409 @@ -5272,11 +5935,20 @@
14410 _ACEOF
14411 rm -f conftest.$ac_objext conftest$ac_exeext
14412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14413 - (eval $ac_link) 2>&5
14414 + (eval $ac_link) 2>conftest.er1
14415 ac_status=$?
14416 + grep -v '^ *+' conftest.er1 >conftest.err
14417 + rm -f conftest.er1
14418 + cat conftest.err >&5
14419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420 (exit $ac_status); } &&
14421 - { ac_try='test -s conftest$ac_exeext'
14422 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14423 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14424 + (eval $ac_try) 2>&5
14425 + ac_status=$?
14426 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 + (exit $ac_status); }; } &&
14428 + { ac_try='test -s conftest$ac_exeext'
14429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14430 (eval $ac_try) 2>&5
14431 ac_status=$?
14432 @@ -5285,10 +5957,12 @@
14433 ac_cv_typedef_bool=yes
14434 else
14435 echo "$as_me: failed program was:" >&5
14436 -cat conftest.$ac_ext >&5
14437 +sed 's/^/| /' conftest.$ac_ext >&5
14439 ac_cv_typedef_bool=no
14440 fi
14441 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14442 +rm -f conftest.err conftest.$ac_objext \
14443 + conftest$ac_exeext conftest.$ac_ext
14444 fi
14445 echo "$as_me:$LINENO: result: $ac_cv_typedef_bool" >&5
14446 echo "${ECHO_T}$ac_cv_typedef_bool" >&6
14447 @@ -5306,8 +5980,11 @@
14448 echo $ECHO_N "(cached) $ECHO_C" >&6
14449 else
14450 cat >conftest.$ac_ext <<_ACEOF
14451 -#line $LINENO "configure"
14452 -#include "confdefs.h"
14453 +/* confdefs.h. */
14454 +_ACEOF
14455 +cat confdefs.h >>conftest.$ac_ext
14456 +cat >>conftest.$ac_ext <<_ACEOF
14457 +/* end confdefs.h. */
14459 class foo {
14460 };
14461 @@ -5317,12 +5994,6 @@
14462 T *data();};
14463 template class test<foo>;
14465 -#ifdef F77_DUMMY_MAIN
14466 -# ifdef __cplusplus
14467 - extern "C"
14468 -# endif
14469 - int F77_DUMMY_MAIN() { return 1; }
14470 -#endif
14471 int
14472 main ()
14474 @@ -5333,11 +6004,20 @@
14475 _ACEOF
14476 rm -f conftest.$ac_objext conftest$ac_exeext
14477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14478 - (eval $ac_link) 2>&5
14479 + (eval $ac_link) 2>conftest.er1
14480 ac_status=$?
14481 + grep -v '^ *+' conftest.er1 >conftest.err
14482 + rm -f conftest.er1
14483 + cat conftest.err >&5
14484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485 (exit $ac_status); } &&
14486 - { ac_try='test -s conftest$ac_exeext'
14487 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14488 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14489 + (eval $ac_try) 2>&5
14490 + ac_status=$?
14491 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492 + (exit $ac_status); }; } &&
14493 + { ac_try='test -s conftest$ac_exeext'
14494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14495 (eval $ac_try) 2>&5
14496 ac_status=$?
14497 @@ -5346,10 +6026,12 @@
14498 ac_cv_c_template_ansi=yes
14499 else
14500 echo "$as_me: failed program was:" >&5
14501 -cat conftest.$ac_ext >&5
14502 +sed 's/^/| /' conftest.$ac_ext >&5
14504 ac_cv_c_template_ansi=no
14505 fi
14506 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14507 +rm -f conftest.err conftest.$ac_objext \
14508 + conftest$ac_exeext conftest.$ac_ext
14509 fi
14510 echo "$as_me:$LINENO: result: $ac_cv_c_template_ansi" >&5
14511 echo "${ECHO_T}$ac_cv_c_template_ansi" >&6
14512 @@ -5382,24 +6064,34 @@
14513 do
14514 # Use a header file that comes with gcc, so configuring glibc
14515 # with a fresh cross-compiler works.
14516 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14517 + # <limits.h> exists even on freestanding compilers.
14518 # On the NeXT, cc -E runs the code through the compiler's parser,
14519 # not just through cpp. "Syntax error" is here to catch this case.
14520 cat >conftest.$ac_ext <<_ACEOF
14521 -#line $LINENO "configure"
14522 -#include "confdefs.h"
14523 -#include <assert.h>
14524 - Syntax error
14525 +/* confdefs.h. */
14526 +_ACEOF
14527 +cat confdefs.h >>conftest.$ac_ext
14528 +cat >>conftest.$ac_ext <<_ACEOF
14529 +/* end confdefs.h. */
14530 +#ifdef __STDC__
14531 +# include <limits.h>
14532 +#else
14533 +# include <assert.h>
14534 +#endif
14535 + Syntax error
14536 _ACEOF
14537 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14538 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14539 ac_status=$?
14540 - egrep -v '^ *\+' conftest.er1 >conftest.err
14541 + grep -v '^ *+' conftest.er1 >conftest.err
14542 rm -f conftest.er1
14543 cat conftest.err >&5
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); } >/dev/null; then
14546 if test -s conftest.err; then
14547 ac_cpp_err=$ac_cxx_preproc_warn_flag
14548 + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14549 else
14550 ac_cpp_err=
14551 fi
14552 @@ -5410,7 +6102,8 @@
14554 else
14555 echo "$as_me: failed program was:" >&5
14556 - cat conftest.$ac_ext >&5
14557 +sed 's/^/| /' conftest.$ac_ext >&5
14559 # Broken: fails on valid input.
14560 continue
14561 fi
14562 @@ -5419,20 +6112,24 @@
14563 # OK, works on sane cases. Now check whether non-existent headers
14564 # can be detected and how.
14565 cat >conftest.$ac_ext <<_ACEOF
14566 -#line $LINENO "configure"
14567 -#include "confdefs.h"
14568 +/* confdefs.h. */
14569 +_ACEOF
14570 +cat confdefs.h >>conftest.$ac_ext
14571 +cat >>conftest.$ac_ext <<_ACEOF
14572 +/* end confdefs.h. */
14573 #include <ac_nonexistent.h>
14574 _ACEOF
14575 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14576 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14577 ac_status=$?
14578 - egrep -v '^ *\+' conftest.er1 >conftest.err
14579 + grep -v '^ *+' conftest.er1 >conftest.err
14580 rm -f conftest.er1
14581 cat conftest.err >&5
14582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14583 (exit $ac_status); } >/dev/null; then
14584 if test -s conftest.err; then
14585 ac_cpp_err=$ac_cxx_preproc_warn_flag
14586 + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14587 else
14588 ac_cpp_err=
14589 fi
14590 @@ -5444,7 +6141,8 @@
14591 continue
14592 else
14593 echo "$as_me: failed program was:" >&5
14594 - cat conftest.$ac_ext >&5
14595 +sed 's/^/| /' conftest.$ac_ext >&5
14597 # Passes both tests.
14598 ac_preproc_ok=:
14599 break
14600 @@ -5473,24 +6171,34 @@
14601 do
14602 # Use a header file that comes with gcc, so configuring glibc
14603 # with a fresh cross-compiler works.
14604 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14605 + # <limits.h> exists even on freestanding compilers.
14606 # On the NeXT, cc -E runs the code through the compiler's parser,
14607 # not just through cpp. "Syntax error" is here to catch this case.
14608 cat >conftest.$ac_ext <<_ACEOF
14609 -#line $LINENO "configure"
14610 -#include "confdefs.h"
14611 -#include <assert.h>
14612 - Syntax error
14613 +/* confdefs.h. */
14614 +_ACEOF
14615 +cat confdefs.h >>conftest.$ac_ext
14616 +cat >>conftest.$ac_ext <<_ACEOF
14617 +/* end confdefs.h. */
14618 +#ifdef __STDC__
14619 +# include <limits.h>
14620 +#else
14621 +# include <assert.h>
14622 +#endif
14623 + Syntax error
14624 _ACEOF
14625 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14626 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14627 ac_status=$?
14628 - egrep -v '^ *\+' conftest.er1 >conftest.err
14629 + grep -v '^ *+' conftest.er1 >conftest.err
14630 rm -f conftest.er1
14631 cat conftest.err >&5
14632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633 (exit $ac_status); } >/dev/null; then
14634 if test -s conftest.err; then
14635 ac_cpp_err=$ac_cxx_preproc_warn_flag
14636 + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14637 else
14638 ac_cpp_err=
14639 fi
14640 @@ -5501,7 +6209,8 @@
14642 else
14643 echo "$as_me: failed program was:" >&5
14644 - cat conftest.$ac_ext >&5
14645 +sed 's/^/| /' conftest.$ac_ext >&5
14647 # Broken: fails on valid input.
14648 continue
14649 fi
14650 @@ -5510,20 +6219,24 @@
14651 # OK, works on sane cases. Now check whether non-existent headers
14652 # can be detected and how.
14653 cat >conftest.$ac_ext <<_ACEOF
14654 -#line $LINENO "configure"
14655 -#include "confdefs.h"
14656 +/* confdefs.h. */
14657 +_ACEOF
14658 +cat confdefs.h >>conftest.$ac_ext
14659 +cat >>conftest.$ac_ext <<_ACEOF
14660 +/* end confdefs.h. */
14661 #include <ac_nonexistent.h>
14662 _ACEOF
14663 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14664 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14665 ac_status=$?
14666 - egrep -v '^ *\+' conftest.er1 >conftest.err
14667 + grep -v '^ *+' conftest.er1 >conftest.err
14668 rm -f conftest.er1
14669 cat conftest.err >&5
14670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671 (exit $ac_status); } >/dev/null; then
14672 if test -s conftest.err; then
14673 ac_cpp_err=$ac_cxx_preproc_warn_flag
14674 + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14675 else
14676 ac_cpp_err=
14677 fi
14678 @@ -5535,7 +6248,8 @@
14679 continue
14680 else
14681 echo "$as_me: failed program was:" >&5
14682 - cat conftest.$ac_ext >&5
14683 +sed 's/^/| /' conftest.$ac_ext >&5
14685 # Passes both tests.
14686 ac_preproc_ok=:
14687 break
14688 @@ -5548,8 +6262,10 @@
14689 if $ac_preproc_ok; then
14691 else
14692 - { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
14693 -echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
14694 + { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14695 +See \`config.log' for more details." >&5
14696 +echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14697 +See \`config.log' for more details." >&2;}
14698 { (exit 1); exit 1; }; }
14699 fi
14701 @@ -5579,16 +6295,13 @@
14702 ac_check_lib_save_LIBS=$LIBS
14703 LIBS="-lnsl $LIBS"
14704 cat >conftest.$ac_ext <<_ACEOF
14705 -#line $LINENO "configure"
14706 -#include "confdefs.h"
14707 +/* confdefs.h. */
14708 +_ACEOF
14709 +cat confdefs.h >>conftest.$ac_ext
14710 +cat >>conftest.$ac_ext <<_ACEOF
14711 +/* end confdefs.h. */
14714 -#ifdef F77_DUMMY_MAIN
14715 -# ifdef __cplusplus
14716 - extern "C"
14717 -# endif
14718 - int F77_DUMMY_MAIN() { return 1; }
14719 -#endif
14720 int
14721 main ()
14723 @@ -5599,11 +6312,20 @@
14724 _ACEOF
14725 rm -f conftest.$ac_objext conftest$ac_exeext
14726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14727 - (eval $ac_link) 2>&5
14728 + (eval $ac_link) 2>conftest.er1
14729 ac_status=$?
14730 + grep -v '^ *+' conftest.er1 >conftest.err
14731 + rm -f conftest.er1
14732 + cat conftest.err >&5
14733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734 (exit $ac_status); } &&
14735 - { ac_try='test -s conftest$ac_exeext'
14736 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14737 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14738 + (eval $ac_try) 2>&5
14739 + ac_status=$?
14740 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741 + (exit $ac_status); }; } &&
14742 + { ac_try='test -s conftest$ac_exeext'
14743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14744 (eval $ac_try) 2>&5
14745 ac_status=$?
14746 @@ -5612,10 +6334,12 @@
14747 ac_cv_lib_nsl_main=yes
14748 else
14749 echo "$as_me: failed program was:" >&5
14750 -cat conftest.$ac_ext >&5
14751 +sed 's/^/| /' conftest.$ac_ext >&5
14753 ac_cv_lib_nsl_main=no
14754 fi
14755 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14756 +rm -f conftest.err conftest.$ac_objext \
14757 + conftest$ac_exeext conftest.$ac_ext
14758 LIBS=$ac_check_lib_save_LIBS
14759 fi
14760 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
14761 @@ -5632,16 +6356,13 @@
14762 ac_check_lib_save_LIBS=$LIBS
14763 LIBS="-lsocket $LIBS"
14764 cat >conftest.$ac_ext <<_ACEOF
14765 -#line $LINENO "configure"
14766 -#include "confdefs.h"
14767 +/* confdefs.h. */
14768 +_ACEOF
14769 +cat confdefs.h >>conftest.$ac_ext
14770 +cat >>conftest.$ac_ext <<_ACEOF
14771 +/* end confdefs.h. */
14774 -#ifdef F77_DUMMY_MAIN
14775 -# ifdef __cplusplus
14776 - extern "C"
14777 -# endif
14778 - int F77_DUMMY_MAIN() { return 1; }
14779 -#endif
14780 int
14781 main ()
14783 @@ -5652,11 +6373,20 @@
14784 _ACEOF
14785 rm -f conftest.$ac_objext conftest$ac_exeext
14786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14787 - (eval $ac_link) 2>&5
14788 + (eval $ac_link) 2>conftest.er1
14789 ac_status=$?
14790 + grep -v '^ *+' conftest.er1 >conftest.err
14791 + rm -f conftest.er1
14792 + cat conftest.err >&5
14793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); } &&
14795 - { ac_try='test -s conftest$ac_exeext'
14796 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14797 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14798 + (eval $ac_try) 2>&5
14799 + ac_status=$?
14800 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801 + (exit $ac_status); }; } &&
14802 + { ac_try='test -s conftest$ac_exeext'
14803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14804 (eval $ac_try) 2>&5
14805 ac_status=$?
14806 @@ -5665,10 +6395,12 @@
14807 ac_cv_lib_socket_main=yes
14808 else
14809 echo "$as_me: failed program was:" >&5
14810 -cat conftest.$ac_ext >&5
14811 +sed 's/^/| /' conftest.$ac_ext >&5
14813 ac_cv_lib_socket_main=no
14814 fi
14815 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14816 +rm -f conftest.err conftest.$ac_objext \
14817 + conftest$ac_exeext conftest.$ac_ext
14818 LIBS=$ac_check_lib_save_LIBS
14819 fi
14820 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14821 @@ -5680,13 +6412,16 @@
14822 echo "$as_me:$LINENO: checking h_errno in netdb.h" >&5
14823 echo $ECHO_N "checking h_errno in netdb.h... $ECHO_C" >&6
14824 cat >conftest.$ac_ext <<_ACEOF
14825 -#line $LINENO "configure"
14826 -#include "confdefs.h"
14827 +/* confdefs.h. */
14828 +_ACEOF
14829 +cat confdefs.h >>conftest.$ac_ext
14830 +cat >>conftest.$ac_ext <<_ACEOF
14831 +/* end confdefs.h. */
14832 #include <netdb.h>
14834 _ACEOF
14835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14836 - egrep "h_errno" >/dev/null 2>&1; then
14837 + $EGREP "h_errno" >/dev/null 2>&1; then
14838 echo "$as_me:$LINENO: result: yes" >&5
14839 echo "${ECHO_T}yes" >&6
14840 else
14841 @@ -6417,18 +7152,30 @@
14842 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14843 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14844 cat >conftest.$ac_ext <<_ACEOF
14845 -#line $LINENO "configure"
14846 -#include "confdefs.h"
14847 +/* confdefs.h. */
14848 +_ACEOF
14849 +cat confdefs.h >>conftest.$ac_ext
14850 +cat >>conftest.$ac_ext <<_ACEOF
14851 +/* end confdefs.h. */
14852 $ac_includes_default
14853 #include <$ac_header>
14854 _ACEOF
14855 rm -f conftest.$ac_objext
14856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14857 - (eval $ac_compile) 2>&5
14858 + (eval $ac_compile) 2>conftest.er1
14859 ac_status=$?
14860 + grep -v '^ *+' conftest.er1 >conftest.err
14861 + rm -f conftest.er1
14862 + cat conftest.err >&5
14863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864 (exit $ac_status); } &&
14865 - { ac_try='test -s conftest.$ac_objext'
14866 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14867 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14868 + (eval $ac_try) 2>&5
14869 + ac_status=$?
14870 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871 + (exit $ac_status); }; } &&
14872 + { ac_try='test -s conftest.$ac_objext'
14873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14874 (eval $ac_try) 2>&5
14875 ac_status=$?
14876 @@ -6437,10 +7184,11 @@
14877 ac_header_compiler=yes
14878 else
14879 echo "$as_me: failed program was:" >&5
14880 -cat conftest.$ac_ext >&5
14881 +sed 's/^/| /' conftest.$ac_ext >&5
14883 ac_header_compiler=no
14884 fi
14885 -rm -f conftest.$ac_objext conftest.$ac_ext
14886 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14887 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14888 echo "${ECHO_T}$ac_header_compiler" >&6
14890 @@ -6448,20 +7196,24 @@
14891 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14892 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14893 cat >conftest.$ac_ext <<_ACEOF
14894 -#line $LINENO "configure"
14895 -#include "confdefs.h"
14896 +/* confdefs.h. */
14897 +_ACEOF
14898 +cat confdefs.h >>conftest.$ac_ext
14899 +cat >>conftest.$ac_ext <<_ACEOF
14900 +/* end confdefs.h. */
14901 #include <$ac_header>
14902 _ACEOF
14903 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14904 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14905 ac_status=$?
14906 - egrep -v '^ *\+' conftest.er1 >conftest.err
14907 + grep -v '^ *+' conftest.er1 >conftest.err
14908 rm -f conftest.er1
14909 cat conftest.err >&5
14910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911 (exit $ac_status); } >/dev/null; then
14912 if test -s conftest.err; then
14913 ac_cpp_err=$ac_cxx_preproc_warn_flag
14914 + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14915 else
14916 ac_cpp_err=
14917 fi
14918 @@ -6472,7 +7224,8 @@
14919 ac_header_preproc=yes
14920 else
14921 echo "$as_me: failed program was:" >&5
14922 - cat conftest.$ac_ext >&5
14923 +sed 's/^/| /' conftest.$ac_ext >&5
14925 ac_header_preproc=no
14926 fi
14927 rm -f conftest.err conftest.$ac_ext
14928 @@ -6480,26 +7233,43 @@
14929 echo "${ECHO_T}$ac_header_preproc" >&6
14931 # So? What about this header?
14932 -case $ac_header_compiler:$ac_header_preproc in
14933 - yes:no )
14934 +case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
14935 + yes:no: )
14936 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14937 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14938 - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14939 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14940 - no:yes )
14941 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14942 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14943 + ac_header_preproc=yes
14944 + ;;
14945 + no:yes:* )
14946 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14947 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14948 - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14949 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14950 + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14951 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14952 + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14953 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14954 + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14955 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14956 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14957 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14958 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14959 + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14960 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14961 + (
14962 + cat <<\_ASBOX
14963 +## ------------------------------------------ ##
14964 +## Report this to the AC_PACKAGE_NAME lists. ##
14965 +## ------------------------------------------ ##
14966 +_ASBOX
14967 + ) |
14968 + sed "s/^/$as_me: WARNING: /" >&2
14969 + ;;
14970 esac
14971 echo "$as_me:$LINENO: checking for $ac_header" >&5
14972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14974 echo $ECHO_N "(cached) $ECHO_C" >&6
14975 else
14976 - eval "$as_ac_Header=$ac_header_preproc"
14977 + eval "$as_ac_Header=\$ac_header_preproc"
14978 fi
14979 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14980 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14981 @@ -6833,7 +7603,7 @@
14982 case $host in
14983 *-*-irix6*)
14984 # Find out which ABI we are using.
14985 - echo '#line 6836 "configure"' > conftest.$ac_ext
14986 + echo '#line 7601 "configure"' > conftest.$ac_ext
14987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14988 (eval $ac_compile) 2>&5
14989 ac_status=$?
14990 @@ -6872,15 +7642,12 @@
14991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14993 cat >conftest.$ac_ext <<_ACEOF
14994 -#line $LINENO "configure"
14995 -#include "confdefs.h"
14996 +/* confdefs.h. */
14997 +_ACEOF
14998 +cat confdefs.h >>conftest.$ac_ext
14999 +cat >>conftest.$ac_ext <<_ACEOF
15000 +/* end confdefs.h. */
15002 -#ifdef F77_DUMMY_MAIN
15003 -# ifdef __cplusplus
15004 - extern "C"
15005 -# endif
15006 - int F77_DUMMY_MAIN() { return 1; }
15007 -#endif
15008 int
15009 main ()
15011 @@ -6891,11 +7658,20 @@
15012 _ACEOF
15013 rm -f conftest.$ac_objext conftest$ac_exeext
15014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15015 - (eval $ac_link) 2>&5
15016 + (eval $ac_link) 2>conftest.er1
15017 ac_status=$?
15018 + grep -v '^ *+' conftest.er1 >conftest.err
15019 + rm -f conftest.er1
15020 + cat conftest.err >&5
15021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15022 (exit $ac_status); } &&
15023 - { ac_try='test -s conftest$ac_exeext'
15024 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15025 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15026 + (eval $ac_try) 2>&5
15027 + ac_status=$?
15028 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029 + (exit $ac_status); }; } &&
15030 + { ac_try='test -s conftest$ac_exeext'
15031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15032 (eval $ac_try) 2>&5
15033 ac_status=$?
15034 @@ -6904,10 +7680,12 @@
15035 lt_cv_cc_needs_belf=yes
15036 else
15037 echo "$as_me: failed program was:" >&5
15038 -cat conftest.$ac_ext >&5
15039 +sed 's/^/| /' conftest.$ac_ext >&5
15041 lt_cv_cc_needs_belf=no
15042 fi
15043 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15044 +rm -f conftest.err conftest.$ac_objext \
15045 + conftest$ac_exeext conftest.$ac_ext
15046 ac_ext=cc
15047 ac_cpp='$CXXCPP $CPPFLAGS'
15048 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15049 @@ -7199,15 +7977,12 @@
15050 save_CFLAGS="$CFLAGS"
15051 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
15052 cat >conftest.$ac_ext <<_ACEOF
15053 -#line $LINENO "configure"
15054 -#include "confdefs.h"
15055 +/* confdefs.h. */
15056 +_ACEOF
15057 +cat confdefs.h >>conftest.$ac_ext
15058 +cat >>conftest.$ac_ext <<_ACEOF
15059 +/* end confdefs.h. */
15061 -#ifdef F77_DUMMY_MAIN
15062 -# ifdef __cplusplus
15063 - extern "C"
15064 -# endif
15065 - int F77_DUMMY_MAIN() { return 1; }
15066 -#endif
15067 int
15068 main ()
15070 @@ -7218,11 +7993,20 @@
15071 _ACEOF
15072 rm -f conftest.$ac_objext
15073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15074 - (eval $ac_compile) 2>&5
15075 + (eval $ac_compile) 2>conftest.er1
15076 ac_status=$?
15077 + grep -v '^ *+' conftest.er1 >conftest.err
15078 + rm -f conftest.er1
15079 + cat conftest.err >&5
15080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081 (exit $ac_status); } &&
15082 - { ac_try='test -s conftest.$ac_objext'
15083 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15084 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15085 + (eval $ac_try) 2>&5
15086 + ac_status=$?
15087 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088 + (exit $ac_status); }; } &&
15089 + { ac_try='test -s conftest.$ac_objext'
15090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15091 (eval $ac_try) 2>&5
15092 ac_status=$?
15093 @@ -7246,11 +8030,12 @@
15095 else
15096 echo "$as_me: failed program was:" >&5
15097 -cat conftest.$ac_ext >&5
15098 +sed 's/^/| /' conftest.$ac_ext >&5
15100 lt_cv_prog_cc_pic_works=no
15102 fi
15103 -rm -f conftest.$ac_objext conftest.$ac_ext
15104 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15105 CFLAGS="$save_CFLAGS"
15107 fi
15108 @@ -7288,15 +8073,12 @@
15109 save_LDFLAGS="$LDFLAGS"
15110 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
15111 cat >conftest.$ac_ext <<_ACEOF
15112 -#line $LINENO "configure"
15113 -#include "confdefs.h"
15114 +/* confdefs.h. */
15115 +_ACEOF
15116 +cat confdefs.h >>conftest.$ac_ext
15117 +cat >>conftest.$ac_ext <<_ACEOF
15118 +/* end confdefs.h. */
15120 -#ifdef F77_DUMMY_MAIN
15121 -# ifdef __cplusplus
15122 - extern "C"
15123 -# endif
15124 - int F77_DUMMY_MAIN() { return 1; }
15125 -#endif
15126 int
15127 main ()
15129 @@ -7307,11 +8089,20 @@
15130 _ACEOF
15131 rm -f conftest.$ac_objext conftest$ac_exeext
15132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15133 - (eval $ac_link) 2>&5
15134 + (eval $ac_link) 2>conftest.er1
15135 ac_status=$?
15136 + grep -v '^ *+' conftest.er1 >conftest.err
15137 + rm -f conftest.er1
15138 + cat conftest.err >&5
15139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 (exit $ac_status); } &&
15141 - { ac_try='test -s conftest$ac_exeext'
15142 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15143 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15144 + (eval $ac_try) 2>&5
15145 + ac_status=$?
15146 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147 + (exit $ac_status); }; } &&
15148 + { ac_try='test -s conftest$ac_exeext'
15149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15150 (eval $ac_try) 2>&5
15151 ac_status=$?
15152 @@ -7320,9 +8111,11 @@
15153 lt_cv_prog_cc_static_works=yes
15154 else
15155 echo "$as_me: failed program was:" >&5
15156 -cat conftest.$ac_ext >&5
15157 +sed 's/^/| /' conftest.$ac_ext >&5
15159 fi
15160 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15161 +rm -f conftest.err conftest.$ac_objext \
15162 + conftest$ac_exeext conftest.$ac_ext
15163 LDFLAGS="$save_LDFLAGS"
15165 fi
15166 @@ -7362,7 +8155,7 @@
15167 save_CFLAGS="$CFLAGS"
15168 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
15169 compiler_c_o=no
15170 -if { (eval echo configure:7365: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
15171 +if { (eval echo configure:8153: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
15172 # The compiler can only warn and ignore the option if not recognized
15173 # So say no if there are warnings
15174 if test -s out/conftest.err; then
15175 @@ -7401,15 +8194,12 @@
15176 save_CFLAGS="$CFLAGS"
15177 CFLAGS="$CFLAGS -c -o conftest.lo"
15178 cat >conftest.$ac_ext <<_ACEOF
15179 -#line $LINENO "configure"
15180 -#include "confdefs.h"
15181 +/* confdefs.h. */
15182 +_ACEOF
15183 +cat confdefs.h >>conftest.$ac_ext
15184 +cat >>conftest.$ac_ext <<_ACEOF
15185 +/* end confdefs.h. */
15187 -#ifdef F77_DUMMY_MAIN
15188 -# ifdef __cplusplus
15189 - extern "C"
15190 -# endif
15191 - int F77_DUMMY_MAIN() { return 1; }
15192 -#endif
15193 int
15194 main ()
15196 @@ -7420,11 +8210,20 @@
15197 _ACEOF
15198 rm -f conftest.$ac_objext
15199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15200 - (eval $ac_compile) 2>&5
15201 + (eval $ac_compile) 2>conftest.er1
15202 ac_status=$?
15203 + grep -v '^ *+' conftest.er1 >conftest.err
15204 + rm -f conftest.er1
15205 + cat conftest.err >&5
15206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207 (exit $ac_status); } &&
15208 - { ac_try='test -s conftest.$ac_objext'
15209 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15210 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15211 + (eval $ac_try) 2>&5
15212 + ac_status=$?
15213 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214 + (exit $ac_status); }; } &&
15215 + { ac_try='test -s conftest.$ac_objext'
15216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15217 (eval $ac_try) 2>&5
15218 ac_status=$?
15219 @@ -7440,9 +8239,10 @@
15221 else
15222 echo "$as_me: failed program was:" >&5
15223 -cat conftest.$ac_ext >&5
15224 +sed 's/^/| /' conftest.$ac_ext >&5
15226 fi
15227 -rm -f conftest.$ac_objext conftest.$ac_ext
15228 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15229 CFLAGS="$save_CFLAGS"
15231 fi
15232 @@ -7486,15 +8286,12 @@
15233 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
15234 compiler_rtti_exceptions=no
15235 cat >conftest.$ac_ext <<_ACEOF
15236 -#line $LINENO "configure"
15237 -#include "confdefs.h"
15238 +/* confdefs.h. */
15239 +_ACEOF
15240 +cat confdefs.h >>conftest.$ac_ext
15241 +cat >>conftest.$ac_ext <<_ACEOF
15242 +/* end confdefs.h. */
15244 -#ifdef F77_DUMMY_MAIN
15245 -# ifdef __cplusplus
15246 - extern "C"
15247 -# endif
15248 - int F77_DUMMY_MAIN() { return 1; }
15249 -#endif
15250 int
15251 main ()
15253 @@ -7505,11 +8302,20 @@
15254 _ACEOF
15255 rm -f conftest.$ac_objext
15256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15257 - (eval $ac_compile) 2>&5
15258 + (eval $ac_compile) 2>conftest.er1
15259 ac_status=$?
15260 + grep -v '^ *+' conftest.er1 >conftest.err
15261 + rm -f conftest.er1
15262 + cat conftest.err >&5
15263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15264 (exit $ac_status); } &&
15265 - { ac_try='test -s conftest.$ac_objext'
15266 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15267 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15268 + (eval $ac_try) 2>&5
15269 + ac_status=$?
15270 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271 + (exit $ac_status); }; } &&
15272 + { ac_try='test -s conftest.$ac_objext'
15273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15274 (eval $ac_try) 2>&5
15275 ac_status=$?
15276 @@ -7525,9 +8331,10 @@
15278 else
15279 echo "$as_me: failed program was:" >&5
15280 -cat conftest.$ac_ext >&5
15281 +sed 's/^/| /' conftest.$ac_ext >&5
15283 fi
15284 -rm -f conftest.$ac_objext conftest.$ac_ext
15285 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15286 CFLAGS="$save_CFLAGS"
15287 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
15288 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
15289 @@ -8637,8 +9444,11 @@
15290 ac_check_lib_save_LIBS=$LIBS
15291 LIBS="-ldl $LIBS"
15292 cat >conftest.$ac_ext <<_ACEOF
15293 -#line $LINENO "configure"
15294 -#include "confdefs.h"
15295 +/* confdefs.h. */
15296 +_ACEOF
15297 +cat confdefs.h >>conftest.$ac_ext
15298 +cat >>conftest.$ac_ext <<_ACEOF
15299 +/* end confdefs.h. */
15301 /* Override any gcc2 internal prototype to avoid an error. */
15302 #ifdef __cplusplus
15303 @@ -8647,12 +9457,6 @@
15304 /* We use char because int might match the return type of a gcc2
15305 builtin and then its argument prototype would still apply. */
15306 char dlopen ();
15307 -#ifdef F77_DUMMY_MAIN
15308 -# ifdef __cplusplus
15309 - extern "C"
15310 -# endif
15311 - int F77_DUMMY_MAIN() { return 1; }
15312 -#endif
15313 int
15314 main ()
15316 @@ -8663,11 +9467,20 @@
15317 _ACEOF
15318 rm -f conftest.$ac_objext conftest$ac_exeext
15319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15320 - (eval $ac_link) 2>&5
15321 + (eval $ac_link) 2>conftest.er1
15322 ac_status=$?
15323 + grep -v '^ *+' conftest.er1 >conftest.err
15324 + rm -f conftest.er1
15325 + cat conftest.err >&5
15326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327 (exit $ac_status); } &&
15328 - { ac_try='test -s conftest$ac_exeext'
15329 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15330 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15331 + (eval $ac_try) 2>&5
15332 + ac_status=$?
15333 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 + (exit $ac_status); }; } &&
15335 + { ac_try='test -s conftest$ac_exeext'
15336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15337 (eval $ac_try) 2>&5
15338 ac_status=$?
15339 @@ -8676,10 +9489,12 @@
15340 ac_cv_lib_dl_dlopen=yes
15341 else
15342 echo "$as_me: failed program was:" >&5
15343 -cat conftest.$ac_ext >&5
15344 +sed 's/^/| /' conftest.$ac_ext >&5
15346 ac_cv_lib_dl_dlopen=no
15347 fi
15348 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15349 +rm -f conftest.err conftest.$ac_objext \
15350 + conftest$ac_exeext conftest.$ac_ext
15351 LIBS=$ac_check_lib_save_LIBS
15352 fi
15353 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15354 @@ -8693,49 +9508,72 @@
15355 echo $ECHO_N "(cached) $ECHO_C" >&6
15356 else
15357 cat >conftest.$ac_ext <<_ACEOF
15358 -#line $LINENO "configure"
15359 -#include "confdefs.h"
15360 +/* confdefs.h. */
15361 +_ACEOF
15362 +cat confdefs.h >>conftest.$ac_ext
15363 +cat >>conftest.$ac_ext <<_ACEOF
15364 +/* end confdefs.h. */
15365 +/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
15366 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
15367 +#define dlopen innocuous_dlopen
15369 /* System header to define __stub macros and hopefully few prototypes,
15370 - which can conflict with char dlopen (); below. */
15371 -#include <assert.h>
15372 + which can conflict with char dlopen (); below.
15373 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15374 + <limits.h> exists even on freestanding compilers. */
15376 +#ifdef __STDC__
15377 +# include <limits.h>
15378 +#else
15379 +# include <assert.h>
15380 +#endif
15382 +#undef dlopen
15384 /* Override any gcc2 internal prototype to avoid an error. */
15385 #ifdef __cplusplus
15386 extern "C"
15387 +{
15388 #endif
15389 /* We use char because int might match the return type of a gcc2
15390 builtin and then its argument prototype would still apply. */
15391 char dlopen ();
15392 -char (*f) ();
15394 -#ifdef F77_DUMMY_MAIN
15395 -# ifdef __cplusplus
15396 - extern "C"
15397 -# endif
15398 - int F77_DUMMY_MAIN() { return 1; }
15399 -#endif
15400 -int
15401 -main ()
15402 -{
15403 /* The GNU C library defines this for functions which it implements
15404 to always fail with ENOSYS. Some functions are actually named
15405 something starting with __ and the normal name is an alias. */
15406 #if defined (__stub_dlopen) || defined (__stub___dlopen)
15407 choke me
15408 #else
15409 -f = dlopen;
15410 +char (*f) () = dlopen;
15411 +#endif
15412 +#ifdef __cplusplus
15413 +}
15414 #endif
15416 +int
15417 +main ()
15418 +{
15419 +return f != dlopen;
15421 return 0;
15423 _ACEOF
15424 rm -f conftest.$ac_objext conftest$ac_exeext
15425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15426 - (eval $ac_link) 2>&5
15427 + (eval $ac_link) 2>conftest.er1
15428 ac_status=$?
15429 + grep -v '^ *+' conftest.er1 >conftest.err
15430 + rm -f conftest.er1
15431 + cat conftest.err >&5
15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 (exit $ac_status); } &&
15434 - { ac_try='test -s conftest$ac_exeext'
15435 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15436 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15437 + (eval $ac_try) 2>&5
15438 + ac_status=$?
15439 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 + (exit $ac_status); }; } &&
15441 + { ac_try='test -s conftest$ac_exeext'
15442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15443 (eval $ac_try) 2>&5
15444 ac_status=$?
15445 @@ -8744,10 +9582,12 @@
15446 ac_cv_func_dlopen=yes
15447 else
15448 echo "$as_me: failed program was:" >&5
15449 -cat conftest.$ac_ext >&5
15450 +sed 's/^/| /' conftest.$ac_ext >&5
15452 ac_cv_func_dlopen=no
15453 fi
15454 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15455 +rm -f conftest.err conftest.$ac_objext \
15456 + conftest$ac_exeext conftest.$ac_ext
15457 fi
15458 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
15459 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
15460 @@ -8760,49 +9600,72 @@
15461 echo $ECHO_N "(cached) $ECHO_C" >&6
15462 else
15463 cat >conftest.$ac_ext <<_ACEOF
15464 -#line $LINENO "configure"
15465 -#include "confdefs.h"
15466 +/* confdefs.h. */
15467 +_ACEOF
15468 +cat confdefs.h >>conftest.$ac_ext
15469 +cat >>conftest.$ac_ext <<_ACEOF
15470 +/* end confdefs.h. */
15471 +/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15472 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
15473 +#define shl_load innocuous_shl_load
15475 /* System header to define __stub macros and hopefully few prototypes,
15476 - which can conflict with char shl_load (); below. */
15477 -#include <assert.h>
15478 + which can conflict with char shl_load (); below.
15479 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15480 + <limits.h> exists even on freestanding compilers. */
15482 +#ifdef __STDC__
15483 +# include <limits.h>
15484 +#else
15485 +# include <assert.h>
15486 +#endif
15488 +#undef shl_load
15490 /* Override any gcc2 internal prototype to avoid an error. */
15491 #ifdef __cplusplus
15492 extern "C"
15493 +{
15494 #endif
15495 /* We use char because int might match the return type of a gcc2
15496 builtin and then its argument prototype would still apply. */
15497 char shl_load ();
15498 -char (*f) ();
15500 -#ifdef F77_DUMMY_MAIN
15501 -# ifdef __cplusplus
15502 - extern "C"
15503 -# endif
15504 - int F77_DUMMY_MAIN() { return 1; }
15505 -#endif
15506 -int
15507 -main ()
15508 -{
15509 /* The GNU C library defines this for functions which it implements
15510 to always fail with ENOSYS. Some functions are actually named
15511 something starting with __ and the normal name is an alias. */
15512 #if defined (__stub_shl_load) || defined (__stub___shl_load)
15513 choke me
15514 #else
15515 -f = shl_load;
15516 +char (*f) () = shl_load;
15517 +#endif
15518 +#ifdef __cplusplus
15519 +}
15520 #endif
15522 +int
15523 +main ()
15524 +{
15525 +return f != shl_load;
15527 return 0;
15529 _ACEOF
15530 rm -f conftest.$ac_objext conftest$ac_exeext
15531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15532 - (eval $ac_link) 2>&5
15533 + (eval $ac_link) 2>conftest.er1
15534 ac_status=$?
15535 + grep -v '^ *+' conftest.er1 >conftest.err
15536 + rm -f conftest.er1
15537 + cat conftest.err >&5
15538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539 (exit $ac_status); } &&
15540 - { ac_try='test -s conftest$ac_exeext'
15541 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15542 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15543 + (eval $ac_try) 2>&5
15544 + ac_status=$?
15545 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15546 + (exit $ac_status); }; } &&
15547 + { ac_try='test -s conftest$ac_exeext'
15548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15549 (eval $ac_try) 2>&5
15550 ac_status=$?
15551 @@ -8811,10 +9674,12 @@
15552 ac_cv_func_shl_load=yes
15553 else
15554 echo "$as_me: failed program was:" >&5
15555 -cat conftest.$ac_ext >&5
15556 +sed 's/^/| /' conftest.$ac_ext >&5
15558 ac_cv_func_shl_load=no
15559 fi
15560 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15561 +rm -f conftest.err conftest.$ac_objext \
15562 + conftest$ac_exeext conftest.$ac_ext
15563 fi
15564 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15565 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
15566 @@ -8829,8 +9694,11 @@
15567 ac_check_lib_save_LIBS=$LIBS
15568 LIBS="-lsvld $LIBS"
15569 cat >conftest.$ac_ext <<_ACEOF
15570 -#line $LINENO "configure"
15571 -#include "confdefs.h"
15572 +/* confdefs.h. */
15573 +_ACEOF
15574 +cat confdefs.h >>conftest.$ac_ext
15575 +cat >>conftest.$ac_ext <<_ACEOF
15576 +/* end confdefs.h. */
15578 /* Override any gcc2 internal prototype to avoid an error. */
15579 #ifdef __cplusplus
15580 @@ -8839,12 +9707,6 @@
15581 /* We use char because int might match the return type of a gcc2
15582 builtin and then its argument prototype would still apply. */
15583 char dlopen ();
15584 -#ifdef F77_DUMMY_MAIN
15585 -# ifdef __cplusplus
15586 - extern "C"
15587 -# endif
15588 - int F77_DUMMY_MAIN() { return 1; }
15589 -#endif
15590 int
15591 main ()
15593 @@ -8855,11 +9717,20 @@
15594 _ACEOF
15595 rm -f conftest.$ac_objext conftest$ac_exeext
15596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15597 - (eval $ac_link) 2>&5
15598 + (eval $ac_link) 2>conftest.er1
15599 ac_status=$?
15600 + grep -v '^ *+' conftest.er1 >conftest.err
15601 + rm -f conftest.er1
15602 + cat conftest.err >&5
15603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604 (exit $ac_status); } &&
15605 - { ac_try='test -s conftest$ac_exeext'
15606 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15607 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15608 + (eval $ac_try) 2>&5
15609 + ac_status=$?
15610 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611 + (exit $ac_status); }; } &&
15612 + { ac_try='test -s conftest$ac_exeext'
15613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15614 (eval $ac_try) 2>&5
15615 ac_status=$?
15616 @@ -8868,10 +9739,12 @@
15617 ac_cv_lib_svld_dlopen=yes
15618 else
15619 echo "$as_me: failed program was:" >&5
15620 -cat conftest.$ac_ext >&5
15621 +sed 's/^/| /' conftest.$ac_ext >&5
15623 ac_cv_lib_svld_dlopen=no
15624 fi
15625 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15626 +rm -f conftest.err conftest.$ac_objext \
15627 + conftest$ac_exeext conftest.$ac_ext
15628 LIBS=$ac_check_lib_save_LIBS
15629 fi
15630 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
15631 @@ -8887,8 +9760,11 @@
15632 ac_check_lib_save_LIBS=$LIBS
15633 LIBS="-ldld $LIBS"
15634 cat >conftest.$ac_ext <<_ACEOF
15635 -#line $LINENO "configure"
15636 -#include "confdefs.h"
15637 +/* confdefs.h. */
15638 +_ACEOF
15639 +cat confdefs.h >>conftest.$ac_ext
15640 +cat >>conftest.$ac_ext <<_ACEOF
15641 +/* end confdefs.h. */
15643 /* Override any gcc2 internal prototype to avoid an error. */
15644 #ifdef __cplusplus
15645 @@ -8897,12 +9773,6 @@
15646 /* We use char because int might match the return type of a gcc2
15647 builtin and then its argument prototype would still apply. */
15648 char shl_load ();
15649 -#ifdef F77_DUMMY_MAIN
15650 -# ifdef __cplusplus
15651 - extern "C"
15652 -# endif
15653 - int F77_DUMMY_MAIN() { return 1; }
15654 -#endif
15655 int
15656 main ()
15658 @@ -8913,11 +9783,20 @@
15659 _ACEOF
15660 rm -f conftest.$ac_objext conftest$ac_exeext
15661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15662 - (eval $ac_link) 2>&5
15663 + (eval $ac_link) 2>conftest.er1
15664 ac_status=$?
15665 + grep -v '^ *+' conftest.er1 >conftest.err
15666 + rm -f conftest.er1
15667 + cat conftest.err >&5
15668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669 (exit $ac_status); } &&
15670 - { ac_try='test -s conftest$ac_exeext'
15671 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15672 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15673 + (eval $ac_try) 2>&5
15674 + ac_status=$?
15675 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 + (exit $ac_status); }; } &&
15677 + { ac_try='test -s conftest$ac_exeext'
15678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15679 (eval $ac_try) 2>&5
15680 ac_status=$?
15681 @@ -8926,10 +9805,12 @@
15682 ac_cv_lib_dld_shl_load=yes
15683 else
15684 echo "$as_me: failed program was:" >&5
15685 -cat conftest.$ac_ext >&5
15686 +sed 's/^/| /' conftest.$ac_ext >&5
15688 ac_cv_lib_dld_shl_load=no
15689 fi
15690 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15691 +rm -f conftest.err conftest.$ac_objext \
15692 + conftest$ac_exeext conftest.$ac_ext
15693 LIBS=$ac_check_lib_save_LIBS
15694 fi
15695 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15696 @@ -8981,7 +9862,7 @@
15697 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15698 lt_status=$lt_dlunknown
15699 cat > conftest.$ac_ext <<EOF
15700 -#line 8984 "configure"
15701 +#line 9860 "configure"
15702 #include "confdefs.h"
15704 #if HAVE_DLFCN_H
15705 @@ -9079,7 +9960,7 @@
15706 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15707 lt_status=$lt_dlunknown
15708 cat > conftest.$ac_ext <<EOF
15709 -#line 9082 "configure"
15710 +#line 9958 "configure"
15711 #include "confdefs.h"
15713 #if HAVE_DLFCN_H
15714 @@ -9803,7 +10684,7 @@
15718 -ac_config_files="$ac_config_files Makefile Makefile.lib Makefile.prog Makefile.comm include/config.h"
15719 + ac_config_files="$ac_config_files Makefile Makefile.lib Makefile.prog Makefile.comm include/config.h"
15720 cat >confcache <<\_ACEOF
15721 # This file is a shell script that caches the results of configure
15722 # tests run on this system so they can be shared between configure
15723 @@ -9814,7 +10695,7 @@
15724 # config.status only pays attention to the cache file if you give it
15725 # the --recheck option to rerun configure.
15727 -# `ac_cv_env_foo' variables (set or unset) will be overriden when
15728 +# `ac_cv_env_foo' variables (set or unset) will be overridden when
15729 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15730 # following values.
15732 @@ -9832,13 +10713,13 @@
15733 # `set' does not quote correctly, so add quotes (double-quote
15734 # substitution turns \\\\ into \\, and sed turns \\ into \).
15735 sed -n \
15736 - "s/'/'\\\\''/g;
15737 - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15738 + "s/'/'\\\\''/g;
15739 + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15740 ;;
15741 *)
15742 # `set' quotes correctly as required by POSIX, so do not add quotes.
15743 sed -n \
15744 - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15745 + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15746 ;;
15747 esac;
15748 } |
15749 @@ -9849,7 +10730,7 @@
15750 t end
15751 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15752 : end' >>confcache
15753 -if cmp -s $cache_file confcache; then :; else
15754 +if diff $cache_file confcache >/dev/null 2>&1; then :; else
15755 if test -w $cache_file; then
15756 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15757 cat confcache >$cache_file
15758 @@ -9868,13 +10749,13 @@
15759 # trailing colons and then remove the whole line if VPATH becomes empty
15760 # (actually we leave an empty line to preserve line numbers).
15761 if test "x$srcdir" = x.; then
15762 - ac_vpsub='/^[ ]*VPATH[ ]*=/{
15763 + ac_vpsub='/^[ ]*VPATH[ ]*=/{
15764 s/:*\$(srcdir):*/:/;
15765 s/:*\${srcdir}:*/:/;
15766 s/:*@srcdir@:*/:/;
15767 -s/^\([^=]*=[ ]*\):*/\1/;
15768 +s/^\([^=]*=[ ]*\):*/\1/;
15769 s/:*$//;
15770 -s/^[^=]*=[ ]*$//;
15771 +s/^[^=]*=[ ]*$//;
15772 }'
15773 fi
15775 @@ -9888,13 +10769,13 @@
15776 cat >confdef2opt.sed <<\_ACEOF
15777 t clear
15778 : clear
15779 -s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
15780 +s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
15781 t quote
15782 -s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
15783 +s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
15784 t quote
15786 : quote
15787 -s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
15788 +s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
15789 s,\[,\\&,g
15790 s,\],\\&,g
15791 s,\$,$$,g
15792 @@ -9911,6 +10792,21 @@
15793 rm -f confdef2opt.sed
15796 +ac_libobjs=
15797 +ac_ltlibobjs=
15798 +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15799 + # 1. Remove the extension, and $U if already installed.
15800 + ac_i=`echo "$ac_i" |
15801 + sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15802 + # 2. Add them.
15803 + ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15804 + ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15805 +done
15806 +LIBOBJS=$ac_libobjs
15808 +LTLIBOBJS=$ac_ltlibobjs
15812 : ${CONFIG_STATUS=./config.status}
15813 ac_clean_files_save=$ac_clean_files
15814 @@ -9925,11 +10821,12 @@
15815 # configure, is in config.log if it exists.
15817 debug=false
15818 +ac_cs_recheck=false
15819 +ac_cs_silent=false
15820 SHELL=\${CONFIG_SHELL-$SHELL}
15821 _ACEOF
15823 cat >>$CONFIG_STATUS <<\_ACEOF
15825 ## --------------------- ##
15826 ## M4sh Initialization. ##
15827 ## --------------------- ##
15828 @@ -9938,46 +10835,57 @@
15829 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15830 emulate sh
15831 NULLCMD=:
15832 + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15833 + # is contrary to our usage. Disable this feature.
15834 + alias -g '${1+"$@"}'='"$@"'
15835 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15836 set -o posix
15837 fi
15838 +DUALCASE=1; export DUALCASE # for MKS sh
15840 -# NLS nuisances.
15841 # Support unset when possible.
15842 -if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
15843 +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15844 as_unset=unset
15845 else
15846 as_unset=false
15847 fi
15849 -(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
15850 - { $as_unset LANG || test "${LANG+set}" != set; } ||
15851 - { LANG=C; export LANG; }
15852 -(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
15853 - { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
15854 - { LC_ALL=C; export LC_ALL; }
15855 -(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
15856 - { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
15857 - { LC_TIME=C; export LC_TIME; }
15858 -(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
15859 - { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
15860 - { LC_CTYPE=C; export LC_CTYPE; }
15861 -(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
15862 - { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
15863 - { LANGUAGE=C; export LANGUAGE; }
15864 -(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
15865 - { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
15866 - { LC_COLLATE=C; export LC_COLLATE; }
15867 -(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
15868 - { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
15869 - { LC_NUMERIC=C; export LC_NUMERIC; }
15870 -(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
15871 - { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
15872 - { LC_MESSAGES=C; export LC_MESSAGES; }
15874 +# Work around bugs in pre-3.0 UWIN ksh.
15875 +$as_unset ENV MAIL MAILPATH
15876 +PS1='$ '
15877 +PS2='> '
15878 +PS4='+ '
15880 +# NLS nuisances.
15881 +for as_var in \
15882 + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15883 + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15884 + LC_TELEPHONE LC_TIME
15885 +do
15886 + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15887 + eval $as_var=C; export $as_var
15888 + else
15889 + $as_unset $as_var
15890 + fi
15891 +done
15893 +# Required to use basename.
15894 +if expr a : '\(a\)' >/dev/null 2>&1; then
15895 + as_expr=expr
15896 +else
15897 + as_expr=false
15898 +fi
15900 +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15901 + as_basename=basename
15902 +else
15903 + as_basename=false
15904 +fi
15907 # Name of the executable.
15908 -as_me=`(basename "$0") 2>/dev/null ||
15909 +as_me=`$as_basename "$0" ||
15910 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15911 X"$0" : 'X\(//\)$' \| \
15912 X"$0" : 'X\(/\)$' \| \
15913 @@ -9988,6 +10896,7 @@
15914 /^X\/\(\/\).*/{ s//\1/; q; }
15915 s/.*/./; q'`
15918 # PATH needs CR, and LINENO needs CR and PATH.
15919 # Avoid depending upon Character Ranges.
15920 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15921 @@ -9998,15 +10907,15 @@
15923 # The user is always right.
15924 if test "${PATH_SEPARATOR+set}" != set; then
15925 - echo "#! /bin/sh" >conftest.sh
15926 - echo "exit 0" >>conftest.sh
15927 - chmod +x conftest.sh
15928 - if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
15929 + echo "#! /bin/sh" >conf$$.sh
15930 + echo "exit 0" >>conf$$.sh
15931 + chmod +x conf$$.sh
15932 + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15933 PATH_SEPARATOR=';'
15934 else
15935 PATH_SEPARATOR=:
15936 fi
15937 - rm -f conftest.sh
15938 + rm -f conf$$.sh
15939 fi
15942 @@ -10055,6 +10964,8 @@
15943 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15944 test "x$as_lineno_1" != "x$as_lineno_2" &&
15945 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15946 + $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15947 + $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15948 CONFIG_SHELL=$as_dir/$as_base
15949 export CONFIG_SHELL
15950 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15951 @@ -10128,13 +11039,20 @@
15952 fi
15953 rm -f conf$$ conf$$.exe conf$$.file
15955 +if mkdir -p . 2>/dev/null; then
15956 + as_mkdir_p=:
15957 +else
15958 + test -d ./-p && rmdir ./-p
15959 + as_mkdir_p=false
15960 +fi
15962 as_executable_p="test -f"
15964 # Sed expression to map a string onto a valid CPP name.
15965 -as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
15966 +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15968 # Sed expression to map a string onto a valid variable name.
15969 -as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
15970 +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15973 # IFS
15974 @@ -10144,7 +11062,7 @@
15975 IFS=" $as_nl"
15977 # CDPATH.
15978 -$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
15979 +$as_unset CDPATH
15981 exec 6>&1
15983 @@ -10161,7 +11079,7 @@
15984 cat >&5 <<_CSEOF
15986 This file was extended by $as_me, which was
15987 -generated by GNU Autoconf 2.53. Invocation command line was
15988 +generated by GNU Autoconf 2.59. Invocation command line was
15990 CONFIG_FILES = $CONFIG_FILES
15991 CONFIG_HEADERS = $CONFIG_HEADERS
15992 @@ -10201,10 +11119,11 @@
15994 -h, --help print this help, then exit
15995 -V, --version print version number, then exit
15996 + -q, --quiet do not print progress messages
15997 -d, --debug don't remove temporary files
15998 --recheck update $as_me by reconfiguring in the same conditions
15999 --file=FILE[:TEMPLATE]
16000 - instantiate the configuration file FILE
16001 + instantiate the configuration file FILE
16003 Configuration files:
16004 $config_files
16005 @@ -10215,11 +11134,10 @@
16006 cat >>$CONFIG_STATUS <<_ACEOF
16007 ac_cs_version="\\
16008 config.status
16009 -configured by $0, generated by GNU Autoconf 2.53,
16010 +configured by $0, generated by GNU Autoconf 2.59,
16011 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16013 -Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16014 -Free Software Foundation, Inc.
16015 +Copyright (C) 2003 Free Software Foundation, Inc.
16016 This config.status script is free software; the Free Software Foundation
16017 gives unlimited permission to copy, distribute and modify it."
16018 srcdir=$srcdir
16019 @@ -10236,25 +11154,25 @@
16020 --*=*)
16021 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16022 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16023 - shift
16024 - set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
16025 - shift
16026 + ac_shift=:
16027 + ;;
16028 + -*)
16029 + ac_option=$1
16030 + ac_optarg=$2
16031 + ac_shift=shift
16032 ;;
16033 - -*);;
16034 *) # This is not an option, so the user has probably given explicit
16035 # arguments.
16036 + ac_option=$1
16037 ac_need_defaults=false;;
16038 esac
16040 - case $1 in
16041 + case $ac_option in
16042 # Handling of the options.
16043 _ACEOF
16044 -cat >>$CONFIG_STATUS <<_ACEOF
16045 - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16046 - echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
16047 - exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
16048 -_ACEOF
16049 cat >>$CONFIG_STATUS <<\_ACEOF
16050 + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16051 + ac_cs_recheck=: ;;
16052 --version | --vers* | -V )
16053 echo "$ac_cs_version"; exit 0 ;;
16054 --he | --h)
16055 @@ -10269,13 +11187,16 @@
16056 --debug | --d* | -d )
16057 debug=: ;;
16058 --file | --fil | --fi | --f )
16059 - shift
16060 - CONFIG_FILES="$CONFIG_FILES $1"
16061 + $ac_shift
16062 + CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16063 ac_need_defaults=false;;
16064 --header | --heade | --head | --hea )
16065 - shift
16066 - CONFIG_HEADERS="$CONFIG_HEADERS $1"
16067 + $ac_shift
16068 + CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16069 ac_need_defaults=false;;
16070 + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16071 + | -silent | --silent | --silen | --sile | --sil | --si | --s)
16072 + ac_cs_silent=: ;;
16074 # This is an error.
16075 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16076 @@ -10290,6 +11211,20 @@
16077 shift
16078 done
16080 +ac_configure_extra_args=
16082 +if $ac_cs_silent; then
16083 + exec 6>/dev/null
16084 + ac_configure_extra_args="$ac_configure_extra_args --silent"
16085 +fi
16087 +_ACEOF
16088 +cat >>$CONFIG_STATUS <<_ACEOF
16089 +if \$ac_cs_recheck; then
16090 + echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16091 + exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16092 +fi
16094 _ACEOF
16097 @@ -10320,6 +11255,9 @@
16098 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16099 fi
16101 +# Have a temporary directory for convenience. Make it in the build tree
16102 +# simply because there is no reason to put it here, and in addition,
16103 +# creating and moving files from /tmp can sometimes cause problems.
16104 # Create a temporary directory, and hook for its removal unless debugging.
16105 $debug ||
16107 @@ -10328,17 +11266,17 @@
16110 # Create a (secure) tmp directory for tmp files.
16111 -: ${TMPDIR=/tmp}
16114 - tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
16115 + tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16116 test -n "$tmp" && test -d "$tmp"
16117 } ||
16119 - tmp=$TMPDIR/cs$$-$RANDOM
16120 + tmp=./confstat$$-$RANDOM
16121 (umask 077 && mkdir $tmp)
16122 } ||
16124 - echo "$me: cannot create a temporary directory in $TMPDIR" >&2
16125 + echo "$me: cannot create a temporary directory in ." >&2
16126 { (exit 1); exit 1; }
16129 @@ -10420,7 +11358,9 @@
16130 s,@CXXFLAGS@,$CXXFLAGS,;t t
16131 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
16132 s,@PERL@,$PERL,;t t
16133 +s,@SED@,$SED,;t t
16134 s,@CPP@,$CPP,;t t
16135 +s,@EGREP@,$EGREP,;t t
16136 s,@LIB_THREADS@,$LIB_THREADS,;t t
16137 s,@CXXCPP@,$CXXCPP,;t t
16138 s,@ECHO@,$ECHO,;t t
16139 @@ -10431,6 +11371,8 @@
16140 s,@LIBTOOL@,$LIBTOOL,;t t
16141 s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
16142 s,@LINKFLAGS@,$LINKFLAGS,;t t
16143 +s,@LIBOBJS@,$LIBOBJS,;t t
16144 +s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16145 CEOF
16147 _ACEOF
16148 @@ -10460,9 +11402,9 @@
16149 (echo ':t
16150 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16151 if test -z "$ac_sed_cmds"; then
16152 - ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16153 + ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16154 else
16155 - ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16156 + ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16157 fi
16158 ac_sed_frag=`expr $ac_sed_frag + 1`
16159 ac_beg=$ac_end
16160 @@ -10480,46 +11422,51 @@
16161 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16162 case $ac_file in
16163 - | *:- | *:-:* ) # input from stdin
16164 - cat >$tmp/stdin
16165 - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16166 - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16167 + cat >$tmp/stdin
16168 + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16169 + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16170 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16171 - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16172 + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16173 * ) ac_file_in=$ac_file.in ;;
16174 esac
16176 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16177 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16178 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16179 - X"$ac_file" : 'X\(//\)[^/]' \| \
16180 - X"$ac_file" : 'X\(//\)$' \| \
16181 - X"$ac_file" : 'X\(/\)' \| \
16182 - . : '\(.\)' 2>/dev/null ||
16183 + X"$ac_file" : 'X\(//\)[^/]' \| \
16184 + X"$ac_file" : 'X\(//\)$' \| \
16185 + X"$ac_file" : 'X\(/\)' \| \
16186 + . : '\(.\)' 2>/dev/null ||
16187 echo X"$ac_file" |
16188 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16189 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16190 /^X\(\/\/\)$/{ s//\1/; q; }
16191 /^X\(\/\).*/{ s//\1/; q; }
16192 s/.*/./; q'`
16193 - { case "$ac_dir" in
16194 - [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16195 - *) as_incr_dir=.;;
16196 -esac
16197 -as_dummy="$ac_dir"
16198 -for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16199 - case $as_mkdir_dir in
16200 - # Skip DOS drivespec
16201 - ?:) as_incr_dir=$as_mkdir_dir ;;
16202 - *)
16203 - as_incr_dir=$as_incr_dir/$as_mkdir_dir
16204 - test -d "$as_incr_dir" ||
16205 - mkdir "$as_incr_dir" ||
16206 - { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
16207 -echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
16208 - { (exit 1); exit 1; }; }
16209 - ;;
16210 - esac
16211 -done; }
16212 + { if $as_mkdir_p; then
16213 + mkdir -p "$ac_dir"
16214 + else
16215 + as_dir="$ac_dir"
16216 + as_dirs=
16217 + while test ! -d "$as_dir"; do
16218 + as_dirs="$as_dir $as_dirs"
16219 + as_dir=`(dirname "$as_dir") 2>/dev/null ||
16220 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16221 + X"$as_dir" : 'X\(//\)[^/]' \| \
16222 + X"$as_dir" : 'X\(//\)$' \| \
16223 + X"$as_dir" : 'X\(/\)' \| \
16224 + . : '\(.\)' 2>/dev/null ||
16225 +echo X"$as_dir" |
16226 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16227 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16228 + /^X\(\/\/\)$/{ s//\1/; q; }
16229 + /^X\(\/\).*/{ s//\1/; q; }
16230 + s/.*/./; q'`
16231 + done
16232 + test ! -n "$as_dirs" || mkdir $as_dirs
16233 + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16234 +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16235 + { (exit 1); exit 1; }; }; }
16237 ac_builddir=.
16239 @@ -10546,12 +11493,45 @@
16240 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16241 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16242 esac
16243 -# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16244 -# absolute.
16245 -ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16246 -ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
16247 -ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16248 -ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16250 +# Do not use `cd foo && pwd` to compute absolute paths, because
16251 +# the directories may not exist.
16252 +case `pwd` in
16253 +.) ac_abs_builddir="$ac_dir";;
16254 +*)
16255 + case "$ac_dir" in
16256 + .) ac_abs_builddir=`pwd`;;
16257 + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16258 + *) ac_abs_builddir=`pwd`/"$ac_dir";;
16259 + esac;;
16260 +esac
16261 +case $ac_abs_builddir in
16262 +.) ac_abs_top_builddir=${ac_top_builddir}.;;
16263 +*)
16264 + case ${ac_top_builddir}. in
16265 + .) ac_abs_top_builddir=$ac_abs_builddir;;
16266 + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16267 + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16268 + esac;;
16269 +esac
16270 +case $ac_abs_builddir in
16271 +.) ac_abs_srcdir=$ac_srcdir;;
16272 +*)
16273 + case $ac_srcdir in
16274 + .) ac_abs_srcdir=$ac_abs_builddir;;
16275 + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16276 + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16277 + esac;;
16278 +esac
16279 +case $ac_abs_builddir in
16280 +.) ac_abs_top_srcdir=$ac_top_srcdir;;
16281 +*)
16282 + case $ac_top_srcdir in
16283 + .) ac_abs_top_srcdir=$ac_abs_builddir;;
16284 + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16285 + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16286 + esac;;
16287 +esac
16290 case $INSTALL in
16291 @@ -10559,11 +11539,6 @@
16292 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
16293 esac
16295 - if test x"$ac_file" != x-; then
16296 - { echo "$as_me:$LINENO: creating $ac_file" >&5
16297 -echo "$as_me: creating $ac_file" >&6;}
16298 - rm -f "$ac_file"
16299 - fi
16300 # Let's still pretend it is `configure' which instantiates (i.e., don't
16301 # use $as_me), people would be surprised to read:
16302 # /* config.h. Generated by config.status. */
16303 @@ -10573,7 +11548,7 @@
16304 configure_input="$ac_file. "
16305 fi
16306 configure_input=$configure_input"Generated from `echo $ac_file_in |
16307 - sed 's,.*/,,'` by configure."
16308 + sed 's,.*/,,'` by configure."
16310 # First look for the input files in the build tree, otherwise in the
16311 # src tree.
16312 @@ -10582,26 +11557,32 @@
16313 case $f in
16314 -) echo $tmp/stdin ;;
16315 [\\/$]*)
16316 - # Absolute (can't be DOS-style, as IFS=:)
16317 - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16318 + # Absolute (can't be DOS-style, as IFS=:)
16319 + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16320 echo "$as_me: error: cannot find input file: $f" >&2;}
16321 { (exit 1); exit 1; }; }
16322 - echo $f;;
16323 + echo "$f";;
16324 *) # Relative
16325 - if test -f "$f"; then
16326 - # Build tree
16327 - echo $f
16328 - elif test -f "$srcdir/$f"; then
16329 - # Source tree
16330 - echo $srcdir/$f
16331 - else
16332 - # /dev/null tree
16333 - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16334 + if test -f "$f"; then
16335 + # Build tree
16336 + echo "$f"
16337 + elif test -f "$srcdir/$f"; then
16338 + # Source tree
16339 + echo "$srcdir/$f"
16340 + else
16341 + # /dev/null tree
16342 + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16343 echo "$as_me: error: cannot find input file: $f" >&2;}
16344 { (exit 1); exit 1; }; }
16345 - fi;;
16346 + fi;;
16347 esac
16348 done` || { (exit 1); exit 1; }
16350 + if test x"$ac_file" != x-; then
16351 + { echo "$as_me:$LINENO: creating $ac_file" >&5
16352 +echo "$as_me: creating $ac_file" >&6;}
16353 + rm -f "$ac_file"
16354 + fi
16355 _ACEOF
16356 cat >>$CONFIG_STATUS <<_ACEOF
16357 sed "$ac_vpsub
16358 @@ -10650,8 +11631,11 @@
16359 # need to make the FD available again.
16360 if test "$no_create" != yes; then
16361 ac_cs_success=:
16362 + ac_config_status_args=
16363 + test "$silent" = yes &&
16364 + ac_config_status_args="$ac_config_status_args --quiet"
16365 exec 5>/dev/null
16366 - $SHELL $CONFIG_STATUS || ac_cs_success=false
16367 + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16368 exec 5>>config.log
16369 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16370 # would make configure fail if this is the last instruction.
16371 --- openjade1.3-1.3.2.orig/debian/README.Debian.in
16372 +++ openjade1.3-1.3.2/debian/README.Debian.in
16373 @@ -0,0 +1,63 @@
16374 +jade and sp for Debian
16375 +----------------------
16377 +This document covers the Debian version of Jade and the SP suite.
16378 +Note that we use the version of SP which ships with the Jade sources,
16379 +which is slightly newer than the SP which ship standalone.
16381 +Note that the default search paths compiled into this system are
16382 +equivalent to setting the following environment variables as shown:
16384 + SGML_CATALOG_FILES="%{default-catalogs}"
16385 + SGML_SEARCH_PATH="%{default-sgml-path}"
16387 +You can override this by setting these variables yourself, i.e., in
16388 +~/.profile or /etc/environment.
16390 +If you are validating or processing XML, you want to run the command
16391 +with the XML declaration. The upstream documentation talks about
16392 +xml.soc, which is located in %{sgmldir}/declaration/xml.soc,
16393 +but you can also run it like so:
16394 + nsgmls <other-args> %{sgmldir}/declaration/xml.dcl <xml-file>
16395 +or
16396 + jade <other-args> %{sgmldir}/declaration/xml.dcl <xml-file>
16397 +as appropriate.
16399 +For information on using these packages, see the included HTML
16400 +documentation. It also includes links to other sites, for more
16401 +information about SGML or DSSSL. Also see:
16403 + <URL:http://www.jclark.com/jade/> Jade home page
16404 + <URL:http://www.jclark.com/> James Clark's pages
16405 + <URL:http://www.oasis-open.org/cover/> Robin Cover's SGML/XML/DSSSL pages
16406 + <URL:http://www.mulberrytech.com/dsssl/> Mulberry DSSSL docs and cookbook
16407 + <URL:http://trisome.com/auto_faq/jade-Dsssl/>
16408 + An auto-FAQ for Jade and DSSSL
16409 + <URL:http://www.w3.org/> W3O, a standards body
16410 + <URL:http://www.netfolder.com/SGML/HTML-CSS%20Formatting%20objects.html>
16411 + Discussion of the HTML backend
16413 +James Clark, the upstream maintainer, is now quite absorbed in the XSL
16414 +effort, which is an XML alternative to DSSSL. However, a new group
16415 +has undertaken to continue to improve and maintain Jade under the name
16416 +OpenJade. This software is not yet released, but they have already
16417 +produced some documentation, etc. See
16418 +<URL:http://www.netfolder.com/DSSSL/>.
16420 +No package is an island; true to this dictum, the jade and sp packages
16421 +increase value in conjunction with the following packages:
16423 + * sgml-base (required) provides essential Debian SGML infrastructure
16424 + * sgml-data (suggested) contains standard HTML and entities
16425 + * doc-base (suggested) provides documentation infrastructure used for
16426 + this package's documentatation
16427 + * sp-dev Static library and include files for SP
16428 + * jadetex LaTeX macros for SGML to DVI/PS conversion with jade
16429 + * psgml Nifty Emacs mode for editing SGML documents
16430 + * sdc SDC is an alternate SGML formatter not using DSSSL
16431 + * debiandoc-sgml A formatter for Debian documents
16432 + * sgml-tools A formatter for linuxdoc documents
16433 + * docbook An SGML DTD for software documentation
16434 + * docbook-stylesheets Stylesheets for printing and converting DocBook
16436 +.....A. P. Harris...apharris@onShore.com...<URL:http://www.onShore.com/>
16437 --- openjade1.3-1.3.2.orig/debian/TODO
16438 +++ openjade1.3-1.3.2/debian/TODO
16439 @@ -0,0 +1,13 @@
16440 +jade-TODO (1.1-1) unstable; urgency=low
16442 + * fix /usr/lib/sgml/unicode (i.e., register or not)
16443 + * little perl script to morph the HTML pages to man pages (??)
16444 + * package a libsp1-dbg package, statically linking libsp1 and compiling
16445 + with debug symbols -- anyone want this?
16447 + -- Adam P. Harris <aph@debian.org> Thu, 20 Aug 1998 14:13:41 -0400
16449 +Local variables:
16450 +mode: debian-changelog
16451 +mode: auto-fill
16452 +End:
16453 --- openjade1.3-1.3.2.orig/debian/changelog
16454 +++ openjade1.3-1.3.2/debian/changelog
16455 @@ -0,0 +1,642 @@
16456 +openjade1.3 (1.3.2-13) unstable; urgency=medium
16458 + * Applied patch to use dh_autotools-dev_{update,restore}config to update
16459 + config.{sub,guess} (Closes: #762187, #540637). Thanks ravindran.
16461 + -- Neil Roeth <neil@debian.org> Thu, 30 Oct 2014 22:35:44 -0400
16463 +openjade1.3 (1.3.2-12.1) unstable; urgency=medium
16465 + * Non-Maintainer Upload
16466 + * Do not use cthreads on hurd-i386. (Closes: #638457).
16467 + * Fix management of -losp, inspired by Hector Oron, (Closes: #749800).
16469 + -- Samuel Thibault <sthibault@debian.org> Mon, 25 Aug 2014 19:54:53 +0200
16471 +openjade1.3 (1.3.2-12) unstable; urgency=low
16473 + * Added dependency on libperl4-corelibs-perl for getopts.pl. (Closes:
16474 + #724730).
16476 + -- Neil Roeth <neil@debian.org> Sun, 13 Oct 2013 21:40:24 -0400
16478 +openjade1.3 (1.3.2-11.1) unstable; urgency=low
16480 + * Non-maintainer upload for RC bug fix
16481 + * Fix build, patch by Andreas Moog (Closes: #650610)
16483 + -- Moritz Muehlenhoff <jmm@debian.org> Tue, 13 Mar 2012 16:39:55 +0100
16485 +openjade1.3 (1.3.2-11) unstable; urgency=low
16487 + * Added -fpermissive to fix FTBFS. (Closes: #624985).
16488 + * Updated to policy 3.9.2.0: no changes required.
16489 + * Fixed lintian warnings:
16490 + - Added debian/source/format.
16491 + - Added misc:Depends to control
16492 + - Added build-arch and build-indep targets.
16494 + -- Neil Roeth <neil@debian.org> Mon, 08 Aug 2011 22:11:52 -0400
16496 +openjade1.3 (1.3.2-10) unstable; urgency=low
16498 + * Changed documentation so that executing the example given works.
16499 + (Closes: #361864).
16500 + * Fixed FTBFS with gcc 4.3 (Closes: #476049).
16502 + -- Neil Roeth <neil@debian.org> Thu, 17 Apr 2008 23:23:42 -0400
16504 +openjade1.3 (1.3.2-9) unstable; urgency=low
16506 + * Built using new version of OpenSP, 1.5.2 (libosp5 package).
16507 + * debian/rules: Fix quoting on multiline sed command to fix make
16508 + backward incompatibilit: "fails to build with make >=
16509 + 3.80+3.81.b3-1". Also fixed README.Debian.in: sgml-dir -> sgmldir.
16510 + Thanks to Colin Watson. (closes: #346151)
16512 + -- Neil Roeth <neil@debian.org> Thu, 5 Jan 2006 20:50:54 -0500
16514 +openjade1.3 (1.3.2-8) unstable; urgency=low
16516 + * Change /usr/doc in manpage to /usr/share/doc. (closes: #320708)
16517 + * Removed unnecessary build dependencies on automake1.7, libtool and
16518 + gettext.
16520 + -- Neil Roeth <neil@debian.org> Tue, 9 Aug 2005 23:02:53 -0400
16522 +openjade1.3 (1.3.2-7) unstable; urgency=low
16524 + * Recompile for GCC 4.0.
16525 + * Updated libtool to 1.5.6.
16527 + -- Neil Roeth <neil@debian.org> Tue, 19 Jul 2005 22:36:11 -0400
16529 +openjade1.3 (1.3.2-6) unstable; urgency=low
16531 + * Moved file from /usr/lib/openjade1.3 and /usr/lib/sgml to
16532 + /usr/share/sgml/openjade1.3. /usr/lib is obsolete, and this has
16533 + probably been broken since opensp dropped that path. This package is
16534 + now consistent with the jade and openjade packages.
16535 + * Added use of dh_installcatalogs so /usr/share/sgml/openjade1.3/catalog
16536 + gets added to the central catalog upon installation.
16537 + * Removed --enable-default-catalog and --enable-default-search-path
16538 + options to configure, these are part of the opensp package and are
16539 + probably holdovers from the days when jade and sp both came from the
16540 + same source package.
16542 + -- Neil Roeth <neil@debian.org> Sun, 3 Apr 2005 22:16:03 -0400
16544 +openjade1.3 (1.3.2-5) unstable; urgency=low
16546 + * New maintainter.
16547 + * Removed references to /usr/lib/sgml. Made consistent with jade/sp and
16548 + opensp. (closes: #177801)
16549 + * Changed "it's" to "its" in Description. (closes: #268535, #277251)
16551 + -- Neil Roeth <neil@debian.org> Mon, 21 Feb 2005 11:04:27 -0500
16553 +openjade1.3 (1.3.2-4) unstable; urgency=low
16555 + * Rebuild against opensp 1.5.1 (adjusted build-dep to be sure).
16556 + * Use dh-buildinfo.
16558 + -- Yann Dirson <dirson@debian.org> Mon, 27 Oct 2003 18:02:09 +0100
16560 +openjade1.3 (1.3.2-3) unstable; urgency=low
16562 + * Rebuild for g++-3.2 (Closes: #177944).
16563 + * Upgraded libosp-dev build-dep to ensure that.
16565 + -- Yann Dirson <dirson@debian.org> Thu, 13 Feb 2003 10:59:44 +0100
16567 +openjade1.3 (1.3.2-2) unstable; urgency=low
16569 + * Reverted configure.in to the version in 1.3.2rc2, since this
16570 + ppc64-specific change breaks sparc build (Closes: #171854). Had to
16571 + copy config/aclocal.m4 to ./ before running autoconf or some macros
16572 + were undefined (reported issue upstream).
16573 + * Updated manpage (Closes: #173262).
16574 + * Added the manpage as a slave in the alternative (Closes: #173260).
16575 + * Build with -g as mandated by policy 3.5.7 and later.
16576 + * Standards-Version: 3.5.8
16578 + -- Yann Dirson <dirson@debian.org> Sat, 28 Dec 2002 23:39:24 +0100
16580 +openjade1.3 (1.3.2-1) unstable; urgency=low
16582 + * Final upstream release.
16584 + -- Yann Dirson <dirson@debian.org> Wed, 4 Dec 2002 12:55:30 +0100
16586 +openjade1.3 (1.3.1+really1.3.2rc2-2) unstable; urgency=low
16588 + * Rebuild using opensp 1.5release.
16590 + -- Yann Dirson <dirson@debian.org> Tue, 26 Nov 2002 22:27:15 +0100
16592 +openjade1.3 (1.3.1+really1.3.2rc2-1) unstable; urgency=low
16594 + * New upstream prerelease, using opensp 1.5pre8 or better.
16595 + * Miscellaneous packaging cleanups.
16597 + -- Yann Dirson <dirson@debian.org> Tue, 19 Nov 2002 20:30:05 +0100
16599 +openjade1.3 (1.3.1-2) unstable; urgency=low
16601 + * Made debian/rules not fail on "make clean" failure, just as usual
16602 + (Closes: #141672).
16604 + -- Yann Dirson <dirson@debian.org> Tue, 9 Apr 2002 00:01:50 +0200
16606 +openjade1.3 (1.3.1-1) unstable; urgency=low
16608 + * Build on woody (Closes: #130917).
16609 + * Get config.{status,log} and Makefiles removed on clean.
16611 + -- Yann Dirson <dirson@debian.org> Thu, 28 Mar 2002 01:48:16 +0100
16613 +openjade1.3 (1.3.1-0potato1) unstable; urgency=low
16615 + * New upstream release.
16617 + -- Yann Dirson <ydirson@fr.alcove.com> Thu, 14 Feb 2002 18:08:13 +0100
16619 +openjade1.3 (1.3-1) unstable; urgency=low
16621 + * Initial (potato) release.
16622 + * Packaging adapted from jade 1.2.1-18.2.
16623 + * Fixed ./configure for generation error.
16624 + * No shared libs to reduce the possibility of conflicts with openjade.
16625 + * Built using shipped libosp - couldn't make it compile with package
16626 + libosp-dev. Patches welcomed.
16627 + * Provide /usr/bin/openjade as an alternative.
16629 + -- Yann Dirson <ydirson@fr.alcove.com> Tue, 11 Sep 2001 16:11:48 +0200
16631 +jade (1.2.1-18.2) unstable; urgency=low
16632 + * Non-maintainer upload
16633 + * Fix to build with gcc 3.0. Closes: #96261
16634 + * New config.guess and config.sub (hppa, ia64, s390 & sh) Closes: #97377
16635 + * Fix to build under fakeroot. Closes: #99743, #103195
16636 + * Add gross hack for ia64 - works, but needs to be reviewd.
16637 + Closes: #103192.
16639 + -- LaMont Jones <lamont@debian.org> Fri, 6 Jul 2001 10:49:33 -0600
16641 +jade (1.2.1-18.1) unstable; urgency=low
16643 + * Non-maintainer upload.
16644 + * Added template instance Vector<long unsigned int>. Closes: #97949
16646 + -- Gerhard Tonn <gt@debian.org> Fri, 1 Jun 2001 20:38:43 +0200
16648 +jade (1.2.1-18) unstable; urgency=low
16650 + * debian/rules: correct location of sgml-catalog-check.pl
16651 + (closes: Bug#75384); clean more stuff which should have been cleaned
16652 + in upstream Makefiles
16653 + * unicode/catalog: fix name of unicode.decl (closes: Bug#74858)
16654 + * debian/control: build depends requires new enough sgml-data
16655 + * apply patch from Randolph Chung updating autoconf/libtools stuff and
16656 + enabling compilation on ia64 (closes: Bug#82109, Bug#82487)
16658 + -- Adam Di Carlo <aph@debian.org> Thu, 18 Jan 2001 03:44:19 -0500
16660 +jade (1.2.1-17) unstable; urgency=low
16662 + * rebuild same rev for woody only
16663 + * corrections in nsgmls manual page, patch from Gabor Liptak
16664 + <gaborliptak@usa.net> (closes: Bug#56628)
16665 + * README.Debian: do sgml-dir substitution; discussion XML validation
16666 + using the .decl file or the xml.soc (closes: Bug#56905)
16667 + * debian/rules: install xml.soc in <sgml-dir>/declaration/
16669 + -- Adam Di Carlo <aph@debian.org> Tue, 28 Mar 2000 02:20:32 -0500
16671 +jade (1.2.1-16) frozen unstable; urgency=medium
16673 + * patch for Alpha (and 64-bit arches) (closes: Bug#58666);
16674 + comment from the bug fixer, David Huggins-Daines:
16675 + work around broken C++ compiler on Alpha, also instantiate
16676 + Vector<size_t> on Alpha since sizeof(size_t) != sizeof(int). This
16677 + can't be done on 32-bit archs since gcc 2.95 will complain about
16678 + multiple instantiations, however it has to be done on 64-bit ones -
16679 + this is just a quick hack, upstream needs to fix it by checking the
16680 + size of size_t in their configure script.
16681 + * since the preceeding fix is needed for Alpha compilation, and since
16682 + that patch does not affect any other architectures, this should be
16683 + included in Potato.
16685 + -- Adam Di Carlo <aph@debian.org> Sat, 4 Mar 2000 15:56:40 -0500
16687 +jade (1.2.1-15) unstable; urgency=low
16689 + * libsp: comment out the dtddeclNotSupported, because it's annoying and
16690 + stupid to complain so much about things the software doesn't
16691 + understand, and effectively makes it harder (well, more annoying) to
16692 + transition to DTDDECL, which is fully understood by OpenJade
16694 + -- Adam Di Carlo <aph@debian.org> Tue, 4 Jan 2000 18:19:41 -0500
16696 +jade (1.2.1-14) unstable; urgency=low
16698 + * include sgml2xml and sgmlnorm man pages, thanks to Steve Cheng, from
16699 + the docbook2man examples (closes: Bug#39489)
16700 + * do not install /usr/lib/sgml/declaration/xml.decl -- xml.dcl is now
16701 + provided by sgml-data
16702 + * patch for TeX output ligature problem affecting the characters '-<>',
16703 + adopted from OpenJade (closes: Bug#45489)
16704 + * debian/control: build standards version to 3.1.1; add Build-Depends
16705 + * include/config.h: force #define SP_MULTI_BYTE (closes: Bug#46130)
16706 + * remove "compatability" symlink /usr/lib/sgml/sgml/japan.decl, since I
16707 + don't think anyone uses it
16708 + * debian/rules: debhelperify
16709 + * debian/*: rename files closed to what debhelper expects
16711 + -- Adam Di Carlo <aph@debian.org> Sat, 1 Jan 2000 19:06:04 -0500
16713 +jade (1.2.1-13) unstable; urgency=low
16715 + * merge in upstream SP 1.3.4 (no correlated jade release yet, so this is
16716 + packaged as a diff against jade 1.2.1)
16717 + * debian/rules: enforce more modularity for consistency with openjade
16718 + rules file; clean sp.conffiles; install SP example stuff from 'dsssl/'
16720 + -- Adam Di Carlo <aph@debian.org> Sat, 30 Oct 1999 13:51:18 -0400
16722 +jade (1.2.1-12) unstable; urgency=low
16724 + * debian/rules: remove '-fpermissive' call (closes: Bug#45452); fold out
16725 + config.status as a separate target for a better build
16726 + * include generic/*.h (closes: Bug#46129)
16727 + * sp postinst: fix shell output indirection oopsie (closes: Bug#46577)
16729 + -- Adam Di Carlo <aph@debian.org> Thu, 7 Oct 1999 02:20:24 -0400
16731 +jade (1.2.1-11) unstable; urgency=low
16733 + * incorporate NMU from 1.2.1-10.1 (closes: Bug#44500)
16734 + * debian/rules: also, run libtoolize at build time; clean is cleaner
16735 + * port for g++ 2.95 or better made more robust (i.e., should work for
16736 + future g++ 3.x as well, as well as non GNU compilers); regenerate the
16737 + C++ files from M4 files so they don't show up in diffs
16739 + -- Adam Di Carlo <aph@debian.org> Fri, 10 Sep 1999 20:08:59 -0400
16741 +jade (1.2.1-10.1) unstable; urgency=low
16743 + * Non-maintainer upload.
16744 + * Update config.{guess,sub} for ARM
16746 + -- Jim Pick <jim@jimpick.com> Mon, 6 Sep 1999 10:46:41 -0700
16748 +jade (1.2.1-10) unstable; urgency=low
16750 + * port sources with g++ 2.95 (closes Bug#42925)
16751 + * update Policy standard compliance to 3.0.1
16752 + * README.sp-dev: note that SP_MULTI_BYTE must be defined when
16753 + compiling with the libraries/headers (closes Bug#41584)
16754 + * debian/rules: more debhelperification, where it helps
16756 + -- Adam Di Carlo <aph@debian.org> Fri, 10 Sep 1999 19:05:56 -0400
16758 +jade (1.2.1-9) unstable; urgency=low
16760 + * config/configure.in: add --enable-html to enable the HTML backend
16761 + * configure: regenerated
16762 + * debian/rules: enable the HTML backend
16763 + * README.Debian: add URLs, talk about the OpenJade project (thanks
16764 + esp. to Didier PH Martin)
16766 + -- Adam Di Carlo <aph@debian.org> Sat, 26 Jun 1999 14:56:54 -0400
16768 +jade (1.2.1-8) unstable; urgency=low
16770 + * patches for hurd port, and linking with libthreads (autoconf)
16771 + (closes Bug#38518)
16772 + * configure: regenerated from autoconf 1.13 (was 1.12)
16773 + * config/{ltmain.sh,ltconfig}: update from libtool 1.3.2
16774 + * README.Debian: update a few URLs
16775 + * Makefile.jade: no longer upstream or used by Debian, removed
16776 + * incidentally, non-Debian specific patches submitted to OpenJade group
16778 + -- Adam Di Carlo <aph@debian.org> Thu, 17 Jun 1999 21:45:37 -0400
16780 +jade (1.2.1-7) unstable; urgency=low
16782 + * sp: new conffile, /etc/sp.catalog, which is initially populated with
16783 + 'OVERRIDE YES', which means that public (catalog) identifiers will
16784 + override system identifiers, which is relevant to XML files which
16785 + require both (as suggested by Gregor Hoffleit). You can put other
16786 + global settings relevant to sp here also.
16787 + * correct libsp1 dependancy, discovered by the maintainer when upgrading
16788 + a hamm system to slink
16789 + * jade postinst: remove old policy violating sgml.catalog scrubbing; now
16790 + that is provided in a little script which can be hand run,
16791 + /usr/lib/jade/scrub-dsssl-catalog-cruft; be more discriminate in how
16792 + many cases we run under
16793 + * postinst: other minor style fixups
16794 + * rebuilt with newest g++ and libstdc++ packages
16796 + -- Adam Di Carlo <aph@debian.org> Mon, 3 May 1999 02:08:33 -0400
16798 +jade (1.2.1-6) unstable; urgency=low
16800 + * add some additional include files for libstyle to /usr/include/sp
16801 + (closes Bug#36207)
16802 + * debian/rules: clean out some cruft
16804 + -- Adam Di Carlo <aph@debian.org> Sat, 17 Apr 1999 18:19:28 -0400
16806 +jade (1.2.1-5) unstable; urgency=low
16808 + * parameterize and change default SGML paths to put /usr/local paths
16809 + prior to /usr paths; automatically populate README.Debian with the
16810 + proper value (closes Bug#31737)
16812 + -- Adam Di Carlo <aph@debian.org> Sun, 7 Feb 1999 18:01:32 -0500
16814 +jade (1.2.1-4) frozen unstable; urgency=low
16816 + * debian/rules: cosmetic cleanups
16817 + * debian/rules: recompile the whole shbang with -D_REENTRANT (policy
16818 + violation for libraries -- hopefully it won't hurt the non-libraries)
16820 + -- Adam Di Carlo <aph@debian.org> Tue, 8 Dec 1998 01:49:51 -0500
16822 +jade (1.2.1-3) frozen unstable; urgency=low
16824 + * recompile with new g++/libstdc++
16825 + * maintainer name change
16826 + * debian/control: fix spelling error in description (thanks, lintian!)
16827 + * debian/control: standards version 2.5.0
16829 + -- Adam Di Carlo <aph@debian.org> Sat, 28 Nov 1998 06:29:49 -0500
16831 +jade (1.2.1-2) frozen unstable; urgency=low
16833 + * debian/control: libsp1 conflicts with sp (<= 1.3-1.1-6), since if jade
16834 + is run with the mentioned or earlier sp, there are problems with the
16835 + shared libraries (closes Bug#29423)
16837 + -- Adam P. Harris <aph@debian.org> Sat, 14 Nov 1998 02:28:26 -0500
16839 +jade (1.2.1-1) frozen unstable; urgency=low
16841 + * new upstream minor version, bugfixes only, including portability fixes
16842 + and an autoconf bug which stopped the MIF backend from really being
16843 + enabled
16844 + * pristine upstream source
16845 + * config/configure.in: stop forcing us to use -ansi, which should help
16846 + porters, and is more correct -- consulting upstream with Cees de
16847 + Groot. Should close Bug#28176.
16849 + -- Adam P. Harris <aph@debian.org> Tue, 20 Oct 1998 02:46:32 -0400
16851 +jade (1.2-3) unstable; urgency=medium
16853 + * debian/control: jade suggests sp
16854 + * debian/control: jade depends on libsp1 (closes Bug#28031, Bug#27830)
16856 + -- Adam P. Harris <aph@debian.org> Fri, 16 Oct 1998 10:00:50 -0400
16858 +jade (1.2-2) unstable; urgency=low
16860 + * enable MIF backend
16861 + * sp properly depends on libsp1 -- either dpkg-shlibdeps let me down or
16862 + I'm using it wrong (closes Bug#27331)
16863 + * debian/rules: set LD_PRELOAD= to work around bad interaction between
16864 + fakeroot and dpkg-shlibdeps; ensure autoconf scripts are executable;
16865 + fixup some strictly internal stuff
16867 + -- Adam P. Harris <aph@debian.org> Sun, 4 Oct 1998 20:26:26 -0400
16869 +jade (1.2-1) unstable; urgency=low
16871 + * new upstream version, obsoletes all previous patches
16872 + - can build with egcs
16873 + - a MIF backend written by Kathleen Marszalek and Paul Prescod,
16874 + sponsored by ISOGEN International Corp
16875 + - an enhanced TeX backend written by Kathleen Marszalek, sponsored by
16876 + Novare International, and an associated LaTeX macro package by
16877 + Sebastian Rahtz.
16878 + - configure/autoconf support from Cees de Groot (see
16879 + README.configure); this should make it easier to install; uses libtool
16880 + for shared libraries
16881 + * apply Cees' autoconf patch 1 from http://www.sgmltools.org/jade.html;
16882 + now we ship libgrove, libspgrove, and libstyle shared libs in the
16883 + libsp1 packages
16885 + * NOTE: shared library SO version numbers have changed. This version of
16886 + libsp.so et al are not compatible with the other ones. Number has been
16887 + moved back from .so.1.3.x to so.1.0.3. Honestly, I should bump the so
16888 + to .so.2.x but since the only other pkg which depends on this is
16889 + maintained by me I'm not going to bother. Feel free to file a bug
16890 + report if this messes you up and I'll look into bumping the .so.
16891 + * debian/rules: use debhelper-style temporary build directories and use
16892 + dh_strip for maximum strip'age
16893 + * config/configure.in: remove sig_atomic_t check, stop adding
16894 + -fno-implicit-templates to CXXFLAGS, add --enable-default-search-path
16895 + for setting the search path
16896 + * debian/rules: stop generating buildinfo file, it's too much of a PITA
16898 + -- Adam P. Harris <aph@debian.org> Sat, 26 Sep 1998 18:13:27 -0400
16900 +jade (1.1.1-4) unstable; urgency=low
16902 + * Apply patches for Jadetex Aug06
16903 + http://tug.org/applications/jadetex/jade.patch.aug06
16904 + This requires jadetex 1.04 or better
16905 + * libsp1*: update README.Debian
16906 + * libsp1-dev: symlink doc dir from libsp1
16907 + * jade maintainer scripts: only blab about removing entries if we really are
16908 + * debian/rules: only install *.htm from jadedoc, eliminating lintian's
16909 + extra-license-file warning
16910 + * debian/rules: minor housekeeping
16912 + -- Adam P. Harris <aph@debian.org> Thu, 3 Sep 1998 04:09:58 -0400
16914 +jade (1.1.1-3) unstable; urgency=low
16916 + * Apply patches for Jadetex July07
16917 + http://tug.org/applications/jadetex/jade.patch.july07
16918 + http://tug.org/applications/jadetex/jade-newfiles.zip
16919 + This incorporates jadetex table support. The jadetex 'aug06' patches
16920 + have not been incorporated since this would required jadetex 1.04 or
16921 + better.
16922 + * libsp1.shlibs: provide library in >= 1.3.1-1.1.1-1, rather than
16923 + requiring the exact current version
16925 + -- Adam P. Harris <aph@debian.org> Fri, 14 Aug 1998 00:02:39 -0400
16927 +jade (1.1.1-2) unstable; urgency=low
16929 + * libsp1-dev: include libgrove.a and libspgrove.a (no shared versions
16930 + yet, someone tell me if they want them) and some include files for
16931 + grove and spgrove. Prompted by problems compiling dsc.
16932 + * link /usr/doc/jade/jade.htm to /usr/doc/jade/index.html
16934 + -- Adam P. Harris <aph@debian.org> Wed, 5 Aug 1998 19:32:41 -0400
16936 +jade (1.1.1-1) unstable; urgency=low
16938 + * new upstream versions (sp 1.3.1, jade 1.1.1)
16939 + * libsp1 split out from sp, sp-dev renamed to libsp1-dev
16940 + * libsp1-dev depends on libc6-dev and libg++272-dev, and recommends g++272
16941 + * libsp1 replaces older sp's since they had libsp.so.1* in them
16942 + * don't have the link from HTML file to /usr/doc/sp/changelog
16943 + * I tried again to use eg++ instead of g++272 but jade is still
16944 + non-functional when formatting docbook. For porters, the entire SP
16945 + suite itself seems to do fine under eg++.
16947 + -- Adam P. Harris <aph@debian.org> Sat, 25 Jul 1998 12:38:08 -0400
16949 +jade (1.1-6) frozen unstable; urgency=low
16951 + * jade.1: fixed location reference of jade.htm
16952 + * backout from egcs' c++, since that seems to be the cause of the core
16953 + dumps, so we're back with 'gcc -fno-implicit-templates' as our c++
16954 + compiler; thanks for Terry Dawson <terry@linux.spice.net.au> for
16955 + isolating exactly when jade started crumbling (closes Bug#20796,
16956 + Bug#21895, Bug#21856)
16957 + * set dependancies on libsp.so now that we've got to do this manually
16958 + again
16959 + * rebuild with new sgml-catalog-check.pl from sgml-data, and add a check
16960 + to try to ensure we never build with bad symlinks (closes Bug#21807)
16961 + * add buildinfo.Debian file for all binary packages
16962 + * /usr/doc/sp/README added from upstream, minor updates to reflect
16963 + Debian way
16964 + * debian/control: bumped standards compliance to 2.4.1.0
16965 + * /usr/doc/*/copyright file brought up to policy spec
16966 + * TODO.Debian updated
16967 + * /usr/doc/sp/changelog and /usr/doc/sp-dev/changelog link created
16968 + (policy)
16970 + -- Adam P. Harris <aph@debian.org> Sat, 2 May 1998 17:21:06 -0400
16972 +jade (1.1-5) frozen unstable; urgency=low
16974 + * set SGML_SEARCH_PATH_DEFAULT to /usr/lib/sgml:/usr/local/lib/sgml (was
16975 + unset before, leading to wierd searching in /etc sometimes)
16976 + * set SGML_CATALOG_FILES_DEFAULT to
16977 + /usr/lib/sgml/catalog:/usr/local/lib/sgml/catalog
16978 + * rebuild with egcs-2.90.26 980308, remove -fno-implicit-templates,
16979 + which means Alpha platform should compile out of the box, linked
16980 + against libstdc++2.8 as well
16981 + * fixing dependancies: sp shouldn't depend on itself, sp-dev now
16982 + depends on sync'd version of sp, jade depends on sync'd version of sp;
16983 + I think tight coupling is there between jade and sp. I might loosen
16984 + it later.
16985 + * call ldconfig in sp's postinst, as stipulated by David Engel
16986 + * don't build SP tools with -fpic, you silly!
16988 + -- Adam P. Harris <aph@debian.org> Sun, 29 Mar 1998 16:47:44 -0500
16990 +jade (1.1-4) frozen unstable; urgency=low
16992 + * declarations do in /usr/lib/sgml/declaration, not declarations, as per
16993 + SGML subpolicy.
16994 + * unicode subdir moved to /usr/lib/sp/unicode (lintian)
16995 + * added declaration sp_implied.decl, representing sp's default
16996 + declaration
16997 + * don't call 'install-docs -r' from postrm, so scripts changed into
16998 + prerm (lintian)
16999 + * updates to README files
17001 + -- Adam P. Harris <aph@debian.org> Thu, 19 Mar 1998 21:49:29 -0500
17003 +jade (1.1-3) frozen unstable; urgency=low
17005 + * make shared libsp.so.1.3, major revision 1, link all programs in sp
17006 + and jade against that, which lowers the combined size by about 1MB
17007 + * add sp-dev package to hold the unversioned library symlink, the static
17008 + library, and the include files
17009 + * change documentation area from "text" to "Apps/Text"
17010 + * remove _GNU_SOURCE define, not needed anymore AFAIK
17011 + * move jade DTDs in to dtd subdir, make proper sublinks
17012 + * move jade's dsssl catalog to /usr/lib/jade/catalog
17013 + * rename jade's smgl catalog package from 'dsssl' to 'jade'
17014 + * rename sp's japan.dcl to japan.decl (more standard)
17015 + * include xml.decl
17017 + -- Adam P. Harris <aph@debian.org> Sun, 15 Mar 1998 15:42:00 -0500
17019 +jade (1.1-2) unstable; urgency=low
17021 + * split sp out from this source package, so now the jade source creates
17022 + both the jade and sp packages
17023 + * jade no longer conflicts/replaces/provides sp, but rather depends on
17024 + it
17025 + * sp version is SPVer-JadeSrcVer, i.e., 1.3-1.1-2 (thanks to Yann Dirson)
17026 + * debian/postrm*: be tolerant removing documentation
17027 + * README.Debian: add some links to relevant web sites
17029 + -- Adam P. Harris <aph@debian.org> Wed, 11 Mar 1998 12:23:11 -0500
17031 +jade (1.1-1) unstable; urgency=low
17033 + * new maintainer
17034 + * new upstream version (closes Bug#19155, Bug#19174, Bug#19175)
17035 + * jade now conflicts/replaces/provides sp
17036 + * source managed with CVS
17037 + * updated Standard compliance
17038 + * debian/rules: cleanup and abstraction like I like it, remove debstd
17039 + (closes Bug#15443)
17040 + * debian/control: suggest doc-base, since that is how I register HTML
17041 + * debian/control: switched to priority optional, which was sp's priority
17042 + * define SP_HAVE_SOCKET for http support
17043 + * define _GNU_SOURCE to help Alpha users (closes Bug#14319)
17044 + * include nsgmls, spam, and spent man pages from 1.0.1 distribution
17045 + * rename sx to sgml2xml to prevent namespace pollution
17047 + -- Adam P. Harris <aph@debian.org> Tue, 10 Mar 1998 04:29:52 -0500
17049 +jade (1.0.1-1) unstable; urgency=low
17051 + * new upstream release, libc6.
17052 + * debian/postrm: fix cleanup bug (missing $CAT) and use
17053 + install-sgmlcatalog --remove.
17054 + * debian/postinst: *always* remove the old entries, and use
17055 + install-sgmlcatalog --install. (Plan to ditch all this cleanup code
17056 + before Debian 2.0.)
17057 + * Makefile.jade: turn on SP_HAVE_GETTEXT, but turn of SP_HAVE_SOCKET
17058 + since libc6 has a broken arpa/inet.h that won't build with -ansi.
17060 + -- Mark W. Eichin <eichin@kitten.gen.ma.us> Tue, 28 Oct 1997 02:19:39 -0500
17062 +jade (0.8-4) unstable; urgency=low
17064 + * debian/postinst, debian/postrm: add _FIX to the $SIG line, and install
17065 + the *dsssl* catalog entries, not the davenport ones (oops,
17066 + overenthusiastic cut and paste...) Make postrm more verbose, let
17067 + postinst treat configure like upgrade. grep $CAT, not stdin.
17068 + * turn off SP_HAVE_GETTEXT until I do a libc6 release.
17070 + -- Mark W. Eichin <eichin@kitten.gen.ma.us> Sat, 2 Aug 1997 18:30:58 -0400
17072 +jade (0.8-3) unstable; urgency=low
17074 + * Makefile.jade: set SP_HAVE_LOCALE, SP_HAVE_GETTEXT, SP_HAVE_SOCKET as
17075 + well (per suggestions from Ulrich Drepper.)
17077 + -- Mark W. Eichin <eichin@kitten.gen.ma.us> Sat, 5 Jul 1997 13:53:27 -0400
17079 +jade (0.8-2) unstable; urgency=low
17081 + * Makefile.jade: set SGML_CATALOG_FILES_DEFAULT to the debian value
17082 + (/usr/lib/sgml/catalog, so that the relative names work, *not* the
17083 + /etc/ version.)
17084 + * debian/rules: install dsssl/catalog as dsssl.cat
17085 + * debian/postinst, postrm: use jade-style md5 signatures, more advanced
17086 + cleanup code.
17088 + -- Mark W. Eichin <eichin@kitten.gen.ma.us> Tue, 1 Jul 1997 00:54:18 -0400
17090 +jade (0.8-1) unstable; urgency=low
17092 + * Initial Release, build with deb-make single.
17093 + * debian/rules: Only build/install jade, leave out the rest because they
17094 + are already in the debian "sp" package.
17095 + * debian/{postinst,postrm}: add/remove DSSSL DTD entries.
17097 + -- Mark W. Eichin <eichin@kitten.gen.ma.us> Fri, 27 Jun 1997 22:28:34 -0400
17098 --- openjade1.3-1.3.2.orig/debian/compat
17099 +++ openjade1.3-1.3.2/debian/compat
17100 @@ -0,0 +1 @@
17101 +1
17102 --- openjade1.3-1.3.2.orig/debian/conffiles
17103 +++ openjade1.3-1.3.2/debian/conffiles
17104 @@ -0,0 +1 @@
17105 +/etc/sgml/openjade1.3.cat
17106 --- openjade1.3-1.3.2.orig/debian/control
17107 +++ openjade1.3-1.3.2/debian/control
17108 @@ -0,0 +1,24 @@
17109 +Source: openjade1.3
17110 +Section: text
17111 +Priority: optional
17112 +Maintainer: Neil Roeth <neil@debian.org>
17113 +Standards-Version: 3.9.2
17114 +Build-Depends: libosp-dev (>= 1.5.2), debhelper (>= 4.1.75), autotools-dev, dh-buildinfo, libperl4-corelibs-perl
17116 +Package: openjade1.3
17117 +Architecture: any
17118 +Depends: ${shlibs:Depends}, sgml-base, ${misc:Depends}
17119 +Suggests: doc-base, sgml-data
17120 +Description: Implementation of the DSSSL language
17121 + OpenJade is an implementation of the ISO/IEC 10179:1996 standard
17122 + DSSSL language. It is based on James Clark's Jade software.
17123 + .
17124 + This is the latest stable release of OpenJade. For the
17125 + latest-and-greatest/bleeding-edge, install the `openjade' package.
17126 + .
17127 + The OpenJade processor, in conjunction with a DSSSL style sheet, is
17128 + capable of translating SGML documents into other formats. Output
17129 + formats currently supported are RTF, HTML, MIF, JadeTeX, or an XML
17130 + representation of the flow object tree. Using its own non-standard
17131 + system, it is also capable of transforming SGML or XML documents into
17132 + documents conforming to another DTD.
17133 --- openjade1.3-1.3.2.orig/debian/copyright.Debian
17134 +++ openjade1.3-1.3.2/debian/copyright.Debian
17135 @@ -0,0 +1,19 @@
17137 +-----
17139 +The jade package was originally Debianized by Mark W. Eichin
17140 +<eichin@kitten.gen.ma.us> on Fri, 27 Jun 1997 22:28:34 -0400.
17141 +Maintenance of the jade package is now handled by Adam P. Harris
17142 +<aph@debian.org>.
17143 +The packaging was adapted to openjade1.3 by Yann Dirson
17144 +<dirson@debian.org>, (c) Alcove <http://www.alcove.com/>.
17146 +The original source was downloaded from
17147 +<URL:http://sf.net/projects/openjade/>.
17149 +The Debian maintainers have made minor changes to this software in
17150 +order to better integrate the software with Debian's SGML environment,
17151 +and for the creation and use of libsp as a shared library. All
17152 +Debian-specific modifications and build scripts are licensed under the
17153 +GNU General Public License (GPL) version 2 or later. You can find a
17154 +copy of the GPL in /usr/share/common-licenses/GPL on Debian systems.
17155 --- openjade1.3-1.3.2.orig/debian/jade.1
17156 +++ openjade1.3-1.3.2/debian/jade.1
17157 @@ -0,0 +1,32 @@
17158 +.TH OPENJADE1.3 1
17159 +.SH NAME
17160 +openjade1.3 \- applies a DSSSL stylesheet to an SGML or XML document
17161 +.SH SYNOPSIS
17162 +.B openjade1.3
17163 +.I "[options] files ..."
17164 +.SH "DESCRIPTION"
17165 +This manual page documents briefly the
17166 +.BR openjade1.3
17167 +command.
17168 +This manual page was written for the Debian GNU/Linux distribution
17169 +(but may be used by others), because the original program does not
17170 +have a manual page.
17171 +Instead, it has documentation in HTML format; see below.
17172 +.PP
17173 +.B openjade
17174 +is an implementation of the DSSSL style language. It is the
17175 +continuation of the development of James Clark's
17176 +.B jade
17177 +processor (James' DSSSL Engine), whose development has been stopped.
17178 +This is the latest version of the 1.3 branch, which is the stable
17179 +branch. The
17180 +.B openjade
17181 +package currently contains a bleeding-edge 1.4devel version.
17182 +.SH OPTIONS
17183 +For a complete description, see the html files.
17184 +.SH "SEE ALSO"
17185 +The programs are documented fully in
17186 +.B /usr/share/doc/openjade1.3/index.htm
17187 +.SH AUTHOR
17188 +This manual page was written by Mark W. Eichin <eichin@kitten.gen.ma.us>,
17189 +for the Debian GNU/Linux system, and updated by Yann Dirson <dirson@debian.org>.
17190 --- openjade1.3-1.3.2.orig/debian/jade.doc-base
17191 +++ openjade1.3-1.3.2/debian/jade.doc-base
17192 @@ -0,0 +1,13 @@
17193 +Document: jade
17194 +Title: Jade Users Manual
17195 +Author: James Clark <jjc@jclark.com>
17196 +Abstract: Users manual and documentation for Jade.
17197 + Jade is an implementation of the DSSSL style language.
17198 + This allows you to flexibly format SGML and XML data to
17199 + media-specific back-ends, including TeX, RTF, and other
17200 + XML or SGML files.
17201 +Section: Text
17203 +Format: HTML
17204 +Index: /usr/share/doc/jade/jade.htm
17205 +Files: /usr/share/doc/jade/*.htm
17206 --- openjade1.3-1.3.2.orig/debian/jade.postinst
17207 +++ openjade1.3-1.3.2/debian/jade.postinst
17208 @@ -0,0 +1,25 @@
17209 +#!/bin/sh
17211 +set -e
17213 +case "$1" in
17214 + configure)
17215 + # warning if we locate old cruft in the catalog
17216 + if grep -q "^-- SGML BEGIN dsssl.cat" /etc/sgml.catalog; then
17217 + echo "Found old DSSSL DTD entries in /etc/sgml.catalog"
17218 + echo "Advise that you run /usr/lib/jade/scrub-dsssl-catalog-cruft"
17219 + echo " [ press any key to continue ]"
17220 + read $ANS
17221 + fi
17223 + # another crufy old name for jade's DTDs
17224 + install-sgmlcatalog --remove dsssl || true
17226 + # install jade's proper catalog entries
17227 + install-sgmlcatalog --install /usr/lib/jade/catalog jade
17228 + ;;
17229 +esac
17231 +#DEBHELPER#
17233 +exit 0
17234 --- openjade1.3-1.3.2.orig/debian/jade.prerm
17235 +++ openjade1.3-1.3.2/debian/jade.prerm
17236 @@ -0,0 +1,14 @@
17237 +#!/bin/sh
17239 +set -e
17241 +case "$1" in
17242 + remove|deconfigure|upgrade)
17243 + # remove jade catalog
17244 + install-sgmlcatalog --remove jade
17245 + ;;
17246 +esac
17248 +#DEBHELPER#
17250 +exit 0
17251 --- openjade1.3-1.3.2.orig/debian/openjade1.3.sgmlcatalogs
17252 +++ openjade1.3-1.3.2/debian/openjade1.3.sgmlcatalogs
17253 @@ -0,0 +1 @@
17254 +dsssl/catalog /usr/share/sgml/openjade1.3/catalog
17255 --- openjade1.3-1.3.2.orig/debian/postinst
17256 +++ openjade1.3-1.3.2/debian/postinst
17257 @@ -0,0 +1,7 @@
17258 +#!/bin/sh
17259 +set -e
17261 +update-alternatives --install /usr/bin/openjade openjade /usr/bin/openjade1.3 103 \
17262 + --slave /usr/share/man/man1/openjade.1.gz openjade.1.gz /usr/share/man/man1/openjade1.3.1.gz
17264 +#DEBHELPER#
17265 --- openjade1.3-1.3.2.orig/debian/prerm
17266 +++ openjade1.3-1.3.2/debian/prerm
17267 @@ -0,0 +1,6 @@
17268 +#!/bin/sh
17269 +set -e
17271 +update-alternatives --remove openjade /usr/bin/openjade1.3
17273 +#DEBHELPER#
17274 --- openjade1.3-1.3.2.orig/debian/rules
17275 +++ openjade1.3-1.3.2/debian/rules
17276 @@ -0,0 +1,173 @@
17277 +#!/usr/bin/make -f
17278 +# rules file for jade
17279 +#
17280 +# The principle of these rules files are simplicity, robustness,
17281 +# ease of maintenance, and readability through abstraction
17282 +#
17283 +# Some bytes in this file may have been touched by Ian Jackson,
17284 +# so I can never remove his name from this file. Oh boy.
17286 +export DH_VERBOSE=1
17288 +pkg-jade := openjade1.3
17290 +# default SGML dir
17291 +sgmldir := /usr/share/sgml
17292 +local-sgmldir := /usr/local/share/sgml
17294 +# default SGML pathing - see /usr/share/doc/opensp/sysid.htm
17295 +default-sgml-path := $(local-sgmldir):$(sgmldir)
17296 +default-catalogs := /etc/sgml/catalog
17298 +# directory abstraction
17299 +prefix-jade := debian/tmp
17300 +bindir-jade := $(prefix-jade)/usr/bin
17301 +libdir-jade := $(prefix-jade)/usr/lib
17302 +sgmldir-jade := $(prefix-jade)/usr/share/sgml/$(pkg-jade)
17303 +docdir-jade := $(prefix-jade)/usr/share/doc/$(pkg-jade)
17304 +infodir-jade := $(prefix-jade)/usr/share/info
17305 +sharedir-jade := $(prefix-jade)/usr/share
17306 +mandir-jade := $(prefix-jade)/usr/share/man/man1
17308 +# build tool abstraction
17309 +install_file := install -o root -g root -m 644 -p
17310 +install_script := install -o root -g root -m 755 -p
17311 +install_program := install -o root -g root -m 755 -p --strip
17312 +make_directory := install -d -o root -g root -m 755
17314 +# determine our top level
17315 +SRCDIR := $(shell pwd)
17317 +CFLAGS := -g -pipe
17318 +CXXFLAGS := -g -pipe -fpermissive
17319 +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
17320 + CFLAGS += -O0
17321 + CXXFLAGS += -O0
17322 +else
17323 + CFLAGS += -O2
17324 + CXXFLAGS += -O2
17325 +endif
17326 +export CFLAGS
17327 +export CXXFLAGS
17329 +config.status:
17330 + dh_autotools-dev_updateconfig
17331 + ./configure --prefix=/usr \
17332 + --datadir=\$${prefix}/share/sgml/openjade1.3 \
17333 + --enable-static --disable-shared \
17334 + --enable-html --enable-http --enable-mif
17336 +build: build-arch build-indep
17337 +build-arch: build-stamp
17338 +build-indep: build-stamp
17339 +build-stamp: config.status
17340 + dh_testdir
17341 + $(MAKE)
17342 + touch build-stamp
17344 +clean:
17345 + dh_testdir
17346 + rm -f build binary-arch
17347 + [ ! -f Makefile ] || $(MAKE) clean mrproper
17348 + rm -f sx/sx_inst.cxx sx/XmlOutputMessages.rc sx/XmlOutputMessages.h sx/SxMessages.rc sx/SxMessages.h style/style_inst.cxx style/primitive_inst.cxx style/InterpreterMessages.rc style/InterpreterMessages.h style/InterpreterMessages.h style/FlowObj_inst.cxx style/DssslAppMessages.rc style/DssslAppMessages.h spgrove/grove_inst.cxx spam/spam_inst.cxx spam/SpamMessages.rc spam/SpamMessages.h nsgmls/nsgmls_inst.cxx nsgmls/RastEventHandlerMessages.rc /nsgmls/RastEventHandlerMessages.h nsgmls/NsgmlsMessages.rc nsgmls/NsgmlsMessages.h lib/xentmgr_inst.cxx lib/version.h lib/parser_inst.cxx lib/entmgr_inst.cxx lib/arc_inst.cxx lib/app_inst.cxx lib/URLStorageMessages.rc lib/URLStorageMessages.h lib/StdioStorageMessages.rc lib/StdioStorageMessages.h lib/PosixStorageMessages.rc lib/PosixStorageMessages.h lib/ParserMessages.rc lib/ParserMessages.h lib/ParserMessages.cxx lib/ParserAppMessages.rc lib/ParserAppMessages.h lib/MessageReporterMessages.rc lib/MessageReporterMessages.h lib/MessageFormatterMessages.rc lib/MessageFormatterMessages.h lib/EntityManagerMessages.rc lib/EntityManagerMessages.h lib/CmdLineAppMessages.rc lib/CmdLineAppMessages.h lib/CatalogMessages.rc lib/CatalogMessages.h lib/ArcEngineMessages.rc lib/ArcEngineMessages.h jade/TransformFOTBuilder_inst.cxx jade/TeXMessages.rc jade/TeXMessages.h jade/TeXFOTBuilder_inst.cxx jade/RtfMessages.rc jade/RtfMessages.h jade/RtfFOTBuilder_inst.cxx jade/MifMessages.rc jade/MifMessages.h jade/MifFOTBuilder_inst.cxx jade/JadeMessages.rc jade/JadeMessages.h jade/HtmlMessages.rc jade/HtmlMessages.h jade/HtmlFOTBuilder_inst.cxx include/config.h Makefile.lib Makefile.comm Makefile.prog
17349 +# test ! -f Makefile.dist || $(MAKE) mrproper
17350 +# rm -f `find . -name "*~"`
17351 +# rm -rf $(prefix-jade)
17352 + rm -f debian/copyright debian/files* core \
17353 + config.status config.log Makefile
17354 +# these are created in the binary-arch rule
17355 + rm -f debian/README.Debian debian/substvars debian/shlibs* \
17356 + debian/sp.conffiles
17357 +# some stuff that should be cleaned in upstream Makefile
17358 +# find . -name 'Makefile.dep' | xargs rm -f
17359 +# rm -f libtool
17360 + dh_autotools-dev_restoreconfig
17361 + dh_clean
17363 +binary-indep: build
17364 +# There are no architecture-independent files to be uploaded
17365 +# generated by this package.
17367 +binary-arch: build
17368 + dh_testdir
17369 + dh_testroot
17370 + rm -rf $(prefix-jade)
17372 +# lets create our debian-std copyright file; I like to ensure
17373 +# I have a verbatim copy of the upstream copyright by cat'ing
17374 +# the Debian-specific stuff to the end
17375 + cat COPYING debian/copyright.Debian > debian/copyright
17377 +# substitution in README.Debian
17378 + sed -e 's|%{default-catalogs}|$(default-catalogs)|;' \
17379 + -e 's|%{default-sgml-path}|$(default-sgml-path)|;' \
17380 + -e 's|%{sgmldir}|$(sgmldir)|;' \
17381 + debian/README.Debian.in > debian/README.Debian
17383 +##
17384 +## install jade
17385 + $(make_directory) $(bindir-jade) $(sgmldir-jade) $(docdir-jade) \
17386 + $(mandir-jade)
17388 + $(MAKE) install PROGDIRS="jade" LIBDIRS="" \
17389 + prefix=$(SRCDIR)/$(prefix-jade)/usr INSTALL="$(install_script)"
17391 +# rename to avoid conflict
17392 + cd $(SRCDIR)/$(prefix-jade)/usr/bin && mv openjade openjade1.3
17394 +# upstream makefile installs builtins.dsl to bogus location
17395 + rm -f $(sharedir-jade)/builtins.dsl
17397 +# check these in dsssl/catalog
17398 + $(make_directory) $(sgmldir-jade)
17399 + $(install_file) dsssl/builtins.dsl $(sgmldir-jade)
17400 + $(install_file) dsssl/dsssl.dtd $(sgmldir-jade)
17401 + $(install_file) dsssl/style-sheet.dtd $(sgmldir-jade)
17402 + $(install_file) dsssl/fot.dtd $(sgmldir-jade)
17403 +# $(install_file) dsssl/catalog $(sgmldir-jade)
17404 +# fix the catalog to reference DTDs in the 'dtd' directory
17405 +# perl -pi -e 's|"([^"]+\.dtd)"|"dtd/$$1"|;' $(libdir-jade)/catalog
17406 +# make the links
17407 +# /usr/share/sgml-data/sgml-catalog-check.pl -l -v 0 -d \
17408 +# $(sgmldir-jade) $(libdir-jade)/catalog
17410 +# install our little cruft-removing script
17411 +# $(install_script) debian/scrub-dsssl-catalog-cruft $(libdir-jade)/
17413 +# install HTML documentation
17414 + dh_installdocs -p$(pkg-jade) jadedoc/*.htm
17415 + ln -s index.htm $(docdir-jade)/index.html
17416 + dh_installchangelogs -p$(pkg-jade)
17417 + dh_buildinfo
17419 +# install man pages
17420 + $(install_file) debian/jade.1 $(mandir-jade)/openjade1.3.1
17422 +# install examples
17423 + dh_installexamples -p$(pkg-jade) dsssl/demo.*
17425 +# make sure control files are good
17426 + sh -n debian/jade.postinst
17427 + sh -n debian/jade.prerm
17429 + dh_installcatalogs
17431 + dh_strip -a
17432 + dh_compress -a
17433 + dh_fixperms -a
17435 + dh_installdeb -a
17437 + dh_shlibdeps -a
17438 + dh_gencontrol -a
17439 + dh_md5sums -a
17440 + dh_builddeb -a
17442 +binary: binary-indep binary-arch
17444 +.PHONY: binary binary-indep clean
17446 +# Local variables:
17447 +# mode: makefile
17448 +# compile-command: "cd .. && fakeroot dpkg-buildpackage -uc -us"
17449 +# End:
17450 --- openjade1.3-1.3.2.orig/debian/scrub-dsssl-catalog-cruft
17451 +++ openjade1.3-1.3.2/debian/scrub-dsssl-catalog-cruft
17452 @@ -0,0 +1,31 @@
17453 +#!/bin/sh
17455 +set -e
17457 +# catalog info based on dsssl/catalog
17459 +CAT=/etc/sgml.catalog
17460 +# the _FIX makes it actually put in the dsssl.cat instead of the davenport one
17461 +SIG="9ed965b566274159f9ea7c7feb9cc48c_FIX"
17462 +SBEG="-- SGML BEGIN dsssl.cat"
17463 +SEND="-- SGML END dsssl.cat"
17464 +SIGNBEG="$SBEG $SIG --"
17465 +SIGNEND="$SEND $SIG --"
17467 +# *always* ditch the old crufty entries.
17468 +if grep -q "^$SBEG" $CAT && grep -q "^$SEND" $CAT; then
17469 + echo "Cleaning out DSSSL DTD entries from $CAT on $1."
17470 + sed -e "/$SBEG/,/$SEND/d" < $CAT > ${CAT}.new
17471 + mv ${CAT}.new ${CAT}
17472 +else
17473 + if grep -q "fot.dtd" $CAT && \
17474 + grep -q "dsssl.dtd" $CAT && \
17475 + grep -q "style-sheet.dtd" $CAT
17476 + then
17477 + echo "Untagged entries found, cleaning"
17478 + grep -v "fot.dtd" < $CAT | \
17479 + grep -v "dsssl.dtd" | \
17480 + grep -v "style-sheet.dtd" > ${CAT}.new
17481 + mv ${CAT}.new ${CAT}
17482 + fi
17483 +fi
17484 --- openjade1.3-1.3.2.orig/debian/source/format
17485 +++ openjade1.3-1.3.2/debian/source/format
17486 @@ -0,0 +1 @@
17487 +1.0
17488 --- openjade1.3-1.3.2.orig/jade/Makefile.sub
17489 +++ openjade1.3-1.3.2/jade/Makefile.sub
17490 @@ -4,7 +4,7 @@
17491 INCLUDE=-I$(srcdir)/../grove -I$(srcdir)/../spgrove -I$(srcdir)/../style
17492 # XLIBS=../style/libostyle.a ../spgrove/libospgrove.a ../grove/libogrove.a \
17493 # ../lib/libosp.a
17494 -XLIBS=../style/libostyle.a ../spgrove/libospgrove.a ../grove/libogrove.a $(splibdir)/libosp.a
17495 +XLIBS=../style/libostyle.a ../spgrove/libospgrove.a ../grove/libogrove.a -losp
17496 GENSRCS=JadeMessages.h HtmlMessages.h RtfMessages.h TeXMessages.h \
17497 HtmlFOTBuilder_inst.cxx RtfFOTBuilder_inst.cxx TeXFOTBuilder_inst.cxx \
17498 TransformFOTBuilder_inst.cxx MifMessages.h MifFOTBuilder_inst.cxx
17499 --- openjade1.3-1.3.2.orig/jadedoc/index.htm
17500 +++ openjade1.3-1.3.2/jadedoc/index.htm
17501 @@ -214,13 +214,13 @@
17503 <h2><a name="using"><font face="Arial">Using OpenJade</font></a></h2>
17504 <p><font face="Arial">Add the directory containing the
17505 - OpenJade binary to your path, change directory to the
17506 - dsssl directory, and do </font></p>
17507 + OpenJade binary to your path, change directory to the examples
17508 + directory (<code>/usr/share/doc/openjade1.3/examples</code>) and do </font></p>
17509 <pre><font face="Arial">
17510 -openjade demo.sgm
17511 +openjade1.3 -o /tmp/demo.fot -d demo.dsl demo.sgm
17512 </font></pre>
17513 <p><font face="Arial">If everything is working, there
17514 - should be a well-formed XML file <code>demo.fot</code>
17515 + should be a well-formed XML file <code>/tmp/demo.fot</code>
17516 created. </font></p>
17517 <p><font face="Arial">The system identifier of the
17518 document to be processed is specified as an argument to
17519 --- openjade1.3-1.3.2.orig/libtool
17520 +++ openjade1.3-1.3.2/libtool
17521 @@ -0,0 +1,5229 @@
17522 +#! /bin/bash
17524 +# libtool - Provide generalized library-building support services.
17525 +# Generated automatically by (GNU openjade 1.3.2)
17526 +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17527 +#
17528 +# Copyright (C) 1996-2000 Free Software Foundation, Inc.
17529 +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17530 +#
17531 +# This program is free software; you can redistribute it and/or modify
17532 +# it under the terms of the GNU General Public License as published by
17533 +# the Free Software Foundation; either version 2 of the License, or
17534 +# (at your option) any later version.
17535 +#
17536 +# This program is distributed in the hope that it will be useful, but
17537 +# WITHOUT ANY WARRANTY; without even the implied warranty of
17538 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17539 +# General Public License for more details.
17540 +#
17541 +# You should have received a copy of the GNU General Public License
17542 +# along with this program; if not, write to the Free Software
17543 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17544 +#
17545 +# As a special exception to the GNU General Public License, if you
17546 +# distribute this file as part of a program that contains a
17547 +# configuration script generated by Autoconf, you may include it under
17548 +# the same distribution terms that you use for the rest of that program.
17550 +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17551 +Xsed="sed -e s/^X//"
17553 +# The HP-UX ksh and POSIX shell print the target directory to stdout
17554 +# if CDPATH is set.
17555 +if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
17557 +# ### BEGIN LIBTOOL CONFIG
17559 +# Libtool was configured on host blackbox:
17561 +# Shell to use when invoking shell scripts.
17562 +SHELL="/bin/bash"
17564 +# Whether or not to build shared libraries.
17565 +build_libtool_libs=no
17567 +# Whether or not to add -lc for building shared libraries.
17568 +build_libtool_need_lc=yes
17570 +# Whether or not to build static libraries.
17571 +build_old_libs=yes
17573 +# Whether or not to optimize for fast installation.
17574 +fast_install=needless
17576 +# The host system.
17577 +host_alias=
17578 +host=x86_64-unknown-linux-gnu
17580 +# An echo program that does not interpret backslashes.
17581 +echo="echo"
17583 +# The archiver.
17584 +AR="ar"
17585 +AR_FLAGS="cru"
17587 +# The default C compiler.
17588 +CC="gcc"
17590 +# Is the compiler the GNU C compiler?
17591 +with_gcc=yes
17593 +# The linker used to build libraries.
17594 +LD="/usr/bin/ld"
17596 +# Whether we need hard or soft links.
17597 +LN_S="ln -s"
17599 +# A BSD-compatible nm program.
17600 +NM="/usr/bin/nm -B"
17602 +# A symbol stripping program
17603 +STRIP=strip
17605 +# Used to examine libraries when file_magic_cmd begins "file"
17606 +MAGIC_CMD=/usr/bin/file
17608 +# Used on cygwin: DLL creation program.
17609 +DLLTOOL="dlltool"
17611 +# Used on cygwin: object dumper.
17612 +OBJDUMP="objdump"
17614 +# Used on cygwin: assembler.
17615 +AS="as"
17617 +# The name of the directory that contains temporary libtool files.
17618 +objdir=.libs
17620 +# How to create reloadable object files.
17621 +reload_flag=" -r"
17622 +reload_cmds="\$LD\$reload_flag -o \$output\$reload_objs"
17624 +# How to pass a linker flag through the compiler.
17625 +wl="-Wl,"
17627 +# Object file suffix (normally "o").
17628 +objext="o"
17630 +# Old archive suffix (normally "a").
17631 +libext="a"
17633 +# Executable file suffix (normally "").
17634 +exeext=""
17636 +# Additional compiler flags for building library objects.
17637 +pic_flag=" -fPIC"
17638 +pic_mode=default
17640 +# Does compiler simultaneously support -c and -o options?
17641 +compiler_c_o="no"
17643 +# Can we write directly to a .lo ?
17644 +compiler_o_lo="no"
17646 +# Must we lock files when doing compilation ?
17647 +need_locks="yes"
17649 +# Do we need the lib prefix for modules?
17650 +need_lib_prefix=no
17652 +# Do we need a version for libraries?
17653 +need_version=no
17655 +# Whether dlopen is supported.
17656 +dlopen_support=unknown
17658 +# Whether dlopen of programs is supported.
17659 +dlopen_self=unknown
17661 +# Whether dlopen of statically linked programs is supported.
17662 +dlopen_self_static=unknown
17664 +# Compiler flag to prevent dynamic linking.
17665 +link_static_flag="-static"
17667 +# Compiler flag to turn off builtin functions.
17668 +no_builtin_flag=" -fno-builtin -fno-rtti -fno-exceptions"
17670 +# Compiler flag to allow reflexive dlopens.
17671 +export_dynamic_flag_spec="\${wl}--export-dynamic"
17673 +# Compiler flag to generate shared objects directly from archives.
17674 +whole_archive_flag_spec="\${wl}--whole-archive\$convenience \${wl}--no-whole-archive"
17676 +# Compiler flag to generate thread-safe objects.
17677 +thread_safe_flag_spec=""
17679 +# Library versioning type.
17680 +version_type=linux
17682 +# Format of library name prefix.
17683 +libname_spec="lib\$name"
17685 +# List of archive names. First name is the real one, the rest are links.
17686 +# The last name is the one that the linker finds with -lNAME.
17687 +library_names_spec="\${libname}\${release}.so\$versuffix \${libname}\${release}.so\$major \$libname.so"
17689 +# The coded name of the library, if different from the real name.
17690 +soname_spec="\${libname}\${release}.so\$major"
17692 +# Commands used to build and install an old-style archive.
17693 +RANLIB="ranlib"
17694 +old_archive_cmds="\$AR \$AR_FLAGS \$oldlib\$oldobjs\$old_deplibs~\$RANLIB \$oldlib"
17695 +old_postinstall_cmds="\$RANLIB \$oldlib~chmod 644 \$oldlib"
17696 +old_postuninstall_cmds=""
17698 +# Create an old-style archive from a shared archive.
17699 +old_archive_from_new_cmds=""
17701 +# Create a temporary old-style archive to link instead of a shared archive.
17702 +old_archive_from_expsyms_cmds=""
17704 +# Commands used to build and install a shared archive.
17705 +archive_cmds="\$CC -shared \$libobjs \$deplibs \$compiler_flags \${wl}-soname \$wl\$soname -o \$lib"
17706 +archive_expsym_cmds="\$CC -shared \$libobjs \$deplibs \$compiler_flags \${wl}-soname \$wl\$soname \${wl}-retain-symbols-file \$wl\$export_symbols -o \$lib"
17707 +postinstall_cmds=""
17708 +postuninstall_cmds=""
17710 +# Commands to strip libraries.
17711 +old_striplib="strip --strip-debug"
17712 +striplib="strip --strip-unneeded"
17714 +# Method to check whether dependent libraries are shared objects.
17715 +deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )"
17717 +# Command to use when deplibs_check_method == file_magic.
17718 +file_magic_cmd="\$MAGIC_CMD"
17720 +# Flag that allows shared libraries with undefined symbols to be built.
17721 +allow_undefined_flag=""
17723 +# Flag that forces no undefined symbols.
17724 +no_undefined_flag=""
17726 +# Commands used to finish a libtool library installation in a directory.
17727 +finish_cmds="PATH=\\\"\\\$PATH:/sbin\\\" ldconfig -n \$libdir"
17729 +# Same as above, but a single script fragment to be evaled but not shown.
17730 +finish_eval=""
17732 +# Take the output of nm and produce a listing of raw symbols and C names.
17733 +global_symbol_pipe="sed -n -e 's/^.*[ ]\\([ABCDGISTW][ABCDGISTW]*\\)[ ][ ]*\\(\\)\\([_A-Za-z][_A-Za-z0-9]*\\)\$/\\1 \\2\\3 \\3/p'"
17735 +# Transform the output of nm in a proper C declaration
17736 +global_symbol_to_cdecl="sed -n -e 's/^. .* \\(.*\\)\$/extern char \\1;/p'"
17738 +# This is the shared library runtime path variable.
17739 +runpath_var=LD_RUN_PATH
17741 +# This is the shared library path variable.
17742 +shlibpath_var=LD_LIBRARY_PATH
17744 +# Is shlibpath searched before the hard-coded library search path?
17745 +shlibpath_overrides_runpath=no
17747 +# How to hardcode a shared library path into an executable.
17748 +hardcode_action=immediate
17750 +# Whether we should hardcode library paths into libraries.
17751 +hardcode_into_libs=yes
17753 +# Flag to hardcode $libdir into a binary during linking.
17754 +# This must work even if $libdir does not exist.
17755 +hardcode_libdir_flag_spec="\${wl}--rpath \${wl}\$libdir"
17757 +# Whether we need a single -rpath flag with a separated argument.
17758 +hardcode_libdir_separator=""
17760 +# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
17761 +# resulting binary.
17762 +hardcode_direct=no
17764 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17765 +# resulting binary.
17766 +hardcode_minus_L=no
17768 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17769 +# the resulting binary.
17770 +hardcode_shlibpath_var=unsupported
17772 +# Variables whose values should be saved in libtool wrapper scripts and
17773 +# restored at relink time.
17774 +variables_saved_for_relink="PATH LD_LIBRARY_PATH LD_RUN_PATH GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17776 +# Whether libtool must link a program against all its dependency libraries.
17777 +link_all_deplibs=unknown
17779 +# Compile-time system search path for libraries
17780 +sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17782 +# Run-time system search path for libraries
17783 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
17785 +# Fix the shell variable $srcfile for the compiler.
17786 +fix_srcfile_path=""
17788 +# Set to yes if exported symbols are required.
17789 +always_export_symbols=no
17791 +# The commands to list exported symbols.
17792 +export_symbols_cmds="\$NM \$libobjs \$convenience | \$global_symbol_pipe | sed 's/.* //' | sort | uniq > \$export_symbols"
17794 +# The commands to extract the exported symbol list from a shared archive.
17795 +extract_expsyms_cmds=""
17797 +# Symbols that should not be listed in the preloaded symbols.
17798 +exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
17800 +# Symbols that must always be exported.
17801 +include_expsyms=""
17803 +# ### END LIBTOOL CONFIG
17805 +# ltmain.sh - Provide generalized library-building support services.
17806 +# NOTE: Changing this file will not affect anything until you rerun configure.
17807 +#
17808 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17809 +# Free Software Foundation, Inc.
17810 +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17811 +#
17812 +# This program is free software; you can redistribute it and/or modify
17813 +# it under the terms of the GNU General Public License as published by
17814 +# the Free Software Foundation; either version 2 of the License, or
17815 +# (at your option) any later version.
17816 +#
17817 +# This program is distributed in the hope that it will be useful, but
17818 +# WITHOUT ANY WARRANTY; without even the implied warranty of
17819 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17820 +# General Public License for more details.
17821 +#
17822 +# You should have received a copy of the GNU General Public License
17823 +# along with this program; if not, write to the Free Software
17824 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17825 +#
17826 +# As a special exception to the GNU General Public License, if you
17827 +# distribute this file as part of a program that contains a
17828 +# configuration script generated by Autoconf, you may include it under
17829 +# the same distribution terms that you use for the rest of that program.
17831 +# Check that we have a working $echo.
17832 +if test "X$1" = X--no-reexec; then
17833 + # Discard the --no-reexec flag, and continue.
17834 + shift
17835 +elif test "X$1" = X--fallback-echo; then
17836 + # Avoid inline document here, it may be left over
17837 + :
17838 +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
17839 + # Yippee, $echo works!
17840 + :
17841 +else
17842 + # Restart under the correct shell, and then maybe $echo will work.
17843 + exec $SHELL "$0" --no-reexec ${1+"$@"}
17844 +fi
17846 +if test "X$1" = X--fallback-echo; then
17847 + # used as fallback echo
17848 + shift
17849 + cat <<EOF
17850 +$*
17851 +EOF
17852 + exit 0
17853 +fi
17855 +# The name of this program.
17856 +progname=`$echo "$0" | sed 's%^.*/%%'`
17857 +modename="$progname"
17859 +# Constants.
17860 +PROGRAM=ltmain.sh
17861 +PACKAGE=libtool
17862 +VERSION=1.4
17863 +TIMESTAMP=" (1.920 2001/04/24 23:26:18)"
17865 +default_mode=
17866 +help="Try \`$progname --help' for more information."
17867 +magic="%%%MAGIC variable%%%"
17868 +mkdir="mkdir"
17869 +mv="mv -f"
17870 +rm="rm -f"
17872 +# Sed substitution that helps us do robust quoting. It backslashifies
17873 +# metacharacters that are still active within double-quoted strings.
17874 +Xsed='sed -e 1s/^X//'
17875 +sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
17876 +SP2NL='tr \040 \012'
17877 +NL2SP='tr \015\012 \040\040'
17879 +# NLS nuisances.
17880 +# Only set LANG and LC_ALL to C if already set.
17881 +# These must not be set unconditionally because not all systems understand
17882 +# e.g. LANG=C (notably SCO).
17883 +# We save the old values to restore during execute mode.
17884 +if test "${LC_ALL+set}" = set; then
17885 + save_LC_ALL="$LC_ALL"; LC_ALL=C; export LC_ALL
17886 +fi
17887 +if test "${LANG+set}" = set; then
17888 + save_LANG="$LANG"; LANG=C; export LANG
17889 +fi
17891 +if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
17892 + echo "$modename: not configured to build any kind of library" 1>&2
17893 + echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
17894 + exit 1
17895 +fi
17897 +# Global variables.
17898 +mode=$default_mode
17899 +nonopt=
17900 +prev=
17901 +prevopt=
17902 +run=
17903 +show="$echo"
17904 +show_help=
17905 +execute_dlfiles=
17906 +lo2o="s/\\.lo\$/.${objext}/"
17907 +o2lo="s/\\.${objext}\$/.lo/"
17909 +# Parse our command line options once, thoroughly.
17910 +while test $# -gt 0
17911 +do
17912 + arg="$1"
17913 + shift
17915 + case $arg in
17916 + -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
17917 + *) optarg= ;;
17918 + esac
17920 + # If the previous option needs an argument, assign it.
17921 + if test -n "$prev"; then
17922 + case $prev in
17923 + execute_dlfiles)
17924 + execute_dlfiles="$execute_dlfiles $arg"
17925 + ;;
17926 + *)
17927 + eval "$prev=\$arg"
17928 + ;;
17929 + esac
17931 + prev=
17932 + prevopt=
17933 + continue
17934 + fi
17936 + # Have we seen a non-optional argument yet?
17937 + case $arg in
17938 + --help)
17939 + show_help=yes
17940 + ;;
17942 + --version)
17943 + echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
17944 + exit 0
17945 + ;;
17947 + --config)
17948 + sed -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $0
17949 + exit 0
17950 + ;;
17952 + --debug)
17953 + echo "$progname: enabling shell trace mode"
17954 + set -x
17955 + ;;
17957 + --dry-run | -n)
17958 + run=:
17959 + ;;
17961 + --features)
17962 + echo "host: $host"
17963 + if test "$build_libtool_libs" = yes; then
17964 + echo "enable shared libraries"
17965 + else
17966 + echo "disable shared libraries"
17967 + fi
17968 + if test "$build_old_libs" = yes; then
17969 + echo "enable static libraries"
17970 + else
17971 + echo "disable static libraries"
17972 + fi
17973 + exit 0
17974 + ;;
17976 + --finish) mode="finish" ;;
17978 + --mode) prevopt="--mode" prev=mode ;;
17979 + --mode=*) mode="$optarg" ;;
17981 + --quiet | --silent)
17982 + show=:
17983 + ;;
17985 + -dlopen)
17986 + prevopt="-dlopen"
17987 + prev=execute_dlfiles
17988 + ;;
17990 + -*)
17991 + $echo "$modename: unrecognized option \`$arg'" 1>&2
17992 + $echo "$help" 1>&2
17993 + exit 1
17994 + ;;
17996 + *)
17997 + nonopt="$arg"
17998 + break
17999 + ;;
18000 + esac
18001 +done
18003 +if test -n "$prevopt"; then
18004 + $echo "$modename: option \`$prevopt' requires an argument" 1>&2
18005 + $echo "$help" 1>&2
18006 + exit 1
18007 +fi
18009 +if test -z "$show_help"; then
18011 + # Infer the operation mode.
18012 + if test -z "$mode"; then
18013 + case $nonopt in
18014 + *cc | *++ | gcc* | *-gcc*)
18015 + mode=link
18016 + for arg
18017 + do
18018 + case $arg in
18019 + -c)
18020 + mode=compile
18021 + break
18022 + ;;
18023 + esac
18024 + done
18025 + ;;
18026 + *db | *dbx | *strace | *truss)
18027 + mode=execute
18028 + ;;
18029 + *install*|cp|mv)
18030 + mode=install
18031 + ;;
18032 + *rm)
18033 + mode=uninstall
18034 + ;;
18035 + *)
18036 + # If we have no mode, but dlfiles were specified, then do execute mode.
18037 + test -n "$execute_dlfiles" && mode=execute
18039 + # Just use the default operation mode.
18040 + if test -z "$mode"; then
18041 + if test -n "$nonopt"; then
18042 + $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2
18043 + else
18044 + $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2
18045 + fi
18046 + fi
18047 + ;;
18048 + esac
18049 + fi
18051 + # Only execute mode is allowed to have -dlopen flags.
18052 + if test -n "$execute_dlfiles" && test "$mode" != execute; then
18053 + $echo "$modename: unrecognized option \`-dlopen'" 1>&2
18054 + $echo "$help" 1>&2
18055 + exit 1
18056 + fi
18058 + # Change the help message to a mode-specific one.
18059 + generic_help="$help"
18060 + help="Try \`$modename --help --mode=$mode' for more information."
18062 + # These modes are in order of execution frequency so that they run quickly.
18063 + case $mode in
18064 + # libtool compile mode
18065 + compile)
18066 + modename="$modename: compile"
18067 + # Get the compilation command and the source file.
18068 + base_compile=
18069 + prev=
18070 + lastarg=
18071 + srcfile="$nonopt"
18072 + suppress_output=
18074 + user_target=no
18075 + for arg
18076 + do
18077 + case $prev in
18078 + "") ;;
18079 + xcompiler)
18080 + # Aesthetically quote the previous argument.
18081 + prev=
18082 + lastarg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
18084 + case $arg in
18085 + # Double-quote args containing other shell metacharacters.
18086 + # Many Bourne shells cannot handle close brackets correctly
18087 + # in scan sets, so we specify it separately.
18088 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
18089 + arg="\"$arg\""
18090 + ;;
18091 + esac
18093 + # Add the previous argument to base_compile.
18094 + if test -z "$base_compile"; then
18095 + base_compile="$lastarg"
18096 + else
18097 + base_compile="$base_compile $lastarg"
18098 + fi
18099 + continue
18100 + ;;
18101 + esac
18103 + # Accept any command-line options.
18104 + case $arg in
18105 + -o)
18106 + if test "$user_target" != "no"; then
18107 + $echo "$modename: you cannot specify \`-o' more than once" 1>&2
18108 + exit 1
18109 + fi
18110 + user_target=next
18111 + ;;
18113 + -static)
18114 + build_old_libs=yes
18115 + continue
18116 + ;;
18118 + -prefer-pic)
18119 + pic_mode=yes
18120 + continue
18121 + ;;
18123 + -prefer-non-pic)
18124 + pic_mode=no
18125 + continue
18126 + ;;
18128 + -Xcompiler)
18129 + prev=xcompiler
18130 + continue
18131 + ;;
18133 + -Wc,*)
18134 + args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
18135 + lastarg=
18136 + IFS="${IFS= }"; save_ifs="$IFS"; IFS=','
18137 + for arg in $args; do
18138 + IFS="$save_ifs"
18140 + # Double-quote args containing other shell metacharacters.
18141 + # Many Bourne shells cannot handle close brackets correctly
18142 + # in scan sets, so we specify it separately.
18143 + case $arg in
18144 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
18145 + arg="\"$arg\""
18146 + ;;
18147 + esac
18148 + lastarg="$lastarg $arg"
18149 + done
18150 + IFS="$save_ifs"
18151 + lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
18153 + # Add the arguments to base_compile.
18154 + if test -z "$base_compile"; then
18155 + base_compile="$lastarg"
18156 + else
18157 + base_compile="$base_compile $lastarg"
18158 + fi
18159 + continue
18160 + ;;
18161 + esac
18163 + case $user_target in
18164 + next)
18165 + # The next one is the -o target name
18166 + user_target=yes
18167 + continue
18168 + ;;
18169 + yes)
18170 + # We got the output file
18171 + user_target=set
18172 + libobj="$arg"
18173 + continue
18174 + ;;
18175 + esac
18177 + # Accept the current argument as the source file.
18178 + lastarg="$srcfile"
18179 + srcfile="$arg"
18181 + # Aesthetically quote the previous argument.
18183 + # Backslashify any backslashes, double quotes, and dollar signs.
18184 + # These are the only characters that are still specially
18185 + # interpreted inside of double-quoted scrings.
18186 + lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
18188 + # Double-quote args containing other shell metacharacters.
18189 + # Many Bourne shells cannot handle close brackets correctly
18190 + # in scan sets, so we specify it separately.
18191 + case $lastarg in
18192 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
18193 + lastarg="\"$lastarg\""
18194 + ;;
18195 + esac
18197 + # Add the previous argument to base_compile.
18198 + if test -z "$base_compile"; then
18199 + base_compile="$lastarg"
18200 + else
18201 + base_compile="$base_compile $lastarg"
18202 + fi
18203 + done
18205 + case $user_target in
18206 + set)
18207 + ;;
18208 + no)
18209 + # Get the name of the library object.
18210 + libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
18211 + ;;
18212 + *)
18213 + $echo "$modename: you must specify a target with \`-o'" 1>&2
18214 + exit 1
18215 + ;;
18216 + esac
18218 + # Recognize several different file suffixes.
18219 + # If the user specifies -o file.o, it is replaced with file.lo
18220 + xform='[cCFSfmso]'
18221 + case $libobj in
18222 + *.ada) xform=ada ;;
18223 + *.adb) xform=adb ;;
18224 + *.ads) xform=ads ;;
18225 + *.asm) xform=asm ;;
18226 + *.c++) xform=c++ ;;
18227 + *.cc) xform=cc ;;
18228 + *.cpp) xform=cpp ;;
18229 + *.cxx) xform=cxx ;;
18230 + *.f90) xform=f90 ;;
18231 + *.for) xform=for ;;
18232 + esac
18234 + libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
18236 + case $libobj in
18237 + *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
18238 + *)
18239 + $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
18240 + exit 1
18241 + ;;
18242 + esac
18244 + if test -z "$base_compile"; then
18245 + $echo "$modename: you must specify a compilation command" 1>&2
18246 + $echo "$help" 1>&2
18247 + exit 1
18248 + fi
18250 + # Delete any leftover library objects.
18251 + if test "$build_old_libs" = yes; then
18252 + removelist="$obj $libobj"
18253 + else
18254 + removelist="$libobj"
18255 + fi
18257 + $run $rm $removelist
18258 + trap "$run $rm $removelist; exit 1" 1 2 15
18260 + # On Cygwin there's no "real" PIC flag so we must build both object types
18261 + case $host_os in
18262 + cygwin* | mingw* | pw32* | os2*)
18263 + pic_mode=default
18264 + ;;
18265 + esac
18266 + if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
18267 + # non-PIC code in shared libraries is not supported
18268 + pic_mode=default
18269 + fi
18271 + # Calculate the filename of the output object if compiler does
18272 + # not support -o with -c
18273 + if test "$compiler_c_o" = no; then
18274 + output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
18275 + lockfile="$output_obj.lock"
18276 + removelist="$removelist $output_obj $lockfile"
18277 + trap "$run $rm $removelist; exit 1" 1 2 15
18278 + else
18279 + need_locks=no
18280 + lockfile=
18281 + fi
18283 + # Lock this critical section if it is needed
18284 + # We use this script file to make the link, it avoids creating a new file
18285 + if test "$need_locks" = yes; then
18286 + until $run ln "$0" "$lockfile" 2>/dev/null; do
18287 + $show "Waiting for $lockfile to be removed"
18288 + sleep 2
18289 + done
18290 + elif test "$need_locks" = warn; then
18291 + if test -f "$lockfile"; then
18292 + echo "\
18293 +*** ERROR, $lockfile exists and contains:
18294 +`cat $lockfile 2>/dev/null`
18296 +This indicates that another process is trying to use the same
18297 +temporary object file, and libtool could not work around it because
18298 +your compiler does not support \`-c' and \`-o' together. If you
18299 +repeat this compilation, it may succeed, by chance, but you had better
18300 +avoid parallel builds (make -j) in this platform, or get a better
18301 +compiler."
18303 + $run $rm $removelist
18304 + exit 1
18305 + fi
18306 + echo $srcfile > "$lockfile"
18307 + fi
18309 + if test -n "$fix_srcfile_path"; then
18310 + eval srcfile=\"$fix_srcfile_path\"
18311 + fi
18313 + # Only build a PIC object if we are building libtool libraries.
18314 + if test "$build_libtool_libs" = yes; then
18315 + # Without this assignment, base_compile gets emptied.
18316 + fbsd_hideous_sh_bug=$base_compile
18318 + if test "$pic_mode" != no; then
18319 + # All platforms use -DPIC, to notify preprocessed assembler code.
18320 + command="$base_compile $srcfile $pic_flag -DPIC"
18321 + else
18322 + # Don't build PIC code
18323 + command="$base_compile $srcfile"
18324 + fi
18325 + if test "$build_old_libs" = yes; then
18326 + lo_libobj="$libobj"
18327 + dir=`$echo "X$libobj" | $Xsed -e 's%/[^/]*$%%'`
18328 + if test "X$dir" = "X$libobj"; then
18329 + dir="$objdir"
18330 + else
18331 + dir="$dir/$objdir"
18332 + fi
18333 + libobj="$dir/"`$echo "X$libobj" | $Xsed -e 's%^.*/%%'`
18335 + if test -d "$dir"; then
18336 + $show "$rm $libobj"
18337 + $run $rm $libobj
18338 + else
18339 + $show "$mkdir $dir"
18340 + $run $mkdir $dir
18341 + status=$?
18342 + if test $status -ne 0 && test ! -d $dir; then
18343 + exit $status
18344 + fi
18345 + fi
18346 + fi
18347 + if test "$compiler_o_lo" = yes; then
18348 + output_obj="$libobj"
18349 + command="$command -o $output_obj"
18350 + elif test "$compiler_c_o" = yes; then
18351 + output_obj="$obj"
18352 + command="$command -o $output_obj"
18353 + fi
18355 + $run $rm "$output_obj"
18356 + $show "$command"
18357 + if $run eval "$command"; then :
18358 + else
18359 + test -n "$output_obj" && $run $rm $removelist
18360 + exit 1
18361 + fi
18363 + if test "$need_locks" = warn &&
18364 + test x"`cat $lockfile 2>/dev/null`" != x"$srcfile"; then
18365 + echo "\
18366 +*** ERROR, $lockfile contains:
18367 +`cat $lockfile 2>/dev/null`
18369 +but it should contain:
18370 +$srcfile
18372 +This indicates that another process is trying to use the same
18373 +temporary object file, and libtool could not work around it because
18374 +your compiler does not support \`-c' and \`-o' together. If you
18375 +repeat this compilation, it may succeed, by chance, but you had better
18376 +avoid parallel builds (make -j) in this platform, or get a better
18377 +compiler."
18379 + $run $rm $removelist
18380 + exit 1
18381 + fi
18383 + # Just move the object if needed, then go on to compile the next one
18384 + if test x"$output_obj" != x"$libobj"; then
18385 + $show "$mv $output_obj $libobj"
18386 + if $run $mv $output_obj $libobj; then :
18387 + else
18388 + error=$?
18389 + $run $rm $removelist
18390 + exit $error
18391 + fi
18392 + fi
18394 + # If we have no pic_flag, then copy the object into place and finish.
18395 + if (test -z "$pic_flag" || test "$pic_mode" != default) &&
18396 + test "$build_old_libs" = yes; then
18397 + # Rename the .lo from within objdir to obj
18398 + if test -f $obj; then
18399 + $show $rm $obj
18400 + $run $rm $obj
18401 + fi
18403 + $show "$mv $libobj $obj"
18404 + if $run $mv $libobj $obj; then :
18405 + else
18406 + error=$?
18407 + $run $rm $removelist
18408 + exit $error
18409 + fi
18411 + xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
18412 + if test "X$xdir" = "X$obj"; then
18413 + xdir="."
18414 + else
18415 + xdir="$xdir"
18416 + fi
18417 + baseobj=`$echo "X$obj" | $Xsed -e "s%.*/%%"`
18418 + libobj=`$echo "X$baseobj" | $Xsed -e "$o2lo"`
18419 + # Now arrange that obj and lo_libobj become the same file
18420 + $show "(cd $xdir && $LN_S $baseobj $libobj)"
18421 + if $run eval '(cd $xdir && $LN_S $baseobj $libobj)'; then
18422 + exit 0
18423 + else
18424 + error=$?
18425 + $run $rm $removelist
18426 + exit $error
18427 + fi
18428 + fi
18430 + # Allow error messages only from the first compilation.
18431 + suppress_output=' >/dev/null 2>&1'
18432 + fi
18434 + # Only build a position-dependent object if we build old libraries.
18435 + if test "$build_old_libs" = yes; then
18436 + if test "$pic_mode" != yes; then
18437 + # Don't build PIC code
18438 + command="$base_compile $srcfile"
18439 + else
18440 + # All platforms use -DPIC, to notify preprocessed assembler code.
18441 + command="$base_compile $srcfile $pic_flag -DPIC"
18442 + fi
18443 + if test "$compiler_c_o" = yes; then
18444 + command="$command -o $obj"
18445 + output_obj="$obj"
18446 + fi
18448 + # Suppress compiler output if we already did a PIC compilation.
18449 + command="$command$suppress_output"
18450 + $run $rm "$output_obj"
18451 + $show "$command"
18452 + if $run eval "$command"; then :
18453 + else
18454 + $run $rm $removelist
18455 + exit 1
18456 + fi
18458 + if test "$need_locks" = warn &&
18459 + test x"`cat $lockfile 2>/dev/null`" != x"$srcfile"; then
18460 + echo "\
18461 +*** ERROR, $lockfile contains:
18462 +`cat $lockfile 2>/dev/null`
18464 +but it should contain:
18465 +$srcfile
18467 +This indicates that another process is trying to use the same
18468 +temporary object file, and libtool could not work around it because
18469 +your compiler does not support \`-c' and \`-o' together. If you
18470 +repeat this compilation, it may succeed, by chance, but you had better
18471 +avoid parallel builds (make -j) in this platform, or get a better
18472 +compiler."
18474 + $run $rm $removelist
18475 + exit 1
18476 + fi
18478 + # Just move the object if needed
18479 + if test x"$output_obj" != x"$obj"; then
18480 + $show "$mv $output_obj $obj"
18481 + if $run $mv $output_obj $obj; then :
18482 + else
18483 + error=$?
18484 + $run $rm $removelist
18485 + exit $error
18486 + fi
18487 + fi
18489 + # Create an invalid libtool object if no PIC, so that we do not
18490 + # accidentally link it into a program.
18491 + if test "$build_libtool_libs" != yes; then
18492 + $show "echo timestamp > $libobj"
18493 + $run eval "echo timestamp > \$libobj" || exit $?
18494 + else
18495 + # Move the .lo from within objdir
18496 + $show "$mv $libobj $lo_libobj"
18497 + if $run $mv $libobj $lo_libobj; then :
18498 + else
18499 + error=$?
18500 + $run $rm $removelist
18501 + exit $error
18502 + fi
18503 + fi
18504 + fi
18506 + # Unlock the critical section if it was locked
18507 + if test "$need_locks" != no; then
18508 + $run $rm "$lockfile"
18509 + fi
18511 + exit 0
18512 + ;;
18514 + # libtool link mode
18515 + link | relink)
18516 + modename="$modename: link"
18517 + case $host in
18518 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
18519 + # It is impossible to link a dll without this setting, and
18520 + # we shouldn't force the makefile maintainer to figure out
18521 + # which system we are compiling for in order to pass an extra
18522 + # flag for every libtool invokation.
18523 + # allow_undefined=no
18525 + # FIXME: Unfortunately, there are problems with the above when trying
18526 + # to make a dll which has undefined symbols, in which case not
18527 + # even a static library is built. For now, we need to specify
18528 + # -no-undefined on the libtool link line when we can be certain
18529 + # that all symbols are satisfied, otherwise we get a static library.
18530 + allow_undefined=yes
18531 + ;;
18532 + *)
18533 + allow_undefined=yes
18534 + ;;
18535 + esac
18536 + libtool_args="$nonopt"
18537 + compile_command="$nonopt"
18538 + finalize_command="$nonopt"
18540 + compile_rpath=
18541 + finalize_rpath=
18542 + compile_shlibpath=
18543 + finalize_shlibpath=
18544 + convenience=
18545 + old_convenience=
18546 + deplibs=
18547 + old_deplibs=
18548 + compiler_flags=
18549 + linker_flags=
18550 + dllsearchpath=
18551 + lib_search_path=`pwd`
18553 + avoid_version=no
18554 + dlfiles=
18555 + dlprefiles=
18556 + dlself=no
18557 + export_dynamic=no
18558 + export_symbols=
18559 + export_symbols_regex=
18560 + generated=
18561 + libobjs=
18562 + ltlibs=
18563 + module=no
18564 + no_install=no
18565 + objs=
18566 + prefer_static_libs=no
18567 + preload=no
18568 + prev=
18569 + prevarg=
18570 + release=
18571 + rpath=
18572 + xrpath=
18573 + perm_rpath=
18574 + temp_rpath=
18575 + thread_safe=no
18576 + vinfo=
18578 + # We need to know -static, to get the right output filenames.
18579 + for arg
18580 + do
18581 + case $arg in
18582 + -all-static | -static)
18583 + if test "X$arg" = "X-all-static"; then
18584 + if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
18585 + $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
18586 + fi
18587 + if test -n "$link_static_flag"; then
18588 + dlopen_self=$dlopen_self_static
18589 + fi
18590 + else
18591 + if test -z "$pic_flag" && test -n "$link_static_flag"; then
18592 + dlopen_self=$dlopen_self_static
18593 + fi
18594 + fi
18595 + build_libtool_libs=no
18596 + build_old_libs=yes
18597 + prefer_static_libs=yes
18598 + break
18599 + ;;
18600 + esac
18601 + done
18603 + # See if our shared archives depend on static archives.
18604 + test -n "$old_archive_from_new_cmds" && build_old_libs=yes
18606 + # Go through the arguments, transforming them on the way.
18607 + while test $# -gt 0; do
18608 + arg="$1"
18609 + shift
18610 + case $arg in
18611 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
18612 + qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
18613 + ;;
18614 + *) qarg=$arg ;;
18615 + esac
18616 + libtool_args="$libtool_args $qarg"
18618 + # If the previous option needs an argument, assign it.
18619 + if test -n "$prev"; then
18620 + case $prev in
18621 + output)
18622 + compile_command="$compile_command @OUTPUT@"
18623 + finalize_command="$finalize_command @OUTPUT@"
18624 + ;;
18625 + esac
18627 + case $prev in
18628 + dlfiles|dlprefiles)
18629 + if test "$preload" = no; then
18630 + # Add the symbol object into the linking commands.
18631 + compile_command="$compile_command @SYMFILE@"
18632 + finalize_command="$finalize_command @SYMFILE@"
18633 + preload=yes
18634 + fi
18635 + case $arg in
18636 + *.la | *.lo) ;; # We handle these cases below.
18637 + force)
18638 + if test "$dlself" = no; then
18639 + dlself=needless
18640 + export_dynamic=yes
18641 + fi
18642 + prev=
18643 + continue
18644 + ;;
18645 + self)
18646 + if test "$prev" = dlprefiles; then
18647 + dlself=yes
18648 + elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
18649 + dlself=yes
18650 + else
18651 + dlself=needless
18652 + export_dynamic=yes
18653 + fi
18654 + prev=
18655 + continue
18656 + ;;
18657 + *)
18658 + if test "$prev" = dlfiles; then
18659 + dlfiles="$dlfiles $arg"
18660 + else
18661 + dlprefiles="$dlprefiles $arg"
18662 + fi
18663 + prev=
18664 + continue
18665 + ;;
18666 + esac
18667 + ;;
18668 + expsyms)
18669 + export_symbols="$arg"
18670 + if test ! -f "$arg"; then
18671 + $echo "$modename: symbol file \`$arg' does not exist"
18672 + exit 1
18673 + fi
18674 + prev=
18675 + continue
18676 + ;;
18677 + expsyms_regex)
18678 + export_symbols_regex="$arg"
18679 + prev=
18680 + continue
18681 + ;;
18682 + release)
18683 + release="-$arg"
18684 + prev=
18685 + continue
18686 + ;;
18687 + rpath | xrpath)
18688 + # We need an absolute path.
18689 + case $arg in
18690 + [\\/]* | [A-Za-z]:[\\/]*) ;;
18691 + *)
18692 + $echo "$modename: only absolute run-paths are allowed" 1>&2
18693 + exit 1
18694 + ;;
18695 + esac
18696 + if test "$prev" = rpath; then
18697 + case "$rpath " in
18698 + *" $arg "*) ;;
18699 + *) rpath="$rpath $arg" ;;
18700 + esac
18701 + else
18702 + case "$xrpath " in
18703 + *" $arg "*) ;;
18704 + *) xrpath="$xrpath $arg" ;;
18705 + esac
18706 + fi
18707 + prev=
18708 + continue
18709 + ;;
18710 + xcompiler)
18711 + compiler_flags="$compiler_flags $qarg"
18712 + prev=
18713 + compile_command="$compile_command $qarg"
18714 + finalize_command="$finalize_command $qarg"
18715 + continue
18716 + ;;
18717 + xlinker)
18718 + linker_flags="$linker_flags $qarg"
18719 + compiler_flags="$compiler_flags $wl$qarg"
18720 + prev=
18721 + compile_command="$compile_command $wl$qarg"
18722 + finalize_command="$finalize_command $wl$qarg"
18723 + continue
18724 + ;;
18725 + *)
18726 + eval "$prev=\"\$arg\""
18727 + prev=
18728 + continue
18729 + ;;
18730 + esac
18731 + fi # test -n $prev
18733 + prevarg="$arg"
18735 + case $arg in
18736 + -all-static)
18737 + if test -n "$link_static_flag"; then
18738 + compile_command="$compile_command $link_static_flag"
18739 + finalize_command="$finalize_command $link_static_flag"
18740 + fi
18741 + continue
18742 + ;;
18744 + -allow-undefined)
18745 + # FIXME: remove this flag sometime in the future.
18746 + $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
18747 + continue
18748 + ;;
18750 + -avoid-version)
18751 + avoid_version=yes
18752 + continue
18753 + ;;
18755 + -dlopen)
18756 + prev=dlfiles
18757 + continue
18758 + ;;
18760 + -dlpreopen)
18761 + prev=dlprefiles
18762 + continue
18763 + ;;
18765 + -export-dynamic)
18766 + export_dynamic=yes
18767 + continue
18768 + ;;
18770 + -export-symbols | -export-symbols-regex)
18771 + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
18772 + $echo "$modename: more than one -exported-symbols argument is not allowed"
18773 + exit 1
18774 + fi
18775 + if test "X$arg" = "X-export-symbols"; then
18776 + prev=expsyms
18777 + else
18778 + prev=expsyms_regex
18779 + fi
18780 + continue
18781 + ;;
18783 + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
18784 + # so, if we see these flags be careful not to treat them like -L
18785 + -L[A-Z][A-Z]*:*)
18786 + case $with_gcc/$host in
18787 + no/*-*-irix*)
18788 + compile_command="$compile_command $arg"
18789 + finalize_command="$finalize_command $arg"
18790 + ;;
18791 + esac
18792 + continue
18793 + ;;
18795 + -L*)
18796 + dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
18797 + # We need an absolute path.
18798 + case $dir in
18799 + [\\/]* | [A-Za-z]:[\\/]*) ;;
18800 + *)
18801 + absdir=`cd "$dir" && pwd`
18802 + if test -z "$absdir"; then
18803 + $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
18804 + exit 1
18805 + fi
18806 + dir="$absdir"
18807 + ;;
18808 + esac
18809 + case "$deplibs " in
18810 + *" -L$dir "*) ;;
18811 + *)
18812 + deplibs="$deplibs -L$dir"
18813 + lib_search_path="$lib_search_path $dir"
18814 + ;;
18815 + esac
18816 + case $host in
18817 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
18818 + case :$dllsearchpath: in
18819 + *":$dir:"*) ;;
18820 + *) dllsearchpath="$dllsearchpath:$dir";;
18821 + esac
18822 + ;;
18823 + esac
18824 + continue
18825 + ;;
18827 + -l*)
18828 + if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
18829 + case $host in
18830 + *-*-cygwin* | *-*-pw32* | *-*-beos*)
18831 + # These systems don't actually have a C or math library (as such)
18832 + continue
18833 + ;;
18834 + *-*-mingw* | *-*-os2*)
18835 + # These systems don't actually have a C library (as such)
18836 + test "X$arg" = "X-lc" && continue
18837 + ;;
18838 + esac
18839 + fi
18840 + deplibs="$deplibs $arg"
18841 + continue
18842 + ;;
18844 + -module)
18845 + module=yes
18846 + continue
18847 + ;;
18849 + -no-fast-install)
18850 + fast_install=no
18851 + continue
18852 + ;;
18854 + -no-install)
18855 + case $host in
18856 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
18857 + # The PATH hackery in wrapper scripts is required on Windows
18858 + # in order for the loader to find any dlls it needs.
18859 + $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
18860 + $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
18861 + fast_install=no
18862 + ;;
18863 + *) no_install=yes ;;
18864 + esac
18865 + continue
18866 + ;;
18868 + -no-undefined)
18869 + allow_undefined=no
18870 + continue
18871 + ;;
18873 + -o) prev=output ;;
18875 + -release)
18876 + prev=release
18877 + continue
18878 + ;;
18880 + -rpath)
18881 + prev=rpath
18882 + continue
18883 + ;;
18885 + -R)
18886 + prev=xrpath
18887 + continue
18888 + ;;
18890 + -R*)
18891 + dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
18892 + # We need an absolute path.
18893 + case $dir in
18894 + [\\/]* | [A-Za-z]:[\\/]*) ;;
18895 + *)
18896 + $echo "$modename: only absolute run-paths are allowed" 1>&2
18897 + exit 1
18898 + ;;
18899 + esac
18900 + case "$xrpath " in
18901 + *" $dir "*) ;;
18902 + *) xrpath="$xrpath $dir" ;;
18903 + esac
18904 + continue
18905 + ;;
18907 + -static)
18908 + # The effects of -static are defined in a previous loop.
18909 + # We used to do the same as -all-static on platforms that
18910 + # didn't have a PIC flag, but the assumption that the effects
18911 + # would be equivalent was wrong. It would break on at least
18912 + # Digital Unix and AIX.
18913 + continue
18914 + ;;
18916 + -thread-safe)
18917 + thread_safe=yes
18918 + continue
18919 + ;;
18921 + -version-info)
18922 + prev=vinfo
18923 + continue
18924 + ;;
18926 + -Wc,*)
18927 + args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
18928 + arg=
18929 + IFS="${IFS= }"; save_ifs="$IFS"; IFS=','
18930 + for flag in $args; do
18931 + IFS="$save_ifs"
18932 + case $flag in
18933 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
18934 + flag="\"$flag\""
18935 + ;;
18936 + esac
18937 + arg="$arg $wl$flag"
18938 + compiler_flags="$compiler_flags $flag"
18939 + done
18940 + IFS="$save_ifs"
18941 + arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
18942 + ;;
18944 + -Wl,*)
18945 + args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
18946 + arg=
18947 + IFS="${IFS= }"; save_ifs="$IFS"; IFS=','
18948 + for flag in $args; do
18949 + IFS="$save_ifs"
18950 + case $flag in
18951 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
18952 + flag="\"$flag\""
18953 + ;;
18954 + esac
18955 + arg="$arg $wl$flag"
18956 + compiler_flags="$compiler_flags $wl$flag"
18957 + linker_flags="$linker_flags $flag"
18958 + done
18959 + IFS="$save_ifs"
18960 + arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
18961 + ;;
18963 + -Xcompiler)
18964 + prev=xcompiler
18965 + continue
18966 + ;;
18968 + -Xlinker)
18969 + prev=xlinker
18970 + continue
18971 + ;;
18973 + # Some other compiler flag.
18974 + -* | +*)
18975 + # Unknown arguments in both finalize_command and compile_command need
18976 + # to be aesthetically quoted because they are evaled later.
18977 + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
18978 + case $arg in
18979 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
18980 + arg="\"$arg\""
18981 + ;;
18982 + esac
18983 + ;;
18985 + *.lo | *.$objext)
18986 + # A library or standard object.
18987 + if test "$prev" = dlfiles; then
18988 + # This file was specified with -dlopen.
18989 + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
18990 + dlfiles="$dlfiles $arg"
18991 + prev=
18992 + continue
18993 + else
18994 + # If libtool objects are unsupported, then we need to preload.
18995 + prev=dlprefiles
18996 + fi
18997 + fi
18999 + if test "$prev" = dlprefiles; then
19000 + # Preload the old-style object.
19001 + dlprefiles="$dlprefiles "`$echo "X$arg" | $Xsed -e "$lo2o"`
19002 + prev=
19003 + else
19004 + case $arg in
19005 + *.lo) libobjs="$libobjs $arg" ;;
19006 + *) objs="$objs $arg" ;;
19007 + esac
19008 + fi
19009 + ;;
19011 + *.$libext)
19012 + # An archive.
19013 + deplibs="$deplibs $arg"
19014 + old_deplibs="$old_deplibs $arg"
19015 + continue
19016 + ;;
19018 + *.la)
19019 + # A libtool-controlled library.
19021 + if test "$prev" = dlfiles; then
19022 + # This library was specified with -dlopen.
19023 + dlfiles="$dlfiles $arg"
19024 + prev=
19025 + elif test "$prev" = dlprefiles; then
19026 + # The library was specified with -dlpreopen.
19027 + dlprefiles="$dlprefiles $arg"
19028 + prev=
19029 + else
19030 + deplibs="$deplibs $arg"
19031 + fi
19032 + continue
19033 + ;;
19035 + # Some other compiler argument.
19036 + *)
19037 + # Unknown arguments in both finalize_command and compile_command need
19038 + # to be aesthetically quoted because they are evaled later.
19039 + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
19040 + case $arg in
19041 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
19042 + arg="\"$arg\""
19043 + ;;
19044 + esac
19045 + ;;
19046 + esac # arg
19048 + # Now actually substitute the argument into the commands.
19049 + if test -n "$arg"; then
19050 + compile_command="$compile_command $arg"
19051 + finalize_command="$finalize_command $arg"
19052 + fi
19053 + done # argument parsing loop
19055 + if test -n "$prev"; then
19056 + $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
19057 + $echo "$help" 1>&2
19058 + exit 1
19059 + fi
19061 + if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
19062 + eval arg=\"$export_dynamic_flag_spec\"
19063 + compile_command="$compile_command $arg"
19064 + finalize_command="$finalize_command $arg"
19065 + fi
19067 + # calculate the name of the file, without its directory
19068 + outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
19069 + libobjs_save="$libobjs"
19071 + if test -n "$shlibpath_var"; then
19072 + # get the directories listed in $shlibpath_var
19073 + eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
19074 + else
19075 + shlib_search_path=
19076 + fi
19077 + eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
19078 + eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
19080 + output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
19081 + if test "X$output_objdir" = "X$output"; then
19082 + output_objdir="$objdir"
19083 + else
19084 + output_objdir="$output_objdir/$objdir"
19085 + fi
19086 + # Create the object directory.
19087 + if test ! -d $output_objdir; then
19088 + $show "$mkdir $output_objdir"
19089 + $run $mkdir $output_objdir
19090 + status=$?
19091 + if test $status -ne 0 && test ! -d $output_objdir; then
19092 + exit $status
19093 + fi
19094 + fi
19096 + # Determine the type of output
19097 + case $output in
19098 + "")
19099 + $echo "$modename: you must specify an output file" 1>&2
19100 + $echo "$help" 1>&2
19101 + exit 1
19102 + ;;
19103 + *.$libext) linkmode=oldlib ;;
19104 + *.lo | *.$objext) linkmode=obj ;;
19105 + *.la) linkmode=lib ;;
19106 + *) linkmode=prog ;; # Anything else should be a program.
19107 + esac
19109 + specialdeplibs=
19110 + libs=
19111 + # Find all interdependent deplibs by searching for libraries
19112 + # that are linked more than once (e.g. -la -lb -la)
19113 + for deplib in $deplibs; do
19114 + case "$libs " in
19115 + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
19116 + esac
19117 + libs="$libs $deplib"
19118 + done
19119 + deplibs=
19120 + newdependency_libs=
19121 + newlib_search_path=
19122 + need_relink=no # whether we're linking any uninstalled libtool libraries
19123 + notinst_deplibs= # not-installed libtool libraries
19124 + notinst_path= # paths that contain not-installed libtool libraries
19125 + case $linkmode in
19126 + lib)
19127 + passes="conv link"
19128 + for file in $dlfiles $dlprefiles; do
19129 + case $file in
19130 + *.la) ;;
19131 + *)
19132 + $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
19133 + exit 1
19134 + ;;
19135 + esac
19136 + done
19137 + ;;
19138 + prog)
19139 + compile_deplibs=
19140 + finalize_deplibs=
19141 + alldeplibs=no
19142 + newdlfiles=
19143 + newdlprefiles=
19144 + passes="conv scan dlopen dlpreopen link"
19145 + ;;
19146 + *) passes="conv"
19147 + ;;
19148 + esac
19149 + for pass in $passes; do
19150 + if test "$linkmode" = prog; then
19151 + # Determine which files to process
19152 + case $pass in
19153 + dlopen)
19154 + libs="$dlfiles"
19155 + save_deplibs="$deplibs" # Collect dlpreopened libraries
19156 + deplibs=
19157 + ;;
19158 + dlpreopen) libs="$dlprefiles" ;;
19159 + link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
19160 + esac
19161 + fi
19162 + for deplib in $libs; do
19163 + lib=
19164 + found=no
19165 + case $deplib in
19166 + -l*)
19167 + if test "$linkmode" = oldlib && test "$linkmode" = obj; then
19168 + $echo "$modename: warning: \`-l' is ignored for archives/objects: $deplib" 1>&2
19169 + continue
19170 + fi
19171 + if test "$pass" = conv; then
19172 + deplibs="$deplib $deplibs"
19173 + continue
19174 + fi
19175 + name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
19176 + for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
19177 + # Search the libtool library
19178 + lib="$searchdir/lib${name}.la"
19179 + if test -f "$lib"; then
19180 + found=yes
19181 + break
19182 + fi
19183 + done
19184 + if test "$found" != yes; then
19185 + # deplib doesn't seem to be a libtool library
19186 + if test "$linkmode,$pass" = "prog,link"; then
19187 + compile_deplibs="$deplib $compile_deplibs"
19188 + finalize_deplibs="$deplib $finalize_deplibs"
19189 + else
19190 + deplibs="$deplib $deplibs"
19191 + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
19192 + fi
19193 + continue
19194 + fi
19195 + ;; # -l
19196 + -L*)
19197 + case $linkmode in
19198 + lib)
19199 + deplibs="$deplib $deplibs"
19200 + test "$pass" = conv && continue
19201 + newdependency_libs="$deplib $newdependency_libs"
19202 + newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
19203 + ;;
19204 + prog)
19205 + if test "$pass" = conv; then
19206 + deplibs="$deplib $deplibs"
19207 + continue
19208 + fi
19209 + if test "$pass" = scan; then
19210 + deplibs="$deplib $deplibs"
19211 + newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
19212 + else
19213 + compile_deplibs="$deplib $compile_deplibs"
19214 + finalize_deplibs="$deplib $finalize_deplibs"
19215 + fi
19216 + ;;
19217 + *)
19218 + $echo "$modename: warning: \`-L' is ignored for archives/objects: $deplib" 1>&2
19219 + ;;
19220 + esac # linkmode
19221 + continue
19222 + ;; # -L
19223 + -R*)
19224 + if test "$pass" = link; then
19225 + dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
19226 + # Make sure the xrpath contains only unique directories.
19227 + case "$xrpath " in
19228 + *" $dir "*) ;;
19229 + *) xrpath="$xrpath $dir" ;;
19230 + esac
19231 + fi
19232 + deplibs="$deplib $deplibs"
19233 + continue
19234 + ;;
19235 + *.la) lib="$deplib" ;;
19236 + *.$libext)
19237 + if test "$pass" = conv; then
19238 + deplibs="$deplib $deplibs"
19239 + continue
19240 + fi
19241 + case $linkmode in
19242 + lib)
19243 + if test "$deplibs_check_method" != pass_all; then
19244 + echo
19245 + echo "*** Warning: This library needs some functionality provided by $deplib."
19246 + echo "*** I have the capability to make that library automatically link in when"
19247 + echo "*** you link to this library. But I can only do this if you have a"
19248 + echo "*** shared version of the library, which you do not appear to have."
19249 + else
19250 + echo
19251 + echo "*** Warning: Linking the shared library $output against the"
19252 + echo "*** static library $deplib is not portable!"
19253 + deplibs="$deplib $deplibs"
19254 + fi
19255 + continue
19256 + ;;
19257 + prog)
19258 + if test "$pass" != link; then
19259 + deplibs="$deplib $deplibs"
19260 + else
19261 + compile_deplibs="$deplib $compile_deplibs"
19262 + finalize_deplibs="$deplib $finalize_deplibs"
19263 + fi
19264 + continue
19265 + ;;
19266 + esac # linkmode
19267 + ;; # *.$libext
19268 + *.lo | *.$objext)
19269 + if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
19270 + # If there is no dlopen support or we're linking statically,
19271 + # we need to preload.
19272 + newdlprefiles="$newdlprefiles $deplib"
19273 + compile_deplibs="$deplib $compile_deplibs"
19274 + finalize_deplibs="$deplib $finalize_deplibs"
19275 + else
19276 + newdlfiles="$newdlfiles $deplib"
19277 + fi
19278 + continue
19279 + ;;
19280 + %DEPLIBS%)
19281 + alldeplibs=yes
19282 + continue
19283 + ;;
19284 + esac # case $deplib
19285 + if test $found = yes || test -f "$lib"; then :
19286 + else
19287 + $echo "$modename: cannot find the library \`$lib'" 1>&2
19288 + exit 1
19289 + fi
19291 + # Check to see that this really is a libtool archive.
19292 + if (sed -e '2q' $lib | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
19293 + else
19294 + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
19295 + exit 1
19296 + fi
19298 + ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
19299 + test "X$ladir" = "X$lib" && ladir="."
19301 + dlname=
19302 + dlopen=
19303 + dlpreopen=
19304 + libdir=
19305 + library_names=
19306 + old_library=
19307 + # If the library was installed with an old release of libtool,
19308 + # it will not redefine variable installed.
19309 + installed=yes
19311 + # Read the .la file
19312 + case $lib in
19313 + */* | *\\*) . $lib ;;
19314 + *) . ./$lib ;;
19315 + esac
19317 + if test "$linkmode,$pass" = "lib,link" ||
19318 + test "$linkmode,$pass" = "prog,scan" ||
19319 + { test "$linkmode" = oldlib && test "$linkmode" = obj; }; then
19320 + # Add dl[pre]opened files of deplib
19321 + test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
19322 + test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
19323 + fi
19325 + if test "$pass" = conv; then
19326 + # Only check for convenience libraries
19327 + deplibs="$lib $deplibs"
19328 + if test -z "$libdir"; then
19329 + if test -z "$old_library"; then
19330 + $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
19331 + exit 1
19332 + fi
19333 + # It is a libtool convenience library, so add in its objects.
19334 + convenience="$convenience $ladir/$objdir/$old_library"
19335 + old_convenience="$old_convenience $ladir/$objdir/$old_library"
19336 + tmp_libs=
19337 + for deplib in $dependency_libs; do
19338 + deplibs="$deplib $deplibs"
19339 + case "$tmp_libs " in
19340 + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
19341 + esac
19342 + tmp_libs="$tmp_libs $deplib"
19343 + done
19344 + elif test "$linkmode" != prog && test "$linkmode" != lib; then
19345 + $echo "$modename: \`$lib' is not a convenience library" 1>&2
19346 + exit 1
19347 + fi
19348 + continue
19349 + fi # $pass = conv
19351 + # Get the name of the library we link against.
19352 + linklib=
19353 + for l in $old_library $library_names; do
19354 + linklib="$l"
19355 + done
19356 + if test -z "$linklib"; then
19357 + $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
19358 + exit 1
19359 + fi
19361 + # This library was specified with -dlopen.
19362 + if test "$pass" = dlopen; then
19363 + if test -z "$libdir"; then
19364 + $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
19365 + exit 1
19366 + fi
19367 + if test -z "$dlname" || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
19368 + # If there is no dlname, no dlopen support or we're linking
19369 + # statically, we need to preload.
19370 + dlprefiles="$dlprefiles $lib"
19371 + else
19372 + newdlfiles="$newdlfiles $lib"
19373 + fi
19374 + continue
19375 + fi # $pass = dlopen
19377 + # We need an absolute path.
19378 + case $ladir in
19379 + [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
19380 + *)
19381 + abs_ladir=`cd "$ladir" && pwd`
19382 + if test -z "$abs_ladir"; then
19383 + $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2
19384 + $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
19385 + abs_ladir="$ladir"
19386 + fi
19387 + ;;
19388 + esac
19389 + laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
19391 + # Find the relevant object directory and library name.
19392 + if test "X$installed" = Xyes; then
19393 + if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
19394 + $echo "$modename: warning: library \`$lib' was moved." 1>&2
19395 + dir="$ladir"
19396 + absdir="$abs_ladir"
19397 + libdir="$abs_ladir"
19398 + else
19399 + dir="$libdir"
19400 + absdir="$libdir"
19401 + fi
19402 + else
19403 + dir="$ladir/$objdir"
19404 + absdir="$abs_ladir/$objdir"
19405 + # Remove this search path later
19406 + notinst_path="$notinst_path $abs_ladir"
19407 + fi # $installed = yes
19408 + name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
19410 + # This library was specified with -dlpreopen.
19411 + if test "$pass" = dlpreopen; then
19412 + if test -z "$libdir"; then
19413 + $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
19414 + exit 1
19415 + fi
19416 + # Prefer using a static library (so that no silly _DYNAMIC symbols
19417 + # are required to link).
19418 + if test -n "$old_library"; then
19419 + newdlprefiles="$newdlprefiles $dir/$old_library"
19420 + # Otherwise, use the dlname, so that lt_dlopen finds it.
19421 + elif test -n "$dlname"; then
19422 + newdlprefiles="$newdlprefiles $dir/$dlname"
19423 + else
19424 + newdlprefiles="$newdlprefiles $dir/$linklib"
19425 + fi
19426 + fi # $pass = dlpreopen
19428 + if test -z "$libdir"; then
19429 + # Link the convenience library
19430 + if test "$linkmode" = lib; then
19431 + deplibs="$dir/$old_library $deplibs"
19432 + elif test "$linkmode,$pass" = "prog,link"; then
19433 + compile_deplibs="$dir/$old_library $compile_deplibs"
19434 + finalize_deplibs="$dir/$old_library $finalize_deplibs"
19435 + else
19436 + deplibs="$lib $deplibs"
19437 + fi
19438 + continue
19439 + fi
19441 + if test "$linkmode" = prog && test "$pass" != link; then
19442 + newlib_search_path="$newlib_search_path $ladir"
19443 + deplibs="$lib $deplibs"
19445 + linkalldeplibs=no
19446 + if test "$link_all_deplibs" != no || test -z "$library_names" ||
19447 + test "$build_libtool_libs" = no; then
19448 + linkalldeplibs=yes
19449 + fi
19451 + tmp_libs=
19452 + for deplib in $dependency_libs; do
19453 + case $deplib in
19454 + -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
19455 + esac
19456 + # Need to link against all dependency_libs?
19457 + if test $linkalldeplibs = yes; then
19458 + deplibs="$deplib $deplibs"
19459 + else
19460 + # Need to hardcode shared library paths
19461 + # or/and link against static libraries
19462 + newdependency_libs="$deplib $newdependency_libs"
19463 + fi
19464 + case "$tmp_libs " in
19465 + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
19466 + esac
19467 + tmp_libs="$tmp_libs $deplib"
19468 + done # for deplib
19469 + continue
19470 + fi # $linkmode = prog...
19472 + link_static=no # Whether the deplib will be linked statically
19473 + if test -n "$library_names" &&
19474 + { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
19475 + # Link against this shared library
19477 + if test "$linkmode,$pass" = "prog,link" ||
19478 + { test "$linkmode" = lib && test "$hardcode_into_libs" = yes; }; then
19479 + # Hardcode the library path.
19480 + # Skip directories that are in the system default run-time
19481 + # search path.
19482 + case " $sys_lib_dlsearch_path " in
19483 + *" $absdir "*) ;;
19484 + *)
19485 + case "$compile_rpath " in
19486 + *" $absdir "*) ;;
19487 + *) compile_rpath="$compile_rpath $absdir"
19488 + esac
19489 + ;;
19490 + esac
19491 + case " $sys_lib_dlsearch_path " in
19492 + *" $libdir "*) ;;
19493 + *)
19494 + case "$finalize_rpath " in
19495 + *" $libdir "*) ;;
19496 + *) finalize_rpath="$finalize_rpath $libdir"
19497 + esac
19498 + ;;
19499 + esac
19500 + if test "$linkmode" = prog; then
19501 + # We need to hardcode the library path
19502 + if test -n "$shlibpath_var"; then
19503 + # Make sure the rpath contains only unique directories.
19504 + case "$temp_rpath " in
19505 + *" $dir "*) ;;
19506 + *" $absdir "*) ;;
19507 + *) temp_rpath="$temp_rpath $dir" ;;
19508 + esac
19509 + fi
19510 + fi
19511 + fi # $linkmode,$pass = prog,link...
19513 + if test "$alldeplibs" = yes &&
19514 + { test "$deplibs_check_method" = pass_all ||
19515 + { test "$build_libtool_libs" = yes &&
19516 + test -n "$library_names"; }; }; then
19517 + # We only need to search for static libraries
19518 + continue
19519 + fi
19521 + if test "$installed" = no; then
19522 + notinst_deplibs="$notinst_deplibs $lib"
19523 + need_relink=yes
19524 + fi
19526 + if test -n "$old_archive_from_expsyms_cmds"; then
19527 + # figure out the soname
19528 + set dummy $library_names
19529 + realname="$2"
19530 + shift; shift
19531 + libname=`eval \\$echo \"$libname_spec\"`
19532 + # use dlname if we got it. it's perfectly good, no?
19533 + if test -n "$dlname"; then
19534 + soname="$dlname"
19535 + elif test -n "$soname_spec"; then
19536 + # bleh windows
19537 + case $host in
19538 + *cygwin*)
19539 + major=`expr $current - $age`
19540 + versuffix="-$major"
19541 + ;;
19542 + esac
19543 + eval soname=\"$soname_spec\"
19544 + else
19545 + soname="$realname"
19546 + fi
19548 + # Make a new name for the extract_expsyms_cmds to use
19549 + soroot="$soname"
19550 + soname=`echo $soroot | sed -e 's/^.*\///'`
19551 + newlib="libimp-`echo $soname | sed 's/^lib//;s/\.dll$//'`.a"
19553 + # If the library has no export list, then create one now
19554 + if test -f "$output_objdir/$soname-def"; then :
19555 + else
19556 + $show "extracting exported symbol list from \`$soname'"
19557 + IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
19558 + eval cmds=\"$extract_expsyms_cmds\"
19559 + for cmd in $cmds; do
19560 + IFS="$save_ifs"
19561 + $show "$cmd"
19562 + $run eval "$cmd" || exit $?
19563 + done
19564 + IFS="$save_ifs"
19565 + fi
19567 + # Create $newlib
19568 + if test -f "$output_objdir/$newlib"; then :; else
19569 + $show "generating import library for \`$soname'"
19570 + IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
19571 + eval cmds=\"$old_archive_from_expsyms_cmds\"
19572 + for cmd in $cmds; do
19573 + IFS="$save_ifs"
19574 + $show "$cmd"
19575 + $run eval "$cmd" || exit $?
19576 + done
19577 + IFS="$save_ifs"
19578 + fi
19579 + # make sure the library variables are pointing to the new library
19580 + dir=$output_objdir
19581 + linklib=$newlib
19582 + fi # test -n $old_archive_from_expsyms_cmds
19584 + if test "$linkmode" = prog || test "$mode" != relink; then
19585 + add_shlibpath=
19586 + add_dir=
19587 + add=
19588 + lib_linked=yes
19589 + case $hardcode_action in
19590 + immediate | unsupported)
19591 + if test "$hardcode_direct" = no; then
19592 + add="$dir/$linklib"
19593 + elif test "$hardcode_minus_L" = no; then
19594 + case $host in
19595 + *-*-sunos*) add_shlibpath="$dir" ;;
19596 + esac
19597 + add_dir="-L$dir"
19598 + add="-l$name"
19599 + elif test "$hardcode_shlibpath_var" = no; then
19600 + add_shlibpath="$dir"
19601 + add="-l$name"
19602 + else
19603 + lib_linked=no
19604 + fi
19605 + ;;
19606 + relink)
19607 + if test "$hardcode_direct" = yes; then
19608 + add="$dir/$linklib"
19609 + elif test "$hardcode_minus_L" = yes; then
19610 + add_dir="-L$dir"
19611 + add="-l$name"
19612 + elif test "$hardcode_shlibpath_var" = yes; then
19613 + add_shlibpath="$dir"
19614 + add="-l$name"
19615 + else
19616 + lib_linked=no
19617 + fi
19618 + ;;
19619 + *) lib_linked=no ;;
19620 + esac
19622 + if test "$lib_linked" != yes; then
19623 + $echo "$modename: configuration error: unsupported hardcode properties"
19624 + exit 1
19625 + fi
19627 + if test -n "$add_shlibpath"; then
19628 + case :$compile_shlibpath: in
19629 + *":$add_shlibpath:"*) ;;
19630 + *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
19631 + esac
19632 + fi
19633 + if test "$linkmode" = prog; then
19634 + test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
19635 + test -n "$add" && compile_deplibs="$add $compile_deplibs"
19636 + else
19637 + test -n "$add_dir" && deplibs="$add_dir $deplibs"
19638 + test -n "$add" && deplibs="$add $deplibs"
19639 + if test "$hardcode_direct" != yes && \
19640 + test "$hardcode_minus_L" != yes && \
19641 + test "$hardcode_shlibpath_var" = yes; then
19642 + case :$finalize_shlibpath: in
19643 + *":$libdir:"*) ;;
19644 + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
19645 + esac
19646 + fi
19647 + fi
19648 + fi
19650 + if test "$linkmode" = prog || test "$mode" = relink; then
19651 + add_shlibpath=
19652 + add_dir=
19653 + add=
19654 + # Finalize command for both is simple: just hardcode it.
19655 + if test "$hardcode_direct" = yes; then
19656 + add="$libdir/$linklib"
19657 + elif test "$hardcode_minus_L" = yes; then
19658 + add_dir="-L$libdir"
19659 + add="-l$name"
19660 + elif test "$hardcode_shlibpath_var" = yes; then
19661 + case :$finalize_shlibpath: in
19662 + *":$libdir:"*) ;;
19663 + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
19664 + esac
19665 + add="-l$name"
19666 + else
19667 + # We cannot seem to hardcode it, guess we'll fake it.
19668 + add_dir="-L$libdir"
19669 + add="-l$name"
19670 + fi
19672 + if test "$linkmode" = prog; then
19673 + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
19674 + test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
19675 + else
19676 + test -n "$add_dir" && deplibs="$add_dir $deplibs"
19677 + test -n "$add" && deplibs="$add $deplibs"
19678 + fi
19679 + fi
19680 + elif test "$linkmode" = prog; then
19681 + if test "$alldeplibs" = yes &&
19682 + { test "$deplibs_check_method" = pass_all ||
19683 + { test "$build_libtool_libs" = yes &&
19684 + test -n "$library_names"; }; }; then
19685 + # We only need to search for static libraries
19686 + continue
19687 + fi
19689 + # Try to link the static library
19690 + # Here we assume that one of hardcode_direct or hardcode_minus_L
19691 + # is not unsupported. This is valid on all known static and
19692 + # shared platforms.
19693 + if test "$hardcode_direct" != unsupported; then
19694 + test -n "$old_library" && linklib="$old_library"
19695 + compile_deplibs="$dir/$linklib $compile_deplibs"
19696 + finalize_deplibs="$dir/$linklib $finalize_deplibs"
19697 + else
19698 + compile_deplibs="-l$name -L$dir $compile_deplibs"
19699 + finalize_deplibs="-l$name -L$dir $finalize_deplibs"
19700 + fi
19701 + elif test "$build_libtool_libs" = yes; then
19702 + # Not a shared library
19703 + if test "$deplibs_check_method" != pass_all; then
19704 + # We're trying link a shared library against a static one
19705 + # but the system doesn't support it.
19707 + # Just print a warning and add the library to dependency_libs so
19708 + # that the program can be linked against the static library.
19709 + echo
19710 + echo "*** Warning: This library needs some functionality provided by $lib."
19711 + echo "*** I have the capability to make that library automatically link in when"
19712 + echo "*** you link to this library. But I can only do this if you have a"
19713 + echo "*** shared version of the library, which you do not appear to have."
19714 + if test "$module" = yes; then
19715 + echo "*** Therefore, libtool will create a static module, that should work "
19716 + echo "*** as long as the dlopening application is linked with the -dlopen flag."
19717 + if test -z "$global_symbol_pipe"; then
19718 + echo
19719 + echo "*** However, this would only work if libtool was able to extract symbol"
19720 + echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
19721 + echo "*** not find such a program. So, this module is probably useless."
19722 + echo "*** \`nm' from GNU binutils and a full rebuild may help."
19723 + fi
19724 + if test "$build_old_libs" = no; then
19725 + build_libtool_libs=module
19726 + build_old_libs=yes
19727 + else
19728 + build_libtool_libs=no
19729 + fi
19730 + fi
19731 + else
19732 + convenience="$convenience $dir/$old_library"
19733 + old_convenience="$old_convenience $dir/$old_library"
19734 + deplibs="$dir/$old_library $deplibs"
19735 + link_static=yes
19736 + fi
19737 + fi # link shared/static library?
19739 + if test "$linkmode" = lib; then
19740 + if test -n "$dependency_libs" &&
19741 + { test "$hardcode_into_libs" != yes || test $build_old_libs = yes ||
19742 + test $link_static = yes; }; then
19743 + # Extract -R from dependency_libs
19744 + temp_deplibs=
19745 + for libdir in $dependency_libs; do
19746 + case $libdir in
19747 + -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
19748 + case " $xrpath " in
19749 + *" $temp_xrpath "*) ;;
19750 + *) xrpath="$xrpath $temp_xrpath";;
19751 + esac;;
19752 + *) temp_deplibs="$temp_deplibs $libdir";;
19753 + esac
19754 + done
19755 + dependency_libs="$temp_deplibs"
19756 + fi
19758 + newlib_search_path="$newlib_search_path $absdir"
19759 + # Link against this library
19760 + test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
19761 + # ... and its dependency_libs
19762 + tmp_libs=
19763 + for deplib in $dependency_libs; do
19764 + newdependency_libs="$deplib $newdependency_libs"
19765 + case "$tmp_libs " in
19766 + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
19767 + esac
19768 + tmp_libs="$tmp_libs $deplib"
19769 + done
19771 + if test "$link_all_deplibs" != no; then
19772 + # Add the search paths of all dependency libraries
19773 + for deplib in $dependency_libs; do
19774 + case $deplib in
19775 + -L*) path="$deplib" ;;
19776 + *.la)
19777 + dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
19778 + test "X$dir" = "X$deplib" && dir="."
19779 + # We need an absolute path.
19780 + case $dir in
19781 + [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
19782 + *)
19783 + absdir=`cd "$dir" && pwd`
19784 + if test -z "$absdir"; then
19785 + $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
19786 + absdir="$dir"
19787 + fi
19788 + ;;
19789 + esac
19790 + if grep "^installed=no" $deplib > /dev/null; then
19791 + path="-L$absdir/$objdir"
19792 + else
19793 + eval libdir=`sed -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
19794 + if test -z "$libdir"; then
19795 + $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
19796 + exit 1
19797 + fi
19798 + if test "$absdir" != "$libdir"; then
19799 + $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
19800 + fi
19801 + path="-L$absdir"
19802 + fi
19803 + ;;
19804 + *) continue ;;
19805 + esac
19806 + case " $deplibs " in
19807 + *" $path "*) ;;
19808 + *) deplibs="$deplibs $path" ;;
19809 + esac
19810 + done
19811 + fi # link_all_deplibs != no
19812 + fi # linkmode = lib
19813 + done # for deplib in $libs
19814 + if test "$pass" = dlpreopen; then
19815 + # Link the dlpreopened libraries before other libraries
19816 + for deplib in $save_deplibs; do
19817 + deplibs="$deplib $deplibs"
19818 + done
19819 + fi
19820 + if test "$pass" != dlopen; then
19821 + test "$pass" != scan && dependency_libs="$newdependency_libs"
19822 + if test "$pass" != conv; then
19823 + # Make sure lib_search_path contains only unique directories.
19824 + lib_search_path=
19825 + for dir in $newlib_search_path; do
19826 + case "$lib_search_path " in
19827 + *" $dir "*) ;;
19828 + *) lib_search_path="$lib_search_path $dir" ;;
19829 + esac
19830 + done
19831 + newlib_search_path=
19832 + fi
19834 + if test "$linkmode,$pass" != "prog,link"; then
19835 + vars="deplibs"
19836 + else
19837 + vars="compile_deplibs finalize_deplibs"
19838 + fi
19839 + for var in $vars dependency_libs; do
19840 + # Add libraries to $var in reverse order
19841 + eval tmp_libs=\"\$$var\"
19842 + new_libs=
19843 + for deplib in $tmp_libs; do
19844 + case $deplib in
19845 + -L*) new_libs="$deplib $new_libs" ;;
19846 + *)
19847 + case " $specialdeplibs " in
19848 + *" $deplib "*) new_libs="$deplib $new_libs" ;;
19849 + *)
19850 + case " $new_libs " in
19851 + *" $deplib "*) ;;
19852 + *) new_libs="$deplib $new_libs" ;;
19853 + esac
19854 + ;;
19855 + esac
19856 + ;;
19857 + esac
19858 + done
19859 + tmp_libs=
19860 + for deplib in $new_libs; do
19861 + case $deplib in
19862 + -L*)
19863 + case " $tmp_libs " in
19864 + *" $deplib "*) ;;
19865 + *) tmp_libs="$tmp_libs $deplib" ;;
19866 + esac
19867 + ;;
19868 + *) tmp_libs="$tmp_libs $deplib" ;;
19869 + esac
19870 + done
19871 + eval $var=\"$tmp_libs\"
19872 + done # for var
19873 + fi
19874 + if test "$pass" = "conv" &&
19875 + { test "$linkmode" = "lib" || test "$linkmode" = "prog"; }; then
19876 + libs="$deplibs" # reset libs
19877 + deplibs=
19878 + fi
19879 + done # for pass
19880 + if test "$linkmode" = prog; then
19881 + dlfiles="$newdlfiles"
19882 + dlprefiles="$newdlprefiles"
19883 + fi
19885 + case $linkmode in
19886 + oldlib)
19887 + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
19888 + $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
19889 + fi
19891 + if test -n "$rpath"; then
19892 + $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2
19893 + fi
19895 + if test -n "$xrpath"; then
19896 + $echo "$modename: warning: \`-R' is ignored for archives" 1>&2
19897 + fi
19899 + if test -n "$vinfo"; then
19900 + $echo "$modename: warning: \`-version-info' is ignored for archives" 1>&2
19901 + fi
19903 + if test -n "$release"; then
19904 + $echo "$modename: warning: \`-release' is ignored for archives" 1>&2
19905 + fi
19907 + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
19908 + $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
19909 + fi
19911 + # Now set the variables for building old libraries.
19912 + build_libtool_libs=no
19913 + oldlibs="$output"
19914 + objs="$objs$old_deplibs"
19915 + ;;
19917 + lib)
19918 + # Make sure we only generate libraries of the form `libNAME.la'.
19919 + case $outputname in
19920 + lib*)
19921 + name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
19922 + eval libname=\"$libname_spec\"
19923 + ;;
19924 + *)
19925 + if test "$module" = no; then
19926 + $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
19927 + $echo "$help" 1>&2
19928 + exit 1
19929 + fi
19930 + if test "$need_lib_prefix" != no; then
19931 + # Add the "lib" prefix for modules if required
19932 + name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
19933 + eval libname=\"$libname_spec\"
19934 + else
19935 + libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
19936 + fi
19937 + ;;
19938 + esac
19940 + if test -n "$objs"; then
19941 + if test "$deplibs_check_method" != pass_all; then
19942 + $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
19943 + exit 1
19944 + else
19945 + echo
19946 + echo "*** Warning: Linking the shared library $output against the non-libtool"
19947 + echo "*** objects $objs is not portable!"
19948 + libobjs="$libobjs $objs"
19949 + fi
19950 + fi
19952 + if test "$dlself" != no; then
19953 + $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2
19954 + fi
19956 + set dummy $rpath
19957 + if test $# -gt 2; then
19958 + $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
19959 + fi
19960 + install_libdir="$2"
19962 + oldlibs=
19963 + if test -z "$rpath"; then
19964 + if test "$build_libtool_libs" = yes; then
19965 + # Building a libtool convenience library.
19966 + libext=al
19967 + oldlibs="$output_objdir/$libname.$libext $oldlibs"
19968 + build_libtool_libs=convenience
19969 + build_old_libs=yes
19970 + fi
19972 + if test -n "$vinfo"; then
19973 + $echo "$modename: warning: \`-version-info' is ignored for convenience libraries" 1>&2
19974 + fi
19976 + if test -n "$release"; then
19977 + $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2
19978 + fi
19979 + else
19981 + # Parse the version information argument.
19982 + IFS="${IFS= }"; save_ifs="$IFS"; IFS=':'
19983 + set dummy $vinfo 0 0 0
19984 + IFS="$save_ifs"
19986 + if test -n "$8"; then
19987 + $echo "$modename: too many parameters to \`-version-info'" 1>&2
19988 + $echo "$help" 1>&2
19989 + exit 1
19990 + fi
19992 + current="$2"
19993 + revision="$3"
19994 + age="$4"
19996 + # Check that each of the things are valid numbers.
19997 + case $current in
19998 + 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
19999 + *)
20000 + $echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2
20001 + $echo "$modename: \`$vinfo' is not valid version information" 1>&2
20002 + exit 1
20003 + ;;
20004 + esac
20006 + case $revision in
20007 + 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
20008 + *)
20009 + $echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2
20010 + $echo "$modename: \`$vinfo' is not valid version information" 1>&2
20011 + exit 1
20012 + ;;
20013 + esac
20015 + case $age in
20016 + 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
20017 + *)
20018 + $echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2
20019 + $echo "$modename: \`$vinfo' is not valid version information" 1>&2
20020 + exit 1
20021 + ;;
20022 + esac
20024 + if test $age -gt $current; then
20025 + $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
20026 + $echo "$modename: \`$vinfo' is not valid version information" 1>&2
20027 + exit 1
20028 + fi
20030 + # Calculate the version variables.
20031 + major=
20032 + versuffix=
20033 + verstring=
20034 + case $version_type in
20035 + none) ;;
20037 + darwin)
20038 + # Like Linux, but with the current version available in
20039 + # verstring for coding it into the library header
20040 + major=.`expr $current - $age`
20041 + versuffix="$major.$age.$revision"
20042 + # Darwin ld doesn't like 0 for these options...
20043 + minor_current=`expr $current + 1`
20044 + verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
20045 + ;;
20047 + freebsd-aout)
20048 + major=".$current"
20049 + versuffix=".$current.$revision";
20050 + ;;
20052 + freebsd-elf)
20053 + major=".$current"
20054 + versuffix=".$current";
20055 + ;;
20057 + irix)
20058 + major=`expr $current - $age + 1`
20059 + verstring="sgi$major.$revision"
20061 + # Add in all the interfaces that we are compatible with.
20062 + loop=$revision
20063 + while test $loop != 0; do
20064 + iface=`expr $revision - $loop`
20065 + loop=`expr $loop - 1`
20066 + verstring="sgi$major.$iface:$verstring"
20067 + done
20069 + # Before this point, $major must not contain `.'.
20070 + major=.$major
20071 + versuffix="$major.$revision"
20072 + ;;
20074 + linux)
20075 + major=.`expr $current - $age`
20076 + versuffix="$major.$age.$revision"
20077 + ;;
20079 + osf)
20080 + major=`expr $current - $age`
20081 + versuffix=".$current.$age.$revision"
20082 + verstring="$current.$age.$revision"
20084 + # Add in all the interfaces that we are compatible with.
20085 + loop=$age
20086 + while test $loop != 0; do
20087 + iface=`expr $current - $loop`
20088 + loop=`expr $loop - 1`
20089 + verstring="$verstring:${iface}.0"
20090 + done
20092 + # Make executables depend on our current version.
20093 + verstring="$verstring:${current}.0"
20094 + ;;
20096 + sunos)
20097 + major=".$current"
20098 + versuffix=".$current.$revision"
20099 + ;;
20101 + windows)
20102 + # Use '-' rather than '.', since we only want one
20103 + # extension on DOS 8.3 filesystems.
20104 + major=`expr $current - $age`
20105 + versuffix="-$major"
20106 + ;;
20108 + *)
20109 + $echo "$modename: unknown library version type \`$version_type'" 1>&2
20110 + echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
20111 + exit 1
20112 + ;;
20113 + esac
20115 + # Clear the version info if we defaulted, and they specified a release.
20116 + if test -z "$vinfo" && test -n "$release"; then
20117 + major=
20118 + verstring="0.0"
20119 + if test "$need_version" = no; then
20120 + versuffix=
20121 + else
20122 + versuffix=".0.0"
20123 + fi
20124 + fi
20126 + # Remove version info from name if versioning should be avoided
20127 + if test "$avoid_version" = yes && test "$need_version" = no; then
20128 + major=
20129 + versuffix=
20130 + verstring=""
20131 + fi
20133 + # Check to see if the archive will have undefined symbols.
20134 + if test "$allow_undefined" = yes; then
20135 + if test "$allow_undefined_flag" = unsupported; then
20136 + $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2
20137 + build_libtool_libs=no
20138 + build_old_libs=yes
20139 + fi
20140 + else
20141 + # Don't allow undefined symbols.
20142 + allow_undefined_flag="$no_undefined_flag"
20143 + fi
20144 + fi
20146 + if test "$mode" != relink; then
20147 + # Remove our outputs.
20148 + $show "${rm}r $output_objdir/$outputname $output_objdir/$libname.* $output_objdir/${libname}${release}.*"
20149 + $run ${rm}r $output_objdir/$outputname $output_objdir/$libname.* $output_objdir/${libname}${release}.*
20150 + fi
20152 + # Now set the variables for building old libraries.
20153 + if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
20154 + oldlibs="$oldlibs $output_objdir/$libname.$libext"
20156 + # Transform .lo files to .o files.
20157 + oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
20158 + fi
20160 + # Eliminate all temporary directories.
20161 + for path in $notinst_path; do
20162 + lib_search_path=`echo "$lib_search_path " | sed -e 's% $path % %g'`
20163 + deplibs=`echo "$deplibs " | sed -e 's% -L$path % %g'`
20164 + dependency_libs=`echo "$dependency_libs " | sed -e 's% -L$path % %g'`
20165 + done
20167 + if test -n "$xrpath"; then
20168 + # If the user specified any rpath flags, then add them.
20169 + temp_xrpath=
20170 + for libdir in $xrpath; do
20171 + temp_xrpath="$temp_xrpath -R$libdir"
20172 + case "$finalize_rpath " in
20173 + *" $libdir "*) ;;
20174 + *) finalize_rpath="$finalize_rpath $libdir" ;;
20175 + esac
20176 + done
20177 + if test $hardcode_into_libs != yes || test $build_old_libs = yes; then
20178 + dependency_libs="$temp_xrpath $dependency_libs"
20179 + fi
20180 + fi
20182 + # Make sure dlfiles contains only unique files that won't be dlpreopened
20183 + old_dlfiles="$dlfiles"
20184 + dlfiles=
20185 + for lib in $old_dlfiles; do
20186 + case " $dlprefiles $dlfiles " in
20187 + *" $lib "*) ;;
20188 + *) dlfiles="$dlfiles $lib" ;;
20189 + esac
20190 + done
20192 + # Make sure dlprefiles contains only unique files
20193 + old_dlprefiles="$dlprefiles"
20194 + dlprefiles=
20195 + for lib in $old_dlprefiles; do
20196 + case "$dlprefiles " in
20197 + *" $lib "*) ;;
20198 + *) dlprefiles="$dlprefiles $lib" ;;
20199 + esac
20200 + done
20202 + if test "$build_libtool_libs" = yes; then
20203 + if test -n "$rpath"; then
20204 + case $host in
20205 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
20206 + # these systems don't actually have a c library (as such)!
20207 + ;;
20208 + *-*-rhapsody* | *-*-darwin1.[012])
20209 + # Rhapsody C library is in the System framework
20210 + deplibs="$deplibs -framework System"
20211 + ;;
20212 + *-*-netbsd*)
20213 + # Don't link with libc until the a.out ld.so is fixed.
20214 + ;;
20215 + *)
20216 + # Add libc to deplibs on all other systems if necessary.
20217 + if test "$build_libtool_need_lc" = "yes"; then
20218 + deplibs="$deplibs -lc"
20219 + fi
20220 + ;;
20221 + esac
20222 + fi
20224 + # Transform deplibs into only deplibs that can be linked in shared.
20225 + name_save=$name
20226 + libname_save=$libname
20227 + release_save=$release
20228 + versuffix_save=$versuffix
20229 + major_save=$major
20230 + # I'm not sure if I'm treating the release correctly. I think
20231 + # release should show up in the -l (ie -lgmp5) so we don't want to
20232 + # add it in twice. Is that correct?
20233 + release=""
20234 + versuffix=""
20235 + major=""
20236 + newdeplibs=
20237 + droppeddeps=no
20238 + case $deplibs_check_method in
20239 + pass_all)
20240 + # Don't check for shared/static. Everything works.
20241 + # This might be a little naive. We might want to check
20242 + # whether the library exists or not. But this is on
20243 + # osf3 & osf4 and I'm not really sure... Just
20244 + # implementing what was already the behaviour.
20245 + newdeplibs=$deplibs
20246 + ;;
20247 + test_compile)
20248 + # This code stresses the "libraries are programs" paradigm to its
20249 + # limits. Maybe even breaks it. We compile a program, linking it
20250 + # against the deplibs as a proxy for the library. Then we can check
20251 + # whether they linked in statically or dynamically with ldd.
20252 + $rm conftest.c
20253 + cat > conftest.c <<EOF
20254 + int main() { return 0; }
20255 +EOF
20256 + $rm conftest
20257 + $CC -o conftest conftest.c $deplibs
20258 + if test $? -eq 0 ; then
20259 + ldd_output=`ldd conftest`
20260 + for i in $deplibs; do
20261 + name="`expr $i : '-l\(.*\)'`"
20262 + # If $name is empty we are operating on a -L argument.
20263 + if test -n "$name" && test "$name" != "0"; then
20264 + libname=`eval \\$echo \"$libname_spec\"`
20265 + deplib_matches=`eval \\$echo \"$library_names_spec\"`
20266 + set dummy $deplib_matches
20267 + deplib_match=$2
20268 + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
20269 + newdeplibs="$newdeplibs $i"
20270 + else
20271 + droppeddeps=yes
20272 + echo
20273 + echo "*** Warning: This library needs some functionality provided by $i."
20274 + echo "*** I have the capability to make that library automatically link in when"
20275 + echo "*** you link to this library. But I can only do this if you have a"
20276 + echo "*** shared version of the library, which you do not appear to have."
20277 + fi
20278 + else
20279 + newdeplibs="$newdeplibs $i"
20280 + fi
20281 + done
20282 + else
20283 + # Error occured in the first compile. Let's try to salvage the situation:
20284 + # Compile a seperate program for each library.
20285 + for i in $deplibs; do
20286 + name="`expr $i : '-l\(.*\)'`"
20287 + # If $name is empty we are operating on a -L argument.
20288 + if test -n "$name" && test "$name" != "0"; then
20289 + $rm conftest
20290 + $CC -o conftest conftest.c $i
20291 + # Did it work?
20292 + if test $? -eq 0 ; then
20293 + ldd_output=`ldd conftest`
20294 + libname=`eval \\$echo \"$libname_spec\"`
20295 + deplib_matches=`eval \\$echo \"$library_names_spec\"`
20296 + set dummy $deplib_matches
20297 + deplib_match=$2
20298 + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
20299 + newdeplibs="$newdeplibs $i"
20300 + else
20301 + droppeddeps=yes
20302 + echo
20303 + echo "*** Warning: This library needs some functionality provided by $i."
20304 + echo "*** I have the capability to make that library automatically link in when"
20305 + echo "*** you link to this library. But I can only do this if you have a"
20306 + echo "*** shared version of the library, which you do not appear to have."
20307 + fi
20308 + else
20309 + droppeddeps=yes
20310 + echo
20311 + echo "*** Warning! Library $i is needed by this library but I was not able to"
20312 + echo "*** make it link in! You will probably need to install it or some"
20313 + echo "*** library that it depends on before this library will be fully"
20314 + echo "*** functional. Installing it before continuing would be even better."
20315 + fi
20316 + else
20317 + newdeplibs="$newdeplibs $i"
20318 + fi
20319 + done
20320 + fi
20321 + ;;
20322 + file_magic*)
20323 + set dummy $deplibs_check_method
20324 + file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
20325 + for a_deplib in $deplibs; do
20326 + name="`expr $a_deplib : '-l\(.*\)'`"
20327 + # If $name is empty we are operating on a -L argument.
20328 + if test -n "$name" && test "$name" != "0"; then
20329 + libname=`eval \\$echo \"$libname_spec\"`
20330 + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
20331 + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
20332 + for potent_lib in $potential_libs; do
20333 + # Follow soft links.
20334 + if ls -lLd "$potent_lib" 2>/dev/null \
20335 + | grep " -> " >/dev/null; then
20336 + continue
20337 + fi
20338 + # The statement above tries to avoid entering an
20339 + # endless loop below, in case of cyclic links.
20340 + # We might still enter an endless loop, since a link
20341 + # loop can be closed while we follow links,
20342 + # but so what?
20343 + potlib="$potent_lib"
20344 + while test -h "$potlib" 2>/dev/null; do
20345 + potliblink=`ls -ld $potlib | sed 's/.* -> //'`
20346 + case $potliblink in
20347 + [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
20348 + *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
20349 + esac
20350 + done
20351 + if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
20352 + | sed 10q \
20353 + | egrep "$file_magic_regex" > /dev/null; then
20354 + newdeplibs="$newdeplibs $a_deplib"
20355 + a_deplib=""
20356 + break 2
20357 + fi
20358 + done
20359 + done
20360 + if test -n "$a_deplib" ; then
20361 + droppeddeps=yes
20362 + echo
20363 + echo "*** Warning: This library needs some functionality provided by $a_deplib."
20364 + echo "*** I have the capability to make that library automatically link in when"
20365 + echo "*** you link to this library. But I can only do this if you have a"
20366 + echo "*** shared version of the library, which you do not appear to have."
20367 + fi
20368 + else
20369 + # Add a -L argument.
20370 + newdeplibs="$newdeplibs $a_deplib"
20371 + fi
20372 + done # Gone through all deplibs.
20373 + ;;
20374 + match_pattern*)
20375 + set dummy $deplibs_check_method
20376 + match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
20377 + for a_deplib in $deplibs; do
20378 + name="`expr $a_deplib : '-l\(.*\)'`"
20379 + # If $name is empty we are operating on a -L argument.
20380 + if test -n "$name" && test "$name" != "0"; then
20381 + libname=`eval \\$echo \"$libname_spec\"`
20382 + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
20383 + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
20384 + for potent_lib in $potential_libs; do
20385 + if eval echo \"$potent_lib\" 2>/dev/null \
20386 + | sed 10q \
20387 + | egrep "$match_pattern_regex" > /dev/null; then
20388 + newdeplibs="$newdeplibs $a_deplib"
20389 + a_deplib=""
20390 + break 2
20391 + fi
20392 + done
20393 + done
20394 + if test -n "$a_deplib" ; then
20395 + droppeddeps=yes
20396 + echo
20397 + echo "*** Warning: This library needs some functionality provided by $a_deplib."
20398 + echo "*** I have the capability to make that library automatically link in when"
20399 + echo "*** you link to this library. But I can only do this if you have a"
20400 + echo "*** shared version of the library, which you do not appear to have."
20401 + fi
20402 + else
20403 + # Add a -L argument.
20404 + newdeplibs="$newdeplibs $a_deplib"
20405 + fi
20406 + done # Gone through all deplibs.
20407 + ;;
20408 + none | unknown | *)
20409 + newdeplibs=""
20410 + if $echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
20411 + -e 's/ -[LR][^ ]*//g' -e 's/[ ]//g' |
20412 + grep . >/dev/null; then
20413 + echo
20414 + if test "X$deplibs_check_method" = "Xnone"; then
20415 + echo "*** Warning: inter-library dependencies are not supported in this platform."
20416 + else
20417 + echo "*** Warning: inter-library dependencies are not known to be supported."
20418 + fi
20419 + echo "*** All declared inter-library dependencies are being dropped."
20420 + droppeddeps=yes
20421 + fi
20422 + ;;
20423 + esac
20424 + versuffix=$versuffix_save
20425 + major=$major_save
20426 + release=$release_save
20427 + libname=$libname_save
20428 + name=$name_save
20430 + case $host in
20431 + *-*-rhapsody* | *-*-darwin1.[012])
20432 + # On Rhapsody replace the C library is the System framework
20433 + newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
20434 + ;;
20435 + esac
20437 + if test "$droppeddeps" = yes; then
20438 + if test "$module" = yes; then
20439 + echo
20440 + echo "*** Warning: libtool could not satisfy all declared inter-library"
20441 + echo "*** dependencies of module $libname. Therefore, libtool will create"
20442 + echo "*** a static module, that should work as long as the dlopening"
20443 + echo "*** application is linked with the -dlopen flag."
20444 + if test -z "$global_symbol_pipe"; then
20445 + echo
20446 + echo "*** However, this would only work if libtool was able to extract symbol"
20447 + echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
20448 + echo "*** not find such a program. So, this module is probably useless."
20449 + echo "*** \`nm' from GNU binutils and a full rebuild may help."
20450 + fi
20451 + if test "$build_old_libs" = no; then
20452 + oldlibs="$output_objdir/$libname.$libext"
20453 + build_libtool_libs=module
20454 + build_old_libs=yes
20455 + else
20456 + build_libtool_libs=no
20457 + fi
20458 + else
20459 + echo "*** The inter-library dependencies that have been dropped here will be"
20460 + echo "*** automatically added whenever a program is linked with this library"
20461 + echo "*** or is declared to -dlopen it."
20463 + if test $allow_undefined = no; then
20464 + echo
20465 + echo "*** Since this library must not contain undefined symbols,"
20466 + echo "*** because either the platform does not support them or"
20467 + echo "*** it was explicitly requested with -no-undefined,"
20468 + echo "*** libtool will only create a static version of it."
20469 + if test "$build_old_libs" = no; then
20470 + oldlibs="$output_objdir/$libname.$libext"
20471 + build_libtool_libs=module
20472 + build_old_libs=yes
20473 + else
20474 + build_libtool_libs=no
20475 + fi
20476 + fi
20477 + fi
20478 + fi
20479 + # Done checking deplibs!
20480 + deplibs=$newdeplibs
20481 + fi
20483 + # All the library-specific variables (install_libdir is set above).
20484 + library_names=
20485 + old_library=
20486 + dlname=
20488 + # Test again, we may have decided not to build it any more
20489 + if test "$build_libtool_libs" = yes; then
20490 + if test "$hardcode_into_libs" = yes; then
20491 + # Hardcode the library paths
20492 + hardcode_libdirs=
20493 + dep_rpath=
20494 + rpath="$finalize_rpath"
20495 + test "$mode" != relink && rpath="$compile_rpath$rpath"
20496 + for libdir in $rpath; do
20497 + if test -n "$hardcode_libdir_flag_spec"; then
20498 + if test -n "$hardcode_libdir_separator"; then
20499 + if test -z "$hardcode_libdirs"; then
20500 + hardcode_libdirs="$libdir"
20501 + else
20502 + # Just accumulate the unique libdirs.
20503 + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
20504 + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
20505 + ;;
20506 + *)
20507 + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
20508 + ;;
20509 + esac
20510 + fi
20511 + else
20512 + eval flag=\"$hardcode_libdir_flag_spec\"
20513 + dep_rpath="$dep_rpath $flag"
20514 + fi
20515 + elif test -n "$runpath_var"; then
20516 + case "$perm_rpath " in
20517 + *" $libdir "*) ;;
20518 + *) perm_rpath="$perm_rpath $libdir" ;;
20519 + esac
20520 + fi
20521 + done
20522 + # Substitute the hardcoded libdirs into the rpath.
20523 + if test -n "$hardcode_libdir_separator" &&
20524 + test -n "$hardcode_libdirs"; then
20525 + libdir="$hardcode_libdirs"
20526 + eval dep_rpath=\"$hardcode_libdir_flag_spec\"
20527 + fi
20528 + if test -n "$runpath_var" && test -n "$perm_rpath"; then
20529 + # We should set the runpath_var.
20530 + rpath=
20531 + for dir in $perm_rpath; do
20532 + rpath="$rpath$dir:"
20533 + done
20534 + eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
20535 + fi
20536 + test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
20537 + fi
20539 + shlibpath="$finalize_shlibpath"
20540 + test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
20541 + if test -n "$shlibpath"; then
20542 + eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
20543 + fi
20545 + # Get the real and link names of the library.
20546 + eval library_names=\"$library_names_spec\"
20547 + set dummy $library_names
20548 + realname="$2"
20549 + shift; shift
20551 + if test -n "$soname_spec"; then
20552 + eval soname=\"$soname_spec\"
20553 + else
20554 + soname="$realname"
20555 + fi
20556 + test -z "$dlname" && dlname=$soname
20558 + lib="$output_objdir/$realname"
20559 + for link
20560 + do
20561 + linknames="$linknames $link"
20562 + done
20564 + # Ensure that we have .o objects for linkers which dislike .lo
20565 + # (e.g. aix) in case we are running --disable-static
20566 + for obj in $libobjs; do
20567 + xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
20568 + if test "X$xdir" = "X$obj"; then
20569 + xdir="."
20570 + else
20571 + xdir="$xdir"
20572 + fi
20573 + baseobj=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
20574 + oldobj=`$echo "X$baseobj" | $Xsed -e "$lo2o"`
20575 + if test ! -f $xdir/$oldobj; then
20576 + $show "(cd $xdir && ${LN_S} $baseobj $oldobj)"
20577 + $run eval '(cd $xdir && ${LN_S} $baseobj $oldobj)' || exit $?
20578 + fi
20579 + done
20581 + # Use standard objects if they are pic
20582 + test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
20584 + # Prepare the list of exported symbols
20585 + if test -z "$export_symbols"; then
20586 + if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
20587 + $show "generating symbol list for \`$libname.la'"
20588 + export_symbols="$output_objdir/$libname.exp"
20589 + $run $rm $export_symbols
20590 + eval cmds=\"$export_symbols_cmds\"
20591 + IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
20592 + for cmd in $cmds; do
20593 + IFS="$save_ifs"
20594 + $show "$cmd"
20595 + $run eval "$cmd" || exit $?
20596 + done
20597 + IFS="$save_ifs"
20598 + if test -n "$export_symbols_regex"; then
20599 + $show "egrep -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
20600 + $run eval 'egrep -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
20601 + $show "$mv \"${export_symbols}T\" \"$export_symbols\""
20602 + $run eval '$mv "${export_symbols}T" "$export_symbols"'
20603 + fi
20604 + fi
20605 + fi
20607 + if test -n "$export_symbols" && test -n "$include_expsyms"; then
20608 + $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
20609 + fi
20611 + if test -n "$convenience"; then
20612 + if test -n "$whole_archive_flag_spec"; then
20613 + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
20614 + else
20615 + gentop="$output_objdir/${outputname}x"
20616 + $show "${rm}r $gentop"
20617 + $run ${rm}r "$gentop"
20618 + $show "mkdir $gentop"
20619 + $run mkdir "$gentop"
20620 + status=$?
20621 + if test $status -ne 0 && test ! -d "$gentop"; then
20622 + exit $status
20623 + fi
20624 + generated="$generated $gentop"
20626 + for xlib in $convenience; do
20627 + # Extract the objects.
20628 + case $xlib in
20629 + [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
20630 + *) xabs=`pwd`"/$xlib" ;;
20631 + esac
20632 + xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
20633 + xdir="$gentop/$xlib"
20635 + $show "${rm}r $xdir"
20636 + $run ${rm}r "$xdir"
20637 + $show "mkdir $xdir"
20638 + $run mkdir "$xdir"
20639 + status=$?
20640 + if test $status -ne 0 && test ! -d "$xdir"; then
20641 + exit $status
20642 + fi
20643 + $show "(cd $xdir && $AR x $xabs)"
20644 + $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
20646 + libobjs="$libobjs "`find $xdir -name \*.o -print -o -name \*.lo -print | $NL2SP`
20647 + done
20648 + fi
20649 + fi
20651 + if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
20652 + eval flag=\"$thread_safe_flag_spec\"
20653 + linker_flags="$linker_flags $flag"
20654 + fi
20656 + # Make a backup of the uninstalled library when relinking
20657 + if test "$mode" = relink; then
20658 + $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $?
20659 + fi
20661 + # Do each of the archive commands.
20662 + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
20663 + eval cmds=\"$archive_expsym_cmds\"
20664 + else
20665 + eval cmds=\"$archive_cmds\"
20666 + fi
20667 + IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
20668 + for cmd in $cmds; do
20669 + IFS="$save_ifs"
20670 + $show "$cmd"
20671 + $run eval "$cmd" || exit $?
20672 + done
20673 + IFS="$save_ifs"
20675 + # Restore the uninstalled library and exit
20676 + if test "$mode" = relink; then
20677 + $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
20678 + exit 0
20679 + fi
20681 + # Create links to the real library.
20682 + for linkname in $linknames; do
20683 + if test "$realname" != "$linkname"; then
20684 + $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)"
20685 + $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $?
20686 + fi
20687 + done
20689 + # If -module or -export-dynamic was specified, set the dlname.
20690 + if test "$module" = yes || test "$export_dynamic" = yes; then
20691 + # On all known operating systems, these are identical.
20692 + dlname="$soname"
20693 + fi
20694 + fi
20695 + ;;
20697 + obj)
20698 + if test -n "$deplibs"; then
20699 + $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
20700 + fi
20702 + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
20703 + $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
20704 + fi
20706 + if test -n "$rpath"; then
20707 + $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2
20708 + fi
20710 + if test -n "$xrpath"; then
20711 + $echo "$modename: warning: \`-R' is ignored for objects" 1>&2
20712 + fi
20714 + if test -n "$vinfo"; then
20715 + $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2
20716 + fi
20718 + if test -n "$release"; then
20719 + $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
20720 + fi
20722 + case $output in
20723 + *.lo)
20724 + if test -n "$objs$old_deplibs"; then
20725 + $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
20726 + exit 1
20727 + fi
20728 + libobj="$output"
20729 + obj=`$echo "X$output" | $Xsed -e "$lo2o"`
20730 + ;;
20731 + *)
20732 + libobj=
20733 + obj="$output"
20734 + ;;
20735 + esac
20737 + # Delete the old objects.
20738 + $run $rm $obj $libobj
20740 + # Objects from convenience libraries. This assumes
20741 + # single-version convenience libraries. Whenever we create
20742 + # different ones for PIC/non-PIC, this we'll have to duplicate
20743 + # the extraction.
20744 + reload_conv_objs=
20745 + gentop=
20746 + # reload_cmds runs $LD directly, so let us get rid of
20747 + # -Wl from whole_archive_flag_spec
20748 + wl=
20750 + if test -n "$convenience"; then
20751 + if test -n "$whole_archive_flag_spec"; then
20752 + eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
20753 + else
20754 + gentop="$output_objdir/${obj}x"
20755 + $show "${rm}r $gentop"
20756 + $run ${rm}r "$gentop"
20757 + $show "mkdir $gentop"
20758 + $run mkdir "$gentop"
20759 + status=$?
20760 + if test $status -ne 0 && test ! -d "$gentop"; then
20761 + exit $status
20762 + fi
20763 + generated="$generated $gentop"
20765 + for xlib in $convenience; do
20766 + # Extract the objects.
20767 + case $xlib in
20768 + [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
20769 + *) xabs=`pwd`"/$xlib" ;;
20770 + esac
20771 + xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
20772 + xdir="$gentop/$xlib"
20774 + $show "${rm}r $xdir"
20775 + $run ${rm}r "$xdir"
20776 + $show "mkdir $xdir"
20777 + $run mkdir "$xdir"
20778 + status=$?
20779 + if test $status -ne 0 && test ! -d "$xdir"; then
20780 + exit $status
20781 + fi
20782 + $show "(cd $xdir && $AR x $xabs)"
20783 + $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
20785 + reload_conv_objs="$reload_objs "`find $xdir -name \*.o -print -o -name \*.lo -print | $NL2SP`
20786 + done
20787 + fi
20788 + fi
20790 + # Create the old-style object.
20791 + reload_objs="$objs$old_deplibs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
20793 + output="$obj"
20794 + eval cmds=\"$reload_cmds\"
20795 + IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
20796 + for cmd in $cmds; do
20797 + IFS="$save_ifs"
20798 + $show "$cmd"
20799 + $run eval "$cmd" || exit $?
20800 + done
20801 + IFS="$save_ifs"
20803 + # Exit if we aren't doing a library object file.
20804 + if test -z "$libobj"; then
20805 + if test -n "$gentop"; then
20806 + $show "${rm}r $gentop"
20807 + $run ${rm}r $gentop
20808 + fi
20810 + exit 0
20811 + fi
20813 + if test "$build_libtool_libs" != yes; then
20814 + if test -n "$gentop"; then
20815 + $show "${rm}r $gentop"
20816 + $run ${rm}r $gentop
20817 + fi
20819 + # Create an invalid libtool object if no PIC, so that we don't
20820 + # accidentally link it into a program.
20821 + $show "echo timestamp > $libobj"
20822 + $run eval "echo timestamp > $libobj" || exit $?
20823 + exit 0
20824 + fi
20826 + if test -n "$pic_flag" || test "$pic_mode" != default; then
20827 + # Only do commands if we really have different PIC objects.
20828 + reload_objs="$libobjs $reload_conv_objs"
20829 + output="$libobj"
20830 + eval cmds=\"$reload_cmds\"
20831 + IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
20832 + for cmd in $cmds; do
20833 + IFS="$save_ifs"
20834 + $show "$cmd"
20835 + $run eval "$cmd" || exit $?
20836 + done
20837 + IFS="$save_ifs"
20838 + else
20839 + # Just create a symlink.
20840 + $show $rm $libobj
20841 + $run $rm $libobj
20842 + xdir=`$echo "X$libobj" | $Xsed -e 's%/[^/]*$%%'`
20843 + if test "X$xdir" = "X$libobj"; then
20844 + xdir="."
20845 + else
20846 + xdir="$xdir"
20847 + fi
20848 + baseobj=`$echo "X$libobj" | $Xsed -e 's%^.*/%%'`
20849 + oldobj=`$echo "X$baseobj" | $Xsed -e "$lo2o"`
20850 + $show "(cd $xdir && $LN_S $oldobj $baseobj)"
20851 + $run eval '(cd $xdir && $LN_S $oldobj $baseobj)' || exit $?
20852 + fi
20854 + if test -n "$gentop"; then
20855 + $show "${rm}r $gentop"
20856 + $run ${rm}r $gentop
20857 + fi
20859 + exit 0
20860 + ;;
20862 + prog)
20863 + case $host in
20864 + *cygwin*) output=`echo $output | sed -e 's,.exe$,,;s,$,.exe,'` ;;
20865 + esac
20866 + if test -n "$vinfo"; then
20867 + $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
20868 + fi
20870 + if test -n "$release"; then
20871 + $echo "$modename: warning: \`-release' is ignored for programs" 1>&2
20872 + fi
20874 + if test "$preload" = yes; then
20875 + if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown &&
20876 + test "$dlopen_self_static" = unknown; then
20877 + $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
20878 + fi
20879 + fi
20881 + case $host in
20882 + *-*-rhapsody* | *-*-darwin1.[012])
20883 + # On Rhapsody replace the C library is the System framework
20884 + compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
20885 + finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
20886 + ;;
20887 + esac
20889 + compile_command="$compile_command $compile_deplibs"
20890 + finalize_command="$finalize_command $finalize_deplibs"
20892 + if test -n "$rpath$xrpath"; then
20893 + # If the user specified any rpath flags, then add them.
20894 + for libdir in $rpath $xrpath; do
20895 + # This is the magic to use -rpath.
20896 + case "$finalize_rpath " in
20897 + *" $libdir "*) ;;
20898 + *) finalize_rpath="$finalize_rpath $libdir" ;;
20899 + esac
20900 + done
20901 + fi
20903 + # Now hardcode the library paths
20904 + rpath=
20905 + hardcode_libdirs=
20906 + for libdir in $compile_rpath $finalize_rpath; do
20907 + if test -n "$hardcode_libdir_flag_spec"; then
20908 + if test -n "$hardcode_libdir_separator"; then
20909 + if test -z "$hardcode_libdirs"; then
20910 + hardcode_libdirs="$libdir"
20911 + else
20912 + # Just accumulate the unique libdirs.
20913 + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
20914 + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
20915 + ;;
20916 + *)
20917 + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
20918 + ;;
20919 + esac
20920 + fi
20921 + else
20922 + eval flag=\"$hardcode_libdir_flag_spec\"
20923 + rpath="$rpath $flag"
20924 + fi
20925 + elif test -n "$runpath_var"; then
20926 + case "$perm_rpath " in
20927 + *" $libdir "*) ;;
20928 + *) perm_rpath="$perm_rpath $libdir" ;;
20929 + esac
20930 + fi
20931 + case $host in
20932 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
20933 + case :$dllsearchpath: in
20934 + *":$libdir:"*) ;;
20935 + *) dllsearchpath="$dllsearchpath:$libdir";;
20936 + esac
20937 + ;;
20938 + esac
20939 + done
20940 + # Substitute the hardcoded libdirs into the rpath.
20941 + if test -n "$hardcode_libdir_separator" &&
20942 + test -n "$hardcode_libdirs"; then
20943 + libdir="$hardcode_libdirs"
20944 + eval rpath=\" $hardcode_libdir_flag_spec\"
20945 + fi
20946 + compile_rpath="$rpath"
20948 + rpath=
20949 + hardcode_libdirs=
20950 + for libdir in $finalize_rpath; do
20951 + if test -n "$hardcode_libdir_flag_spec"; then
20952 + if test -n "$hardcode_libdir_separator"; then
20953 + if test -z "$hardcode_libdirs"; then
20954 + hardcode_libdirs="$libdir"
20955 + else
20956 + # Just accumulate the unique libdirs.
20957 + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
20958 + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
20959 + ;;
20960 + *)
20961 + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
20962 + ;;
20963 + esac
20964 + fi
20965 + else
20966 + eval flag=\"$hardcode_libdir_flag_spec\"
20967 + rpath="$rpath $flag"
20968 + fi
20969 + elif test -n "$runpath_var"; then
20970 + case "$finalize_perm_rpath " in
20971 + *" $libdir "*) ;;
20972 + *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
20973 + esac
20974 + fi
20975 + done
20976 + # Substitute the hardcoded libdirs into the rpath.
20977 + if test -n "$hardcode_libdir_separator" &&
20978 + test -n "$hardcode_libdirs"; then
20979 + libdir="$hardcode_libdirs"
20980 + eval rpath=\" $hardcode_libdir_flag_spec\"
20981 + fi
20982 + finalize_rpath="$rpath"
20984 + if test -n "$libobjs" && test "$build_old_libs" = yes; then
20985 + # Transform all the library objects into standard objects.
20986 + compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
20987 + finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
20988 + fi
20990 + dlsyms=
20991 + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
20992 + if test -n "$NM" && test -n "$global_symbol_pipe"; then
20993 + dlsyms="${outputname}S.c"
20994 + else
20995 + $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2
20996 + fi
20997 + fi
20999 + if test -n "$dlsyms"; then
21000 + case $dlsyms in
21001 + "") ;;
21002 + *.c)
21003 + # Discover the nlist of each of the dlfiles.
21004 + nlist="$output_objdir/${outputname}.nm"
21006 + $show "$rm $nlist ${nlist}S ${nlist}T"
21007 + $run $rm "$nlist" "${nlist}S" "${nlist}T"
21009 + # Parse the name list into a source file.
21010 + $show "creating $output_objdir/$dlsyms"
21012 + test -z "$run" && $echo > "$output_objdir/$dlsyms" "\
21013 +/* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */
21014 +/* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */
21016 +#ifdef __cplusplus
21017 +extern \"C\" {
21018 +#endif
21020 +/* Prevent the only kind of declaration conflicts we can make. */
21021 +#define lt_preloaded_symbols some_other_symbol
21023 +/* External symbol declarations for the compiler. */\
21024 +"
21026 + if test "$dlself" = yes; then
21027 + $show "generating symbol list for \`$output'"
21029 + test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
21031 + # Add our own program objects to the symbol list.
21032 + progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
21033 + for arg in $progfiles; do
21034 + $show "extracting global C symbols from \`$arg'"
21035 + $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
21036 + done
21038 + if test -n "$exclude_expsyms"; then
21039 + $run eval 'egrep -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
21040 + $run eval '$mv "$nlist"T "$nlist"'
21041 + fi
21043 + if test -n "$export_symbols_regex"; then
21044 + $run eval 'egrep -e "$export_symbols_regex" "$nlist" > "$nlist"T'
21045 + $run eval '$mv "$nlist"T "$nlist"'
21046 + fi
21048 + # Prepare the list of exported symbols
21049 + if test -z "$export_symbols"; then
21050 + export_symbols="$output_objdir/$output.exp"
21051 + $run $rm $export_symbols
21052 + $run eval "sed -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
21053 + else
21054 + $run eval "sed -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"'
21055 + $run eval 'grep -f "$output_objdir/$output.exp" < "$nlist" > "$nlist"T'
21056 + $run eval 'mv "$nlist"T "$nlist"'
21057 + fi
21058 + fi
21060 + for arg in $dlprefiles; do
21061 + $show "extracting global C symbols from \`$arg'"
21062 + name=`echo "$arg" | sed -e 's%^.*/%%'`
21063 + $run eval 'echo ": $name " >> "$nlist"'
21064 + $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
21065 + done
21067 + if test -z "$run"; then
21068 + # Make sure we have at least an empty file.
21069 + test -f "$nlist" || : > "$nlist"
21071 + if test -n "$exclude_expsyms"; then
21072 + egrep -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
21073 + $mv "$nlist"T "$nlist"
21074 + fi
21076 + # Try sorting and uniquifying the output.
21077 + if grep -v "^: " < "$nlist" | sort +2 | uniq > "$nlist"S; then
21078 + :
21079 + else
21080 + grep -v "^: " < "$nlist" > "$nlist"S
21081 + fi
21083 + if test -f "$nlist"S; then
21084 + eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
21085 + else
21086 + echo '/* NONE */' >> "$output_objdir/$dlsyms"
21087 + fi
21089 + $echo >> "$output_objdir/$dlsyms" "\
21091 +#undef lt_preloaded_symbols
21093 +#if defined (__STDC__) && __STDC__
21094 +# define lt_ptr_t void *
21095 +#else
21096 +# define lt_ptr_t char *
21097 +# define const
21098 +#endif
21100 +/* The mapping between symbol names and symbols. */
21101 +const struct {
21102 + const char *name;
21103 + lt_ptr_t address;
21104 +}
21105 +lt_preloaded_symbols[] =
21106 +{\
21107 +"
21109 + sed -n -e 's/^: \([^ ]*\) $/ {\"\1\", (lt_ptr_t) 0},/p' \
21110 + -e 's/^. \([^ ]*\) \([^ ]*\)$/ {"\2", (lt_ptr_t) \&\2},/p' \
21111 + < "$nlist" >> "$output_objdir/$dlsyms"
21113 + $echo >> "$output_objdir/$dlsyms" "\
21114 + {0, (lt_ptr_t) 0}
21115 +};
21117 +/* This works around a problem in FreeBSD linker */
21118 +#ifdef FREEBSD_WORKAROUND
21119 +static const void *lt_preloaded_setup() {
21120 + return lt_preloaded_symbols;
21121 +}
21122 +#endif
21124 +#ifdef __cplusplus
21125 +}
21126 +#endif\
21127 +"
21128 + fi
21130 + pic_flag_for_symtable=
21131 + case $host in
21132 + # compiling the symbol table file with pic_flag works around
21133 + # a FreeBSD bug that causes programs to crash when -lm is
21134 + # linked before any other PIC object. But we must not use
21135 + # pic_flag when linking with -static. The problem exists in
21136 + # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
21137 + *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
21138 + case "$compile_command " in
21139 + *" -static "*) ;;
21140 + *) pic_flag_for_symtable=" $pic_flag -DPIC -DFREEBSD_WORKAROUND";;
21141 + esac;;
21142 + *-*-hpux*)
21143 + case "$compile_command " in
21144 + *" -static "*) ;;
21145 + *) pic_flag_for_symtable=" $pic_flag -DPIC";;
21146 + esac
21147 + esac
21149 + # Now compile the dynamic symbol file.
21150 + $show "(cd $output_objdir && $CC -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
21151 + $run eval '(cd $output_objdir && $CC -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
21153 + # Clean up the generated files.
21154 + $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
21155 + $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
21157 + # Transform the symbol file into the correct name.
21158 + compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
21159 + finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
21160 + ;;
21161 + *)
21162 + $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
21163 + exit 1
21164 + ;;
21165 + esac
21166 + else
21167 + # We keep going just in case the user didn't refer to
21168 + # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
21169 + # really was required.
21171 + # Nullify the symbol file.
21172 + compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
21173 + finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
21174 + fi
21176 + if test $need_relink = no || test "$build_libtool_libs" != yes; then
21177 + # Replace the output file specification.
21178 + compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
21179 + link_command="$compile_command$compile_rpath"
21181 + # We have no uninstalled library dependencies, so finalize right now.
21182 + $show "$link_command"
21183 + $run eval "$link_command"
21184 + status=$?
21186 + # Delete the generated files.
21187 + if test -n "$dlsyms"; then
21188 + $show "$rm $output_objdir/${outputname}S.${objext}"
21189 + $run $rm "$output_objdir/${outputname}S.${objext}"
21190 + fi
21192 + exit $status
21193 + fi
21195 + if test -n "$shlibpath_var"; then
21196 + # We should set the shlibpath_var
21197 + rpath=
21198 + for dir in $temp_rpath; do
21199 + case $dir in
21200 + [\\/]* | [A-Za-z]:[\\/]*)
21201 + # Absolute path.
21202 + rpath="$rpath$dir:"
21203 + ;;
21204 + *)
21205 + # Relative path: add a thisdir entry.
21206 + rpath="$rpath\$thisdir/$dir:"
21207 + ;;
21208 + esac
21209 + done
21210 + temp_rpath="$rpath"
21211 + fi
21213 + if test -n "$compile_shlibpath$finalize_shlibpath"; then
21214 + compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
21215 + fi
21216 + if test -n "$finalize_shlibpath"; then
21217 + finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
21218 + fi
21220 + compile_var=
21221 + finalize_var=
21222 + if test -n "$runpath_var"; then
21223 + if test -n "$perm_rpath"; then
21224 + # We should set the runpath_var.
21225 + rpath=
21226 + for dir in $perm_rpath; do
21227 + rpath="$rpath$dir:"
21228 + done
21229 + compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
21230 + fi
21231 + if test -n "$finalize_perm_rpath"; then
21232 + # We should set the runpath_var.
21233 + rpath=
21234 + for dir in $finalize_perm_rpath; do
21235 + rpath="$rpath$dir:"
21236 + done
21237 + finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
21238 + fi
21239 + fi
21241 + if test "$no_install" = yes; then
21242 + # We don't need to create a wrapper script.
21243 + link_command="$compile_var$compile_command$compile_rpath"
21244 + # Replace the output file specification.
21245 + link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
21246 + # Delete the old output file.
21247 + $run $rm $output
21248 + # Link the executable and exit
21249 + $show "$link_command"
21250 + $run eval "$link_command" || exit $?
21251 + exit 0
21252 + fi
21254 + if test "$hardcode_action" = relink; then
21255 + # Fast installation is not supported
21256 + link_command="$compile_var$compile_command$compile_rpath"
21257 + relink_command="$finalize_var$finalize_command$finalize_rpath"
21259 + $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
21260 + $echo "$modename: \`$output' will be relinked during installation" 1>&2
21261 + else
21262 + if test "$fast_install" != no; then
21263 + link_command="$finalize_var$compile_command$finalize_rpath"
21264 + if test "$fast_install" = yes; then
21265 + relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
21266 + else
21267 + # fast_install is set to needless
21268 + relink_command=
21269 + fi
21270 + else
21271 + link_command="$compile_var$compile_command$compile_rpath"
21272 + relink_command="$finalize_var$finalize_command$finalize_rpath"
21273 + fi
21274 + fi
21276 + # Replace the output file specification.
21277 + link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
21279 + # Delete the old output files.
21280 + $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
21282 + $show "$link_command"
21283 + $run eval "$link_command" || exit $?
21285 + # Now create the wrapper script.
21286 + $show "creating $output"
21288 + # Quote the relink command for shipping.
21289 + if test -n "$relink_command"; then
21290 + # Preserve any variables that may affect compiler behavior
21291 + for var in $variables_saved_for_relink; do
21292 + if eval test -z \"\${$var+set}\"; then
21293 + relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
21294 + elif eval var_value=\$$var; test -z "$var_value"; then
21295 + relink_command="$var=; export $var; $relink_command"
21296 + else
21297 + var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
21298 + relink_command="$var=\"$var_value\"; export $var; $relink_command"
21299 + fi
21300 + done
21301 + relink_command="cd `pwd`; $relink_command"
21302 + relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
21303 + fi
21305 + # Quote $echo for shipping.
21306 + if test "X$echo" = "X$SHELL $0 --fallback-echo"; then
21307 + case $0 in
21308 + [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $0 --fallback-echo";;
21309 + *) qecho="$SHELL `pwd`/$0 --fallback-echo";;
21310 + esac
21311 + qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
21312 + else
21313 + qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"`
21314 + fi
21316 + # Only actually do things if our run command is non-null.
21317 + if test -z "$run"; then
21318 + # win32 will think the script is a binary if it has
21319 + # a .exe suffix, so we strip it off here.
21320 + case $output in
21321 + *.exe) output=`echo $output|sed 's,.exe$,,'` ;;
21322 + esac
21323 + # test for cygwin because mv fails w/o .exe extensions
21324 + case $host in
21325 + *cygwin*) exeext=.exe ;;
21326 + *) exeext= ;;
21327 + esac
21328 + $rm $output
21329 + trap "$rm $output; exit 1" 1 2 15
21331 + $echo > $output "\
21332 +#! $SHELL
21334 +# $output - temporary wrapper script for $objdir/$outputname
21335 +# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
21336 +#
21337 +# The $output program cannot be directly executed until all the libtool
21338 +# libraries that it depends on are installed.
21339 +#
21340 +# This wrapper script should never be moved out of the build directory.
21341 +# If it is, it will not operate correctly.
21343 +# Sed substitution that helps us do robust quoting. It backslashifies
21344 +# metacharacters that are still active within double-quoted strings.
21345 +Xsed='sed -e 1s/^X//'
21346 +sed_quote_subst='$sed_quote_subst'
21348 +# The HP-UX ksh and POSIX shell print the target directory to stdout
21349 +# if CDPATH is set.
21350 +if test \"\${CDPATH+set}\" = set; then CDPATH=:; export CDPATH; fi
21352 +relink_command=\"$relink_command\"
21354 +# This environment variable determines our operation mode.
21355 +if test \"\$libtool_install_magic\" = \"$magic\"; then
21356 + # install mode needs the following variable:
21357 + notinst_deplibs='$notinst_deplibs'
21358 +else
21359 + # When we are sourced in execute mode, \$file and \$echo are already set.
21360 + if test \"\$libtool_execute_magic\" != \"$magic\"; then
21361 + echo=\"$qecho\"
21362 + file=\"\$0\"
21363 + # Make sure echo works.
21364 + if test \"X\$1\" = X--no-reexec; then
21365 + # Discard the --no-reexec flag, and continue.
21366 + shift
21367 + elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then
21368 + # Yippee, \$echo works!
21369 + :
21370 + else
21371 + # Restart under the correct shell, and then maybe \$echo will work.
21372 + exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
21373 + fi
21374 + fi\
21375 +"
21376 + $echo >> $output "\
21378 + # Find the directory that this script lives in.
21379 + thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
21380 + test \"x\$thisdir\" = \"x\$file\" && thisdir=.
21382 + # Follow symbolic links until we get to the real thisdir.
21383 + file=\`ls -ld \"\$file\" | sed -n 's/.*-> //p'\`
21384 + while test -n \"\$file\"; do
21385 + destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
21387 + # If there was a directory component, then change thisdir.
21388 + if test \"x\$destdir\" != \"x\$file\"; then
21389 + case \"\$destdir\" in
21390 + [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
21391 + *) thisdir=\"\$thisdir/\$destdir\" ;;
21392 + esac
21393 + fi
21395 + file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
21396 + file=\`ls -ld \"\$thisdir/\$file\" | sed -n 's/.*-> //p'\`
21397 + done
21399 + # Try to get the absolute directory name.
21400 + absdir=\`cd \"\$thisdir\" && pwd\`
21401 + test -n \"\$absdir\" && thisdir=\"\$absdir\"
21402 +"
21404 + if test "$fast_install" = yes; then
21405 + echo >> $output "\
21406 + program=lt-'$outputname'$exeext
21407 + progdir=\"\$thisdir/$objdir\"
21409 + if test ! -f \"\$progdir/\$program\" || \\
21410 + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | sed 1q\`; \\
21411 + test \"X\$file\" != \"X\$progdir/\$program\"; }; then
21413 + file=\"\$\$-\$program\"
21415 + if test ! -d \"\$progdir\"; then
21416 + $mkdir \"\$progdir\"
21417 + else
21418 + $rm \"\$progdir/\$file\"
21419 + fi"
21421 + echo >> $output "\
21423 + # relink executable if necessary
21424 + if test -n \"\$relink_command\"; then
21425 + if (eval \$relink_command); then :
21426 + else
21427 + $rm \"\$progdir/\$file\"
21428 + exit 1
21429 + fi
21430 + fi
21432 + $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
21433 + { $rm \"\$progdir/\$program\";
21434 + $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; }
21435 + $rm \"\$progdir/\$file\"
21436 + fi"
21437 + else
21438 + echo >> $output "\
21439 + program='$outputname'
21440 + progdir=\"\$thisdir/$objdir\"
21441 +"
21442 + fi
21444 + echo >> $output "\
21446 + if test -f \"\$progdir/\$program\"; then"
21448 + # Export our shlibpath_var if we have one.
21449 + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
21450 + $echo >> $output "\
21451 + # Add our own library path to $shlibpath_var
21452 + $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
21454 + # Some systems cannot cope with colon-terminated $shlibpath_var
21455 + # The second colon is a workaround for a bug in BeOS R4 sed
21456 + $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
21458 + export $shlibpath_var
21459 +"
21460 + fi
21462 + # fixup the dll searchpath if we need to.
21463 + if test -n "$dllsearchpath"; then
21464 + $echo >> $output "\
21465 + # Add the dll search path components to the executable PATH
21466 + PATH=$dllsearchpath:\$PATH
21467 +"
21468 + fi
21470 + $echo >> $output "\
21471 + if test \"\$libtool_execute_magic\" != \"$magic\"; then
21472 + # Run the actual program with our arguments.
21473 +"
21474 + case $host in
21475 + # win32 systems need to use the prog path for dll
21476 + # lookup to work
21477 + *-*-cygwin* | *-*-pw32*)
21478 + $echo >> $output "\
21479 + exec \$progdir/\$program \${1+\"\$@\"}
21480 +"
21481 + ;;
21483 + # Backslashes separate directories on plain windows
21484 + *-*-mingw | *-*-os2*)
21485 + $echo >> $output "\
21486 + exec \$progdir\\\\\$program \${1+\"\$@\"}
21487 +"
21488 + ;;
21490 + *)
21491 + $echo >> $output "\
21492 + # Export the path to the program.
21493 + PATH=\"\$progdir:\$PATH\"
21494 + export PATH
21496 + exec \$program \${1+\"\$@\"}
21497 +"
21498 + ;;
21499 + esac
21500 + $echo >> $output "\
21501 + \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\"
21502 + exit 1
21503 + fi
21504 + else
21505 + # The program doesn't exist.
21506 + \$echo \"\$0: error: \$progdir/\$program does not exist\" 1>&2
21507 + \$echo \"This script is just a wrapper for \$program.\" 1>&2
21508 + echo \"See the $PACKAGE documentation for more information.\" 1>&2
21509 + exit 1
21510 + fi
21511 +fi\
21512 +"
21513 + chmod +x $output
21514 + fi
21515 + exit 0
21516 + ;;
21517 + esac
21519 + # See if we need to build an old-fashioned archive.
21520 + for oldlib in $oldlibs; do
21522 + if test "$build_libtool_libs" = convenience; then
21523 + oldobjs="$libobjs_save"
21524 + addlibs="$convenience"
21525 + build_libtool_libs=no
21526 + else
21527 + if test "$build_libtool_libs" = module; then
21528 + oldobjs="$libobjs_save"
21529 + build_libtool_libs=no
21530 + else
21531 + oldobjs="$objs$old_deplibs "`$echo "X$libobjs_save" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`
21532 + fi
21533 + addlibs="$old_convenience"
21534 + fi
21536 + if test -n "$addlibs"; then
21537 + gentop="$output_objdir/${outputname}x"
21538 + $show "${rm}r $gentop"
21539 + $run ${rm}r "$gentop"
21540 + $show "mkdir $gentop"
21541 + $run mkdir "$gentop"
21542 + status=$?
21543 + if test $status -ne 0 && test ! -d "$gentop"; then
21544 + exit $status
21545 + fi
21546 + generated="$generated $gentop"
21548 + # Add in members from convenience archives.
21549 + for xlib in $addlibs; do
21550 + # Extract the objects.
21551 + case $xlib in
21552 + [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
21553 + *) xabs=`pwd`"/$xlib" ;;
21554 + esac
21555 + xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
21556 + xdir="$gentop/$xlib"
21558 + $show "${rm}r $xdir"
21559 + $run ${rm}r "$xdir"
21560 + $show "mkdir $xdir"
21561 + $run mkdir "$xdir"
21562 + status=$?
21563 + if test $status -ne 0 && test ! -d "$xdir"; then
21564 + exit $status
21565 + fi
21566 + $show "(cd $xdir && $AR x $xabs)"
21567 + $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
21569 + oldobjs="$oldobjs "`find $xdir -name \*.${objext} -print -o -name \*.lo -print | $NL2SP`
21570 + done
21571 + fi
21573 + # Do each command in the archive commands.
21574 + if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
21575 + eval cmds=\"$old_archive_from_new_cmds\"
21576 + else
21577 + # Ensure that we have .o objects in place in case we decided
21578 + # not to build a shared library, and have fallen back to building
21579 + # static libs even though --disable-static was passed!
21580 + for oldobj in $oldobjs; do
21581 + if test ! -f $oldobj; then
21582 + xdir=`$echo "X$oldobj" | $Xsed -e 's%/[^/]*$%%'`
21583 + if test "X$xdir" = "X$oldobj"; then
21584 + xdir="."
21585 + else
21586 + xdir="$xdir"
21587 + fi
21588 + baseobj=`$echo "X$oldobj" | $Xsed -e 's%^.*/%%'`
21589 + obj=`$echo "X$baseobj" | $Xsed -e "$o2lo"`
21590 + $show "(cd $xdir && ${LN_S} $obj $baseobj)"
21591 + $run eval '(cd $xdir && ${LN_S} $obj $baseobj)' || exit $?
21592 + fi
21593 + done
21595 + eval cmds=\"$old_archive_cmds\"
21596 + fi
21597 + IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
21598 + for cmd in $cmds; do
21599 + IFS="$save_ifs"
21600 + $show "$cmd"
21601 + $run eval "$cmd" || exit $?
21602 + done
21603 + IFS="$save_ifs"
21604 + done
21606 + if test -n "$generated"; then
21607 + $show "${rm}r$generated"
21608 + $run ${rm}r$generated
21609 + fi
21611 + # Now create the libtool archive.
21612 + case $output in
21613 + *.la)
21614 + old_library=
21615 + test "$build_old_libs" = yes && old_library="$libname.$libext"
21616 + $show "creating $output"
21618 + # Preserve any variables that may affect compiler behavior
21619 + for var in $variables_saved_for_relink; do
21620 + if eval test -z \"\${$var+set}\"; then
21621 + relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
21622 + elif eval var_value=\$$var; test -z "$var_value"; then
21623 + relink_command="$var=; export $var; $relink_command"
21624 + else
21625 + var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
21626 + relink_command="$var=\"$var_value\"; export $var; $relink_command"
21627 + fi
21628 + done
21629 + # Quote the link command for shipping.
21630 + relink_command="cd `pwd`; $SHELL $0 --mode=relink $libtool_args"
21631 + relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
21633 + # Only create the output if not a dry run.
21634 + if test -z "$run"; then
21635 + for installed in no yes; do
21636 + if test "$installed" = yes; then
21637 + if test -z "$install_libdir"; then
21638 + break
21639 + fi
21640 + output="$output_objdir/$outputname"i
21641 + # Replace all uninstalled libtool libraries with the installed ones
21642 + newdependency_libs=
21643 + for deplib in $dependency_libs; do
21644 + case $deplib in
21645 + *.la)
21646 + name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
21647 + eval libdir=`sed -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
21648 + if test -z "$libdir"; then
21649 + $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
21650 + exit 1
21651 + fi
21652 + newdependency_libs="$newdependency_libs $libdir/$name"
21653 + ;;
21654 + *) newdependency_libs="$newdependency_libs $deplib" ;;
21655 + esac
21656 + done
21657 + dependency_libs="$newdependency_libs"
21658 + newdlfiles=
21659 + for lib in $dlfiles; do
21660 + name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
21661 + eval libdir=`sed -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
21662 + if test -z "$libdir"; then
21663 + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
21664 + exit 1
21665 + fi
21666 + newdlfiles="$newdlfiles $libdir/$name"
21667 + done
21668 + dlfiles="$newdlfiles"
21669 + newdlprefiles=
21670 + for lib in $dlprefiles; do
21671 + name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
21672 + eval libdir=`sed -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
21673 + if test -z "$libdir"; then
21674 + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
21675 + exit 1
21676 + fi
21677 + newdlprefiles="$newdlprefiles $libdir/$name"
21678 + done
21679 + dlprefiles="$newdlprefiles"
21680 + fi
21681 + $rm $output
21682 + # place dlname in correct position for cygwin
21683 + tdlname=$dlname
21684 + case $host,$output,$installed,$module,$dlname in
21685 + *cygwin*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
21686 + esac
21687 + $echo > $output "\
21688 +# $outputname - a libtool library file
21689 +# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
21690 +#
21691 +# Please DO NOT delete this file!
21692 +# It is necessary for linking the library.
21694 +# The name that we can dlopen(3).
21695 +dlname='$tdlname'
21697 +# Names of this library.
21698 +library_names='$library_names'
21700 +# The name of the static archive.
21701 +old_library='$old_library'
21703 +# Libraries that this one depends upon.
21704 +dependency_libs='$dependency_libs'
21706 +# Version information for $libname.
21707 +current=$current
21708 +age=$age
21709 +revision=$revision
21711 +# Is this an already installed library?
21712 +installed=$installed
21714 +# Files to dlopen/dlpreopen
21715 +dlopen='$dlfiles'
21716 +dlpreopen='$dlprefiles'
21718 +# Directory that this library needs to be installed in:
21719 +libdir='$install_libdir'"
21720 + if test "$installed" = no && test $need_relink = yes; then
21721 + $echo >> $output "\
21722 +relink_command=\"$relink_command\""
21723 + fi
21724 + done
21725 + fi
21727 + # Do a symbolic link so that the libtool archive can be found in
21728 + # LD_LIBRARY_PATH before the program is installed.
21729 + $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
21730 + $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
21731 + ;;
21732 + esac
21733 + exit 0
21734 + ;;
21736 + # libtool install mode
21737 + install)
21738 + modename="$modename: install"
21740 + # There may be an optional sh(1) argument at the beginning of
21741 + # install_prog (especially on Windows NT).
21742 + if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
21743 + # Allow the use of GNU shtool's install command.
21744 + $echo "X$nonopt" | $Xsed | grep shtool > /dev/null; then
21745 + # Aesthetically quote it.
21746 + arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
21747 + case $arg in
21748 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
21749 + arg="\"$arg\""
21750 + ;;
21751 + esac
21752 + install_prog="$arg "
21753 + arg="$1"
21754 + shift
21755 + else
21756 + install_prog=
21757 + arg="$nonopt"
21758 + fi
21760 + # The real first argument should be the name of the installation program.
21761 + # Aesthetically quote it.
21762 + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
21763 + case $arg in
21764 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
21765 + arg="\"$arg\""
21766 + ;;
21767 + esac
21768 + install_prog="$install_prog$arg"
21770 + # We need to accept at least all the BSD install flags.
21771 + dest=
21772 + files=
21773 + opts=
21774 + prev=
21775 + install_type=
21776 + isdir=no
21777 + stripme=
21778 + for arg
21779 + do
21780 + if test -n "$dest"; then
21781 + files="$files $dest"
21782 + dest="$arg"
21783 + continue
21784 + fi
21786 + case $arg in
21787 + -d) isdir=yes ;;
21788 + -f) prev="-f" ;;
21789 + -g) prev="-g" ;;
21790 + -m) prev="-m" ;;
21791 + -o) prev="-o" ;;
21792 + -s)
21793 + stripme=" -s"
21794 + continue
21795 + ;;
21796 + -*) ;;
21798 + *)
21799 + # If the previous option needed an argument, then skip it.
21800 + if test -n "$prev"; then
21801 + prev=
21802 + else
21803 + dest="$arg"
21804 + continue
21805 + fi
21806 + ;;
21807 + esac
21809 + # Aesthetically quote the argument.
21810 + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
21811 + case $arg in
21812 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
21813 + arg="\"$arg\""
21814 + ;;
21815 + esac
21816 + install_prog="$install_prog $arg"
21817 + done
21819 + if test -z "$install_prog"; then
21820 + $echo "$modename: you must specify an install program" 1>&2
21821 + $echo "$help" 1>&2
21822 + exit 1
21823 + fi
21825 + if test -n "$prev"; then
21826 + $echo "$modename: the \`$prev' option requires an argument" 1>&2
21827 + $echo "$help" 1>&2
21828 + exit 1
21829 + fi
21831 + if test -z "$files"; then
21832 + if test -z "$dest"; then
21833 + $echo "$modename: no file or destination specified" 1>&2
21834 + else
21835 + $echo "$modename: you must specify a destination" 1>&2
21836 + fi
21837 + $echo "$help" 1>&2
21838 + exit 1
21839 + fi
21841 + # Strip any trailing slash from the destination.
21842 + dest=`$echo "X$dest" | $Xsed -e 's%/$%%'`
21844 + # Check to see that the destination is a directory.
21845 + test -d "$dest" && isdir=yes
21846 + if test "$isdir" = yes; then
21847 + destdir="$dest"
21848 + destname=
21849 + else
21850 + destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'`
21851 + test "X$destdir" = "X$dest" && destdir=.
21852 + destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'`
21854 + # Not a directory, so check to see that there is only one file specified.
21855 + set dummy $files
21856 + if test $# -gt 2; then
21857 + $echo "$modename: \`$dest' is not a directory" 1>&2
21858 + $echo "$help" 1>&2
21859 + exit 1
21860 + fi
21861 + fi
21862 + case $destdir in
21863 + [\\/]* | [A-Za-z]:[\\/]*) ;;
21864 + *)
21865 + for file in $files; do
21866 + case $file in
21867 + *.lo) ;;
21868 + *)
21869 + $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
21870 + $echo "$help" 1>&2
21871 + exit 1
21872 + ;;
21873 + esac
21874 + done
21875 + ;;
21876 + esac
21878 + # This variable tells wrapper scripts just to set variables rather
21879 + # than running their programs.
21880 + libtool_install_magic="$magic"
21882 + staticlibs=
21883 + future_libdirs=
21884 + current_libdirs=
21885 + for file in $files; do
21887 + # Do each installation.
21888 + case $file in
21889 + *.$libext)
21890 + # Do the static libraries later.
21891 + staticlibs="$staticlibs $file"
21892 + ;;
21894 + *.la)
21895 + # Check to see that this really is a libtool archive.
21896 + if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
21897 + else
21898 + $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
21899 + $echo "$help" 1>&2
21900 + exit 1
21901 + fi
21903 + library_names=
21904 + old_library=
21905 + relink_command=
21906 + # If there is no directory component, then add one.
21907 + case $file in
21908 + */* | *\\*) . $file ;;
21909 + *) . ./$file ;;
21910 + esac
21912 + # Add the libdir to current_libdirs if it is the destination.
21913 + if test "X$destdir" = "X$libdir"; then
21914 + case "$current_libdirs " in
21915 + *" $libdir "*) ;;
21916 + *) current_libdirs="$current_libdirs $libdir" ;;
21917 + esac
21918 + else
21919 + # Note the libdir as a future libdir.
21920 + case "$future_libdirs " in
21921 + *" $libdir "*) ;;
21922 + *) future_libdirs="$future_libdirs $libdir" ;;
21923 + esac
21924 + fi
21926 + dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/
21927 + test "X$dir" = "X$file/" && dir=
21928 + dir="$dir$objdir"
21930 + if test -n "$relink_command"; then
21931 + $echo "$modename: warning: relinking \`$file'" 1>&2
21932 + $show "$relink_command"
21933 + if $run eval "$relink_command"; then :
21934 + else
21935 + $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
21936 + continue
21937 + fi
21938 + fi
21940 + # See the names of the shared library.
21941 + set dummy $library_names
21942 + if test -n "$2"; then
21943 + realname="$2"
21944 + shift
21945 + shift
21947 + srcname="$realname"
21948 + test -n "$relink_command" && srcname="$realname"T
21950 + # Install the shared library and build the symlinks.
21951 + $show "$install_prog $dir/$srcname $destdir/$realname"
21952 + $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $?
21953 + if test -n "$stripme" && test -n "$striplib"; then
21954 + $show "$striplib $destdir/$realname"
21955 + $run eval "$striplib $destdir/$realname" || exit $?
21956 + fi
21958 + if test $# -gt 0; then
21959 + # Delete the old symlinks, and create new ones.
21960 + for linkname
21961 + do
21962 + if test "$linkname" != "$realname"; then
21963 + $show "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
21964 + $run eval "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
21965 + fi
21966 + done
21967 + fi
21969 + # Do each command in the postinstall commands.
21970 + lib="$destdir/$realname"
21971 + eval cmds=\"$postinstall_cmds\"
21972 + IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
21973 + for cmd in $cmds; do
21974 + IFS="$save_ifs"
21975 + $show "$cmd"
21976 + $run eval "$cmd" || exit $?
21977 + done
21978 + IFS="$save_ifs"
21979 + fi
21981 + # Install the pseudo-library for information purposes.
21982 + name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
21983 + instname="$dir/$name"i
21984 + $show "$install_prog $instname $destdir/$name"
21985 + $run eval "$install_prog $instname $destdir/$name" || exit $?
21987 + # Maybe install the static library, too.
21988 + test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
21989 + ;;
21991 + *.lo)
21992 + # Install (i.e. copy) a libtool object.
21994 + # Figure out destination file name, if it wasn't already specified.
21995 + if test -n "$destname"; then
21996 + destfile="$destdir/$destname"
21997 + else
21998 + destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
21999 + destfile="$destdir/$destfile"
22000 + fi
22002 + # Deduce the name of the destination old-style object file.
22003 + case $destfile in
22004 + *.lo)
22005 + staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
22006 + ;;
22007 + *.$objext)
22008 + staticdest="$destfile"
22009 + destfile=
22010 + ;;
22011 + *)
22012 + $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
22013 + $echo "$help" 1>&2
22014 + exit 1
22015 + ;;
22016 + esac
22018 + # Install the libtool object if requested.
22019 + if test -n "$destfile"; then
22020 + $show "$install_prog $file $destfile"
22021 + $run eval "$install_prog $file $destfile" || exit $?
22022 + fi
22024 + # Install the old object if enabled.
22025 + if test "$build_old_libs" = yes; then
22026 + # Deduce the name of the old-style object file.
22027 + staticobj=`$echo "X$file" | $Xsed -e "$lo2o"`
22029 + $show "$install_prog $staticobj $staticdest"
22030 + $run eval "$install_prog \$staticobj \$staticdest" || exit $?
22031 + fi
22032 + exit 0
22033 + ;;
22035 + *)
22036 + # Figure out destination file name, if it wasn't already specified.
22037 + if test -n "$destname"; then
22038 + destfile="$destdir/$destname"
22039 + else
22040 + destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
22041 + destfile="$destdir/$destfile"
22042 + fi
22044 + # Do a test to see if this is really a libtool program.
22045 + if (sed -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
22046 + notinst_deplibs=
22047 + relink_command=
22049 + # If there is no directory component, then add one.
22050 + case $file in
22051 + */* | *\\*) . $file ;;
22052 + *) . ./$file ;;
22053 + esac
22055 + # Check the variables that should have been set.
22056 + if test -z "$notinst_deplibs"; then
22057 + $echo "$modename: invalid libtool wrapper script \`$file'" 1>&2
22058 + exit 1
22059 + fi
22061 + finalize=yes
22062 + for lib in $notinst_deplibs; do
22063 + # Check to see that each library is installed.
22064 + libdir=
22065 + if test -f "$lib"; then
22066 + # If there is no directory component, then add one.
22067 + case $lib in
22068 + */* | *\\*) . $lib ;;
22069 + *) . ./$lib ;;
22070 + esac
22071 + fi
22072 + libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
22073 + if test -n "$libdir" && test ! -f "$libfile"; then
22074 + $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
22075 + finalize=no
22076 + fi
22077 + done
22079 + relink_command=
22080 + # If there is no directory component, then add one.
22081 + case $file in
22082 + */* | *\\*) . $file ;;
22083 + *) . ./$file ;;
22084 + esac
22086 + outputname=
22087 + if test "$fast_install" = no && test -n "$relink_command"; then
22088 + if test "$finalize" = yes && test -z "$run"; then
22089 + tmpdir="/tmp"
22090 + test -n "$TMPDIR" && tmpdir="$TMPDIR"
22091 + tmpdir="$tmpdir/libtool-$$"
22092 + if $mkdir -p "$tmpdir" && chmod 700 "$tmpdir"; then :
22093 + else
22094 + $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2
22095 + continue
22096 + fi
22097 + file=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
22098 + outputname="$tmpdir/$file"
22099 + # Replace the output file specification.
22100 + relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
22102 + $show "$relink_command"
22103 + if $run eval "$relink_command"; then :
22104 + else
22105 + $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
22106 + ${rm}r "$tmpdir"
22107 + continue
22108 + fi
22109 + file="$outputname"
22110 + else
22111 + $echo "$modename: warning: cannot relink \`$file'" 1>&2
22112 + fi
22113 + else
22114 + # Install the binary that we compiled earlier.
22115 + file=`$echo "X$file" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
22116 + fi
22117 + fi
22119 + # remove .exe since cygwin /usr/bin/install will append another
22120 + # one anyways
22121 + case $install_prog,$host in
22122 + /usr/bin/install*,*cygwin*)
22123 + case $file:$destfile in
22124 + *.exe:*.exe)
22125 + # this is ok
22126 + ;;
22127 + *.exe:*)
22128 + destfile=$destfile.exe
22129 + ;;
22130 + *:*.exe)
22131 + destfile=`echo $destfile | sed -e 's,.exe$,,'`
22132 + ;;
22133 + esac
22134 + ;;
22135 + esac
22136 + $show "$install_prog$stripme $file $destfile"
22137 + $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
22138 + test -n "$outputname" && ${rm}r "$tmpdir"
22139 + ;;
22140 + esac
22141 + done
22143 + for file in $staticlibs; do
22144 + name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
22146 + # Set up the ranlib parameters.
22147 + oldlib="$destdir/$name"
22149 + $show "$install_prog $file $oldlib"
22150 + $run eval "$install_prog \$file \$oldlib" || exit $?
22152 + if test -n "$stripme" && test -n "$striplib"; then
22153 + $show "$old_striplib $oldlib"
22154 + $run eval "$old_striplib $oldlib" || exit $?
22155 + fi
22157 + # Do each command in the postinstall commands.
22158 + eval cmds=\"$old_postinstall_cmds\"
22159 + IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
22160 + for cmd in $cmds; do
22161 + IFS="$save_ifs"
22162 + $show "$cmd"
22163 + $run eval "$cmd" || exit $?
22164 + done
22165 + IFS="$save_ifs"
22166 + done
22168 + if test -n "$future_libdirs"; then
22169 + $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2
22170 + fi
22172 + if test -n "$current_libdirs"; then
22173 + # Maybe just do a dry run.
22174 + test -n "$run" && current_libdirs=" -n$current_libdirs"
22175 + exec $SHELL $0 --finish$current_libdirs
22176 + exit 1
22177 + fi
22179 + exit 0
22180 + ;;
22182 + # libtool finish mode
22183 + finish)
22184 + modename="$modename: finish"
22185 + libdirs="$nonopt"
22186 + admincmds=
22188 + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
22189 + for dir
22190 + do
22191 + libdirs="$libdirs $dir"
22192 + done
22194 + for libdir in $libdirs; do
22195 + if test -n "$finish_cmds"; then
22196 + # Do each command in the finish commands.
22197 + eval cmds=\"$finish_cmds\"
22198 + IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
22199 + for cmd in $cmds; do
22200 + IFS="$save_ifs"
22201 + $show "$cmd"
22202 + $run eval "$cmd" || admincmds="$admincmds
22203 + $cmd"
22204 + done
22205 + IFS="$save_ifs"
22206 + fi
22207 + if test -n "$finish_eval"; then
22208 + # Do the single finish_eval.
22209 + eval cmds=\"$finish_eval\"
22210 + $run eval "$cmds" || admincmds="$admincmds
22211 + $cmds"
22212 + fi
22213 + done
22214 + fi
22216 + # Exit here if they wanted silent mode.
22217 + test "$show" = ":" && exit 0
22219 + echo "----------------------------------------------------------------------"
22220 + echo "Libraries have been installed in:"
22221 + for libdir in $libdirs; do
22222 + echo " $libdir"
22223 + done
22224 + echo
22225 + echo "If you ever happen to want to link against installed libraries"
22226 + echo "in a given directory, LIBDIR, you must either use libtool, and"
22227 + echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
22228 + echo "flag during linking and do at least one of the following:"
22229 + if test -n "$shlibpath_var"; then
22230 + echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
22231 + echo " during execution"
22232 + fi
22233 + if test -n "$runpath_var"; then
22234 + echo " - add LIBDIR to the \`$runpath_var' environment variable"
22235 + echo " during linking"
22236 + fi
22237 + if test -n "$hardcode_libdir_flag_spec"; then
22238 + libdir=LIBDIR
22239 + eval flag=\"$hardcode_libdir_flag_spec\"
22241 + echo " - use the \`$flag' linker flag"
22242 + fi
22243 + if test -n "$admincmds"; then
22244 + echo " - have your system administrator run these commands:$admincmds"
22245 + fi
22246 + if test -f /etc/ld.so.conf; then
22247 + echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
22248 + fi
22249 + echo
22250 + echo "See any operating system documentation about shared libraries for"
22251 + echo "more information, such as the ld(1) and ld.so(8) manual pages."
22252 + echo "----------------------------------------------------------------------"
22253 + exit 0
22254 + ;;
22256 + # libtool execute mode
22257 + execute)
22258 + modename="$modename: execute"
22260 + # The first argument is the command name.
22261 + cmd="$nonopt"
22262 + if test -z "$cmd"; then
22263 + $echo "$modename: you must specify a COMMAND" 1>&2
22264 + $echo "$help"
22265 + exit 1
22266 + fi
22268 + # Handle -dlopen flags immediately.
22269 + for file in $execute_dlfiles; do
22270 + if test ! -f "$file"; then
22271 + $echo "$modename: \`$file' is not a file" 1>&2
22272 + $echo "$help" 1>&2
22273 + exit 1
22274 + fi
22276 + dir=
22277 + case $file in
22278 + *.la)
22279 + # Check to see that this really is a libtool archive.
22280 + if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
22281 + else
22282 + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
22283 + $echo "$help" 1>&2
22284 + exit 1
22285 + fi
22287 + # Read the libtool library.
22288 + dlname=
22289 + library_names=
22291 + # If there is no directory component, then add one.
22292 + case $file in
22293 + */* | *\\*) . $file ;;
22294 + *) . ./$file ;;
22295 + esac
22297 + # Skip this library if it cannot be dlopened.
22298 + if test -z "$dlname"; then
22299 + # Warn if it was a shared library.
22300 + test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'"
22301 + continue
22302 + fi
22304 + dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
22305 + test "X$dir" = "X$file" && dir=.
22307 + if test -f "$dir/$objdir/$dlname"; then
22308 + dir="$dir/$objdir"
22309 + else
22310 + $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
22311 + exit 1
22312 + fi
22313 + ;;
22315 + *.lo)
22316 + # Just add the directory containing the .lo file.
22317 + dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
22318 + test "X$dir" = "X$file" && dir=.
22319 + ;;
22321 + *)
22322 + $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2
22323 + continue
22324 + ;;
22325 + esac
22327 + # Get the absolute pathname.
22328 + absdir=`cd "$dir" && pwd`
22329 + test -n "$absdir" && dir="$absdir"
22331 + # Now add the directory to shlibpath_var.
22332 + if eval "test -z \"\$$shlibpath_var\""; then
22333 + eval "$shlibpath_var=\"\$dir\""
22334 + else
22335 + eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
22336 + fi
22337 + done
22339 + # This variable tells wrapper scripts just to set shlibpath_var
22340 + # rather than running their programs.
22341 + libtool_execute_magic="$magic"
22343 + # Check if any of the arguments is a wrapper script.
22344 + args=
22345 + for file
22346 + do
22347 + case $file in
22348 + -*) ;;
22349 + *)
22350 + # Do a test to see if this is really a libtool program.
22351 + if (sed -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
22352 + # If there is no directory component, then add one.
22353 + case $file in
22354 + */* | *\\*) . $file ;;
22355 + *) . ./$file ;;
22356 + esac
22358 + # Transform arg to wrapped name.
22359 + file="$progdir/$program"
22360 + fi
22361 + ;;
22362 + esac
22363 + # Quote arguments (to preserve shell metacharacters).
22364 + file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"`
22365 + args="$args \"$file\""
22366 + done
22368 + if test -z "$run"; then
22369 + if test -n "$shlibpath_var"; then
22370 + # Export the shlibpath_var.
22371 + eval "export $shlibpath_var"
22372 + fi
22374 + # Restore saved enviroment variables
22375 + if test "${save_LC_ALL+set}" = set; then
22376 + LC_ALL="$save_LC_ALL"; export LC_ALL
22377 + fi
22378 + if test "${save_LANG+set}" = set; then
22379 + LANG="$save_LANG"; export LANG
22380 + fi
22382 + # Now actually exec the command.
22383 + eval "exec \$cmd$args"
22385 + $echo "$modename: cannot exec \$cmd$args"
22386 + exit 1
22387 + else
22388 + # Display what would be done.
22389 + if test -n "$shlibpath_var"; then
22390 + eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
22391 + $echo "export $shlibpath_var"
22392 + fi
22393 + $echo "$cmd$args"
22394 + exit 0
22395 + fi
22396 + ;;
22398 + # libtool clean and uninstall mode
22399 + clean | uninstall)
22400 + modename="$modename: $mode"
22401 + rm="$nonopt"
22402 + files=
22403 + rmforce=
22404 + exit_status=0
22406 + # This variable tells wrapper scripts just to set variables rather
22407 + # than running their programs.
22408 + libtool_install_magic="$magic"
22410 + for arg
22411 + do
22412 + case $arg in
22413 + -f) rm="$rm $arg"; rmforce=yes ;;
22414 + -*) rm="$rm $arg" ;;
22415 + *) files="$files $arg" ;;
22416 + esac
22417 + done
22419 + if test -z "$rm"; then
22420 + $echo "$modename: you must specify an RM program" 1>&2
22421 + $echo "$help" 1>&2
22422 + exit 1
22423 + fi
22425 + rmdirs=
22427 + for file in $files; do
22428 + dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
22429 + if test "X$dir" = "X$file"; then
22430 + dir=.
22431 + objdir="$objdir"
22432 + else
22433 + objdir="$dir/$objdir"
22434 + fi
22435 + name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
22436 + test $mode = uninstall && objdir="$dir"
22438 + # Remember objdir for removal later, being careful to avoid duplicates
22439 + if test $mode = clean; then
22440 + case " $rmdirs " in
22441 + *" $objdir "*) ;;
22442 + *) rmdirs="$rmdirs $objdir" ;;
22443 + esac
22444 + fi
22446 + # Don't error if the file doesn't exist and rm -f was used.
22447 + if (test -L "$file") >/dev/null 2>&1 \
22448 + || (test -h "$file") >/dev/null 2>&1 \
22449 + || test -f "$file"; then
22450 + :
22451 + elif test -d "$file"; then
22452 + exit_status=1
22453 + continue
22454 + elif test "$rmforce" = yes; then
22455 + continue
22456 + fi
22458 + rmfiles="$file"
22460 + case $name in
22461 + *.la)
22462 + # Possibly a libtool archive, so verify it.
22463 + if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
22464 + . $dir/$name
22466 + # Delete the libtool libraries and symlinks.
22467 + for n in $library_names; do
22468 + rmfiles="$rmfiles $objdir/$n"
22469 + done
22470 + test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
22471 + test $mode = clean && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
22473 + if test $mode = uninstall; then
22474 + if test -n "$library_names"; then
22475 + # Do each command in the postuninstall commands.
22476 + eval cmds=\"$postuninstall_cmds\"
22477 + IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
22478 + for cmd in $cmds; do
22479 + IFS="$save_ifs"
22480 + $show "$cmd"
22481 + $run eval "$cmd"
22482 + if test $? != 0 && test "$rmforce" != yes; then
22483 + exit_status=1
22484 + fi
22485 + done
22486 + IFS="$save_ifs"
22487 + fi
22489 + if test -n "$old_library"; then
22490 + # Do each command in the old_postuninstall commands.
22491 + eval cmds=\"$old_postuninstall_cmds\"
22492 + IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
22493 + for cmd in $cmds; do
22494 + IFS="$save_ifs"
22495 + $show "$cmd"
22496 + $run eval "$cmd"
22497 + if test $? != 0 && test "$rmforce" != yes; then
22498 + exit_status=1
22499 + fi
22500 + done
22501 + IFS="$save_ifs"
22502 + fi
22503 + # FIXME: should reinstall the best remaining shared library.
22504 + fi
22505 + fi
22506 + ;;
22508 + *.lo)
22509 + if test "$build_old_libs" = yes; then
22510 + oldobj=`$echo "X$name" | $Xsed -e "$lo2o"`
22511 + rmfiles="$rmfiles $dir/$oldobj"
22512 + fi
22513 + ;;
22515 + *)
22516 + # Do a test to see if this is a libtool program.
22517 + if test $mode = clean &&
22518 + (sed -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
22519 + relink_command=
22520 + . $dir/$file
22522 + rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
22523 + if test "$fast_install" = yes && test -n "$relink_command"; then
22524 + rmfiles="$rmfiles $objdir/lt-$name"
22525 + fi
22526 + fi
22527 + ;;
22528 + esac
22529 + $show "$rm $rmfiles"
22530 + $run $rm $rmfiles || exit_status=1
22531 + done
22533 + # Try to remove the ${objdir}s in the directories where we deleted files
22534 + for dir in $rmdirs; do
22535 + if test -d "$dir"; then
22536 + $show "rmdir $dir"
22537 + $run rmdir $dir >/dev/null 2>&1
22538 + fi
22539 + done
22541 + exit $exit_status
22542 + ;;
22544 + "")
22545 + $echo "$modename: you must specify a MODE" 1>&2
22546 + $echo "$generic_help" 1>&2
22547 + exit 1
22548 + ;;
22549 + esac
22551 + $echo "$modename: invalid operation mode \`$mode'" 1>&2
22552 + $echo "$generic_help" 1>&2
22553 + exit 1
22554 +fi # test -z "$show_help"
22556 +# We need to display help for each of the modes.
22557 +case $mode in
22558 +"") $echo \
22559 +"Usage: $modename [OPTION]... [MODE-ARG]...
22561 +Provide generalized library-building support services.
22563 + --config show all configuration variables
22564 + --debug enable verbose shell tracing
22565 +-n, --dry-run display commands without modifying any files
22566 + --features display basic configuration information and exit
22567 + --finish same as \`--mode=finish'
22568 + --help display this help message and exit
22569 + --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS]
22570 + --quiet same as \`--silent'
22571 + --silent don't print informational messages
22572 + --version print version information
22574 +MODE must be one of the following:
22576 + clean remove files from the build directory
22577 + compile compile a source file into a libtool object
22578 + execute automatically set library path, then run a program
22579 + finish complete the installation of libtool libraries
22580 + install install libraries or executables
22581 + link create a library or an executable
22582 + uninstall remove libraries from an installed directory
22584 +MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for
22585 +a more detailed description of MODE."
22586 + exit 0
22587 + ;;
22589 +clean)
22590 + $echo \
22591 +"Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
22593 +Remove files from the build directory.
22595 +RM is the name of the program to use to delete files associated with each FILE
22596 +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
22597 +to RM.
22599 +If FILE is a libtool library, object or program, all the files associated
22600 +with it are deleted. Otherwise, only FILE itself is deleted using RM."
22601 + ;;
22603 +compile)
22604 + $echo \
22605 +"Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
22607 +Compile a source file into a libtool library object.
22609 +This mode accepts the following additional options:
22611 + -o OUTPUT-FILE set the output file name to OUTPUT-FILE
22612 + -prefer-pic try to building PIC objects only
22613 + -prefer-non-pic try to building non-PIC objects only
22614 + -static always build a \`.o' file suitable for static linking
22616 +COMPILE-COMMAND is a command to be used in creating a \`standard' object file
22617 +from the given SOURCEFILE.
22619 +The output file name is determined by removing the directory component from
22620 +SOURCEFILE, then substituting the C source code suffix \`.c' with the
22621 +library object suffix, \`.lo'."
22622 + ;;
22624 +execute)
22625 + $echo \
22626 +"Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]...
22628 +Automatically set library path, then run a program.
22630 +This mode accepts the following additional options:
22632 + -dlopen FILE add the directory containing FILE to the library path
22634 +This mode sets the library path environment variable according to \`-dlopen'
22635 +flags.
22637 +If any of the ARGS are libtool executable wrappers, then they are translated
22638 +into their corresponding uninstalled binary, and any of their required library
22639 +directories are added to the library path.
22641 +Then, COMMAND is executed, with ARGS as arguments."
22642 + ;;
22644 +finish)
22645 + $echo \
22646 +"Usage: $modename [OPTION]... --mode=finish [LIBDIR]...
22648 +Complete the installation of libtool libraries.
22650 +Each LIBDIR is a directory that contains libtool libraries.
22652 +The commands that this mode executes may require superuser privileges. Use
22653 +the \`--dry-run' option if you just want to see what would be executed."
22654 + ;;
22656 +install)
22657 + $echo \
22658 +"Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND...
22660 +Install executables or libraries.
22662 +INSTALL-COMMAND is the installation command. The first component should be
22663 +either the \`install' or \`cp' program.
22665 +The rest of the components are interpreted as arguments to that command (only
22666 +BSD-compatible install options are recognized)."
22667 + ;;
22669 +link)
22670 + $echo \
22671 +"Usage: $modename [OPTION]... --mode=link LINK-COMMAND...
22673 +Link object files or libraries together to form another library, or to
22674 +create an executable program.
22676 +LINK-COMMAND is a command using the C compiler that you would use to create
22677 +a program from several object files.
22679 +The following components of LINK-COMMAND are treated specially:
22681 + -all-static do not do any dynamic linking at all
22682 + -avoid-version do not add a version suffix if possible
22683 + -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
22684 + -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
22685 + -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
22686 + -export-symbols SYMFILE
22687 + try to export only the symbols listed in SYMFILE
22688 + -export-symbols-regex REGEX
22689 + try to export only the symbols matching REGEX
22690 + -LLIBDIR search LIBDIR for required installed libraries
22691 + -lNAME OUTPUT-FILE requires the installed library libNAME
22692 + -module build a library that can dlopened
22693 + -no-fast-install disable the fast-install mode
22694 + -no-install link a not-installable executable
22695 + -no-undefined declare that a library does not refer to external symbols
22696 + -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
22697 + -release RELEASE specify package release information
22698 + -rpath LIBDIR the created library will eventually be installed in LIBDIR
22699 + -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
22700 + -static do not do any dynamic linking of libtool libraries
22701 + -version-info CURRENT[:REVISION[:AGE]]
22702 + specify library version info [each variable defaults to 0]
22704 +All other options (arguments beginning with \`-') are ignored.
22706 +Every other argument is treated as a filename. Files ending in \`.la' are
22707 +treated as uninstalled libtool libraries, other files are standard or library
22708 +object files.
22710 +If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
22711 +only library objects (\`.lo' files) may be specified, and \`-rpath' is
22712 +required, except when creating a convenience library.
22714 +If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
22715 +using \`ar' and \`ranlib', or on Windows using \`lib'.
22717 +If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
22718 +is created, otherwise an executable program is created."
22719 + ;;
22721 +uninstall)
22722 + $echo \
22723 +"Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
22725 +Remove libraries from an installation directory.
22727 +RM is the name of the program to use to delete files associated with each FILE
22728 +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
22729 +to RM.
22731 +If FILE is a libtool library, all the files associated with it are deleted.
22732 +Otherwise, only FILE itself is deleted using RM."
22733 + ;;
22735 +*)
22736 + $echo "$modename: invalid operation mode \`$mode'" 1>&2
22737 + $echo "$help" 1>&2
22738 + exit 1
22739 + ;;
22740 +esac
22742 +echo
22743 +$echo "Try \`$modename --help' for more information about other modes."
22745 +exit 0
22747 +# Local Variables:
22748 +# mode:shell-script
22749 +# sh-indentation:2
22750 +# End:
22751 --- openjade1.3-1.3.2.orig/spgrove/threads.h
22752 +++ openjade1.3-1.3.2/spgrove/threads.h
22753 @@ -141,7 +141,7 @@
22755 #endif /* _MSC_VER && _MT */
22757 -#if ((defined __MACH__) && !(defined __APPLE__)) || (defined __GNU__)
22758 +#if ((defined __MACH__) && !(defined __APPLE__) && !(defined __GNU__))
22760 // For Mach, using C Threads. May or may not work as-is on your Mach-based OS.
22761 // Written by Raf Schietekat <RfSchtkt@maze.ruca.ua.ac.be> on 1996-11-10.