aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/others/mimesh/libg3d-0.0.8/config
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xsrc/others/mimesh/libg3d-0.0.8/config/config.guess1526
-rwxr-xr-xsrc/others/mimesh/libg3d-0.0.8/config/config.sub1658
-rwxr-xr-xsrc/others/mimesh/libg3d-0.0.8/config/depcomp589
-rwxr-xr-xsrc/others/mimesh/libg3d-0.0.8/config/install-sh519
-rw-r--r--src/others/mimesh/libg3d-0.0.8/config/ltmain.sh6964
-rwxr-xr-xsrc/others/mimesh/libg3d-0.0.8/config/missing367
-rwxr-xr-xsrc/others/mimesh/libg3d-0.0.8/config/ylwrap223
-rwxr-xr-xsrc/others/mimesh/libg3d-0.0.8/configure23776
-rw-r--r--src/others/mimesh/libg3d-0.0.8/configure.in221
9 files changed, 35843 insertions, 0 deletions
diff --git a/src/others/mimesh/libg3d-0.0.8/config/config.guess b/src/others/mimesh/libg3d-0.0.8/config/config.guess
new file mode 100755
index 0000000..f32079a
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/config/config.guess
@@ -0,0 +1,1526 @@
1#! /bin/sh
2# Attempt to guess a canonical system name.
3# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
5# Free Software Foundation, Inc.
6
7timestamp='2008-01-23'
8
9# This file is free software; you can redistribute it and/or modify it
10# under the terms of the GNU General Public License as published by
11# the Free Software Foundation; either version 2 of the License, or
12# (at your option) any later version.
13#
14# This program is distributed in the hope that it will be useful, but
15# WITHOUT ANY WARRANTY; without even the implied warranty of
16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17# General Public License for more details.
18#
19# You should have received a copy of the GNU General Public License
20# along with this program; if not, write to the Free Software
21# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
22# 02110-1301, USA.
23#
24# As a special exception to the GNU General Public License, if you
25# distribute this file as part of a program that contains a
26# configuration script generated by Autoconf, you may include it under
27# the same distribution terms that you use for the rest of that program.
28
29
30# Originally written by Per Bothner <per@bothner.com>.
31# Please send patches to <config-patches@gnu.org>. Submit a context
32# diff and a properly formatted ChangeLog entry.
33#
34# This script attempts to guess a canonical system name similar to
35# config.sub. If it succeeds, it prints the system name on stdout, and
36# exits with 0. Otherwise, it exits with 1.
37#
38# The plan is that this can be called by configure scripts if you
39# don't specify an explicit build system type.
40
41me=`echo "$0" | sed -e 's,.*/,,'`
42
43usage="\
44Usage: $0 [OPTION]
45
46Output the configuration name of the system \`$me' is run on.
47
48Operation modes:
49 -h, --help print this help, then exit
50 -t, --time-stamp print date of last modification, then exit
51 -v, --version print version number, then exit
52
53Report bugs and patches to <config-patches@gnu.org>."
54
55version="\
56GNU config.guess ($timestamp)
57
58Originally written by Per Bothner.
59Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
602002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
61
62This is free software; see the source for copying conditions. There is NO
63warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
64
65help="
66Try \`$me --help' for more information."
67
68# Parse command line
69while test $# -gt 0 ; do
70 case $1 in
71 --time-stamp | --time* | -t )
72 echo "$timestamp" ; exit ;;
73 --version | -v )
74 echo "$version" ; exit ;;
75 --help | --h* | -h )
76 echo "$usage"; exit ;;
77 -- ) # Stop option processing
78 shift; break ;;
79 - ) # Use stdin as input.
80 break ;;
81 -* )
82 echo "$me: invalid option $1$help" >&2
83 exit 1 ;;
84 * )
85 break ;;
86 esac
87done
88
89if test $# != 0; then
90 echo "$me: too many arguments$help" >&2
91 exit 1
92fi
93
94trap 'exit 1' 1 2 15
95
96# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
97# compiler to aid in system detection is discouraged as it requires
98# temporary files to be created and, as you can see below, it is a
99# headache to deal with in a portable fashion.
100
101# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
102# use `HOST_CC' if defined, but it is deprecated.
103
104# Portable tmp directory creation inspired by the Autoconf team.
105
106set_cc_for_build='
107trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
108trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
109: ${TMPDIR=/tmp} ;
110 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
111 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
112 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
113 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
114dummy=$tmp/dummy ;
115tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
116case $CC_FOR_BUILD,$HOST_CC,$CC in
117 ,,) echo "int x;" > $dummy.c ;
118 for c in cc gcc c89 c99 ; do
119 if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
120 CC_FOR_BUILD="$c"; break ;
121 fi ;
122 done ;
123 if test x"$CC_FOR_BUILD" = x ; then
124 CC_FOR_BUILD=no_compiler_found ;
125 fi
126 ;;
127 ,,*) CC_FOR_BUILD=$CC ;;
128 ,*,*) CC_FOR_BUILD=$HOST_CC ;;
129esac ; set_cc_for_build= ;'
130
131# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
132# (ghazi@noc.rutgers.edu 1994-08-24)
133if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
134 PATH=$PATH:/.attbin ; export PATH
135fi
136
137UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
138UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
139UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
140UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
141
142# Note: order is significant - the case branches are not exclusive.
143
144case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
145 *:NetBSD:*:*)
146 # NetBSD (nbsd) targets should (where applicable) match one or
147 # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
148 # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
149 # switched to ELF, *-*-netbsd* would select the old
150 # object file format. This provides both forward
151 # compatibility and a consistent mechanism for selecting the
152 # object file format.
153 #
154 # Note: NetBSD doesn't particularly care about the vendor
155 # portion of the name. We always set it to "unknown".
156 sysctl="sysctl -n hw.machine_arch"
157 UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
158 /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
159 case "${UNAME_MACHINE_ARCH}" in
160 armeb) machine=armeb-unknown ;;
161 arm*) machine=arm-unknown ;;
162 sh3el) machine=shl-unknown ;;
163 sh3eb) machine=sh-unknown ;;
164 sh5el) machine=sh5le-unknown ;;
165 *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
166 esac
167 # The Operating System including object format, if it has switched
168 # to ELF recently, or will in the future.
169 case "${UNAME_MACHINE_ARCH}" in
170 arm*|i386|m68k|ns32k|sh3*|sparc|vax)
171 eval $set_cc_for_build
172 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
173 | grep __ELF__ >/dev/null
174 then
175 # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
176 # Return netbsd for either. FIX?
177 os=netbsd
178 else
179 os=netbsdelf
180 fi
181 ;;
182 *)
183 os=netbsd
184 ;;
185 esac
186 # The OS release
187 # Debian GNU/NetBSD machines have a different userland, and
188 # thus, need a distinct triplet. However, they do not need
189 # kernel version information, so it can be replaced with a
190 # suitable tag, in the style of linux-gnu.
191 case "${UNAME_VERSION}" in
192 Debian*)
193 release='-gnu'
194 ;;
195 *)
196 release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
197 ;;
198 esac
199 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
200 # contains redundant information, the shorter form:
201 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
202 echo "${machine}-${os}${release}"
203 exit ;;
204 *:OpenBSD:*:*)
205 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
206 echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
207 exit ;;
208 *:ekkoBSD:*:*)
209 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
210 exit ;;
211 *:SolidBSD:*:*)
212 echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
213 exit ;;
214 macppc:MirBSD:*:*)
215 echo powerpc-unknown-mirbsd${UNAME_RELEASE}
216 exit ;;
217 *:MirBSD:*:*)
218 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
219 exit ;;
220 alpha:OSF1:*:*)
221 case $UNAME_RELEASE in
222 *4.0)
223 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
224 ;;
225 *5.*)
226 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
227 ;;
228 esac
229 # According to Compaq, /usr/sbin/psrinfo has been available on
230 # OSF/1 and Tru64 systems produced since 1995. I hope that
231 # covers most systems running today. This code pipes the CPU
232 # types through head -n 1, so we only detect the type of CPU 0.
233 ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
234 case "$ALPHA_CPU_TYPE" in
235 "EV4 (21064)")
236 UNAME_MACHINE="alpha" ;;
237 "EV4.5 (21064)")
238 UNAME_MACHINE="alpha" ;;
239 "LCA4 (21066/21068)")
240 UNAME_MACHINE="alpha" ;;
241 "EV5 (21164)")
242 UNAME_MACHINE="alphaev5" ;;
243 "EV5.6 (21164A)")
244 UNAME_MACHINE="alphaev56" ;;
245 "EV5.6 (21164PC)")
246 UNAME_MACHINE="alphapca56" ;;
247 "EV5.7 (21164PC)")
248 UNAME_MACHINE="alphapca57" ;;
249 "EV6 (21264)")
250 UNAME_MACHINE="alphaev6" ;;
251 "EV6.7 (21264A)")
252 UNAME_MACHINE="alphaev67" ;;
253 "EV6.8CB (21264C)")
254 UNAME_MACHINE="alphaev68" ;;
255 "EV6.8AL (21264B)")
256 UNAME_MACHINE="alphaev68" ;;
257 "EV6.8CX (21264D)")
258 UNAME_MACHINE="alphaev68" ;;
259 "EV6.9A (21264/EV69A)")
260 UNAME_MACHINE="alphaev69" ;;
261 "EV7 (21364)")
262 UNAME_MACHINE="alphaev7" ;;
263 "EV7.9 (21364A)")
264 UNAME_MACHINE="alphaev79" ;;
265 esac
266 # A Pn.n version is a patched version.
267 # A Vn.n version is a released version.
268 # A Tn.n version is a released field test version.
269 # A Xn.n version is an unreleased experimental baselevel.
270 # 1.2 uses "1.2" for uname -r.
271 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
272 exit ;;
273 Alpha\ *:Windows_NT*:*)
274 # How do we know it's Interix rather than the generic POSIX subsystem?
275 # Should we change UNAME_MACHINE based on the output of uname instead
276 # of the specific Alpha model?
277 echo alpha-pc-interix
278 exit ;;
279 21064:Windows_NT:50:3)
280 echo alpha-dec-winnt3.5
281 exit ;;
282 Amiga*:UNIX_System_V:4.0:*)
283 echo m68k-unknown-sysv4
284 exit ;;
285 *:[Aa]miga[Oo][Ss]:*:*)
286 echo ${UNAME_MACHINE}-unknown-amigaos
287 exit ;;
288 *:[Mm]orph[Oo][Ss]:*:*)
289 echo ${UNAME_MACHINE}-unknown-morphos
290 exit ;;
291 *:OS/390:*:*)
292 echo i370-ibm-openedition
293 exit ;;
294 *:z/VM:*:*)
295 echo s390-ibm-zvmoe
296 exit ;;
297 *:OS400:*:*)
298 echo powerpc-ibm-os400
299 exit ;;
300 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
301 echo arm-acorn-riscix${UNAME_RELEASE}
302 exit ;;
303 arm:riscos:*:*|arm:RISCOS:*:*)
304 echo arm-unknown-riscos
305 exit ;;
306 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
307 echo hppa1.1-hitachi-hiuxmpp
308 exit ;;
309 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
310 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
311 if test "`(/bin/universe) 2>/dev/null`" = att ; then
312 echo pyramid-pyramid-sysv3
313 else
314 echo pyramid-pyramid-bsd
315 fi
316 exit ;;
317 NILE*:*:*:dcosx)
318 echo pyramid-pyramid-svr4
319 exit ;;
320 DRS?6000:unix:4.0:6*)
321 echo sparc-icl-nx6
322 exit ;;
323 DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
324 case `/usr/bin/uname -p` in
325 sparc) echo sparc-icl-nx7; exit ;;
326 esac ;;
327 sun4H:SunOS:5.*:*)
328 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
329 exit ;;
330 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
331 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
332 exit ;;
333 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
334 echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
335 exit ;;
336 sun4*:SunOS:6*:*)
337 # According to config.sub, this is the proper way to canonicalize
338 # SunOS6. Hard to guess exactly what SunOS6 will be like, but
339 # it's likely to be more like Solaris than SunOS4.
340 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
341 exit ;;
342 sun4*:SunOS:*:*)
343 case "`/usr/bin/arch -k`" in
344 Series*|S4*)
345 UNAME_RELEASE=`uname -v`
346 ;;
347 esac
348 # Japanese Language versions have a version number like `4.1.3-JL'.
349 echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
350 exit ;;
351 sun3*:SunOS:*:*)
352 echo m68k-sun-sunos${UNAME_RELEASE}
353 exit ;;
354 sun*:*:4.2BSD:*)
355 UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
356 test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
357 case "`/bin/arch`" in
358 sun3)
359 echo m68k-sun-sunos${UNAME_RELEASE}
360 ;;
361 sun4)
362 echo sparc-sun-sunos${UNAME_RELEASE}
363 ;;
364 esac
365 exit ;;
366 aushp:SunOS:*:*)
367 echo sparc-auspex-sunos${UNAME_RELEASE}
368 exit ;;
369 # The situation for MiNT is a little confusing. The machine name
370 # can be virtually everything (everything which is not
371 # "atarist" or "atariste" at least should have a processor
372 # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
373 # to the lowercase version "mint" (or "freemint"). Finally
374 # the system name "TOS" denotes a system which is actually not
375 # MiNT. But MiNT is downward compatible to TOS, so this should
376 # be no problem.
377 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
378 echo m68k-atari-mint${UNAME_RELEASE}
379 exit ;;
380 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
381 echo m68k-atari-mint${UNAME_RELEASE}
382 exit ;;
383 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
384 echo m68k-atari-mint${UNAME_RELEASE}
385 exit ;;
386 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
387 echo m68k-milan-mint${UNAME_RELEASE}
388 exit ;;
389 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
390 echo m68k-hades-mint${UNAME_RELEASE}
391 exit ;;
392 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
393 echo m68k-unknown-mint${UNAME_RELEASE}
394 exit ;;
395 m68k:machten:*:*)
396 echo m68k-apple-machten${UNAME_RELEASE}
397 exit ;;
398 powerpc:machten:*:*)
399 echo powerpc-apple-machten${UNAME_RELEASE}
400 exit ;;
401 RISC*:Mach:*:*)
402 echo mips-dec-mach_bsd4.3
403 exit ;;
404 RISC*:ULTRIX:*:*)
405 echo mips-dec-ultrix${UNAME_RELEASE}
406 exit ;;
407 VAX*:ULTRIX*:*:*)
408 echo vax-dec-ultrix${UNAME_RELEASE}
409 exit ;;
410 2020:CLIX:*:* | 2430:CLIX:*:*)
411 echo clipper-intergraph-clix${UNAME_RELEASE}
412 exit ;;
413 mips:*:*:UMIPS | mips:*:*:RISCos)
414 eval $set_cc_for_build
415 sed 's/^ //' << EOF >$dummy.c
416#ifdef __cplusplus
417#include <stdio.h> /* for printf() prototype */
418 int main (int argc, char *argv[]) {
419#else
420 int main (argc, argv) int argc; char *argv[]; {
421#endif
422 #if defined (host_mips) && defined (MIPSEB)
423 #if defined (SYSTYPE_SYSV)
424 printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
425 #endif
426 #if defined (SYSTYPE_SVR4)
427 printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
428 #endif
429 #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
430 printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
431 #endif
432 #endif
433 exit (-1);
434 }
435EOF
436 $CC_FOR_BUILD -o $dummy $dummy.c &&
437 dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
438 SYSTEM_NAME=`$dummy $dummyarg` &&
439 { echo "$SYSTEM_NAME"; exit; }
440 echo mips-mips-riscos${UNAME_RELEASE}
441 exit ;;
442 Motorola:PowerMAX_OS:*:*)
443 echo powerpc-motorola-powermax
444 exit ;;
445 Motorola:*:4.3:PL8-*)
446 echo powerpc-harris-powermax
447 exit ;;
448 Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
449 echo powerpc-harris-powermax
450 exit ;;
451 Night_Hawk:Power_UNIX:*:*)
452 echo powerpc-harris-powerunix
453 exit ;;
454 m88k:CX/UX:7*:*)
455 echo m88k-harris-cxux7
456 exit ;;
457 m88k:*:4*:R4*)
458 echo m88k-motorola-sysv4
459 exit ;;
460 m88k:*:3*:R3*)
461 echo m88k-motorola-sysv3
462 exit ;;
463 AViiON:dgux:*:*)
464 # DG/UX returns AViiON for all architectures
465 UNAME_PROCESSOR=`/usr/bin/uname -p`
466 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
467 then
468 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
469 [ ${TARGET_BINARY_INTERFACE}x = x ]
470 then
471 echo m88k-dg-dgux${UNAME_RELEASE}
472 else
473 echo m88k-dg-dguxbcs${UNAME_RELEASE}
474 fi
475 else
476 echo i586-dg-dgux${UNAME_RELEASE}
477 fi
478 exit ;;
479 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
480 echo m88k-dolphin-sysv3
481 exit ;;
482 M88*:*:R3*:*)
483 # Delta 88k system running SVR3
484 echo m88k-motorola-sysv3
485 exit ;;
486 XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
487 echo m88k-tektronix-sysv3
488 exit ;;
489 Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
490 echo m68k-tektronix-bsd
491 exit ;;
492 *:IRIX*:*:*)
493 echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
494 exit ;;
495 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
496 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
497 exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
498 i*86:AIX:*:*)
499 echo i386-ibm-aix
500 exit ;;
501 ia64:AIX:*:*)
502 if [ -x /usr/bin/oslevel ] ; then
503 IBM_REV=`/usr/bin/oslevel`
504 else
505 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
506 fi
507 echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
508 exit ;;
509 *:AIX:2:3)
510 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
511 eval $set_cc_for_build
512 sed 's/^ //' << EOF >$dummy.c
513 #include <sys/systemcfg.h>
514
515 main()
516 {
517 if (!__power_pc())
518 exit(1);
519 puts("powerpc-ibm-aix3.2.5");
520 exit(0);
521 }
522EOF
523 if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
524 then
525 echo "$SYSTEM_NAME"
526 else
527 echo rs6000-ibm-aix3.2.5
528 fi
529 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
530 echo rs6000-ibm-aix3.2.4
531 else
532 echo rs6000-ibm-aix3.2
533 fi
534 exit ;;
535 *:AIX:*:[456])
536 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
537 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
538 IBM_ARCH=rs6000
539 else
540 IBM_ARCH=powerpc
541 fi
542 if [ -x /usr/bin/oslevel ] ; then
543 IBM_REV=`/usr/bin/oslevel`
544 else
545 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
546 fi
547 echo ${IBM_ARCH}-ibm-aix${IBM_REV}
548 exit ;;
549 *:AIX:*:*)
550 echo rs6000-ibm-aix
551 exit ;;
552 ibmrt:4.4BSD:*|romp-ibm:BSD:*)
553 echo romp-ibm-bsd4.4
554 exit ;;
555 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
556 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
557 exit ;; # report: romp-ibm BSD 4.3
558 *:BOSX:*:*)
559 echo rs6000-bull-bosx
560 exit ;;
561 DPX/2?00:B.O.S.:*:*)
562 echo m68k-bull-sysv3
563 exit ;;
564 9000/[34]??:4.3bsd:1.*:*)
565 echo m68k-hp-bsd
566 exit ;;
567 hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
568 echo m68k-hp-bsd4.4
569 exit ;;
570 9000/[34678]??:HP-UX:*:*)
571 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
572 case "${UNAME_MACHINE}" in
573 9000/31? ) HP_ARCH=m68000 ;;
574 9000/[34]?? ) HP_ARCH=m68k ;;
575 9000/[678][0-9][0-9])
576 if [ -x /usr/bin/getconf ]; then
577 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
578 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
579 case "${sc_cpu_version}" in
580 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
581 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
582 532) # CPU_PA_RISC2_0
583 case "${sc_kernel_bits}" in
584 32) HP_ARCH="hppa2.0n" ;;
585 64) HP_ARCH="hppa2.0w" ;;
586 '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
587 esac ;;
588 esac
589 fi
590 if [ "${HP_ARCH}" = "" ]; then
591 eval $set_cc_for_build
592 sed 's/^ //' << EOF >$dummy.c
593
594 #define _HPUX_SOURCE
595 #include <stdlib.h>
596 #include <unistd.h>
597
598 int main ()
599 {
600 #if defined(_SC_KERNEL_BITS)
601 long bits = sysconf(_SC_KERNEL_BITS);
602 #endif
603 long cpu = sysconf (_SC_CPU_VERSION);
604
605 switch (cpu)
606 {
607 case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
608 case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
609 case CPU_PA_RISC2_0:
610 #if defined(_SC_KERNEL_BITS)
611 switch (bits)
612 {
613 case 64: puts ("hppa2.0w"); break;
614 case 32: puts ("hppa2.0n"); break;
615 default: puts ("hppa2.0"); break;
616 } break;
617 #else /* !defined(_SC_KERNEL_BITS) */
618 puts ("hppa2.0"); break;
619 #endif
620 default: puts ("hppa1.0"); break;
621 }
622 exit (0);
623 }
624EOF
625 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
626 test -z "$HP_ARCH" && HP_ARCH=hppa
627 fi ;;
628 esac
629 if [ ${HP_ARCH} = "hppa2.0w" ]
630 then
631 eval $set_cc_for_build
632
633 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
634 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
635 # generating 64-bit code. GNU and HP use different nomenclature:
636 #
637 # $ CC_FOR_BUILD=cc ./config.guess
638 # => hppa2.0w-hp-hpux11.23
639 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
640 # => hppa64-hp-hpux11.23
641
642 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
643 grep __LP64__ >/dev/null
644 then
645 HP_ARCH="hppa2.0w"
646 else
647 HP_ARCH="hppa64"
648 fi
649 fi
650 echo ${HP_ARCH}-hp-hpux${HPUX_REV}
651 exit ;;
652 ia64:HP-UX:*:*)
653 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
654 echo ia64-hp-hpux${HPUX_REV}
655 exit ;;
656 3050*:HI-UX:*:*)
657 eval $set_cc_for_build
658 sed 's/^ //' << EOF >$dummy.c
659 #include <unistd.h>
660 int
661 main ()
662 {
663 long cpu = sysconf (_SC_CPU_VERSION);
664 /* The order matters, because CPU_IS_HP_MC68K erroneously returns
665 true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
666 results, however. */
667 if (CPU_IS_PA_RISC (cpu))
668 {
669 switch (cpu)
670 {
671 case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
672 case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
673 case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
674 default: puts ("hppa-hitachi-hiuxwe2"); break;
675 }
676 }
677 else if (CPU_IS_HP_MC68K (cpu))
678 puts ("m68k-hitachi-hiuxwe2");
679 else puts ("unknown-hitachi-hiuxwe2");
680 exit (0);
681 }
682EOF
683 $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
684 { echo "$SYSTEM_NAME"; exit; }
685 echo unknown-hitachi-hiuxwe2
686 exit ;;
687 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
688 echo hppa1.1-hp-bsd
689 exit ;;
690 9000/8??:4.3bsd:*:*)
691 echo hppa1.0-hp-bsd
692 exit ;;
693 *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
694 echo hppa1.0-hp-mpeix
695 exit ;;
696 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
697 echo hppa1.1-hp-osf
698 exit ;;
699 hp8??:OSF1:*:*)
700 echo hppa1.0-hp-osf
701 exit ;;
702 i*86:OSF1:*:*)
703 if [ -x /usr/sbin/sysversion ] ; then
704 echo ${UNAME_MACHINE}-unknown-osf1mk
705 else
706 echo ${UNAME_MACHINE}-unknown-osf1
707 fi
708 exit ;;
709 parisc*:Lites*:*:*)
710 echo hppa1.1-hp-lites
711 exit ;;
712 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
713 echo c1-convex-bsd
714 exit ;;
715 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
716 if getsysinfo -f scalar_acc
717 then echo c32-convex-bsd
718 else echo c2-convex-bsd
719 fi
720 exit ;;
721 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
722 echo c34-convex-bsd
723 exit ;;
724 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
725 echo c38-convex-bsd
726 exit ;;
727 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
728 echo c4-convex-bsd
729 exit ;;
730 CRAY*Y-MP:*:*:*)
731 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
732 exit ;;
733 CRAY*[A-Z]90:*:*:*)
734 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
735 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
736 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
737 -e 's/\.[^.]*$/.X/'
738 exit ;;
739 CRAY*TS:*:*:*)
740 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
741 exit ;;
742 CRAY*T3E:*:*:*)
743 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
744 exit ;;
745 CRAY*SV1:*:*:*)
746 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
747 exit ;;
748 *:UNICOS/mp:*:*)
749 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
750 exit ;;
751 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
752 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
753 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
754 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
755 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
756 exit ;;
757 5000:UNIX_System_V:4.*:*)
758 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
759 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
760 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
761 exit ;;
762 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
763 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
764 exit ;;
765 sparc*:BSD/OS:*:*)
766 echo sparc-unknown-bsdi${UNAME_RELEASE}
767 exit ;;
768 *:BSD/OS:*:*)
769 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
770 exit ;;
771 *:FreeBSD:*:*)
772 case ${UNAME_MACHINE} in
773 pc98)
774 echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
775 amd64)
776 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
777 *)
778 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
779 esac
780 exit ;;
781 i*:CYGWIN*:*)
782 echo ${UNAME_MACHINE}-pc-cygwin
783 exit ;;
784 *:MINGW*:*)
785 echo ${UNAME_MACHINE}-pc-mingw32
786 exit ;;
787 i*:windows32*:*)
788 # uname -m includes "-pc" on this system.
789 echo ${UNAME_MACHINE}-mingw32
790 exit ;;
791 i*:PW*:*)
792 echo ${UNAME_MACHINE}-pc-pw32
793 exit ;;
794 *:Interix*:[3456]*)
795 case ${UNAME_MACHINE} in
796 x86)
797 echo i586-pc-interix${UNAME_RELEASE}
798 exit ;;
799 EM64T | authenticamd)
800 echo x86_64-unknown-interix${UNAME_RELEASE}
801 exit ;;
802 IA64)
803 echo ia64-unknown-interix${UNAME_RELEASE}
804 exit ;;
805 esac ;;
806 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
807 echo i${UNAME_MACHINE}-pc-mks
808 exit ;;
809 i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
810 # How do we know it's Interix rather than the generic POSIX subsystem?
811 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
812 # UNAME_MACHINE based on the output of uname instead of i386?
813 echo i586-pc-interix
814 exit ;;
815 i*:UWIN*:*)
816 echo ${UNAME_MACHINE}-pc-uwin
817 exit ;;
818 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
819 echo x86_64-unknown-cygwin
820 exit ;;
821 p*:CYGWIN*:*)
822 echo powerpcle-unknown-cygwin
823 exit ;;
824 prep*:SunOS:5.*:*)
825 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
826 exit ;;
827 *:GNU:*:*)
828 # the GNU system
829 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
830 exit ;;
831 *:GNU/*:*:*)
832 # other systems with GNU libc and userland
833 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
834 exit ;;
835 i*86:Minix:*:*)
836 echo ${UNAME_MACHINE}-pc-minix
837 exit ;;
838 arm*:Linux:*:*)
839 eval $set_cc_for_build
840 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
841 | grep -q __ARM_EABI__
842 then
843 echo ${UNAME_MACHINE}-unknown-linux-gnu
844 else
845 echo ${UNAME_MACHINE}-unknown-linux-gnueabi
846 fi
847 exit ;;
848 avr32*:Linux:*:*)
849 echo ${UNAME_MACHINE}-unknown-linux-gnu
850 exit ;;
851 cris:Linux:*:*)
852 echo cris-axis-linux-gnu
853 exit ;;
854 crisv32:Linux:*:*)
855 echo crisv32-axis-linux-gnu
856 exit ;;
857 frv:Linux:*:*)
858 echo frv-unknown-linux-gnu
859 exit ;;
860 ia64:Linux:*:*)
861 echo ${UNAME_MACHINE}-unknown-linux-gnu
862 exit ;;
863 m32r*:Linux:*:*)
864 echo ${UNAME_MACHINE}-unknown-linux-gnu
865 exit ;;
866 m68*:Linux:*:*)
867 echo ${UNAME_MACHINE}-unknown-linux-gnu
868 exit ;;
869 mips:Linux:*:*)
870 eval $set_cc_for_build
871 sed 's/^ //' << EOF >$dummy.c
872 #undef CPU
873 #undef mips
874 #undef mipsel
875 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
876 CPU=mipsel
877 #else
878 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
879 CPU=mips
880 #else
881 CPU=
882 #endif
883 #endif
884EOF
885 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
886 /^CPU/{
887 s: ::g
888 p
889 }'`"
890 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
891 ;;
892 mips64:Linux:*:*)
893 eval $set_cc_for_build
894 sed 's/^ //' << EOF >$dummy.c
895 #undef CPU
896 #undef mips64
897 #undef mips64el
898 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
899 CPU=mips64el
900 #else
901 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
902 CPU=mips64
903 #else
904 CPU=
905 #endif
906 #endif
907EOF
908 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
909 /^CPU/{
910 s: ::g
911 p
912 }'`"
913 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
914 ;;
915 or32:Linux:*:*)
916 echo or32-unknown-linux-gnu
917 exit ;;
918 ppc:Linux:*:*)
919 echo powerpc-unknown-linux-gnu
920 exit ;;
921 ppc64:Linux:*:*)
922 echo powerpc64-unknown-linux-gnu
923 exit ;;
924 alpha:Linux:*:*)
925 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
926 EV5) UNAME_MACHINE=alphaev5 ;;
927 EV56) UNAME_MACHINE=alphaev56 ;;
928 PCA56) UNAME_MACHINE=alphapca56 ;;
929 PCA57) UNAME_MACHINE=alphapca56 ;;
930 EV6) UNAME_MACHINE=alphaev6 ;;
931 EV67) UNAME_MACHINE=alphaev67 ;;
932 EV68*) UNAME_MACHINE=alphaev68 ;;
933 esac
934 objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
935 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
936 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
937 exit ;;
938 parisc:Linux:*:* | hppa:Linux:*:*)
939 # Look for CPU level
940 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
941 PA7*) echo hppa1.1-unknown-linux-gnu ;;
942 PA8*) echo hppa2.0-unknown-linux-gnu ;;
943 *) echo hppa-unknown-linux-gnu ;;
944 esac
945 exit ;;
946 parisc64:Linux:*:* | hppa64:Linux:*:*)
947 echo hppa64-unknown-linux-gnu
948 exit ;;
949 s390:Linux:*:* | s390x:Linux:*:*)
950 echo ${UNAME_MACHINE}-ibm-linux
951 exit ;;
952 sh64*:Linux:*:*)
953 echo ${UNAME_MACHINE}-unknown-linux-gnu
954 exit ;;
955 sh*:Linux:*:*)
956 echo ${UNAME_MACHINE}-unknown-linux-gnu
957 exit ;;
958 sparc:Linux:*:* | sparc64:Linux:*:*)
959 echo ${UNAME_MACHINE}-unknown-linux-gnu
960 exit ;;
961 vax:Linux:*:*)
962 echo ${UNAME_MACHINE}-dec-linux-gnu
963 exit ;;
964 x86_64:Linux:*:*)
965 echo x86_64-unknown-linux-gnu
966 exit ;;
967 xtensa*:Linux:*:*)
968 echo ${UNAME_MACHINE}-unknown-linux-gnu
969 exit ;;
970 i*86:Linux:*:*)
971 # The BFD linker knows what the default object file format is, so
972 # first see if it will tell us. cd to the root directory to prevent
973 # problems with other programs or directories called `ld' in the path.
974 # Set LC_ALL=C to ensure ld outputs messages in English.
975 ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
976 | sed -ne '/supported targets:/!d
977 s/[ ][ ]*/ /g
978 s/.*supported targets: *//
979 s/ .*//
980 p'`
981 case "$ld_supported_targets" in
982 elf32-i386)
983 TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
984 ;;
985 a.out-i386-linux)
986 echo "${UNAME_MACHINE}-pc-linux-gnuaout"
987 exit ;;
988 coff-i386)
989 echo "${UNAME_MACHINE}-pc-linux-gnucoff"
990 exit ;;
991 "")
992 # Either a pre-BFD a.out linker (linux-gnuoldld) or
993 # one that does not give us useful --help.
994 echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
995 exit ;;
996 esac
997 # Determine whether the default compiler is a.out or elf
998 eval $set_cc_for_build
999 sed 's/^ //' << EOF >$dummy.c
1000 #include <features.h>
1001 #ifdef __ELF__
1002 # ifdef __GLIBC__
1003 # if __GLIBC__ >= 2
1004 LIBC=gnu
1005 # else
1006 LIBC=gnulibc1
1007 # endif
1008 # else
1009 LIBC=gnulibc1
1010 # endif
1011 #else
1012 #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
1013 LIBC=gnu
1014 #else
1015 LIBC=gnuaout
1016 #endif
1017 #endif
1018 #ifdef __dietlibc__
1019 LIBC=dietlibc
1020 #endif
1021EOF
1022 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
1023 /^LIBC/{
1024 s: ::g
1025 p
1026 }'`"
1027 test x"${LIBC}" != x && {
1028 echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
1029 exit
1030 }
1031 test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
1032 ;;
1033 i*86:DYNIX/ptx:4*:*)
1034 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
1035 # earlier versions are messed up and put the nodename in both
1036 # sysname and nodename.
1037 echo i386-sequent-sysv4
1038 exit ;;
1039 i*86:UNIX_SV:4.2MP:2.*)
1040 # Unixware is an offshoot of SVR4, but it has its own version
1041 # number series starting with 2...
1042 # I am not positive that other SVR4 systems won't match this,
1043 # I just have to hope. -- rms.
1044 # Use sysv4.2uw... so that sysv4* matches it.
1045 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
1046 exit ;;
1047 i*86:OS/2:*:*)
1048 # If we were able to find `uname', then EMX Unix compatibility
1049 # is probably installed.
1050 echo ${UNAME_MACHINE}-pc-os2-emx
1051 exit ;;
1052 i*86:XTS-300:*:STOP)
1053 echo ${UNAME_MACHINE}-unknown-stop
1054 exit ;;
1055 i*86:atheos:*:*)
1056 echo ${UNAME_MACHINE}-unknown-atheos
1057 exit ;;
1058 i*86:syllable:*:*)
1059 echo ${UNAME_MACHINE}-pc-syllable
1060 exit ;;
1061 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
1062 echo i386-unknown-lynxos${UNAME_RELEASE}
1063 exit ;;
1064 i*86:*DOS:*:*)
1065 echo ${UNAME_MACHINE}-pc-msdosdjgpp
1066 exit ;;
1067 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
1068 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
1069 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1070 echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
1071 else
1072 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
1073 fi
1074 exit ;;
1075 i*86:*:5:[678]*)
1076 # UnixWare 7.x, OpenUNIX and OpenServer 6.
1077 case `/bin/uname -X | grep "^Machine"` in
1078 *486*) UNAME_MACHINE=i486 ;;
1079 *Pentium) UNAME_MACHINE=i586 ;;
1080 *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
1081 esac
1082 echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1083 exit ;;
1084 i*86:*:3.2:*)
1085 if test -f /usr/options/cb.name; then
1086 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
1087 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
1088 elif /bin/uname -X 2>/dev/null >/dev/null ; then
1089 UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
1090 (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
1091 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
1092 && UNAME_MACHINE=i586
1093 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
1094 && UNAME_MACHINE=i686
1095 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
1096 && UNAME_MACHINE=i686
1097 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
1098 else
1099 echo ${UNAME_MACHINE}-pc-sysv32
1100 fi
1101 exit ;;
1102 pc:*:*:*)
1103 # Left here for compatibility:
1104 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1105 # the processor, so we play safe by assuming i386.
1106 echo i386-pc-msdosdjgpp
1107 exit ;;
1108 Intel:Mach:3*:*)
1109 echo i386-pc-mach3
1110 exit ;;
1111 paragon:*:*:*)
1112 echo i860-intel-osf1
1113 exit ;;
1114 i860:*:4.*:*) # i860-SVR4
1115 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1116 echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
1117 else # Add other i860-SVR4 vendors below as they are discovered.
1118 echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
1119 fi
1120 exit ;;
1121 mini*:CTIX:SYS*5:*)
1122 # "miniframe"
1123 echo m68010-convergent-sysv
1124 exit ;;
1125 mc68k:UNIX:SYSTEM5:3.51m)
1126 echo m68k-convergent-sysv
1127 exit ;;
1128 M680?0:D-NIX:5.3:*)
1129 echo m68k-diab-dnix
1130 exit ;;
1131 M68*:*:R3V[5678]*:*)
1132 test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
1133 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)
1134 OS_REL=''
1135 test -r /etc/.relid \
1136 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1137 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1138 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1139 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1140 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1141 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1142 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1143 && { echo i486-ncr-sysv4; exit; } ;;
1144 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1145 echo m68k-unknown-lynxos${UNAME_RELEASE}
1146 exit ;;
1147 mc68030:UNIX_System_V:4.*:*)
1148 echo m68k-atari-sysv4
1149 exit ;;
1150 TSUNAMI:LynxOS:2.*:*)
1151 echo sparc-unknown-lynxos${UNAME_RELEASE}
1152 exit ;;
1153 rs6000:LynxOS:2.*:*)
1154 echo rs6000-unknown-lynxos${UNAME_RELEASE}
1155 exit ;;
1156 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
1157 echo powerpc-unknown-lynxos${UNAME_RELEASE}
1158 exit ;;
1159 SM[BE]S:UNIX_SV:*:*)
1160 echo mips-dde-sysv${UNAME_RELEASE}
1161 exit ;;
1162 RM*:ReliantUNIX-*:*:*)
1163 echo mips-sni-sysv4
1164 exit ;;
1165 RM*:SINIX-*:*:*)
1166 echo mips-sni-sysv4
1167 exit ;;
1168 *:SINIX-*:*:*)
1169 if uname -p 2>/dev/null >/dev/null ; then
1170 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1171 echo ${UNAME_MACHINE}-sni-sysv4
1172 else
1173 echo ns32k-sni-sysv
1174 fi
1175 exit ;;
1176 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1177 # says <Richard.M.Bartel@ccMail.Census.GOV>
1178 echo i586-unisys-sysv4
1179 exit ;;
1180 *:UNIX_System_V:4*:FTX*)
1181 # From Gerald Hewes <hewes@openmarket.com>.
1182 # How about differentiating between stratus architectures? -djm
1183 echo hppa1.1-stratus-sysv4
1184 exit ;;
1185 *:*:*:FTX*)
1186 # From seanf@swdc.stratus.com.
1187 echo i860-stratus-sysv4
1188 exit ;;
1189 i*86:VOS:*:*)
1190 # From Paul.Green@stratus.com.
1191 echo ${UNAME_MACHINE}-stratus-vos
1192 exit ;;
1193 *:VOS:*:*)
1194 # From Paul.Green@stratus.com.
1195 echo hppa1.1-stratus-vos
1196 exit ;;
1197 mc68*:A/UX:*:*)
1198 echo m68k-apple-aux${UNAME_RELEASE}
1199 exit ;;
1200 news*:NEWS-OS:6*:*)
1201 echo mips-sony-newsos6
1202 exit ;;
1203 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1204 if [ -d /usr/nec ]; then
1205 echo mips-nec-sysv${UNAME_RELEASE}
1206 else
1207 echo mips-unknown-sysv${UNAME_RELEASE}
1208 fi
1209 exit ;;
1210 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
1211 echo powerpc-be-beos
1212 exit ;;
1213 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
1214 echo powerpc-apple-beos
1215 exit ;;
1216 BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
1217 echo i586-pc-beos
1218 exit ;;
1219 SX-4:SUPER-UX:*:*)
1220 echo sx4-nec-superux${UNAME_RELEASE}
1221 exit ;;
1222 SX-5:SUPER-UX:*:*)
1223 echo sx5-nec-superux${UNAME_RELEASE}
1224 exit ;;
1225 SX-6:SUPER-UX:*:*)
1226 echo sx6-nec-superux${UNAME_RELEASE}
1227 exit ;;
1228 SX-7:SUPER-UX:*:*)
1229 echo sx7-nec-superux${UNAME_RELEASE}
1230 exit ;;
1231 SX-8:SUPER-UX:*:*)
1232 echo sx8-nec-superux${UNAME_RELEASE}
1233 exit ;;
1234 SX-8R:SUPER-UX:*:*)
1235 echo sx8r-nec-superux${UNAME_RELEASE}
1236 exit ;;
1237 Power*:Rhapsody:*:*)
1238 echo powerpc-apple-rhapsody${UNAME_RELEASE}
1239 exit ;;
1240 *:Rhapsody:*:*)
1241 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1242 exit ;;
1243 *:Darwin:*:*)
1244 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1245 case $UNAME_PROCESSOR in
1246 unknown) UNAME_PROCESSOR=powerpc ;;
1247 esac
1248 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1249 exit ;;
1250 *:procnto*:*:* | *:QNX:[0123456789]*:*)
1251 UNAME_PROCESSOR=`uname -p`
1252 if test "$UNAME_PROCESSOR" = "x86"; then
1253 UNAME_PROCESSOR=i386
1254 UNAME_MACHINE=pc
1255 fi
1256 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
1257 exit ;;
1258 *:QNX:*:4*)
1259 echo i386-pc-qnx
1260 exit ;;
1261 NSE-?:NONSTOP_KERNEL:*:*)
1262 echo nse-tandem-nsk${UNAME_RELEASE}
1263 exit ;;
1264 NSR-?:NONSTOP_KERNEL:*:*)
1265 echo nsr-tandem-nsk${UNAME_RELEASE}
1266 exit ;;
1267 *:NonStop-UX:*:*)
1268 echo mips-compaq-nonstopux
1269 exit ;;
1270 BS2000:POSIX*:*:*)
1271 echo bs2000-siemens-sysv
1272 exit ;;
1273 DS/*:UNIX_System_V:*:*)
1274 echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
1275 exit ;;
1276 *:Plan9:*:*)
1277 # "uname -m" is not consistent, so use $cputype instead. 386
1278 # is converted to i386 for consistency with other x86
1279 # operating systems.
1280 if test "$cputype" = "386"; then
1281 UNAME_MACHINE=i386
1282 else
1283 UNAME_MACHINE="$cputype"
1284 fi
1285 echo ${UNAME_MACHINE}-unknown-plan9
1286 exit ;;
1287 *:TOPS-10:*:*)
1288 echo pdp10-unknown-tops10
1289 exit ;;
1290 *:TENEX:*:*)
1291 echo pdp10-unknown-tenex
1292 exit ;;
1293 KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1294 echo pdp10-dec-tops20
1295 exit ;;
1296 XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
1297 echo pdp10-xkl-tops20
1298 exit ;;
1299 *:TOPS-20:*:*)
1300 echo pdp10-unknown-tops20
1301 exit ;;
1302 *:ITS:*:*)
1303 echo pdp10-unknown-its
1304 exit ;;
1305 SEI:*:*:SEIUX)
1306 echo mips-sei-seiux${UNAME_RELEASE}
1307 exit ;;
1308 *:DragonFly:*:*)
1309 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1310 exit ;;
1311 *:*VMS:*:*)
1312 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1313 case "${UNAME_MACHINE}" in
1314 A*) echo alpha-dec-vms ; exit ;;
1315 I*) echo ia64-dec-vms ; exit ;;
1316 V*) echo vax-dec-vms ; exit ;;
1317 esac ;;
1318 *:XENIX:*:SysV)
1319 echo i386-pc-xenix
1320 exit ;;
1321 i*86:skyos:*:*)
1322 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1323 exit ;;
1324 i*86:rdos:*:*)
1325 echo ${UNAME_MACHINE}-pc-rdos
1326 exit ;;
1327esac
1328
1329#echo '(No uname command or uname output not recognized.)' 1>&2
1330#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
1331
1332eval $set_cc_for_build
1333cat >$dummy.c <<EOF
1334#ifdef _SEQUENT_
1335# include <sys/types.h>
1336# include <sys/utsname.h>
1337#endif
1338main ()
1339{
1340#if defined (sony)
1341#if defined (MIPSEB)
1342 /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
1343 I don't know.... */
1344 printf ("mips-sony-bsd\n"); exit (0);
1345#else
1346#include <sys/param.h>
1347 printf ("m68k-sony-newsos%s\n",
1348#ifdef NEWSOS4
1349 "4"
1350#else
1351 ""
1352#endif
1353 ); exit (0);
1354#endif
1355#endif
1356
1357#if defined (__arm) && defined (__acorn) && defined (__unix)
1358 printf ("arm-acorn-riscix\n"); exit (0);
1359#endif
1360
1361#if defined (hp300) && !defined (hpux)
1362 printf ("m68k-hp-bsd\n"); exit (0);
1363#endif
1364
1365#if defined (NeXT)
1366#if !defined (__ARCHITECTURE__)
1367#define __ARCHITECTURE__ "m68k"
1368#endif
1369 int version;
1370 version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
1371 if (version < 4)
1372 printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
1373 else
1374 printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
1375 exit (0);
1376#endif
1377
1378#if defined (MULTIMAX) || defined (n16)
1379#if defined (UMAXV)
1380 printf ("ns32k-encore-sysv\n"); exit (0);
1381#else
1382#if defined (CMU)
1383 printf ("ns32k-encore-mach\n"); exit (0);
1384#else
1385 printf ("ns32k-encore-bsd\n"); exit (0);
1386#endif
1387#endif
1388#endif
1389
1390#if defined (__386BSD__)
1391 printf ("i386-pc-bsd\n"); exit (0);
1392#endif
1393
1394#if defined (sequent)
1395#if defined (i386)
1396 printf ("i386-sequent-dynix\n"); exit (0);
1397#endif
1398#if defined (ns32000)
1399 printf ("ns32k-sequent-dynix\n"); exit (0);
1400#endif
1401#endif
1402
1403#if defined (_SEQUENT_)
1404 struct utsname un;
1405
1406 uname(&un);
1407
1408 if (strncmp(un.version, "V2", 2) == 0) {
1409 printf ("i386-sequent-ptx2\n"); exit (0);
1410 }
1411 if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
1412 printf ("i386-sequent-ptx1\n"); exit (0);
1413 }
1414 printf ("i386-sequent-ptx\n"); exit (0);
1415
1416#endif
1417
1418#if defined (vax)
1419# if !defined (ultrix)
1420# include <sys/param.h>
1421# if defined (BSD)
1422# if BSD == 43
1423 printf ("vax-dec-bsd4.3\n"); exit (0);
1424# else
1425# if BSD == 199006
1426 printf ("vax-dec-bsd4.3reno\n"); exit (0);
1427# else
1428 printf ("vax-dec-bsd\n"); exit (0);
1429# endif
1430# endif
1431# else
1432 printf ("vax-dec-bsd\n"); exit (0);
1433# endif
1434# else
1435 printf ("vax-dec-ultrix\n"); exit (0);
1436# endif
1437#endif
1438
1439#if defined (alliant) && defined (i860)
1440 printf ("i860-alliant-bsd\n"); exit (0);
1441#endif
1442
1443 exit (1);
1444}
1445EOF
1446
1447$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
1448 { echo "$SYSTEM_NAME"; exit; }
1449
1450# Apollos put the system type in the environment.
1451
1452test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
1453
1454# Convex versions that predate uname can use getsysinfo(1)
1455
1456if [ -x /usr/convex/getsysinfo ]
1457then
1458 case `getsysinfo -f cpu_type` in
1459 c1*)
1460 echo c1-convex-bsd
1461 exit ;;
1462 c2*)
1463 if getsysinfo -f scalar_acc
1464 then echo c32-convex-bsd
1465 else echo c2-convex-bsd
1466 fi
1467 exit ;;
1468 c34*)
1469 echo c34-convex-bsd
1470 exit ;;
1471 c38*)
1472 echo c38-convex-bsd
1473 exit ;;
1474 c4*)
1475 echo c4-convex-bsd
1476 exit ;;
1477 esac
1478fi
1479
1480cat >&2 <<EOF
1481$0: unable to guess system type
1482
1483This script, last modified $timestamp, has failed to recognize
1484the operating system you are using. It is advised that you
1485download the most up to date version of the config scripts from
1486
1487 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
1488and
1489 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
1490
1491If the version you run ($0) is already up to date, please
1492send the following data and any information you think might be
1493pertinent to <config-patches@gnu.org> in order to provide the needed
1494information to handle your system.
1495
1496config.guess timestamp = $timestamp
1497
1498uname -m = `(uname -m) 2>/dev/null || echo unknown`
1499uname -r = `(uname -r) 2>/dev/null || echo unknown`
1500uname -s = `(uname -s) 2>/dev/null || echo unknown`
1501uname -v = `(uname -v) 2>/dev/null || echo unknown`
1502
1503/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
1504/bin/uname -X = `(/bin/uname -X) 2>/dev/null`
1505
1506hostinfo = `(hostinfo) 2>/dev/null`
1507/bin/universe = `(/bin/universe) 2>/dev/null`
1508/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
1509/bin/arch = `(/bin/arch) 2>/dev/null`
1510/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
1511/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
1512
1513UNAME_MACHINE = ${UNAME_MACHINE}
1514UNAME_RELEASE = ${UNAME_RELEASE}
1515UNAME_SYSTEM = ${UNAME_SYSTEM}
1516UNAME_VERSION = ${UNAME_VERSION}
1517EOF
1518
1519exit 1
1520
1521# Local variables:
1522# eval: (add-hook 'write-file-hooks 'time-stamp)
1523# time-stamp-start: "timestamp='"
1524# time-stamp-format: "%:y-%02m-%02d"
1525# time-stamp-end: "'"
1526# End:
diff --git a/src/others/mimesh/libg3d-0.0.8/config/config.sub b/src/others/mimesh/libg3d-0.0.8/config/config.sub
new file mode 100755
index 0000000..6759825
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/config/config.sub
@@ -0,0 +1,1658 @@
1#! /bin/sh
2# Configuration validation subroutine script.
3# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
5# Free Software Foundation, Inc.
6
7timestamp='2008-01-16'
8
9# This file is (in principle) common to ALL GNU software.
10# The presence of a machine in this file suggests that SOME GNU software
11# can handle that machine. It does not imply ALL GNU software can.
12#
13# This file is free software; you can redistribute it and/or modify
14# it under the terms of the GNU General Public License as published by
15# the Free Software Foundation; either version 2 of the License, or
16# (at your option) any later version.
17#
18# This program is distributed in the hope that it will be useful,
19# but WITHOUT ANY WARRANTY; without even the implied warranty of
20# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21# GNU General Public License for more details.
22#
23# You should have received a copy of the GNU General Public License
24# along with this program; if not, write to the Free Software
25# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
26# 02110-1301, USA.
27#
28# As a special exception to the GNU General Public License, if you
29# distribute this file as part of a program that contains a
30# configuration script generated by Autoconf, you may include it under
31# the same distribution terms that you use for the rest of that program.
32
33
34# Please send patches to <config-patches@gnu.org>. Submit a context
35# diff and a properly formatted ChangeLog entry.
36#
37# Configuration subroutine to validate and canonicalize a configuration type.
38# Supply the specified configuration type as an argument.
39# If it is invalid, we print an error message on stderr and exit with code 1.
40# Otherwise, we print the canonical config type on stdout and succeed.
41
42# This file is supposed to be the same for all GNU packages
43# and recognize all the CPU types, system types and aliases
44# that are meaningful with *any* GNU software.
45# Each package is responsible for reporting which valid configurations
46# it does not support. The user should be able to distinguish
47# a failure to support a valid configuration from a meaningless
48# configuration.
49
50# The goal of this file is to map all the various variations of a given
51# machine specification into a single specification in the form:
52# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
53# or in some cases, the newer four-part form:
54# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
55# It is wrong to echo any other type of specification.
56
57me=`echo "$0" | sed -e 's,.*/,,'`
58
59usage="\
60Usage: $0 [OPTION] CPU-MFR-OPSYS
61 $0 [OPTION] ALIAS
62
63Canonicalize a configuration name.
64
65Operation modes:
66 -h, --help print this help, then exit
67 -t, --time-stamp print date of last modification, then exit
68 -v, --version print version number, then exit
69
70Report bugs and patches to <config-patches@gnu.org>."
71
72version="\
73GNU config.sub ($timestamp)
74
75Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
762002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
77
78This is free software; see the source for copying conditions. There is NO
79warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
80
81help="
82Try \`$me --help' for more information."
83
84# Parse command line
85while test $# -gt 0 ; do
86 case $1 in
87 --time-stamp | --time* | -t )
88 echo "$timestamp" ; exit ;;
89 --version | -v )
90 echo "$version" ; exit ;;
91 --help | --h* | -h )
92 echo "$usage"; exit ;;
93 -- ) # Stop option processing
94 shift; break ;;
95 - ) # Use stdin as input.
96 break ;;
97 -* )
98 echo "$me: invalid option $1$help"
99 exit 1 ;;
100
101 *local*)
102 # First pass through any local machine types.
103 echo $1
104 exit ;;
105
106 * )
107 break ;;
108 esac
109done
110
111case $# in
112 0) echo "$me: missing argument$help" >&2
113 exit 1;;
114 1) ;;
115 *) echo "$me: too many arguments$help" >&2
116 exit 1;;
117esac
118
119# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
120# Here we must recognize all the valid KERNEL-OS combinations.
121maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
122case $maybe_os in
123 nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
124 uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
125 storm-chaos* | os2-emx* | rtmk-nova*)
126 os=-$maybe_os
127 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
128 ;;
129 *)
130 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
131 if [ $basic_machine != $1 ]
132 then os=`echo $1 | sed 's/.*-/-/'`
133 else os=; fi
134 ;;
135esac
136
137### Let's recognize common machines as not being operating systems so
138### that things like config.sub decstation-3100 work. We also
139### recognize some manufacturers as not being operating systems, so we
140### can provide default operating systems below.
141case $os in
142 -sun*os*)
143 # Prevent following clause from handling this invalid input.
144 ;;
145 -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
146 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
147 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
148 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
149 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
150 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
151 -apple | -axis | -knuth | -cray)
152 os=
153 basic_machine=$1
154 ;;
155 -sim | -cisco | -oki | -wec | -winbond)
156 os=
157 basic_machine=$1
158 ;;
159 -scout)
160 ;;
161 -wrs)
162 os=-vxworks
163 basic_machine=$1
164 ;;
165 -chorusos*)
166 os=-chorusos
167 basic_machine=$1
168 ;;
169 -chorusrdb)
170 os=-chorusrdb
171 basic_machine=$1
172 ;;
173 -hiux*)
174 os=-hiuxwe2
175 ;;
176 -sco6)
177 os=-sco5v6
178 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
179 ;;
180 -sco5)
181 os=-sco3.2v5
182 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
183 ;;
184 -sco4)
185 os=-sco3.2v4
186 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
187 ;;
188 -sco3.2.[4-9]*)
189 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
190 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
191 ;;
192 -sco3.2v[4-9]*)
193 # Don't forget version if it is 3.2v4 or newer.
194 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
195 ;;
196 -sco5v6*)
197 # Don't forget version if it is 3.2v4 or newer.
198 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
199 ;;
200 -sco*)
201 os=-sco3.2v2
202 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
203 ;;
204 -udk*)
205 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
206 ;;
207 -isc)
208 os=-isc2.2
209 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
210 ;;
211 -clix*)
212 basic_machine=clipper-intergraph
213 ;;
214 -isc*)
215 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
216 ;;
217 -lynx*)
218 os=-lynxos
219 ;;
220 -ptx*)
221 basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
222 ;;
223 -windowsnt*)
224 os=`echo $os | sed -e 's/windowsnt/winnt/'`
225 ;;
226 -psos*)
227 os=-psos
228 ;;
229 -mint | -mint[0-9]*)
230 basic_machine=m68k-atari
231 os=-mint
232 ;;
233esac
234
235# Decode aliases for certain CPU-COMPANY combinations.
236case $basic_machine in
237 # Recognize the basic CPU types without company name.
238 # Some are omitted here because they have special meanings below.
239 1750a | 580 \
240 | a29k \
241 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
242 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
243 | am33_2.0 \
244 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
245 | bfin \
246 | c4x | clipper \
247 | d10v | d30v | dlx | dsp16xx \
248 | fido | fr30 | frv \
249 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
250 | i370 | i860 | i960 | ia64 \
251 | ip2k | iq2000 \
252 | m32c | m32r | m32rle | m68000 | m68k | m88k \
253 | maxq | mb | microblaze | mcore | mep \
254 | mips | mipsbe | mipseb | mipsel | mipsle \
255 | mips16 \
256 | mips64 | mips64el \
257 | mips64vr | mips64vrel \
258 | mips64orion | mips64orionel \
259 | mips64vr4100 | mips64vr4100el \
260 | mips64vr4300 | mips64vr4300el \
261 | mips64vr5000 | mips64vr5000el \
262 | mips64vr5900 | mips64vr5900el \
263 | mipsisa32 | mipsisa32el \
264 | mipsisa32r2 | mipsisa32r2el \
265 | mipsisa64 | mipsisa64el \
266 | mipsisa64r2 | mipsisa64r2el \
267 | mipsisa64sb1 | mipsisa64sb1el \
268 | mipsisa64sr71k | mipsisa64sr71kel \
269 | mipstx39 | mipstx39el \
270 | mn10200 | mn10300 \
271 | mt \
272 | msp430 \
273 | nios | nios2 \
274 | ns16k | ns32k \
275 | or32 \
276 | pdp10 | pdp11 | pj | pjl \
277 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
278 | pyramid \
279 | score \
280 | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
281 | sh64 | sh64le \
282 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
283 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
284 | spu | strongarm \
285 | tahoe | thumb | tic4x | tic80 | tron \
286 | v850 | v850e \
287 | we32k \
288 | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
289 | z8k)
290 basic_machine=$basic_machine-unknown
291 ;;
292 m6811 | m68hc11 | m6812 | m68hc12)
293 # Motorola 68HC11/12.
294 basic_machine=$basic_machine-unknown
295 os=-none
296 ;;
297 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
298 ;;
299 ms1)
300 basic_machine=mt-unknown
301 ;;
302
303 # We use `pc' rather than `unknown'
304 # because (1) that's what they normally are, and
305 # (2) the word "unknown" tends to confuse beginning users.
306 i*86 | x86_64)
307 basic_machine=$basic_machine-pc
308 ;;
309 # Object if more than one company name word.
310 *-*-*)
311 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
312 exit 1
313 ;;
314 # Recognize the basic CPU types with company name.
315 580-* \
316 | a29k-* \
317 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
318 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
319 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
320 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
321 | avr-* | avr32-* \
322 | bfin-* | bs2000-* \
323 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
324 | clipper-* | craynv-* | cydra-* \
325 | d10v-* | d30v-* | dlx-* \
326 | elxsi-* \
327 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
328 | h8300-* | h8500-* \
329 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
330 | i*86-* | i860-* | i960-* | ia64-* \
331 | ip2k-* | iq2000-* \
332 | m32c-* | m32r-* | m32rle-* \
333 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
334 | m88110-* | m88k-* | maxq-* | mcore-* \
335 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
336 | mips16-* \
337 | mips64-* | mips64el-* \
338 | mips64vr-* | mips64vrel-* \
339 | mips64orion-* | mips64orionel-* \
340 | mips64vr4100-* | mips64vr4100el-* \
341 | mips64vr4300-* | mips64vr4300el-* \
342 | mips64vr5000-* | mips64vr5000el-* \
343 | mips64vr5900-* | mips64vr5900el-* \
344 | mipsisa32-* | mipsisa32el-* \
345 | mipsisa32r2-* | mipsisa32r2el-* \
346 | mipsisa64-* | mipsisa64el-* \
347 | mipsisa64r2-* | mipsisa64r2el-* \
348 | mipsisa64sb1-* | mipsisa64sb1el-* \
349 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
350 | mipstx39-* | mipstx39el-* \
351 | mmix-* \
352 | mt-* \
353 | msp430-* \
354 | nios-* | nios2-* \
355 | none-* | np1-* | ns16k-* | ns32k-* \
356 | orion-* \
357 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
358 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
359 | pyramid-* \
360 | romp-* | rs6000-* \
361 | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
362 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
363 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
364 | sparclite-* \
365 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
366 | tahoe-* | thumb-* \
367 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
368 | tron-* \
369 | v850-* | v850e-* | vax-* \
370 | we32k-* \
371 | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
372 | xstormy16-* | xtensa*-* \
373 | ymp-* \
374 | z8k-*)
375 ;;
376 # Recognize the basic CPU types without company name, with glob match.
377 xtensa*)
378 basic_machine=$basic_machine-unknown
379 ;;
380 # Recognize the various machine names and aliases which stand
381 # for a CPU type and a company and sometimes even an OS.
382 386bsd)
383 basic_machine=i386-unknown
384 os=-bsd
385 ;;
386 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
387 basic_machine=m68000-att
388 ;;
389 3b*)
390 basic_machine=we32k-att
391 ;;
392 a29khif)
393 basic_machine=a29k-amd
394 os=-udi
395 ;;
396 abacus)
397 basic_machine=abacus-unknown
398 ;;
399 adobe68k)
400 basic_machine=m68010-adobe
401 os=-scout
402 ;;
403 alliant | fx80)
404 basic_machine=fx80-alliant
405 ;;
406 altos | altos3068)
407 basic_machine=m68k-altos
408 ;;
409 am29k)
410 basic_machine=a29k-none
411 os=-bsd
412 ;;
413 amd64)
414 basic_machine=x86_64-pc
415 ;;
416 amd64-*)
417 basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
418 ;;
419 amdahl)
420 basic_machine=580-amdahl
421 os=-sysv
422 ;;
423 amiga | amiga-*)
424 basic_machine=m68k-unknown
425 ;;
426 amigaos | amigados)
427 basic_machine=m68k-unknown
428 os=-amigaos
429 ;;
430 amigaunix | amix)
431 basic_machine=m68k-unknown
432 os=-sysv4
433 ;;
434 apollo68)
435 basic_machine=m68k-apollo
436 os=-sysv
437 ;;
438 apollo68bsd)
439 basic_machine=m68k-apollo
440 os=-bsd
441 ;;
442 aux)
443 basic_machine=m68k-apple
444 os=-aux
445 ;;
446 balance)
447 basic_machine=ns32k-sequent
448 os=-dynix
449 ;;
450 blackfin)
451 basic_machine=bfin-unknown
452 os=-linux
453 ;;
454 blackfin-*)
455 basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
456 os=-linux
457 ;;
458 c90)
459 basic_machine=c90-cray
460 os=-unicos
461 ;;
462 convex-c1)
463 basic_machine=c1-convex
464 os=-bsd
465 ;;
466 convex-c2)
467 basic_machine=c2-convex
468 os=-bsd
469 ;;
470 convex-c32)
471 basic_machine=c32-convex
472 os=-bsd
473 ;;
474 convex-c34)
475 basic_machine=c34-convex
476 os=-bsd
477 ;;
478 convex-c38)
479 basic_machine=c38-convex
480 os=-bsd
481 ;;
482 cray | j90)
483 basic_machine=j90-cray
484 os=-unicos
485 ;;
486 craynv)
487 basic_machine=craynv-cray
488 os=-unicosmp
489 ;;
490 cr16)
491 basic_machine=cr16-unknown
492 os=-elf
493 ;;
494 crds | unos)
495 basic_machine=m68k-crds
496 ;;
497 crisv32 | crisv32-* | etraxfs*)
498 basic_machine=crisv32-axis
499 ;;
500 cris | cris-* | etrax*)
501 basic_machine=cris-axis
502 ;;
503 crx)
504 basic_machine=crx-unknown
505 os=-elf
506 ;;
507 da30 | da30-*)
508 basic_machine=m68k-da30
509 ;;
510 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
511 basic_machine=mips-dec
512 ;;
513 decsystem10* | dec10*)
514 basic_machine=pdp10-dec
515 os=-tops10
516 ;;
517 decsystem20* | dec20*)
518 basic_machine=pdp10-dec
519 os=-tops20
520 ;;
521 delta | 3300 | motorola-3300 | motorola-delta \
522 | 3300-motorola | delta-motorola)
523 basic_machine=m68k-motorola
524 ;;
525 delta88)
526 basic_machine=m88k-motorola
527 os=-sysv3
528 ;;
529 djgpp)
530 basic_machine=i586-pc
531 os=-msdosdjgpp
532 ;;
533 dpx20 | dpx20-*)
534 basic_machine=rs6000-bull
535 os=-bosx
536 ;;
537 dpx2* | dpx2*-bull)
538 basic_machine=m68k-bull
539 os=-sysv3
540 ;;
541 ebmon29k)
542 basic_machine=a29k-amd
543 os=-ebmon
544 ;;
545 elxsi)
546 basic_machine=elxsi-elxsi
547 os=-bsd
548 ;;
549 encore | umax | mmax)
550 basic_machine=ns32k-encore
551 ;;
552 es1800 | OSE68k | ose68k | ose | OSE)
553 basic_machine=m68k-ericsson
554 os=-ose
555 ;;
556 fx2800)
557 basic_machine=i860-alliant
558 ;;
559 genix)
560 basic_machine=ns32k-ns
561 ;;
562 gmicro)
563 basic_machine=tron-gmicro
564 os=-sysv
565 ;;
566 go32)
567 basic_machine=i386-pc
568 os=-go32
569 ;;
570 h3050r* | hiux*)
571 basic_machine=hppa1.1-hitachi
572 os=-hiuxwe2
573 ;;
574 h8300hms)
575 basic_machine=h8300-hitachi
576 os=-hms
577 ;;
578 h8300xray)
579 basic_machine=h8300-hitachi
580 os=-xray
581 ;;
582 h8500hms)
583 basic_machine=h8500-hitachi
584 os=-hms
585 ;;
586 harris)
587 basic_machine=m88k-harris
588 os=-sysv3
589 ;;
590 hp300-*)
591 basic_machine=m68k-hp
592 ;;
593 hp300bsd)
594 basic_machine=m68k-hp
595 os=-bsd
596 ;;
597 hp300hpux)
598 basic_machine=m68k-hp
599 os=-hpux
600 ;;
601 hp3k9[0-9][0-9] | hp9[0-9][0-9])
602 basic_machine=hppa1.0-hp
603 ;;
604 hp9k2[0-9][0-9] | hp9k31[0-9])
605 basic_machine=m68000-hp
606 ;;
607 hp9k3[2-9][0-9])
608 basic_machine=m68k-hp
609 ;;
610 hp9k6[0-9][0-9] | hp6[0-9][0-9])
611 basic_machine=hppa1.0-hp
612 ;;
613 hp9k7[0-79][0-9] | hp7[0-79][0-9])
614 basic_machine=hppa1.1-hp
615 ;;
616 hp9k78[0-9] | hp78[0-9])
617 # FIXME: really hppa2.0-hp
618 basic_machine=hppa1.1-hp
619 ;;
620 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
621 # FIXME: really hppa2.0-hp
622 basic_machine=hppa1.1-hp
623 ;;
624 hp9k8[0-9][13679] | hp8[0-9][13679])
625 basic_machine=hppa1.1-hp
626 ;;
627 hp9k8[0-9][0-9] | hp8[0-9][0-9])
628 basic_machine=hppa1.0-hp
629 ;;
630 hppa-next)
631 os=-nextstep3
632 ;;
633 hppaosf)
634 basic_machine=hppa1.1-hp
635 os=-osf
636 ;;
637 hppro)
638 basic_machine=hppa1.1-hp
639 os=-proelf
640 ;;
641 i370-ibm* | ibm*)
642 basic_machine=i370-ibm
643 ;;
644# I'm not sure what "Sysv32" means. Should this be sysv3.2?
645 i*86v32)
646 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
647 os=-sysv32
648 ;;
649 i*86v4*)
650 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
651 os=-sysv4
652 ;;
653 i*86v)
654 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
655 os=-sysv
656 ;;
657 i*86sol2)
658 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
659 os=-solaris2
660 ;;
661 i386mach)
662 basic_machine=i386-mach
663 os=-mach
664 ;;
665 i386-vsta | vsta)
666 basic_machine=i386-unknown
667 os=-vsta
668 ;;
669 iris | iris4d)
670 basic_machine=mips-sgi
671 case $os in
672 -irix*)
673 ;;
674 *)
675 os=-irix4
676 ;;
677 esac
678 ;;
679 isi68 | isi)
680 basic_machine=m68k-isi
681 os=-sysv
682 ;;
683 m68knommu)
684 basic_machine=m68k-unknown
685 os=-linux
686 ;;
687 m68knommu-*)
688 basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
689 os=-linux
690 ;;
691 m88k-omron*)
692 basic_machine=m88k-omron
693 ;;
694 magnum | m3230)
695 basic_machine=mips-mips
696 os=-sysv
697 ;;
698 merlin)
699 basic_machine=ns32k-utek
700 os=-sysv
701 ;;
702 mingw32)
703 basic_machine=i386-pc
704 os=-mingw32
705 ;;
706 mingw32ce)
707 basic_machine=arm-unknown
708 os=-mingw32ce
709 ;;
710 miniframe)
711 basic_machine=m68000-convergent
712 ;;
713 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
714 basic_machine=m68k-atari
715 os=-mint
716 ;;
717 mips3*-*)
718 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
719 ;;
720 mips3*)
721 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
722 ;;
723 monitor)
724 basic_machine=m68k-rom68k
725 os=-coff
726 ;;
727 morphos)
728 basic_machine=powerpc-unknown
729 os=-morphos
730 ;;
731 msdos)
732 basic_machine=i386-pc
733 os=-msdos
734 ;;
735 ms1-*)
736 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
737 ;;
738 mvs)
739 basic_machine=i370-ibm
740 os=-mvs
741 ;;
742 ncr3000)
743 basic_machine=i486-ncr
744 os=-sysv4
745 ;;
746 netbsd386)
747 basic_machine=i386-unknown
748 os=-netbsd
749 ;;
750 netwinder)
751 basic_machine=armv4l-rebel
752 os=-linux
753 ;;
754 news | news700 | news800 | news900)
755 basic_machine=m68k-sony
756 os=-newsos
757 ;;
758 news1000)
759 basic_machine=m68030-sony
760 os=-newsos
761 ;;
762 news-3600 | risc-news)
763 basic_machine=mips-sony
764 os=-newsos
765 ;;
766 necv70)
767 basic_machine=v70-nec
768 os=-sysv
769 ;;
770 next | m*-next )
771 basic_machine=m68k-next
772 case $os in
773 -nextstep* )
774 ;;
775 -ns2*)
776 os=-nextstep2
777 ;;
778 *)
779 os=-nextstep3
780 ;;
781 esac
782 ;;
783 nh3000)
784 basic_machine=m68k-harris
785 os=-cxux
786 ;;
787 nh[45]000)
788 basic_machine=m88k-harris
789 os=-cxux
790 ;;
791 nindy960)
792 basic_machine=i960-intel
793 os=-nindy
794 ;;
795 mon960)
796 basic_machine=i960-intel
797 os=-mon960
798 ;;
799 nonstopux)
800 basic_machine=mips-compaq
801 os=-nonstopux
802 ;;
803 np1)
804 basic_machine=np1-gould
805 ;;
806 nsr-tandem)
807 basic_machine=nsr-tandem
808 ;;
809 op50n-* | op60c-*)
810 basic_machine=hppa1.1-oki
811 os=-proelf
812 ;;
813 openrisc | openrisc-*)
814 basic_machine=or32-unknown
815 ;;
816 os400)
817 basic_machine=powerpc-ibm
818 os=-os400
819 ;;
820 OSE68000 | ose68000)
821 basic_machine=m68000-ericsson
822 os=-ose
823 ;;
824 os68k)
825 basic_machine=m68k-none
826 os=-os68k
827 ;;
828 pa-hitachi)
829 basic_machine=hppa1.1-hitachi
830 os=-hiuxwe2
831 ;;
832 paragon)
833 basic_machine=i860-intel
834 os=-osf
835 ;;
836 parisc)
837 basic_machine=hppa-unknown
838 os=-linux
839 ;;
840 parisc-*)
841 basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
842 os=-linux
843 ;;
844 pbd)
845 basic_machine=sparc-tti
846 ;;
847 pbb)
848 basic_machine=m68k-tti
849 ;;
850 pc532 | pc532-*)
851 basic_machine=ns32k-pc532
852 ;;
853 pc98)
854 basic_machine=i386-pc
855 ;;
856 pc98-*)
857 basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
858 ;;
859 pentium | p5 | k5 | k6 | nexgen | viac3)
860 basic_machine=i586-pc
861 ;;
862 pentiumpro | p6 | 6x86 | athlon | athlon_*)
863 basic_machine=i686-pc
864 ;;
865 pentiumii | pentium2 | pentiumiii | pentium3)
866 basic_machine=i686-pc
867 ;;
868 pentium4)
869 basic_machine=i786-pc
870 ;;
871 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
872 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
873 ;;
874 pentiumpro-* | p6-* | 6x86-* | athlon-*)
875 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
876 ;;
877 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
878 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
879 ;;
880 pentium4-*)
881 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
882 ;;
883 pn)
884 basic_machine=pn-gould
885 ;;
886 power) basic_machine=power-ibm
887 ;;
888 ppc) basic_machine=powerpc-unknown
889 ;;
890 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
891 ;;
892 ppcle | powerpclittle | ppc-le | powerpc-little)
893 basic_machine=powerpcle-unknown
894 ;;
895 ppcle-* | powerpclittle-*)
896 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
897 ;;
898 ppc64) basic_machine=powerpc64-unknown
899 ;;
900 ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
901 ;;
902 ppc64le | powerpc64little | ppc64-le | powerpc64-little)
903 basic_machine=powerpc64le-unknown
904 ;;
905 ppc64le-* | powerpc64little-*)
906 basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
907 ;;
908 ps2)
909 basic_machine=i386-ibm
910 ;;
911 pw32)
912 basic_machine=i586-unknown
913 os=-pw32
914 ;;
915 rdos)
916 basic_machine=i386-pc
917 os=-rdos
918 ;;
919 rom68k)
920 basic_machine=m68k-rom68k
921 os=-coff
922 ;;
923 rm[46]00)
924 basic_machine=mips-siemens
925 ;;
926 rtpc | rtpc-*)
927 basic_machine=romp-ibm
928 ;;
929 s390 | s390-*)
930 basic_machine=s390-ibm
931 ;;
932 s390x | s390x-*)
933 basic_machine=s390x-ibm
934 ;;
935 sa29200)
936 basic_machine=a29k-amd
937 os=-udi
938 ;;
939 sb1)
940 basic_machine=mipsisa64sb1-unknown
941 ;;
942 sb1el)
943 basic_machine=mipsisa64sb1el-unknown
944 ;;
945 sde)
946 basic_machine=mipsisa32-sde
947 os=-elf
948 ;;
949 sei)
950 basic_machine=mips-sei
951 os=-seiux
952 ;;
953 sequent)
954 basic_machine=i386-sequent
955 ;;
956 sh)
957 basic_machine=sh-hitachi
958 os=-hms
959 ;;
960 sh5el)
961 basic_machine=sh5le-unknown
962 ;;
963 sh64)
964 basic_machine=sh64-unknown
965 ;;
966 sparclite-wrs | simso-wrs)
967 basic_machine=sparclite-wrs
968 os=-vxworks
969 ;;
970 sps7)
971 basic_machine=m68k-bull
972 os=-sysv2
973 ;;
974 spur)
975 basic_machine=spur-unknown
976 ;;
977 st2000)
978 basic_machine=m68k-tandem
979 ;;
980 stratus)
981 basic_machine=i860-stratus
982 os=-sysv4
983 ;;
984 sun2)
985 basic_machine=m68000-sun
986 ;;
987 sun2os3)
988 basic_machine=m68000-sun
989 os=-sunos3
990 ;;
991 sun2os4)
992 basic_machine=m68000-sun
993 os=-sunos4
994 ;;
995 sun3os3)
996 basic_machine=m68k-sun
997 os=-sunos3
998 ;;
999 sun3os4)
1000 basic_machine=m68k-sun
1001 os=-sunos4
1002 ;;
1003 sun4os3)
1004 basic_machine=sparc-sun
1005 os=-sunos3
1006 ;;
1007 sun4os4)
1008 basic_machine=sparc-sun
1009 os=-sunos4
1010 ;;
1011 sun4sol2)
1012 basic_machine=sparc-sun
1013 os=-solaris2
1014 ;;
1015 sun3 | sun3-*)
1016 basic_machine=m68k-sun
1017 ;;
1018 sun4)
1019 basic_machine=sparc-sun
1020 ;;
1021 sun386 | sun386i | roadrunner)
1022 basic_machine=i386-sun
1023 ;;
1024 sv1)
1025 basic_machine=sv1-cray
1026 os=-unicos
1027 ;;
1028 symmetry)
1029 basic_machine=i386-sequent
1030 os=-dynix
1031 ;;
1032 t3e)
1033 basic_machine=alphaev5-cray
1034 os=-unicos
1035 ;;
1036 t90)
1037 basic_machine=t90-cray
1038 os=-unicos
1039 ;;
1040 tic54x | c54x*)
1041 basic_machine=tic54x-unknown
1042 os=-coff
1043 ;;
1044 tic55x | c55x*)
1045 basic_machine=tic55x-unknown
1046 os=-coff
1047 ;;
1048 tic6x | c6x*)
1049 basic_machine=tic6x-unknown
1050 os=-coff
1051 ;;
1052 tile*)
1053 basic_machine=tile-unknown
1054 os=-linux-gnu
1055 ;;
1056 tx39)
1057 basic_machine=mipstx39-unknown
1058 ;;
1059 tx39el)
1060 basic_machine=mipstx39el-unknown
1061 ;;
1062 toad1)
1063 basic_machine=pdp10-xkl
1064 os=-tops20
1065 ;;
1066 tower | tower-32)
1067 basic_machine=m68k-ncr
1068 ;;
1069 tpf)
1070 basic_machine=s390x-ibm
1071 os=-tpf
1072 ;;
1073 udi29k)
1074 basic_machine=a29k-amd
1075 os=-udi
1076 ;;
1077 ultra3)
1078 basic_machine=a29k-nyu
1079 os=-sym1
1080 ;;
1081 v810 | necv810)
1082 basic_machine=v810-nec
1083 os=-none
1084 ;;
1085 vaxv)
1086 basic_machine=vax-dec
1087 os=-sysv
1088 ;;
1089 vms)
1090 basic_machine=vax-dec
1091 os=-vms
1092 ;;
1093 vpp*|vx|vx-*)
1094 basic_machine=f301-fujitsu
1095 ;;
1096 vxworks960)
1097 basic_machine=i960-wrs
1098 os=-vxworks
1099 ;;
1100 vxworks68)
1101 basic_machine=m68k-wrs
1102 os=-vxworks
1103 ;;
1104 vxworks29k)
1105 basic_machine=a29k-wrs
1106 os=-vxworks
1107 ;;
1108 w65*)
1109 basic_machine=w65-wdc
1110 os=-none
1111 ;;
1112 w89k-*)
1113 basic_machine=hppa1.1-winbond
1114 os=-proelf
1115 ;;
1116 xbox)
1117 basic_machine=i686-pc
1118 os=-mingw32
1119 ;;
1120 xps | xps100)
1121 basic_machine=xps100-honeywell
1122 ;;
1123 ymp)
1124 basic_machine=ymp-cray
1125 os=-unicos
1126 ;;
1127 z8k-*-coff)
1128 basic_machine=z8k-unknown
1129 os=-sim
1130 ;;
1131 none)
1132 basic_machine=none-none
1133 os=-none
1134 ;;
1135
1136# Here we handle the default manufacturer of certain CPU types. It is in
1137# some cases the only manufacturer, in others, it is the most popular.
1138 w89k)
1139 basic_machine=hppa1.1-winbond
1140 ;;
1141 op50n)
1142 basic_machine=hppa1.1-oki
1143 ;;
1144 op60c)
1145 basic_machine=hppa1.1-oki
1146 ;;
1147 romp)
1148 basic_machine=romp-ibm
1149 ;;
1150 mmix)
1151 basic_machine=mmix-knuth
1152 ;;
1153 rs6000)
1154 basic_machine=rs6000-ibm
1155 ;;
1156 vax)
1157 basic_machine=vax-dec
1158 ;;
1159 pdp10)
1160 # there are many clones, so DEC is not a safe bet
1161 basic_machine=pdp10-unknown
1162 ;;
1163 pdp11)
1164 basic_machine=pdp11-dec
1165 ;;
1166 we32k)
1167 basic_machine=we32k-att
1168 ;;
1169 sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
1170 basic_machine=sh-unknown
1171 ;;
1172 sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1173 basic_machine=sparc-sun
1174 ;;
1175 cydra)
1176 basic_machine=cydra-cydrome
1177 ;;
1178 orion)
1179 basic_machine=orion-highlevel
1180 ;;
1181 orion105)
1182 basic_machine=clipper-highlevel
1183 ;;
1184 mac | mpw | mac-mpw)
1185 basic_machine=m68k-apple
1186 ;;
1187 pmac | pmac-mpw)
1188 basic_machine=powerpc-apple
1189 ;;
1190 *-unknown)
1191 # Make sure to match an already-canonicalized machine name.
1192 ;;
1193 *)
1194 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
1195 exit 1
1196 ;;
1197esac
1198
1199# Here we canonicalize certain aliases for manufacturers.
1200case $basic_machine in
1201 *-digital*)
1202 basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
1203 ;;
1204 *-commodore*)
1205 basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
1206 ;;
1207 *)
1208 ;;
1209esac
1210
1211# Decode manufacturer-specific aliases for certain operating systems.
1212
1213if [ x"$os" != x"" ]
1214then
1215case $os in
1216 # First match some system type aliases
1217 # that might get confused with valid system types.
1218 # -solaris* is a basic system type, with this one exception.
1219 -solaris1 | -solaris1.*)
1220 os=`echo $os | sed -e 's|solaris1|sunos4|'`
1221 ;;
1222 -solaris)
1223 os=-solaris2
1224 ;;
1225 -svr4*)
1226 os=-sysv4
1227 ;;
1228 -unixware*)
1229 os=-sysv4.2uw
1230 ;;
1231 -gnu/linux*)
1232 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
1233 ;;
1234 # First accept the basic system types.
1235 # The portable systems comes first.
1236 # Each alternative MUST END IN A *, to match a version number.
1237 # -sysv* is not here because it comes later, after sysvr4.
1238 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1239 | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
1240 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
1241 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1242 | -aos* \
1243 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1244 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1245 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1246 | -openbsd* | -solidbsd* \
1247 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1248 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1249 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1250 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1251 | -chorusos* | -chorusrdb* \
1252 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1253 | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1254 | -uxpv* | -beos* | -mpeix* | -udk* \
1255 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1256 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1257 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1258 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1259 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1260 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1261 | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
1262 # Remember, each alternative MUST END IN *, to match a version number.
1263 ;;
1264 -qnx*)
1265 case $basic_machine in
1266 x86-* | i*86-*)
1267 ;;
1268 *)
1269 os=-nto$os
1270 ;;
1271 esac
1272 ;;
1273 -nto-qnx*)
1274 ;;
1275 -nto*)
1276 os=`echo $os | sed -e 's|nto|nto-qnx|'`
1277 ;;
1278 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1279 | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
1280 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1281 ;;
1282 -mac*)
1283 os=`echo $os | sed -e 's|mac|macos|'`
1284 ;;
1285 -linux-dietlibc)
1286 os=-linux-dietlibc
1287 ;;
1288 -linux*)
1289 os=`echo $os | sed -e 's|linux|linux-gnu|'`
1290 ;;
1291 -sunos5*)
1292 os=`echo $os | sed -e 's|sunos5|solaris2|'`
1293 ;;
1294 -sunos6*)
1295 os=`echo $os | sed -e 's|sunos6|solaris3|'`
1296 ;;
1297 -opened*)
1298 os=-openedition
1299 ;;
1300 -os400*)
1301 os=-os400
1302 ;;
1303 -wince*)
1304 os=-wince
1305 ;;
1306 -osfrose*)
1307 os=-osfrose
1308 ;;
1309 -osf*)
1310 os=-osf
1311 ;;
1312 -utek*)
1313 os=-bsd
1314 ;;
1315 -dynix*)
1316 os=-bsd
1317 ;;
1318 -acis*)
1319 os=-aos
1320 ;;
1321 -atheos*)
1322 os=-atheos
1323 ;;
1324 -syllable*)
1325 os=-syllable
1326 ;;
1327 -386bsd)
1328 os=-bsd
1329 ;;
1330 -ctix* | -uts*)
1331 os=-sysv
1332 ;;
1333 -nova*)
1334 os=-rtmk-nova
1335 ;;
1336 -ns2 )
1337 os=-nextstep2
1338 ;;
1339 -nsk*)
1340 os=-nsk
1341 ;;
1342 # Preserve the version number of sinix5.
1343 -sinix5.*)
1344 os=`echo $os | sed -e 's|sinix|sysv|'`
1345 ;;
1346 -sinix*)
1347 os=-sysv4
1348 ;;
1349 -tpf*)
1350 os=-tpf
1351 ;;
1352 -triton*)
1353 os=-sysv3
1354 ;;
1355 -oss*)
1356 os=-sysv3
1357 ;;
1358 -svr4)
1359 os=-sysv4
1360 ;;
1361 -svr3)
1362 os=-sysv3
1363 ;;
1364 -sysvr4)
1365 os=-sysv4
1366 ;;
1367 # This must come after -sysvr4.
1368 -sysv*)
1369 ;;
1370 -ose*)
1371 os=-ose
1372 ;;
1373 -es1800*)
1374 os=-ose
1375 ;;
1376 -xenix)
1377 os=-xenix
1378 ;;
1379 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1380 os=-mint
1381 ;;
1382 -aros*)
1383 os=-aros
1384 ;;
1385 -kaos*)
1386 os=-kaos
1387 ;;
1388 -zvmoe)
1389 os=-zvmoe
1390 ;;
1391 -none)
1392 ;;
1393 *)
1394 # Get rid of the `-' at the beginning of $os.
1395 os=`echo $os | sed 's/[^-]*-//'`
1396 echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
1397 exit 1
1398 ;;
1399esac
1400else
1401
1402# Here we handle the default operating systems that come with various machines.
1403# The value should be what the vendor currently ships out the door with their
1404# machine or put another way, the most popular os provided with the machine.
1405
1406# Note that if you're going to try to match "-MANUFACTURER" here (say,
1407# "-sun"), then you have to tell the case statement up towards the top
1408# that MANUFACTURER isn't an operating system. Otherwise, code above
1409# will signal an error saying that MANUFACTURER isn't an operating
1410# system, and we'll never get to this point.
1411
1412case $basic_machine in
1413 score-*)
1414 os=-elf
1415 ;;
1416 spu-*)
1417 os=-elf
1418 ;;
1419 *-acorn)
1420 os=-riscix1.2
1421 ;;
1422 arm*-rebel)
1423 os=-linux
1424 ;;
1425 arm*-semi)
1426 os=-aout
1427 ;;
1428 c4x-* | tic4x-*)
1429 os=-coff
1430 ;;
1431 # This must come before the *-dec entry.
1432 pdp10-*)
1433 os=-tops20
1434 ;;
1435 pdp11-*)
1436 os=-none
1437 ;;
1438 *-dec | vax-*)
1439 os=-ultrix4.2
1440 ;;
1441 m68*-apollo)
1442 os=-domain
1443 ;;
1444 i386-sun)
1445 os=-sunos4.0.2
1446 ;;
1447 m68000-sun)
1448 os=-sunos3
1449 # This also exists in the configure program, but was not the
1450 # default.
1451 # os=-sunos4
1452 ;;
1453 m68*-cisco)
1454 os=-aout
1455 ;;
1456 mep-*)
1457 os=-elf
1458 ;;
1459 mips*-cisco)
1460 os=-elf
1461 ;;
1462 mips*-*)
1463 os=-elf
1464 ;;
1465 or32-*)
1466 os=-coff
1467 ;;
1468 *-tti) # must be before sparc entry or we get the wrong os.
1469 os=-sysv3
1470 ;;
1471 sparc-* | *-sun)
1472 os=-sunos4.1.1
1473 ;;
1474 *-be)
1475 os=-beos
1476 ;;
1477 *-haiku)
1478 os=-haiku
1479 ;;
1480 *-ibm)
1481 os=-aix
1482 ;;
1483 *-knuth)
1484 os=-mmixware
1485 ;;
1486 *-wec)
1487 os=-proelf
1488 ;;
1489 *-winbond)
1490 os=-proelf
1491 ;;
1492 *-oki)
1493 os=-proelf
1494 ;;
1495 *-hp)
1496 os=-hpux
1497 ;;
1498 *-hitachi)
1499 os=-hiux
1500 ;;
1501 i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
1502 os=-sysv
1503 ;;
1504 *-cbm)
1505 os=-amigaos
1506 ;;
1507 *-dg)
1508 os=-dgux
1509 ;;
1510 *-dolphin)
1511 os=-sysv3
1512 ;;
1513 m68k-ccur)
1514 os=-rtu
1515 ;;
1516 m88k-omron*)
1517 os=-luna
1518 ;;
1519 *-next )
1520 os=-nextstep
1521 ;;
1522 *-sequent)
1523 os=-ptx
1524 ;;
1525 *-crds)
1526 os=-unos
1527 ;;
1528 *-ns)
1529 os=-genix
1530 ;;
1531 i370-*)
1532 os=-mvs
1533 ;;
1534 *-next)
1535 os=-nextstep3
1536 ;;
1537 *-gould)
1538 os=-sysv
1539 ;;
1540 *-highlevel)
1541 os=-bsd
1542 ;;
1543 *-encore)
1544 os=-bsd
1545 ;;
1546 *-sgi)
1547 os=-irix
1548 ;;
1549 *-siemens)
1550 os=-sysv4
1551 ;;
1552 *-masscomp)
1553 os=-rtu
1554 ;;
1555 f30[01]-fujitsu | f700-fujitsu)
1556 os=-uxpv
1557 ;;
1558 *-rom68k)
1559 os=-coff
1560 ;;
1561 *-*bug)
1562 os=-coff
1563 ;;
1564 *-apple)
1565 os=-macos
1566 ;;
1567 *-atari*)
1568 os=-mint
1569 ;;
1570 *)
1571 os=-none
1572 ;;
1573esac
1574fi
1575
1576# Here we handle the case where we know the os, and the CPU type, but not the
1577# manufacturer. We pick the logical manufacturer.
1578vendor=unknown
1579case $basic_machine in
1580 *-unknown)
1581 case $os in
1582 -riscix*)
1583 vendor=acorn
1584 ;;
1585 -sunos*)
1586 vendor=sun
1587 ;;
1588 -aix*)
1589 vendor=ibm
1590 ;;
1591 -beos*)
1592 vendor=be
1593 ;;
1594 -hpux*)
1595 vendor=hp
1596 ;;
1597 -mpeix*)
1598 vendor=hp
1599 ;;
1600 -hiux*)
1601 vendor=hitachi
1602 ;;
1603 -unos*)
1604 vendor=crds
1605 ;;
1606 -dgux*)
1607 vendor=dg
1608 ;;
1609 -luna*)
1610 vendor=omron
1611 ;;
1612 -genix*)
1613 vendor=ns
1614 ;;
1615 -mvs* | -opened*)
1616 vendor=ibm
1617 ;;
1618 -os400*)
1619 vendor=ibm
1620 ;;
1621 -ptx*)
1622 vendor=sequent
1623 ;;
1624 -tpf*)
1625 vendor=ibm
1626 ;;
1627 -vxsim* | -vxworks* | -windiss*)
1628 vendor=wrs
1629 ;;
1630 -aux*)
1631 vendor=apple
1632 ;;
1633 -hms*)
1634 vendor=hitachi
1635 ;;
1636 -mpw* | -macos*)
1637 vendor=apple
1638 ;;
1639 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1640 vendor=atari
1641 ;;
1642 -vos*)
1643 vendor=stratus
1644 ;;
1645 esac
1646 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
1647 ;;
1648esac
1649
1650echo $basic_machine$os
1651exit
1652
1653# Local variables:
1654# eval: (add-hook 'write-file-hooks 'time-stamp)
1655# time-stamp-start: "timestamp='"
1656# time-stamp-format: "%:y-%02m-%02d"
1657# time-stamp-end: "'"
1658# End:
diff --git a/src/others/mimesh/libg3d-0.0.8/config/depcomp b/src/others/mimesh/libg3d-0.0.8/config/depcomp
new file mode 100755
index 0000000..e5f9736
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/config/depcomp
@@ -0,0 +1,589 @@
1#! /bin/sh
2# depcomp - compile a program generating dependencies as side-effects
3
4scriptversion=2007-03-29.01
5
6# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007 Free Software
7# Foundation, Inc.
8
9# This program is free software; you can redistribute it and/or modify
10# it under the terms of the GNU General Public License as published by
11# the Free Software Foundation; either version 2, or (at your option)
12# any later version.
13
14# This program is distributed in the hope that it will be useful,
15# but WITHOUT ANY WARRANTY; without even the implied warranty of
16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17# GNU General Public License for more details.
18
19# You should have received a copy of the GNU General Public License
20# along with this program; if not, write to the Free Software
21# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22# 02110-1301, USA.
23
24# As a special exception to the GNU General Public License, if you
25# distribute this file as part of a program that contains a
26# configuration script generated by Autoconf, you may include it under
27# the same distribution terms that you use for the rest of that program.
28
29# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
30
31case $1 in
32 '')
33 echo "$0: No command. Try \`$0 --help' for more information." 1>&2
34 exit 1;
35 ;;
36 -h | --h*)
37 cat <<\EOF
38Usage: depcomp [--help] [--version] PROGRAM [ARGS]
39
40Run PROGRAMS ARGS to compile a file, generating dependencies
41as side-effects.
42
43Environment variables:
44 depmode Dependency tracking mode.
45 source Source file read by `PROGRAMS ARGS'.
46 object Object file output by `PROGRAMS ARGS'.
47 DEPDIR directory where to store dependencies.
48 depfile Dependency file to output.
49 tmpdepfile Temporary file to use when outputing dependencies.
50 libtool Whether libtool is used (yes/no).
51
52Report bugs to <bug-automake@gnu.org>.
53EOF
54 exit $?
55 ;;
56 -v | --v*)
57 echo "depcomp $scriptversion"
58 exit $?
59 ;;
60esac
61
62if test -z "$depmode" || test -z "$source" || test -z "$object"; then
63 echo "depcomp: Variables source, object and depmode must be set" 1>&2
64 exit 1
65fi
66
67# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
68depfile=${depfile-`echo "$object" |
69 sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
70tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
71
72rm -f "$tmpdepfile"
73
74# Some modes work just like other modes, but use different flags. We
75# parameterize here, but still list the modes in the big case below,
76# to make depend.m4 easier to write. Note that we *cannot* use a case
77# here, because this file can only contain one case statement.
78if test "$depmode" = hp; then
79 # HP compiler uses -M and no extra arg.
80 gccflag=-M
81 depmode=gcc
82fi
83
84if test "$depmode" = dashXmstdout; then
85 # This is just like dashmstdout with a different argument.
86 dashmflag=-xM
87 depmode=dashmstdout
88fi
89
90case "$depmode" in
91gcc3)
92## gcc 3 implements dependency tracking that does exactly what
93## we want. Yay! Note: for some reason libtool 1.4 doesn't like
94## it if -MD -MP comes after the -MF stuff. Hmm.
95## Unfortunately, FreeBSD c89 acceptance of flags depends upon
96## the command line argument order; so add the flags where they
97## appear in depend2.am. Note that the slowdown incurred here
98## affects only configure: in makefiles, %FASTDEP% shortcuts this.
99 for arg
100 do
101 case $arg in
102 -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
103 *) set fnord "$@" "$arg" ;;
104 esac
105 shift # fnord
106 shift # $arg
107 done
108 "$@"
109 stat=$?
110 if test $stat -eq 0; then :
111 else
112 rm -f "$tmpdepfile"
113 exit $stat
114 fi
115 mv "$tmpdepfile" "$depfile"
116 ;;
117
118gcc)
119## There are various ways to get dependency output from gcc. Here's
120## why we pick this rather obscure method:
121## - Don't want to use -MD because we'd like the dependencies to end
122## up in a subdir. Having to rename by hand is ugly.
123## (We might end up doing this anyway to support other compilers.)
124## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
125## -MM, not -M (despite what the docs say).
126## - Using -M directly means running the compiler twice (even worse
127## than renaming).
128 if test -z "$gccflag"; then
129 gccflag=-MD,
130 fi
131 "$@" -Wp,"$gccflag$tmpdepfile"
132 stat=$?
133 if test $stat -eq 0; then :
134 else
135 rm -f "$tmpdepfile"
136 exit $stat
137 fi
138 rm -f "$depfile"
139 echo "$object : \\" > "$depfile"
140 alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
141## The second -e expression handles DOS-style file names with drive letters.
142 sed -e 's/^[^:]*: / /' \
143 -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
144## This next piece of magic avoids the `deleted header file' problem.
145## The problem is that when a header file which appears in a .P file
146## is deleted, the dependency causes make to die (because there is
147## typically no way to rebuild the header). We avoid this by adding
148## dummy dependencies for each header file. Too bad gcc doesn't do
149## this for us directly.
150 tr ' ' '
151' < "$tmpdepfile" |
152## Some versions of gcc put a space before the `:'. On the theory
153## that the space means something, we add a space to the output as
154## well.
155## Some versions of the HPUX 10.20 sed can't process this invocation
156## correctly. Breaking it into two sed invocations is a workaround.
157 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
158 rm -f "$tmpdepfile"
159 ;;
160
161hp)
162 # This case exists only to let depend.m4 do its work. It works by
163 # looking at the text of this script. This case will never be run,
164 # since it is checked for above.
165 exit 1
166 ;;
167
168sgi)
169 if test "$libtool" = yes; then
170 "$@" "-Wp,-MDupdate,$tmpdepfile"
171 else
172 "$@" -MDupdate "$tmpdepfile"
173 fi
174 stat=$?
175 if test $stat -eq 0; then :
176 else
177 rm -f "$tmpdepfile"
178 exit $stat
179 fi
180 rm -f "$depfile"
181
182 if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
183 echo "$object : \\" > "$depfile"
184
185 # Clip off the initial element (the dependent). Don't try to be
186 # clever and replace this with sed code, as IRIX sed won't handle
187 # lines with more than a fixed number of characters (4096 in
188 # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
189 # the IRIX cc adds comments like `#:fec' to the end of the
190 # dependency line.
191 tr ' ' '
192' < "$tmpdepfile" \
193 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
194 tr '
195' ' ' >> $depfile
196 echo >> $depfile
197
198 # The second pass generates a dummy entry for each header file.
199 tr ' ' '
200' < "$tmpdepfile" \
201 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
202 >> $depfile
203 else
204 # The sourcefile does not contain any dependencies, so just
205 # store a dummy comment line, to avoid errors with the Makefile
206 # "include basename.Plo" scheme.
207 echo "#dummy" > "$depfile"
208 fi
209 rm -f "$tmpdepfile"
210 ;;
211
212aix)
213 # The C for AIX Compiler uses -M and outputs the dependencies
214 # in a .u file. In older versions, this file always lives in the
215 # current directory. Also, the AIX compiler puts `$object:' at the
216 # start of each line; $object doesn't have directory information.
217 # Version 6 uses the directory in both cases.
218 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
219 test "x$dir" = "x$object" && dir=
220 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
221 if test "$libtool" = yes; then
222 tmpdepfile1=$dir$base.u
223 tmpdepfile2=$base.u
224 tmpdepfile3=$dir.libs/$base.u
225 "$@" -Wc,-M
226 else
227 tmpdepfile1=$dir$base.u
228 tmpdepfile2=$dir$base.u
229 tmpdepfile3=$dir$base.u
230 "$@" -M
231 fi
232 stat=$?
233
234 if test $stat -eq 0; then :
235 else
236 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
237 exit $stat
238 fi
239
240 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
241 do
242 test -f "$tmpdepfile" && break
243 done
244 if test -f "$tmpdepfile"; then
245 # Each line is of the form `foo.o: dependent.h'.
246 # Do two passes, one to just change these to
247 # `$object: dependent.h' and one to simply `dependent.h:'.
248 sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
249 # That's a tab and a space in the [].
250 sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
251 else
252 # The sourcefile does not contain any dependencies, so just
253 # store a dummy comment line, to avoid errors with the Makefile
254 # "include basename.Plo" scheme.
255 echo "#dummy" > "$depfile"
256 fi
257 rm -f "$tmpdepfile"
258 ;;
259
260icc)
261 # Intel's C compiler understands `-MD -MF file'. However on
262 # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
263 # ICC 7.0 will fill foo.d with something like
264 # foo.o: sub/foo.c
265 # foo.o: sub/foo.h
266 # which is wrong. We want:
267 # sub/foo.o: sub/foo.c
268 # sub/foo.o: sub/foo.h
269 # sub/foo.c:
270 # sub/foo.h:
271 # ICC 7.1 will output
272 # foo.o: sub/foo.c sub/foo.h
273 # and will wrap long lines using \ :
274 # foo.o: sub/foo.c ... \
275 # sub/foo.h ... \
276 # ...
277
278 "$@" -MD -MF "$tmpdepfile"
279 stat=$?
280 if test $stat -eq 0; then :
281 else
282 rm -f "$tmpdepfile"
283 exit $stat
284 fi
285 rm -f "$depfile"
286 # Each line is of the form `foo.o: dependent.h',
287 # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
288 # Do two passes, one to just change these to
289 # `$object: dependent.h' and one to simply `dependent.h:'.
290 sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
291 # Some versions of the HPUX 10.20 sed can't process this invocation
292 # correctly. Breaking it into two sed invocations is a workaround.
293 sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
294 sed -e 's/$/ :/' >> "$depfile"
295 rm -f "$tmpdepfile"
296 ;;
297
298hp2)
299 # The "hp" stanza above does not work with aCC (C++) and HP's ia64
300 # compilers, which have integrated preprocessors. The correct option
301 # to use with these is +Maked; it writes dependencies to a file named
302 # 'foo.d', which lands next to the object file, wherever that
303 # happens to be.
304 # Much of this is similar to the tru64 case; see comments there.
305 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
306 test "x$dir" = "x$object" && dir=
307 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
308 if test "$libtool" = yes; then
309 tmpdepfile1=$dir$base.d
310 tmpdepfile2=$dir.libs/$base.d
311 "$@" -Wc,+Maked
312 else
313 tmpdepfile1=$dir$base.d
314 tmpdepfile2=$dir$base.d
315 "$@" +Maked
316 fi
317 stat=$?
318 if test $stat -eq 0; then :
319 else
320 rm -f "$tmpdepfile1" "$tmpdepfile2"
321 exit $stat
322 fi
323
324 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2"
325 do
326 test -f "$tmpdepfile" && break
327 done
328 if test -f "$tmpdepfile"; then
329 sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
330 # Add `dependent.h:' lines.
331 sed -ne '2,${; s/^ *//; s/ \\*$//; s/$/:/; p;}' "$tmpdepfile" >> "$depfile"
332 else
333 echo "#dummy" > "$depfile"
334 fi
335 rm -f "$tmpdepfile" "$tmpdepfile2"
336 ;;
337
338tru64)
339 # The Tru64 compiler uses -MD to generate dependencies as a side
340 # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
341 # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
342 # dependencies in `foo.d' instead, so we check for that too.
343 # Subdirectories are respected.
344 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
345 test "x$dir" = "x$object" && dir=
346 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
347
348 if test "$libtool" = yes; then
349 # With Tru64 cc, shared objects can also be used to make a
350 # static library. This mechanism is used in libtool 1.4 series to
351 # handle both shared and static libraries in a single compilation.
352 # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
353 #
354 # With libtool 1.5 this exception was removed, and libtool now
355 # generates 2 separate objects for the 2 libraries. These two
356 # compilations output dependencies in $dir.libs/$base.o.d and
357 # in $dir$base.o.d. We have to check for both files, because
358 # one of the two compilations can be disabled. We should prefer
359 # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
360 # automatically cleaned when .libs/ is deleted, while ignoring
361 # the former would cause a distcleancheck panic.
362 tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
363 tmpdepfile2=$dir$base.o.d # libtool 1.5
364 tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
365 tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
366 "$@" -Wc,-MD
367 else
368 tmpdepfile1=$dir$base.o.d
369 tmpdepfile2=$dir$base.d
370 tmpdepfile3=$dir$base.d
371 tmpdepfile4=$dir$base.d
372 "$@" -MD
373 fi
374
375 stat=$?
376 if test $stat -eq 0; then :
377 else
378 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
379 exit $stat
380 fi
381
382 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
383 do
384 test -f "$tmpdepfile" && break
385 done
386 if test -f "$tmpdepfile"; then
387 sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
388 # That's a tab and a space in the [].
389 sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
390 else
391 echo "#dummy" > "$depfile"
392 fi
393 rm -f "$tmpdepfile"
394 ;;
395
396#nosideeffect)
397 # This comment above is used by automake to tell side-effect
398 # dependency tracking mechanisms from slower ones.
399
400dashmstdout)
401 # Important note: in order to support this mode, a compiler *must*
402 # always write the preprocessed file to stdout, regardless of -o.
403 "$@" || exit $?
404
405 # Remove the call to Libtool.
406 if test "$libtool" = yes; then
407 while test $1 != '--mode=compile'; do
408 shift
409 done
410 shift
411 fi
412
413 # Remove `-o $object'.
414 IFS=" "
415 for arg
416 do
417 case $arg in
418 -o)
419 shift
420 ;;
421 $object)
422 shift
423 ;;
424 *)
425 set fnord "$@" "$arg"
426 shift # fnord
427 shift # $arg
428 ;;
429 esac
430 done
431
432 test -z "$dashmflag" && dashmflag=-M
433 # Require at least two characters before searching for `:'
434 # in the target name. This is to cope with DOS-style filenames:
435 # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
436 "$@" $dashmflag |
437 sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
438 rm -f "$depfile"
439 cat < "$tmpdepfile" > "$depfile"
440 tr ' ' '
441' < "$tmpdepfile" | \
442## Some versions of the HPUX 10.20 sed can't process this invocation
443## correctly. Breaking it into two sed invocations is a workaround.
444 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
445 rm -f "$tmpdepfile"
446 ;;
447
448dashXmstdout)
449 # This case only exists to satisfy depend.m4. It is never actually
450 # run, as this mode is specially recognized in the preamble.
451 exit 1
452 ;;
453
454makedepend)
455 "$@" || exit $?
456 # Remove any Libtool call
457 if test "$libtool" = yes; then
458 while test $1 != '--mode=compile'; do
459 shift
460 done
461 shift
462 fi
463 # X makedepend
464 shift
465 cleared=no
466 for arg in "$@"; do
467 case $cleared in
468 no)
469 set ""; shift
470 cleared=yes ;;
471 esac
472 case "$arg" in
473 -D*|-I*)
474 set fnord "$@" "$arg"; shift ;;
475 # Strip any option that makedepend may not understand. Remove
476 # the object too, otherwise makedepend will parse it as a source file.
477 -*|$object)
478 ;;
479 *)
480 set fnord "$@" "$arg"; shift ;;
481 esac
482 done
483 obj_suffix="`echo $object | sed 's/^.*\././'`"
484 touch "$tmpdepfile"
485 ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
486 rm -f "$depfile"
487 cat < "$tmpdepfile" > "$depfile"
488 sed '1,2d' "$tmpdepfile" | tr ' ' '
489' | \
490## Some versions of the HPUX 10.20 sed can't process this invocation
491## correctly. Breaking it into two sed invocations is a workaround.
492 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
493 rm -f "$tmpdepfile" "$tmpdepfile".bak
494 ;;
495
496cpp)
497 # Important note: in order to support this mode, a compiler *must*
498 # always write the preprocessed file to stdout.
499 "$@" || exit $?
500
501 # Remove the call to Libtool.
502 if test "$libtool" = yes; then
503 while test $1 != '--mode=compile'; do
504 shift
505 done
506 shift
507 fi
508
509 # Remove `-o $object'.
510 IFS=" "
511 for arg
512 do
513 case $arg in
514 -o)
515 shift
516 ;;
517 $object)
518 shift
519 ;;
520 *)
521 set fnord "$@" "$arg"
522 shift # fnord
523 shift # $arg
524 ;;
525 esac
526 done
527
528 "$@" -E |
529 sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
530 -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
531 sed '$ s: \\$::' > "$tmpdepfile"
532 rm -f "$depfile"
533 echo "$object : \\" > "$depfile"
534 cat < "$tmpdepfile" >> "$depfile"
535 sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
536 rm -f "$tmpdepfile"
537 ;;
538
539msvisualcpp)
540 # Important note: in order to support this mode, a compiler *must*
541 # always write the preprocessed file to stdout, regardless of -o,
542 # because we must use -o when running libtool.
543 "$@" || exit $?
544 IFS=" "
545 for arg
546 do
547 case "$arg" in
548 "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
549 set fnord "$@"
550 shift
551 shift
552 ;;
553 *)
554 set fnord "$@" "$arg"
555 shift
556 shift
557 ;;
558 esac
559 done
560 "$@" -E |
561 sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
562 rm -f "$depfile"
563 echo "$object : \\" > "$depfile"
564 . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
565 echo " " >> "$depfile"
566 . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
567 rm -f "$tmpdepfile"
568 ;;
569
570none)
571 exec "$@"
572 ;;
573
574*)
575 echo "Unknown depmode $depmode" 1>&2
576 exit 1
577 ;;
578esac
579
580exit 0
581
582# Local Variables:
583# mode: shell-script
584# sh-indentation: 2
585# eval: (add-hook 'write-file-hooks 'time-stamp)
586# time-stamp-start: "scriptversion="
587# time-stamp-format: "%:y-%02m-%02d.%02H"
588# time-stamp-end: "$"
589# End:
diff --git a/src/others/mimesh/libg3d-0.0.8/config/install-sh b/src/others/mimesh/libg3d-0.0.8/config/install-sh
new file mode 100755
index 0000000..a5897de
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/config/install-sh
@@ -0,0 +1,519 @@
1#!/bin/sh
2# install - install a program, script, or datafile
3
4scriptversion=2006-12-25.00
5
6# This originates from X11R5 (mit/util/scripts/install.sh), which was
7# later released in X11R6 (xc/config/util/install.sh) with the
8# following copyright and license.
9#
10# Copyright (C) 1994 X Consortium
11#
12# Permission is hereby granted, free of charge, to any person obtaining a copy
13# of this software and associated documentation files (the "Software"), to
14# deal in the Software without restriction, including without limitation the
15# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
16# sell copies of the Software, and to permit persons to whom the Software is
17# furnished to do so, subject to the following conditions:
18#
19# The above copyright notice and this permission notice shall be included in
20# all copies or substantial portions of the Software.
21#
22# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
26# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
27# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28#
29# Except as contained in this notice, the name of the X Consortium shall not
30# be used in advertising or otherwise to promote the sale, use or other deal-
31# ings in this Software without prior written authorization from the X Consor-
32# tium.
33#
34#
35# FSF changes to this file are in the public domain.
36#
37# Calling this script install-sh is preferred over install.sh, to prevent
38# `make' implicit rules from creating a file called install from it
39# when there is no Makefile.
40#
41# This script is compatible with the BSD install script, but was written
42# from scratch.
43
44nl='
45'
46IFS=" "" $nl"
47
48# set DOITPROG to echo to test this script
49
50# Don't use :- since 4.3BSD and earlier shells don't like it.
51doit=${DOITPROG-}
52if test -z "$doit"; then
53 doit_exec=exec
54else
55 doit_exec=$doit
56fi
57
58# Put in absolute file names if you don't have them in your path;
59# or use environment vars.
60
61chgrpprog=${CHGRPPROG-chgrp}
62chmodprog=${CHMODPROG-chmod}
63chownprog=${CHOWNPROG-chown}
64cmpprog=${CMPPROG-cmp}
65cpprog=${CPPROG-cp}
66mkdirprog=${MKDIRPROG-mkdir}
67mvprog=${MVPROG-mv}
68rmprog=${RMPROG-rm}
69stripprog=${STRIPPROG-strip}
70
71posix_glob='?'
72initialize_posix_glob='
73 test "$posix_glob" != "?" || {
74 if (set -f) 2>/dev/null; then
75 posix_glob=
76 else
77 posix_glob=:
78 fi
79 }
80'
81
82posix_mkdir=
83
84# Desired mode of installed file.
85mode=0755
86
87chgrpcmd=
88chmodcmd=$chmodprog
89chowncmd=
90mvcmd=$mvprog
91rmcmd="$rmprog -f"
92stripcmd=
93
94src=
95dst=
96dir_arg=
97dst_arg=
98
99copy_on_change=false
100no_target_directory=
101
102usage="\
103Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
104 or: $0 [OPTION]... SRCFILES... DIRECTORY
105 or: $0 [OPTION]... -t DIRECTORY SRCFILES...
106 or: $0 [OPTION]... -d DIRECTORIES...
107
108In the 1st form, copy SRCFILE to DSTFILE.
109In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
110In the 4th, create DIRECTORIES.
111
112Options:
113 --help display this help and exit.
114 --version display version info and exit.
115
116 -c (ignored)
117 -C install only if different (preserve the last data modification time)
118 -d create directories instead of installing files.
119 -g GROUP $chgrpprog installed files to GROUP.
120 -m MODE $chmodprog installed files to MODE.
121 -o USER $chownprog installed files to USER.
122 -s $stripprog installed files.
123 -t DIRECTORY install into DIRECTORY.
124 -T report an error if DSTFILE is a directory.
125
126Environment variables override the default commands:
127 CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
128 RMPROG STRIPPROG
129"
130
131while test $# -ne 0; do
132 case $1 in
133 -c) ;;
134
135 -C) copy_on_change=true;;
136
137 -d) dir_arg=true;;
138
139 -g) chgrpcmd="$chgrpprog $2"
140 shift;;
141
142 --help) echo "$usage"; exit $?;;
143
144 -m) mode=$2
145 case $mode in
146 *' '* | *' '* | *'
147'* | *'*'* | *'?'* | *'['*)
148 echo "$0: invalid mode: $mode" >&2
149 exit 1;;
150 esac
151 shift;;
152
153 -o) chowncmd="$chownprog $2"
154 shift;;
155
156 -s) stripcmd=$stripprog;;
157
158 -t) dst_arg=$2
159 shift;;
160
161 -T) no_target_directory=true;;
162
163 --version) echo "$0 $scriptversion"; exit $?;;
164
165 --) shift
166 break;;
167
168 -*) echo "$0: invalid option: $1" >&2
169 exit 1;;
170
171 *) break;;
172 esac
173 shift
174done
175
176if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
177 # When -d is used, all remaining arguments are directories to create.
178 # When -t is used, the destination is already specified.
179 # Otherwise, the last argument is the destination. Remove it from $@.
180 for arg
181 do
182 if test -n "$dst_arg"; then
183 # $@ is not empty: it contains at least $arg.
184 set fnord "$@" "$dst_arg"
185 shift # fnord
186 fi
187 shift # arg
188 dst_arg=$arg
189 done
190fi
191
192if test $# -eq 0; then
193 if test -z "$dir_arg"; then
194 echo "$0: no input file specified." >&2
195 exit 1
196 fi
197 # It's OK to call `install-sh -d' without argument.
198 # This can happen when creating conditional directories.
199 exit 0
200fi
201
202if test -z "$dir_arg"; then
203 trap '(exit $?); exit' 1 2 13 15
204
205 # Set umask so as not to create temps with too-generous modes.
206 # However, 'strip' requires both read and write access to temps.
207 case $mode in
208 # Optimize common cases.
209 *644) cp_umask=133;;
210 *755) cp_umask=22;;
211
212 *[0-7])
213 if test -z "$stripcmd"; then
214 u_plus_rw=
215 else
216 u_plus_rw='% 200'
217 fi
218 cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
219 *)
220 if test -z "$stripcmd"; then
221 u_plus_rw=
222 else
223 u_plus_rw=,u+rw
224 fi
225 cp_umask=$mode$u_plus_rw;;
226 esac
227fi
228
229for src
230do
231 # Protect names starting with `-'.
232 case $src in
233 -*) src=./$src;;
234 esac
235
236 if test -n "$dir_arg"; then
237 dst=$src
238 dstdir=$dst
239 test -d "$dstdir"
240 dstdir_status=$?
241 else
242
243 # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
244 # might cause directories to be created, which would be especially bad
245 # if $src (and thus $dsttmp) contains '*'.
246 if test ! -f "$src" && test ! -d "$src"; then
247 echo "$0: $src does not exist." >&2
248 exit 1
249 fi
250
251 if test -z "$dst_arg"; then
252 echo "$0: no destination specified." >&2
253 exit 1
254 fi
255
256 dst=$dst_arg
257 # Protect names starting with `-'.
258 case $dst in
259 -*) dst=./$dst;;
260 esac
261
262 # If destination is a directory, append the input filename; won't work
263 # if double slashes aren't ignored.
264 if test -d "$dst"; then
265 if test -n "$no_target_directory"; then
266 echo "$0: $dst_arg: Is a directory" >&2
267 exit 1
268 fi
269 dstdir=$dst
270 dst=$dstdir/`basename "$src"`
271 dstdir_status=0
272 else
273 # Prefer dirname, but fall back on a substitute if dirname fails.
274 dstdir=`
275 (dirname "$dst") 2>/dev/null ||
276 expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
277 X"$dst" : 'X\(//\)[^/]' \| \
278 X"$dst" : 'X\(//\)$' \| \
279 X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
280 echo X"$dst" |
281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
282 s//\1/
283 q
284 }
285 /^X\(\/\/\)[^/].*/{
286 s//\1/
287 q
288 }
289 /^X\(\/\/\)$/{
290 s//\1/
291 q
292 }
293 /^X\(\/\).*/{
294 s//\1/
295 q
296 }
297 s/.*/./; q'
298 `
299
300 test -d "$dstdir"
301 dstdir_status=$?
302 fi
303 fi
304
305 obsolete_mkdir_used=false
306
307 if test $dstdir_status != 0; then
308 case $posix_mkdir in
309 '')
310 # Create intermediate dirs using mode 755 as modified by the umask.
311 # This is like FreeBSD 'install' as of 1997-10-28.
312 umask=`umask`
313 case $stripcmd.$umask in
314 # Optimize common cases.
315 *[2367][2367]) mkdir_umask=$umask;;
316 .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
317
318 *[0-7])
319 mkdir_umask=`expr $umask + 22 \
320 - $umask % 100 % 40 + $umask % 20 \
321 - $umask % 10 % 4 + $umask % 2
322 `;;
323 *) mkdir_umask=$umask,go-w;;
324 esac
325
326 # With -d, create the new directory with the user-specified mode.
327 # Otherwise, rely on $mkdir_umask.
328 if test -n "$dir_arg"; then
329 mkdir_mode=-m$mode
330 else
331 mkdir_mode=
332 fi
333
334 posix_mkdir=false
335 case $umask in
336 *[123567][0-7][0-7])
337 # POSIX mkdir -p sets u+wx bits regardless of umask, which
338 # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
339 ;;
340 *)
341 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
342 trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
343
344 if (umask $mkdir_umask &&
345 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
346 then
347 if test -z "$dir_arg" || {
348 # Check for POSIX incompatibilities with -m.
349 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
350 # other-writeable bit of parent directory when it shouldn't.
351 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
352 ls_ld_tmpdir=`ls -ld "$tmpdir"`
353 case $ls_ld_tmpdir in
354 d????-?r-*) different_mode=700;;
355 d????-?--*) different_mode=755;;
356 *) false;;
357 esac &&
358 $mkdirprog -m$different_mode -p -- "$tmpdir" && {
359 ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
360 test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
361 }
362 }
363 then posix_mkdir=:
364 fi
365 rmdir "$tmpdir/d" "$tmpdir"
366 else
367 # Remove any dirs left behind by ancient mkdir implementations.
368 rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
369 fi
370 trap '' 0;;
371 esac;;
372 esac
373
374 if
375 $posix_mkdir && (
376 umask $mkdir_umask &&
377 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
378 )
379 then :
380 else
381
382 # The umask is ridiculous, or mkdir does not conform to POSIX,
383 # or it failed possibly due to a race condition. Create the
384 # directory the slow way, step by step, checking for races as we go.
385
386 case $dstdir in
387 /*) prefix='/';;
388 -*) prefix='./';;
389 *) prefix='';;
390 esac
391
392 eval "$initialize_posix_glob"
393
394 oIFS=$IFS
395 IFS=/
396 $posix_glob set -f
397 set fnord $dstdir
398 shift
399 $posix_glob set +f
400 IFS=$oIFS
401
402 prefixes=
403
404 for d
405 do
406 test -z "$d" && continue
407
408 prefix=$prefix$d
409 if test -d "$prefix"; then
410 prefixes=
411 else
412 if $posix_mkdir; then
413 (umask=$mkdir_umask &&
414 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
415 # Don't fail if two instances are running concurrently.
416 test -d "$prefix" || exit 1
417 else
418 case $prefix in
419 *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
420 *) qprefix=$prefix;;
421 esac
422 prefixes="$prefixes '$qprefix'"
423 fi
424 fi
425 prefix=$prefix/
426 done
427
428 if test -n "$prefixes"; then
429 # Don't fail if two instances are running concurrently.
430 (umask $mkdir_umask &&
431 eval "\$doit_exec \$mkdirprog $prefixes") ||
432 test -d "$dstdir" || exit 1
433 obsolete_mkdir_used=true
434 fi
435 fi
436 fi
437
438 if test -n "$dir_arg"; then
439 { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
440 { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
441 { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
442 test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
443 else
444
445 # Make a couple of temp file names in the proper directory.
446 dsttmp=$dstdir/_inst.$$_
447 rmtmp=$dstdir/_rm.$$_
448
449 # Trap to clean up those temp files at exit.
450 trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
451
452 # Copy the file name to the temp name.
453 (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
454
455 # and set any options; do chmod last to preserve setuid bits.
456 #
457 # If any of these fail, we abort the whole thing. If we want to
458 # ignore errors from any of these, just make sure not to ignore
459 # errors from the above "$doit $cpprog $src $dsttmp" command.
460 #
461 { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
462 { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
463 { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
464 { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
465
466 # If -C, don't bother to copy if it wouldn't change the file.
467 if $copy_on_change &&
468 old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
469 new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
470
471 eval "$initialize_posix_glob" &&
472 $posix_glob set -f &&
473 set X $old && old=:$2:$4:$5:$6 &&
474 set X $new && new=:$2:$4:$5:$6 &&
475 $posix_glob set +f &&
476
477 test "$old" = "$new" &&
478 $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
479 then
480 rm -f "$dsttmp"
481 else
482 # Rename the file to the real destination.
483 $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
484
485 # The rename failed, perhaps because mv can't rename something else
486 # to itself, or perhaps because mv is so ancient that it does not
487 # support -f.
488 {
489 # Now remove or move aside any old file at destination location.
490 # We try this two ways since rm can't unlink itself on some
491 # systems and the destination file might be busy for other
492 # reasons. In this case, the final cleanup might fail but the new
493 # file should still install successfully.
494 {
495 test ! -f "$dst" ||
496 $doit $rmcmd -f "$dst" 2>/dev/null ||
497 { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
498 { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
499 } ||
500 { echo "$0: cannot unlink or rename $dst" >&2
501 (exit 1); exit 1
502 }
503 } &&
504
505 # Now rename the file to the real destination.
506 $doit $mvcmd "$dsttmp" "$dst"
507 }
508 fi || exit 1
509
510 trap '' 0
511 fi
512done
513
514# Local variables:
515# eval: (add-hook 'write-file-hooks 'time-stamp)
516# time-stamp-start: "scriptversion="
517# time-stamp-format: "%:y-%02m-%02d.%02H"
518# time-stamp-end: "$"
519# End:
diff --git a/src/others/mimesh/libg3d-0.0.8/config/ltmain.sh b/src/others/mimesh/libg3d-0.0.8/config/ltmain.sh
new file mode 100644
index 0000000..0bf3848
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/config/ltmain.sh
@@ -0,0 +1,6964 @@
1# ltmain.sh - Provide generalized library-building support services.
2# NOTE: Changing this file will not affect anything until you rerun configure.
3#
4# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
5# 2007, 2008 Free Software Foundation, Inc.
6# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7#
8# This program is free software; you can redistribute it and/or modify
9# it under the terms of the GNU General Public License as published by
10# the Free Software Foundation; either version 2 of the License, or
11# (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful, but
14# WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16# General Public License for more details.
17#
18# You should have received a copy of the GNU General Public License
19# along with this program; if not, write to the Free Software
20# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21#
22# As a special exception to the GNU General Public License, if you
23# distribute this file as part of a program that contains a
24# configuration script generated by Autoconf, you may include it under
25# the same distribution terms that you use for the rest of that program.
26
27basename="s,^.*/,,g"
28
29# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
30# is ksh but when the shell is invoked as "sh" and the current value of
31# the _XPG environment variable is not equal to 1 (one), the special
32# positional parameter $0, within a function call, is the name of the
33# function.
34progpath="$0"
35
36# The name of this program:
37progname=`echo "$progpath" | $SED $basename`
38modename="$progname"
39
40# Global variables:
41EXIT_SUCCESS=0
42EXIT_FAILURE=1
43
44PROGRAM=ltmain.sh
45PACKAGE=libtool
46VERSION="1.5.26 Debian 1.5.26-4"
47TIMESTAMP=" (1.1220.2.493 2008/02/01 16:58:18)"
48
49# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
50if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
51 emulate sh
52 NULLCMD=:
53 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
54 # is contrary to our usage. Disable this feature.
55 alias -g '${1+"$@"}'='"$@"'
56 setopt NO_GLOB_SUBST
57else
58 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
59fi
60BIN_SH=xpg4; export BIN_SH # for Tru64
61DUALCASE=1; export DUALCASE # for MKS sh
62
63# Check that we have a working $echo.
64if test "X$1" = X--no-reexec; then
65 # Discard the --no-reexec flag, and continue.
66 shift
67elif test "X$1" = X--fallback-echo; then
68 # Avoid inline document here, it may be left over
69 :
70elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
71 # Yippee, $echo works!
72 :
73else
74 # Restart under the correct shell, and then maybe $echo will work.
75 exec $SHELL "$progpath" --no-reexec ${1+"$@"}
76fi
77
78if test "X$1" = X--fallback-echo; then
79 # used as fallback echo
80 shift
81 cat <<EOF
82$*
83EOF
84 exit $EXIT_SUCCESS
85fi
86
87default_mode=
88help="Try \`$progname --help' for more information."
89magic="%%%MAGIC variable%%%"
90mkdir="mkdir"
91mv="mv -f"
92rm="rm -f"
93
94# Sed substitution that helps us do robust quoting. It backslashifies
95# metacharacters that are still active within double-quoted strings.
96Xsed="${SED}"' -e 1s/^X//'
97sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
98# test EBCDIC or ASCII
99case `echo X|tr X '\101'` in
100 A) # ASCII based system
101 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
102 SP2NL='tr \040 \012'
103 NL2SP='tr \015\012 \040\040'
104 ;;
105 *) # EBCDIC based system
106 SP2NL='tr \100 \n'
107 NL2SP='tr \r\n \100\100'
108 ;;
109esac
110
111# NLS nuisances.
112# Only set LANG and LC_ALL to C if already set.
113# These must not be set unconditionally because not all systems understand
114# e.g. LANG=C (notably SCO).
115# We save the old values to restore during execute mode.
116lt_env=
117for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
118do
119 eval "if test \"\${$lt_var+set}\" = set; then
120 save_$lt_var=\$$lt_var
121 lt_env=\"$lt_var=\$$lt_var \$lt_env\"
122 $lt_var=C
123 export $lt_var
124 fi"
125done
126
127if test -n "$lt_env"; then
128 lt_env="env $lt_env"
129fi
130
131# Make sure IFS has a sensible default
132lt_nl='
133'
134IFS=" $lt_nl"
135
136if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
137 $echo "$modename: not configured to build any kind of library" 1>&2
138 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
139 exit $EXIT_FAILURE
140fi
141
142# Global variables.
143mode=$default_mode
144nonopt=
145prev=
146prevopt=
147run=
148show="$echo"
149show_help=
150execute_dlfiles=
151duplicate_deps=no
152preserve_args=
153lo2o="s/\\.lo\$/.${objext}/"
154o2lo="s/\\.${objext}\$/.lo/"
155extracted_archives=
156extracted_serial=0
157
158#####################################
159# Shell function definitions:
160# This seems to be the best place for them
161
162# func_mktempdir [string]
163# Make a temporary directory that won't clash with other running
164# libtool processes, and avoids race conditions if possible. If
165# given, STRING is the basename for that directory.
166func_mktempdir ()
167{
168 my_template="${TMPDIR-/tmp}/${1-$progname}"
169
170 if test "$run" = ":"; then
171 # Return a directory name, but don't create it in dry-run mode
172 my_tmpdir="${my_template}-$$"
173 else
174
175 # If mktemp works, use that first and foremost
176 my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
177
178 if test ! -d "$my_tmpdir"; then
179 # Failing that, at least try and use $RANDOM to avoid a race
180 my_tmpdir="${my_template}-${RANDOM-0}$$"
181
182 save_mktempdir_umask=`umask`
183 umask 0077
184 $mkdir "$my_tmpdir"
185 umask $save_mktempdir_umask
186 fi
187
188 # If we're not in dry-run mode, bomb out on failure
189 test -d "$my_tmpdir" || {
190 $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2
191 exit $EXIT_FAILURE
192 }
193 fi
194
195 $echo "X$my_tmpdir" | $Xsed
196}
197
198
199# func_win32_libid arg
200# return the library type of file 'arg'
201#
202# Need a lot of goo to handle *both* DLLs and import libs
203# Has to be a shell function in order to 'eat' the argument
204# that is supplied when $file_magic_command is called.
205func_win32_libid ()
206{
207 win32_libid_type="unknown"
208 win32_fileres=`file -L $1 2>/dev/null`
209 case $win32_fileres in
210 *ar\ archive\ import\ library*) # definitely import
211 win32_libid_type="x86 archive import"
212 ;;
213 *ar\ archive*) # could be an import, or static
214 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
215 $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
216 win32_nmres=`eval $NM -f posix -A $1 | \
217 $SED -n -e '1,100{
218 / I /{
219 s,.*,import,
220 p
221 q
222 }
223 }'`
224 case $win32_nmres in
225 import*) win32_libid_type="x86 archive import";;
226 *) win32_libid_type="x86 archive static";;
227 esac
228 fi
229 ;;
230 *DLL*)
231 win32_libid_type="x86 DLL"
232 ;;
233 *executable*) # but shell scripts are "executable" too...
234 case $win32_fileres in
235 *MS\ Windows\ PE\ Intel*)
236 win32_libid_type="x86 DLL"
237 ;;
238 esac
239 ;;
240 esac
241 $echo $win32_libid_type
242}
243
244
245# func_infer_tag arg
246# Infer tagged configuration to use if any are available and
247# if one wasn't chosen via the "--tag" command line option.
248# Only attempt this if the compiler in the base compile
249# command doesn't match the default compiler.
250# arg is usually of the form 'gcc ...'
251func_infer_tag ()
252{
253 if test -n "$available_tags" && test -z "$tagname"; then
254 CC_quoted=
255 for arg in $CC; do
256 case $arg in
257 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
258 arg="\"$arg\""
259 ;;
260 esac
261 CC_quoted="$CC_quoted $arg"
262 done
263 case $@ in
264 # Blanks in the command may have been stripped by the calling shell,
265 # but not from the CC environment variable when configure was run.
266 " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;;
267 # Blanks at the start of $base_compile will cause this to fail
268 # if we don't check for them as well.
269 *)
270 for z in $available_tags; do
271 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
272 # Evaluate the configuration.
273 eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
274 CC_quoted=
275 for arg in $CC; do
276 # Double-quote args containing other shell metacharacters.
277 case $arg in
278 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
279 arg="\"$arg\""
280 ;;
281 esac
282 CC_quoted="$CC_quoted $arg"
283 done
284 case "$@ " in
285 " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
286 # The compiler in the base compile command matches
287 # the one in the tagged configuration.
288 # Assume this is the tagged configuration we want.
289 tagname=$z
290 break
291 ;;
292 esac
293 fi
294 done
295 # If $tagname still isn't set, then no tagged configuration
296 # was found and let the user know that the "--tag" command
297 # line option must be used.
298 if test -z "$tagname"; then
299 $echo "$modename: unable to infer tagged configuration"
300 $echo "$modename: specify a tag with \`--tag'" 1>&2
301 exit $EXIT_FAILURE
302# else
303# $echo "$modename: using $tagname tagged configuration"
304 fi
305 ;;
306 esac
307 fi
308}
309
310
311# func_extract_an_archive dir oldlib
312func_extract_an_archive ()
313{
314 f_ex_an_ar_dir="$1"; shift
315 f_ex_an_ar_oldlib="$1"
316
317 $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)"
318 $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $?
319 if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
320 :
321 else
322 $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2
323 exit $EXIT_FAILURE
324 fi
325}
326
327# func_extract_archives gentop oldlib ...
328func_extract_archives ()
329{
330 my_gentop="$1"; shift
331 my_oldlibs=${1+"$@"}
332 my_oldobjs=""
333 my_xlib=""
334 my_xabs=""
335 my_xdir=""
336 my_status=""
337
338 $show "${rm}r $my_gentop"
339 $run ${rm}r "$my_gentop"
340 $show "$mkdir $my_gentop"
341 $run $mkdir "$my_gentop"
342 my_status=$?
343 if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then
344 exit $my_status
345 fi
346
347 for my_xlib in $my_oldlibs; do
348 # Extract the objects.
349 case $my_xlib in
350 [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
351 *) my_xabs=`pwd`"/$my_xlib" ;;
352 esac
353 my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
354 my_xlib_u=$my_xlib
355 while :; do
356 case " $extracted_archives " in
357 *" $my_xlib_u "*)
358 extracted_serial=`expr $extracted_serial + 1`
359 my_xlib_u=lt$extracted_serial-$my_xlib ;;
360 *) break ;;
361 esac
362 done
363 extracted_archives="$extracted_archives $my_xlib_u"
364 my_xdir="$my_gentop/$my_xlib_u"
365
366 $show "${rm}r $my_xdir"
367 $run ${rm}r "$my_xdir"
368 $show "$mkdir $my_xdir"
369 $run $mkdir "$my_xdir"
370 exit_status=$?
371 if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then
372 exit $exit_status
373 fi
374 case $host in
375 *-darwin*)
376 $show "Extracting $my_xabs"
377 # Do not bother doing anything if just a dry run
378 if test -z "$run"; then
379 darwin_orig_dir=`pwd`
380 cd $my_xdir || exit $?
381 darwin_archive=$my_xabs
382 darwin_curdir=`pwd`
383 darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'`
384 darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null`
385 if test -n "$darwin_arches"; then
386 darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'`
387 darwin_arch=
388 $show "$darwin_base_archive has multiple architectures $darwin_arches"
389 for darwin_arch in $darwin_arches ; do
390 mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
391 lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
392 cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
393 func_extract_an_archive "`pwd`" "${darwin_base_archive}"
394 cd "$darwin_curdir"
395 $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
396 done # $darwin_arches
397 ## Okay now we have a bunch of thin objects, gotta fatten them up :)
398 darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP`
399 darwin_file=
400 darwin_files=
401 for darwin_file in $darwin_filelist; do
402 darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
403 lipo -create -output "$darwin_file" $darwin_files
404 done # $darwin_filelist
405 ${rm}r unfat-$$
406 cd "$darwin_orig_dir"
407 else
408 cd "$darwin_orig_dir"
409 func_extract_an_archive "$my_xdir" "$my_xabs"
410 fi # $darwin_arches
411 fi # $run
412 ;;
413 *)
414 func_extract_an_archive "$my_xdir" "$my_xabs"
415 ;;
416 esac
417 my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
418 done
419 func_extract_archives_result="$my_oldobjs"
420}
421# End of Shell function definitions
422#####################################
423
424# Darwin sucks
425eval std_shrext=\"$shrext_cmds\"
426
427disable_libs=no
428
429# Parse our command line options once, thoroughly.
430while test "$#" -gt 0
431do
432 arg="$1"
433 shift
434
435 case $arg in
436 -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
437 *) optarg= ;;
438 esac
439
440 # If the previous option needs an argument, assign it.
441 if test -n "$prev"; then
442 case $prev in
443 execute_dlfiles)
444 execute_dlfiles="$execute_dlfiles $arg"
445 ;;
446 tag)
447 tagname="$arg"
448 preserve_args="${preserve_args}=$arg"
449
450 # Check whether tagname contains only valid characters
451 case $tagname in
452 *[!-_A-Za-z0-9,/]*)
453 $echo "$progname: invalid tag name: $tagname" 1>&2
454 exit $EXIT_FAILURE
455 ;;
456 esac
457
458 case $tagname in
459 CC)
460 # Don't test for the "default" C tag, as we know, it's there, but
461 # not specially marked.
462 ;;
463 *)
464 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then
465 taglist="$taglist $tagname"
466 # Evaluate the configuration.
467 eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`"
468 else
469 $echo "$progname: ignoring unknown tag $tagname" 1>&2
470 fi
471 ;;
472 esac
473 ;;
474 *)
475 eval "$prev=\$arg"
476 ;;
477 esac
478
479 prev=
480 prevopt=
481 continue
482 fi
483
484 # Have we seen a non-optional argument yet?
485 case $arg in
486 --help)
487 show_help=yes
488 ;;
489
490 --version)
491 echo "\
492$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP
493
494Copyright (C) 2008 Free Software Foundation, Inc.
495This is free software; see the source for copying conditions. There is NO
496warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
497 exit $?
498 ;;
499
500 --config)
501 ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath
502 # Now print the configurations for the tags.
503 for tagname in $taglist; do
504 ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
505 done
506 exit $?
507 ;;
508
509 --debug)
510 $echo "$progname: enabling shell trace mode"
511 set -x
512 preserve_args="$preserve_args $arg"
513 ;;
514
515 --dry-run | -n)
516 run=:
517 ;;
518
519 --features)
520 $echo "host: $host"
521 if test "$build_libtool_libs" = yes; then
522 $echo "enable shared libraries"
523 else
524 $echo "disable shared libraries"
525 fi
526 if test "$build_old_libs" = yes; then
527 $echo "enable static libraries"
528 else
529 $echo "disable static libraries"
530 fi
531 exit $?
532 ;;
533
534 --finish) mode="finish" ;;
535
536 --mode) prevopt="--mode" prev=mode ;;
537 --mode=*) mode="$optarg" ;;
538
539 --preserve-dup-deps) duplicate_deps="yes" ;;
540
541 --quiet | --silent)
542 show=:
543 preserve_args="$preserve_args $arg"
544 ;;
545
546 --tag)
547 prevopt="--tag"
548 prev=tag
549 preserve_args="$preserve_args --tag"
550 ;;
551 --tag=*)
552 set tag "$optarg" ${1+"$@"}
553 shift
554 prev=tag
555 preserve_args="$preserve_args --tag"
556 ;;
557
558 -dlopen)
559 prevopt="-dlopen"
560 prev=execute_dlfiles
561 ;;
562
563 -*)
564 $echo "$modename: unrecognized option \`$arg'" 1>&2
565 $echo "$help" 1>&2
566 exit $EXIT_FAILURE
567 ;;
568
569 *)
570 nonopt="$arg"
571 break
572 ;;
573 esac
574done
575
576if test -n "$prevopt"; then
577 $echo "$modename: option \`$prevopt' requires an argument" 1>&2
578 $echo "$help" 1>&2
579 exit $EXIT_FAILURE
580fi
581
582case $disable_libs in
583no)
584 ;;
585shared)
586 build_libtool_libs=no
587 build_old_libs=yes
588 ;;
589static)
590 build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
591 ;;
592esac
593
594# If this variable is set in any of the actions, the command in it
595# will be execed at the end. This prevents here-documents from being
596# left over by shells.
597exec_cmd=
598
599if test -z "$show_help"; then
600
601 # Infer the operation mode.
602 if test -z "$mode"; then
603 $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
604 $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2
605 case $nonopt in
606 *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
607 mode=link
608 for arg
609 do
610 case $arg in
611 -c)
612 mode=compile
613 break
614 ;;
615 esac
616 done
617 ;;
618 *db | *dbx | *strace | *truss)
619 mode=execute
620 ;;
621 *install*|cp|mv)
622 mode=install
623 ;;
624 *rm)
625 mode=uninstall
626 ;;
627 *)
628 # If we have no mode, but dlfiles were specified, then do execute mode.
629 test -n "$execute_dlfiles" && mode=execute
630
631 # Just use the default operation mode.
632 if test -z "$mode"; then
633 if test -n "$nonopt"; then
634 $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2
635 else
636 $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2
637 fi
638 fi
639 ;;
640 esac
641 fi
642
643 # Only execute mode is allowed to have -dlopen flags.
644 if test -n "$execute_dlfiles" && test "$mode" != execute; then
645 $echo "$modename: unrecognized option \`-dlopen'" 1>&2
646 $echo "$help" 1>&2
647 exit $EXIT_FAILURE
648 fi
649
650 # Change the help message to a mode-specific one.
651 generic_help="$help"
652 help="Try \`$modename --help --mode=$mode' for more information."
653
654 # These modes are in order of execution frequency so that they run quickly.
655 case $mode in
656 # libtool compile mode
657 compile)
658 modename="$modename: compile"
659 # Get the compilation command and the source file.
660 base_compile=
661 srcfile="$nonopt" # always keep a non-empty value in "srcfile"
662 suppress_opt=yes
663 suppress_output=
664 arg_mode=normal
665 libobj=
666 later=
667
668 for arg
669 do
670 case $arg_mode in
671 arg )
672 # do not "continue". Instead, add this to base_compile
673 lastarg="$arg"
674 arg_mode=normal
675 ;;
676
677 target )
678 libobj="$arg"
679 arg_mode=normal
680 continue
681 ;;
682
683 normal )
684 # Accept any command-line options.
685 case $arg in
686 -o)
687 if test -n "$libobj" ; then
688 $echo "$modename: you cannot specify \`-o' more than once" 1>&2
689 exit $EXIT_FAILURE
690 fi
691 arg_mode=target
692 continue
693 ;;
694
695 -static | -prefer-pic | -prefer-non-pic)
696 later="$later $arg"
697 continue
698 ;;
699
700 -no-suppress)
701 suppress_opt=no
702 continue
703 ;;
704
705 -Xcompiler)
706 arg_mode=arg # the next one goes into the "base_compile" arg list
707 continue # The current "srcfile" will either be retained or
708 ;; # replaced later. I would guess that would be a bug.
709
710 -Wc,*)
711 args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
712 lastarg=
713 save_ifs="$IFS"; IFS=','
714 for arg in $args; do
715 IFS="$save_ifs"
716
717 # Double-quote args containing other shell metacharacters.
718 # Many Bourne shells cannot handle close brackets correctly
719 # in scan sets, so we specify it separately.
720 case $arg in
721 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
722 arg="\"$arg\""
723 ;;
724 esac
725 lastarg="$lastarg $arg"
726 done
727 IFS="$save_ifs"
728 lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
729
730 # Add the arguments to base_compile.
731 base_compile="$base_compile $lastarg"
732 continue
733 ;;
734
735 * )
736 # Accept the current argument as the source file.
737 # The previous "srcfile" becomes the current argument.
738 #
739 lastarg="$srcfile"
740 srcfile="$arg"
741 ;;
742 esac # case $arg
743 ;;
744 esac # case $arg_mode
745
746 # Aesthetically quote the previous argument.
747 lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
748
749 case $lastarg in
750 # Double-quote args containing other shell metacharacters.
751 # Many Bourne shells cannot handle close brackets correctly
752 # in scan sets, and some SunOS ksh mistreat backslash-escaping
753 # in scan sets (worked around with variable expansion),
754 # and furthermore cannot handle '|' '&' '(' ')' in scan sets
755 # at all, so we specify them separately.
756 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
757 lastarg="\"$lastarg\""
758 ;;
759 esac
760
761 base_compile="$base_compile $lastarg"
762 done # for arg
763
764 case $arg_mode in
765 arg)
766 $echo "$modename: you must specify an argument for -Xcompile"
767 exit $EXIT_FAILURE
768 ;;
769 target)
770 $echo "$modename: you must specify a target with \`-o'" 1>&2
771 exit $EXIT_FAILURE
772 ;;
773 *)
774 # Get the name of the library object.
775 [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
776 ;;
777 esac
778
779 # Recognize several different file suffixes.
780 # If the user specifies -o file.o, it is replaced with file.lo
781 xform='[cCFSifmso]'
782 case $libobj in
783 *.ada) xform=ada ;;
784 *.adb) xform=adb ;;
785 *.ads) xform=ads ;;
786 *.asm) xform=asm ;;
787 *.c++) xform=c++ ;;
788 *.cc) xform=cc ;;
789 *.ii) xform=ii ;;
790 *.class) xform=class ;;
791 *.cpp) xform=cpp ;;
792 *.cxx) xform=cxx ;;
793 *.[fF][09]?) xform=[fF][09]. ;;
794 *.for) xform=for ;;
795 *.java) xform=java ;;
796 *.obj) xform=obj ;;
797 *.sx) xform=sx ;;
798 esac
799
800 libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
801
802 case $libobj in
803 *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
804 *)
805 $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
806 exit $EXIT_FAILURE
807 ;;
808 esac
809
810 func_infer_tag $base_compile
811
812 for arg in $later; do
813 case $arg in
814 -static)
815 build_old_libs=yes
816 continue
817 ;;
818
819 -prefer-pic)
820 pic_mode=yes
821 continue
822 ;;
823
824 -prefer-non-pic)
825 pic_mode=no
826 continue
827 ;;
828 esac
829 done
830
831 qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"`
832 case $qlibobj in
833 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
834 qlibobj="\"$qlibobj\"" ;;
835 esac
836 test "X$libobj" != "X$qlibobj" \
837 && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \
838 && $echo "$modename: libobj name \`$libobj' may not contain shell special characters."
839 objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
840 xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
841 if test "X$xdir" = "X$obj"; then
842 xdir=
843 else
844 xdir=$xdir/
845 fi
846 lobj=${xdir}$objdir/$objname
847
848 if test -z "$base_compile"; then
849 $echo "$modename: you must specify a compilation command" 1>&2
850 $echo "$help" 1>&2
851 exit $EXIT_FAILURE
852 fi
853
854 # Delete any leftover library objects.
855 if test "$build_old_libs" = yes; then
856 removelist="$obj $lobj $libobj ${libobj}T"
857 else
858 removelist="$lobj $libobj ${libobj}T"
859 fi
860
861 $run $rm $removelist
862 trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
863
864 # On Cygwin there's no "real" PIC flag so we must build both object types
865 case $host_os in
866 cygwin* | mingw* | pw32* | os2*)
867 pic_mode=default
868 ;;
869 esac
870 if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
871 # non-PIC code in shared libraries is not supported
872 pic_mode=default
873 fi
874
875 # Calculate the filename of the output object if compiler does
876 # not support -o with -c
877 if test "$compiler_c_o" = no; then
878 output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
879 lockfile="$output_obj.lock"
880 removelist="$removelist $output_obj $lockfile"
881 trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
882 else
883 output_obj=
884 need_locks=no
885 lockfile=
886 fi
887
888 # Lock this critical section if it is needed
889 # We use this script file to make the link, it avoids creating a new file
890 if test "$need_locks" = yes; then
891 until $run ln "$progpath" "$lockfile" 2>/dev/null; do
892 $show "Waiting for $lockfile to be removed"
893 sleep 2
894 done
895 elif test "$need_locks" = warn; then
896 if test -f "$lockfile"; then
897 $echo "\
898*** ERROR, $lockfile exists and contains:
899`cat $lockfile 2>/dev/null`
900
901This indicates that another process is trying to use the same
902temporary object file, and libtool could not work around it because
903your compiler does not support \`-c' and \`-o' together. If you
904repeat this compilation, it may succeed, by chance, but you had better
905avoid parallel builds (make -j) in this platform, or get a better
906compiler."
907
908 $run $rm $removelist
909 exit $EXIT_FAILURE
910 fi
911 $echo "$srcfile" > "$lockfile"
912 fi
913
914 if test -n "$fix_srcfile_path"; then
915 eval srcfile=\"$fix_srcfile_path\"
916 fi
917 qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"`
918 case $qsrcfile in
919 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
920 qsrcfile="\"$qsrcfile\"" ;;
921 esac
922
923 $run $rm "$libobj" "${libobj}T"
924
925 # Create a libtool object file (analogous to a ".la" file),
926 # but don't create it if we're doing a dry run.
927 test -z "$run" && cat > ${libobj}T <<EOF
928# $libobj - a libtool object file
929# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
930#
931# Please DO NOT delete this file!
932# It is necessary for linking the library.
933
934# Name of the PIC object.
935EOF
936
937 # Only build a PIC object if we are building libtool libraries.
938 if test "$build_libtool_libs" = yes; then
939 # Without this assignment, base_compile gets emptied.
940 fbsd_hideous_sh_bug=$base_compile
941
942 if test "$pic_mode" != no; then
943 command="$base_compile $qsrcfile $pic_flag"
944 else
945 # Don't build PIC code
946 command="$base_compile $qsrcfile"
947 fi
948
949 if test ! -d "${xdir}$objdir"; then
950 $show "$mkdir ${xdir}$objdir"
951 $run $mkdir ${xdir}$objdir
952 exit_status=$?
953 if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then
954 exit $exit_status
955 fi
956 fi
957
958 if test -z "$output_obj"; then
959 # Place PIC objects in $objdir
960 command="$command -o $lobj"
961 fi
962
963 $run $rm "$lobj" "$output_obj"
964
965 $show "$command"
966 if $run eval $lt_env "$command"; then :
967 else
968 test -n "$output_obj" && $run $rm $removelist
969 exit $EXIT_FAILURE
970 fi
971
972 if test "$need_locks" = warn &&
973 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
974 $echo "\
975*** ERROR, $lockfile contains:
976`cat $lockfile 2>/dev/null`
977
978but it should contain:
979$srcfile
980
981This indicates that another process is trying to use the same
982temporary object file, and libtool could not work around it because
983your compiler does not support \`-c' and \`-o' together. If you
984repeat this compilation, it may succeed, by chance, but you had better
985avoid parallel builds (make -j) in this platform, or get a better
986compiler."
987
988 $run $rm $removelist
989 exit $EXIT_FAILURE
990 fi
991
992 # Just move the object if needed, then go on to compile the next one
993 if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
994 $show "$mv $output_obj $lobj"
995 if $run $mv $output_obj $lobj; then :
996 else
997 error=$?
998 $run $rm $removelist
999 exit $error
1000 fi
1001 fi
1002
1003 # Append the name of the PIC object to the libtool object file.
1004 test -z "$run" && cat >> ${libobj}T <<EOF
1005pic_object='$objdir/$objname'
1006
1007EOF
1008
1009 # Allow error messages only from the first compilation.
1010 if test "$suppress_opt" = yes; then
1011 suppress_output=' >/dev/null 2>&1'
1012 fi
1013 else
1014 # No PIC object so indicate it doesn't exist in the libtool
1015 # object file.
1016 test -z "$run" && cat >> ${libobj}T <<EOF
1017pic_object=none
1018
1019EOF
1020 fi
1021
1022 # Only build a position-dependent object if we build old libraries.
1023 if test "$build_old_libs" = yes; then
1024 if test "$pic_mode" != yes; then
1025 # Don't build PIC code
1026 command="$base_compile $qsrcfile"
1027 else
1028 command="$base_compile $qsrcfile $pic_flag"
1029 fi
1030 if test "$compiler_c_o" = yes; then
1031 command="$command -o $obj"
1032 fi
1033
1034 # Suppress compiler output if we already did a PIC compilation.
1035 command="$command$suppress_output"
1036 $run $rm "$obj" "$output_obj"
1037 $show "$command"
1038 if $run eval $lt_env "$command"; then :
1039 else
1040 $run $rm $removelist
1041 exit $EXIT_FAILURE
1042 fi
1043
1044 if test "$need_locks" = warn &&
1045 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
1046 $echo "\
1047*** ERROR, $lockfile contains:
1048`cat $lockfile 2>/dev/null`
1049
1050but it should contain:
1051$srcfile
1052
1053This indicates that another process is trying to use the same
1054temporary object file, and libtool could not work around it because
1055your compiler does not support \`-c' and \`-o' together. If you
1056repeat this compilation, it may succeed, by chance, but you had better
1057avoid parallel builds (make -j) in this platform, or get a better
1058compiler."
1059
1060 $run $rm $removelist
1061 exit $EXIT_FAILURE
1062 fi
1063
1064 # Just move the object if needed
1065 if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
1066 $show "$mv $output_obj $obj"
1067 if $run $mv $output_obj $obj; then :
1068 else
1069 error=$?
1070 $run $rm $removelist
1071 exit $error
1072 fi
1073 fi
1074
1075 # Append the name of the non-PIC object the libtool object file.
1076 # Only append if the libtool object file exists.
1077 test -z "$run" && cat >> ${libobj}T <<EOF
1078# Name of the non-PIC object.
1079non_pic_object='$objname'
1080
1081EOF
1082 else
1083 # Append the name of the non-PIC object the libtool object file.
1084 # Only append if the libtool object file exists.
1085 test -z "$run" && cat >> ${libobj}T <<EOF
1086# Name of the non-PIC object.
1087non_pic_object=none
1088
1089EOF
1090 fi
1091
1092 $run $mv "${libobj}T" "${libobj}"
1093
1094 # Unlock the critical section if it was locked
1095 if test "$need_locks" != no; then
1096 $run $rm "$lockfile"
1097 fi
1098
1099 exit $EXIT_SUCCESS
1100 ;;
1101
1102 # libtool link mode
1103 link | relink)
1104 modename="$modename: link"
1105 case $host in
1106 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
1107 # It is impossible to link a dll without this setting, and
1108 # we shouldn't force the makefile maintainer to figure out
1109 # which system we are compiling for in order to pass an extra
1110 # flag for every libtool invocation.
1111 # allow_undefined=no
1112
1113 # FIXME: Unfortunately, there are problems with the above when trying
1114 # to make a dll which has undefined symbols, in which case not
1115 # even a static library is built. For now, we need to specify
1116 # -no-undefined on the libtool link line when we can be certain
1117 # that all symbols are satisfied, otherwise we get a static library.
1118 allow_undefined=yes
1119 ;;
1120 *)
1121 allow_undefined=yes
1122 ;;
1123 esac
1124 libtool_args="$nonopt"
1125 base_compile="$nonopt $@"
1126 compile_command="$nonopt"
1127 finalize_command="$nonopt"
1128
1129 compile_rpath=
1130 finalize_rpath=
1131 compile_shlibpath=
1132 finalize_shlibpath=
1133 convenience=
1134 old_convenience=
1135 deplibs=
1136 old_deplibs=
1137 compiler_flags=
1138 linker_flags=
1139 dllsearchpath=
1140 lib_search_path=`pwd`
1141 inst_prefix_dir=
1142
1143 avoid_version=no
1144 dlfiles=
1145 dlprefiles=
1146 dlself=no
1147 export_dynamic=no
1148 export_symbols=
1149 export_symbols_regex=
1150 generated=
1151 libobjs=
1152 ltlibs=
1153 module=no
1154 no_install=no
1155 objs=
1156 non_pic_objects=
1157 notinst_path= # paths that contain not-installed libtool libraries
1158 precious_files_regex=
1159 prefer_static_libs=no
1160 preload=no
1161 prev=
1162 prevarg=
1163 release=
1164 rpath=
1165 xrpath=
1166 perm_rpath=
1167 temp_rpath=
1168 thread_safe=no
1169 vinfo=
1170 vinfo_number=no
1171 single_module="${wl}-single_module"
1172
1173 func_infer_tag $base_compile
1174
1175 # We need to know -static, to get the right output filenames.
1176 for arg
1177 do
1178 case $arg in
1179 -all-static | -static | -static-libtool-libs)
1180 case $arg in
1181 -all-static)
1182 if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
1183 $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
1184 fi
1185 if test -n "$link_static_flag"; then
1186 dlopen_self=$dlopen_self_static
1187 fi
1188 prefer_static_libs=yes
1189 ;;
1190 -static)
1191 if test -z "$pic_flag" && test -n "$link_static_flag"; then
1192 dlopen_self=$dlopen_self_static
1193 fi
1194 prefer_static_libs=built
1195 ;;
1196 -static-libtool-libs)
1197 if test -z "$pic_flag" && test -n "$link_static_flag"; then
1198 dlopen_self=$dlopen_self_static
1199 fi
1200 prefer_static_libs=yes
1201 ;;
1202 esac
1203 build_libtool_libs=no
1204 build_old_libs=yes
1205 break
1206 ;;
1207 esac
1208 done
1209
1210 # See if our shared archives depend on static archives.
1211 test -n "$old_archive_from_new_cmds" && build_old_libs=yes
1212
1213 # Go through the arguments, transforming them on the way.
1214 while test "$#" -gt 0; do
1215 arg="$1"
1216 shift
1217 case $arg in
1218 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1219 qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
1220 ;;
1221 *) qarg=$arg ;;
1222 esac
1223 libtool_args="$libtool_args $qarg"
1224
1225 # If the previous option needs an argument, assign it.
1226 if test -n "$prev"; then
1227 case $prev in
1228 output)
1229 compile_command="$compile_command @OUTPUT@"
1230 finalize_command="$finalize_command @OUTPUT@"
1231 ;;
1232 esac
1233
1234 case $prev in
1235 dlfiles|dlprefiles)
1236 if test "$preload" = no; then
1237 # Add the symbol object into the linking commands.
1238 compile_command="$compile_command @SYMFILE@"
1239 finalize_command="$finalize_command @SYMFILE@"
1240 preload=yes
1241 fi
1242 case $arg in
1243 *.la | *.lo) ;; # We handle these cases below.
1244 force)
1245 if test "$dlself" = no; then
1246 dlself=needless
1247 export_dynamic=yes
1248 fi
1249 prev=
1250 continue
1251 ;;
1252 self)
1253 if test "$prev" = dlprefiles; then
1254 dlself=yes
1255 elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
1256 dlself=yes
1257 else
1258 dlself=needless
1259 export_dynamic=yes
1260 fi
1261 prev=
1262 continue
1263 ;;
1264 *)
1265 if test "$prev" = dlfiles; then
1266 dlfiles="$dlfiles $arg"
1267 else
1268 dlprefiles="$dlprefiles $arg"
1269 fi
1270 prev=
1271 continue
1272 ;;
1273 esac
1274 ;;
1275 expsyms)
1276 export_symbols="$arg"
1277 if test ! -f "$arg"; then
1278 $echo "$modename: symbol file \`$arg' does not exist"
1279 exit $EXIT_FAILURE
1280 fi
1281 prev=
1282 continue
1283 ;;
1284 expsyms_regex)
1285 export_symbols_regex="$arg"
1286 prev=
1287 continue
1288 ;;
1289 inst_prefix)
1290 inst_prefix_dir="$arg"
1291 prev=
1292 continue
1293 ;;
1294 precious_regex)
1295 precious_files_regex="$arg"
1296 prev=
1297 continue
1298 ;;
1299 release)
1300 release="-$arg"
1301 prev=
1302 continue
1303 ;;
1304 objectlist)
1305 if test -f "$arg"; then
1306 save_arg=$arg
1307 moreargs=
1308 for fil in `cat $save_arg`
1309 do
1310# moreargs="$moreargs $fil"
1311 arg=$fil
1312 # A libtool-controlled object.
1313
1314 # Check to see that this really is a libtool object.
1315 if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
1316 pic_object=
1317 non_pic_object=
1318
1319 # Read the .lo file
1320 # If there is no directory component, then add one.
1321 case $arg in
1322 */* | *\\*) . $arg ;;
1323 *) . ./$arg ;;
1324 esac
1325
1326 if test -z "$pic_object" || \
1327 test -z "$non_pic_object" ||
1328 test "$pic_object" = none && \
1329 test "$non_pic_object" = none; then
1330 $echo "$modename: cannot find name of object for \`$arg'" 1>&2
1331 exit $EXIT_FAILURE
1332 fi
1333
1334 # Extract subdirectory from the argument.
1335 xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
1336 if test "X$xdir" = "X$arg"; then
1337 xdir=
1338 else
1339 xdir="$xdir/"
1340 fi
1341
1342 if test "$pic_object" != none; then
1343 # Prepend the subdirectory the object is found in.
1344 pic_object="$xdir$pic_object"
1345
1346 if test "$prev" = dlfiles; then
1347 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
1348 dlfiles="$dlfiles $pic_object"
1349 prev=
1350 continue
1351 else
1352 # If libtool objects are unsupported, then we need to preload.
1353 prev=dlprefiles
1354 fi
1355 fi
1356
1357 # CHECK ME: I think I busted this. -Ossama
1358 if test "$prev" = dlprefiles; then
1359 # Preload the old-style object.
1360 dlprefiles="$dlprefiles $pic_object"
1361 prev=
1362 fi
1363
1364 # A PIC object.
1365 libobjs="$libobjs $pic_object"
1366 arg="$pic_object"
1367 fi
1368
1369 # Non-PIC object.
1370 if test "$non_pic_object" != none; then
1371 # Prepend the subdirectory the object is found in.
1372 non_pic_object="$xdir$non_pic_object"
1373
1374 # A standard non-PIC object
1375 non_pic_objects="$non_pic_objects $non_pic_object"
1376 if test -z "$pic_object" || test "$pic_object" = none ; then
1377 arg="$non_pic_object"
1378 fi
1379 else
1380 # If the PIC object exists, use it instead.
1381 # $xdir was prepended to $pic_object above.
1382 non_pic_object="$pic_object"
1383 non_pic_objects="$non_pic_objects $non_pic_object"
1384 fi
1385 else
1386 # Only an error if not doing a dry-run.
1387 if test -z "$run"; then
1388 $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
1389 exit $EXIT_FAILURE
1390 else
1391 # Dry-run case.
1392
1393 # Extract subdirectory from the argument.
1394 xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
1395 if test "X$xdir" = "X$arg"; then
1396 xdir=
1397 else
1398 xdir="$xdir/"
1399 fi
1400
1401 pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
1402 non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
1403 libobjs="$libobjs $pic_object"
1404 non_pic_objects="$non_pic_objects $non_pic_object"
1405 fi
1406 fi
1407 done
1408 else
1409 $echo "$modename: link input file \`$save_arg' does not exist"
1410 exit $EXIT_FAILURE
1411 fi
1412 arg=$save_arg
1413 prev=
1414 continue
1415 ;;
1416 rpath | xrpath)
1417 # We need an absolute path.
1418 case $arg in
1419 [\\/]* | [A-Za-z]:[\\/]*) ;;
1420 *)
1421 $echo "$modename: only absolute run-paths are allowed" 1>&2
1422 exit $EXIT_FAILURE
1423 ;;
1424 esac
1425 if test "$prev" = rpath; then
1426 case "$rpath " in
1427 *" $arg "*) ;;
1428 *) rpath="$rpath $arg" ;;
1429 esac
1430 else
1431 case "$xrpath " in
1432 *" $arg "*) ;;
1433 *) xrpath="$xrpath $arg" ;;
1434 esac
1435 fi
1436 prev=
1437 continue
1438 ;;
1439 xcompiler)
1440 compiler_flags="$compiler_flags $qarg"
1441 prev=
1442 compile_command="$compile_command $qarg"
1443 finalize_command="$finalize_command $qarg"
1444 continue
1445 ;;
1446 xlinker)
1447 linker_flags="$linker_flags $qarg"
1448 compiler_flags="$compiler_flags $wl$qarg"
1449 prev=
1450 compile_command="$compile_command $wl$qarg"
1451 finalize_command="$finalize_command $wl$qarg"
1452 continue
1453 ;;
1454 xcclinker)
1455 linker_flags="$linker_flags $qarg"
1456 compiler_flags="$compiler_flags $qarg"
1457 prev=
1458 compile_command="$compile_command $qarg"
1459 finalize_command="$finalize_command $qarg"
1460 continue
1461 ;;
1462 shrext)
1463 shrext_cmds="$arg"
1464 prev=
1465 continue
1466 ;;
1467 darwin_framework|darwin_framework_skip)
1468 test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg"
1469 compile_command="$compile_command $arg"
1470 finalize_command="$finalize_command $arg"
1471 prev=
1472 continue
1473 ;;
1474 *)
1475 eval "$prev=\"\$arg\""
1476 prev=
1477 continue
1478 ;;
1479 esac
1480 fi # test -n "$prev"
1481
1482 prevarg="$arg"
1483
1484 case $arg in
1485 -all-static)
1486 if test -n "$link_static_flag"; then
1487 compile_command="$compile_command $link_static_flag"
1488 finalize_command="$finalize_command $link_static_flag"
1489 fi
1490 continue
1491 ;;
1492
1493 -allow-undefined)
1494 # FIXME: remove this flag sometime in the future.
1495 $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
1496 continue
1497 ;;
1498
1499 -avoid-version)
1500 avoid_version=yes
1501 continue
1502 ;;
1503
1504 -dlopen)
1505 prev=dlfiles
1506 continue
1507 ;;
1508
1509 -dlpreopen)
1510 prev=dlprefiles
1511 continue
1512 ;;
1513
1514 -export-dynamic)
1515 export_dynamic=yes
1516 continue
1517 ;;
1518
1519 -export-symbols | -export-symbols-regex)
1520 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
1521 $echo "$modename: more than one -exported-symbols argument is not allowed"
1522 exit $EXIT_FAILURE
1523 fi
1524 if test "X$arg" = "X-export-symbols"; then
1525 prev=expsyms
1526 else
1527 prev=expsyms_regex
1528 fi
1529 continue
1530 ;;
1531
1532 -framework|-arch|-isysroot)
1533 case " $CC " in
1534 *" ${arg} ${1} "* | *" ${arg} ${1} "*)
1535 prev=darwin_framework_skip ;;
1536 *) compiler_flags="$compiler_flags $arg"
1537 prev=darwin_framework ;;
1538 esac
1539 compile_command="$compile_command $arg"
1540 finalize_command="$finalize_command $arg"
1541 continue
1542 ;;
1543
1544 -inst-prefix-dir)
1545 prev=inst_prefix
1546 continue
1547 ;;
1548
1549 # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
1550 # so, if we see these flags be careful not to treat them like -L
1551 -L[A-Z][A-Z]*:*)
1552 case $with_gcc/$host in
1553 no/*-*-irix* | /*-*-irix*)
1554 compile_command="$compile_command $arg"
1555 finalize_command="$finalize_command $arg"
1556 ;;
1557 esac
1558 continue
1559 ;;
1560
1561 -L*)
1562 dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
1563 # We need an absolute path.
1564 case $dir in
1565 [\\/]* | [A-Za-z]:[\\/]*) ;;
1566 *)
1567 absdir=`cd "$dir" && pwd`
1568 if test -z "$absdir"; then
1569 $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
1570 absdir="$dir"
1571 notinst_path="$notinst_path $dir"
1572 fi
1573 dir="$absdir"
1574 ;;
1575 esac
1576 case "$deplibs " in
1577 *" -L$dir "*) ;;
1578 *)
1579 deplibs="$deplibs -L$dir"
1580 lib_search_path="$lib_search_path $dir"
1581 ;;
1582 esac
1583 case $host in
1584 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
1585 testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'`
1586 case :$dllsearchpath: in
1587 *":$dir:"*) ;;
1588 *) dllsearchpath="$dllsearchpath:$dir";;
1589 esac
1590 case :$dllsearchpath: in
1591 *":$testbindir:"*) ;;
1592 *) dllsearchpath="$dllsearchpath:$testbindir";;
1593 esac
1594 ;;
1595 esac
1596 continue
1597 ;;
1598
1599 -l*)
1600 if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
1601 case $host in
1602 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*)
1603 # These systems don't actually have a C or math library (as such)
1604 continue
1605 ;;
1606 *-*-os2*)
1607 # These systems don't actually have a C library (as such)
1608 test "X$arg" = "X-lc" && continue
1609 ;;
1610 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
1611 # Do not include libc due to us having libc/libc_r.
1612 test "X$arg" = "X-lc" && continue
1613 ;;
1614 *-*-rhapsody* | *-*-darwin1.[012])
1615 # Rhapsody C and math libraries are in the System framework
1616 deplibs="$deplibs -framework System"
1617 continue
1618 ;;
1619 *-*-sco3.2v5* | *-*-sco5v6*)
1620 # Causes problems with __ctype
1621 test "X$arg" = "X-lc" && continue
1622 ;;
1623 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
1624 # Compiler inserts libc in the correct place for threads to work
1625 test "X$arg" = "X-lc" && continue
1626 ;;
1627 esac
1628 elif test "X$arg" = "X-lc_r"; then
1629 case $host in
1630 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
1631 # Do not include libc_r directly, use -pthread flag.
1632 continue
1633 ;;
1634 esac
1635 fi
1636 deplibs="$deplibs $arg"
1637 continue
1638 ;;
1639
1640 # Tru64 UNIX uses -model [arg] to determine the layout of C++
1641 # classes, name mangling, and exception handling.
1642 -model)
1643 compile_command="$compile_command $arg"
1644 compiler_flags="$compiler_flags $arg"
1645 finalize_command="$finalize_command $arg"
1646 prev=xcompiler
1647 continue
1648 ;;
1649
1650 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
1651 compiler_flags="$compiler_flags $arg"
1652 compile_command="$compile_command $arg"
1653 finalize_command="$finalize_command $arg"
1654 continue
1655 ;;
1656
1657 -multi_module)
1658 single_module="${wl}-multi_module"
1659 continue
1660 ;;
1661
1662 -module)
1663 module=yes
1664 continue
1665 ;;
1666
1667 # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
1668 # -r[0-9][0-9]* specifies the processor on the SGI compiler
1669 # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
1670 # +DA*, +DD* enable 64-bit mode on the HP compiler
1671 # -q* pass through compiler args for the IBM compiler
1672 # -m* pass through architecture-specific compiler args for GCC
1673 # -m*, -t[45]*, -txscale* pass through architecture-specific
1674 # compiler args for GCC
1675 # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
1676 # -F/path gives path to uninstalled frameworks, gcc on darwin
1677 # @file GCC response files
1678 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
1679 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
1680
1681 # Unknown arguments in both finalize_command and compile_command need
1682 # to be aesthetically quoted because they are evaled later.
1683 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
1684 case $arg in
1685 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1686 arg="\"$arg\""
1687 ;;
1688 esac
1689 compile_command="$compile_command $arg"
1690 finalize_command="$finalize_command $arg"
1691 compiler_flags="$compiler_flags $arg"
1692 continue
1693 ;;
1694
1695 -shrext)
1696 prev=shrext
1697 continue
1698 ;;
1699
1700 -no-fast-install)
1701 fast_install=no
1702 continue
1703 ;;
1704
1705 -no-install)
1706 case $host in
1707 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin*)
1708 # The PATH hackery in wrapper scripts is required on Windows
1709 # and Darwin in order for the loader to find any dlls it needs.
1710 $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
1711 $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
1712 fast_install=no
1713 ;;
1714 *) no_install=yes ;;
1715 esac
1716 continue
1717 ;;
1718
1719 -no-undefined)
1720 allow_undefined=no
1721 continue
1722 ;;
1723
1724 -objectlist)
1725 prev=objectlist
1726 continue
1727 ;;
1728
1729 -o) prev=output ;;
1730
1731 -precious-files-regex)
1732 prev=precious_regex
1733 continue
1734 ;;
1735
1736 -release)
1737 prev=release
1738 continue
1739 ;;
1740
1741 -rpath)
1742 prev=rpath
1743 continue
1744 ;;
1745
1746 -R)
1747 prev=xrpath
1748 continue
1749 ;;
1750
1751 -R*)
1752 dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
1753 # We need an absolute path.
1754 case $dir in
1755 [\\/]* | [A-Za-z]:[\\/]*) ;;
1756 *)
1757 $echo "$modename: only absolute run-paths are allowed" 1>&2
1758 exit $EXIT_FAILURE
1759 ;;
1760 esac
1761 case "$xrpath " in
1762 *" $dir "*) ;;
1763 *) xrpath="$xrpath $dir" ;;
1764 esac
1765 continue
1766 ;;
1767
1768 -static | -static-libtool-libs)
1769 # The effects of -static are defined in a previous loop.
1770 # We used to do the same as -all-static on platforms that
1771 # didn't have a PIC flag, but the assumption that the effects
1772 # would be equivalent was wrong. It would break on at least
1773 # Digital Unix and AIX.
1774 continue
1775 ;;
1776
1777 -thread-safe)
1778 thread_safe=yes
1779 continue
1780 ;;
1781
1782 -version-info)
1783 prev=vinfo
1784 continue
1785 ;;
1786 -version-number)
1787 prev=vinfo
1788 vinfo_number=yes
1789 continue
1790 ;;
1791
1792 -Wc,*)
1793 args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
1794 arg=
1795 save_ifs="$IFS"; IFS=','
1796 for flag in $args; do
1797 IFS="$save_ifs"
1798 case $flag in
1799 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1800 flag="\"$flag\""
1801 ;;
1802 esac
1803 arg="$arg $wl$flag"
1804 compiler_flags="$compiler_flags $flag"
1805 done
1806 IFS="$save_ifs"
1807 arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
1808 ;;
1809
1810 -Wl,*)
1811 args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
1812 arg=
1813 save_ifs="$IFS"; IFS=','
1814 for flag in $args; do
1815 IFS="$save_ifs"
1816 case $flag in
1817 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1818 flag="\"$flag\""
1819 ;;
1820 esac
1821 arg="$arg $wl$flag"
1822 compiler_flags="$compiler_flags $wl$flag"
1823 linker_flags="$linker_flags $flag"
1824 done
1825 IFS="$save_ifs"
1826 arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
1827 ;;
1828
1829 -Xcompiler)
1830 prev=xcompiler
1831 continue
1832 ;;
1833
1834 -Xlinker)
1835 prev=xlinker
1836 continue
1837 ;;
1838
1839 -XCClinker)
1840 prev=xcclinker
1841 continue
1842 ;;
1843
1844 # Some other compiler flag.
1845 -* | +*)
1846 # Unknown arguments in both finalize_command and compile_command need
1847 # to be aesthetically quoted because they are evaled later.
1848 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
1849 case $arg in
1850 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1851 arg="\"$arg\""
1852 ;;
1853 esac
1854 ;;
1855
1856 *.$objext)
1857 # A standard object.
1858 objs="$objs $arg"
1859 ;;
1860
1861 *.lo)
1862 # A libtool-controlled object.
1863
1864 # Check to see that this really is a libtool object.
1865 if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
1866 pic_object=
1867 non_pic_object=
1868
1869 # Read the .lo file
1870 # If there is no directory component, then add one.
1871 case $arg in
1872 */* | *\\*) . $arg ;;
1873 *) . ./$arg ;;
1874 esac
1875
1876 if test -z "$pic_object" || \
1877 test -z "$non_pic_object" ||
1878 test "$pic_object" = none && \
1879 test "$non_pic_object" = none; then
1880 $echo "$modename: cannot find name of object for \`$arg'" 1>&2
1881 exit $EXIT_FAILURE
1882 fi
1883
1884 # Extract subdirectory from the argument.
1885 xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
1886 if test "X$xdir" = "X$arg"; then
1887 xdir=
1888 else
1889 xdir="$xdir/"
1890 fi
1891
1892 if test "$pic_object" != none; then
1893 # Prepend the subdirectory the object is found in.
1894 pic_object="$xdir$pic_object"
1895
1896 if test "$prev" = dlfiles; then
1897 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
1898 dlfiles="$dlfiles $pic_object"
1899 prev=
1900 continue
1901 else
1902 # If libtool objects are unsupported, then we need to preload.
1903 prev=dlprefiles
1904 fi
1905 fi
1906
1907 # CHECK ME: I think I busted this. -Ossama
1908 if test "$prev" = dlprefiles; then
1909 # Preload the old-style object.
1910 dlprefiles="$dlprefiles $pic_object"
1911 prev=
1912 fi
1913
1914 # A PIC object.
1915 libobjs="$libobjs $pic_object"
1916 arg="$pic_object"
1917 fi
1918
1919 # Non-PIC object.
1920 if test "$non_pic_object" != none; then
1921 # Prepend the subdirectory the object is found in.
1922 non_pic_object="$xdir$non_pic_object"
1923
1924 # A standard non-PIC object
1925 non_pic_objects="$non_pic_objects $non_pic_object"
1926 if test -z "$pic_object" || test "$pic_object" = none ; then
1927 arg="$non_pic_object"
1928 fi
1929 else
1930 # If the PIC object exists, use it instead.
1931 # $xdir was prepended to $pic_object above.
1932 non_pic_object="$pic_object"
1933 non_pic_objects="$non_pic_objects $non_pic_object"
1934 fi
1935 else
1936 # Only an error if not doing a dry-run.
1937 if test -z "$run"; then
1938 $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
1939 exit $EXIT_FAILURE
1940 else
1941 # Dry-run case.
1942
1943 # Extract subdirectory from the argument.
1944 xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
1945 if test "X$xdir" = "X$arg"; then
1946 xdir=
1947 else
1948 xdir="$xdir/"
1949 fi
1950
1951 pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
1952 non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
1953 libobjs="$libobjs $pic_object"
1954 non_pic_objects="$non_pic_objects $non_pic_object"
1955 fi
1956 fi
1957 ;;
1958
1959 *.$libext)
1960 # An archive.
1961 deplibs="$deplibs $arg"
1962 old_deplibs="$old_deplibs $arg"
1963 continue
1964 ;;
1965
1966 *.la)
1967 # A libtool-controlled library.
1968
1969 if test "$prev" = dlfiles; then
1970 # This library was specified with -dlopen.
1971 dlfiles="$dlfiles $arg"
1972 prev=
1973 elif test "$prev" = dlprefiles; then
1974 # The library was specified with -dlpreopen.
1975 dlprefiles="$dlprefiles $arg"
1976 prev=
1977 else
1978 deplibs="$deplibs $arg"
1979 fi
1980 continue
1981 ;;
1982
1983 # Some other compiler argument.
1984 *)
1985 # Unknown arguments in both finalize_command and compile_command need
1986 # to be aesthetically quoted because they are evaled later.
1987 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
1988 case $arg in
1989 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1990 arg="\"$arg\""
1991 ;;
1992 esac
1993 ;;
1994 esac # arg
1995
1996 # Now actually substitute the argument into the commands.
1997 if test -n "$arg"; then
1998 compile_command="$compile_command $arg"
1999 finalize_command="$finalize_command $arg"
2000 fi
2001 done # argument parsing loop
2002
2003 if test -n "$prev"; then
2004 $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
2005 $echo "$help" 1>&2
2006 exit $EXIT_FAILURE
2007 fi
2008
2009 if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
2010 eval arg=\"$export_dynamic_flag_spec\"
2011 compile_command="$compile_command $arg"
2012 finalize_command="$finalize_command $arg"
2013 fi
2014
2015 oldlibs=
2016 # calculate the name of the file, without its directory
2017 outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
2018 libobjs_save="$libobjs"
2019
2020 if test -n "$shlibpath_var"; then
2021 # get the directories listed in $shlibpath_var
2022 eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
2023 else
2024 shlib_search_path=
2025 fi
2026 eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
2027 eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
2028
2029 output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
2030 if test "X$output_objdir" = "X$output"; then
2031 output_objdir="$objdir"
2032 else
2033 output_objdir="$output_objdir/$objdir"
2034 fi
2035 # Create the object directory.
2036 if test ! -d "$output_objdir"; then
2037 $show "$mkdir $output_objdir"
2038 $run $mkdir $output_objdir
2039 exit_status=$?
2040 if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then
2041 exit $exit_status
2042 fi
2043 fi
2044
2045 # Determine the type of output
2046 case $output in
2047 "")
2048 $echo "$modename: you must specify an output file" 1>&2
2049 $echo "$help" 1>&2
2050 exit $EXIT_FAILURE
2051 ;;
2052 *.$libext) linkmode=oldlib ;;
2053 *.lo | *.$objext) linkmode=obj ;;
2054 *.la) linkmode=lib ;;
2055 *) linkmode=prog ;; # Anything else should be a program.
2056 esac
2057
2058 case $host in
2059 *cygwin* | *mingw* | *pw32*)
2060 # don't eliminate duplications in $postdeps and $predeps
2061 duplicate_compiler_generated_deps=yes
2062 ;;
2063 *)
2064 duplicate_compiler_generated_deps=$duplicate_deps
2065 ;;
2066 esac
2067 specialdeplibs=
2068
2069 libs=
2070 # Find all interdependent deplibs by searching for libraries
2071 # that are linked more than once (e.g. -la -lb -la)
2072 for deplib in $deplibs; do
2073 if test "X$duplicate_deps" = "Xyes" ; then
2074 case "$libs " in
2075 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
2076 esac
2077 fi
2078 libs="$libs $deplib"
2079 done
2080
2081 if test "$linkmode" = lib; then
2082 libs="$predeps $libs $compiler_lib_search_path $postdeps"
2083
2084 # Compute libraries that are listed more than once in $predeps
2085 # $postdeps and mark them as special (i.e., whose duplicates are
2086 # not to be eliminated).
2087 pre_post_deps=
2088 if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then
2089 for pre_post_dep in $predeps $postdeps; do
2090 case "$pre_post_deps " in
2091 *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
2092 esac
2093 pre_post_deps="$pre_post_deps $pre_post_dep"
2094 done
2095 fi
2096 pre_post_deps=
2097 fi
2098
2099 deplibs=
2100 newdependency_libs=
2101 newlib_search_path=
2102 need_relink=no # whether we're linking any uninstalled libtool libraries
2103 notinst_deplibs= # not-installed libtool libraries
2104 case $linkmode in
2105 lib)
2106 passes="conv link"
2107 for file in $dlfiles $dlprefiles; do
2108 case $file in
2109 *.la) ;;
2110 *)
2111 $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
2112 exit $EXIT_FAILURE
2113 ;;
2114 esac
2115 done
2116 ;;
2117 prog)
2118 compile_deplibs=
2119 finalize_deplibs=
2120 alldeplibs=no
2121 newdlfiles=
2122 newdlprefiles=
2123 passes="conv scan dlopen dlpreopen link"
2124 ;;
2125 *) passes="conv"
2126 ;;
2127 esac
2128 for pass in $passes; do
2129 if test "$linkmode,$pass" = "lib,link" ||
2130 test "$linkmode,$pass" = "prog,scan"; then
2131 libs="$deplibs"
2132 deplibs=
2133 fi
2134 if test "$linkmode" = prog; then
2135 case $pass in
2136 dlopen) libs="$dlfiles" ;;
2137 dlpreopen) libs="$dlprefiles" ;;
2138 link)
2139 libs="$deplibs %DEPLIBS%"
2140 test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
2141 ;;
2142 esac
2143 fi
2144 if test "$pass" = dlopen; then
2145 # Collect dlpreopened libraries
2146 save_deplibs="$deplibs"
2147 deplibs=
2148 fi
2149 for deplib in $libs; do
2150 lib=
2151 found=no
2152 case $deplib in
2153 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
2154 if test "$linkmode,$pass" = "prog,link"; then
2155 compile_deplibs="$deplib $compile_deplibs"
2156 finalize_deplibs="$deplib $finalize_deplibs"
2157 else
2158 compiler_flags="$compiler_flags $deplib"
2159 fi
2160 continue
2161 ;;
2162 -l*)
2163 if test "$linkmode" != lib && test "$linkmode" != prog; then
2164 $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
2165 continue
2166 fi
2167 name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
2168 if test "$linkmode" = lib; then
2169 searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
2170 else
2171 searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
2172 fi
2173 for searchdir in $searchdirs; do
2174 for search_ext in .la $std_shrext .so .a; do
2175 # Search the libtool library
2176 lib="$searchdir/lib${name}${search_ext}"
2177 if test -f "$lib"; then
2178 if test "$search_ext" = ".la"; then
2179 found=yes
2180 else
2181 found=no
2182 fi
2183 break 2
2184 fi
2185 done
2186 done
2187 if test "$found" != yes; then
2188 # deplib doesn't seem to be a libtool library
2189 if test "$linkmode,$pass" = "prog,link"; then
2190 compile_deplibs="$deplib $compile_deplibs"
2191 finalize_deplibs="$deplib $finalize_deplibs"
2192 else
2193 deplibs="$deplib $deplibs"
2194 test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
2195 fi
2196 continue
2197 else # deplib is a libtool library
2198 # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
2199 # We need to do some special things here, and not later.
2200 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
2201 case " $predeps $postdeps " in
2202 *" $deplib "*)
2203 if (${SED} -e '2q' $lib |
2204 grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
2205 library_names=
2206 old_library=
2207 case $lib in
2208 */* | *\\*) . $lib ;;
2209 *) . ./$lib ;;
2210 esac
2211 for l in $old_library $library_names; do
2212 ll="$l"
2213 done
2214 if test "X$ll" = "X$old_library" ; then # only static version available
2215 found=no
2216 ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
2217 test "X$ladir" = "X$lib" && ladir="."
2218 lib=$ladir/$old_library
2219 if test "$linkmode,$pass" = "prog,link"; then
2220 compile_deplibs="$deplib $compile_deplibs"
2221 finalize_deplibs="$deplib $finalize_deplibs"
2222 else
2223 deplibs="$deplib $deplibs"
2224 test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
2225 fi
2226 continue
2227 fi
2228 fi
2229 ;;
2230 *) ;;
2231 esac
2232 fi
2233 fi
2234 ;; # -l
2235 -L*)
2236 case $linkmode in
2237 lib)
2238 deplibs="$deplib $deplibs"
2239 test "$pass" = conv && continue
2240 newdependency_libs="$deplib $newdependency_libs"
2241 newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
2242 ;;
2243 prog)
2244 if test "$pass" = conv; then
2245 deplibs="$deplib $deplibs"
2246 continue
2247 fi
2248 if test "$pass" = scan; then
2249 deplibs="$deplib $deplibs"
2250 else
2251 compile_deplibs="$deplib $compile_deplibs"
2252 finalize_deplibs="$deplib $finalize_deplibs"
2253 fi
2254 newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
2255 ;;
2256 *)
2257 $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
2258 ;;
2259 esac # linkmode
2260 continue
2261 ;; # -L
2262 -R*)
2263 if test "$pass" = link; then
2264 dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
2265 # Make sure the xrpath contains only unique directories.
2266 case "$xrpath " in
2267 *" $dir "*) ;;
2268 *) xrpath="$xrpath $dir" ;;
2269 esac
2270 fi
2271 deplibs="$deplib $deplibs"
2272 continue
2273 ;;
2274 *.la) lib="$deplib" ;;
2275 *.$libext)
2276 if test "$pass" = conv; then
2277 deplibs="$deplib $deplibs"
2278 continue
2279 fi
2280 case $linkmode in
2281 lib)
2282 valid_a_lib=no
2283 case $deplibs_check_method in
2284 match_pattern*)
2285 set dummy $deplibs_check_method
2286 match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
2287 if eval $echo \"$deplib\" 2>/dev/null \
2288 | $SED 10q \
2289 | $EGREP "$match_pattern_regex" > /dev/null; then
2290 valid_a_lib=yes
2291 fi
2292 ;;
2293 pass_all)
2294 valid_a_lib=yes
2295 ;;
2296 esac
2297 if test "$valid_a_lib" != yes; then
2298 $echo
2299 $echo "*** Warning: Trying to link with static lib archive $deplib."
2300 $echo "*** I have the capability to make that library automatically link in when"
2301 $echo "*** you link to this library. But I can only do this if you have a"
2302 $echo "*** shared version of the library, which you do not appear to have"
2303 $echo "*** because the file extensions .$libext of this argument makes me believe"
2304 $echo "*** that it is just a static archive that I should not used here."
2305 else
2306 $echo
2307 $echo "*** Warning: Linking the shared library $output against the"
2308 $echo "*** static library $deplib is not portable!"
2309 deplibs="$deplib $deplibs"
2310 fi
2311 continue
2312 ;;
2313 prog)
2314 if test "$pass" != link; then
2315 deplibs="$deplib $deplibs"
2316 else
2317 compile_deplibs="$deplib $compile_deplibs"
2318 finalize_deplibs="$deplib $finalize_deplibs"
2319 fi
2320 continue
2321 ;;
2322 esac # linkmode
2323 ;; # *.$libext
2324 *.lo | *.$objext)
2325 if test "$pass" = conv; then
2326 deplibs="$deplib $deplibs"
2327 elif test "$linkmode" = prog; then
2328 if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
2329 # If there is no dlopen support or we're linking statically,
2330 # we need to preload.
2331 newdlprefiles="$newdlprefiles $deplib"
2332 compile_deplibs="$deplib $compile_deplibs"
2333 finalize_deplibs="$deplib $finalize_deplibs"
2334 else
2335 newdlfiles="$newdlfiles $deplib"
2336 fi
2337 fi
2338 continue
2339 ;;
2340 %DEPLIBS%)
2341 alldeplibs=yes
2342 continue
2343 ;;
2344 esac # case $deplib
2345 if test "$found" = yes || test -f "$lib"; then :
2346 else
2347 $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2
2348 exit $EXIT_FAILURE
2349 fi
2350
2351 # Check to see that this really is a libtool archive.
2352 if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
2353 else
2354 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
2355 exit $EXIT_FAILURE
2356 fi
2357
2358 ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
2359 test "X$ladir" = "X$lib" && ladir="."
2360
2361 dlname=
2362 dlopen=
2363 dlpreopen=
2364 libdir=
2365 library_names=
2366 old_library=
2367 # If the library was installed with an old release of libtool,
2368 # it will not redefine variables installed, or shouldnotlink
2369 installed=yes
2370 shouldnotlink=no
2371 avoidtemprpath=
2372
2373
2374 # Read the .la file
2375 case $lib in
2376 */* | *\\*) . $lib ;;
2377 *) . ./$lib ;;
2378 esac
2379
2380 if test "$linkmode,$pass" = "lib,link" ||
2381 test "$linkmode,$pass" = "prog,scan" ||
2382 { test "$linkmode" != prog && test "$linkmode" != lib; }; then
2383 test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
2384 test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
2385 fi
2386
2387 if test "$pass" = conv; then
2388 # Only check for convenience libraries
2389 deplibs="$lib $deplibs"
2390 if test -z "$libdir"; then
2391 if test -z "$old_library"; then
2392 $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
2393 exit $EXIT_FAILURE
2394 fi
2395 # It is a libtool convenience library, so add in its objects.
2396 convenience="$convenience $ladir/$objdir/$old_library"
2397 old_convenience="$old_convenience $ladir/$objdir/$old_library"
2398 tmp_libs=
2399 for deplib in $dependency_libs; do
2400 deplibs="$deplib $deplibs"
2401 if test "X$duplicate_deps" = "Xyes" ; then
2402 case "$tmp_libs " in
2403 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
2404 esac
2405 fi
2406 tmp_libs="$tmp_libs $deplib"
2407 done
2408 elif test "$linkmode" != prog && test "$linkmode" != lib; then
2409 $echo "$modename: \`$lib' is not a convenience library" 1>&2
2410 exit $EXIT_FAILURE
2411 fi
2412 continue
2413 fi # $pass = conv
2414
2415
2416 # Get the name of the library we link against.
2417 linklib=
2418 for l in $old_library $library_names; do
2419 linklib="$l"
2420 done
2421 if test -z "$linklib"; then
2422 $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
2423 exit $EXIT_FAILURE
2424 fi
2425
2426 # This library was specified with -dlopen.
2427 if test "$pass" = dlopen; then
2428 if test -z "$libdir"; then
2429 $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
2430 exit $EXIT_FAILURE
2431 fi
2432 if test -z "$dlname" ||
2433 test "$dlopen_support" != yes ||
2434 test "$build_libtool_libs" = no; then
2435 # If there is no dlname, no dlopen support or we're linking
2436 # statically, we need to preload. We also need to preload any
2437 # dependent libraries so libltdl's deplib preloader doesn't
2438 # bomb out in the load deplibs phase.
2439 dlprefiles="$dlprefiles $lib $dependency_libs"
2440 else
2441 newdlfiles="$newdlfiles $lib"
2442 fi
2443 continue
2444 fi # $pass = dlopen
2445
2446 # We need an absolute path.
2447 case $ladir in
2448 [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
2449 *)
2450 abs_ladir=`cd "$ladir" && pwd`
2451 if test -z "$abs_ladir"; then
2452 $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2
2453 $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
2454 abs_ladir="$ladir"
2455 fi
2456 ;;
2457 esac
2458 laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
2459
2460 # Find the relevant object directory and library name.
2461 if test "X$installed" = Xyes; then
2462 if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
2463 $echo "$modename: warning: library \`$lib' was moved." 1>&2
2464 dir="$ladir"
2465 absdir="$abs_ladir"
2466 libdir="$abs_ladir"
2467 else
2468 dir="$libdir"
2469 absdir="$libdir"
2470 fi
2471 test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
2472 else
2473 if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
2474 dir="$ladir"
2475 absdir="$abs_ladir"
2476 # Remove this search path later
2477 notinst_path="$notinst_path $abs_ladir"
2478 else
2479 dir="$ladir/$objdir"
2480 absdir="$abs_ladir/$objdir"
2481 # Remove this search path later
2482 notinst_path="$notinst_path $abs_ladir"
2483 fi
2484 fi # $installed = yes
2485 name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
2486
2487 # This library was specified with -dlpreopen.
2488 if test "$pass" = dlpreopen; then
2489 if test -z "$libdir"; then
2490 $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
2491 exit $EXIT_FAILURE
2492 fi
2493 # Prefer using a static library (so that no silly _DYNAMIC symbols
2494 # are required to link).
2495 if test -n "$old_library"; then
2496 newdlprefiles="$newdlprefiles $dir/$old_library"
2497 # Otherwise, use the dlname, so that lt_dlopen finds it.
2498 elif test -n "$dlname"; then
2499 newdlprefiles="$newdlprefiles $dir/$dlname"
2500 else
2501 newdlprefiles="$newdlprefiles $dir/$linklib"
2502 fi
2503 fi # $pass = dlpreopen
2504
2505 if test -z "$libdir"; then
2506 # Link the convenience library
2507 if test "$linkmode" = lib; then
2508 deplibs="$dir/$old_library $deplibs"
2509 elif test "$linkmode,$pass" = "prog,link"; then
2510 compile_deplibs="$dir/$old_library $compile_deplibs"
2511 finalize_deplibs="$dir/$old_library $finalize_deplibs"
2512 else
2513 deplibs="$lib $deplibs" # used for prog,scan pass
2514 fi
2515 continue
2516 fi
2517
2518
2519 if test "$linkmode" = prog && test "$pass" != link; then
2520 newlib_search_path="$newlib_search_path $ladir"
2521 deplibs="$lib $deplibs"
2522
2523 linkalldeplibs=no
2524 if test "$link_all_deplibs" != no || test -z "$library_names" ||
2525 test "$build_libtool_libs" = no; then
2526 linkalldeplibs=yes
2527 fi
2528
2529 tmp_libs=
2530 for deplib in $dependency_libs; do
2531 case $deplib in
2532 -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
2533 esac
2534 # Need to link against all dependency_libs?
2535 if test "$linkalldeplibs" = yes; then
2536 deplibs="$deplib $deplibs"
2537 else
2538 # Need to hardcode shared library paths
2539 # or/and link against static libraries
2540 newdependency_libs="$deplib $newdependency_libs"
2541 fi
2542 if test "X$duplicate_deps" = "Xyes" ; then
2543 case "$tmp_libs " in
2544 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
2545 esac
2546 fi
2547 tmp_libs="$tmp_libs $deplib"
2548 done # for deplib
2549 continue
2550 fi # $linkmode = prog...
2551
2552 if test "$linkmode,$pass" = "prog,link"; then
2553 if test -n "$library_names" &&
2554 { { test "$prefer_static_libs" = no ||
2555 test "$prefer_static_libs,$installed" = "built,yes"; } ||
2556 test -z "$old_library"; }; then
2557 # We need to hardcode the library path
2558 if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
2559 # Make sure the rpath contains only unique directories.
2560 case "$temp_rpath " in
2561 *" $dir "*) ;;
2562 *" $absdir "*) ;;
2563 *) temp_rpath="$temp_rpath $absdir" ;;
2564 esac
2565 fi
2566
2567 # Hardcode the library path.
2568 # Skip directories that are in the system default run-time
2569 # search path.
2570 case " $sys_lib_dlsearch_path " in
2571 *" $absdir "*) ;;
2572 *)
2573 case "$compile_rpath " in
2574 *" $absdir "*) ;;
2575 *) compile_rpath="$compile_rpath $absdir"
2576 esac
2577 ;;
2578 esac
2579 case " $sys_lib_dlsearch_path " in
2580 *" $libdir "*) ;;
2581 *)
2582 case "$finalize_rpath " in
2583 *" $libdir "*) ;;
2584 *) finalize_rpath="$finalize_rpath $libdir"
2585 esac
2586 ;;
2587 esac
2588 fi # $linkmode,$pass = prog,link...
2589
2590 if test "$alldeplibs" = yes &&
2591 { test "$deplibs_check_method" = pass_all ||
2592 { test "$build_libtool_libs" = yes &&
2593 test -n "$library_names"; }; }; then
2594 # We only need to search for static libraries
2595 continue
2596 fi
2597 fi
2598
2599 link_static=no # Whether the deplib will be linked statically
2600 use_static_libs=$prefer_static_libs
2601 if test "$use_static_libs" = built && test "$installed" = yes ; then
2602 use_static_libs=no
2603 fi
2604 if test -n "$library_names" &&
2605 { test "$use_static_libs" = no || test -z "$old_library"; }; then
2606 if test "$installed" = no; then
2607 notinst_deplibs="$notinst_deplibs $lib"
2608 need_relink=yes
2609 fi
2610 # This is a shared library
2611
2612 # Warn about portability, can't link against -module's on
2613 # some systems (darwin)
2614 if test "$shouldnotlink" = yes && test "$pass" = link ; then
2615 $echo
2616 if test "$linkmode" = prog; then
2617 $echo "*** Warning: Linking the executable $output against the loadable module"
2618 else
2619 $echo "*** Warning: Linking the shared library $output against the loadable module"
2620 fi
2621 $echo "*** $linklib is not portable!"
2622 fi
2623 if test "$linkmode" = lib &&
2624 test "$hardcode_into_libs" = yes; then
2625 # Hardcode the library path.
2626 # Skip directories that are in the system default run-time
2627 # search path.
2628 case " $sys_lib_dlsearch_path " in
2629 *" $absdir "*) ;;
2630 *)
2631 case "$compile_rpath " in
2632 *" $absdir "*) ;;
2633 *) compile_rpath="$compile_rpath $absdir"
2634 esac
2635 ;;
2636 esac
2637 case " $sys_lib_dlsearch_path " in
2638 *" $libdir "*) ;;
2639 *)
2640 case "$finalize_rpath " in
2641 *" $libdir "*) ;;
2642 *) finalize_rpath="$finalize_rpath $libdir"
2643 esac
2644 ;;
2645 esac
2646 fi
2647
2648 if test -n "$old_archive_from_expsyms_cmds"; then
2649 # figure out the soname
2650 set dummy $library_names
2651 realname="$2"
2652 shift; shift
2653 libname=`eval \\$echo \"$libname_spec\"`
2654 # use dlname if we got it. it's perfectly good, no?
2655 if test -n "$dlname"; then
2656 soname="$dlname"
2657 elif test -n "$soname_spec"; then
2658 # bleh windows
2659 case $host in
2660 *cygwin* | mingw*)
2661 major=`expr $current - $age`
2662 versuffix="-$major"
2663 ;;
2664 esac
2665 eval soname=\"$soname_spec\"
2666 else
2667 soname="$realname"
2668 fi
2669
2670 # Make a new name for the extract_expsyms_cmds to use
2671 soroot="$soname"
2672 soname=`$echo $soroot | ${SED} -e 's/^.*\///'`
2673 newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
2674
2675 # If the library has no export list, then create one now
2676 if test -f "$output_objdir/$soname-def"; then :
2677 else
2678 $show "extracting exported symbol list from \`$soname'"
2679 save_ifs="$IFS"; IFS='~'
2680 cmds=$extract_expsyms_cmds
2681 for cmd in $cmds; do
2682 IFS="$save_ifs"
2683 eval cmd=\"$cmd\"
2684 $show "$cmd"
2685 $run eval "$cmd" || exit $?
2686 done
2687 IFS="$save_ifs"
2688 fi
2689
2690 # Create $newlib
2691 if test -f "$output_objdir/$newlib"; then :; else
2692 $show "generating import library for \`$soname'"
2693 save_ifs="$IFS"; IFS='~'
2694 cmds=$old_archive_from_expsyms_cmds
2695 for cmd in $cmds; do
2696 IFS="$save_ifs"
2697 eval cmd=\"$cmd\"
2698 $show "$cmd"
2699 $run eval "$cmd" || exit $?
2700 done
2701 IFS="$save_ifs"
2702 fi
2703 # make sure the library variables are pointing to the new library
2704 dir=$output_objdir
2705 linklib=$newlib
2706 fi # test -n "$old_archive_from_expsyms_cmds"
2707
2708 if test "$linkmode" = prog || test "$mode" != relink; then
2709 add_shlibpath=
2710 add_dir=
2711 add=
2712 lib_linked=yes
2713 case $hardcode_action in
2714 immediate | unsupported)
2715 if test "$hardcode_direct" = no; then
2716 add="$dir/$linklib"
2717 case $host in
2718 *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
2719 *-*-sysv4*uw2*) add_dir="-L$dir" ;;
2720 *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
2721 *-*-unixware7*) add_dir="-L$dir" ;;
2722 *-*-darwin* )
2723 # if the lib is a module then we can not link against
2724 # it, someone is ignoring the new warnings I added
2725 if /usr/bin/file -L $add 2> /dev/null |
2726 $EGREP ": [^:]* bundle" >/dev/null ; then
2727 $echo "** Warning, lib $linklib is a module, not a shared library"
2728 if test -z "$old_library" ; then
2729 $echo
2730 $echo "** And there doesn't seem to be a static archive available"
2731 $echo "** The link will probably fail, sorry"
2732 else
2733 add="$dir/$old_library"
2734 fi
2735 fi
2736 esac
2737 elif test "$hardcode_minus_L" = no; then
2738 case $host in
2739 *-*-sunos*) add_shlibpath="$dir" ;;
2740 esac
2741 add_dir="-L$dir"
2742 add="-l$name"
2743 elif test "$hardcode_shlibpath_var" = no; then
2744 add_shlibpath="$dir"
2745 add="-l$name"
2746 else
2747 lib_linked=no
2748 fi
2749 ;;
2750 relink)
2751 if test "$hardcode_direct" = yes; then
2752 add="$dir/$linklib"
2753 elif test "$hardcode_minus_L" = yes; then
2754 add_dir="-L$dir"
2755 # Try looking first in the location we're being installed to.
2756 if test -n "$inst_prefix_dir"; then
2757 case $libdir in
2758 [\\/]*)
2759 add_dir="$add_dir -L$inst_prefix_dir$libdir"
2760 ;;
2761 esac
2762 fi
2763 add="-l$name"
2764 elif test "$hardcode_shlibpath_var" = yes; then
2765 add_shlibpath="$dir"
2766 add="-l$name"
2767 else
2768 lib_linked=no
2769 fi
2770 ;;
2771 *) lib_linked=no ;;
2772 esac
2773
2774 if test "$lib_linked" != yes; then
2775 $echo "$modename: configuration error: unsupported hardcode properties"
2776 exit $EXIT_FAILURE
2777 fi
2778
2779 if test -n "$add_shlibpath"; then
2780 case :$compile_shlibpath: in
2781 *":$add_shlibpath:"*) ;;
2782 *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
2783 esac
2784 fi
2785 if test "$linkmode" = prog; then
2786 test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
2787 test -n "$add" && compile_deplibs="$add $compile_deplibs"
2788 else
2789 test -n "$add_dir" && deplibs="$add_dir $deplibs"
2790 test -n "$add" && deplibs="$add $deplibs"
2791 if test "$hardcode_direct" != yes && \
2792 test "$hardcode_minus_L" != yes && \
2793 test "$hardcode_shlibpath_var" = yes; then
2794 case :$finalize_shlibpath: in
2795 *":$libdir:"*) ;;
2796 *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
2797 esac
2798 fi
2799 fi
2800 fi
2801
2802 if test "$linkmode" = prog || test "$mode" = relink; then
2803 add_shlibpath=
2804 add_dir=
2805 add=
2806 # Finalize command for both is simple: just hardcode it.
2807 if test "$hardcode_direct" = yes; then
2808 add="$libdir/$linklib"
2809 elif test "$hardcode_minus_L" = yes; then
2810 add_dir="-L$libdir"
2811 add="-l$name"
2812 elif test "$hardcode_shlibpath_var" = yes; then
2813 case :$finalize_shlibpath: in
2814 *":$libdir:"*) ;;
2815 *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
2816 esac
2817 add="-l$name"
2818 elif test "$hardcode_automatic" = yes; then
2819 if test -n "$inst_prefix_dir" &&
2820 test -f "$inst_prefix_dir$libdir/$linklib" ; then
2821 add="$inst_prefix_dir$libdir/$linklib"
2822 else
2823 add="$libdir/$linklib"
2824 fi
2825 else
2826 # We cannot seem to hardcode it, guess we'll fake it.
2827 add_dir="-L$libdir"
2828 # Try looking first in the location we're being installed to.
2829 if test -n "$inst_prefix_dir"; then
2830 case $libdir in
2831 [\\/]*)
2832 add_dir="$add_dir -L$inst_prefix_dir$libdir"
2833 ;;
2834 esac
2835 fi
2836 add="-l$name"
2837 fi
2838
2839 if test "$linkmode" = prog; then
2840 test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
2841 test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
2842 else
2843 test -n "$add_dir" && deplibs="$add_dir $deplibs"
2844 test -n "$add" && deplibs="$add $deplibs"
2845 fi
2846 fi
2847 elif test "$linkmode" = prog; then
2848 # Here we assume that one of hardcode_direct or hardcode_minus_L
2849 # is not unsupported. This is valid on all known static and
2850 # shared platforms.
2851 if test "$hardcode_direct" != unsupported; then
2852 test -n "$old_library" && linklib="$old_library"
2853 compile_deplibs="$dir/$linklib $compile_deplibs"
2854 finalize_deplibs="$dir/$linklib $finalize_deplibs"
2855 else
2856 compile_deplibs="-l$name -L$dir $compile_deplibs"
2857 finalize_deplibs="-l$name -L$dir $finalize_deplibs"
2858 fi
2859 elif test "$build_libtool_libs" = yes; then
2860 # Not a shared library
2861 if test "$deplibs_check_method" != pass_all; then
2862 # We're trying link a shared library against a static one
2863 # but the system doesn't support it.
2864
2865 # Just print a warning and add the library to dependency_libs so
2866 # that the program can be linked against the static library.
2867 $echo
2868 $echo "*** Warning: This system can not link to static lib archive $lib."
2869 $echo "*** I have the capability to make that library automatically link in when"
2870 $echo "*** you link to this library. But I can only do this if you have a"
2871 $echo "*** shared version of the library, which you do not appear to have."
2872 if test "$module" = yes; then
2873 $echo "*** But as you try to build a module library, libtool will still create "
2874 $echo "*** a static module, that should work as long as the dlopening application"
2875 $echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
2876 if test -z "$global_symbol_pipe"; then
2877 $echo
2878 $echo "*** However, this would only work if libtool was able to extract symbol"
2879 $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
2880 $echo "*** not find such a program. So, this module is probably useless."
2881 $echo "*** \`nm' from GNU binutils and a full rebuild may help."
2882 fi
2883 if test "$build_old_libs" = no; then
2884 build_libtool_libs=module
2885 build_old_libs=yes
2886 else
2887 build_libtool_libs=no
2888 fi
2889 fi
2890 else
2891 deplibs="$dir/$old_library $deplibs"
2892 link_static=yes
2893 fi
2894 fi # link shared/static library?
2895
2896 if test "$linkmode" = lib; then
2897 if test -n "$dependency_libs" &&
2898 { test "$hardcode_into_libs" != yes ||
2899 test "$build_old_libs" = yes ||
2900 test "$link_static" = yes; }; then
2901 # Extract -R from dependency_libs
2902 temp_deplibs=
2903 for libdir in $dependency_libs; do
2904 case $libdir in
2905 -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
2906 case " $xrpath " in
2907 *" $temp_xrpath "*) ;;
2908 *) xrpath="$xrpath $temp_xrpath";;
2909 esac;;
2910 *) temp_deplibs="$temp_deplibs $libdir";;
2911 esac
2912 done
2913 dependency_libs="$temp_deplibs"
2914 fi
2915
2916 newlib_search_path="$newlib_search_path $absdir"
2917 # Link against this library
2918 test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
2919 # ... and its dependency_libs
2920 tmp_libs=
2921 for deplib in $dependency_libs; do
2922 newdependency_libs="$deplib $newdependency_libs"
2923 if test "X$duplicate_deps" = "Xyes" ; then
2924 case "$tmp_libs " in
2925 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
2926 esac
2927 fi
2928 tmp_libs="$tmp_libs $deplib"
2929 done
2930
2931 if test "$link_all_deplibs" != no; then
2932 # Add the search paths of all dependency libraries
2933 for deplib in $dependency_libs; do
2934 case $deplib in
2935 -L*) path="$deplib" ;;
2936 *.la)
2937 dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
2938 test "X$dir" = "X$deplib" && dir="."
2939 # We need an absolute path.
2940 case $dir in
2941 [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
2942 *)
2943 absdir=`cd "$dir" && pwd`
2944 if test -z "$absdir"; then
2945 $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
2946 absdir="$dir"
2947 fi
2948 ;;
2949 esac
2950 if grep "^installed=no" $deplib > /dev/null; then
2951 path="$absdir/$objdir"
2952 else
2953 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
2954 if test -z "$libdir"; then
2955 $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
2956 exit $EXIT_FAILURE
2957 fi
2958 if test "$absdir" != "$libdir"; then
2959 $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
2960 fi
2961 path="$absdir"
2962 fi
2963 depdepl=
2964 case $host in
2965 *-*-darwin*)
2966 # we do not want to link against static libs,
2967 # but need to link against shared
2968 eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
2969 eval deplibdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
2970 if test -n "$deplibrary_names" ; then
2971 for tmp in $deplibrary_names ; do
2972 depdepl=$tmp
2973 done
2974 if test -f "$deplibdir/$depdepl" ; then
2975 depdepl="$deplibdir/$depdepl"
2976 elif test -f "$path/$depdepl" ; then
2977 depdepl="$path/$depdepl"
2978 else
2979 # Can't find it, oh well...
2980 depdepl=
2981 fi
2982 # do not add paths which are already there
2983 case " $newlib_search_path " in
2984 *" $path "*) ;;
2985 *) newlib_search_path="$newlib_search_path $path";;
2986 esac
2987 fi
2988 path=""
2989 ;;
2990 *)
2991 path="-L$path"
2992 ;;
2993 esac
2994 ;;
2995 -l*)
2996 case $host in
2997 *-*-darwin*)
2998 # Again, we only want to link against shared libraries
2999 eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
3000 for tmp in $newlib_search_path ; do
3001 if test -f "$tmp/lib$tmp_libs.dylib" ; then
3002 eval depdepl="$tmp/lib$tmp_libs.dylib"
3003 break
3004 fi
3005 done
3006 path=""
3007 ;;
3008 *) continue ;;
3009 esac
3010 ;;
3011 *) continue ;;
3012 esac
3013 case " $deplibs " in
3014 *" $path "*) ;;
3015 *) deplibs="$path $deplibs" ;;
3016 esac
3017 case " $deplibs " in
3018 *" $depdepl "*) ;;
3019 *) deplibs="$depdepl $deplibs" ;;
3020 esac
3021 done
3022 fi # link_all_deplibs != no
3023 fi # linkmode = lib
3024 done # for deplib in $libs
3025 dependency_libs="$newdependency_libs"
3026 if test "$pass" = dlpreopen; then
3027 # Link the dlpreopened libraries before other libraries
3028 for deplib in $save_deplibs; do
3029 deplibs="$deplib $deplibs"
3030 done
3031 fi
3032 if test "$pass" != dlopen; then
3033 if test "$pass" != conv; then
3034 # Make sure lib_search_path contains only unique directories.
3035 lib_search_path=
3036 for dir in $newlib_search_path; do
3037 case "$lib_search_path " in
3038 *" $dir "*) ;;
3039 *) lib_search_path="$lib_search_path $dir" ;;
3040 esac
3041 done
3042 newlib_search_path=
3043 fi
3044
3045 if test "$linkmode,$pass" != "prog,link"; then
3046 vars="deplibs"
3047 else
3048 vars="compile_deplibs finalize_deplibs"
3049 fi
3050 for var in $vars dependency_libs; do
3051 # Add libraries to $var in reverse order
3052 eval tmp_libs=\"\$$var\"
3053 new_libs=
3054 for deplib in $tmp_libs; do
3055 # FIXME: Pedantically, this is the right thing to do, so
3056 # that some nasty dependency loop isn't accidentally
3057 # broken:
3058 #new_libs="$deplib $new_libs"
3059 # Pragmatically, this seems to cause very few problems in
3060 # practice:
3061 case $deplib in
3062 -L*) new_libs="$deplib $new_libs" ;;
3063 -R*) ;;
3064 *)
3065 # And here is the reason: when a library appears more
3066 # than once as an explicit dependence of a library, or
3067 # is implicitly linked in more than once by the
3068 # compiler, it is considered special, and multiple
3069 # occurrences thereof are not removed. Compare this
3070 # with having the same library being listed as a
3071 # dependency of multiple other libraries: in this case,
3072 # we know (pedantically, we assume) the library does not
3073 # need to be listed more than once, so we keep only the
3074 # last copy. This is not always right, but it is rare
3075 # enough that we require users that really mean to play
3076 # such unportable linking tricks to link the library
3077 # using -Wl,-lname, so that libtool does not consider it
3078 # for duplicate removal.
3079 case " $specialdeplibs " in
3080 *" $deplib "*) new_libs="$deplib $new_libs" ;;
3081 *)
3082 case " $new_libs " in
3083 *" $deplib "*) ;;
3084 *) new_libs="$deplib $new_libs" ;;
3085 esac
3086 ;;
3087 esac
3088 ;;
3089 esac
3090 done
3091 tmp_libs=
3092 for deplib in $new_libs; do
3093 case $deplib in
3094 -L*)
3095 case " $tmp_libs " in
3096 *" $deplib "*) ;;
3097 *) tmp_libs="$tmp_libs $deplib" ;;
3098 esac
3099 ;;
3100 *) tmp_libs="$tmp_libs $deplib" ;;
3101 esac
3102 done
3103 eval $var=\"$tmp_libs\"
3104 done # for var
3105 fi
3106 # Last step: remove runtime libs from dependency_libs
3107 # (they stay in deplibs)
3108 tmp_libs=
3109 for i in $dependency_libs ; do
3110 case " $predeps $postdeps $compiler_lib_search_path " in
3111 *" $i "*)
3112 i=""
3113 ;;
3114 esac
3115 if test -n "$i" ; then
3116 tmp_libs="$tmp_libs $i"
3117 fi
3118 done
3119 dependency_libs=$tmp_libs
3120 done # for pass
3121 if test "$linkmode" = prog; then
3122 dlfiles="$newdlfiles"
3123 dlprefiles="$newdlprefiles"
3124 fi
3125
3126 case $linkmode in
3127 oldlib)
3128 case " $deplibs" in
3129 *\ -l* | *\ -L*)
3130 $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2 ;;
3131 esac
3132
3133 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
3134 $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
3135 fi
3136
3137 if test -n "$rpath"; then
3138 $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2
3139 fi
3140
3141 if test -n "$xrpath"; then
3142 $echo "$modename: warning: \`-R' is ignored for archives" 1>&2
3143 fi
3144
3145 if test -n "$vinfo"; then
3146 $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2
3147 fi
3148
3149 if test -n "$release"; then
3150 $echo "$modename: warning: \`-release' is ignored for archives" 1>&2
3151 fi
3152
3153 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
3154 $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
3155 fi
3156
3157 # Now set the variables for building old libraries.
3158 build_libtool_libs=no
3159 oldlibs="$output"
3160 objs="$objs$old_deplibs"
3161 ;;
3162
3163 lib)
3164 # Make sure we only generate libraries of the form `libNAME.la'.
3165 case $outputname in
3166 lib*)
3167 name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
3168 eval shared_ext=\"$shrext_cmds\"
3169 eval libname=\"$libname_spec\"
3170 ;;
3171 *)
3172 if test "$module" = no; then
3173 $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
3174 $echo "$help" 1>&2
3175 exit $EXIT_FAILURE
3176 fi
3177 if test "$need_lib_prefix" != no; then
3178 # Add the "lib" prefix for modules if required
3179 name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
3180 eval shared_ext=\"$shrext_cmds\"
3181 eval libname=\"$libname_spec\"
3182 else
3183 libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
3184 fi
3185 ;;
3186 esac
3187
3188 if test -n "$objs"; then
3189 if test "$deplibs_check_method" != pass_all; then
3190 $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
3191 exit $EXIT_FAILURE
3192 else
3193 $echo
3194 $echo "*** Warning: Linking the shared library $output against the non-libtool"
3195 $echo "*** objects $objs is not portable!"
3196 libobjs="$libobjs $objs"
3197 fi
3198 fi
3199
3200 if test "$dlself" != no; then
3201 $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2
3202 fi
3203
3204 set dummy $rpath
3205 if test "$#" -gt 2; then
3206 $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
3207 fi
3208 install_libdir="$2"
3209
3210 oldlibs=
3211 if test -z "$rpath"; then
3212 if test "$build_libtool_libs" = yes; then
3213 # Building a libtool convenience library.
3214 # Some compilers have problems with a `.al' extension so
3215 # convenience libraries should have the same extension an
3216 # archive normally would.
3217 oldlibs="$output_objdir/$libname.$libext $oldlibs"
3218 build_libtool_libs=convenience
3219 build_old_libs=yes
3220 fi
3221
3222 if test -n "$vinfo"; then
3223 $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2
3224 fi
3225
3226 if test -n "$release"; then
3227 $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2
3228 fi
3229 else
3230
3231 # Parse the version information argument.
3232 save_ifs="$IFS"; IFS=':'
3233 set dummy $vinfo 0 0 0
3234 IFS="$save_ifs"
3235
3236 if test -n "$8"; then
3237 $echo "$modename: too many parameters to \`-version-info'" 1>&2
3238 $echo "$help" 1>&2
3239 exit $EXIT_FAILURE
3240 fi
3241
3242 # convert absolute version numbers to libtool ages
3243 # this retains compatibility with .la files and attempts
3244 # to make the code below a bit more comprehensible
3245
3246 case $vinfo_number in
3247 yes)
3248 number_major="$2"
3249 number_minor="$3"
3250 number_revision="$4"
3251 #
3252 # There are really only two kinds -- those that
3253 # use the current revision as the major version
3254 # and those that subtract age and use age as
3255 # a minor version. But, then there is irix
3256 # which has an extra 1 added just for fun
3257 #
3258 case $version_type in
3259 darwin|linux|osf|windows|none)
3260 current=`expr $number_major + $number_minor`
3261 age="$number_minor"
3262 revision="$number_revision"
3263 ;;
3264 freebsd-aout|freebsd-elf|sunos)
3265 current="$number_major"
3266 revision="$number_minor"
3267 age="0"
3268 ;;
3269 irix|nonstopux)
3270 current=`expr $number_major + $number_minor`
3271 age="$number_minor"
3272 revision="$number_minor"
3273 lt_irix_increment=no
3274 ;;
3275 *)
3276 $echo "$modename: unknown library version type \`$version_type'" 1>&2
3277 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
3278 exit $EXIT_FAILURE
3279 ;;
3280 esac
3281 ;;
3282 no)
3283 current="$2"
3284 revision="$3"
3285 age="$4"
3286 ;;
3287 esac
3288
3289 # Check that each of the things are valid numbers.
3290 case $current in
3291 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
3292 *)
3293 $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2
3294 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
3295 exit $EXIT_FAILURE
3296 ;;
3297 esac
3298
3299 case $revision in
3300 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
3301 *)
3302 $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2
3303 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
3304 exit $EXIT_FAILURE
3305 ;;
3306 esac
3307
3308 case $age in
3309 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
3310 *)
3311 $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2
3312 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
3313 exit $EXIT_FAILURE
3314 ;;
3315 esac
3316
3317 if test "$age" -gt "$current"; then
3318 $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
3319 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
3320 exit $EXIT_FAILURE
3321 fi
3322
3323 # Calculate the version variables.
3324 major=
3325 versuffix=
3326 verstring=
3327 case $version_type in
3328 none) ;;
3329
3330 darwin)
3331 # Like Linux, but with the current version available in
3332 # verstring for coding it into the library header
3333 major=.`expr $current - $age`
3334 versuffix="$major.$age.$revision"
3335 # Darwin ld doesn't like 0 for these options...
3336 minor_current=`expr $current + 1`
3337 xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
3338 verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
3339 ;;
3340
3341 freebsd-aout)
3342 major=".$current"
3343 versuffix=".$current.$revision";
3344 ;;
3345
3346 freebsd-elf)
3347 major=".$current"
3348 versuffix=".$current";
3349 ;;
3350
3351 irix | nonstopux)
3352 if test "X$lt_irix_increment" = "Xno"; then
3353 major=`expr $current - $age`
3354 else
3355 major=`expr $current - $age + 1`
3356 fi
3357 case $version_type in
3358 nonstopux) verstring_prefix=nonstopux ;;
3359 *) verstring_prefix=sgi ;;
3360 esac
3361 verstring="$verstring_prefix$major.$revision"
3362
3363 # Add in all the interfaces that we are compatible with.
3364 loop=$revision
3365 while test "$loop" -ne 0; do
3366 iface=`expr $revision - $loop`
3367 loop=`expr $loop - 1`
3368 verstring="$verstring_prefix$major.$iface:$verstring"
3369 done
3370
3371 # Before this point, $major must not contain `.'.
3372 major=.$major
3373 versuffix="$major.$revision"
3374 ;;
3375
3376 linux)
3377 major=.`expr $current - $age`
3378 versuffix="$major.$age.$revision"
3379 ;;
3380
3381 osf)
3382 major=.`expr $current - $age`
3383 versuffix=".$current.$age.$revision"
3384 verstring="$current.$age.$revision"
3385
3386 # Add in all the interfaces that we are compatible with.
3387 loop=$age
3388 while test "$loop" -ne 0; do
3389 iface=`expr $current - $loop`
3390 loop=`expr $loop - 1`
3391 verstring="$verstring:${iface}.0"
3392 done
3393
3394 # Make executables depend on our current version.
3395 verstring="$verstring:${current}.0"
3396 ;;
3397
3398 sunos)
3399 major=".$current"
3400 versuffix=".$current.$revision"
3401 ;;
3402
3403 windows)
3404 # Use '-' rather than '.', since we only want one
3405 # extension on DOS 8.3 filesystems.
3406 major=`expr $current - $age`
3407 versuffix="-$major"
3408 ;;
3409
3410 *)
3411 $echo "$modename: unknown library version type \`$version_type'" 1>&2
3412 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
3413 exit $EXIT_FAILURE
3414 ;;
3415 esac
3416
3417 # Clear the version info if we defaulted, and they specified a release.
3418 if test -z "$vinfo" && test -n "$release"; then
3419 major=
3420 case $version_type in
3421 darwin)
3422 # we can't check for "0.0" in archive_cmds due to quoting
3423 # problems, so we reset it completely
3424 verstring=
3425 ;;
3426 *)
3427 verstring="0.0"
3428 ;;
3429 esac
3430 if test "$need_version" = no; then
3431 versuffix=
3432 else
3433 versuffix=".0.0"
3434 fi
3435 fi
3436
3437 # Remove version info from name if versioning should be avoided
3438 if test "$avoid_version" = yes && test "$need_version" = no; then
3439 major=
3440 versuffix=
3441 verstring=""
3442 fi
3443
3444 # Check to see if the archive will have undefined symbols.
3445 if test "$allow_undefined" = yes; then
3446 if test "$allow_undefined_flag" = unsupported; then
3447 $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2
3448 build_libtool_libs=no
3449 build_old_libs=yes
3450 fi
3451 else
3452 # Don't allow undefined symbols.
3453 allow_undefined_flag="$no_undefined_flag"
3454 fi
3455 fi
3456
3457 if test "$mode" != relink; then
3458 # Remove our outputs, but don't remove object files since they
3459 # may have been created when compiling PIC objects.
3460 removelist=
3461 tempremovelist=`$echo "$output_objdir/*"`
3462 for p in $tempremovelist; do
3463 case $p in
3464 *.$objext)
3465 ;;
3466 $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
3467 if test "X$precious_files_regex" != "X"; then
3468 if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
3469 then
3470 continue
3471 fi
3472 fi
3473 removelist="$removelist $p"
3474 ;;
3475 *) ;;
3476 esac
3477 done
3478 if test -n "$removelist"; then
3479 $show "${rm}r $removelist"
3480 $run ${rm}r $removelist
3481 fi
3482 fi
3483
3484 # Now set the variables for building old libraries.
3485 if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
3486 oldlibs="$oldlibs $output_objdir/$libname.$libext"
3487
3488 # Transform .lo files to .o files.
3489 oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
3490 fi
3491
3492 # Eliminate all temporary directories.
3493 #for path in $notinst_path; do
3494 # lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
3495 # deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
3496 # dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
3497 #done
3498
3499 if test -n "$xrpath"; then
3500 # If the user specified any rpath flags, then add them.
3501 temp_xrpath=
3502 for libdir in $xrpath; do
3503 temp_xrpath="$temp_xrpath -R$libdir"
3504 case "$finalize_rpath " in
3505 *" $libdir "*) ;;
3506 *) finalize_rpath="$finalize_rpath $libdir" ;;
3507 esac
3508 done
3509 if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
3510 dependency_libs="$temp_xrpath $dependency_libs"
3511 fi
3512 fi
3513
3514 # Make sure dlfiles contains only unique files that won't be dlpreopened
3515 old_dlfiles="$dlfiles"
3516 dlfiles=
3517 for lib in $old_dlfiles; do
3518 case " $dlprefiles $dlfiles " in
3519 *" $lib "*) ;;
3520 *) dlfiles="$dlfiles $lib" ;;
3521 esac
3522 done
3523
3524 # Make sure dlprefiles contains only unique files
3525 old_dlprefiles="$dlprefiles"
3526 dlprefiles=
3527 for lib in $old_dlprefiles; do
3528 case "$dlprefiles " in
3529 *" $lib "*) ;;
3530 *) dlprefiles="$dlprefiles $lib" ;;
3531 esac
3532 done
3533
3534 if test "$build_libtool_libs" = yes; then
3535 if test -n "$rpath"; then
3536 case $host in
3537 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
3538 # these systems don't actually have a c library (as such)!
3539 ;;
3540 *-*-rhapsody* | *-*-darwin1.[012])
3541 # Rhapsody C library is in the System framework
3542 deplibs="$deplibs -framework System"
3543 ;;
3544 *-*-netbsd*)
3545 # Don't link with libc until the a.out ld.so is fixed.
3546 ;;
3547 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
3548 # Do not include libc due to us having libc/libc_r.
3549 ;;
3550 *-*-sco3.2v5* | *-*-sco5v6*)
3551 # Causes problems with __ctype
3552 ;;
3553 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
3554 # Compiler inserts libc in the correct place for threads to work
3555 ;;
3556 *)
3557 # Add libc to deplibs on all other systems if necessary.
3558 if test "$build_libtool_need_lc" = "yes"; then
3559 deplibs="$deplibs -lc"
3560 fi
3561 ;;
3562 esac
3563 fi
3564
3565 # Transform deplibs into only deplibs that can be linked in shared.
3566 name_save=$name
3567 libname_save=$libname
3568 release_save=$release
3569 versuffix_save=$versuffix
3570 major_save=$major
3571 # I'm not sure if I'm treating the release correctly. I think
3572 # release should show up in the -l (ie -lgmp5) so we don't want to
3573 # add it in twice. Is that correct?
3574 release=""
3575 versuffix=""
3576 major=""
3577 newdeplibs=
3578 droppeddeps=no
3579 case $deplibs_check_method in
3580 pass_all)
3581 # Don't check for shared/static. Everything works.
3582 # This might be a little naive. We might want to check
3583 # whether the library exists or not. But this is on
3584 # osf3 & osf4 and I'm not really sure... Just
3585 # implementing what was already the behavior.
3586 newdeplibs=$deplibs
3587 ;;
3588 test_compile)
3589 # This code stresses the "libraries are programs" paradigm to its
3590 # limits. Maybe even breaks it. We compile a program, linking it
3591 # against the deplibs as a proxy for the library. Then we can check
3592 # whether they linked in statically or dynamically with ldd.
3593 $rm conftest.c
3594 cat > conftest.c <<EOF
3595 int main() { return 0; }
3596EOF
3597 $rm conftest
3598 if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
3599 ldd_output=`ldd conftest`
3600 for i in $deplibs; do
3601 name=`expr $i : '-l\(.*\)'`
3602 # If $name is empty we are operating on a -L argument.
3603 if test "$name" != "" && test "$name" != "0"; then
3604 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3605 case " $predeps $postdeps " in
3606 *" $i "*)
3607 newdeplibs="$newdeplibs $i"
3608 i=""
3609 ;;
3610 esac
3611 fi
3612 if test -n "$i" ; then
3613 libname=`eval \\$echo \"$libname_spec\"`
3614 deplib_matches=`eval \\$echo \"$library_names_spec\"`
3615 set dummy $deplib_matches
3616 deplib_match=$2
3617 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
3618 newdeplibs="$newdeplibs $i"
3619 else
3620 droppeddeps=yes
3621 $echo
3622 $echo "*** Warning: dynamic linker does not accept needed library $i."
3623 $echo "*** I have the capability to make that library automatically link in when"
3624 $echo "*** you link to this library. But I can only do this if you have a"
3625 $echo "*** shared version of the library, which I believe you do not have"
3626 $echo "*** because a test_compile did reveal that the linker did not use it for"
3627 $echo "*** its dynamic dependency list that programs get resolved with at runtime."
3628 fi
3629 fi
3630 else
3631 newdeplibs="$newdeplibs $i"
3632 fi
3633 done
3634 else
3635 # Error occurred in the first compile. Let's try to salvage
3636 # the situation: Compile a separate program for each library.
3637 for i in $deplibs; do
3638 name=`expr $i : '-l\(.*\)'`
3639 # If $name is empty we are operating on a -L argument.
3640 if test "$name" != "" && test "$name" != "0"; then
3641 $rm conftest
3642 if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
3643 ldd_output=`ldd conftest`
3644 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3645 case " $predeps $postdeps " in
3646 *" $i "*)
3647 newdeplibs="$newdeplibs $i"
3648 i=""
3649 ;;
3650 esac
3651 fi
3652 if test -n "$i" ; then
3653 libname=`eval \\$echo \"$libname_spec\"`
3654 deplib_matches=`eval \\$echo \"$library_names_spec\"`
3655 set dummy $deplib_matches
3656 deplib_match=$2
3657 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
3658 newdeplibs="$newdeplibs $i"
3659 else
3660 droppeddeps=yes
3661 $echo
3662 $echo "*** Warning: dynamic linker does not accept needed library $i."
3663 $echo "*** I have the capability to make that library automatically link in when"
3664 $echo "*** you link to this library. But I can only do this if you have a"
3665 $echo "*** shared version of the library, which you do not appear to have"
3666 $echo "*** because a test_compile did reveal that the linker did not use this one"
3667 $echo "*** as a dynamic dependency that programs can get resolved with at runtime."
3668 fi
3669 fi
3670 else
3671 droppeddeps=yes
3672 $echo
3673 $echo "*** Warning! Library $i is needed by this library but I was not able to"
3674 $echo "*** make it link in! You will probably need to install it or some"
3675 $echo "*** library that it depends on before this library will be fully"
3676 $echo "*** functional. Installing it before continuing would be even better."
3677 fi
3678 else
3679 newdeplibs="$newdeplibs $i"
3680 fi
3681 done
3682 fi
3683 ;;
3684 file_magic*)
3685 set dummy $deplibs_check_method
3686 file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
3687 for a_deplib in $deplibs; do
3688 name=`expr $a_deplib : '-l\(.*\)'`
3689 # If $name is empty we are operating on a -L argument.
3690 if test "$name" != "" && test "$name" != "0"; then
3691 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3692 case " $predeps $postdeps " in
3693 *" $a_deplib "*)
3694 newdeplibs="$newdeplibs $a_deplib"
3695 a_deplib=""
3696 ;;
3697 esac
3698 fi
3699 if test -n "$a_deplib" ; then
3700 libname=`eval \\$echo \"$libname_spec\"`
3701 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
3702 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
3703 for potent_lib in $potential_libs; do
3704 # Follow soft links.
3705 if ls -lLd "$potent_lib" 2>/dev/null \
3706 | grep " -> " >/dev/null; then
3707 continue
3708 fi
3709 # The statement above tries to avoid entering an
3710 # endless loop below, in case of cyclic links.
3711 # We might still enter an endless loop, since a link
3712 # loop can be closed while we follow links,
3713 # but so what?
3714 potlib="$potent_lib"
3715 while test -h "$potlib" 2>/dev/null; do
3716 potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
3717 case $potliblink in
3718 [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
3719 *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
3720 esac
3721 done
3722 if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
3723 | ${SED} 10q \
3724 | $EGREP "$file_magic_regex" > /dev/null; then
3725 newdeplibs="$newdeplibs $a_deplib"
3726 a_deplib=""
3727 break 2
3728 fi
3729 done
3730 done
3731 fi
3732 if test -n "$a_deplib" ; then
3733 droppeddeps=yes
3734 $echo
3735 $echo "*** Warning: linker path does not have real file for library $a_deplib."
3736 $echo "*** I have the capability to make that library automatically link in when"
3737 $echo "*** you link to this library. But I can only do this if you have a"
3738 $echo "*** shared version of the library, which you do not appear to have"
3739 $echo "*** because I did check the linker path looking for a file starting"
3740 if test -z "$potlib" ; then
3741 $echo "*** with $libname but no candidates were found. (...for file magic test)"
3742 else
3743 $echo "*** with $libname and none of the candidates passed a file format test"
3744 $echo "*** using a file magic. Last file checked: $potlib"
3745 fi
3746 fi
3747 else
3748 # Add a -L argument.
3749 newdeplibs="$newdeplibs $a_deplib"
3750 fi
3751 done # Gone through all deplibs.
3752 ;;
3753 match_pattern*)
3754 set dummy $deplibs_check_method
3755 match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
3756 for a_deplib in $deplibs; do
3757 name=`expr $a_deplib : '-l\(.*\)'`
3758 # If $name is empty we are operating on a -L argument.
3759 if test -n "$name" && test "$name" != "0"; then
3760 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3761 case " $predeps $postdeps " in
3762 *" $a_deplib "*)
3763 newdeplibs="$newdeplibs $a_deplib"
3764 a_deplib=""
3765 ;;
3766 esac
3767 fi
3768 if test -n "$a_deplib" ; then
3769 libname=`eval \\$echo \"$libname_spec\"`
3770 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
3771 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
3772 for potent_lib in $potential_libs; do
3773 potlib="$potent_lib" # see symlink-check above in file_magic test
3774 if eval $echo \"$potent_lib\" 2>/dev/null \
3775 | ${SED} 10q \
3776 | $EGREP "$match_pattern_regex" > /dev/null; then
3777 newdeplibs="$newdeplibs $a_deplib"
3778 a_deplib=""
3779 break 2
3780 fi
3781 done
3782 done
3783 fi
3784 if test -n "$a_deplib" ; then
3785 droppeddeps=yes
3786 $echo
3787 $echo "*** Warning: linker path does not have real file for library $a_deplib."
3788 $echo "*** I have the capability to make that library automatically link in when"
3789 $echo "*** you link to this library. But I can only do this if you have a"
3790 $echo "*** shared version of the library, which you do not appear to have"
3791 $echo "*** because I did check the linker path looking for a file starting"
3792 if test -z "$potlib" ; then
3793 $echo "*** with $libname but no candidates were found. (...for regex pattern test)"
3794 else
3795 $echo "*** with $libname and none of the candidates passed a file format test"
3796 $echo "*** using a regex pattern. Last file checked: $potlib"
3797 fi
3798 fi
3799 else
3800 # Add a -L argument.
3801 newdeplibs="$newdeplibs $a_deplib"
3802 fi
3803 done # Gone through all deplibs.
3804 ;;
3805 none | unknown | *)
3806 newdeplibs=""
3807 tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
3808 -e 's/ -[LR][^ ]*//g'`
3809 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3810 for i in $predeps $postdeps ; do
3811 # can't use Xsed below, because $i might contain '/'
3812 tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"`
3813 done
3814 fi
3815 if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \
3816 | grep . >/dev/null; then
3817 $echo
3818 if test "X$deplibs_check_method" = "Xnone"; then
3819 $echo "*** Warning: inter-library dependencies are not supported in this platform."
3820 else
3821 $echo "*** Warning: inter-library dependencies are not known to be supported."
3822 fi
3823 $echo "*** All declared inter-library dependencies are being dropped."
3824 droppeddeps=yes
3825 fi
3826 ;;
3827 esac
3828 versuffix=$versuffix_save
3829 major=$major_save
3830 release=$release_save
3831 libname=$libname_save
3832 name=$name_save
3833
3834 case $host in
3835 *-*-rhapsody* | *-*-darwin1.[012])
3836 # On Rhapsody replace the C library is the System framework
3837 newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
3838 ;;
3839 esac
3840
3841 if test "$droppeddeps" = yes; then
3842 if test "$module" = yes; then
3843 $echo
3844 $echo "*** Warning: libtool could not satisfy all declared inter-library"
3845 $echo "*** dependencies of module $libname. Therefore, libtool will create"
3846 $echo "*** a static module, that should work as long as the dlopening"
3847 $echo "*** application is linked with the -dlopen flag."
3848 if test -z "$global_symbol_pipe"; then
3849 $echo
3850 $echo "*** However, this would only work if libtool was able to extract symbol"
3851 $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
3852 $echo "*** not find such a program. So, this module is probably useless."
3853 $echo "*** \`nm' from GNU binutils and a full rebuild may help."
3854 fi
3855 if test "$build_old_libs" = no; then
3856 oldlibs="$output_objdir/$libname.$libext"
3857 build_libtool_libs=module
3858 build_old_libs=yes
3859 else
3860 build_libtool_libs=no
3861 fi
3862 else
3863 $echo "*** The inter-library dependencies that have been dropped here will be"
3864 $echo "*** automatically added whenever a program is linked with this library"
3865 $echo "*** or is declared to -dlopen it."
3866
3867 if test "$allow_undefined" = no; then
3868 $echo
3869 $echo "*** Since this library must not contain undefined symbols,"
3870 $echo "*** because either the platform does not support them or"
3871 $echo "*** it was explicitly requested with -no-undefined,"
3872 $echo "*** libtool will only create a static version of it."
3873 if test "$build_old_libs" = no; then
3874 oldlibs="$output_objdir/$libname.$libext"
3875 build_libtool_libs=module
3876 build_old_libs=yes
3877 else
3878 build_libtool_libs=no
3879 fi
3880 fi
3881 fi
3882 fi
3883 # Done checking deplibs!
3884 deplibs=$newdeplibs
3885 fi
3886
3887
3888 # move library search paths that coincide with paths to not yet
3889 # installed libraries to the beginning of the library search list
3890 new_libs=
3891 for path in $notinst_path; do
3892 case " $new_libs " in
3893 *" -L$path/$objdir "*) ;;
3894 *)
3895 case " $deplibs " in
3896 *" -L$path/$objdir "*)
3897 new_libs="$new_libs -L$path/$objdir" ;;
3898 esac
3899 ;;
3900 esac
3901 done
3902 for deplib in $deplibs; do
3903 case $deplib in
3904 -L*)
3905 case " $new_libs " in
3906 *" $deplib "*) ;;
3907 *) new_libs="$new_libs $deplib" ;;
3908 esac
3909 ;;
3910 *) new_libs="$new_libs $deplib" ;;
3911 esac
3912 done
3913 deplibs="$new_libs"
3914
3915
3916 # All the library-specific variables (install_libdir is set above).
3917 library_names=
3918 old_library=
3919 dlname=
3920
3921 # Test again, we may have decided not to build it any more
3922 if test "$build_libtool_libs" = yes; then
3923 if test "$hardcode_into_libs" = yes; then
3924 # Hardcode the library paths
3925 hardcode_libdirs=
3926 dep_rpath=
3927 rpath="$finalize_rpath"
3928 test "$mode" != relink && rpath="$compile_rpath$rpath"
3929 for libdir in $rpath; do
3930 if test -n "$hardcode_libdir_flag_spec"; then
3931 if test -n "$hardcode_libdir_separator"; then
3932 if test -z "$hardcode_libdirs"; then
3933 hardcode_libdirs="$libdir"
3934 else
3935 # Just accumulate the unique libdirs.
3936 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
3937 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
3938 ;;
3939 *)
3940 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
3941 ;;
3942 esac
3943 fi
3944 else
3945 eval flag=\"$hardcode_libdir_flag_spec\"
3946 dep_rpath="$dep_rpath $flag"
3947 fi
3948 elif test -n "$runpath_var"; then
3949 case "$perm_rpath " in
3950 *" $libdir "*) ;;
3951 *) perm_rpath="$perm_rpath $libdir" ;;
3952 esac
3953 fi
3954 done
3955 # Substitute the hardcoded libdirs into the rpath.
3956 if test -n "$hardcode_libdir_separator" &&
3957 test -n "$hardcode_libdirs"; then
3958 libdir="$hardcode_libdirs"
3959 if test -n "$hardcode_libdir_flag_spec_ld"; then
3960 case $archive_cmds in
3961 *\$LD*) eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" ;;
3962 *) eval dep_rpath=\"$hardcode_libdir_flag_spec\" ;;
3963 esac
3964 else
3965 eval dep_rpath=\"$hardcode_libdir_flag_spec\"
3966 fi
3967 fi
3968 if test -n "$runpath_var" && test -n "$perm_rpath"; then
3969 # We should set the runpath_var.
3970 rpath=
3971 for dir in $perm_rpath; do
3972 rpath="$rpath$dir:"
3973 done
3974 eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
3975 fi
3976 test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
3977 fi
3978
3979 shlibpath="$finalize_shlibpath"
3980 test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
3981 if test -n "$shlibpath"; then
3982 eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
3983 fi
3984
3985 # Get the real and link names of the library.
3986 eval shared_ext=\"$shrext_cmds\"
3987 eval library_names=\"$library_names_spec\"
3988 set dummy $library_names
3989 realname="$2"
3990 shift; shift
3991
3992 if test -n "$soname_spec"; then
3993 eval soname=\"$soname_spec\"
3994 else
3995 soname="$realname"
3996 fi
3997 if test -z "$dlname"; then
3998 dlname=$soname
3999 fi
4000
4001 lib="$output_objdir/$realname"
4002 linknames=
4003 for link
4004 do
4005 linknames="$linknames $link"
4006 done
4007
4008 # Use standard objects if they are pic
4009 test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
4010
4011 # Prepare the list of exported symbols
4012 if test -z "$export_symbols"; then
4013 if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
4014 $show "generating symbol list for \`$libname.la'"
4015 export_symbols="$output_objdir/$libname.exp"
4016 $run $rm $export_symbols
4017 cmds=$export_symbols_cmds
4018 save_ifs="$IFS"; IFS='~'
4019 for cmd in $cmds; do
4020 IFS="$save_ifs"
4021 eval cmd=\"$cmd\"
4022 if len=`expr "X$cmd" : ".*"` &&
4023 test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
4024 $show "$cmd"
4025 $run eval "$cmd" || exit $?
4026 skipped_export=false
4027 else
4028 # The command line is too long to execute in one step.
4029 $show "using reloadable object file for export list..."
4030 skipped_export=:
4031 # Break out early, otherwise skipped_export may be
4032 # set to false by a later but shorter cmd.
4033 break
4034 fi
4035 done
4036 IFS="$save_ifs"
4037 if test -n "$export_symbols_regex"; then
4038 $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
4039 $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
4040 $show "$mv \"${export_symbols}T\" \"$export_symbols\""
4041 $run eval '$mv "${export_symbols}T" "$export_symbols"'
4042 fi
4043 fi
4044 fi
4045
4046 if test -n "$export_symbols" && test -n "$include_expsyms"; then
4047 $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
4048 fi
4049
4050 tmp_deplibs=
4051 for test_deplib in $deplibs; do
4052 case " $convenience " in
4053 *" $test_deplib "*) ;;
4054 *)
4055 tmp_deplibs="$tmp_deplibs $test_deplib"
4056 ;;
4057 esac
4058 done
4059 deplibs="$tmp_deplibs"
4060
4061 if test -n "$convenience"; then
4062 if test -n "$whole_archive_flag_spec"; then
4063 save_libobjs=$libobjs
4064 eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
4065 else
4066 gentop="$output_objdir/${outputname}x"
4067 generated="$generated $gentop"
4068
4069 func_extract_archives $gentop $convenience
4070 libobjs="$libobjs $func_extract_archives_result"
4071 fi
4072 fi
4073
4074 if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
4075 eval flag=\"$thread_safe_flag_spec\"
4076 linker_flags="$linker_flags $flag"
4077 fi
4078
4079 # Make a backup of the uninstalled library when relinking
4080 if test "$mode" = relink; then
4081 $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $?
4082 fi
4083
4084 # Do each of the archive commands.
4085 if test "$module" = yes && test -n "$module_cmds" ; then
4086 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
4087 eval test_cmds=\"$module_expsym_cmds\"
4088 cmds=$module_expsym_cmds
4089 else
4090 eval test_cmds=\"$module_cmds\"
4091 cmds=$module_cmds
4092 fi
4093 else
4094 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
4095 eval test_cmds=\"$archive_expsym_cmds\"
4096 cmds=$archive_expsym_cmds
4097 else
4098 eval test_cmds=\"$archive_cmds\"
4099 cmds=$archive_cmds
4100 fi
4101 fi
4102
4103 if test "X$skipped_export" != "X:" &&
4104 len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
4105 test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
4106 :
4107 else
4108 # The command line is too long to link in one step, link piecewise.
4109 $echo "creating reloadable object files..."
4110
4111 # Save the value of $output and $libobjs because we want to
4112 # use them later. If we have whole_archive_flag_spec, we
4113 # want to use save_libobjs as it was before
4114 # whole_archive_flag_spec was expanded, because we can't
4115 # assume the linker understands whole_archive_flag_spec.
4116 # This may have to be revisited, in case too many
4117 # convenience libraries get linked in and end up exceeding
4118 # the spec.
4119 if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
4120 save_libobjs=$libobjs
4121 fi
4122 save_output=$output
4123 output_la=`$echo "X$output" | $Xsed -e "$basename"`
4124
4125 # Clear the reloadable object creation command queue and
4126 # initialize k to one.
4127 test_cmds=
4128 concat_cmds=
4129 objlist=
4130 delfiles=
4131 last_robj=
4132 k=1
4133 output=$output_objdir/$output_la-${k}.$objext
4134 # Loop over the list of objects to be linked.
4135 for obj in $save_libobjs
4136 do
4137 eval test_cmds=\"$reload_cmds $objlist $last_robj\"
4138 if test "X$objlist" = X ||
4139 { len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
4140 test "$len" -le "$max_cmd_len"; }; then
4141 objlist="$objlist $obj"
4142 else
4143 # The command $test_cmds is almost too long, add a
4144 # command to the queue.
4145 if test "$k" -eq 1 ; then
4146 # The first file doesn't have a previous command to add.
4147 eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
4148 else
4149 # All subsequent reloadable object files will link in
4150 # the last one created.
4151 eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
4152 fi
4153 last_robj=$output_objdir/$output_la-${k}.$objext
4154 k=`expr $k + 1`
4155 output=$output_objdir/$output_la-${k}.$objext
4156 objlist=$obj
4157 len=1
4158 fi
4159 done
4160 # Handle the remaining objects by creating one last
4161 # reloadable object file. All subsequent reloadable object
4162 # files will link in the last one created.
4163 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
4164 eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
4165
4166 if ${skipped_export-false}; then
4167 $show "generating symbol list for \`$libname.la'"
4168 export_symbols="$output_objdir/$libname.exp"
4169 $run $rm $export_symbols
4170 libobjs=$output
4171 # Append the command to create the export file.
4172 eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
4173 fi
4174
4175 # Set up a command to remove the reloadable object files
4176 # after they are used.
4177 i=0
4178 while test "$i" -lt "$k"
4179 do
4180 i=`expr $i + 1`
4181 delfiles="$delfiles $output_objdir/$output_la-${i}.$objext"
4182 done
4183
4184 $echo "creating a temporary reloadable object file: $output"
4185
4186 # Loop through the commands generated above and execute them.
4187 save_ifs="$IFS"; IFS='~'
4188 for cmd in $concat_cmds; do
4189 IFS="$save_ifs"
4190 $show "$cmd"
4191 $run eval "$cmd" || exit $?
4192 done
4193 IFS="$save_ifs"
4194
4195 libobjs=$output
4196 # Restore the value of output.
4197 output=$save_output
4198
4199 if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
4200 eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
4201 fi
4202 # Expand the library linking commands again to reset the
4203 # value of $libobjs for piecewise linking.
4204
4205 # Do each of the archive commands.
4206 if test "$module" = yes && test -n "$module_cmds" ; then
4207 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
4208 cmds=$module_expsym_cmds
4209 else
4210 cmds=$module_cmds
4211 fi
4212 else
4213 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
4214 cmds=$archive_expsym_cmds
4215 else
4216 cmds=$archive_cmds
4217 fi
4218 fi
4219
4220 # Append the command to remove the reloadable object files
4221 # to the just-reset $cmds.
4222 eval cmds=\"\$cmds~\$rm $delfiles\"
4223 fi
4224 save_ifs="$IFS"; IFS='~'
4225 for cmd in $cmds; do
4226 IFS="$save_ifs"
4227 eval cmd=\"$cmd\"
4228 $show "$cmd"
4229 $run eval "$cmd" || {
4230 lt_exit=$?
4231
4232 # Restore the uninstalled library and exit
4233 if test "$mode" = relink; then
4234 $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
4235 fi
4236
4237 exit $lt_exit
4238 }
4239 done
4240 IFS="$save_ifs"
4241
4242 # Restore the uninstalled library and exit
4243 if test "$mode" = relink; then
4244 $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
4245
4246 if test -n "$convenience"; then
4247 if test -z "$whole_archive_flag_spec"; then
4248 $show "${rm}r $gentop"
4249 $run ${rm}r "$gentop"
4250 fi
4251 fi
4252
4253 exit $EXIT_SUCCESS
4254 fi
4255
4256 # Create links to the real library.
4257 for linkname in $linknames; do
4258 if test "$realname" != "$linkname"; then
4259 $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)"
4260 $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $?
4261 fi
4262 done
4263
4264 # If -module or -export-dynamic was specified, set the dlname.
4265 if test "$module" = yes || test "$export_dynamic" = yes; then
4266 # On all known operating systems, these are identical.
4267 dlname="$soname"
4268 fi
4269 fi
4270 ;;
4271
4272 obj)
4273 case " $deplibs" in
4274 *\ -l* | *\ -L*)
4275 $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2 ;;
4276 esac
4277
4278 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
4279 $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
4280 fi
4281
4282 if test -n "$rpath"; then
4283 $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2
4284 fi
4285
4286 if test -n "$xrpath"; then
4287 $echo "$modename: warning: \`-R' is ignored for objects" 1>&2
4288 fi
4289
4290 if test -n "$vinfo"; then
4291 $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2
4292 fi
4293
4294 if test -n "$release"; then
4295 $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
4296 fi
4297
4298 case $output in
4299 *.lo)
4300 if test -n "$objs$old_deplibs"; then
4301 $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
4302 exit $EXIT_FAILURE
4303 fi
4304 libobj="$output"
4305 obj=`$echo "X$output" | $Xsed -e "$lo2o"`
4306 ;;
4307 *)
4308 libobj=
4309 obj="$output"
4310 ;;
4311 esac
4312
4313 # Delete the old objects.
4314 $run $rm $obj $libobj
4315
4316 # Objects from convenience libraries. This assumes
4317 # single-version convenience libraries. Whenever we create
4318 # different ones for PIC/non-PIC, this we'll have to duplicate
4319 # the extraction.
4320 reload_conv_objs=
4321 gentop=
4322 # reload_cmds runs $LD directly, so let us get rid of
4323 # -Wl from whole_archive_flag_spec and hope we can get by with
4324 # turning comma into space..
4325 wl=
4326
4327 if test -n "$convenience"; then
4328 if test -n "$whole_archive_flag_spec"; then
4329 eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
4330 reload_conv_objs=$reload_objs\ `$echo "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
4331 else
4332 gentop="$output_objdir/${obj}x"
4333 generated="$generated $gentop"
4334
4335 func_extract_archives $gentop $convenience
4336 reload_conv_objs="$reload_objs $func_extract_archives_result"
4337 fi
4338 fi
4339
4340 # Create the old-style object.
4341 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
4342
4343 output="$obj"
4344 cmds=$reload_cmds
4345 save_ifs="$IFS"; IFS='~'
4346 for cmd in $cmds; do
4347 IFS="$save_ifs"
4348 eval cmd=\"$cmd\"
4349 $show "$cmd"
4350 $run eval "$cmd" || exit $?
4351 done
4352 IFS="$save_ifs"
4353
4354 # Exit if we aren't doing a library object file.
4355 if test -z "$libobj"; then
4356 if test -n "$gentop"; then
4357 $show "${rm}r $gentop"
4358 $run ${rm}r $gentop
4359 fi
4360
4361 exit $EXIT_SUCCESS
4362 fi
4363
4364 if test "$build_libtool_libs" != yes; then
4365 if test -n "$gentop"; then
4366 $show "${rm}r $gentop"
4367 $run ${rm}r $gentop
4368 fi
4369
4370 # Create an invalid libtool object if no PIC, so that we don't
4371 # accidentally link it into a program.
4372 # $show "echo timestamp > $libobj"
4373 # $run eval "echo timestamp > $libobj" || exit $?
4374 exit $EXIT_SUCCESS
4375 fi
4376
4377 if test -n "$pic_flag" || test "$pic_mode" != default; then
4378 # Only do commands if we really have different PIC objects.
4379 reload_objs="$libobjs $reload_conv_objs"
4380 output="$libobj"
4381 cmds=$reload_cmds
4382 save_ifs="$IFS"; IFS='~'
4383 for cmd in $cmds; do
4384 IFS="$save_ifs"
4385 eval cmd=\"$cmd\"
4386 $show "$cmd"
4387 $run eval "$cmd" || exit $?
4388 done
4389 IFS="$save_ifs"
4390 fi
4391
4392 if test -n "$gentop"; then
4393 $show "${rm}r $gentop"
4394 $run ${rm}r $gentop
4395 fi
4396
4397 exit $EXIT_SUCCESS
4398 ;;
4399
4400 prog)
4401 case $host in
4402 *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
4403 esac
4404 if test -n "$vinfo"; then
4405 $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
4406 fi
4407
4408 if test -n "$release"; then
4409 $echo "$modename: warning: \`-release' is ignored for programs" 1>&2
4410 fi
4411
4412 if test "$preload" = yes; then
4413 if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown &&
4414 test "$dlopen_self_static" = unknown; then
4415 $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
4416 fi
4417 fi
4418
4419 case $host in
4420 *-*-rhapsody* | *-*-darwin1.[012])
4421 # On Rhapsody replace the C library is the System framework
4422 compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
4423 finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
4424 ;;
4425 esac
4426
4427 case $host in
4428 *darwin*)
4429 # Don't allow lazy linking, it breaks C++ global constructors
4430 if test "$tagname" = CXX ; then
4431 compile_command="$compile_command ${wl}-bind_at_load"
4432 finalize_command="$finalize_command ${wl}-bind_at_load"
4433 fi
4434 ;;
4435 esac
4436
4437
4438 # move library search paths that coincide with paths to not yet
4439 # installed libraries to the beginning of the library search list
4440 new_libs=
4441 for path in $notinst_path; do
4442 case " $new_libs " in
4443 *" -L$path/$objdir "*) ;;
4444 *)
4445 case " $compile_deplibs " in
4446 *" -L$path/$objdir "*)
4447 new_libs="$new_libs -L$path/$objdir" ;;
4448 esac
4449 ;;
4450 esac
4451 done
4452 for deplib in $compile_deplibs; do
4453 case $deplib in
4454 -L*)
4455 case " $new_libs " in
4456 *" $deplib "*) ;;
4457 *) new_libs="$new_libs $deplib" ;;
4458 esac
4459 ;;
4460 *) new_libs="$new_libs $deplib" ;;
4461 esac
4462 done
4463 compile_deplibs="$new_libs"
4464
4465
4466 compile_command="$compile_command $compile_deplibs"
4467 finalize_command="$finalize_command $finalize_deplibs"
4468
4469 if test -n "$rpath$xrpath"; then
4470 # If the user specified any rpath flags, then add them.
4471 for libdir in $rpath $xrpath; do
4472 # This is the magic to use -rpath.
4473 case "$finalize_rpath " in
4474 *" $libdir "*) ;;
4475 *) finalize_rpath="$finalize_rpath $libdir" ;;
4476 esac
4477 done
4478 fi
4479
4480 # Now hardcode the library paths
4481 rpath=
4482 hardcode_libdirs=
4483 for libdir in $compile_rpath $finalize_rpath; do
4484 if test -n "$hardcode_libdir_flag_spec"; then
4485 if test -n "$hardcode_libdir_separator"; then
4486 if test -z "$hardcode_libdirs"; then
4487 hardcode_libdirs="$libdir"
4488 else
4489 # Just accumulate the unique libdirs.
4490 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
4491 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
4492 ;;
4493 *)
4494 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
4495 ;;
4496 esac
4497 fi
4498 else
4499 eval flag=\"$hardcode_libdir_flag_spec\"
4500 rpath="$rpath $flag"
4501 fi
4502 elif test -n "$runpath_var"; then
4503 case "$perm_rpath " in
4504 *" $libdir "*) ;;
4505 *) perm_rpath="$perm_rpath $libdir" ;;
4506 esac
4507 fi
4508 case $host in
4509 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
4510 testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'`
4511 case :$dllsearchpath: in
4512 *":$libdir:"*) ;;
4513 *) dllsearchpath="$dllsearchpath:$libdir";;
4514 esac
4515 case :$dllsearchpath: in
4516 *":$testbindir:"*) ;;
4517 *) dllsearchpath="$dllsearchpath:$testbindir";;
4518 esac
4519 ;;
4520 esac
4521 done
4522 # Substitute the hardcoded libdirs into the rpath.
4523 if test -n "$hardcode_libdir_separator" &&
4524 test -n "$hardcode_libdirs"; then
4525 libdir="$hardcode_libdirs"
4526 eval rpath=\" $hardcode_libdir_flag_spec\"
4527 fi
4528 compile_rpath="$rpath"
4529
4530 rpath=
4531 hardcode_libdirs=
4532 for libdir in $finalize_rpath; do
4533 if test -n "$hardcode_libdir_flag_spec"; then
4534 if test -n "$hardcode_libdir_separator"; then
4535 if test -z "$hardcode_libdirs"; then
4536 hardcode_libdirs="$libdir"
4537 else
4538 # Just accumulate the unique libdirs.
4539 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
4540 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
4541 ;;
4542 *)
4543 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
4544 ;;
4545 esac
4546 fi
4547 else
4548 eval flag=\"$hardcode_libdir_flag_spec\"
4549 rpath="$rpath $flag"
4550 fi
4551 elif test -n "$runpath_var"; then
4552 case "$finalize_perm_rpath " in
4553 *" $libdir "*) ;;
4554 *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
4555 esac
4556 fi
4557 done
4558 # Substitute the hardcoded libdirs into the rpath.
4559 if test -n "$hardcode_libdir_separator" &&
4560 test -n "$hardcode_libdirs"; then
4561 libdir="$hardcode_libdirs"
4562 eval rpath=\" $hardcode_libdir_flag_spec\"
4563 fi
4564 finalize_rpath="$rpath"
4565
4566 if test -n "$libobjs" && test "$build_old_libs" = yes; then
4567 # Transform all the library objects into standard objects.
4568 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
4569 finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
4570 fi
4571
4572 dlsyms=
4573 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
4574 if test -n "$NM" && test -n "$global_symbol_pipe"; then
4575 dlsyms="${outputname}S.c"
4576 else
4577 $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2
4578 fi
4579 fi
4580
4581 if test -n "$dlsyms"; then
4582 case $dlsyms in
4583 "") ;;
4584 *.c)
4585 # Discover the nlist of each of the dlfiles.
4586 nlist="$output_objdir/${outputname}.nm"
4587
4588 $show "$rm $nlist ${nlist}S ${nlist}T"
4589 $run $rm "$nlist" "${nlist}S" "${nlist}T"
4590
4591 # Parse the name list into a source file.
4592 $show "creating $output_objdir/$dlsyms"
4593
4594 test -z "$run" && $echo > "$output_objdir/$dlsyms" "\
4595/* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */
4596/* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */
4597
4598#ifdef __cplusplus
4599extern \"C\" {
4600#endif
4601
4602/* Prevent the only kind of declaration conflicts we can make. */
4603#define lt_preloaded_symbols some_other_symbol
4604
4605/* External symbol declarations for the compiler. */\
4606"
4607
4608 if test "$dlself" = yes; then
4609 $show "generating symbol list for \`$output'"
4610
4611 test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
4612
4613 # Add our own program objects to the symbol list.
4614 progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
4615 for arg in $progfiles; do
4616 $show "extracting global C symbols from \`$arg'"
4617 $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
4618 done
4619
4620 if test -n "$exclude_expsyms"; then
4621 $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
4622 $run eval '$mv "$nlist"T "$nlist"'
4623 fi
4624
4625 if test -n "$export_symbols_regex"; then
4626 $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
4627 $run eval '$mv "$nlist"T "$nlist"'
4628 fi
4629
4630 # Prepare the list of exported symbols
4631 if test -z "$export_symbols"; then
4632 export_symbols="$output_objdir/$outputname.exp"
4633 $run $rm $export_symbols
4634 $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
4635 case $host in
4636 *cygwin* | *mingw* )
4637 $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
4638 $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
4639 ;;
4640 esac
4641 else
4642 $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
4643 $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
4644 $run eval 'mv "$nlist"T "$nlist"'
4645 case $host in
4646 *cygwin* | *mingw* )
4647 $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
4648 $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
4649 ;;
4650 esac
4651 fi
4652 fi
4653
4654 for arg in $dlprefiles; do
4655 $show "extracting global C symbols from \`$arg'"
4656 name=`$echo "$arg" | ${SED} -e 's%^.*/%%'`
4657 $run eval '$echo ": $name " >> "$nlist"'
4658 $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
4659 done
4660
4661 if test -z "$run"; then
4662 # Make sure we have at least an empty file.
4663 test -f "$nlist" || : > "$nlist"
4664
4665 if test -n "$exclude_expsyms"; then
4666 $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
4667 $mv "$nlist"T "$nlist"
4668 fi
4669
4670 # Try sorting and uniquifying the output.
4671 if grep -v "^: " < "$nlist" |
4672 if sort -k 3 </dev/null >/dev/null 2>&1; then
4673 sort -k 3
4674 else
4675 sort +2
4676 fi |
4677 uniq > "$nlist"S; then
4678 :
4679 else
4680 grep -v "^: " < "$nlist" > "$nlist"S
4681 fi
4682
4683 if test -f "$nlist"S; then
4684 eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
4685 else
4686 $echo '/* NONE */' >> "$output_objdir/$dlsyms"
4687 fi
4688
4689 $echo >> "$output_objdir/$dlsyms" "\
4690
4691#undef lt_preloaded_symbols
4692
4693#if defined (__STDC__) && __STDC__
4694# define lt_ptr void *
4695#else
4696# define lt_ptr char *
4697# define const
4698#endif
4699
4700/* The mapping between symbol names and symbols. */
4701"
4702
4703 case $host in
4704 *cygwin* | *mingw* )
4705 $echo >> "$output_objdir/$dlsyms" "\
4706/* DATA imports from DLLs on WIN32 can't be const, because
4707 runtime relocations are performed -- see ld's documentation
4708 on pseudo-relocs */
4709struct {
4710"
4711 ;;
4712 * )
4713 $echo >> "$output_objdir/$dlsyms" "\
4714const struct {
4715"
4716 ;;
4717 esac
4718
4719
4720 $echo >> "$output_objdir/$dlsyms" "\
4721 const char *name;
4722 lt_ptr address;
4723}
4724lt_preloaded_symbols[] =
4725{\
4726"
4727
4728 eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
4729
4730 $echo >> "$output_objdir/$dlsyms" "\
4731 {0, (lt_ptr) 0}
4732};
4733
4734/* This works around a problem in FreeBSD linker */
4735#ifdef FREEBSD_WORKAROUND
4736static const void *lt_preloaded_setup() {
4737 return lt_preloaded_symbols;
4738}
4739#endif
4740
4741#ifdef __cplusplus
4742}
4743#endif\
4744"
4745 fi
4746
4747 pic_flag_for_symtable=
4748 case $host in
4749 # compiling the symbol table file with pic_flag works around
4750 # a FreeBSD bug that causes programs to crash when -lm is
4751 # linked before any other PIC object. But we must not use
4752 # pic_flag when linking with -static. The problem exists in
4753 # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
4754 *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
4755 case "$compile_command " in
4756 *" -static "*) ;;
4757 *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";;
4758 esac;;
4759 *-*-hpux*)
4760 case "$compile_command " in
4761 *" -static "*) ;;
4762 *) pic_flag_for_symtable=" $pic_flag";;
4763 esac
4764 esac
4765
4766 # Now compile the dynamic symbol file.
4767 $show "(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
4768 $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
4769
4770 # Clean up the generated files.
4771 $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
4772 $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
4773
4774 # Transform the symbol file into the correct name.
4775 case $host in
4776 *cygwin* | *mingw* )
4777 if test -f "$output_objdir/${outputname}.def" ; then
4778 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
4779 finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
4780 else
4781 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
4782 finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
4783 fi
4784 ;;
4785 * )
4786 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
4787 finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
4788 ;;
4789 esac
4790 ;;
4791 *)
4792 $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
4793 exit $EXIT_FAILURE
4794 ;;
4795 esac
4796 else
4797 # We keep going just in case the user didn't refer to
4798 # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
4799 # really was required.
4800
4801 # Nullify the symbol file.
4802 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
4803 finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
4804 fi
4805
4806 if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
4807 # Replace the output file specification.
4808 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$output"'%g' | $NL2SP`
4809 link_command="$compile_command$compile_rpath"
4810
4811 # We have no uninstalled library dependencies, so finalize right now.
4812 $show "$link_command"
4813 $run eval "$link_command"
4814 exit_status=$?
4815
4816 # Delete the generated files.
4817 if test -n "$dlsyms"; then
4818 $show "$rm $output_objdir/${outputname}S.${objext}"
4819 $run $rm "$output_objdir/${outputname}S.${objext}"
4820 fi
4821
4822 exit $exit_status
4823 fi
4824
4825 if test -n "$shlibpath_var"; then
4826 # We should set the shlibpath_var
4827 rpath=
4828 for dir in $temp_rpath; do
4829 case $dir in
4830 [\\/]* | [A-Za-z]:[\\/]*)
4831 # Absolute path.
4832 rpath="$rpath$dir:"
4833 ;;
4834 *)
4835 # Relative path: add a thisdir entry.
4836 rpath="$rpath\$thisdir/$dir:"
4837 ;;
4838 esac
4839 done
4840 temp_rpath="$rpath"
4841 fi
4842
4843 if test -n "$compile_shlibpath$finalize_shlibpath"; then
4844 compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
4845 fi
4846 if test -n "$finalize_shlibpath"; then
4847 finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
4848 fi
4849
4850 compile_var=
4851 finalize_var=
4852 if test -n "$runpath_var"; then
4853 if test -n "$perm_rpath"; then
4854 # We should set the runpath_var.
4855 rpath=
4856 for dir in $perm_rpath; do
4857 rpath="$rpath$dir:"
4858 done
4859 compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
4860 fi
4861 if test -n "$finalize_perm_rpath"; then
4862 # We should set the runpath_var.
4863 rpath=
4864 for dir in $finalize_perm_rpath; do
4865 rpath="$rpath$dir:"
4866 done
4867 finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
4868 fi
4869 fi
4870
4871 if test "$no_install" = yes; then
4872 # We don't need to create a wrapper script.
4873 link_command="$compile_var$compile_command$compile_rpath"
4874 # Replace the output file specification.
4875 link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
4876 # Delete the old output file.
4877 $run $rm $output
4878 # Link the executable and exit
4879 $show "$link_command"
4880 $run eval "$link_command" || exit $?
4881 exit $EXIT_SUCCESS
4882 fi
4883
4884 if test "$hardcode_action" = relink; then
4885 # Fast installation is not supported
4886 link_command="$compile_var$compile_command$compile_rpath"
4887 relink_command="$finalize_var$finalize_command$finalize_rpath"
4888
4889 $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
4890 $echo "$modename: \`$output' will be relinked during installation" 1>&2
4891 else
4892 if test "$fast_install" != no; then
4893 link_command="$finalize_var$compile_command$finalize_rpath"
4894 if test "$fast_install" = yes; then
4895 relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $SP2NL | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g' | $NL2SP`
4896 else
4897 # fast_install is set to needless
4898 relink_command=
4899 fi
4900 else
4901 link_command="$compile_var$compile_command$compile_rpath"
4902 relink_command="$finalize_var$finalize_command$finalize_rpath"
4903 fi
4904 fi
4905
4906 # Replace the output file specification.
4907 link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
4908
4909 # Delete the old output files.
4910 $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
4911
4912 $show "$link_command"
4913 $run eval "$link_command" || exit $?
4914
4915 # Now create the wrapper script.
4916 $show "creating $output"
4917
4918 # Quote the relink command for shipping.
4919 if test -n "$relink_command"; then
4920 # Preserve any variables that may affect compiler behavior
4921 for var in $variables_saved_for_relink; do
4922 if eval test -z \"\${$var+set}\"; then
4923 relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
4924 elif eval var_value=\$$var; test -z "$var_value"; then
4925 relink_command="$var=; export $var; $relink_command"
4926 else
4927 var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
4928 relink_command="$var=\"$var_value\"; export $var; $relink_command"
4929 fi
4930 done
4931 relink_command="(cd `pwd`; $relink_command)"
4932 relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
4933 fi
4934
4935 # Quote $echo for shipping.
4936 if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then
4937 case $progpath in
4938 [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
4939 *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
4940 esac
4941 qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
4942 else
4943 qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"`
4944 fi
4945
4946 # Only actually do things if our run command is non-null.
4947 if test -z "$run"; then
4948 # win32 will think the script is a binary if it has
4949 # a .exe suffix, so we strip it off here.
4950 case $output in
4951 *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;;
4952 esac
4953 # test for cygwin because mv fails w/o .exe extensions
4954 case $host in
4955 *cygwin*)
4956 exeext=.exe
4957 outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;;
4958 *) exeext= ;;
4959 esac
4960 case $host in
4961 *cygwin* | *mingw* )
4962 output_name=`basename $output`
4963 output_path=`dirname $output`
4964 cwrappersource="$output_path/$objdir/lt-$output_name.c"
4965 cwrapper="$output_path/$output_name.exe"
4966 $rm $cwrappersource $cwrapper
4967 trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
4968
4969 cat > $cwrappersource <<EOF
4970
4971/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
4972 Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
4973
4974 The $output program cannot be directly executed until all the libtool
4975 libraries that it depends on are installed.
4976
4977 This wrapper executable should never be moved out of the build directory.
4978 If it is, it will not operate correctly.
4979
4980 Currently, it simply execs the wrapper *script* "/bin/sh $output",
4981 but could eventually absorb all of the scripts functionality and
4982 exec $objdir/$outputname directly.
4983*/
4984EOF
4985 cat >> $cwrappersource<<"EOF"
4986#include <stdio.h>
4987#include <stdlib.h>
4988#include <unistd.h>
4989#include <malloc.h>
4990#include <stdarg.h>
4991#include <assert.h>
4992#include <string.h>
4993#include <ctype.h>
4994#include <sys/stat.h>
4995
4996#if defined(PATH_MAX)
4997# define LT_PATHMAX PATH_MAX
4998#elif defined(MAXPATHLEN)
4999# define LT_PATHMAX MAXPATHLEN
5000#else
5001# define LT_PATHMAX 1024
5002#endif
5003
5004#ifndef DIR_SEPARATOR
5005# define DIR_SEPARATOR '/'
5006# define PATH_SEPARATOR ':'
5007#endif
5008
5009#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
5010 defined (__OS2__)
5011# define HAVE_DOS_BASED_FILE_SYSTEM
5012# ifndef DIR_SEPARATOR_2
5013# define DIR_SEPARATOR_2 '\\'
5014# endif
5015# ifndef PATH_SEPARATOR_2
5016# define PATH_SEPARATOR_2 ';'
5017# endif
5018#endif
5019
5020#ifndef DIR_SEPARATOR_2
5021# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
5022#else /* DIR_SEPARATOR_2 */
5023# define IS_DIR_SEPARATOR(ch) \
5024 (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
5025#endif /* DIR_SEPARATOR_2 */
5026
5027#ifndef PATH_SEPARATOR_2
5028# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
5029#else /* PATH_SEPARATOR_2 */
5030# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
5031#endif /* PATH_SEPARATOR_2 */
5032
5033#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
5034#define XFREE(stale) do { \
5035 if (stale) { free ((void *) stale); stale = 0; } \
5036} while (0)
5037
5038/* -DDEBUG is fairly common in CFLAGS. */
5039#undef DEBUG
5040#if defined DEBUGWRAPPER
5041# define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__)
5042#else
5043# define DEBUG(format, ...)
5044#endif
5045
5046const char *program_name = NULL;
5047
5048void * xmalloc (size_t num);
5049char * xstrdup (const char *string);
5050const char * base_name (const char *name);
5051char * find_executable(const char *wrapper);
5052int check_executable(const char *path);
5053char * strendzap(char *str, const char *pat);
5054void lt_fatal (const char *message, ...);
5055
5056int
5057main (int argc, char *argv[])
5058{
5059 char **newargz;
5060 int i;
5061
5062 program_name = (char *) xstrdup (base_name (argv[0]));
5063 DEBUG("(main) argv[0] : %s\n",argv[0]);
5064 DEBUG("(main) program_name : %s\n",program_name);
5065 newargz = XMALLOC(char *, argc+2);
5066EOF
5067
5068 cat >> $cwrappersource <<EOF
5069 newargz[0] = (char *) xstrdup("$SHELL");
5070EOF
5071
5072 cat >> $cwrappersource <<"EOF"
5073 newargz[1] = find_executable(argv[0]);
5074 if (newargz[1] == NULL)
5075 lt_fatal("Couldn't find %s", argv[0]);
5076 DEBUG("(main) found exe at : %s\n",newargz[1]);
5077 /* we know the script has the same name, without the .exe */
5078 /* so make sure newargz[1] doesn't end in .exe */
5079 strendzap(newargz[1],".exe");
5080 for (i = 1; i < argc; i++)
5081 newargz[i+1] = xstrdup(argv[i]);
5082 newargz[argc+1] = NULL;
5083
5084 for (i=0; i<argc+1; i++)
5085 {
5086 DEBUG("(main) newargz[%d] : %s\n",i,newargz[i]);
5087 ;
5088 }
5089
5090EOF
5091
5092 case $host_os in
5093 mingw*)
5094 cat >> $cwrappersource <<EOF
5095 execv("$SHELL",(char const **)newargz);
5096EOF
5097 ;;
5098 *)
5099 cat >> $cwrappersource <<EOF
5100 execv("$SHELL",newargz);
5101EOF
5102 ;;
5103 esac
5104
5105 cat >> $cwrappersource <<"EOF"
5106 return 127;
5107}
5108
5109void *
5110xmalloc (size_t num)
5111{
5112 void * p = (void *) malloc (num);
5113 if (!p)
5114 lt_fatal ("Memory exhausted");
5115
5116 return p;
5117}
5118
5119char *
5120xstrdup (const char *string)
5121{
5122 return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
5123;
5124}
5125
5126const char *
5127base_name (const char *name)
5128{
5129 const char *base;
5130
5131#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
5132 /* Skip over the disk name in MSDOS pathnames. */
5133 if (isalpha ((unsigned char)name[0]) && name[1] == ':')
5134 name += 2;
5135#endif
5136
5137 for (base = name; *name; name++)
5138 if (IS_DIR_SEPARATOR (*name))
5139 base = name + 1;
5140 return base;
5141}
5142
5143int
5144check_executable(const char * path)
5145{
5146 struct stat st;
5147
5148 DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!");
5149 if ((!path) || (!*path))
5150 return 0;
5151
5152 if ((stat (path, &st) >= 0) &&
5153 (
5154 /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
5155#if defined (S_IXOTH)
5156 ((st.st_mode & S_IXOTH) == S_IXOTH) ||
5157#endif
5158#if defined (S_IXGRP)
5159 ((st.st_mode & S_IXGRP) == S_IXGRP) ||
5160#endif
5161 ((st.st_mode & S_IXUSR) == S_IXUSR))
5162 )
5163 return 1;
5164 else
5165 return 0;
5166}
5167
5168/* Searches for the full path of the wrapper. Returns
5169 newly allocated full path name if found, NULL otherwise */
5170char *
5171find_executable (const char* wrapper)
5172{
5173 int has_slash = 0;
5174 const char* p;
5175 const char* p_next;
5176 /* static buffer for getcwd */
5177 char tmp[LT_PATHMAX + 1];
5178 int tmp_len;
5179 char* concat_name;
5180
5181 DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!");
5182
5183 if ((wrapper == NULL) || (*wrapper == '\0'))
5184 return NULL;
5185
5186 /* Absolute path? */
5187#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
5188 if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':')
5189 {
5190 concat_name = xstrdup (wrapper);
5191 if (check_executable(concat_name))
5192 return concat_name;
5193 XFREE(concat_name);
5194 }
5195 else
5196 {
5197#endif
5198 if (IS_DIR_SEPARATOR (wrapper[0]))
5199 {
5200 concat_name = xstrdup (wrapper);
5201 if (check_executable(concat_name))
5202 return concat_name;
5203 XFREE(concat_name);
5204 }
5205#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
5206 }
5207#endif
5208
5209 for (p = wrapper; *p; p++)
5210 if (*p == '/')
5211 {
5212 has_slash = 1;
5213 break;
5214 }
5215 if (!has_slash)
5216 {
5217 /* no slashes; search PATH */
5218 const char* path = getenv ("PATH");
5219 if (path != NULL)
5220 {
5221 for (p = path; *p; p = p_next)
5222 {
5223 const char* q;
5224 size_t p_len;
5225 for (q = p; *q; q++)
5226 if (IS_PATH_SEPARATOR(*q))
5227 break;
5228 p_len = q - p;
5229 p_next = (*q == '\0' ? q : q + 1);
5230 if (p_len == 0)
5231 {
5232 /* empty path: current directory */
5233 if (getcwd (tmp, LT_PATHMAX) == NULL)
5234 lt_fatal ("getcwd failed");
5235 tmp_len = strlen(tmp);
5236 concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
5237 memcpy (concat_name, tmp, tmp_len);
5238 concat_name[tmp_len] = '/';
5239 strcpy (concat_name + tmp_len + 1, wrapper);
5240 }
5241 else
5242 {
5243 concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1);
5244 memcpy (concat_name, p, p_len);
5245 concat_name[p_len] = '/';
5246 strcpy (concat_name + p_len + 1, wrapper);
5247 }
5248 if (check_executable(concat_name))
5249 return concat_name;
5250 XFREE(concat_name);
5251 }
5252 }
5253 /* not found in PATH; assume curdir */
5254 }
5255 /* Relative path | not found in path: prepend cwd */
5256 if (getcwd (tmp, LT_PATHMAX) == NULL)
5257 lt_fatal ("getcwd failed");
5258 tmp_len = strlen(tmp);
5259 concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
5260 memcpy (concat_name, tmp, tmp_len);
5261 concat_name[tmp_len] = '/';
5262 strcpy (concat_name + tmp_len + 1, wrapper);
5263
5264 if (check_executable(concat_name))
5265 return concat_name;
5266 XFREE(concat_name);
5267 return NULL;
5268}
5269
5270char *
5271strendzap(char *str, const char *pat)
5272{
5273 size_t len, patlen;
5274
5275 assert(str != NULL);
5276 assert(pat != NULL);
5277
5278 len = strlen(str);
5279 patlen = strlen(pat);
5280
5281 if (patlen <= len)
5282 {
5283 str += len - patlen;
5284 if (strcmp(str, pat) == 0)
5285 *str = '\0';
5286 }
5287 return str;
5288}
5289
5290static void
5291lt_error_core (int exit_status, const char * mode,
5292 const char * message, va_list ap)
5293{
5294 fprintf (stderr, "%s: %s: ", program_name, mode);
5295 vfprintf (stderr, message, ap);
5296 fprintf (stderr, ".\n");
5297
5298 if (exit_status >= 0)
5299 exit (exit_status);
5300}
5301
5302void
5303lt_fatal (const char *message, ...)
5304{
5305 va_list ap;
5306 va_start (ap, message);
5307 lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
5308 va_end (ap);
5309}
5310EOF
5311 # we should really use a build-platform specific compiler
5312 # here, but OTOH, the wrappers (shell script and this C one)
5313 # are only useful if you want to execute the "real" binary.
5314 # Since the "real" binary is built for $host, then this
5315 # wrapper might as well be built for $host, too.
5316 $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource
5317 ;;
5318 esac
5319 $rm $output
5320 trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
5321
5322 $echo > $output "\
5323#! $SHELL
5324
5325# $output - temporary wrapper script for $objdir/$outputname
5326# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
5327#
5328# The $output program cannot be directly executed until all the libtool
5329# libraries that it depends on are installed.
5330#
5331# This wrapper script should never be moved out of the build directory.
5332# If it is, it will not operate correctly.
5333
5334# Sed substitution that helps us do robust quoting. It backslashifies
5335# metacharacters that are still active within double-quoted strings.
5336Xsed='${SED} -e 1s/^X//'
5337sed_quote_subst='$sed_quote_subst'
5338
5339# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
5340if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
5341 emulate sh
5342 NULLCMD=:
5343 # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
5344 # is contrary to our usage. Disable this feature.
5345 alias -g '\${1+\"\$@\"}'='\"\$@\"'
5346 setopt NO_GLOB_SUBST
5347else
5348 case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
5349fi
5350BIN_SH=xpg4; export BIN_SH # for Tru64
5351DUALCASE=1; export DUALCASE # for MKS sh
5352
5353# The HP-UX ksh and POSIX shell print the target directory to stdout
5354# if CDPATH is set.
5355(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5356
5357relink_command=\"$relink_command\"
5358
5359# This environment variable determines our operation mode.
5360if test \"\$libtool_install_magic\" = \"$magic\"; then
5361 # install mode needs the following variable:
5362 notinst_deplibs='$notinst_deplibs'
5363else
5364 # When we are sourced in execute mode, \$file and \$echo are already set.
5365 if test \"\$libtool_execute_magic\" != \"$magic\"; then
5366 echo=\"$qecho\"
5367 file=\"\$0\"
5368 # Make sure echo works.
5369 if test \"X\$1\" = X--no-reexec; then
5370 # Discard the --no-reexec flag, and continue.
5371 shift
5372 elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then
5373 # Yippee, \$echo works!
5374 :
5375 else
5376 # Restart under the correct shell, and then maybe \$echo will work.
5377 exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
5378 fi
5379 fi\
5380"
5381 $echo >> $output "\
5382
5383 # Find the directory that this script lives in.
5384 thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
5385 test \"x\$thisdir\" = \"x\$file\" && thisdir=.
5386
5387 # Follow symbolic links until we get to the real thisdir.
5388 file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
5389 while test -n \"\$file\"; do
5390 destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
5391
5392 # If there was a directory component, then change thisdir.
5393 if test \"x\$destdir\" != \"x\$file\"; then
5394 case \"\$destdir\" in
5395 [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
5396 *) thisdir=\"\$thisdir/\$destdir\" ;;
5397 esac
5398 fi
5399
5400 file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
5401 file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
5402 done
5403
5404 # Try to get the absolute directory name.
5405 absdir=\`cd \"\$thisdir\" && pwd\`
5406 test -n \"\$absdir\" && thisdir=\"\$absdir\"
5407"
5408
5409 if test "$fast_install" = yes; then
5410 $echo >> $output "\
5411 program=lt-'$outputname'$exeext
5412 progdir=\"\$thisdir/$objdir\"
5413
5414 if test ! -f \"\$progdir/\$program\" || \\
5415 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
5416 test \"X\$file\" != \"X\$progdir/\$program\"; }; then
5417
5418 file=\"\$\$-\$program\"
5419
5420 if test ! -d \"\$progdir\"; then
5421 $mkdir \"\$progdir\"
5422 else
5423 $rm \"\$progdir/\$file\"
5424 fi"
5425
5426 $echo >> $output "\
5427
5428 # relink executable if necessary
5429 if test -n \"\$relink_command\"; then
5430 if relink_command_output=\`eval \$relink_command 2>&1\`; then :
5431 else
5432 $echo \"\$relink_command_output\" >&2
5433 $rm \"\$progdir/\$file\"
5434 exit $EXIT_FAILURE
5435 fi
5436 fi
5437
5438 $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
5439 { $rm \"\$progdir/\$program\";
5440 $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; }
5441 $rm \"\$progdir/\$file\"
5442 fi"
5443 else
5444 $echo >> $output "\
5445 program='$outputname'
5446 progdir=\"\$thisdir/$objdir\"
5447"
5448 fi
5449
5450 $echo >> $output "\
5451
5452 if test -f \"\$progdir/\$program\"; then"
5453
5454 # Export our shlibpath_var if we have one.
5455 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
5456 $echo >> $output "\
5457 # Add our own library path to $shlibpath_var
5458 $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
5459
5460 # Some systems cannot cope with colon-terminated $shlibpath_var
5461 # The second colon is a workaround for a bug in BeOS R4 sed
5462 $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
5463
5464 export $shlibpath_var
5465"
5466 fi
5467
5468 # fixup the dll searchpath if we need to.
5469 if test -n "$dllsearchpath"; then
5470 $echo >> $output "\
5471 # Add the dll search path components to the executable PATH
5472 PATH=$dllsearchpath:\$PATH
5473"
5474 fi
5475
5476 $echo >> $output "\
5477 if test \"\$libtool_execute_magic\" != \"$magic\"; then
5478 # Run the actual program with our arguments.
5479"
5480 case $host in
5481 # Backslashes separate directories on plain windows
5482 *-*-mingw | *-*-os2*)
5483 $echo >> $output "\
5484 exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
5485"
5486 ;;
5487
5488 *)
5489 $echo >> $output "\
5490 exec \"\$progdir/\$program\" \${1+\"\$@\"}
5491"
5492 ;;
5493 esac
5494 $echo >> $output "\
5495 \$echo \"\$0: cannot exec \$program \$*\"
5496 exit $EXIT_FAILURE
5497 fi
5498 else
5499 # The program doesn't exist.
5500 \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
5501 \$echo \"This script is just a wrapper for \$program.\" 1>&2
5502 $echo \"See the $PACKAGE documentation for more information.\" 1>&2
5503 exit $EXIT_FAILURE
5504 fi
5505fi\
5506"
5507 chmod +x $output
5508 fi
5509 exit $EXIT_SUCCESS
5510 ;;
5511 esac
5512
5513 # See if we need to build an old-fashioned archive.
5514 for oldlib in $oldlibs; do
5515
5516 if test "$build_libtool_libs" = convenience; then
5517 oldobjs="$libobjs_save"
5518 addlibs="$convenience"
5519 build_libtool_libs=no
5520 else
5521 if test "$build_libtool_libs" = module; then
5522 oldobjs="$libobjs_save"
5523 build_libtool_libs=no
5524 else
5525 oldobjs="$old_deplibs $non_pic_objects"
5526 fi
5527 addlibs="$old_convenience"
5528 fi
5529
5530 if test -n "$addlibs"; then
5531 gentop="$output_objdir/${outputname}x"
5532 generated="$generated $gentop"
5533
5534 func_extract_archives $gentop $addlibs
5535 oldobjs="$oldobjs $func_extract_archives_result"
5536 fi
5537
5538 # Do each command in the archive commands.
5539 if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
5540 cmds=$old_archive_from_new_cmds
5541 else
5542 # POSIX demands no paths to be encoded in archives. We have
5543 # to avoid creating archives with duplicate basenames if we
5544 # might have to extract them afterwards, e.g., when creating a
5545 # static archive out of a convenience library, or when linking
5546 # the entirety of a libtool archive into another (currently
5547 # not supported by libtool).
5548 if (for obj in $oldobjs
5549 do
5550 $echo "X$obj" | $Xsed -e 's%^.*/%%'
5551 done | sort | sort -uc >/dev/null 2>&1); then
5552 :
5553 else
5554 $echo "copying selected object files to avoid basename conflicts..."
5555
5556 if test -z "$gentop"; then
5557 gentop="$output_objdir/${outputname}x"
5558 generated="$generated $gentop"
5559
5560 $show "${rm}r $gentop"
5561 $run ${rm}r "$gentop"
5562 $show "$mkdir $gentop"
5563 $run $mkdir "$gentop"
5564 exit_status=$?
5565 if test "$exit_status" -ne 0 && test ! -d "$gentop"; then
5566 exit $exit_status
5567 fi
5568 fi
5569
5570 save_oldobjs=$oldobjs
5571 oldobjs=
5572 counter=1
5573 for obj in $save_oldobjs
5574 do
5575 objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
5576 case " $oldobjs " in
5577 " ") oldobjs=$obj ;;
5578 *[\ /]"$objbase "*)
5579 while :; do
5580 # Make sure we don't pick an alternate name that also
5581 # overlaps.
5582 newobj=lt$counter-$objbase
5583 counter=`expr $counter + 1`
5584 case " $oldobjs " in
5585 *[\ /]"$newobj "*) ;;
5586 *) if test ! -f "$gentop/$newobj"; then break; fi ;;
5587 esac
5588 done
5589 $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
5590 $run ln "$obj" "$gentop/$newobj" ||
5591 $run cp "$obj" "$gentop/$newobj"
5592 oldobjs="$oldobjs $gentop/$newobj"
5593 ;;
5594 *) oldobjs="$oldobjs $obj" ;;
5595 esac
5596 done
5597 fi
5598
5599 eval cmds=\"$old_archive_cmds\"
5600
5601 if len=`expr "X$cmds" : ".*"` &&
5602 test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
5603 cmds=$old_archive_cmds
5604 else
5605 # the command line is too long to link in one step, link in parts
5606 $echo "using piecewise archive linking..."
5607 save_RANLIB=$RANLIB
5608 RANLIB=:
5609 objlist=
5610 concat_cmds=
5611 save_oldobjs=$oldobjs
5612
5613 # Is there a better way of finding the last object in the list?
5614 for obj in $save_oldobjs
5615 do
5616 last_oldobj=$obj
5617 done
5618 for obj in $save_oldobjs
5619 do
5620 oldobjs="$objlist $obj"
5621 objlist="$objlist $obj"
5622 eval test_cmds=\"$old_archive_cmds\"
5623 if len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
5624 test "$len" -le "$max_cmd_len"; then
5625 :
5626 else
5627 # the above command should be used before it gets too long
5628 oldobjs=$objlist
5629 if test "$obj" = "$last_oldobj" ; then
5630 RANLIB=$save_RANLIB
5631 fi
5632 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
5633 eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
5634 objlist=
5635 fi
5636 done
5637 RANLIB=$save_RANLIB
5638 oldobjs=$objlist
5639 if test "X$oldobjs" = "X" ; then
5640 eval cmds=\"\$concat_cmds\"
5641 else
5642 eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
5643 fi
5644 fi
5645 fi
5646 save_ifs="$IFS"; IFS='~'
5647 for cmd in $cmds; do
5648 eval cmd=\"$cmd\"
5649 IFS="$save_ifs"
5650 $show "$cmd"
5651 $run eval "$cmd" || exit $?
5652 done
5653 IFS="$save_ifs"
5654 done
5655
5656 if test -n "$generated"; then
5657 $show "${rm}r$generated"
5658 $run ${rm}r$generated
5659 fi
5660
5661 # Now create the libtool archive.
5662 case $output in
5663 *.la)
5664 old_library=
5665 test "$build_old_libs" = yes && old_library="$libname.$libext"
5666 $show "creating $output"
5667
5668 # Preserve any variables that may affect compiler behavior
5669 for var in $variables_saved_for_relink; do
5670 if eval test -z \"\${$var+set}\"; then
5671 relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
5672 elif eval var_value=\$$var; test -z "$var_value"; then
5673 relink_command="$var=; export $var; $relink_command"
5674 else
5675 var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
5676 relink_command="$var=\"$var_value\"; export $var; $relink_command"
5677 fi
5678 done
5679 # Quote the link command for shipping.
5680 relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
5681 relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
5682 if test "$hardcode_automatic" = yes ; then
5683 relink_command=
5684 fi
5685
5686
5687 # Only create the output if not a dry run.
5688 if test -z "$run"; then
5689 for installed in no yes; do
5690 if test "$installed" = yes; then
5691 if test -z "$install_libdir"; then
5692 break
5693 fi
5694 output="$output_objdir/$outputname"i
5695 # Replace all uninstalled libtool libraries with the installed ones
5696 newdependency_libs=
5697 for deplib in $dependency_libs; do
5698 case $deplib in
5699 *.la)
5700 name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
5701 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
5702 if test -z "$libdir"; then
5703 $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
5704 exit $EXIT_FAILURE
5705 fi
5706 newdependency_libs="$newdependency_libs $libdir/$name"
5707 ;;
5708 *) newdependency_libs="$newdependency_libs $deplib" ;;
5709 esac
5710 done
5711 dependency_libs="$newdependency_libs"
5712 newdlfiles=
5713 for lib in $dlfiles; do
5714 name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
5715 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
5716 if test -z "$libdir"; then
5717 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
5718 exit $EXIT_FAILURE
5719 fi
5720 newdlfiles="$newdlfiles $libdir/$name"
5721 done
5722 dlfiles="$newdlfiles"
5723 newdlprefiles=
5724 for lib in $dlprefiles; do
5725 name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
5726 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
5727 if test -z "$libdir"; then
5728 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
5729 exit $EXIT_FAILURE
5730 fi
5731 newdlprefiles="$newdlprefiles $libdir/$name"
5732 done
5733 dlprefiles="$newdlprefiles"
5734 else
5735 newdlfiles=
5736 for lib in $dlfiles; do
5737 case $lib in
5738 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
5739 *) abs=`pwd`"/$lib" ;;
5740 esac
5741 newdlfiles="$newdlfiles $abs"
5742 done
5743 dlfiles="$newdlfiles"
5744 newdlprefiles=
5745 for lib in $dlprefiles; do
5746 case $lib in
5747 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
5748 *) abs=`pwd`"/$lib" ;;
5749 esac
5750 newdlprefiles="$newdlprefiles $abs"
5751 done
5752 dlprefiles="$newdlprefiles"
5753 fi
5754 $rm $output
5755 # place dlname in correct position for cygwin
5756 tdlname=$dlname
5757 case $host,$output,$installed,$module,$dlname in
5758 *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
5759 esac
5760 $echo > $output "\
5761# $outputname - a libtool library file
5762# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
5763#
5764# Please DO NOT delete this file!
5765# It is necessary for linking the library.
5766
5767# The name that we can dlopen(3).
5768dlname='$tdlname'
5769
5770# Names of this library.
5771library_names='$library_names'
5772
5773# The name of the static archive.
5774old_library='$old_library'
5775
5776# Libraries that this one depends upon.
5777dependency_libs='$dependency_libs'
5778
5779# Version information for $libname.
5780current=$current
5781age=$age
5782revision=$revision
5783
5784# Is this an already installed library?
5785installed=$installed
5786
5787# Should we warn about portability when linking against -modules?
5788shouldnotlink=$module
5789
5790# Files to dlopen/dlpreopen
5791dlopen='$dlfiles'
5792dlpreopen='$dlprefiles'
5793
5794# Directory that this library needs to be installed in:
5795libdir='$install_libdir'"
5796 if test "$installed" = no && test "$need_relink" = yes; then
5797 $echo >> $output "\
5798relink_command=\"$relink_command\""
5799 fi
5800 done
5801 fi
5802
5803 # Do a symbolic link so that the libtool archive can be found in
5804 # LD_LIBRARY_PATH before the program is installed.
5805 $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
5806 $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
5807 ;;
5808 esac
5809 exit $EXIT_SUCCESS
5810 ;;
5811
5812 # libtool install mode
5813 install)
5814 modename="$modename: install"
5815
5816 # There may be an optional sh(1) argument at the beginning of
5817 # install_prog (especially on Windows NT).
5818 if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
5819 # Allow the use of GNU shtool's install command.
5820 $echo "X$nonopt" | grep shtool > /dev/null; then
5821 # Aesthetically quote it.
5822 arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
5823 case $arg in
5824 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
5825 arg="\"$arg\""
5826 ;;
5827 esac
5828 install_prog="$arg "
5829 arg="$1"
5830 shift
5831 else
5832 install_prog=
5833 arg=$nonopt
5834 fi
5835
5836 # The real first argument should be the name of the installation program.
5837 # Aesthetically quote it.
5838 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
5839 case $arg in
5840 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
5841 arg="\"$arg\""
5842 ;;
5843 esac
5844 install_prog="$install_prog$arg"
5845
5846 # We need to accept at least all the BSD install flags.
5847 dest=
5848 files=
5849 opts=
5850 prev=
5851 install_type=
5852 isdir=no
5853 stripme=
5854 for arg
5855 do
5856 if test -n "$dest"; then
5857 files="$files $dest"
5858 dest=$arg
5859 continue
5860 fi
5861
5862 case $arg in
5863 -d) isdir=yes ;;
5864 -f)
5865 case " $install_prog " in
5866 *[\\\ /]cp\ *) ;;
5867 *) prev=$arg ;;
5868 esac
5869 ;;
5870 -g | -m | -o) prev=$arg ;;
5871 -s)
5872 stripme=" -s"
5873 continue
5874 ;;
5875 -*)
5876 ;;
5877 *)
5878 # If the previous option needed an argument, then skip it.
5879 if test -n "$prev"; then
5880 prev=
5881 else
5882 dest=$arg
5883 continue
5884 fi
5885 ;;
5886 esac
5887
5888 # Aesthetically quote the argument.
5889 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
5890 case $arg in
5891 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
5892 arg="\"$arg\""
5893 ;;
5894 esac
5895 install_prog="$install_prog $arg"
5896 done
5897
5898 if test -z "$install_prog"; then
5899 $echo "$modename: you must specify an install program" 1>&2
5900 $echo "$help" 1>&2
5901 exit $EXIT_FAILURE
5902 fi
5903
5904 if test -n "$prev"; then
5905 $echo "$modename: the \`$prev' option requires an argument" 1>&2
5906 $echo "$help" 1>&2
5907 exit $EXIT_FAILURE
5908 fi
5909
5910 if test -z "$files"; then
5911 if test -z "$dest"; then
5912 $echo "$modename: no file or destination specified" 1>&2
5913 else
5914 $echo "$modename: you must specify a destination" 1>&2
5915 fi
5916 $echo "$help" 1>&2
5917 exit $EXIT_FAILURE
5918 fi
5919
5920 # Strip any trailing slash from the destination.
5921 dest=`$echo "X$dest" | $Xsed -e 's%/$%%'`
5922
5923 # Check to see that the destination is a directory.
5924 test -d "$dest" && isdir=yes
5925 if test "$isdir" = yes; then
5926 destdir="$dest"
5927 destname=
5928 else
5929 destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'`
5930 test "X$destdir" = "X$dest" && destdir=.
5931 destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'`
5932
5933 # Not a directory, so check to see that there is only one file specified.
5934 set dummy $files
5935 if test "$#" -gt 2; then
5936 $echo "$modename: \`$dest' is not a directory" 1>&2
5937 $echo "$help" 1>&2
5938 exit $EXIT_FAILURE
5939 fi
5940 fi
5941 case $destdir in
5942 [\\/]* | [A-Za-z]:[\\/]*) ;;
5943 *)
5944 for file in $files; do
5945 case $file in
5946 *.lo) ;;
5947 *)
5948 $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
5949 $echo "$help" 1>&2
5950 exit $EXIT_FAILURE
5951 ;;
5952 esac
5953 done
5954 ;;
5955 esac
5956
5957 # This variable tells wrapper scripts just to set variables rather
5958 # than running their programs.
5959 libtool_install_magic="$magic"
5960
5961 staticlibs=
5962 future_libdirs=
5963 current_libdirs=
5964 for file in $files; do
5965
5966 # Do each installation.
5967 case $file in
5968 *.$libext)
5969 # Do the static libraries later.
5970 staticlibs="$staticlibs $file"
5971 ;;
5972
5973 *.la)
5974 # Check to see that this really is a libtool archive.
5975 if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
5976 else
5977 $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
5978 $echo "$help" 1>&2
5979 exit $EXIT_FAILURE
5980 fi
5981
5982 library_names=
5983 old_library=
5984 relink_command=
5985 # If there is no directory component, then add one.
5986 case $file in
5987 */* | *\\*) . $file ;;
5988 *) . ./$file ;;
5989 esac
5990
5991 # Add the libdir to current_libdirs if it is the destination.
5992 if test "X$destdir" = "X$libdir"; then
5993 case "$current_libdirs " in
5994 *" $libdir "*) ;;
5995 *) current_libdirs="$current_libdirs $libdir" ;;
5996 esac
5997 else
5998 # Note the libdir as a future libdir.
5999 case "$future_libdirs " in
6000 *" $libdir "*) ;;
6001 *) future_libdirs="$future_libdirs $libdir" ;;
6002 esac
6003 fi
6004
6005 dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/
6006 test "X$dir" = "X$file/" && dir=
6007 dir="$dir$objdir"
6008
6009 if test -n "$relink_command"; then
6010 # Determine the prefix the user has applied to our future dir.
6011 inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"`
6012
6013 # Don't allow the user to place us outside of our expected
6014 # location b/c this prevents finding dependent libraries that
6015 # are installed to the same prefix.
6016 # At present, this check doesn't affect windows .dll's that
6017 # are installed into $libdir/../bin (currently, that works fine)
6018 # but it's something to keep an eye on.
6019 if test "$inst_prefix_dir" = "$destdir"; then
6020 $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
6021 exit $EXIT_FAILURE
6022 fi
6023
6024 if test -n "$inst_prefix_dir"; then
6025 # Stick the inst_prefix_dir data into the link command.
6026 relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%" | $NL2SP`
6027 else
6028 relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%%" | $NL2SP`
6029 fi
6030
6031 $echo "$modename: warning: relinking \`$file'" 1>&2
6032 $show "$relink_command"
6033 if $run eval "$relink_command"; then :
6034 else
6035 $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
6036 exit $EXIT_FAILURE
6037 fi
6038 fi
6039
6040 # See the names of the shared library.
6041 set dummy $library_names
6042 if test -n "$2"; then
6043 realname="$2"
6044 shift
6045 shift
6046
6047 srcname="$realname"
6048 test -n "$relink_command" && srcname="$realname"T
6049
6050 # Install the shared library and build the symlinks.
6051 $show "$install_prog $dir/$srcname $destdir/$realname"
6052 $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $?
6053 if test -n "$stripme" && test -n "$striplib"; then
6054 $show "$striplib $destdir/$realname"
6055 $run eval "$striplib $destdir/$realname" || exit $?
6056 fi
6057
6058 if test "$#" -gt 0; then
6059 # Delete the old symlinks, and create new ones.
6060 # Try `ln -sf' first, because the `ln' binary might depend on
6061 # the symlink we replace! Solaris /bin/ln does not understand -f,
6062 # so we also need to try rm && ln -s.
6063 for linkname
6064 do
6065 if test "$linkname" != "$realname"; then
6066 $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
6067 $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
6068 fi
6069 done
6070 fi
6071
6072 # Do each command in the postinstall commands.
6073 lib="$destdir/$realname"
6074 cmds=$postinstall_cmds
6075 save_ifs="$IFS"; IFS='~'
6076 for cmd in $cmds; do
6077 IFS="$save_ifs"
6078 eval cmd=\"$cmd\"
6079 $show "$cmd"
6080 $run eval "$cmd" || {
6081 lt_exit=$?
6082
6083 # Restore the uninstalled library and exit
6084 if test "$mode" = relink; then
6085 $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
6086 fi
6087
6088 exit $lt_exit
6089 }
6090 done
6091 IFS="$save_ifs"
6092 fi
6093
6094 # Install the pseudo-library for information purposes.
6095 name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
6096 instname="$dir/$name"i
6097 $show "$install_prog $instname $destdir/$name"
6098 $run eval "$install_prog $instname $destdir/$name" || exit $?
6099
6100 # Maybe install the static library, too.
6101 test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
6102 ;;
6103
6104 *.lo)
6105 # Install (i.e. copy) a libtool object.
6106
6107 # Figure out destination file name, if it wasn't already specified.
6108 if test -n "$destname"; then
6109 destfile="$destdir/$destname"
6110 else
6111 destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
6112 destfile="$destdir/$destfile"
6113 fi
6114
6115 # Deduce the name of the destination old-style object file.
6116 case $destfile in
6117 *.lo)
6118 staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
6119 ;;
6120 *.$objext)
6121 staticdest="$destfile"
6122 destfile=
6123 ;;
6124 *)
6125 $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
6126 $echo "$help" 1>&2
6127 exit $EXIT_FAILURE
6128 ;;
6129 esac
6130
6131 # Install the libtool object if requested.
6132 if test -n "$destfile"; then
6133 $show "$install_prog $file $destfile"
6134 $run eval "$install_prog $file $destfile" || exit $?
6135 fi
6136
6137 # Install the old object if enabled.
6138 if test "$build_old_libs" = yes; then
6139 # Deduce the name of the old-style object file.
6140 staticobj=`$echo "X$file" | $Xsed -e "$lo2o"`
6141
6142 $show "$install_prog $staticobj $staticdest"
6143 $run eval "$install_prog \$staticobj \$staticdest" || exit $?
6144 fi
6145 exit $EXIT_SUCCESS
6146 ;;
6147
6148 *)
6149 # Figure out destination file name, if it wasn't already specified.
6150 if test -n "$destname"; then
6151 destfile="$destdir/$destname"
6152 else
6153 destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
6154 destfile="$destdir/$destfile"
6155 fi
6156
6157 # If the file is missing, and there is a .exe on the end, strip it
6158 # because it is most likely a libtool script we actually want to
6159 # install
6160 stripped_ext=""
6161 case $file in
6162 *.exe)
6163 if test ! -f "$file"; then
6164 file=`$echo $file|${SED} 's,.exe$,,'`
6165 stripped_ext=".exe"
6166 fi
6167 ;;
6168 esac
6169
6170 # Do a test to see if this is really a libtool program.
6171 case $host in
6172 *cygwin*|*mingw*)
6173 wrapper=`$echo $file | ${SED} -e 's,.exe$,,'`
6174 ;;
6175 *)
6176 wrapper=$file
6177 ;;
6178 esac
6179 if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
6180 notinst_deplibs=
6181 relink_command=
6182
6183 # Note that it is not necessary on cygwin/mingw to append a dot to
6184 # foo even if both foo and FILE.exe exist: automatic-append-.exe
6185 # behavior happens only for exec(3), not for open(2)! Also, sourcing
6186 # `FILE.' does not work on cygwin managed mounts.
6187 #
6188 # If there is no directory component, then add one.
6189 case $wrapper in
6190 */* | *\\*) . ${wrapper} ;;
6191 *) . ./${wrapper} ;;
6192 esac
6193
6194 # Check the variables that should have been set.
6195 if test -z "$notinst_deplibs"; then
6196 $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
6197 exit $EXIT_FAILURE
6198 fi
6199
6200 finalize=yes
6201 for lib in $notinst_deplibs; do
6202 # Check to see that each library is installed.
6203 libdir=
6204 if test -f "$lib"; then
6205 # If there is no directory component, then add one.
6206 case $lib in
6207 */* | *\\*) . $lib ;;
6208 *) . ./$lib ;;
6209 esac
6210 fi
6211 libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
6212 if test -n "$libdir" && test ! -f "$libfile"; then
6213 $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
6214 finalize=no
6215 fi
6216 done
6217
6218 relink_command=
6219 # Note that it is not necessary on cygwin/mingw to append a dot to
6220 # foo even if both foo and FILE.exe exist: automatic-append-.exe
6221 # behavior happens only for exec(3), not for open(2)! Also, sourcing
6222 # `FILE.' does not work on cygwin managed mounts.
6223 #
6224 # If there is no directory component, then add one.
6225 case $wrapper in
6226 */* | *\\*) . ${wrapper} ;;
6227 *) . ./${wrapper} ;;
6228 esac
6229
6230 outputname=
6231 if test "$fast_install" = no && test -n "$relink_command"; then
6232 if test "$finalize" = yes && test -z "$run"; then
6233 tmpdir=`func_mktempdir`
6234 file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
6235 outputname="$tmpdir/$file"
6236 # Replace the output file specification.
6237 relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g' | $NL2SP`
6238
6239 $show "$relink_command"
6240 if $run eval "$relink_command"; then :
6241 else
6242 $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
6243 ${rm}r "$tmpdir"
6244 continue
6245 fi
6246 file="$outputname"
6247 else
6248 $echo "$modename: warning: cannot relink \`$file'" 1>&2
6249 fi
6250 else
6251 # Install the binary that we compiled earlier.
6252 file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
6253 fi
6254 fi
6255
6256 # remove .exe since cygwin /usr/bin/install will append another
6257 # one anyway
6258 case $install_prog,$host in
6259 */usr/bin/install*,*cygwin*)
6260 case $file:$destfile in
6261 *.exe:*.exe)
6262 # this is ok
6263 ;;
6264 *.exe:*)
6265 destfile=$destfile.exe
6266 ;;
6267 *:*.exe)
6268 destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'`
6269 ;;
6270 esac
6271 ;;
6272 esac
6273 $show "$install_prog$stripme $file $destfile"
6274 $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
6275 test -n "$outputname" && ${rm}r "$tmpdir"
6276 ;;
6277 esac
6278 done
6279
6280 for file in $staticlibs; do
6281 name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
6282
6283 # Set up the ranlib parameters.
6284 oldlib="$destdir/$name"
6285
6286 $show "$install_prog $file $oldlib"
6287 $run eval "$install_prog \$file \$oldlib" || exit $?
6288
6289 if test -n "$stripme" && test -n "$old_striplib"; then
6290 $show "$old_striplib $oldlib"
6291 $run eval "$old_striplib $oldlib" || exit $?
6292 fi
6293
6294 # Do each command in the postinstall commands.
6295 cmds=$old_postinstall_cmds
6296 save_ifs="$IFS"; IFS='~'
6297 for cmd in $cmds; do
6298 IFS="$save_ifs"
6299 eval cmd=\"$cmd\"
6300 $show "$cmd"
6301 $run eval "$cmd" || exit $?
6302 done
6303 IFS="$save_ifs"
6304 done
6305
6306 if test -n "$future_libdirs"; then
6307 $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2
6308 fi
6309
6310 if test -n "$current_libdirs"; then
6311 # Maybe just do a dry run.
6312 test -n "$run" && current_libdirs=" -n$current_libdirs"
6313 exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
6314 else
6315 exit $EXIT_SUCCESS
6316 fi
6317 ;;
6318
6319 # libtool finish mode
6320 finish)
6321 modename="$modename: finish"
6322 libdirs="$nonopt"
6323 admincmds=
6324
6325 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
6326 for dir
6327 do
6328 libdirs="$libdirs $dir"
6329 done
6330
6331 for libdir in $libdirs; do
6332 if test -n "$finish_cmds"; then
6333 # Do each command in the finish commands.
6334 cmds=$finish_cmds
6335 save_ifs="$IFS"; IFS='~'
6336 for cmd in $cmds; do
6337 IFS="$save_ifs"
6338 eval cmd=\"$cmd\"
6339 $show "$cmd"
6340 $run eval "$cmd" || admincmds="$admincmds
6341 $cmd"
6342 done
6343 IFS="$save_ifs"
6344 fi
6345 if test -n "$finish_eval"; then
6346 # Do the single finish_eval.
6347 eval cmds=\"$finish_eval\"
6348 $run eval "$cmds" || admincmds="$admincmds
6349 $cmds"
6350 fi
6351 done
6352 fi
6353
6354 # Exit here if they wanted silent mode.
6355 test "$show" = : && exit $EXIT_SUCCESS
6356
6357 $echo "X----------------------------------------------------------------------" | $Xsed
6358 $echo "Libraries have been installed in:"
6359 for libdir in $libdirs; do
6360 $echo " $libdir"
6361 done
6362 $echo
6363 $echo "If you ever happen to want to link against installed libraries"
6364 $echo "in a given directory, LIBDIR, you must either use libtool, and"
6365 $echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
6366 $echo "flag during linking and do at least one of the following:"
6367 if test -n "$shlibpath_var"; then
6368 $echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
6369 $echo " during execution"
6370 fi
6371 if test -n "$runpath_var"; then
6372 $echo " - add LIBDIR to the \`$runpath_var' environment variable"
6373 $echo " during linking"
6374 fi
6375 if test -n "$hardcode_libdir_flag_spec"; then
6376 libdir=LIBDIR
6377 eval flag=\"$hardcode_libdir_flag_spec\"
6378
6379 $echo " - use the \`$flag' linker flag"
6380 fi
6381 if test -n "$admincmds"; then
6382 $echo " - have your system administrator run these commands:$admincmds"
6383 fi
6384 if test -f /etc/ld.so.conf; then
6385 $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
6386 fi
6387 $echo
6388 $echo "See any operating system documentation about shared libraries for"
6389 $echo "more information, such as the ld(1) and ld.so(8) manual pages."
6390 $echo "X----------------------------------------------------------------------" | $Xsed
6391 exit $EXIT_SUCCESS
6392 ;;
6393
6394 # libtool execute mode
6395 execute)
6396 modename="$modename: execute"
6397
6398 # The first argument is the command name.
6399 cmd="$nonopt"
6400 if test -z "$cmd"; then
6401 $echo "$modename: you must specify a COMMAND" 1>&2
6402 $echo "$help"
6403 exit $EXIT_FAILURE
6404 fi
6405
6406 # Handle -dlopen flags immediately.
6407 for file in $execute_dlfiles; do
6408 if test ! -f "$file"; then
6409 $echo "$modename: \`$file' is not a file" 1>&2
6410 $echo "$help" 1>&2
6411 exit $EXIT_FAILURE
6412 fi
6413
6414 dir=
6415 case $file in
6416 *.la)
6417 # Check to see that this really is a libtool archive.
6418 if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
6419 else
6420 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
6421 $echo "$help" 1>&2
6422 exit $EXIT_FAILURE
6423 fi
6424
6425 # Read the libtool library.
6426 dlname=
6427 library_names=
6428
6429 # If there is no directory component, then add one.
6430 case $file in
6431 */* | *\\*) . $file ;;
6432 *) . ./$file ;;
6433 esac
6434
6435 # Skip this library if it cannot be dlopened.
6436 if test -z "$dlname"; then
6437 # Warn if it was a shared library.
6438 test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'"
6439 continue
6440 fi
6441
6442 dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
6443 test "X$dir" = "X$file" && dir=.
6444
6445 if test -f "$dir/$objdir/$dlname"; then
6446 dir="$dir/$objdir"
6447 else
6448 if test ! -f "$dir/$dlname"; then
6449 $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
6450 exit $EXIT_FAILURE
6451 fi
6452 fi
6453 ;;
6454
6455 *.lo)
6456 # Just add the directory containing the .lo file.
6457 dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
6458 test "X$dir" = "X$file" && dir=.
6459 ;;
6460
6461 *)
6462 $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2
6463 continue
6464 ;;
6465 esac
6466
6467 # Get the absolute pathname.
6468 absdir=`cd "$dir" && pwd`
6469 test -n "$absdir" && dir="$absdir"
6470
6471 # Now add the directory to shlibpath_var.
6472 if eval "test -z \"\$$shlibpath_var\""; then
6473 eval "$shlibpath_var=\"\$dir\""
6474 else
6475 eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
6476 fi
6477 done
6478
6479 # This variable tells wrapper scripts just to set shlibpath_var
6480 # rather than running their programs.
6481 libtool_execute_magic="$magic"
6482
6483 # Check if any of the arguments is a wrapper script.
6484 args=
6485 for file
6486 do
6487 case $file in
6488 -*) ;;
6489 *)
6490 # Do a test to see if this is really a libtool program.
6491 if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
6492 # If there is no directory component, then add one.
6493 case $file in
6494 */* | *\\*) . $file ;;
6495 *) . ./$file ;;
6496 esac
6497
6498 # Transform arg to wrapped name.
6499 file="$progdir/$program"
6500 fi
6501 ;;
6502 esac
6503 # Quote arguments (to preserve shell metacharacters).
6504 file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"`
6505 args="$args \"$file\""
6506 done
6507
6508 if test -z "$run"; then
6509 if test -n "$shlibpath_var"; then
6510 # Export the shlibpath_var.
6511 eval "export $shlibpath_var"
6512 fi
6513
6514 # Restore saved environment variables
6515 for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
6516 do
6517 eval "if test \"\${save_$lt_var+set}\" = set; then
6518 $lt_var=\$save_$lt_var; export $lt_var
6519 fi"
6520 done
6521
6522 # Now prepare to actually exec the command.
6523 exec_cmd="\$cmd$args"
6524 else
6525 # Display what would be done.
6526 if test -n "$shlibpath_var"; then
6527 eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
6528 $echo "export $shlibpath_var"
6529 fi
6530 $echo "$cmd$args"
6531 exit $EXIT_SUCCESS
6532 fi
6533 ;;
6534
6535 # libtool clean and uninstall mode
6536 clean | uninstall)
6537 modename="$modename: $mode"
6538 rm="$nonopt"
6539 files=
6540 rmforce=
6541 exit_status=0
6542
6543 # This variable tells wrapper scripts just to set variables rather
6544 # than running their programs.
6545 libtool_install_magic="$magic"
6546
6547 for arg
6548 do
6549 case $arg in
6550 -f) rm="$rm $arg"; rmforce=yes ;;
6551 -*) rm="$rm $arg" ;;
6552 *) files="$files $arg" ;;
6553 esac
6554 done
6555
6556 if test -z "$rm"; then
6557 $echo "$modename: you must specify an RM program" 1>&2
6558 $echo "$help" 1>&2
6559 exit $EXIT_FAILURE
6560 fi
6561
6562 rmdirs=
6563
6564 origobjdir="$objdir"
6565 for file in $files; do
6566 dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
6567 if test "X$dir" = "X$file"; then
6568 dir=.
6569 objdir="$origobjdir"
6570 else
6571 objdir="$dir/$origobjdir"
6572 fi
6573 name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
6574 test "$mode" = uninstall && objdir="$dir"
6575
6576 # Remember objdir for removal later, being careful to avoid duplicates
6577 if test "$mode" = clean; then
6578 case " $rmdirs " in
6579 *" $objdir "*) ;;
6580 *) rmdirs="$rmdirs $objdir" ;;
6581 esac
6582 fi
6583
6584 # Don't error if the file doesn't exist and rm -f was used.
6585 if (test -L "$file") >/dev/null 2>&1 \
6586 || (test -h "$file") >/dev/null 2>&1 \
6587 || test -f "$file"; then
6588 :
6589 elif test -d "$file"; then
6590 exit_status=1
6591 continue
6592 elif test "$rmforce" = yes; then
6593 continue
6594 fi
6595
6596 rmfiles="$file"
6597
6598 case $name in
6599 *.la)
6600 # Possibly a libtool archive, so verify it.
6601 if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
6602 . $dir/$name
6603
6604 # Delete the libtool libraries and symlinks.
6605 for n in $library_names; do
6606 rmfiles="$rmfiles $objdir/$n"
6607 done
6608 test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
6609
6610 case "$mode" in
6611 clean)
6612 case " $library_names " in
6613 # " " in the beginning catches empty $dlname
6614 *" $dlname "*) ;;
6615 *) rmfiles="$rmfiles $objdir/$dlname" ;;
6616 esac
6617 test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
6618 ;;
6619 uninstall)
6620 if test -n "$library_names"; then
6621 # Do each command in the postuninstall commands.
6622 cmds=$postuninstall_cmds
6623 save_ifs="$IFS"; IFS='~'
6624 for cmd in $cmds; do
6625 IFS="$save_ifs"
6626 eval cmd=\"$cmd\"
6627 $show "$cmd"
6628 $run eval "$cmd"
6629 if test "$?" -ne 0 && test "$rmforce" != yes; then
6630 exit_status=1
6631 fi
6632 done
6633 IFS="$save_ifs"
6634 fi
6635
6636 if test -n "$old_library"; then
6637 # Do each command in the old_postuninstall commands.
6638 cmds=$old_postuninstall_cmds
6639 save_ifs="$IFS"; IFS='~'
6640 for cmd in $cmds; do
6641 IFS="$save_ifs"
6642 eval cmd=\"$cmd\"
6643 $show "$cmd"
6644 $run eval "$cmd"
6645 if test "$?" -ne 0 && test "$rmforce" != yes; then
6646 exit_status=1
6647 fi
6648 done
6649 IFS="$save_ifs"
6650 fi
6651 # FIXME: should reinstall the best remaining shared library.
6652 ;;
6653 esac
6654 fi
6655 ;;
6656
6657 *.lo)
6658 # Possibly a libtool object, so verify it.
6659 if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
6660
6661 # Read the .lo file
6662 . $dir/$name
6663
6664 # Add PIC object to the list of files to remove.
6665 if test -n "$pic_object" \
6666 && test "$pic_object" != none; then
6667 rmfiles="$rmfiles $dir/$pic_object"
6668 fi
6669
6670 # Add non-PIC object to the list of files to remove.
6671 if test -n "$non_pic_object" \
6672 && test "$non_pic_object" != none; then
6673 rmfiles="$rmfiles $dir/$non_pic_object"
6674 fi
6675 fi
6676 ;;
6677
6678 *)
6679 if test "$mode" = clean ; then
6680 noexename=$name
6681 case $file in
6682 *.exe)
6683 file=`$echo $file|${SED} 's,.exe$,,'`
6684 noexename=`$echo $name|${SED} 's,.exe$,,'`
6685 # $file with .exe has already been added to rmfiles,
6686 # add $file without .exe
6687 rmfiles="$rmfiles $file"
6688 ;;
6689 esac
6690 # Do a test to see if this is a libtool program.
6691 if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
6692 relink_command=
6693 . $dir/$noexename
6694
6695 # note $name still contains .exe if it was in $file originally
6696 # as does the version of $file that was added into $rmfiles
6697 rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
6698 if test "$fast_install" = yes && test -n "$relink_command"; then
6699 rmfiles="$rmfiles $objdir/lt-$name"
6700 fi
6701 if test "X$noexename" != "X$name" ; then
6702 rmfiles="$rmfiles $objdir/lt-${noexename}.c"
6703 fi
6704 fi
6705 fi
6706 ;;
6707 esac
6708 $show "$rm $rmfiles"
6709 $run $rm $rmfiles || exit_status=1
6710 done
6711 objdir="$origobjdir"
6712
6713 # Try to remove the ${objdir}s in the directories where we deleted files
6714 for dir in $rmdirs; do
6715 if test -d "$dir"; then
6716 $show "rmdir $dir"
6717 $run rmdir $dir >/dev/null 2>&1
6718 fi
6719 done
6720
6721 exit $exit_status
6722 ;;
6723
6724 "")
6725 $echo "$modename: you must specify a MODE" 1>&2
6726 $echo "$generic_help" 1>&2
6727 exit $EXIT_FAILURE
6728 ;;
6729 esac
6730
6731 if test -z "$exec_cmd"; then
6732 $echo "$modename: invalid operation mode \`$mode'" 1>&2
6733 $echo "$generic_help" 1>&2
6734 exit $EXIT_FAILURE
6735 fi
6736fi # test -z "$show_help"
6737
6738if test -n "$exec_cmd"; then
6739 eval exec $exec_cmd
6740 exit $EXIT_FAILURE
6741fi
6742
6743# We need to display help for each of the modes.
6744case $mode in
6745"") $echo \
6746"Usage: $modename [OPTION]... [MODE-ARG]...
6747
6748Provide generalized library-building support services.
6749
6750 --config show all configuration variables
6751 --debug enable verbose shell tracing
6752-n, --dry-run display commands without modifying any files
6753 --features display basic configuration information and exit
6754 --finish same as \`--mode=finish'
6755 --help display this help message and exit
6756 --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS]
6757 --quiet same as \`--silent'
6758 --silent don't print informational messages
6759 --tag=TAG use configuration variables from tag TAG
6760 --version print version information
6761
6762MODE must be one of the following:
6763
6764 clean remove files from the build directory
6765 compile compile a source file into a libtool object
6766 execute automatically set library path, then run a program
6767 finish complete the installation of libtool libraries
6768 install install libraries or executables
6769 link create a library or an executable
6770 uninstall remove libraries from an installed directory
6771
6772MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for
6773a more detailed description of MODE.
6774
6775Report bugs to <bug-libtool@gnu.org>."
6776 exit $EXIT_SUCCESS
6777 ;;
6778
6779clean)
6780 $echo \
6781"Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
6782
6783Remove files from the build directory.
6784
6785RM is the name of the program to use to delete files associated with each FILE
6786(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
6787to RM.
6788
6789If FILE is a libtool library, object or program, all the files associated
6790with it are deleted. Otherwise, only FILE itself is deleted using RM."
6791 ;;
6792
6793compile)
6794 $echo \
6795"Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
6796
6797Compile a source file into a libtool library object.
6798
6799This mode accepts the following additional options:
6800
6801 -o OUTPUT-FILE set the output file name to OUTPUT-FILE
6802 -prefer-pic try to building PIC objects only
6803 -prefer-non-pic try to building non-PIC objects only
6804 -static always build a \`.o' file suitable for static linking
6805
6806COMPILE-COMMAND is a command to be used in creating a \`standard' object file
6807from the given SOURCEFILE.
6808
6809The output file name is determined by removing the directory component from
6810SOURCEFILE, then substituting the C source code suffix \`.c' with the
6811library object suffix, \`.lo'."
6812 ;;
6813
6814execute)
6815 $echo \
6816"Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]...
6817
6818Automatically set library path, then run a program.
6819
6820This mode accepts the following additional options:
6821
6822 -dlopen FILE add the directory containing FILE to the library path
6823
6824This mode sets the library path environment variable according to \`-dlopen'
6825flags.
6826
6827If any of the ARGS are libtool executable wrappers, then they are translated
6828into their corresponding uninstalled binary, and any of their required library
6829directories are added to the library path.
6830
6831Then, COMMAND is executed, with ARGS as arguments."
6832 ;;
6833
6834finish)
6835 $echo \
6836"Usage: $modename [OPTION]... --mode=finish [LIBDIR]...
6837
6838Complete the installation of libtool libraries.
6839
6840Each LIBDIR is a directory that contains libtool libraries.
6841
6842The commands that this mode executes may require superuser privileges. Use
6843the \`--dry-run' option if you just want to see what would be executed."
6844 ;;
6845
6846install)
6847 $echo \
6848"Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND...
6849
6850Install executables or libraries.
6851
6852INSTALL-COMMAND is the installation command. The first component should be
6853either the \`install' or \`cp' program.
6854
6855The rest of the components are interpreted as arguments to that command (only
6856BSD-compatible install options are recognized)."
6857 ;;
6858
6859link)
6860 $echo \
6861"Usage: $modename [OPTION]... --mode=link LINK-COMMAND...
6862
6863Link object files or libraries together to form another library, or to
6864create an executable program.
6865
6866LINK-COMMAND is a command using the C compiler that you would use to create
6867a program from several object files.
6868
6869The following components of LINK-COMMAND are treated specially:
6870
6871 -all-static do not do any dynamic linking at all
6872 -avoid-version do not add a version suffix if possible
6873 -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
6874 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
6875 -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
6876 -export-symbols SYMFILE
6877 try to export only the symbols listed in SYMFILE
6878 -export-symbols-regex REGEX
6879 try to export only the symbols matching REGEX
6880 -LLIBDIR search LIBDIR for required installed libraries
6881 -lNAME OUTPUT-FILE requires the installed library libNAME
6882 -module build a library that can dlopened
6883 -no-fast-install disable the fast-install mode
6884 -no-install link a not-installable executable
6885 -no-undefined declare that a library does not refer to external symbols
6886 -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
6887 -objectlist FILE Use a list of object files found in FILE to specify objects
6888 -precious-files-regex REGEX
6889 don't remove output files matching REGEX
6890 -release RELEASE specify package release information
6891 -rpath LIBDIR the created library will eventually be installed in LIBDIR
6892 -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
6893 -static do not do any dynamic linking of uninstalled libtool libraries
6894 -static-libtool-libs
6895 do not do any dynamic linking of libtool libraries
6896 -version-info CURRENT[:REVISION[:AGE]]
6897 specify library version info [each variable defaults to 0]
6898
6899All other options (arguments beginning with \`-') are ignored.
6900
6901Every other argument is treated as a filename. Files ending in \`.la' are
6902treated as uninstalled libtool libraries, other files are standard or library
6903object files.
6904
6905If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
6906only library objects (\`.lo' files) may be specified, and \`-rpath' is
6907required, except when creating a convenience library.
6908
6909If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
6910using \`ar' and \`ranlib', or on Windows using \`lib'.
6911
6912If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
6913is created, otherwise an executable program is created."
6914 ;;
6915
6916uninstall)
6917 $echo \
6918"Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
6919
6920Remove libraries from an installation directory.
6921
6922RM is the name of the program to use to delete files associated with each FILE
6923(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
6924to RM.
6925
6926If FILE is a libtool library, all the files associated with it are deleted.
6927Otherwise, only FILE itself is deleted using RM."
6928 ;;
6929
6930*)
6931 $echo "$modename: invalid operation mode \`$mode'" 1>&2
6932 $echo "$help" 1>&2
6933 exit $EXIT_FAILURE
6934 ;;
6935esac
6936
6937$echo
6938$echo "Try \`$modename --help' for more information about other modes."
6939
6940exit $?
6941
6942# The TAGs below are defined such that we never get into a situation
6943# in which we disable both kinds of libraries. Given conflicting
6944# choices, we go for a static library, that is the most portable,
6945# since we can't tell whether shared libraries were disabled because
6946# the user asked for that or because the platform doesn't support
6947# them. This is particularly important on AIX, because we don't
6948# support having both static and shared libraries enabled at the same
6949# time on that platform, so we default to a shared-only configuration.
6950# If a disable-shared tag is given, we'll fallback to a static-only
6951# configuration. But we'll never go from static-only to shared-only.
6952
6953# ### BEGIN LIBTOOL TAG CONFIG: disable-shared
6954disable_libs=shared
6955# ### END LIBTOOL TAG CONFIG: disable-shared
6956
6957# ### BEGIN LIBTOOL TAG CONFIG: disable-static
6958disable_libs=static
6959# ### END LIBTOOL TAG CONFIG: disable-static
6960
6961# Local Variables:
6962# mode:shell-script
6963# sh-indentation:2
6964# End:
diff --git a/src/others/mimesh/libg3d-0.0.8/config/missing b/src/others/mimesh/libg3d-0.0.8/config/missing
new file mode 100755
index 0000000..1c8ff70
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/config/missing
@@ -0,0 +1,367 @@
1#! /bin/sh
2# Common stub for a few missing GNU programs while installing.
3
4scriptversion=2006-05-10.23
5
6# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006
7# Free Software Foundation, Inc.
8# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
9
10# This program is free software; you can redistribute it and/or modify
11# it under the terms of the GNU General Public License as published by
12# the Free Software Foundation; either version 2, or (at your option)
13# any later version.
14
15# This program is distributed in the hope that it will be useful,
16# but WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18# GNU General Public License for more details.
19
20# You should have received a copy of the GNU General Public License
21# along with this program; if not, write to the Free Software
22# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
23# 02110-1301, USA.
24
25# As a special exception to the GNU General Public License, if you
26# distribute this file as part of a program that contains a
27# configuration script generated by Autoconf, you may include it under
28# the same distribution terms that you use for the rest of that program.
29
30if test $# -eq 0; then
31 echo 1>&2 "Try \`$0 --help' for more information"
32 exit 1
33fi
34
35run=:
36sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
37sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
38
39# In the cases where this matters, `missing' is being run in the
40# srcdir already.
41if test -f configure.ac; then
42 configure_ac=configure.ac
43else
44 configure_ac=configure.in
45fi
46
47msg="missing on your system"
48
49case $1 in
50--run)
51 # Try to run requested program, and just exit if it succeeds.
52 run=
53 shift
54 "$@" && exit 0
55 # Exit code 63 means version mismatch. This often happens
56 # when the user try to use an ancient version of a tool on
57 # a file that requires a minimum version. In this case we
58 # we should proceed has if the program had been absent, or
59 # if --run hadn't been passed.
60 if test $? = 63; then
61 run=:
62 msg="probably too old"
63 fi
64 ;;
65
66 -h|--h|--he|--hel|--help)
67 echo "\
68$0 [OPTION]... PROGRAM [ARGUMENT]...
69
70Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
71error status if there is no known handling for PROGRAM.
72
73Options:
74 -h, --help display this help and exit
75 -v, --version output version information and exit
76 --run try to run the given command, and emulate it if it fails
77
78Supported PROGRAM values:
79 aclocal touch file \`aclocal.m4'
80 autoconf touch file \`configure'
81 autoheader touch file \`config.h.in'
82 autom4te touch the output file, or create a stub one
83 automake touch all \`Makefile.in' files
84 bison create \`y.tab.[ch]', if possible, from existing .[ch]
85 flex create \`lex.yy.c', if possible, from existing .c
86 help2man touch the output file
87 lex create \`lex.yy.c', if possible, from existing .c
88 makeinfo touch the output file
89 tar try tar, gnutar, gtar, then tar without non-portable flags
90 yacc create \`y.tab.[ch]', if possible, from existing .[ch]
91
92Send bug reports to <bug-automake@gnu.org>."
93 exit $?
94 ;;
95
96 -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
97 echo "missing $scriptversion (GNU Automake)"
98 exit $?
99 ;;
100
101 -*)
102 echo 1>&2 "$0: Unknown \`$1' option"
103 echo 1>&2 "Try \`$0 --help' for more information"
104 exit 1
105 ;;
106
107esac
108
109# Now exit if we have it, but it failed. Also exit now if we
110# don't have it and --version was passed (most likely to detect
111# the program).
112case $1 in
113 lex|yacc)
114 # Not GNU programs, they don't have --version.
115 ;;
116
117 tar)
118 if test -n "$run"; then
119 echo 1>&2 "ERROR: \`tar' requires --run"
120 exit 1
121 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
122 exit 1
123 fi
124 ;;
125
126 *)
127 if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
128 # We have it, but it failed.
129 exit 1
130 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
131 # Could not run --version or --help. This is probably someone
132 # running `$TOOL --version' or `$TOOL --help' to check whether
133 # $TOOL exists and not knowing $TOOL uses missing.
134 exit 1
135 fi
136 ;;
137esac
138
139# If it does not exist, or fails to run (possibly an outdated version),
140# try to emulate it.
141case $1 in
142 aclocal*)
143 echo 1>&2 "\
144WARNING: \`$1' is $msg. You should only need it if
145 you modified \`acinclude.m4' or \`${configure_ac}'. You might want
146 to install the \`Automake' and \`Perl' packages. Grab them from
147 any GNU archive site."
148 touch aclocal.m4
149 ;;
150
151 autoconf)
152 echo 1>&2 "\
153WARNING: \`$1' is $msg. You should only need it if
154 you modified \`${configure_ac}'. You might want to install the
155 \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
156 archive site."
157 touch configure
158 ;;
159
160 autoheader)
161 echo 1>&2 "\
162WARNING: \`$1' is $msg. You should only need it if
163 you modified \`acconfig.h' or \`${configure_ac}'. You might want
164 to install the \`Autoconf' and \`GNU m4' packages. Grab them
165 from any GNU archive site."
166 files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
167 test -z "$files" && files="config.h"
168 touch_files=
169 for f in $files; do
170 case $f in
171 *:*) touch_files="$touch_files "`echo "$f" |
172 sed -e 's/^[^:]*://' -e 's/:.*//'`;;
173 *) touch_files="$touch_files $f.in";;
174 esac
175 done
176 touch $touch_files
177 ;;
178
179 automake*)
180 echo 1>&2 "\
181WARNING: \`$1' is $msg. You should only need it if
182 you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
183 You might want to install the \`Automake' and \`Perl' packages.
184 Grab them from any GNU archive site."
185 find . -type f -name Makefile.am -print |
186 sed 's/\.am$/.in/' |
187 while read f; do touch "$f"; done
188 ;;
189
190 autom4te)
191 echo 1>&2 "\
192WARNING: \`$1' is needed, but is $msg.
193 You might have modified some files without having the
194 proper tools for further handling them.
195 You can get \`$1' as part of \`Autoconf' from any GNU
196 archive site."
197
198 file=`echo "$*" | sed -n "$sed_output"`
199 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
200 if test -f "$file"; then
201 touch $file
202 else
203 test -z "$file" || exec >$file
204 echo "#! /bin/sh"
205 echo "# Created by GNU Automake missing as a replacement of"
206 echo "# $ $@"
207 echo "exit 0"
208 chmod +x $file
209 exit 1
210 fi
211 ;;
212
213 bison|yacc)
214 echo 1>&2 "\
215WARNING: \`$1' $msg. You should only need it if
216 you modified a \`.y' file. You may need the \`Bison' package
217 in order for those modifications to take effect. You can get
218 \`Bison' from any GNU archive site."
219 rm -f y.tab.c y.tab.h
220 if test $# -ne 1; then
221 eval LASTARG="\${$#}"
222 case $LASTARG in
223 *.y)
224 SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
225 if test -f "$SRCFILE"; then
226 cp "$SRCFILE" y.tab.c
227 fi
228 SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
229 if test -f "$SRCFILE"; then
230 cp "$SRCFILE" y.tab.h
231 fi
232 ;;
233 esac
234 fi
235 if test ! -f y.tab.h; then
236 echo >y.tab.h
237 fi
238 if test ! -f y.tab.c; then
239 echo 'main() { return 0; }' >y.tab.c
240 fi
241 ;;
242
243 lex|flex)
244 echo 1>&2 "\
245WARNING: \`$1' is $msg. You should only need it if
246 you modified a \`.l' file. You may need the \`Flex' package
247 in order for those modifications to take effect. You can get
248 \`Flex' from any GNU archive site."
249 rm -f lex.yy.c
250 if test $# -ne 1; then
251 eval LASTARG="\${$#}"
252 case $LASTARG in
253 *.l)
254 SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
255 if test -f "$SRCFILE"; then
256 cp "$SRCFILE" lex.yy.c
257 fi
258 ;;
259 esac
260 fi
261 if test ! -f lex.yy.c; then
262 echo 'main() { return 0; }' >lex.yy.c
263 fi
264 ;;
265
266 help2man)
267 echo 1>&2 "\
268WARNING: \`$1' is $msg. You should only need it if
269 you modified a dependency of a manual page. You may need the
270 \`Help2man' package in order for those modifications to take
271 effect. You can get \`Help2man' from any GNU archive site."
272
273 file=`echo "$*" | sed -n "$sed_output"`
274 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
275 if test -f "$file"; then
276 touch $file
277 else
278 test -z "$file" || exec >$file
279 echo ".ab help2man is required to generate this page"
280 exit 1
281 fi
282 ;;
283
284 makeinfo)
285 echo 1>&2 "\
286WARNING: \`$1' is $msg. You should only need it if
287 you modified a \`.texi' or \`.texinfo' file, or any other file
288 indirectly affecting the aspect of the manual. The spurious
289 call might also be the consequence of using a buggy \`make' (AIX,
290 DU, IRIX). You might want to install the \`Texinfo' package or
291 the \`GNU make' package. Grab either from any GNU archive site."
292 # The file to touch is that specified with -o ...
293 file=`echo "$*" | sed -n "$sed_output"`
294 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
295 if test -z "$file"; then
296 # ... or it is the one specified with @setfilename ...
297 infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
298 file=`sed -n '
299 /^@setfilename/{
300 s/.* \([^ ]*\) *$/\1/
301 p
302 q
303 }' $infile`
304 # ... or it is derived from the source name (dir/f.texi becomes f.info)
305 test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
306 fi
307 # If the file does not exist, the user really needs makeinfo;
308 # let's fail without touching anything.
309 test -f $file || exit 1
310 touch $file
311 ;;
312
313 tar)
314 shift
315
316 # We have already tried tar in the generic part.
317 # Look for gnutar/gtar before invocation to avoid ugly error
318 # messages.
319 if (gnutar --version > /dev/null 2>&1); then
320 gnutar "$@" && exit 0
321 fi
322 if (gtar --version > /dev/null 2>&1); then
323 gtar "$@" && exit 0
324 fi
325 firstarg="$1"
326 if shift; then
327 case $firstarg in
328 *o*)
329 firstarg=`echo "$firstarg" | sed s/o//`
330 tar "$firstarg" "$@" && exit 0
331 ;;
332 esac
333 case $firstarg in
334 *h*)
335 firstarg=`echo "$firstarg" | sed s/h//`
336 tar "$firstarg" "$@" && exit 0
337 ;;
338 esac
339 fi
340
341 echo 1>&2 "\
342WARNING: I can't seem to be able to run \`tar' with the given arguments.
343 You may want to install GNU tar or Free paxutils, or check the
344 command line arguments."
345 exit 1
346 ;;
347
348 *)
349 echo 1>&2 "\
350WARNING: \`$1' is needed, and is $msg.
351 You might have modified some files without having the
352 proper tools for further handling them. Check the \`README' file,
353 it often tells you about the needed prerequisites for installing
354 this package. You may also peek at any GNU archive site, in case
355 some other package would contain this missing \`$1' program."
356 exit 1
357 ;;
358esac
359
360exit 0
361
362# Local variables:
363# eval: (add-hook 'write-file-hooks 'time-stamp)
364# time-stamp-start: "scriptversion="
365# time-stamp-format: "%:y-%02m-%02d.%02H"
366# time-stamp-end: "$"
367# End:
diff --git a/src/others/mimesh/libg3d-0.0.8/config/ylwrap b/src/others/mimesh/libg3d-0.0.8/config/ylwrap
new file mode 100755
index 0000000..7278b6a
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/config/ylwrap
@@ -0,0 +1,223 @@
1#! /bin/sh
2# ylwrap - wrapper for lex/yacc invocations.
3
4scriptversion=2007-11-22.22
5
6# Copyright (C) 1996, 1997, 1998, 1999, 2001, 2002, 2003, 2004, 2005,
7# 2007 Free Software Foundation, Inc.
8#
9# Written by Tom Tromey <tromey@cygnus.com>.
10#
11# This program is free software; you can redistribute it and/or modify
12# it under the terms of the GNU General Public License as published by
13# the Free Software Foundation; either version 2, or (at your option)
14# any later version.
15#
16# This program is distributed in the hope that it will be useful,
17# but WITHOUT ANY WARRANTY; without even the implied warranty of
18# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19# GNU General Public License for more details.
20#
21# You should have received a copy of the GNU General Public License
22# along with this program; if not, write to the Free Software
23# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
24# 02110-1301, USA.
25
26# As a special exception to the GNU General Public License, if you
27# distribute this file as part of a program that contains a
28# configuration script generated by Autoconf, you may include it under
29# the same distribution terms that you use for the rest of that program.
30
31# This file is maintained in Automake, please report
32# bugs to <bug-automake@gnu.org> or send patches to
33# <automake-patches@gnu.org>.
34
35case "$1" in
36 '')
37 echo "$0: No files given. Try \`$0 --help' for more information." 1>&2
38 exit 1
39 ;;
40 --basedir)
41 basedir=$2
42 shift 2
43 ;;
44 -h|--h*)
45 cat <<\EOF
46Usage: ylwrap [--help|--version] INPUT [OUTPUT DESIRED]... -- PROGRAM [ARGS]...
47
48Wrapper for lex/yacc invocations, renaming files as desired.
49
50 INPUT is the input file
51 OUTPUT is one file PROG generates
52 DESIRED is the file we actually want instead of OUTPUT
53 PROGRAM is program to run
54 ARGS are passed to PROG
55
56Any number of OUTPUT,DESIRED pairs may be used.
57
58Report bugs to <bug-automake@gnu.org>.
59EOF
60 exit $?
61 ;;
62 -v|--v*)
63 echo "ylwrap $scriptversion"
64 exit $?
65 ;;
66esac
67
68
69# The input.
70input="$1"
71shift
72case "$input" in
73 [\\/]* | ?:[\\/]*)
74 # Absolute path; do nothing.
75 ;;
76 *)
77 # Relative path. Make it absolute.
78 input="`pwd`/$input"
79 ;;
80esac
81
82pairlist=
83while test "$#" -ne 0; do
84 if test "$1" = "--"; then
85 shift
86 break
87 fi
88 pairlist="$pairlist $1"
89 shift
90done
91
92# The program to run.
93prog="$1"
94shift
95# Make any relative path in $prog absolute.
96case "$prog" in
97 [\\/]* | ?:[\\/]*) ;;
98 *[\\/]*) prog="`pwd`/$prog" ;;
99esac
100
101# FIXME: add hostname here for parallel makes that run commands on
102# other machines. But that might take us over the 14-char limit.
103dirname=ylwrap$$
104trap "cd '`pwd`'; rm -rf $dirname > /dev/null 2>&1" 1 2 3 15
105mkdir $dirname || exit 1
106
107cd $dirname
108
109case $# in
110 0) "$prog" "$input" ;;
111 *) "$prog" "$@" "$input" ;;
112esac
113ret=$?
114
115if test $ret -eq 0; then
116 set X $pairlist
117 shift
118 first=yes
119 # Since DOS filename conventions don't allow two dots,
120 # the DOS version of Bison writes out y_tab.c instead of y.tab.c
121 # and y_tab.h instead of y.tab.h. Test to see if this is the case.
122 y_tab_nodot="no"
123 if test -f y_tab.c || test -f y_tab.h; then
124 y_tab_nodot="yes"
125 fi
126
127 # The directory holding the input.
128 input_dir=`echo "$input" | sed -e 's,\([\\/]\)[^\\/]*$,\1,'`
129 # Quote $INPUT_DIR so we can use it in a regexp.
130 # FIXME: really we should care about more than `.' and `\'.
131 input_rx=`echo "$input_dir" | sed 's,\\\\,\\\\\\\\,g;s,\\.,\\\\.,g'`
132
133 while test "$#" -ne 0; do
134 from="$1"
135 # Handle y_tab.c and y_tab.h output by DOS
136 if test $y_tab_nodot = "yes"; then
137 if test $from = "y.tab.c"; then
138 from="y_tab.c"
139 else
140 if test $from = "y.tab.h"; then
141 from="y_tab.h"
142 fi
143 fi
144 fi
145 if test -f "$from"; then
146 # If $2 is an absolute path name, then just use that,
147 # otherwise prepend `../'.
148 case "$2" in
149 [\\/]* | ?:[\\/]*) target="$2";;
150 *) target="../$2";;
151 esac
152
153 # We do not want to overwrite a header file if it hasn't
154 # changed. This avoid useless recompilations. However the
155 # parser itself (the first file) should always be updated,
156 # because it is the destination of the .y.c rule in the
157 # Makefile. Divert the output of all other files to a temporary
158 # file so we can compare them to existing versions.
159 if test $first = no; then
160 realtarget="$target"
161 target="tmp-`echo $target | sed s/.*[\\/]//g`"
162 fi
163 # Edit out `#line' or `#' directives.
164 #
165 # We don't want the resulting debug information to point at
166 # an absolute srcdir; it is better for it to just mention the
167 # .y file with no path.
168 #
169 # We want to use the real output file name, not yy.lex.c for
170 # instance.
171 #
172 # We want the include guards to be adjusted too.
173 FROM=`echo "$from" | sed \
174 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'\
175 -e 's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g'`
176 TARGET=`echo "$2" | sed \
177 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'\
178 -e 's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g'`
179
180 sed -e "/^#/!b" -e "s,$input_rx,," -e "s,$from,$2," \
181 -e "s,$FROM,$TARGET," "$from" >"$target" || ret=$?
182
183 # Check whether header files must be updated.
184 if test $first = no; then
185 if test -f "$realtarget" && cmp -s "$realtarget" "$target"; then
186 echo "$2" is unchanged
187 rm -f "$target"
188 else
189 echo updating "$2"
190 mv -f "$target" "$realtarget"
191 fi
192 fi
193 else
194 # A missing file is only an error for the first file. This
195 # is a blatant hack to let us support using "yacc -d". If -d
196 # is not specified, we don't want an error when the header
197 # file is "missing".
198 if test $first = yes; then
199 ret=1
200 fi
201 fi
202 shift
203 shift
204 first=no
205 done
206else
207 ret=$?
208fi
209
210# Remove the directory.
211cd ..
212rm -rf $dirname
213
214exit $ret
215
216# Local Variables:
217# mode: shell-script
218# sh-indentation: 2
219# eval: (add-hook 'write-file-hooks 'time-stamp)
220# time-stamp-start: "scriptversion="
221# time-stamp-format: "%:y-%02m-%02d.%02H"
222# time-stamp-end: "$"
223# End:
diff --git a/src/others/mimesh/libg3d-0.0.8/configure b/src/others/mimesh/libg3d-0.0.8/configure
new file mode 100755
index 0000000..9265598
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/configure
@@ -0,0 +1,23776 @@
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
58fi
59
60
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
80IFS=$as_save_IFS
81
82 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250esac
251
252fi
253
254
255:
256_ASEOF
257}; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277(as_func_return () {
278 (exit $1)
279}
280as_func_success () {
281 as_func_return 0
282}
283as_func_failure () {
284 as_func_return 1
285}
286as_func_ret_success () {
287 return 0
288}
289as_func_ret_failure () {
290 return 1
291}
292
293exitcode=0
294if as_func_success; then
295 :
296else
297 exitcode=1
298 echo as_func_success failed.
299fi
300
301if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307 :
308else
309 exitcode=1
310 echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320else
321 exitcode=1
322 echo positional parameters were not saved.
323fi
324
325test $exitcode = 0) || { (exit 1); exit 1; }
326
327(
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333_ASEOF
334}; then
335 break
336fi
337
338fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367 (exit \$1)
368}
369as_func_success () {
370 as_func_return 0
371}
372as_func_failure () {
373 as_func_return 1
374}
375as_func_ret_success () {
376 return 0
377}
378as_func_ret_failure () {
379 return 1
380}
381
382exitcode=0
383if as_func_success; then
384 :
385else
386 exitcode=1
387 echo as_func_success failed.
388fi
389
390if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396 :
397else
398 exitcode=1
399 echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409else
410 exitcode=1
411 echo positional parameters were not saved.
412fi
413
414test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419}
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
463}
464
465
466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468else
469 as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in
474-n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479*)
480 ECHO_N='-n';;
481esac
482
483if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486else
487 as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file
491if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496fi
497echo >conf$$.file
498if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508else
509 as_ln_s='cp -p'
510fi
511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null
513
514if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519fi
520
521if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541fi
542as_executable_p=$as_test_x
543
544# Sed expression to map a string onto a valid CPP name.
545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547# Sed expression to map a string onto a valid variable name.
548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553# Check that we are running under the correct shell.
554SHELL=${CONFIG_SHELL-/bin/sh}
555
556case X$ECHO in
557X*--fallback-echo)
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560 ;;
561esac
562
563echo=${ECHO-echo}
564if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
566 shift
567elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
569 :
570elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $echo works!
572 :
573else
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
576fi
577
578if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
580 shift
581 cat <<EOF
582$*
583EOF
584 exit 0
585fi
586
587# The HP-UX ksh and POSIX shell print the target directory to stdout
588# if CDPATH is set.
589if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
590
591if test -z "$ECHO"; then
592if test "X${echo_test_string+set}" != Xset; then
593# find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
597 echo_test_string="`eval $cmd`" &&
598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599 then
600 break
601 fi
602 done
603fi
604
605if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
608 :
609else
610 # The Solaris, AIX, and Digital Unix default echo programs unquote
611 # backslashes. This makes it impossible to quote backslashes using
612 # echo "$something" | sed 's/\\/\\\\/g'
613 #
614 # So, first we look for a working echo in the user's PATH.
615
616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617 for dir in $PATH /usr/ucb; do
618 IFS="$lt_save_ifs"
619 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 echo="$dir/echo"
624 break
625 fi
626 done
627 IFS="$lt_save_ifs"
628
629 if test "X$echo" = Xecho; then
630 # We didn't find a better echo, so look for alternatives.
631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # This shell has a builtin print -r that does the trick.
635 echo='print -r'
636 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637 test "X$CONFIG_SHELL" != X/bin/ksh; then
638 # If we have ksh, try running configure again with it.
639 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640 export ORIGINAL_CONFIG_SHELL
641 CONFIG_SHELL=/bin/ksh
642 export CONFIG_SHELL
643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644 else
645 # Try using printf.
646 echo='printf %s\n'
647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649 test "X$echo_testing_string" = "X$echo_test_string"; then
650 # Cool, printf works
651 :
652 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653 test "X$echo_testing_string" = 'X\t' &&
654 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
656 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657 export CONFIG_SHELL
658 SHELL="$CONFIG_SHELL"
659 export SHELL
660 echo="$CONFIG_SHELL $0 --fallback-echo"
661 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662 test "X$echo_testing_string" = 'X\t' &&
663 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664 test "X$echo_testing_string" = "X$echo_test_string"; then
665 echo="$CONFIG_SHELL $0 --fallback-echo"
666 else
667 # maybe with a smaller string...
668 prev=:
669
670 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672 then
673 break
674 fi
675 prev="$cmd"
676 done
677
678 if test "$prev" != 'sed 50q "$0"'; then
679 echo_test_string=`eval $prev`
680 export echo_test_string
681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682 else
683 # Oops. We lost completely, so just stick with echo.
684 echo=echo
685 fi
686 fi
687 fi
688 fi
689fi
690fi
691
692# Copy echo and quote the copy suitably for passing to libtool from
693# the Makefile, instead of quoting the original, which is used later.
694ECHO=$echo
695if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697fi
698
699
700
701
702tagnames=${tagnames+${tagnames},}CXX
703
704tagnames=${tagnames+${tagnames},}F77
705
706exec 7<&0 </dev/null 6>&1
707
708# Name of the host.
709# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710# so uname gets run too.
711ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712
713#
714# Initializations.
715#
716ac_default_prefix=/usr/local
717ac_clean_files=
718ac_config_libobj_dir=.
719LIBOBJS=
720cross_compiling=no
721subdirs=
722MFLAGS=
723MAKEFLAGS=
724SHELL=${CONFIG_SHELL-/bin/sh}
725
726# Identity of this package.
727PACKAGE_NAME=
728PACKAGE_TARNAME=
729PACKAGE_VERSION=
730PACKAGE_STRING=
731PACKAGE_BUGREPORT=
732
733ac_unique_file="configure.in"
734# Factoring default headers for most tests.
735ac_includes_default="\
736#include <stdio.h>
737#ifdef HAVE_SYS_TYPES_H
738# include <sys/types.h>
739#endif
740#ifdef HAVE_SYS_STAT_H
741# include <sys/stat.h>
742#endif
743#ifdef STDC_HEADERS
744# include <stdlib.h>
745# include <stddef.h>
746#else
747# ifdef HAVE_STDLIB_H
748# include <stdlib.h>
749# endif
750#endif
751#ifdef HAVE_STRING_H
752# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
753# include <memory.h>
754# endif
755# include <string.h>
756#endif
757#ifdef HAVE_STRINGS_H
758# include <strings.h>
759#endif
760#ifdef HAVE_INTTYPES_H
761# include <inttypes.h>
762#endif
763#ifdef HAVE_STDINT_H
764# include <stdint.h>
765#endif
766#ifdef HAVE_UNISTD_H
767# include <unistd.h>
768#endif"
769
770ac_subst_vars='SHELL
771PATH_SEPARATOR
772PACKAGE_NAME
773PACKAGE_TARNAME
774PACKAGE_VERSION
775PACKAGE_STRING
776PACKAGE_BUGREPORT
777exec_prefix
778prefix
779program_transform_name
780bindir
781sbindir
782libexecdir
783datarootdir
784datadir
785sysconfdir
786sharedstatedir
787localstatedir
788includedir
789oldincludedir
790docdir
791infodir
792htmldir
793dvidir
794pdfdir
795psdir
796libdir
797localedir
798mandir
799DEFS
800ECHO_C
801ECHO_N
802ECHO_T
803LIBS
804build_alias
805host_alias
806target_alias
807INSTALL_PROGRAM
808INSTALL_SCRIPT
809INSTALL_DATA
810am__isrc
811CYGPATH_W
812PACKAGE
813VERSION
814ACLOCAL
815AUTOCONF
816AUTOMAKE
817AUTOHEADER
818MAKEINFO
819install_sh
820STRIP
821INSTALL_STRIP_PROGRAM
822mkdir_p
823AWK
824SET_MAKE
825am__leading_dot
826AMTAR
827am__tar
828am__untar
829LTVERSION
830CC
831CFLAGS
832LDFLAGS
833CPPFLAGS
834ac_ct_CC
835EXEEXT
836OBJEXT
837DEPDIR
838am__include
839am__quote
840AMDEP_TRUE
841AMDEP_FALSE
842AMDEPBACKSLASH
843CCDEPMODE
844am__fastdepCC_TRUE
845am__fastdepCC_FALSE
846LEX
847LEX_OUTPUT_ROOT
848LEXLIB
849CPP
850GREP
851EGREP
852OS_WIN32_TRUE
853OS_WIN32_FALSE
854build
855build_cpu
856build_vendor
857build_os
858host
859host_cpu
860host_vendor
861host_os
862LN_S
863ECHO
864AR
865RANLIB
866DLLTOOL
867AS
868OBJDUMP
869CXX
870CXXFLAGS
871ac_ct_CXX
872CXXDEPMODE
873am__fastdepCXX_TRUE
874am__fastdepCXX_FALSE
875CXXCPP
876F77
877FFLAGS
878ac_ct_F77
879LIBTOOL
880HTML_DIR
881PKG_CONFIG
882GTKDOC_CHECK
883ENABLE_GTK_DOC_TRUE
884ENABLE_GTK_DOC_FALSE
885GTK_DOC_USE_LIBTOOL_TRUE
886GTK_DOC_USE_LIBTOOL_FALSE
887GLIB_CFLAGS
888GLIB_LIBS
889GLIB_GENMARSHAL
890GOBJECT_QUERY
891GLIB_MKENUMS
892GTK_CFLAGS
893GTK_LIBS
894GDKPIXBUF_CFLAGS
895GDKPIXBUF_LIBS
896HAVE_GDKPIXBUF_TRUE
897HAVE_GDKPIXBUF_FALSE
898XML2_CONFIG
899XML_CPPFLAGS
900XML_LIBS
901LIBXML2_CFLAGS
902LIBXML2_LIBS
903HAVE_LIBXML2_TRUE
904HAVE_LIBXML2_FALSE
905LIBGSF_CFLAGS
906LIBGSF_LIBS
907HAVE_LIBGSF_TRUE
908HAVE_LIBGSF_FALSE
909MAGIC_LIBS
910MATH_LIBS
911Z_CFLAGS
912Z_LIBS
913HAVE_ZLIB_TRUE
914HAVE_ZLIB_FALSE
915DEBUG
916EXPERIMENTAL_TRUE
917EXPERIMENTAL_FALSE
918HAVE_CXX_TRUE
919HAVE_CXX_FALSE
920DBG_CFLAGS
921PLUGINS_LDFLAGS
922LIBOBJS
923LTLIBOBJS'
924ac_subst_files=''
925 ac_precious_vars='build_alias
926host_alias
927target_alias
928CC
929CFLAGS
930LDFLAGS
931LIBS
932CPPFLAGS
933CPP
934CXX
935CXXFLAGS
936CCC
937CXXCPP
938F77
939FFLAGS
940PKG_CONFIG
941LIBGSF_CFLAGS
942LIBGSF_LIBS'
943
944
945# Initialize some variables set by options.
946ac_init_help=
947ac_init_version=false
948# The variables have the same names as the options, with
949# dashes changed to underlines.
950cache_file=/dev/null
951exec_prefix=NONE
952no_create=
953no_recursion=
954prefix=NONE
955program_prefix=NONE
956program_suffix=NONE
957program_transform_name=s,x,x,
958silent=
959site=
960srcdir=
961verbose=
962x_includes=NONE
963x_libraries=NONE
964
965# Installation directory options.
966# These are left unexpanded so users can "make install exec_prefix=/foo"
967# and all the variables that are supposed to be based on exec_prefix
968# by default will actually change.
969# Use braces instead of parens because sh, perl, etc. also accept them.
970# (The list follows the same order as the GNU Coding Standards.)
971bindir='${exec_prefix}/bin'
972sbindir='${exec_prefix}/sbin'
973libexecdir='${exec_prefix}/libexec'
974datarootdir='${prefix}/share'
975datadir='${datarootdir}'
976sysconfdir='${prefix}/etc'
977sharedstatedir='${prefix}/com'
978localstatedir='${prefix}/var'
979includedir='${prefix}/include'
980oldincludedir='/usr/include'
981docdir='${datarootdir}/doc/${PACKAGE}'
982infodir='${datarootdir}/info'
983htmldir='${docdir}'
984dvidir='${docdir}'
985pdfdir='${docdir}'
986psdir='${docdir}'
987libdir='${exec_prefix}/lib'
988localedir='${datarootdir}/locale'
989mandir='${datarootdir}/man'
990
991ac_prev=
992ac_dashdash=
993for ac_option
994do
995 # If the previous option needs an argument, assign it.
996 if test -n "$ac_prev"; then
997 eval $ac_prev=\$ac_option
998 ac_prev=
999 continue
1000 fi
1001
1002 case $ac_option in
1003 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1004 *) ac_optarg=yes ;;
1005 esac
1006
1007 # Accept the important Cygnus configure options, so we can diagnose typos.
1008
1009 case $ac_dashdash$ac_option in
1010 --)
1011 ac_dashdash=yes ;;
1012
1013 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1014 ac_prev=bindir ;;
1015 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1016 bindir=$ac_optarg ;;
1017
1018 -build | --build | --buil | --bui | --bu)
1019 ac_prev=build_alias ;;
1020 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1021 build_alias=$ac_optarg ;;
1022
1023 -cache-file | --cache-file | --cache-fil | --cache-fi \
1024 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1025 ac_prev=cache_file ;;
1026 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1027 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1028 cache_file=$ac_optarg ;;
1029
1030 --config-cache | -C)
1031 cache_file=config.cache ;;
1032
1033 -datadir | --datadir | --datadi | --datad)
1034 ac_prev=datadir ;;
1035 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1036 datadir=$ac_optarg ;;
1037
1038 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1039 | --dataroo | --dataro | --datar)
1040 ac_prev=datarootdir ;;
1041 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1042 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1043 datarootdir=$ac_optarg ;;
1044
1045 -disable-* | --disable-*)
1046 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1047 # Reject names that are not valid shell variable names.
1048 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1049 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1050 { (exit 1); exit 1; }; }
1051 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1052 eval enable_$ac_feature=no ;;
1053
1054 -docdir | --docdir | --docdi | --doc | --do)
1055 ac_prev=docdir ;;
1056 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1057 docdir=$ac_optarg ;;
1058
1059 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1060 ac_prev=dvidir ;;
1061 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1062 dvidir=$ac_optarg ;;
1063
1064 -enable-* | --enable-*)
1065 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1066 # Reject names that are not valid shell variable names.
1067 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1068 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1069 { (exit 1); exit 1; }; }
1070 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1071 eval enable_$ac_feature=\$ac_optarg ;;
1072
1073 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1074 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1075 | --exec | --exe | --ex)
1076 ac_prev=exec_prefix ;;
1077 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1078 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1079 | --exec=* | --exe=* | --ex=*)
1080 exec_prefix=$ac_optarg ;;
1081
1082 -gas | --gas | --ga | --g)
1083 # Obsolete; use --with-gas.
1084 with_gas=yes ;;
1085
1086 -help | --help | --hel | --he | -h)
1087 ac_init_help=long ;;
1088 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1089 ac_init_help=recursive ;;
1090 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1091 ac_init_help=short ;;
1092
1093 -host | --host | --hos | --ho)
1094 ac_prev=host_alias ;;
1095 -host=* | --host=* | --hos=* | --ho=*)
1096 host_alias=$ac_optarg ;;
1097
1098 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1099 ac_prev=htmldir ;;
1100 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1101 | --ht=*)
1102 htmldir=$ac_optarg ;;
1103
1104 -includedir | --includedir | --includedi | --included | --include \
1105 | --includ | --inclu | --incl | --inc)
1106 ac_prev=includedir ;;
1107 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1108 | --includ=* | --inclu=* | --incl=* | --inc=*)
1109 includedir=$ac_optarg ;;
1110
1111 -infodir | --infodir | --infodi | --infod | --info | --inf)
1112 ac_prev=infodir ;;
1113 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1114 infodir=$ac_optarg ;;
1115
1116 -libdir | --libdir | --libdi | --libd)
1117 ac_prev=libdir ;;
1118 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1119 libdir=$ac_optarg ;;
1120
1121 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1122 | --libexe | --libex | --libe)
1123 ac_prev=libexecdir ;;
1124 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1125 | --libexe=* | --libex=* | --libe=*)
1126 libexecdir=$ac_optarg ;;
1127
1128 -localedir | --localedir | --localedi | --localed | --locale)
1129 ac_prev=localedir ;;
1130 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1131 localedir=$ac_optarg ;;
1132
1133 -localstatedir | --localstatedir | --localstatedi | --localstated \
1134 | --localstate | --localstat | --localsta | --localst | --locals)
1135 ac_prev=localstatedir ;;
1136 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1137 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1138 localstatedir=$ac_optarg ;;
1139
1140 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1141 ac_prev=mandir ;;
1142 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1143 mandir=$ac_optarg ;;
1144
1145 -nfp | --nfp | --nf)
1146 # Obsolete; use --without-fp.
1147 with_fp=no ;;
1148
1149 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1150 | --no-cr | --no-c | -n)
1151 no_create=yes ;;
1152
1153 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1154 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1155 no_recursion=yes ;;
1156
1157 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1158 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1159 | --oldin | --oldi | --old | --ol | --o)
1160 ac_prev=oldincludedir ;;
1161 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1162 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1163 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1164 oldincludedir=$ac_optarg ;;
1165
1166 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1167 ac_prev=prefix ;;
1168 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1169 prefix=$ac_optarg ;;
1170
1171 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1172 | --program-pre | --program-pr | --program-p)
1173 ac_prev=program_prefix ;;
1174 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1175 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1176 program_prefix=$ac_optarg ;;
1177
1178 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1179 | --program-suf | --program-su | --program-s)
1180 ac_prev=program_suffix ;;
1181 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1182 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1183 program_suffix=$ac_optarg ;;
1184
1185 -program-transform-name | --program-transform-name \
1186 | --program-transform-nam | --program-transform-na \
1187 | --program-transform-n | --program-transform- \
1188 | --program-transform | --program-transfor \
1189 | --program-transfo | --program-transf \
1190 | --program-trans | --program-tran \
1191 | --progr-tra | --program-tr | --program-t)
1192 ac_prev=program_transform_name ;;
1193 -program-transform-name=* | --program-transform-name=* \
1194 | --program-transform-nam=* | --program-transform-na=* \
1195 | --program-transform-n=* | --program-transform-=* \
1196 | --program-transform=* | --program-transfor=* \
1197 | --program-transfo=* | --program-transf=* \
1198 | --program-trans=* | --program-tran=* \
1199 | --progr-tra=* | --program-tr=* | --program-t=*)
1200 program_transform_name=$ac_optarg ;;
1201
1202 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1203 ac_prev=pdfdir ;;
1204 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1205 pdfdir=$ac_optarg ;;
1206
1207 -psdir | --psdir | --psdi | --psd | --ps)
1208 ac_prev=psdir ;;
1209 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1210 psdir=$ac_optarg ;;
1211
1212 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1213 | -silent | --silent | --silen | --sile | --sil)
1214 silent=yes ;;
1215
1216 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1217 ac_prev=sbindir ;;
1218 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1219 | --sbi=* | --sb=*)
1220 sbindir=$ac_optarg ;;
1221
1222 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1223 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1224 | --sharedst | --shareds | --shared | --share | --shar \
1225 | --sha | --sh)
1226 ac_prev=sharedstatedir ;;
1227 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1228 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1229 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1230 | --sha=* | --sh=*)
1231 sharedstatedir=$ac_optarg ;;
1232
1233 -site | --site | --sit)
1234 ac_prev=site ;;
1235 -site=* | --site=* | --sit=*)
1236 site=$ac_optarg ;;
1237
1238 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1239 ac_prev=srcdir ;;
1240 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1241 srcdir=$ac_optarg ;;
1242
1243 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1244 | --syscon | --sysco | --sysc | --sys | --sy)
1245 ac_prev=sysconfdir ;;
1246 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1247 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1248 sysconfdir=$ac_optarg ;;
1249
1250 -target | --target | --targe | --targ | --tar | --ta | --t)
1251 ac_prev=target_alias ;;
1252 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1253 target_alias=$ac_optarg ;;
1254
1255 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1256 verbose=yes ;;
1257
1258 -version | --version | --versio | --versi | --vers | -V)
1259 ac_init_version=: ;;
1260
1261 -with-* | --with-*)
1262 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1263 # Reject names that are not valid shell variable names.
1264 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1265 { echo "$as_me: error: invalid package name: $ac_package" >&2
1266 { (exit 1); exit 1; }; }
1267 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1268 eval with_$ac_package=\$ac_optarg ;;
1269
1270 -without-* | --without-*)
1271 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1272 # Reject names that are not valid shell variable names.
1273 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1274 { echo "$as_me: error: invalid package name: $ac_package" >&2
1275 { (exit 1); exit 1; }; }
1276 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1277 eval with_$ac_package=no ;;
1278
1279 --x)
1280 # Obsolete; use --with-x.
1281 with_x=yes ;;
1282
1283 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1284 | --x-incl | --x-inc | --x-in | --x-i)
1285 ac_prev=x_includes ;;
1286 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1287 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1288 x_includes=$ac_optarg ;;
1289
1290 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1291 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1292 ac_prev=x_libraries ;;
1293 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1294 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1295 x_libraries=$ac_optarg ;;
1296
1297 -*) { echo "$as_me: error: unrecognized option: $ac_option
1298Try \`$0 --help' for more information." >&2
1299 { (exit 1); exit 1; }; }
1300 ;;
1301
1302 *=*)
1303 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1304 # Reject names that are not valid shell variable names.
1305 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1306 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1307 { (exit 1); exit 1; }; }
1308 eval $ac_envvar=\$ac_optarg
1309 export $ac_envvar ;;
1310
1311 *)
1312 # FIXME: should be removed in autoconf 3.0.
1313 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1314 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1315 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1316 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1317 ;;
1318
1319 esac
1320done
1321
1322if test -n "$ac_prev"; then
1323 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1324 { echo "$as_me: error: missing argument to $ac_option" >&2
1325 { (exit 1); exit 1; }; }
1326fi
1327
1328# Be sure to have absolute directory names.
1329for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1330 datadir sysconfdir sharedstatedir localstatedir includedir \
1331 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1332 libdir localedir mandir
1333do
1334 eval ac_val=\$$ac_var
1335 case $ac_val in
1336 [\\/$]* | ?:[\\/]* ) continue;;
1337 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1338 esac
1339 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1340 { (exit 1); exit 1; }; }
1341done
1342
1343# There might be people who depend on the old broken behavior: `$host'
1344# used to hold the argument of --host etc.
1345# FIXME: To remove some day.
1346build=$build_alias
1347host=$host_alias
1348target=$target_alias
1349
1350# FIXME: To remove some day.
1351if test "x$host_alias" != x; then
1352 if test "x$build_alias" = x; then
1353 cross_compiling=maybe
1354 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1355 If a cross compiler is detected then cross compile mode will be used." >&2
1356 elif test "x$build_alias" != "x$host_alias"; then
1357 cross_compiling=yes
1358 fi
1359fi
1360
1361ac_tool_prefix=
1362test -n "$host_alias" && ac_tool_prefix=$host_alias-
1363
1364test "$silent" = yes && exec 6>/dev/null
1365
1366
1367ac_pwd=`pwd` && test -n "$ac_pwd" &&
1368ac_ls_di=`ls -di .` &&
1369ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1370 { echo "$as_me: error: Working directory cannot be determined" >&2
1371 { (exit 1); exit 1; }; }
1372test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1373 { echo "$as_me: error: pwd does not report name of working directory" >&2
1374 { (exit 1); exit 1; }; }
1375
1376
1377# Find the source files, if location was not specified.
1378if test -z "$srcdir"; then
1379 ac_srcdir_defaulted=yes
1380 # Try the directory containing this script, then the parent directory.
1381 ac_confdir=`$as_dirname -- "$0" ||
1382$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1383 X"$0" : 'X\(//\)[^/]' \| \
1384 X"$0" : 'X\(//\)$' \| \
1385 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1386echo X"$0" |
1387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1388 s//\1/
1389 q
1390 }
1391 /^X\(\/\/\)[^/].*/{
1392 s//\1/
1393 q
1394 }
1395 /^X\(\/\/\)$/{
1396 s//\1/
1397 q
1398 }
1399 /^X\(\/\).*/{
1400 s//\1/
1401 q
1402 }
1403 s/.*/./; q'`
1404 srcdir=$ac_confdir
1405 if test ! -r "$srcdir/$ac_unique_file"; then
1406 srcdir=..
1407 fi
1408else
1409 ac_srcdir_defaulted=no
1410fi
1411if test ! -r "$srcdir/$ac_unique_file"; then
1412 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1413 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1414 { (exit 1); exit 1; }; }
1415fi
1416ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1417ac_abs_confdir=`(
1418 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1419 { (exit 1); exit 1; }; }
1420 pwd)`
1421# When building in place, set srcdir=.
1422if test "$ac_abs_confdir" = "$ac_pwd"; then
1423 srcdir=.
1424fi
1425# Remove unnecessary trailing slashes from srcdir.
1426# Double slashes in file names in object file debugging info
1427# mess up M-x gdb in Emacs.
1428case $srcdir in
1429*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1430esac
1431for ac_var in $ac_precious_vars; do
1432 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1433 eval ac_env_${ac_var}_value=\$${ac_var}
1434 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1435 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1436done
1437
1438#
1439# Report the --help message.
1440#
1441if test "$ac_init_help" = "long"; then
1442 # Omit some internal or obsolete options to make the list less imposing.
1443 # This message is too long to be a string in the A/UX 3.1 sh.
1444 cat <<_ACEOF
1445\`configure' configures this package to adapt to many kinds of systems.
1446
1447Usage: $0 [OPTION]... [VAR=VALUE]...
1448
1449To assign environment variables (e.g., CC, CFLAGS...), specify them as
1450VAR=VALUE. See below for descriptions of some of the useful variables.
1451
1452Defaults for the options are specified in brackets.
1453
1454Configuration:
1455 -h, --help display this help and exit
1456 --help=short display options specific to this package
1457 --help=recursive display the short help of all the included packages
1458 -V, --version display version information and exit
1459 -q, --quiet, --silent do not print \`checking...' messages
1460 --cache-file=FILE cache test results in FILE [disabled]
1461 -C, --config-cache alias for \`--cache-file=config.cache'
1462 -n, --no-create do not create output files
1463 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1464
1465Installation directories:
1466 --prefix=PREFIX install architecture-independent files in PREFIX
1467 [$ac_default_prefix]
1468 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1469 [PREFIX]
1470
1471By default, \`make install' will install all the files in
1472\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1473an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1474for instance \`--prefix=\$HOME'.
1475
1476For better control, use the options below.
1477
1478Fine tuning of the installation directories:
1479 --bindir=DIR user executables [EPREFIX/bin]
1480 --sbindir=DIR system admin executables [EPREFIX/sbin]
1481 --libexecdir=DIR program executables [EPREFIX/libexec]
1482 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1483 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1484 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1485 --libdir=DIR object code libraries [EPREFIX/lib]
1486 --includedir=DIR C header files [PREFIX/include]
1487 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1488 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1489 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1490 --infodir=DIR info documentation [DATAROOTDIR/info]
1491 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1492 --mandir=DIR man documentation [DATAROOTDIR/man]
1493 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1494 --htmldir=DIR html documentation [DOCDIR]
1495 --dvidir=DIR dvi documentation [DOCDIR]
1496 --pdfdir=DIR pdf documentation [DOCDIR]
1497 --psdir=DIR ps documentation [DOCDIR]
1498_ACEOF
1499
1500 cat <<\_ACEOF
1501
1502Program names:
1503 --program-prefix=PREFIX prepend PREFIX to installed program names
1504 --program-suffix=SUFFIX append SUFFIX to installed program names
1505 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1506
1507System types:
1508 --build=BUILD configure for building on BUILD [guessed]
1509 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1510_ACEOF
1511fi
1512
1513if test -n "$ac_init_help"; then
1514
1515 cat <<\_ACEOF
1516
1517Optional Features:
1518 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1519 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1520 --disable-dependency-tracking speeds up one-time build
1521 --enable-dependency-tracking do not reject slow dependency extractors
1522 --enable-static[=PKGS] build static libraries [default=no]
1523 --enable-shared[=PKGS] build shared libraries [default=yes]
1524 --enable-fast-install[=PKGS]
1525 optimize for fast installation [default=yes]
1526 --disable-libtool-lock avoid locking (might break parallel builds)
1527 --enable-gtk-doc use gtk-doc to build documentation [default=no]
1528 --disable-glibtest do not try to compile and run a test GLIB program
1529 --disable-gtktest do not try to compile and run a test GTK+ program
1530 --disable-xmltest Do not try to compile and run a test LIBXML program
1531 --disable-libmagic disable file type detection using libmagic
1532 --enable-debug[=LVL] enable debug level LVL or 1 (default is 0)
1533 --enable-experimental enable experimental and unfinished plugins
1534 --enable-cxxtest enable C++ test
1535 --enable-profile enable gprof profiling
1536
1537Optional Packages:
1538 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1539 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1540 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1541 --with-pic try to use only PIC/non-PIC objects [default=use
1542 both]
1543 --with-tags[=TAGS] include additional configurations [automatic]
1544 --with-html-dir=PATH path to installed docs
1545 --with-xml-prefix=PFX Prefix where libxml is installed (optional)
1546 --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
1547 --with-zlib=DIR use libz in DIR
1548
1549Some influential environment variables:
1550 CC C compiler command
1551 CFLAGS C compiler flags
1552 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1553 nonstandard directory <lib dir>
1554 LIBS libraries to pass to the linker, e.g. -l<library>
1555 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1556 you have headers in a nonstandard directory <include dir>
1557 CPP C preprocessor
1558 CXX C++ compiler command
1559 CXXFLAGS C++ compiler flags
1560 CXXCPP C++ preprocessor
1561 F77 Fortran 77 compiler command
1562 FFLAGS Fortran 77 compiler flags
1563 PKG_CONFIG path to pkg-config utility
1564 LIBGSF_CFLAGS
1565 C compiler flags for LIBGSF, overriding pkg-config
1566 LIBGSF_LIBS linker flags for LIBGSF, overriding pkg-config
1567
1568Use these variables to override the choices made by `configure' or to help
1569it to find libraries and programs with nonstandard names/locations.
1570
1571_ACEOF
1572ac_status=$?
1573fi
1574
1575if test "$ac_init_help" = "recursive"; then
1576 # If there are subdirs, report their specific --help.
1577 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1578 test -d "$ac_dir" || continue
1579 ac_builddir=.
1580
1581case "$ac_dir" in
1582.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1583*)
1584 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1585 # A ".." for each directory in $ac_dir_suffix.
1586 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1587 case $ac_top_builddir_sub in
1588 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1589 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1590 esac ;;
1591esac
1592ac_abs_top_builddir=$ac_pwd
1593ac_abs_builddir=$ac_pwd$ac_dir_suffix
1594# for backward compatibility:
1595ac_top_builddir=$ac_top_build_prefix
1596
1597case $srcdir in
1598 .) # We are building in place.
1599 ac_srcdir=.
1600 ac_top_srcdir=$ac_top_builddir_sub
1601 ac_abs_top_srcdir=$ac_pwd ;;
1602 [\\/]* | ?:[\\/]* ) # Absolute name.
1603 ac_srcdir=$srcdir$ac_dir_suffix;
1604 ac_top_srcdir=$srcdir
1605 ac_abs_top_srcdir=$srcdir ;;
1606 *) # Relative name.
1607 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1608 ac_top_srcdir=$ac_top_build_prefix$srcdir
1609 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1610esac
1611ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1612
1613 cd "$ac_dir" || { ac_status=$?; continue; }
1614 # Check for guested configure.
1615 if test -f "$ac_srcdir/configure.gnu"; then
1616 echo &&
1617 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1618 elif test -f "$ac_srcdir/configure"; then
1619 echo &&
1620 $SHELL "$ac_srcdir/configure" --help=recursive
1621 else
1622 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1623 fi || ac_status=$?
1624 cd "$ac_pwd" || { ac_status=$?; break; }
1625 done
1626fi
1627
1628test -n "$ac_init_help" && exit $ac_status
1629if $ac_init_version; then
1630 cat <<\_ACEOF
1631configure
1632generated by GNU Autoconf 2.61
1633
1634Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16352002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1636This configure script is free software; the Free Software Foundation
1637gives unlimited permission to copy, distribute and modify it.
1638_ACEOF
1639 exit
1640fi
1641cat >config.log <<_ACEOF
1642This file contains any messages produced by compilers while
1643running configure, to aid debugging if configure makes a mistake.
1644
1645It was created by $as_me, which was
1646generated by GNU Autoconf 2.61. Invocation command line was
1647
1648 $ $0 $@
1649
1650_ACEOF
1651exec 5>>config.log
1652{
1653cat <<_ASUNAME
1654## --------- ##
1655## Platform. ##
1656## --------- ##
1657
1658hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1659uname -m = `(uname -m) 2>/dev/null || echo unknown`
1660uname -r = `(uname -r) 2>/dev/null || echo unknown`
1661uname -s = `(uname -s) 2>/dev/null || echo unknown`
1662uname -v = `(uname -v) 2>/dev/null || echo unknown`
1663
1664/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1665/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1666
1667/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1668/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1669/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1670/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1671/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1672/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1673/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1674
1675_ASUNAME
1676
1677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1678for as_dir in $PATH
1679do
1680 IFS=$as_save_IFS
1681 test -z "$as_dir" && as_dir=.
1682 echo "PATH: $as_dir"
1683done
1684IFS=$as_save_IFS
1685
1686} >&5
1687
1688cat >&5 <<_ACEOF
1689
1690
1691## ----------- ##
1692## Core tests. ##
1693## ----------- ##
1694
1695_ACEOF
1696
1697
1698# Keep a trace of the command line.
1699# Strip out --no-create and --no-recursion so they do not pile up.
1700# Strip out --silent because we don't want to record it for future runs.
1701# Also quote any args containing shell meta-characters.
1702# Make two passes to allow for proper duplicate-argument suppression.
1703ac_configure_args=
1704ac_configure_args0=
1705ac_configure_args1=
1706ac_must_keep_next=false
1707for ac_pass in 1 2
1708do
1709 for ac_arg
1710 do
1711 case $ac_arg in
1712 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1713 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1714 | -silent | --silent | --silen | --sile | --sil)
1715 continue ;;
1716 *\'*)
1717 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1718 esac
1719 case $ac_pass in
1720 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1721 2)
1722 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1723 if test $ac_must_keep_next = true; then
1724 ac_must_keep_next=false # Got value, back to normal.
1725 else
1726 case $ac_arg in
1727 *=* | --config-cache | -C | -disable-* | --disable-* \
1728 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1729 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1730 | -with-* | --with-* | -without-* | --without-* | --x)
1731 case "$ac_configure_args0 " in
1732 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1733 esac
1734 ;;
1735 -* ) ac_must_keep_next=true ;;
1736 esac
1737 fi
1738 ac_configure_args="$ac_configure_args '$ac_arg'"
1739 ;;
1740 esac
1741 done
1742done
1743$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1744$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1745
1746# When interrupted or exit'd, cleanup temporary files, and complete
1747# config.log. We remove comments because anyway the quotes in there
1748# would cause problems or look ugly.
1749# WARNING: Use '\'' to represent an apostrophe within the trap.
1750# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1751trap 'exit_status=$?
1752 # Save into config.log some information that might help in debugging.
1753 {
1754 echo
1755
1756 cat <<\_ASBOX
1757## ---------------- ##
1758## Cache variables. ##
1759## ---------------- ##
1760_ASBOX
1761 echo
1762 # The following way of writing the cache mishandles newlines in values,
1763(
1764 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1765 eval ac_val=\$$ac_var
1766 case $ac_val in #(
1767 *${as_nl}*)
1768 case $ac_var in #(
1769 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1770echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1771 esac
1772 case $ac_var in #(
1773 _ | IFS | as_nl) ;; #(
1774 *) $as_unset $ac_var ;;
1775 esac ;;
1776 esac
1777 done
1778 (set) 2>&1 |
1779 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1780 *${as_nl}ac_space=\ *)
1781 sed -n \
1782 "s/'\''/'\''\\\\'\'''\''/g;
1783 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1784 ;; #(
1785 *)
1786 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1787 ;;
1788 esac |
1789 sort
1790)
1791 echo
1792
1793 cat <<\_ASBOX
1794## ----------------- ##
1795## Output variables. ##
1796## ----------------- ##
1797_ASBOX
1798 echo
1799 for ac_var in $ac_subst_vars
1800 do
1801 eval ac_val=\$$ac_var
1802 case $ac_val in
1803 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1804 esac
1805 echo "$ac_var='\''$ac_val'\''"
1806 done | sort
1807 echo
1808
1809 if test -n "$ac_subst_files"; then
1810 cat <<\_ASBOX
1811## ------------------- ##
1812## File substitutions. ##
1813## ------------------- ##
1814_ASBOX
1815 echo
1816 for ac_var in $ac_subst_files
1817 do
1818 eval ac_val=\$$ac_var
1819 case $ac_val in
1820 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1821 esac
1822 echo "$ac_var='\''$ac_val'\''"
1823 done | sort
1824 echo
1825 fi
1826
1827 if test -s confdefs.h; then
1828 cat <<\_ASBOX
1829## ----------- ##
1830## confdefs.h. ##
1831## ----------- ##
1832_ASBOX
1833 echo
1834 cat confdefs.h
1835 echo
1836 fi
1837 test "$ac_signal" != 0 &&
1838 echo "$as_me: caught signal $ac_signal"
1839 echo "$as_me: exit $exit_status"
1840 } >&5
1841 rm -f core *.core core.conftest.* &&
1842 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1843 exit $exit_status
1844' 0
1845for ac_signal in 1 2 13 15; do
1846 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1847done
1848ac_signal=0
1849
1850# confdefs.h avoids OS command line length limits that DEFS can exceed.
1851rm -f -r conftest* confdefs.h
1852
1853# Predefined preprocessor variables.
1854
1855cat >>confdefs.h <<_ACEOF
1856#define PACKAGE_NAME "$PACKAGE_NAME"
1857_ACEOF
1858
1859
1860cat >>confdefs.h <<_ACEOF
1861#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1862_ACEOF
1863
1864
1865cat >>confdefs.h <<_ACEOF
1866#define PACKAGE_VERSION "$PACKAGE_VERSION"
1867_ACEOF
1868
1869
1870cat >>confdefs.h <<_ACEOF
1871#define PACKAGE_STRING "$PACKAGE_STRING"
1872_ACEOF
1873
1874
1875cat >>confdefs.h <<_ACEOF
1876#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1877_ACEOF
1878
1879
1880# Let the site file select an alternate cache file if it wants to.
1881# Prefer explicitly selected file to automatically selected ones.
1882if test -n "$CONFIG_SITE"; then
1883 set x "$CONFIG_SITE"
1884elif test "x$prefix" != xNONE; then
1885 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1886else
1887 set x "$ac_default_prefix/share/config.site" \
1888 "$ac_default_prefix/etc/config.site"
1889fi
1890shift
1891for ac_site_file
1892do
1893 if test -r "$ac_site_file"; then
1894 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1895echo "$as_me: loading site script $ac_site_file" >&6;}
1896 sed 's/^/| /' "$ac_site_file" >&5
1897 . "$ac_site_file"
1898 fi
1899done
1900
1901if test -r "$cache_file"; then
1902 # Some versions of bash will fail to source /dev/null (special
1903 # files actually), so we avoid doing that.
1904 if test -f "$cache_file"; then
1905 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1906echo "$as_me: loading cache $cache_file" >&6;}
1907 case $cache_file in
1908 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1909 *) . "./$cache_file";;
1910 esac
1911 fi
1912else
1913 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1914echo "$as_me: creating cache $cache_file" >&6;}
1915 >$cache_file
1916fi
1917
1918# Check that the precious variables saved in the cache have kept the same
1919# value.
1920ac_cache_corrupted=false
1921for ac_var in $ac_precious_vars; do
1922 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1923 eval ac_new_set=\$ac_env_${ac_var}_set
1924 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1925 eval ac_new_val=\$ac_env_${ac_var}_value
1926 case $ac_old_set,$ac_new_set in
1927 set,)
1928 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1929echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1930 ac_cache_corrupted=: ;;
1931 ,set)
1932 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1933echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1934 ac_cache_corrupted=: ;;
1935 ,);;
1936 *)
1937 if test "x$ac_old_val" != "x$ac_new_val"; then
1938 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1939echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1940 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1941echo "$as_me: former value: $ac_old_val" >&2;}
1942 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1943echo "$as_me: current value: $ac_new_val" >&2;}
1944 ac_cache_corrupted=:
1945 fi;;
1946 esac
1947 # Pass precious variables to config.status.
1948 if test "$ac_new_set" = set; then
1949 case $ac_new_val in
1950 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1951 *) ac_arg=$ac_var=$ac_new_val ;;
1952 esac
1953 case " $ac_configure_args " in
1954 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1955 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1956 esac
1957 fi
1958done
1959if $ac_cache_corrupted; then
1960 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1961echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1962 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1963echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1964 { (exit 1); exit 1; }; }
1965fi
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983ac_ext=c
1984ac_cpp='$CPP $CPPFLAGS'
1985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1987ac_compiler_gnu=$ac_cv_c_compiler_gnu
1988
1989
1990ac_aux_dir=
1991for ac_dir in config "$srcdir"/config; do
1992 if test -f "$ac_dir/install-sh"; then
1993 ac_aux_dir=$ac_dir
1994 ac_install_sh="$ac_aux_dir/install-sh -c"
1995 break
1996 elif test -f "$ac_dir/install.sh"; then
1997 ac_aux_dir=$ac_dir
1998 ac_install_sh="$ac_aux_dir/install.sh -c"
1999 break
2000 elif test -f "$ac_dir/shtool"; then
2001 ac_aux_dir=$ac_dir
2002 ac_install_sh="$ac_aux_dir/shtool install -c"
2003 break
2004 fi
2005done
2006if test -z "$ac_aux_dir"; then
2007 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2008echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2009 { (exit 1); exit 1; }; }
2010fi
2011
2012# These three variables are undocumented and unsupported,
2013# and are intended to be withdrawn in a future Autoconf release.
2014# They can cause serious problems if a builder's source tree is in a directory
2015# whose full name contains unusual characters.
2016ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2017ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2018ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2019
2020
2021
2022# versioning stuff
2023
2024
2025
2026
2027
2028
2029VERSION=0.0.8
2030
2031
2032
2033
2034LTVERSION="0:8:0"
2035
2036PACKAGE=libg3d
2037
2038am__api_version='1.10'
2039
2040# Find a good install program. We prefer a C program (faster),
2041# so one script is as good as another. But avoid the broken or
2042# incompatible versions:
2043# SysV /etc/install, /usr/sbin/install
2044# SunOS /usr/etc/install
2045# IRIX /sbin/install
2046# AIX /bin/install
2047# AmigaOS /C/install, which installs bootblocks on floppy discs
2048# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2049# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2050# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2051# OS/2's system install, which has a completely different semantic
2052# ./install, which can be erroneously created by make from ./install.sh.
2053{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2054echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2055if test -z "$INSTALL"; then
2056if test "${ac_cv_path_install+set}" = set; then
2057 echo $ECHO_N "(cached) $ECHO_C" >&6
2058else
2059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2060for as_dir in $PATH
2061do
2062 IFS=$as_save_IFS
2063 test -z "$as_dir" && as_dir=.
2064 # Account for people who put trailing slashes in PATH elements.
2065case $as_dir/ in
2066 ./ | .// | /cC/* | \
2067 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2068 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2069 /usr/ucb/* ) ;;
2070 *)
2071 # OSF1 and SCO ODT 3.0 have their own names for install.
2072 # Don't use installbsd from OSF since it installs stuff as root
2073 # by default.
2074 for ac_prog in ginstall scoinst install; do
2075 for ac_exec_ext in '' $ac_executable_extensions; do
2076 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2077 if test $ac_prog = install &&
2078 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2079 # AIX install. It has an incompatible calling convention.
2080 :
2081 elif test $ac_prog = install &&
2082 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2083 # program-specific install script used by HP pwplus--don't use.
2084 :
2085 else
2086 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2087 break 3
2088 fi
2089 fi
2090 done
2091 done
2092 ;;
2093esac
2094done
2095IFS=$as_save_IFS
2096
2097
2098fi
2099 if test "${ac_cv_path_install+set}" = set; then
2100 INSTALL=$ac_cv_path_install
2101 else
2102 # As a last resort, use the slow shell script. Don't cache a
2103 # value for INSTALL within a source directory, because that will
2104 # break other packages using the cache if that directory is
2105 # removed, or if the value is a relative name.
2106 INSTALL=$ac_install_sh
2107 fi
2108fi
2109{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2110echo "${ECHO_T}$INSTALL" >&6; }
2111
2112# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2113# It thinks the first close brace ends the variable substitution.
2114test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2115
2116test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2117
2118test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2119
2120{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2121echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2122# Just in case
2123sleep 1
2124echo timestamp > conftest.file
2125# Do `set' in a subshell so we don't clobber the current shell's
2126# arguments. Must try -L first in case configure is actually a
2127# symlink; some systems play weird games with the mod time of symlinks
2128# (eg FreeBSD returns the mod time of the symlink's containing
2129# directory).
2130if (
2131 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2132 if test "$*" = "X"; then
2133 # -L didn't work.
2134 set X `ls -t $srcdir/configure conftest.file`
2135 fi
2136 rm -f conftest.file
2137 if test "$*" != "X $srcdir/configure conftest.file" \
2138 && test "$*" != "X conftest.file $srcdir/configure"; then
2139
2140 # If neither matched, then we have a broken ls. This can happen
2141 # if, for instance, CONFIG_SHELL is bash and it inherits a
2142 # broken ls alias from the environment. This has actually
2143 # happened. Such a system could not be considered "sane".
2144 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2145alias in your environment" >&5
2146echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2147alias in your environment" >&2;}
2148 { (exit 1); exit 1; }; }
2149 fi
2150
2151 test "$2" = conftest.file
2152 )
2153then
2154 # Ok.
2155 :
2156else
2157 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2158Check your system clock" >&5
2159echo "$as_me: error: newly created file is older than distributed files!
2160Check your system clock" >&2;}
2161 { (exit 1); exit 1; }; }
2162fi
2163{ echo "$as_me:$LINENO: result: yes" >&5
2164echo "${ECHO_T}yes" >&6; }
2165test "$program_prefix" != NONE &&
2166 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2167# Use a double $ so make ignores it.
2168test "$program_suffix" != NONE &&
2169 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2170# Double any \ or $. echo might interpret backslashes.
2171# By default was `s,x,x', remove it if useless.
2172cat <<\_ACEOF >conftest.sed
2173s/[\\$]/&&/g;s/;s,x,x,$//
2174_ACEOF
2175program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2176rm -f conftest.sed
2177
2178# expand $ac_aux_dir to an absolute path
2179am_aux_dir=`cd $ac_aux_dir && pwd`
2180
2181test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2182# Use eval to expand $SHELL
2183if eval "$MISSING --run true"; then
2184 am_missing_run="$MISSING --run "
2185else
2186 am_missing_run=
2187 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2188echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2189fi
2190
2191{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2192echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2193if test -z "$MKDIR_P"; then
2194 if test "${ac_cv_path_mkdir+set}" = set; then
2195 echo $ECHO_N "(cached) $ECHO_C" >&6
2196else
2197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2198for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2199do
2200 IFS=$as_save_IFS
2201 test -z "$as_dir" && as_dir=.
2202 for ac_prog in mkdir gmkdir; do
2203 for ac_exec_ext in '' $ac_executable_extensions; do
2204 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2205 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2206 'mkdir (GNU coreutils) '* | \
2207 'mkdir (coreutils) '* | \
2208 'mkdir (fileutils) '4.1*)
2209 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2210 break 3;;
2211 esac
2212 done
2213 done
2214done
2215IFS=$as_save_IFS
2216
2217fi
2218
2219 if test "${ac_cv_path_mkdir+set}" = set; then
2220 MKDIR_P="$ac_cv_path_mkdir -p"
2221 else
2222 # As a last resort, use the slow shell script. Don't cache a
2223 # value for MKDIR_P within a source directory, because that will
2224 # break other packages using the cache if that directory is
2225 # removed, or if the value is a relative name.
2226 test -d ./--version && rmdir ./--version
2227 MKDIR_P="$ac_install_sh -d"
2228 fi
2229fi
2230{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2231echo "${ECHO_T}$MKDIR_P" >&6; }
2232
2233mkdir_p="$MKDIR_P"
2234case $mkdir_p in
2235 [\\/$]* | ?:[\\/]*) ;;
2236 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2237esac
2238
2239for ac_prog in gawk mawk nawk awk
2240do
2241 # Extract the first word of "$ac_prog", so it can be a program name with args.
2242set dummy $ac_prog; ac_word=$2
2243{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2245if test "${ac_cv_prog_AWK+set}" = set; then
2246 echo $ECHO_N "(cached) $ECHO_C" >&6
2247else
2248 if test -n "$AWK"; then
2249 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2250else
2251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2252for as_dir in $PATH
2253do
2254 IFS=$as_save_IFS
2255 test -z "$as_dir" && as_dir=.
2256 for ac_exec_ext in '' $ac_executable_extensions; do
2257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2258 ac_cv_prog_AWK="$ac_prog"
2259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2260 break 2
2261 fi
2262done
2263done
2264IFS=$as_save_IFS
2265
2266fi
2267fi
2268AWK=$ac_cv_prog_AWK
2269if test -n "$AWK"; then
2270 { echo "$as_me:$LINENO: result: $AWK" >&5
2271echo "${ECHO_T}$AWK" >&6; }
2272else
2273 { echo "$as_me:$LINENO: result: no" >&5
2274echo "${ECHO_T}no" >&6; }
2275fi
2276
2277
2278 test -n "$AWK" && break
2279done
2280
2281{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2282echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2283set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2284if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2285 echo $ECHO_N "(cached) $ECHO_C" >&6
2286else
2287 cat >conftest.make <<\_ACEOF
2288SHELL = /bin/sh
2289all:
2290 @echo '@@@%%%=$(MAKE)=@@@%%%'
2291_ACEOF
2292# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2293case `${MAKE-make} -f conftest.make 2>/dev/null` in
2294 *@@@%%%=?*=@@@%%%*)
2295 eval ac_cv_prog_make_${ac_make}_set=yes;;
2296 *)
2297 eval ac_cv_prog_make_${ac_make}_set=no;;
2298esac
2299rm -f conftest.make
2300fi
2301if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2302 { echo "$as_me:$LINENO: result: yes" >&5
2303echo "${ECHO_T}yes" >&6; }
2304 SET_MAKE=
2305else
2306 { echo "$as_me:$LINENO: result: no" >&5
2307echo "${ECHO_T}no" >&6; }
2308 SET_MAKE="MAKE=${MAKE-make}"
2309fi
2310
2311rm -rf .tst 2>/dev/null
2312mkdir .tst 2>/dev/null
2313if test -d .tst; then
2314 am__leading_dot=.
2315else
2316 am__leading_dot=_
2317fi
2318rmdir .tst 2>/dev/null
2319
2320if test "`cd $srcdir && pwd`" != "`pwd`"; then
2321 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2322 # is not polluted with repeated "-I."
2323 am__isrc=' -I$(srcdir)'
2324 # test to see if srcdir already configured
2325 if test -f $srcdir/config.status; then
2326 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2327echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2328 { (exit 1); exit 1; }; }
2329 fi
2330fi
2331
2332# test whether we have cygpath
2333if test -z "$CYGPATH_W"; then
2334 if (cygpath --version) >/dev/null 2>/dev/null; then
2335 CYGPATH_W='cygpath -w'
2336 else
2337 CYGPATH_W=echo
2338 fi
2339fi
2340
2341
2342# Define the identity of the package.
2343 PACKAGE=$PACKAGE
2344 VERSION=$VERSION
2345
2346
2347# Some tools Automake needs.
2348
2349ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2350
2351
2352AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2353
2354
2355AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2356
2357
2358AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2359
2360
2361MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2362
2363install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2364
2365# Installed binaries are usually stripped using `strip' when the user
2366# run `make install-strip'. However `strip' might not be the right
2367# tool to use in cross-compilation environments, therefore Automake
2368# will honor the `STRIP' environment variable to overrule this program.
2369if test "$cross_compiling" != no; then
2370 if test -n "$ac_tool_prefix"; then
2371 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2372set dummy ${ac_tool_prefix}strip; ac_word=$2
2373{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2374echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2375if test "${ac_cv_prog_STRIP+set}" = set; then
2376 echo $ECHO_N "(cached) $ECHO_C" >&6
2377else
2378 if test -n "$STRIP"; then
2379 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2380else
2381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2382for as_dir in $PATH
2383do
2384 IFS=$as_save_IFS
2385 test -z "$as_dir" && as_dir=.
2386 for ac_exec_ext in '' $ac_executable_extensions; do
2387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2388 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2390 break 2
2391 fi
2392done
2393done
2394IFS=$as_save_IFS
2395
2396fi
2397fi
2398STRIP=$ac_cv_prog_STRIP
2399if test -n "$STRIP"; then
2400 { echo "$as_me:$LINENO: result: $STRIP" >&5
2401echo "${ECHO_T}$STRIP" >&6; }
2402else
2403 { echo "$as_me:$LINENO: result: no" >&5
2404echo "${ECHO_T}no" >&6; }
2405fi
2406
2407
2408fi
2409if test -z "$ac_cv_prog_STRIP"; then
2410 ac_ct_STRIP=$STRIP
2411 # Extract the first word of "strip", so it can be a program name with args.
2412set dummy strip; ac_word=$2
2413{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2414echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2415if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2416 echo $ECHO_N "(cached) $ECHO_C" >&6
2417else
2418 if test -n "$ac_ct_STRIP"; then
2419 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2420else
2421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2422for as_dir in $PATH
2423do
2424 IFS=$as_save_IFS
2425 test -z "$as_dir" && as_dir=.
2426 for ac_exec_ext in '' $ac_executable_extensions; do
2427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2428 ac_cv_prog_ac_ct_STRIP="strip"
2429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2430 break 2
2431 fi
2432done
2433done
2434IFS=$as_save_IFS
2435
2436fi
2437fi
2438ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2439if test -n "$ac_ct_STRIP"; then
2440 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2441echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2442else
2443 { echo "$as_me:$LINENO: result: no" >&5
2444echo "${ECHO_T}no" >&6; }
2445fi
2446
2447 if test "x$ac_ct_STRIP" = x; then
2448 STRIP=":"
2449 else
2450 case $cross_compiling:$ac_tool_warned in
2451yes:)
2452{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2453whose name does not start with the host triplet. If you think this
2454configuration is useful to you, please write to autoconf@gnu.org." >&5
2455echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2456whose name does not start with the host triplet. If you think this
2457configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2458ac_tool_warned=yes ;;
2459esac
2460 STRIP=$ac_ct_STRIP
2461 fi
2462else
2463 STRIP="$ac_cv_prog_STRIP"
2464fi
2465
2466fi
2467INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2468
2469# We need awk for the "check" target. The system "awk" is bad on
2470# some platforms.
2471# Always define AMTAR for backward compatibility.
2472
2473AMTAR=${AMTAR-"${am_missing_run}tar"}
2474
2475am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2476
2477
2478
2479
2480
2481
2482
2483
2484ac_config_headers="$ac_config_headers include/g3d/config.h"
2485
2486
2487ac_ext=c
2488ac_cpp='$CPP $CPPFLAGS'
2489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2491ac_compiler_gnu=$ac_cv_c_compiler_gnu
2492if test -n "$ac_tool_prefix"; then
2493 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2494set dummy ${ac_tool_prefix}gcc; ac_word=$2
2495{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2497if test "${ac_cv_prog_CC+set}" = set; then
2498 echo $ECHO_N "(cached) $ECHO_C" >&6
2499else
2500 if test -n "$CC"; then
2501 ac_cv_prog_CC="$CC" # Let the user override the test.
2502else
2503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2504for as_dir in $PATH
2505do
2506 IFS=$as_save_IFS
2507 test -z "$as_dir" && as_dir=.
2508 for ac_exec_ext in '' $ac_executable_extensions; do
2509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2510 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2512 break 2
2513 fi
2514done
2515done
2516IFS=$as_save_IFS
2517
2518fi
2519fi
2520CC=$ac_cv_prog_CC
2521if test -n "$CC"; then
2522 { echo "$as_me:$LINENO: result: $CC" >&5
2523echo "${ECHO_T}$CC" >&6; }
2524else
2525 { echo "$as_me:$LINENO: result: no" >&5
2526echo "${ECHO_T}no" >&6; }
2527fi
2528
2529
2530fi
2531if test -z "$ac_cv_prog_CC"; then
2532 ac_ct_CC=$CC
2533 # Extract the first word of "gcc", so it can be a program name with args.
2534set dummy gcc; ac_word=$2
2535{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2537if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2538 echo $ECHO_N "(cached) $ECHO_C" >&6
2539else
2540 if test -n "$ac_ct_CC"; then
2541 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2542else
2543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544for as_dir in $PATH
2545do
2546 IFS=$as_save_IFS
2547 test -z "$as_dir" && as_dir=.
2548 for ac_exec_ext in '' $ac_executable_extensions; do
2549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2550 ac_cv_prog_ac_ct_CC="gcc"
2551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2552 break 2
2553 fi
2554done
2555done
2556IFS=$as_save_IFS
2557
2558fi
2559fi
2560ac_ct_CC=$ac_cv_prog_ac_ct_CC
2561if test -n "$ac_ct_CC"; then
2562 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2563echo "${ECHO_T}$ac_ct_CC" >&6; }
2564else
2565 { echo "$as_me:$LINENO: result: no" >&5
2566echo "${ECHO_T}no" >&6; }
2567fi
2568
2569 if test "x$ac_ct_CC" = x; then
2570 CC=""
2571 else
2572 case $cross_compiling:$ac_tool_warned in
2573yes:)
2574{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2575whose name does not start with the host triplet. If you think this
2576configuration is useful to you, please write to autoconf@gnu.org." >&5
2577echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2578whose name does not start with the host triplet. If you think this
2579configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2580ac_tool_warned=yes ;;
2581esac
2582 CC=$ac_ct_CC
2583 fi
2584else
2585 CC="$ac_cv_prog_CC"
2586fi
2587
2588if test -z "$CC"; then
2589 if test -n "$ac_tool_prefix"; then
2590 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2591set dummy ${ac_tool_prefix}cc; ac_word=$2
2592{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2594if test "${ac_cv_prog_CC+set}" = set; then
2595 echo $ECHO_N "(cached) $ECHO_C" >&6
2596else
2597 if test -n "$CC"; then
2598 ac_cv_prog_CC="$CC" # Let the user override the test.
2599else
2600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2601for as_dir in $PATH
2602do
2603 IFS=$as_save_IFS
2604 test -z "$as_dir" && as_dir=.
2605 for ac_exec_ext in '' $ac_executable_extensions; do
2606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2607 ac_cv_prog_CC="${ac_tool_prefix}cc"
2608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2609 break 2
2610 fi
2611done
2612done
2613IFS=$as_save_IFS
2614
2615fi
2616fi
2617CC=$ac_cv_prog_CC
2618if test -n "$CC"; then
2619 { echo "$as_me:$LINENO: result: $CC" >&5
2620echo "${ECHO_T}$CC" >&6; }
2621else
2622 { echo "$as_me:$LINENO: result: no" >&5
2623echo "${ECHO_T}no" >&6; }
2624fi
2625
2626
2627 fi
2628fi
2629if test -z "$CC"; then
2630 # Extract the first word of "cc", so it can be a program name with args.
2631set dummy cc; ac_word=$2
2632{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2634if test "${ac_cv_prog_CC+set}" = set; then
2635 echo $ECHO_N "(cached) $ECHO_C" >&6
2636else
2637 if test -n "$CC"; then
2638 ac_cv_prog_CC="$CC" # Let the user override the test.
2639else
2640 ac_prog_rejected=no
2641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2642for as_dir in $PATH
2643do
2644 IFS=$as_save_IFS
2645 test -z "$as_dir" && as_dir=.
2646 for ac_exec_ext in '' $ac_executable_extensions; do
2647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2648 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2649 ac_prog_rejected=yes
2650 continue
2651 fi
2652 ac_cv_prog_CC="cc"
2653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2654 break 2
2655 fi
2656done
2657done
2658IFS=$as_save_IFS
2659
2660if test $ac_prog_rejected = yes; then
2661 # We found a bogon in the path, so make sure we never use it.
2662 set dummy $ac_cv_prog_CC
2663 shift
2664 if test $# != 0; then
2665 # We chose a different compiler from the bogus one.
2666 # However, it has the same basename, so the bogon will be chosen
2667 # first if we set CC to just the basename; use the full file name.
2668 shift
2669 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2670 fi
2671fi
2672fi
2673fi
2674CC=$ac_cv_prog_CC
2675if test -n "$CC"; then
2676 { echo "$as_me:$LINENO: result: $CC" >&5
2677echo "${ECHO_T}$CC" >&6; }
2678else
2679 { echo "$as_me:$LINENO: result: no" >&5
2680echo "${ECHO_T}no" >&6; }
2681fi
2682
2683
2684fi
2685if test -z "$CC"; then
2686 if test -n "$ac_tool_prefix"; then
2687 for ac_prog in cl.exe
2688 do
2689 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2690set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2691{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2692echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2693if test "${ac_cv_prog_CC+set}" = set; then
2694 echo $ECHO_N "(cached) $ECHO_C" >&6
2695else
2696 if test -n "$CC"; then
2697 ac_cv_prog_CC="$CC" # Let the user override the test.
2698else
2699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2700for as_dir in $PATH
2701do
2702 IFS=$as_save_IFS
2703 test -z "$as_dir" && as_dir=.
2704 for ac_exec_ext in '' $ac_executable_extensions; do
2705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2706 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2708 break 2
2709 fi
2710done
2711done
2712IFS=$as_save_IFS
2713
2714fi
2715fi
2716CC=$ac_cv_prog_CC
2717if test -n "$CC"; then
2718 { echo "$as_me:$LINENO: result: $CC" >&5
2719echo "${ECHO_T}$CC" >&6; }
2720else
2721 { echo "$as_me:$LINENO: result: no" >&5
2722echo "${ECHO_T}no" >&6; }
2723fi
2724
2725
2726 test -n "$CC" && break
2727 done
2728fi
2729if test -z "$CC"; then
2730 ac_ct_CC=$CC
2731 for ac_prog in cl.exe
2732do
2733 # Extract the first word of "$ac_prog", so it can be a program name with args.
2734set dummy $ac_prog; ac_word=$2
2735{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2737if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2738 echo $ECHO_N "(cached) $ECHO_C" >&6
2739else
2740 if test -n "$ac_ct_CC"; then
2741 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2742else
2743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744for as_dir in $PATH
2745do
2746 IFS=$as_save_IFS
2747 test -z "$as_dir" && as_dir=.
2748 for ac_exec_ext in '' $ac_executable_extensions; do
2749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2750 ac_cv_prog_ac_ct_CC="$ac_prog"
2751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2752 break 2
2753 fi
2754done
2755done
2756IFS=$as_save_IFS
2757
2758fi
2759fi
2760ac_ct_CC=$ac_cv_prog_ac_ct_CC
2761if test -n "$ac_ct_CC"; then
2762 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2763echo "${ECHO_T}$ac_ct_CC" >&6; }
2764else
2765 { echo "$as_me:$LINENO: result: no" >&5
2766echo "${ECHO_T}no" >&6; }
2767fi
2768
2769
2770 test -n "$ac_ct_CC" && break
2771done
2772
2773 if test "x$ac_ct_CC" = x; then
2774 CC=""
2775 else
2776 case $cross_compiling:$ac_tool_warned in
2777yes:)
2778{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2779whose name does not start with the host triplet. If you think this
2780configuration is useful to you, please write to autoconf@gnu.org." >&5
2781echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2782whose name does not start with the host triplet. If you think this
2783configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2784ac_tool_warned=yes ;;
2785esac
2786 CC=$ac_ct_CC
2787 fi
2788fi
2789
2790fi
2791
2792
2793test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2794See \`config.log' for more details." >&5
2795echo "$as_me: error: no acceptable C compiler found in \$PATH
2796See \`config.log' for more details." >&2;}
2797 { (exit 1); exit 1; }; }
2798
2799# Provide some information about the compiler.
2800echo "$as_me:$LINENO: checking for C compiler version" >&5
2801ac_compiler=`set X $ac_compile; echo $2`
2802{ (ac_try="$ac_compiler --version >&5"
2803case "(($ac_try" in
2804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2805 *) ac_try_echo=$ac_try;;
2806esac
2807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2808 (eval "$ac_compiler --version >&5") 2>&5
2809 ac_status=$?
2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 (exit $ac_status); }
2812{ (ac_try="$ac_compiler -v >&5"
2813case "(($ac_try" in
2814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2815 *) ac_try_echo=$ac_try;;
2816esac
2817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2818 (eval "$ac_compiler -v >&5") 2>&5
2819 ac_status=$?
2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821 (exit $ac_status); }
2822{ (ac_try="$ac_compiler -V >&5"
2823case "(($ac_try" in
2824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2825 *) ac_try_echo=$ac_try;;
2826esac
2827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2828 (eval "$ac_compiler -V >&5") 2>&5
2829 ac_status=$?
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); }
2832
2833cat >conftest.$ac_ext <<_ACEOF
2834/* confdefs.h. */
2835_ACEOF
2836cat confdefs.h >>conftest.$ac_ext
2837cat >>conftest.$ac_ext <<_ACEOF
2838/* end confdefs.h. */
2839
2840int
2841main ()
2842{
2843
2844 ;
2845 return 0;
2846}
2847_ACEOF
2848ac_clean_files_save=$ac_clean_files
2849ac_clean_files="$ac_clean_files a.out a.exe b.out"
2850# Try to create an executable without -o first, disregard a.out.
2851# It will help us diagnose broken compilers, and finding out an intuition
2852# of exeext.
2853{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2854echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2855ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2856#
2857# List of possible output files, starting from the most likely.
2858# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2859# only as a last resort. b.out is created by i960 compilers.
2860ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2861#
2862# The IRIX 6 linker writes into existing files which may not be
2863# executable, retaining their permissions. Remove them first so a
2864# subsequent execution test works.
2865ac_rmfiles=
2866for ac_file in $ac_files
2867do
2868 case $ac_file in
2869 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2870 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2871 esac
2872done
2873rm -f $ac_rmfiles
2874
2875if { (ac_try="$ac_link_default"
2876case "(($ac_try" in
2877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2878 *) ac_try_echo=$ac_try;;
2879esac
2880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2881 (eval "$ac_link_default") 2>&5
2882 ac_status=$?
2883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); }; then
2885 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2886# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2887# in a Makefile. We should not override ac_cv_exeext if it was cached,
2888# so that the user can short-circuit this test for compilers unknown to
2889# Autoconf.
2890for ac_file in $ac_files ''
2891do
2892 test -f "$ac_file" || continue
2893 case $ac_file in
2894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2895 ;;
2896 [ab].out )
2897 # We found the default executable, but exeext='' is most
2898 # certainly right.
2899 break;;
2900 *.* )
2901 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2902 then :; else
2903 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2904 fi
2905 # We set ac_cv_exeext here because the later test for it is not
2906 # safe: cross compilers may not add the suffix if given an `-o'
2907 # argument, so we may need to know it at that point already.
2908 # Even if this section looks crufty: it has the advantage of
2909 # actually working.
2910 break;;
2911 * )
2912 break;;
2913 esac
2914done
2915test "$ac_cv_exeext" = no && ac_cv_exeext=
2916
2917else
2918 ac_file=''
2919fi
2920
2921{ echo "$as_me:$LINENO: result: $ac_file" >&5
2922echo "${ECHO_T}$ac_file" >&6; }
2923if test -z "$ac_file"; then
2924 echo "$as_me: failed program was:" >&5
2925sed 's/^/| /' conftest.$ac_ext >&5
2926
2927{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2928See \`config.log' for more details." >&5
2929echo "$as_me: error: C compiler cannot create executables
2930See \`config.log' for more details." >&2;}
2931 { (exit 77); exit 77; }; }
2932fi
2933
2934ac_exeext=$ac_cv_exeext
2935
2936# Check that the compiler produces executables we can run. If not, either
2937# the compiler is broken, or we cross compile.
2938{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2939echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2940# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2941# If not cross compiling, check that we can run a simple program.
2942if test "$cross_compiling" != yes; then
2943 if { ac_try='./$ac_file'
2944 { (case "(($ac_try" in
2945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2946 *) ac_try_echo=$ac_try;;
2947esac
2948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2949 (eval "$ac_try") 2>&5
2950 ac_status=$?
2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); }; }; then
2953 cross_compiling=no
2954 else
2955 if test "$cross_compiling" = maybe; then
2956 cross_compiling=yes
2957 else
2958 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2959If you meant to cross compile, use \`--host'.
2960See \`config.log' for more details." >&5
2961echo "$as_me: error: cannot run C compiled programs.
2962If you meant to cross compile, use \`--host'.
2963See \`config.log' for more details." >&2;}
2964 { (exit 1); exit 1; }; }
2965 fi
2966 fi
2967fi
2968{ echo "$as_me:$LINENO: result: yes" >&5
2969echo "${ECHO_T}yes" >&6; }
2970
2971rm -f a.out a.exe conftest$ac_cv_exeext b.out
2972ac_clean_files=$ac_clean_files_save
2973# Check that the compiler produces executables we can run. If not, either
2974# the compiler is broken, or we cross compile.
2975{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2976echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2977{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2978echo "${ECHO_T}$cross_compiling" >&6; }
2979
2980{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2981echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2982if { (ac_try="$ac_link"
2983case "(($ac_try" in
2984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985 *) ac_try_echo=$ac_try;;
2986esac
2987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2988 (eval "$ac_link") 2>&5
2989 ac_status=$?
2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); }; then
2992 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2993# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2994# work properly (i.e., refer to `conftest.exe'), while it won't with
2995# `rm'.
2996for ac_file in conftest.exe conftest conftest.*; do
2997 test -f "$ac_file" || continue
2998 case $ac_file in
2999 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3000 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3001 break;;
3002 * ) break;;
3003 esac
3004done
3005else
3006 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3007See \`config.log' for more details." >&5
3008echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3009See \`config.log' for more details." >&2;}
3010 { (exit 1); exit 1; }; }
3011fi
3012
3013rm -f conftest$ac_cv_exeext
3014{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3015echo "${ECHO_T}$ac_cv_exeext" >&6; }
3016
3017rm -f conftest.$ac_ext
3018EXEEXT=$ac_cv_exeext
3019ac_exeext=$EXEEXT
3020{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3021echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3022if test "${ac_cv_objext+set}" = set; then
3023 echo $ECHO_N "(cached) $ECHO_C" >&6
3024else
3025 cat >conftest.$ac_ext <<_ACEOF
3026/* confdefs.h. */
3027_ACEOF
3028cat confdefs.h >>conftest.$ac_ext
3029cat >>conftest.$ac_ext <<_ACEOF
3030/* end confdefs.h. */
3031
3032int
3033main ()
3034{
3035
3036 ;
3037 return 0;
3038}
3039_ACEOF
3040rm -f conftest.o conftest.obj
3041if { (ac_try="$ac_compile"
3042case "(($ac_try" in
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3045esac
3046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047 (eval "$ac_compile") 2>&5
3048 ac_status=$?
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }; then
3051 for ac_file in conftest.o conftest.obj conftest.*; do
3052 test -f "$ac_file" || continue;
3053 case $ac_file in
3054 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3055 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3056 break;;
3057 esac
3058done
3059else
3060 echo "$as_me: failed program was:" >&5
3061sed 's/^/| /' conftest.$ac_ext >&5
3062
3063{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3064See \`config.log' for more details." >&5
3065echo "$as_me: error: cannot compute suffix of object files: cannot compile
3066See \`config.log' for more details." >&2;}
3067 { (exit 1); exit 1; }; }
3068fi
3069
3070rm -f conftest.$ac_cv_objext conftest.$ac_ext
3071fi
3072{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3073echo "${ECHO_T}$ac_cv_objext" >&6; }
3074OBJEXT=$ac_cv_objext
3075ac_objext=$OBJEXT
3076{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3077echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3078if test "${ac_cv_c_compiler_gnu+set}" = set; then
3079 echo $ECHO_N "(cached) $ECHO_C" >&6
3080else
3081 cat >conftest.$ac_ext <<_ACEOF
3082/* confdefs.h. */
3083_ACEOF
3084cat confdefs.h >>conftest.$ac_ext
3085cat >>conftest.$ac_ext <<_ACEOF
3086/* end confdefs.h. */
3087
3088int
3089main ()
3090{
3091#ifndef __GNUC__
3092 choke me
3093#endif
3094
3095 ;
3096 return 0;
3097}
3098_ACEOF
3099rm -f conftest.$ac_objext
3100if { (ac_try="$ac_compile"
3101case "(($ac_try" in
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3104esac
3105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106 (eval "$ac_compile") 2>conftest.er1
3107 ac_status=$?
3108 grep -v '^ *+' conftest.er1 >conftest.err
3109 rm -f conftest.er1
3110 cat conftest.err >&5
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); } && {
3113 test -z "$ac_c_werror_flag" ||
3114 test ! -s conftest.err
3115 } && test -s conftest.$ac_objext; then
3116 ac_compiler_gnu=yes
3117else
3118 echo "$as_me: failed program was:" >&5
3119sed 's/^/| /' conftest.$ac_ext >&5
3120
3121 ac_compiler_gnu=no
3122fi
3123
3124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3125ac_cv_c_compiler_gnu=$ac_compiler_gnu
3126
3127fi
3128{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3129echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3130GCC=`test $ac_compiler_gnu = yes && echo yes`
3131ac_test_CFLAGS=${CFLAGS+set}
3132ac_save_CFLAGS=$CFLAGS
3133{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3134echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3135if test "${ac_cv_prog_cc_g+set}" = set; then
3136 echo $ECHO_N "(cached) $ECHO_C" >&6
3137else
3138 ac_save_c_werror_flag=$ac_c_werror_flag
3139 ac_c_werror_flag=yes
3140 ac_cv_prog_cc_g=no
3141 CFLAGS="-g"
3142 cat >conftest.$ac_ext <<_ACEOF
3143/* confdefs.h. */
3144_ACEOF
3145cat confdefs.h >>conftest.$ac_ext
3146cat >>conftest.$ac_ext <<_ACEOF
3147/* end confdefs.h. */
3148
3149int
3150main ()
3151{
3152
3153 ;
3154 return 0;
3155}
3156_ACEOF
3157rm -f conftest.$ac_objext
3158if { (ac_try="$ac_compile"
3159case "(($ac_try" in
3160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161 *) ac_try_echo=$ac_try;;
3162esac
3163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3164 (eval "$ac_compile") 2>conftest.er1
3165 ac_status=$?
3166 grep -v '^ *+' conftest.er1 >conftest.err
3167 rm -f conftest.er1
3168 cat conftest.err >&5
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); } && {
3171 test -z "$ac_c_werror_flag" ||
3172 test ! -s conftest.err
3173 } && test -s conftest.$ac_objext; then
3174 ac_cv_prog_cc_g=yes
3175else
3176 echo "$as_me: failed program was:" >&5
3177sed 's/^/| /' conftest.$ac_ext >&5
3178
3179 CFLAGS=""
3180 cat >conftest.$ac_ext <<_ACEOF
3181/* confdefs.h. */
3182_ACEOF
3183cat confdefs.h >>conftest.$ac_ext
3184cat >>conftest.$ac_ext <<_ACEOF
3185/* end confdefs.h. */
3186
3187int
3188main ()
3189{
3190
3191 ;
3192 return 0;
3193}
3194_ACEOF
3195rm -f conftest.$ac_objext
3196if { (ac_try="$ac_compile"
3197case "(($ac_try" in
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3200esac
3201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3202 (eval "$ac_compile") 2>conftest.er1
3203 ac_status=$?
3204 grep -v '^ *+' conftest.er1 >conftest.err
3205 rm -f conftest.er1
3206 cat conftest.err >&5
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); } && {
3209 test -z "$ac_c_werror_flag" ||
3210 test ! -s conftest.err
3211 } && test -s conftest.$ac_objext; then
3212 :
3213else
3214 echo "$as_me: failed program was:" >&5
3215sed 's/^/| /' conftest.$ac_ext >&5
3216
3217 ac_c_werror_flag=$ac_save_c_werror_flag
3218 CFLAGS="-g"
3219 cat >conftest.$ac_ext <<_ACEOF
3220/* confdefs.h. */
3221_ACEOF
3222cat confdefs.h >>conftest.$ac_ext
3223cat >>conftest.$ac_ext <<_ACEOF
3224/* end confdefs.h. */
3225
3226int
3227main ()
3228{
3229
3230 ;
3231 return 0;
3232}
3233_ACEOF
3234rm -f conftest.$ac_objext
3235if { (ac_try="$ac_compile"
3236case "(($ac_try" in
3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238 *) ac_try_echo=$ac_try;;
3239esac
3240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3241 (eval "$ac_compile") 2>conftest.er1
3242 ac_status=$?
3243 grep -v '^ *+' conftest.er1 >conftest.err
3244 rm -f conftest.er1
3245 cat conftest.err >&5
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); } && {
3248 test -z "$ac_c_werror_flag" ||
3249 test ! -s conftest.err
3250 } && test -s conftest.$ac_objext; then
3251 ac_cv_prog_cc_g=yes
3252else
3253 echo "$as_me: failed program was:" >&5
3254sed 's/^/| /' conftest.$ac_ext >&5
3255
3256
3257fi
3258
3259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3260fi
3261
3262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3263fi
3264
3265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3266 ac_c_werror_flag=$ac_save_c_werror_flag
3267fi
3268{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3269echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3270if test "$ac_test_CFLAGS" = set; then
3271 CFLAGS=$ac_save_CFLAGS
3272elif test $ac_cv_prog_cc_g = yes; then
3273 if test "$GCC" = yes; then
3274 CFLAGS="-g -O2"
3275 else
3276 CFLAGS="-g"
3277 fi
3278else
3279 if test "$GCC" = yes; then
3280 CFLAGS="-O2"
3281 else
3282 CFLAGS=
3283 fi
3284fi
3285{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3286echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3287if test "${ac_cv_prog_cc_c89+set}" = set; then
3288 echo $ECHO_N "(cached) $ECHO_C" >&6
3289else
3290 ac_cv_prog_cc_c89=no
3291ac_save_CC=$CC
3292cat >conftest.$ac_ext <<_ACEOF
3293/* confdefs.h. */
3294_ACEOF
3295cat confdefs.h >>conftest.$ac_ext
3296cat >>conftest.$ac_ext <<_ACEOF
3297/* end confdefs.h. */
3298#include <stdarg.h>
3299#include <stdio.h>
3300#include <sys/types.h>
3301#include <sys/stat.h>
3302/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3303struct buf { int x; };
3304FILE * (*rcsopen) (struct buf *, struct stat *, int);
3305static char *e (p, i)
3306 char **p;
3307 int i;
3308{
3309 return p[i];
3310}
3311static char *f (char * (*g) (char **, int), char **p, ...)
3312{
3313 char *s;
3314 va_list v;
3315 va_start (v,p);
3316 s = g (p, va_arg (v,int));
3317 va_end (v);
3318 return s;
3319}
3320
3321/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3322 function prototypes and stuff, but not '\xHH' hex character constants.
3323 These don't provoke an error unfortunately, instead are silently treated
3324 as 'x'. The following induces an error, until -std is added to get
3325 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3326 array size at least. It's necessary to write '\x00'==0 to get something
3327 that's true only with -std. */
3328int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3329
3330/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3331 inside strings and character constants. */
3332#define FOO(x) 'x'
3333int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3334
3335int test (int i, double x);
3336struct s1 {int (*f) (int a);};
3337struct s2 {int (*f) (double a);};
3338int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3339int argc;
3340char **argv;
3341int
3342main ()
3343{
3344return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3345 ;
3346 return 0;
3347}
3348_ACEOF
3349for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3350 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3351do
3352 CC="$ac_save_CC $ac_arg"
3353 rm -f conftest.$ac_objext
3354if { (ac_try="$ac_compile"
3355case "(($ac_try" in
3356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357 *) ac_try_echo=$ac_try;;
3358esac
3359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3360 (eval "$ac_compile") 2>conftest.er1
3361 ac_status=$?
3362 grep -v '^ *+' conftest.er1 >conftest.err
3363 rm -f conftest.er1
3364 cat conftest.err >&5
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); } && {
3367 test -z "$ac_c_werror_flag" ||
3368 test ! -s conftest.err
3369 } && test -s conftest.$ac_objext; then
3370 ac_cv_prog_cc_c89=$ac_arg
3371else
3372 echo "$as_me: failed program was:" >&5
3373sed 's/^/| /' conftest.$ac_ext >&5
3374
3375
3376fi
3377
3378rm -f core conftest.err conftest.$ac_objext
3379 test "x$ac_cv_prog_cc_c89" != "xno" && break
3380done
3381rm -f conftest.$ac_ext
3382CC=$ac_save_CC
3383
3384fi
3385# AC_CACHE_VAL
3386case "x$ac_cv_prog_cc_c89" in
3387 x)
3388 { echo "$as_me:$LINENO: result: none needed" >&5
3389echo "${ECHO_T}none needed" >&6; } ;;
3390 xno)
3391 { echo "$as_me:$LINENO: result: unsupported" >&5
3392echo "${ECHO_T}unsupported" >&6; } ;;
3393 *)
3394 CC="$CC $ac_cv_prog_cc_c89"
3395 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3396echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3397esac
3398
3399
3400ac_ext=c
3401ac_cpp='$CPP $CPPFLAGS'
3402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3404ac_compiler_gnu=$ac_cv_c_compiler_gnu
3405DEPDIR="${am__leading_dot}deps"
3406
3407ac_config_commands="$ac_config_commands depfiles"
3408
3409
3410am_make=${MAKE-make}
3411cat > confinc << 'END'
3412am__doit:
3413 @echo done
3414.PHONY: am__doit
3415END
3416# If we don't find an include directive, just comment out the code.
3417{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3418echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3419am__include="#"
3420am__quote=
3421_am_result=none
3422# First try GNU make style include.
3423echo "include confinc" > confmf
3424# We grep out `Entering directory' and `Leaving directory'
3425# messages which can occur if `w' ends up in MAKEFLAGS.
3426# In particular we don't look at `^make:' because GNU make might
3427# be invoked under some other name (usually "gmake"), in which
3428# case it prints its new name instead of `make'.
3429if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3430 am__include=include
3431 am__quote=
3432 _am_result=GNU
3433fi
3434# Now try BSD make style include.
3435if test "$am__include" = "#"; then
3436 echo '.include "confinc"' > confmf
3437 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3438 am__include=.include
3439 am__quote="\""
3440 _am_result=BSD
3441 fi
3442fi
3443
3444
3445{ echo "$as_me:$LINENO: result: $_am_result" >&5
3446echo "${ECHO_T}$_am_result" >&6; }
3447rm -f confinc confmf
3448
3449# Check whether --enable-dependency-tracking was given.
3450if test "${enable_dependency_tracking+set}" = set; then
3451 enableval=$enable_dependency_tracking;
3452fi
3453
3454if test "x$enable_dependency_tracking" != xno; then
3455 am_depcomp="$ac_aux_dir/depcomp"
3456 AMDEPBACKSLASH='\'
3457fi
3458 if test "x$enable_dependency_tracking" != xno; then
3459 AMDEP_TRUE=
3460 AMDEP_FALSE='#'
3461else
3462 AMDEP_TRUE='#'
3463 AMDEP_FALSE=
3464fi
3465
3466
3467
3468depcc="$CC" am_compiler_list=
3469
3470{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3471echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3472if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3473 echo $ECHO_N "(cached) $ECHO_C" >&6
3474else
3475 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3476 # We make a subdir and do the tests there. Otherwise we can end up
3477 # making bogus files that we don't know about and never remove. For
3478 # instance it was reported that on HP-UX the gcc test will end up
3479 # making a dummy file named `D' -- because `-MD' means `put the output
3480 # in D'.
3481 mkdir conftest.dir
3482 # Copy depcomp to subdir because otherwise we won't find it if we're
3483 # using a relative directory.
3484 cp "$am_depcomp" conftest.dir
3485 cd conftest.dir
3486 # We will build objects and dependencies in a subdirectory because
3487 # it helps to detect inapplicable dependency modes. For instance
3488 # both Tru64's cc and ICC support -MD to output dependencies as a
3489 # side effect of compilation, but ICC will put the dependencies in
3490 # the current directory while Tru64 will put them in the object
3491 # directory.
3492 mkdir sub
3493
3494 am_cv_CC_dependencies_compiler_type=none
3495 if test "$am_compiler_list" = ""; then
3496 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3497 fi
3498 for depmode in $am_compiler_list; do
3499 # Setup a source with many dependencies, because some compilers
3500 # like to wrap large dependency lists on column 80 (with \), and
3501 # we should not choose a depcomp mode which is confused by this.
3502 #
3503 # We need to recreate these files for each test, as the compiler may
3504 # overwrite some of them when testing with obscure command lines.
3505 # This happens at least with the AIX C compiler.
3506 : > sub/conftest.c
3507 for i in 1 2 3 4 5 6; do
3508 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3509 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3510 # Solaris 8's {/usr,}/bin/sh.
3511 touch sub/conftst$i.h
3512 done
3513 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3514
3515 case $depmode in
3516 nosideeffect)
3517 # after this tag, mechanisms are not by side-effect, so they'll
3518 # only be used when explicitly requested
3519 if test "x$enable_dependency_tracking" = xyes; then
3520 continue
3521 else
3522 break
3523 fi
3524 ;;
3525 none) break ;;
3526 esac
3527 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3528 # mode. It turns out that the SunPro C++ compiler does not properly
3529 # handle `-M -o', and we need to detect this.
3530 if depmode=$depmode \
3531 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3532 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3533 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3534 >/dev/null 2>conftest.err &&
3535 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3536 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3537 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3538 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3539 # icc doesn't choke on unknown options, it will just issue warnings
3540 # or remarks (even with -Werror). So we grep stderr for any message
3541 # that says an option was ignored or not supported.
3542 # When given -MP, icc 7.0 and 7.1 complain thusly:
3543 # icc: Command line warning: ignoring option '-M'; no argument required
3544 # The diagnosis changed in icc 8.0:
3545 # icc: Command line remark: option '-MP' not supported
3546 if (grep 'ignoring option' conftest.err ||
3547 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3548 am_cv_CC_dependencies_compiler_type=$depmode
3549 break
3550 fi
3551 fi
3552 done
3553
3554 cd ..
3555 rm -rf conftest.dir
3556else
3557 am_cv_CC_dependencies_compiler_type=none
3558fi
3559
3560fi
3561{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3562echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3563CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3564
3565 if
3566 test "x$enable_dependency_tracking" != xno \
3567 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3568 am__fastdepCC_TRUE=
3569 am__fastdepCC_FALSE='#'
3570else
3571 am__fastdepCC_TRUE='#'
3572 am__fastdepCC_FALSE=
3573fi
3574
3575
3576
3577for ac_prog in flex lex
3578do
3579 # Extract the first word of "$ac_prog", so it can be a program name with args.
3580set dummy $ac_prog; ac_word=$2
3581{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3582echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3583if test "${ac_cv_prog_LEX+set}" = set; then
3584 echo $ECHO_N "(cached) $ECHO_C" >&6
3585else
3586 if test -n "$LEX"; then
3587 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3588else
3589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590for as_dir in $PATH
3591do
3592 IFS=$as_save_IFS
3593 test -z "$as_dir" && as_dir=.
3594 for ac_exec_ext in '' $ac_executable_extensions; do
3595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3596 ac_cv_prog_LEX="$ac_prog"
3597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3598 break 2
3599 fi
3600done
3601done
3602IFS=$as_save_IFS
3603
3604fi
3605fi
3606LEX=$ac_cv_prog_LEX
3607if test -n "$LEX"; then
3608 { echo "$as_me:$LINENO: result: $LEX" >&5
3609echo "${ECHO_T}$LEX" >&6; }
3610else
3611 { echo "$as_me:$LINENO: result: no" >&5
3612echo "${ECHO_T}no" >&6; }
3613fi
3614
3615
3616 test -n "$LEX" && break
3617done
3618test -n "$LEX" || LEX=":"
3619
3620if test "x$LEX" != "x:"; then
3621 cat >conftest.l <<_ACEOF
3622%%
3623a { ECHO; }
3624b { REJECT; }
3625c { yymore (); }
3626d { yyless (1); }
3627e { yyless (input () != 0); }
3628f { unput (yytext[0]); }
3629. { BEGIN INITIAL; }
3630%%
3631#ifdef YYTEXT_POINTER
3632extern char *yytext;
3633#endif
3634int
3635main (void)
3636{
3637 return ! yylex () + ! yywrap ();
3638}
3639_ACEOF
3640{ (ac_try="$LEX conftest.l"
3641case "(($ac_try" in
3642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3643 *) ac_try_echo=$ac_try;;
3644esac
3645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3646 (eval "$LEX conftest.l") 2>&5
3647 ac_status=$?
3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); }
3650{ echo "$as_me:$LINENO: checking lex output file root" >&5
3651echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
3652if test "${ac_cv_prog_lex_root+set}" = set; then
3653 echo $ECHO_N "(cached) $ECHO_C" >&6
3654else
3655
3656if test -f lex.yy.c; then
3657 ac_cv_prog_lex_root=lex.yy
3658elif test -f lexyy.c; then
3659 ac_cv_prog_lex_root=lexyy
3660else
3661 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3662echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3663 { (exit 1); exit 1; }; }
3664fi
3665fi
3666{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3667echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
3668LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3669
3670if test -z "${LEXLIB+set}"; then
3671 { echo "$as_me:$LINENO: checking lex library" >&5
3672echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
3673if test "${ac_cv_lib_lex+set}" = set; then
3674 echo $ECHO_N "(cached) $ECHO_C" >&6
3675else
3676
3677 ac_save_LIBS=$LIBS
3678 ac_cv_lib_lex='none needed'
3679 for ac_lib in '' -lfl -ll; do
3680 LIBS="$ac_lib $ac_save_LIBS"
3681 cat >conftest.$ac_ext <<_ACEOF
3682`cat $LEX_OUTPUT_ROOT.c`
3683_ACEOF
3684rm -f conftest.$ac_objext conftest$ac_exeext
3685if { (ac_try="$ac_link"
3686case "(($ac_try" in
3687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3688 *) ac_try_echo=$ac_try;;
3689esac
3690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3691 (eval "$ac_link") 2>conftest.er1
3692 ac_status=$?
3693 grep -v '^ *+' conftest.er1 >conftest.err
3694 rm -f conftest.er1
3695 cat conftest.err >&5
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); } && {
3698 test -z "$ac_c_werror_flag" ||
3699 test ! -s conftest.err
3700 } && test -s conftest$ac_exeext &&
3701 $as_test_x conftest$ac_exeext; then
3702 ac_cv_lib_lex=$ac_lib
3703else
3704 echo "$as_me: failed program was:" >&5
3705sed 's/^/| /' conftest.$ac_ext >&5
3706
3707
3708fi
3709
3710rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3711 conftest$ac_exeext conftest.$ac_ext
3712 test "$ac_cv_lib_lex" != 'none needed' && break
3713 done
3714 LIBS=$ac_save_LIBS
3715
3716fi
3717{ echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
3718echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
3719 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
3720fi
3721
3722
3723{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3724echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
3725if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3726 echo $ECHO_N "(cached) $ECHO_C" >&6
3727else
3728 # POSIX says lex can declare yytext either as a pointer or an array; the
3729# default is implementation-dependent. Figure out which it is, since
3730# not all implementations provide the %pointer and %array declarations.
3731ac_cv_prog_lex_yytext_pointer=no
3732ac_save_LIBS=$LIBS
3733LIBS="$LEXLIB $ac_save_LIBS"
3734cat >conftest.$ac_ext <<_ACEOF
3735#define YYTEXT_POINTER 1
3736`cat $LEX_OUTPUT_ROOT.c`
3737_ACEOF
3738rm -f conftest.$ac_objext conftest$ac_exeext
3739if { (ac_try="$ac_link"
3740case "(($ac_try" in
3741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3742 *) ac_try_echo=$ac_try;;
3743esac
3744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3745 (eval "$ac_link") 2>conftest.er1
3746 ac_status=$?
3747 grep -v '^ *+' conftest.er1 >conftest.err
3748 rm -f conftest.er1
3749 cat conftest.err >&5
3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751 (exit $ac_status); } && {
3752 test -z "$ac_c_werror_flag" ||
3753 test ! -s conftest.err
3754 } && test -s conftest$ac_exeext &&
3755 $as_test_x conftest$ac_exeext; then
3756 ac_cv_prog_lex_yytext_pointer=yes
3757else
3758 echo "$as_me: failed program was:" >&5
3759sed 's/^/| /' conftest.$ac_ext >&5
3760
3761
3762fi
3763
3764rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3765 conftest$ac_exeext conftest.$ac_ext
3766LIBS=$ac_save_LIBS
3767
3768fi
3769{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3770echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
3771if test $ac_cv_prog_lex_yytext_pointer = yes; then
3772
3773cat >>confdefs.h <<\_ACEOF
3774#define YYTEXT_POINTER 1
3775_ACEOF
3776
3777fi
3778rm -f conftest.l $LEX_OUTPUT_ROOT.c
3779
3780fi
3781if test "$LEX" = :; then
3782 LEX=${am_missing_run}flex
3783fi
3784ac_ext=c
3785ac_cpp='$CPP $CPPFLAGS'
3786ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3787ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3788ac_compiler_gnu=$ac_cv_c_compiler_gnu
3789{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3790echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3791# On Suns, sometimes $CPP names a directory.
3792if test -n "$CPP" && test -d "$CPP"; then
3793 CPP=
3794fi
3795if test -z "$CPP"; then
3796 if test "${ac_cv_prog_CPP+set}" = set; then
3797 echo $ECHO_N "(cached) $ECHO_C" >&6
3798else
3799 # Double quotes because CPP needs to be expanded
3800 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3801 do
3802 ac_preproc_ok=false
3803for ac_c_preproc_warn_flag in '' yes
3804do
3805 # Use a header file that comes with gcc, so configuring glibc
3806 # with a fresh cross-compiler works.
3807 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3808 # <limits.h> exists even on freestanding compilers.
3809 # On the NeXT, cc -E runs the code through the compiler's parser,
3810 # not just through cpp. "Syntax error" is here to catch this case.
3811 cat >conftest.$ac_ext <<_ACEOF
3812/* confdefs.h. */
3813_ACEOF
3814cat confdefs.h >>conftest.$ac_ext
3815cat >>conftest.$ac_ext <<_ACEOF
3816/* end confdefs.h. */
3817#ifdef __STDC__
3818# include <limits.h>
3819#else
3820# include <assert.h>
3821#endif
3822 Syntax error
3823_ACEOF
3824if { (ac_try="$ac_cpp conftest.$ac_ext"
3825case "(($ac_try" in
3826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3827 *) ac_try_echo=$ac_try;;
3828esac
3829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3831 ac_status=$?
3832 grep -v '^ *+' conftest.er1 >conftest.err
3833 rm -f conftest.er1
3834 cat conftest.err >&5
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); } >/dev/null && {
3837 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3838 test ! -s conftest.err
3839 }; then
3840 :
3841else
3842 echo "$as_me: failed program was:" >&5
3843sed 's/^/| /' conftest.$ac_ext >&5
3844
3845 # Broken: fails on valid input.
3846continue
3847fi
3848
3849rm -f conftest.err conftest.$ac_ext
3850
3851 # OK, works on sane cases. Now check whether nonexistent headers
3852 # can be detected and how.
3853 cat >conftest.$ac_ext <<_ACEOF
3854/* confdefs.h. */
3855_ACEOF
3856cat confdefs.h >>conftest.$ac_ext
3857cat >>conftest.$ac_ext <<_ACEOF
3858/* end confdefs.h. */
3859#include <ac_nonexistent.h>
3860_ACEOF
3861if { (ac_try="$ac_cpp conftest.$ac_ext"
3862case "(($ac_try" in
3863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3864 *) ac_try_echo=$ac_try;;
3865esac
3866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3868 ac_status=$?
3869 grep -v '^ *+' conftest.er1 >conftest.err
3870 rm -f conftest.er1
3871 cat conftest.err >&5
3872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873 (exit $ac_status); } >/dev/null && {
3874 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3875 test ! -s conftest.err
3876 }; then
3877 # Broken: success on invalid input.
3878continue
3879else
3880 echo "$as_me: failed program was:" >&5
3881sed 's/^/| /' conftest.$ac_ext >&5
3882
3883 # Passes both tests.
3884ac_preproc_ok=:
3885break
3886fi
3887
3888rm -f conftest.err conftest.$ac_ext
3889
3890done
3891# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3892rm -f conftest.err conftest.$ac_ext
3893if $ac_preproc_ok; then
3894 break
3895fi
3896
3897 done
3898 ac_cv_prog_CPP=$CPP
3899
3900fi
3901 CPP=$ac_cv_prog_CPP
3902else
3903 ac_cv_prog_CPP=$CPP
3904fi
3905{ echo "$as_me:$LINENO: result: $CPP" >&5
3906echo "${ECHO_T}$CPP" >&6; }
3907ac_preproc_ok=false
3908for ac_c_preproc_warn_flag in '' yes
3909do
3910 # Use a header file that comes with gcc, so configuring glibc
3911 # with a fresh cross-compiler works.
3912 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3913 # <limits.h> exists even on freestanding compilers.
3914 # On the NeXT, cc -E runs the code through the compiler's parser,
3915 # not just through cpp. "Syntax error" is here to catch this case.
3916 cat >conftest.$ac_ext <<_ACEOF
3917/* confdefs.h. */
3918_ACEOF
3919cat confdefs.h >>conftest.$ac_ext
3920cat >>conftest.$ac_ext <<_ACEOF
3921/* end confdefs.h. */
3922#ifdef __STDC__
3923# include <limits.h>
3924#else
3925# include <assert.h>
3926#endif
3927 Syntax error
3928_ACEOF
3929if { (ac_try="$ac_cpp conftest.$ac_ext"
3930case "(($ac_try" in
3931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3932 *) ac_try_echo=$ac_try;;
3933esac
3934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3935 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3936 ac_status=$?
3937 grep -v '^ *+' conftest.er1 >conftest.err
3938 rm -f conftest.er1
3939 cat conftest.err >&5
3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941 (exit $ac_status); } >/dev/null && {
3942 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3943 test ! -s conftest.err
3944 }; then
3945 :
3946else
3947 echo "$as_me: failed program was:" >&5
3948sed 's/^/| /' conftest.$ac_ext >&5
3949
3950 # Broken: fails on valid input.
3951continue
3952fi
3953
3954rm -f conftest.err conftest.$ac_ext
3955
3956 # OK, works on sane cases. Now check whether nonexistent headers
3957 # can be detected and how.
3958 cat >conftest.$ac_ext <<_ACEOF
3959/* confdefs.h. */
3960_ACEOF
3961cat confdefs.h >>conftest.$ac_ext
3962cat >>conftest.$ac_ext <<_ACEOF
3963/* end confdefs.h. */
3964#include <ac_nonexistent.h>
3965_ACEOF
3966if { (ac_try="$ac_cpp conftest.$ac_ext"
3967case "(($ac_try" in
3968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3969 *) ac_try_echo=$ac_try;;
3970esac
3971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3973 ac_status=$?
3974 grep -v '^ *+' conftest.er1 >conftest.err
3975 rm -f conftest.er1
3976 cat conftest.err >&5
3977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); } >/dev/null && {
3979 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3980 test ! -s conftest.err
3981 }; then
3982 # Broken: success on invalid input.
3983continue
3984else
3985 echo "$as_me: failed program was:" >&5
3986sed 's/^/| /' conftest.$ac_ext >&5
3987
3988 # Passes both tests.
3989ac_preproc_ok=:
3990break
3991fi
3992
3993rm -f conftest.err conftest.$ac_ext
3994
3995done
3996# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3997rm -f conftest.err conftest.$ac_ext
3998if $ac_preproc_ok; then
3999 :
4000else
4001 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4002See \`config.log' for more details." >&5
4003echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4004See \`config.log' for more details." >&2;}
4005 { (exit 1); exit 1; }; }
4006fi
4007
4008ac_ext=c
4009ac_cpp='$CPP $CPPFLAGS'
4010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4012ac_compiler_gnu=$ac_cv_c_compiler_gnu
4013
4014
4015{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4016echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4017if test "${ac_cv_path_GREP+set}" = set; then
4018 echo $ECHO_N "(cached) $ECHO_C" >&6
4019else
4020 # Extract the first word of "grep ggrep" to use in msg output
4021if test -z "$GREP"; then
4022set dummy grep ggrep; ac_prog_name=$2
4023if test "${ac_cv_path_GREP+set}" = set; then
4024 echo $ECHO_N "(cached) $ECHO_C" >&6
4025else
4026 ac_path_GREP_found=false
4027# Loop through the user's path and test for each of PROGNAME-LIST
4028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4029for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4030do
4031 IFS=$as_save_IFS
4032 test -z "$as_dir" && as_dir=.
4033 for ac_prog in grep ggrep; do
4034 for ac_exec_ext in '' $ac_executable_extensions; do
4035 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4036 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4037 # Check for GNU ac_path_GREP and select it if it is found.
4038 # Check for GNU $ac_path_GREP
4039case `"$ac_path_GREP" --version 2>&1` in
4040*GNU*)
4041 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4042*)
4043 ac_count=0
4044 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4045 while :
4046 do
4047 cat "conftest.in" "conftest.in" >"conftest.tmp"
4048 mv "conftest.tmp" "conftest.in"
4049 cp "conftest.in" "conftest.nl"
4050 echo 'GREP' >> "conftest.nl"
4051 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4052 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4053 ac_count=`expr $ac_count + 1`
4054 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4055 # Best one so far, save it but keep looking for a better one
4056 ac_cv_path_GREP="$ac_path_GREP"
4057 ac_path_GREP_max=$ac_count
4058 fi
4059 # 10*(2^10) chars as input seems more than enough
4060 test $ac_count -gt 10 && break
4061 done
4062 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4063esac
4064
4065
4066 $ac_path_GREP_found && break 3
4067 done
4068done
4069
4070done
4071IFS=$as_save_IFS
4072
4073
4074fi
4075
4076GREP="$ac_cv_path_GREP"
4077if test -z "$GREP"; then
4078 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4079echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4080 { (exit 1); exit 1; }; }
4081fi
4082
4083else
4084 ac_cv_path_GREP=$GREP
4085fi
4086
4087
4088fi
4089{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4090echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4091 GREP="$ac_cv_path_GREP"
4092
4093
4094{ echo "$as_me:$LINENO: checking for egrep" >&5
4095echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4096if test "${ac_cv_path_EGREP+set}" = set; then
4097 echo $ECHO_N "(cached) $ECHO_C" >&6
4098else
4099 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4100 then ac_cv_path_EGREP="$GREP -E"
4101 else
4102 # Extract the first word of "egrep" to use in msg output
4103if test -z "$EGREP"; then
4104set dummy egrep; ac_prog_name=$2
4105if test "${ac_cv_path_EGREP+set}" = set; then
4106 echo $ECHO_N "(cached) $ECHO_C" >&6
4107else
4108 ac_path_EGREP_found=false
4109# Loop through the user's path and test for each of PROGNAME-LIST
4110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4112do
4113 IFS=$as_save_IFS
4114 test -z "$as_dir" && as_dir=.
4115 for ac_prog in egrep; do
4116 for ac_exec_ext in '' $ac_executable_extensions; do
4117 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4118 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4119 # Check for GNU ac_path_EGREP and select it if it is found.
4120 # Check for GNU $ac_path_EGREP
4121case `"$ac_path_EGREP" --version 2>&1` in
4122*GNU*)
4123 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4124*)
4125 ac_count=0
4126 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4127 while :
4128 do
4129 cat "conftest.in" "conftest.in" >"conftest.tmp"
4130 mv "conftest.tmp" "conftest.in"
4131 cp "conftest.in" "conftest.nl"
4132 echo 'EGREP' >> "conftest.nl"
4133 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4134 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4135 ac_count=`expr $ac_count + 1`
4136 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4137 # Best one so far, save it but keep looking for a better one
4138 ac_cv_path_EGREP="$ac_path_EGREP"
4139 ac_path_EGREP_max=$ac_count
4140 fi
4141 # 10*(2^10) chars as input seems more than enough
4142 test $ac_count -gt 10 && break
4143 done
4144 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4145esac
4146
4147
4148 $ac_path_EGREP_found && break 3
4149 done
4150done
4151
4152done
4153IFS=$as_save_IFS
4154
4155
4156fi
4157
4158EGREP="$ac_cv_path_EGREP"
4159if test -z "$EGREP"; then
4160 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4161echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4162 { (exit 1); exit 1; }; }
4163fi
4164
4165else
4166 ac_cv_path_EGREP=$EGREP
4167fi
4168
4169
4170 fi
4171fi
4172{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4173echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4174 EGREP="$ac_cv_path_EGREP"
4175
4176
4177{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4178echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4179if test "${ac_cv_header_stdc+set}" = set; then
4180 echo $ECHO_N "(cached) $ECHO_C" >&6
4181else
4182 cat >conftest.$ac_ext <<_ACEOF
4183/* confdefs.h. */
4184_ACEOF
4185cat confdefs.h >>conftest.$ac_ext
4186cat >>conftest.$ac_ext <<_ACEOF
4187/* end confdefs.h. */
4188#include <stdlib.h>
4189#include <stdarg.h>
4190#include <string.h>
4191#include <float.h>
4192
4193int
4194main ()
4195{
4196
4197 ;
4198 return 0;
4199}
4200_ACEOF
4201rm -f conftest.$ac_objext
4202if { (ac_try="$ac_compile"
4203case "(($ac_try" in
4204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4205 *) ac_try_echo=$ac_try;;
4206esac
4207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4208 (eval "$ac_compile") 2>conftest.er1
4209 ac_status=$?
4210 grep -v '^ *+' conftest.er1 >conftest.err
4211 rm -f conftest.er1
4212 cat conftest.err >&5
4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214 (exit $ac_status); } && {
4215 test -z "$ac_c_werror_flag" ||
4216 test ! -s conftest.err
4217 } && test -s conftest.$ac_objext; then
4218 ac_cv_header_stdc=yes
4219else
4220 echo "$as_me: failed program was:" >&5
4221sed 's/^/| /' conftest.$ac_ext >&5
4222
4223 ac_cv_header_stdc=no
4224fi
4225
4226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4227
4228if test $ac_cv_header_stdc = yes; then
4229 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4230 cat >conftest.$ac_ext <<_ACEOF
4231/* confdefs.h. */
4232_ACEOF
4233cat confdefs.h >>conftest.$ac_ext
4234cat >>conftest.$ac_ext <<_ACEOF
4235/* end confdefs.h. */
4236#include <string.h>
4237
4238_ACEOF
4239if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4240 $EGREP "memchr" >/dev/null 2>&1; then
4241 :
4242else
4243 ac_cv_header_stdc=no
4244fi
4245rm -f conftest*
4246
4247fi
4248
4249if test $ac_cv_header_stdc = yes; then
4250 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4251 cat >conftest.$ac_ext <<_ACEOF
4252/* confdefs.h. */
4253_ACEOF
4254cat confdefs.h >>conftest.$ac_ext
4255cat >>conftest.$ac_ext <<_ACEOF
4256/* end confdefs.h. */
4257#include <stdlib.h>
4258
4259_ACEOF
4260if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4261 $EGREP "free" >/dev/null 2>&1; then
4262 :
4263else
4264 ac_cv_header_stdc=no
4265fi
4266rm -f conftest*
4267
4268fi
4269
4270if test $ac_cv_header_stdc = yes; then
4271 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4272 if test "$cross_compiling" = yes; then
4273 :
4274else
4275 cat >conftest.$ac_ext <<_ACEOF
4276/* confdefs.h. */
4277_ACEOF
4278cat confdefs.h >>conftest.$ac_ext
4279cat >>conftest.$ac_ext <<_ACEOF
4280/* end confdefs.h. */
4281#include <ctype.h>
4282#include <stdlib.h>
4283#if ((' ' & 0x0FF) == 0x020)
4284# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4285# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4286#else
4287# define ISLOWER(c) \
4288 (('a' <= (c) && (c) <= 'i') \
4289 || ('j' <= (c) && (c) <= 'r') \
4290 || ('s' <= (c) && (c) <= 'z'))
4291# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4292#endif
4293
4294#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4295int
4296main ()
4297{
4298 int i;
4299 for (i = 0; i < 256; i++)
4300 if (XOR (islower (i), ISLOWER (i))
4301 || toupper (i) != TOUPPER (i))
4302 return 2;
4303 return 0;
4304}
4305_ACEOF
4306rm -f conftest$ac_exeext
4307if { (ac_try="$ac_link"
4308case "(($ac_try" in
4309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4310 *) ac_try_echo=$ac_try;;
4311esac
4312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4313 (eval "$ac_link") 2>&5
4314 ac_status=$?
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4317 { (case "(($ac_try" in
4318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4319 *) ac_try_echo=$ac_try;;
4320esac
4321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4322 (eval "$ac_try") 2>&5
4323 ac_status=$?
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); }; }; then
4326 :
4327else
4328 echo "$as_me: program exited with status $ac_status" >&5
4329echo "$as_me: failed program was:" >&5
4330sed 's/^/| /' conftest.$ac_ext >&5
4331
4332( exit $ac_status )
4333ac_cv_header_stdc=no
4334fi
4335rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4336fi
4337
4338
4339fi
4340fi
4341{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4342echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4343if test $ac_cv_header_stdc = yes; then
4344
4345cat >>confdefs.h <<\_ACEOF
4346#define STDC_HEADERS 1
4347_ACEOF
4348
4349fi
4350
4351
4352# Check whether --enable-static was given.
4353if test "${enable_static+set}" = set; then
4354 enableval=$enable_static; p=${PACKAGE-default}
4355 case $enableval in
4356 yes) enable_static=yes ;;
4357 no) enable_static=no ;;
4358 *)
4359 enable_static=no
4360 # Look at the argument we got. We use all the common list separators.
4361 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4362 for pkg in $enableval; do
4363 IFS="$lt_save_ifs"
4364 if test "X$pkg" = "X$p"; then
4365 enable_static=yes
4366 fi
4367 done
4368 IFS="$lt_save_ifs"
4369 ;;
4370 esac
4371else
4372 enable_static=no
4373fi
4374
4375
4376
4377
4378
4379 { echo "$as_me:$LINENO: checking for Win32" >&5
4380echo $ECHO_N "checking for Win32... $ECHO_C" >&6; }
4381 case "$host" in
4382 *-mingw*)
4383 os_win32=yes
4384 ;;
4385 *)
4386 os_win32=no
4387 ;;
4388 esac
4389 { echo "$as_me:$LINENO: result: $os_win32" >&5
4390echo "${ECHO_T}$os_win32" >&6; }
4391 if test "$os_win32" = "yes"; then
4392 if test x$enable_static = xyes -o x$enable_static = x; then
4393 { echo "$as_me:$LINENO: WARNING: Disabling static library build, must build as DLL on Windows." >&5
4394echo "$as_me: WARNING: Disabling static library build, must build as DLL on Windows." >&2;}
4395 fi
4396 if test x$enable_shared = xno; then
4397 { echo "$as_me:$LINENO: WARNING: Enabling shared library build, must build as DLL on Windows." >&5
4398echo "$as_me: WARNING: Enabling shared library build, must build as DLL on Windows." >&2;}
4399 fi
4400 enable_static=no
4401 enable_shared=yes
4402 fi
4403
4404 if test "$os_win32" = yes; then
4405 OS_WIN32_TRUE=
4406 OS_WIN32_FALSE='#'
4407else
4408 OS_WIN32_TRUE='#'
4409 OS_WIN32_FALSE=
4410fi
4411
4412
4413
4414
4415# Check whether --enable-shared was given.
4416if test "${enable_shared+set}" = set; then
4417 enableval=$enable_shared; p=${PACKAGE-default}
4418 case $enableval in
4419 yes) enable_shared=yes ;;
4420 no) enable_shared=no ;;
4421 *)
4422 enable_shared=no
4423 # Look at the argument we got. We use all the common list separators.
4424 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4425 for pkg in $enableval; do
4426 IFS="$lt_save_ifs"
4427 if test "X$pkg" = "X$p"; then
4428 enable_shared=yes
4429 fi
4430 done
4431 IFS="$lt_save_ifs"
4432 ;;
4433 esac
4434else
4435 enable_shared=yes
4436fi
4437
4438
4439# Check whether --enable-fast-install was given.
4440if test "${enable_fast_install+set}" = set; then
4441 enableval=$enable_fast_install; p=${PACKAGE-default}
4442 case $enableval in
4443 yes) enable_fast_install=yes ;;
4444 no) enable_fast_install=no ;;
4445 *)
4446 enable_fast_install=no
4447 # Look at the argument we got. We use all the common list separators.
4448 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4449 for pkg in $enableval; do
4450 IFS="$lt_save_ifs"
4451 if test "X$pkg" = "X$p"; then
4452 enable_fast_install=yes
4453 fi
4454 done
4455 IFS="$lt_save_ifs"
4456 ;;
4457 esac
4458else
4459 enable_fast_install=yes
4460fi
4461
4462
4463# Make sure we can run config.sub.
4464$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4465 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4466echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4467 { (exit 1); exit 1; }; }
4468
4469{ echo "$as_me:$LINENO: checking build system type" >&5
4470echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4471if test "${ac_cv_build+set}" = set; then
4472 echo $ECHO_N "(cached) $ECHO_C" >&6
4473else
4474 ac_build_alias=$build_alias
4475test "x$ac_build_alias" = x &&
4476 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4477test "x$ac_build_alias" = x &&
4478 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4479echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4480 { (exit 1); exit 1; }; }
4481ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4482 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4483echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4484 { (exit 1); exit 1; }; }
4485
4486fi
4487{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4488echo "${ECHO_T}$ac_cv_build" >&6; }
4489case $ac_cv_build in
4490*-*-*) ;;
4491*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4492echo "$as_me: error: invalid value of canonical build" >&2;}
4493 { (exit 1); exit 1; }; };;
4494esac
4495build=$ac_cv_build
4496ac_save_IFS=$IFS; IFS='-'
4497set x $ac_cv_build
4498shift
4499build_cpu=$1
4500build_vendor=$2
4501shift; shift
4502# Remember, the first character of IFS is used to create $*,
4503# except with old shells:
4504build_os=$*
4505IFS=$ac_save_IFS
4506case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4507
4508
4509{ echo "$as_me:$LINENO: checking host system type" >&5
4510echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4511if test "${ac_cv_host+set}" = set; then
4512 echo $ECHO_N "(cached) $ECHO_C" >&6
4513else
4514 if test "x$host_alias" = x; then
4515 ac_cv_host=$ac_cv_build
4516else
4517 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4518 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4519echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4520 { (exit 1); exit 1; }; }
4521fi
4522
4523fi
4524{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4525echo "${ECHO_T}$ac_cv_host" >&6; }
4526case $ac_cv_host in
4527*-*-*) ;;
4528*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4529echo "$as_me: error: invalid value of canonical host" >&2;}
4530 { (exit 1); exit 1; }; };;
4531esac
4532host=$ac_cv_host
4533ac_save_IFS=$IFS; IFS='-'
4534set x $ac_cv_host
4535shift
4536host_cpu=$1
4537host_vendor=$2
4538shift; shift
4539# Remember, the first character of IFS is used to create $*,
4540# except with old shells:
4541host_os=$*
4542IFS=$ac_save_IFS
4543case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4544
4545
4546{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4547echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4548if test "${lt_cv_path_SED+set}" = set; then
4549 echo $ECHO_N "(cached) $ECHO_C" >&6
4550else
4551 # Loop through the user's path and test for sed and gsed.
4552# Then use that list of sed's as ones to test for truncation.
4553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554for as_dir in $PATH
4555do
4556 IFS=$as_save_IFS
4557 test -z "$as_dir" && as_dir=.
4558 for lt_ac_prog in sed gsed; do
4559 for ac_exec_ext in '' $ac_executable_extensions; do
4560 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4561 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4562 fi
4563 done
4564 done
4565done
4566lt_ac_max=0
4567lt_ac_count=0
4568# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4569# along with /bin/sed that truncates output.
4570for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4571 test ! -f $lt_ac_sed && break
4572 cat /dev/null > conftest.in
4573 lt_ac_count=0
4574 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4575 # Check for GNU sed and select it if it is found.
4576 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4577 lt_cv_path_SED=$lt_ac_sed
4578 break
4579 fi
4580 while true; do
4581 cat conftest.in conftest.in >conftest.tmp
4582 mv conftest.tmp conftest.in
4583 cp conftest.in conftest.nl
4584 echo >>conftest.nl
4585 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4586 cmp -s conftest.out conftest.nl || break
4587 # 10000 chars as input seems more than enough
4588 test $lt_ac_count -gt 10 && break
4589 lt_ac_count=`expr $lt_ac_count + 1`
4590 if test $lt_ac_count -gt $lt_ac_max; then
4591 lt_ac_max=$lt_ac_count
4592 lt_cv_path_SED=$lt_ac_sed
4593 fi
4594 done
4595done
4596SED=$lt_cv_path_SED
4597
4598fi
4599
4600{ echo "$as_me:$LINENO: result: $SED" >&5
4601echo "${ECHO_T}$SED" >&6; }
4602
4603
4604# Check whether --with-gnu-ld was given.
4605if test "${with_gnu_ld+set}" = set; then
4606 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4607else
4608 with_gnu_ld=no
4609fi
4610
4611ac_prog=ld
4612if test "$GCC" = yes; then
4613 # Check if gcc -print-prog-name=ld gives a path.
4614 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4615echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4616 case $host in
4617 *-*-mingw*)
4618 # gcc leaves a trailing carriage return which upsets mingw
4619 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4620 *)
4621 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4622 esac
4623 case $ac_prog in
4624 # Accept absolute paths.
4625 [\\/]* | ?:[\\/]*)
4626 re_direlt='/[^/][^/]*/\.\./'
4627 # Canonicalize the pathname of ld
4628 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4629 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4630 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4631 done
4632 test -z "$LD" && LD="$ac_prog"
4633 ;;
4634 "")
4635 # If it fails, then pretend we aren't using GCC.
4636 ac_prog=ld
4637 ;;
4638 *)
4639 # If it is relative, then search for the first ld in PATH.
4640 with_gnu_ld=unknown
4641 ;;
4642 esac
4643elif test "$with_gnu_ld" = yes; then
4644 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4645echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4646else
4647 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4648echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4649fi
4650if test "${lt_cv_path_LD+set}" = set; then
4651 echo $ECHO_N "(cached) $ECHO_C" >&6
4652else
4653 if test -z "$LD"; then
4654 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4655 for ac_dir in $PATH; do
4656 IFS="$lt_save_ifs"
4657 test -z "$ac_dir" && ac_dir=.
4658 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4659 lt_cv_path_LD="$ac_dir/$ac_prog"
4660 # Check to see if the program is GNU ld. I'd rather use --version,
4661 # but apparently some GNU ld's only accept -v.
4662 # Break only if it was the GNU/non-GNU ld that we prefer.
4663 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4664 *GNU* | *'with BFD'*)
4665 test "$with_gnu_ld" != no && break
4666 ;;
4667 *)
4668 test "$with_gnu_ld" != yes && break
4669 ;;
4670 esac
4671 fi
4672 done
4673 IFS="$lt_save_ifs"
4674else
4675 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4676fi
4677fi
4678
4679LD="$lt_cv_path_LD"
4680if test -n "$LD"; then
4681 { echo "$as_me:$LINENO: result: $LD" >&5
4682echo "${ECHO_T}$LD" >&6; }
4683else
4684 { echo "$as_me:$LINENO: result: no" >&5
4685echo "${ECHO_T}no" >&6; }
4686fi
4687test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4688echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4689 { (exit 1); exit 1; }; }
4690{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4691echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4692if test "${lt_cv_prog_gnu_ld+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4694else
4695 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4696case `$LD -v 2>&1 </dev/null` in
4697*GNU* | *'with BFD'*)
4698 lt_cv_prog_gnu_ld=yes
4699 ;;
4700*)
4701 lt_cv_prog_gnu_ld=no
4702 ;;
4703esac
4704fi
4705{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4706echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4707with_gnu_ld=$lt_cv_prog_gnu_ld
4708
4709
4710{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4711echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4712if test "${lt_cv_ld_reload_flag+set}" = set; then
4713 echo $ECHO_N "(cached) $ECHO_C" >&6
4714else
4715 lt_cv_ld_reload_flag='-r'
4716fi
4717{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4718echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4719reload_flag=$lt_cv_ld_reload_flag
4720case $reload_flag in
4721"" | " "*) ;;
4722*) reload_flag=" $reload_flag" ;;
4723esac
4724reload_cmds='$LD$reload_flag -o $output$reload_objs'
4725
4726{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4727echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4728if test "${lt_cv_path_NM+set}" = set; then
4729 echo $ECHO_N "(cached) $ECHO_C" >&6
4730else
4731 if test -n "$NM"; then
4732 # Let the user override the test.
4733 lt_cv_path_NM="$NM"
4734else
4735 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4736 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4737 IFS="$lt_save_ifs"
4738 test -z "$ac_dir" && ac_dir=.
4739 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4740 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4741 # Check to see if the nm accepts a BSD-compat flag.
4742 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4743 # nm: unknown option "B" ignored
4744 # Tru64's nm complains that /dev/null is an invalid object file
4745 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4746 */dev/null* | *'Invalid file or object type'*)
4747 lt_cv_path_NM="$tmp_nm -B"
4748 break
4749 ;;
4750 *)
4751 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4752 */dev/null*)
4753 lt_cv_path_NM="$tmp_nm -p"
4754 break
4755 ;;
4756 *)
4757 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4758 continue # so that we can try to find one that supports BSD flags
4759 ;;
4760 esac
4761 esac
4762 fi
4763 done
4764 IFS="$lt_save_ifs"
4765 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4766fi
4767fi
4768{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4769echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4770NM="$lt_cv_path_NM"
4771
4772{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4773echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4774LN_S=$as_ln_s
4775if test "$LN_S" = "ln -s"; then
4776 { echo "$as_me:$LINENO: result: yes" >&5
4777echo "${ECHO_T}yes" >&6; }
4778else
4779 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4780echo "${ECHO_T}no, using $LN_S" >&6; }
4781fi
4782
4783{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4784echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4785if test "${lt_cv_deplibs_check_method+set}" = set; then
4786 echo $ECHO_N "(cached) $ECHO_C" >&6
4787else
4788 lt_cv_file_magic_cmd='$MAGIC_CMD'
4789lt_cv_file_magic_test_file=
4790lt_cv_deplibs_check_method='unknown'
4791# Need to set the preceding variable on all platforms that support
4792# interlibrary dependencies.
4793# 'none' -- dependencies not supported.
4794# `unknown' -- same as none, but documents that we really don't know.
4795# 'pass_all' -- all dependencies passed with no checks.
4796# 'test_compile' -- check by making test program.
4797# 'file_magic [[regex]]' -- check by looking for files in library path
4798# which responds to the $file_magic_cmd with a given extended regex.
4799# If you have `file' or equivalent on your system and you're not sure
4800# whether `pass_all' will *always* work, you probably want this one.
4801
4802case $host_os in
4803aix4* | aix5*)
4804 lt_cv_deplibs_check_method=pass_all
4805 ;;
4806
4807beos*)
4808 lt_cv_deplibs_check_method=pass_all
4809 ;;
4810
4811bsdi4*)
4812 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4813 lt_cv_file_magic_cmd='/usr/bin/file -L'
4814 lt_cv_file_magic_test_file=/shlib/libc.so
4815 ;;
4816
4817cygwin*)
4818 # func_win32_libid is a shell function defined in ltmain.sh
4819 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4820 lt_cv_file_magic_cmd='func_win32_libid'
4821 ;;
4822
4823mingw* | pw32*)
4824 # Base MSYS/MinGW do not provide the 'file' command needed by
4825 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4826 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4827 lt_cv_file_magic_cmd='$OBJDUMP -f'
4828 ;;
4829
4830darwin* | rhapsody*)
4831 lt_cv_deplibs_check_method=pass_all
4832 ;;
4833
4834freebsd* | kfreebsd*-gnu)
4835 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4836 case $host_cpu in
4837 i*86 )
4838 # Not sure whether the presence of OpenBSD here was a mistake.
4839 # Let's accept both of them until this is cleared up.
4840 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4841 lt_cv_file_magic_cmd=/usr/bin/file
4842 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4843 ;;
4844 esac
4845 else
4846 lt_cv_deplibs_check_method=pass_all
4847 fi
4848 ;;
4849
4850gnu*)
4851 lt_cv_deplibs_check_method=pass_all
4852 ;;
4853
4854hpux10.20* | hpux11*)
4855 lt_cv_file_magic_cmd=/usr/bin/file
4856 case "$host_cpu" in
4857 ia64*)
4858 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4859 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4860 ;;
4861 hppa*64*)
4862 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4863 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4864 ;;
4865 *)
4866 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4867 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4868 ;;
4869 esac
4870 ;;
4871
4872irix5* | irix6* | nonstopux*)
4873 case $LD in
4874 *-32|*"-32 ") libmagic=32-bit;;
4875 *-n32|*"-n32 ") libmagic=N32;;
4876 *-64|*"-64 ") libmagic=64-bit;;
4877 *) libmagic=never-match;;
4878 esac
4879 lt_cv_deplibs_check_method=pass_all
4880 ;;
4881
4882# This must be Linux ELF.
4883linux*)
4884 lt_cv_deplibs_check_method=pass_all
4885 ;;
4886
4887netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
4888 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4889 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4890 else
4891 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4892 fi
4893 ;;
4894
4895newos6*)
4896 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4897 lt_cv_file_magic_cmd=/usr/bin/file
4898 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4899 ;;
4900
4901nto-qnx*)
4902 lt_cv_deplibs_check_method=unknown
4903 ;;
4904
4905openbsd*)
4906 lt_cv_file_magic_cmd=/usr/bin/file
4907 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4908 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4909 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4910 else
4911 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4912 fi
4913 ;;
4914
4915osf3* | osf4* | osf5*)
4916 lt_cv_deplibs_check_method=pass_all
4917 ;;
4918
4919sco3.2v5*)
4920 lt_cv_deplibs_check_method=pass_all
4921 ;;
4922
4923solaris*)
4924 lt_cv_deplibs_check_method=pass_all
4925 ;;
4926
4927sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4928 case $host_vendor in
4929 motorola)
4930 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
4931 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4932 ;;
4933 ncr)
4934 lt_cv_deplibs_check_method=pass_all
4935 ;;
4936 sequent)
4937 lt_cv_file_magic_cmd='/bin/file'
4938 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4939 ;;
4940 sni)
4941 lt_cv_file_magic_cmd='/bin/file'
4942 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4943 lt_cv_file_magic_test_file=/lib/libc.so
4944 ;;
4945 siemens)
4946 lt_cv_deplibs_check_method=pass_all
4947 ;;
4948 esac
4949 ;;
4950
4951sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4952 lt_cv_deplibs_check_method=pass_all
4953 ;;
4954esac
4955
4956fi
4957{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4958echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4959file_magic_cmd=$lt_cv_file_magic_cmd
4960deplibs_check_method=$lt_cv_deplibs_check_method
4961test -z "$deplibs_check_method" && deplibs_check_method=unknown
4962
4963
4964
4965
4966# If no C compiler was specified, use CC.
4967LTCC=${LTCC-"$CC"}
4968
4969# Allow CC to be a program name with arguments.
4970compiler=$CC
4971
4972# Check whether --enable-libtool-lock was given.
4973if test "${enable_libtool_lock+set}" = set; then
4974 enableval=$enable_libtool_lock;
4975fi
4976
4977test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4978
4979# Some flags need to be propagated to the compiler or linker for good
4980# libtool support.
4981case $host in
4982ia64-*-hpux*)
4983 # Find out which ABI we are using.
4984 echo 'int i;' > conftest.$ac_ext
4985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4986 (eval $ac_compile) 2>&5
4987 ac_status=$?
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); }; then
4990 case `/usr/bin/file conftest.$ac_objext` in
4991 *ELF-32*)
4992 HPUX_IA64_MODE="32"
4993 ;;
4994 *ELF-64*)
4995 HPUX_IA64_MODE="64"
4996 ;;
4997 esac
4998 fi
4999 rm -rf conftest*
5000 ;;
5001*-*-irix6*)
5002 # Find out which ABI we are using.
5003 echo '#line 5003 "configure"' > conftest.$ac_ext
5004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5005 (eval $ac_compile) 2>&5
5006 ac_status=$?
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); }; then
5009 if test "$lt_cv_prog_gnu_ld" = yes; then
5010 case `/usr/bin/file conftest.$ac_objext` in
5011 *32-bit*)
5012 LD="${LD-ld} -melf32bsmip"
5013 ;;
5014 *N32*)
5015 LD="${LD-ld} -melf32bmipn32"
5016 ;;
5017 *64-bit*)
5018 LD="${LD-ld} -melf64bmip"
5019 ;;
5020 esac
5021 else
5022 case `/usr/bin/file conftest.$ac_objext` in
5023 *32-bit*)
5024 LD="${LD-ld} -32"
5025 ;;
5026 *N32*)
5027 LD="${LD-ld} -n32"
5028 ;;
5029 *64-bit*)
5030 LD="${LD-ld} -64"
5031 ;;
5032 esac
5033 fi
5034 fi
5035 rm -rf conftest*
5036 ;;
5037
5038x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5039 # Find out which ABI we are using.
5040 echo 'int i;' > conftest.$ac_ext
5041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5042 (eval $ac_compile) 2>&5
5043 ac_status=$?
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); }; then
5046 case "`/usr/bin/file conftest.o`" in
5047 *32-bit*)
5048 case $host in
5049 x86_64-*linux*)
5050 LD="${LD-ld} -m elf_i386"
5051 ;;
5052 ppc64-*linux*|powerpc64-*linux*)
5053 LD="${LD-ld} -m elf32ppclinux"
5054 ;;
5055 s390x-*linux*)
5056 LD="${LD-ld} -m elf_s390"
5057 ;;
5058 sparc64-*linux*)
5059 LD="${LD-ld} -m elf32_sparc"
5060 ;;
5061 esac
5062 ;;
5063 *64-bit*)
5064 case $host in
5065 x86_64-*linux*)
5066 LD="${LD-ld} -m elf_x86_64"
5067 ;;
5068 ppc*-*linux*|powerpc*-*linux*)
5069 LD="${LD-ld} -m elf64ppc"
5070 ;;
5071 s390*-*linux*)
5072 LD="${LD-ld} -m elf64_s390"
5073 ;;
5074 sparc*-*linux*)
5075 LD="${LD-ld} -m elf64_sparc"
5076 ;;
5077 esac
5078 ;;
5079 esac
5080 fi
5081 rm -rf conftest*
5082 ;;
5083
5084*-*-sco3.2v5*)
5085 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5086 SAVE_CFLAGS="$CFLAGS"
5087 CFLAGS="$CFLAGS -belf"
5088 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5089echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5090if test "${lt_cv_cc_needs_belf+set}" = set; then
5091 echo $ECHO_N "(cached) $ECHO_C" >&6
5092else
5093 ac_ext=c
5094ac_cpp='$CPP $CPPFLAGS'
5095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5097ac_compiler_gnu=$ac_cv_c_compiler_gnu
5098
5099 cat >conftest.$ac_ext <<_ACEOF
5100/* confdefs.h. */
5101_ACEOF
5102cat confdefs.h >>conftest.$ac_ext
5103cat >>conftest.$ac_ext <<_ACEOF
5104/* end confdefs.h. */
5105
5106int
5107main ()
5108{
5109
5110 ;
5111 return 0;
5112}
5113_ACEOF
5114rm -f conftest.$ac_objext conftest$ac_exeext
5115if { (ac_try="$ac_link"
5116case "(($ac_try" in
5117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5118 *) ac_try_echo=$ac_try;;
5119esac
5120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5121 (eval "$ac_link") 2>conftest.er1
5122 ac_status=$?
5123 grep -v '^ *+' conftest.er1 >conftest.err
5124 rm -f conftest.er1
5125 cat conftest.err >&5
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); } && {
5128 test -z "$ac_c_werror_flag" ||
5129 test ! -s conftest.err
5130 } && test -s conftest$ac_exeext &&
5131 $as_test_x conftest$ac_exeext; then
5132 lt_cv_cc_needs_belf=yes
5133else
5134 echo "$as_me: failed program was:" >&5
5135sed 's/^/| /' conftest.$ac_ext >&5
5136
5137 lt_cv_cc_needs_belf=no
5138fi
5139
5140rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5141 conftest$ac_exeext conftest.$ac_ext
5142 ac_ext=c
5143ac_cpp='$CPP $CPPFLAGS'
5144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5146ac_compiler_gnu=$ac_cv_c_compiler_gnu
5147
5148fi
5149{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5150echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5151 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5152 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5153 CFLAGS="$SAVE_CFLAGS"
5154 fi
5155 ;;
5156*-*-cygwin* | *-*-mingw* | *-*-pw32*)
5157 if test -n "$ac_tool_prefix"; then
5158 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5159set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5160{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5161echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5162if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5164else
5165 if test -n "$DLLTOOL"; then
5166 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5167else
5168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169for as_dir in $PATH
5170do
5171 IFS=$as_save_IFS
5172 test -z "$as_dir" && as_dir=.
5173 for ac_exec_ext in '' $ac_executable_extensions; do
5174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5175 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5177 break 2
5178 fi
5179done
5180done
5181IFS=$as_save_IFS
5182
5183fi
5184fi
5185DLLTOOL=$ac_cv_prog_DLLTOOL
5186if test -n "$DLLTOOL"; then
5187 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5188echo "${ECHO_T}$DLLTOOL" >&6; }
5189else
5190 { echo "$as_me:$LINENO: result: no" >&5
5191echo "${ECHO_T}no" >&6; }
5192fi
5193
5194
5195fi
5196if test -z "$ac_cv_prog_DLLTOOL"; then
5197 ac_ct_DLLTOOL=$DLLTOOL
5198 # Extract the first word of "dlltool", so it can be a program name with args.
5199set dummy dlltool; ac_word=$2
5200{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5201echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5202if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5203 echo $ECHO_N "(cached) $ECHO_C" >&6
5204else
5205 if test -n "$ac_ct_DLLTOOL"; then
5206 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5207else
5208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209for as_dir in $PATH
5210do
5211 IFS=$as_save_IFS
5212 test -z "$as_dir" && as_dir=.
5213 for ac_exec_ext in '' $ac_executable_extensions; do
5214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5215 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5217 break 2
5218 fi
5219done
5220done
5221IFS=$as_save_IFS
5222
5223fi
5224fi
5225ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5226if test -n "$ac_ct_DLLTOOL"; then
5227 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5228echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
5229else
5230 { echo "$as_me:$LINENO: result: no" >&5
5231echo "${ECHO_T}no" >&6; }
5232fi
5233
5234 if test "x$ac_ct_DLLTOOL" = x; then
5235 DLLTOOL="false"
5236 else
5237 case $cross_compiling:$ac_tool_warned in
5238yes:)
5239{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5240whose name does not start with the host triplet. If you think this
5241configuration is useful to you, please write to autoconf@gnu.org." >&5
5242echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5243whose name does not start with the host triplet. If you think this
5244configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5245ac_tool_warned=yes ;;
5246esac
5247 DLLTOOL=$ac_ct_DLLTOOL
5248 fi
5249else
5250 DLLTOOL="$ac_cv_prog_DLLTOOL"
5251fi
5252
5253 if test -n "$ac_tool_prefix"; then
5254 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5255set dummy ${ac_tool_prefix}as; ac_word=$2
5256{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5257echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5258if test "${ac_cv_prog_AS+set}" = set; then
5259 echo $ECHO_N "(cached) $ECHO_C" >&6
5260else
5261 if test -n "$AS"; then
5262 ac_cv_prog_AS="$AS" # Let the user override the test.
5263else
5264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5265for as_dir in $PATH
5266do
5267 IFS=$as_save_IFS
5268 test -z "$as_dir" && as_dir=.
5269 for ac_exec_ext in '' $ac_executable_extensions; do
5270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5271 ac_cv_prog_AS="${ac_tool_prefix}as"
5272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5273 break 2
5274 fi
5275done
5276done
5277IFS=$as_save_IFS
5278
5279fi
5280fi
5281AS=$ac_cv_prog_AS
5282if test -n "$AS"; then
5283 { echo "$as_me:$LINENO: result: $AS" >&5
5284echo "${ECHO_T}$AS" >&6; }
5285else
5286 { echo "$as_me:$LINENO: result: no" >&5
5287echo "${ECHO_T}no" >&6; }
5288fi
5289
5290
5291fi
5292if test -z "$ac_cv_prog_AS"; then
5293 ac_ct_AS=$AS
5294 # Extract the first word of "as", so it can be a program name with args.
5295set dummy as; ac_word=$2
5296{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5298if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5299 echo $ECHO_N "(cached) $ECHO_C" >&6
5300else
5301 if test -n "$ac_ct_AS"; then
5302 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5303else
5304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5305for as_dir in $PATH
5306do
5307 IFS=$as_save_IFS
5308 test -z "$as_dir" && as_dir=.
5309 for ac_exec_ext in '' $ac_executable_extensions; do
5310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5311 ac_cv_prog_ac_ct_AS="as"
5312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5313 break 2
5314 fi
5315done
5316done
5317IFS=$as_save_IFS
5318
5319fi
5320fi
5321ac_ct_AS=$ac_cv_prog_ac_ct_AS
5322if test -n "$ac_ct_AS"; then
5323 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5324echo "${ECHO_T}$ac_ct_AS" >&6; }
5325else
5326 { echo "$as_me:$LINENO: result: no" >&5
5327echo "${ECHO_T}no" >&6; }
5328fi
5329
5330 if test "x$ac_ct_AS" = x; then
5331 AS="false"
5332 else
5333 case $cross_compiling:$ac_tool_warned in
5334yes:)
5335{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5336whose name does not start with the host triplet. If you think this
5337configuration is useful to you, please write to autoconf@gnu.org." >&5
5338echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5339whose name does not start with the host triplet. If you think this
5340configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5341ac_tool_warned=yes ;;
5342esac
5343 AS=$ac_ct_AS
5344 fi
5345else
5346 AS="$ac_cv_prog_AS"
5347fi
5348
5349 if test -n "$ac_tool_prefix"; then
5350 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5351set dummy ${ac_tool_prefix}objdump; ac_word=$2
5352{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5353echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5354if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5355 echo $ECHO_N "(cached) $ECHO_C" >&6
5356else
5357 if test -n "$OBJDUMP"; then
5358 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5359else
5360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361for as_dir in $PATH
5362do
5363 IFS=$as_save_IFS
5364 test -z "$as_dir" && as_dir=.
5365 for ac_exec_ext in '' $ac_executable_extensions; do
5366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5367 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5369 break 2
5370 fi
5371done
5372done
5373IFS=$as_save_IFS
5374
5375fi
5376fi
5377OBJDUMP=$ac_cv_prog_OBJDUMP
5378if test -n "$OBJDUMP"; then
5379 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5380echo "${ECHO_T}$OBJDUMP" >&6; }
5381else
5382 { echo "$as_me:$LINENO: result: no" >&5
5383echo "${ECHO_T}no" >&6; }
5384fi
5385
5386
5387fi
5388if test -z "$ac_cv_prog_OBJDUMP"; then
5389 ac_ct_OBJDUMP=$OBJDUMP
5390 # Extract the first word of "objdump", so it can be a program name with args.
5391set dummy objdump; ac_word=$2
5392{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5394if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5395 echo $ECHO_N "(cached) $ECHO_C" >&6
5396else
5397 if test -n "$ac_ct_OBJDUMP"; then
5398 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5399else
5400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401for as_dir in $PATH
5402do
5403 IFS=$as_save_IFS
5404 test -z "$as_dir" && as_dir=.
5405 for ac_exec_ext in '' $ac_executable_extensions; do
5406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5407 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5409 break 2
5410 fi
5411done
5412done
5413IFS=$as_save_IFS
5414
5415fi
5416fi
5417ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5418if test -n "$ac_ct_OBJDUMP"; then
5419 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5420echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
5421else
5422 { echo "$as_me:$LINENO: result: no" >&5
5423echo "${ECHO_T}no" >&6; }
5424fi
5425
5426 if test "x$ac_ct_OBJDUMP" = x; then
5427 OBJDUMP="false"
5428 else
5429 case $cross_compiling:$ac_tool_warned in
5430yes:)
5431{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5432whose name does not start with the host triplet. If you think this
5433configuration is useful to you, please write to autoconf@gnu.org." >&5
5434echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5435whose name does not start with the host triplet. If you think this
5436configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5437ac_tool_warned=yes ;;
5438esac
5439 OBJDUMP=$ac_ct_OBJDUMP
5440 fi
5441else
5442 OBJDUMP="$ac_cv_prog_OBJDUMP"
5443fi
5444
5445 ;;
5446
5447esac
5448
5449need_locks="$enable_libtool_lock"
5450
5451
5452# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5463 inttypes.h stdint.h unistd.h
5464do
5465as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5466{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5467echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5468if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5469 echo $ECHO_N "(cached) $ECHO_C" >&6
5470else
5471 cat >conftest.$ac_ext <<_ACEOF
5472/* confdefs.h. */
5473_ACEOF
5474cat confdefs.h >>conftest.$ac_ext
5475cat >>conftest.$ac_ext <<_ACEOF
5476/* end confdefs.h. */
5477$ac_includes_default
5478
5479#include <$ac_header>
5480_ACEOF
5481rm -f conftest.$ac_objext
5482if { (ac_try="$ac_compile"
5483case "(($ac_try" in
5484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5485 *) ac_try_echo=$ac_try;;
5486esac
5487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5488 (eval "$ac_compile") 2>conftest.er1
5489 ac_status=$?
5490 grep -v '^ *+' conftest.er1 >conftest.err
5491 rm -f conftest.er1
5492 cat conftest.err >&5
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); } && {
5495 test -z "$ac_c_werror_flag" ||
5496 test ! -s conftest.err
5497 } && test -s conftest.$ac_objext; then
5498 eval "$as_ac_Header=yes"
5499else
5500 echo "$as_me: failed program was:" >&5
5501sed 's/^/| /' conftest.$ac_ext >&5
5502
5503 eval "$as_ac_Header=no"
5504fi
5505
5506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5507fi
5508ac_res=`eval echo '${'$as_ac_Header'}'`
5509 { echo "$as_me:$LINENO: result: $ac_res" >&5
5510echo "${ECHO_T}$ac_res" >&6; }
5511if test `eval echo '${'$as_ac_Header'}'` = yes; then
5512 cat >>confdefs.h <<_ACEOF
5513#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5514_ACEOF
5515
5516fi
5517
5518done
5519
5520
5521
5522for ac_header in dlfcn.h
5523do
5524as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5525if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5526 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5527echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5528if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5529 echo $ECHO_N "(cached) $ECHO_C" >&6
5530fi
5531ac_res=`eval echo '${'$as_ac_Header'}'`
5532 { echo "$as_me:$LINENO: result: $ac_res" >&5
5533echo "${ECHO_T}$ac_res" >&6; }
5534else
5535 # Is the header compilable?
5536{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5537echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5538cat >conftest.$ac_ext <<_ACEOF
5539/* confdefs.h. */
5540_ACEOF
5541cat confdefs.h >>conftest.$ac_ext
5542cat >>conftest.$ac_ext <<_ACEOF
5543/* end confdefs.h. */
5544$ac_includes_default
5545#include <$ac_header>
5546_ACEOF
5547rm -f conftest.$ac_objext
5548if { (ac_try="$ac_compile"
5549case "(($ac_try" in
5550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5551 *) ac_try_echo=$ac_try;;
5552esac
5553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5554 (eval "$ac_compile") 2>conftest.er1
5555 ac_status=$?
5556 grep -v '^ *+' conftest.er1 >conftest.err
5557 rm -f conftest.er1
5558 cat conftest.err >&5
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); } && {
5561 test -z "$ac_c_werror_flag" ||
5562 test ! -s conftest.err
5563 } && test -s conftest.$ac_objext; then
5564 ac_header_compiler=yes
5565else
5566 echo "$as_me: failed program was:" >&5
5567sed 's/^/| /' conftest.$ac_ext >&5
5568
5569 ac_header_compiler=no
5570fi
5571
5572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5573{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5574echo "${ECHO_T}$ac_header_compiler" >&6; }
5575
5576# Is the header present?
5577{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5578echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5579cat >conftest.$ac_ext <<_ACEOF
5580/* confdefs.h. */
5581_ACEOF
5582cat confdefs.h >>conftest.$ac_ext
5583cat >>conftest.$ac_ext <<_ACEOF
5584/* end confdefs.h. */
5585#include <$ac_header>
5586_ACEOF
5587if { (ac_try="$ac_cpp conftest.$ac_ext"
5588case "(($ac_try" in
5589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5590 *) ac_try_echo=$ac_try;;
5591esac
5592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5594 ac_status=$?
5595 grep -v '^ *+' conftest.er1 >conftest.err
5596 rm -f conftest.er1
5597 cat conftest.err >&5
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); } >/dev/null && {
5600 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5601 test ! -s conftest.err
5602 }; then
5603 ac_header_preproc=yes
5604else
5605 echo "$as_me: failed program was:" >&5
5606sed 's/^/| /' conftest.$ac_ext >&5
5607
5608 ac_header_preproc=no
5609fi
5610
5611rm -f conftest.err conftest.$ac_ext
5612{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5613echo "${ECHO_T}$ac_header_preproc" >&6; }
5614
5615# So? What about this header?
5616case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5617 yes:no: )
5618 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5619echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5621echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5622 ac_header_preproc=yes
5623 ;;
5624 no:yes:* )
5625 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5626echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5627 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5628echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5629 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5630echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5631 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5632echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5634echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5635 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5636echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5637
5638 ;;
5639esac
5640{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5641echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5642if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5643 echo $ECHO_N "(cached) $ECHO_C" >&6
5644else
5645 eval "$as_ac_Header=\$ac_header_preproc"
5646fi
5647ac_res=`eval echo '${'$as_ac_Header'}'`
5648 { echo "$as_me:$LINENO: result: $ac_res" >&5
5649echo "${ECHO_T}$ac_res" >&6; }
5650
5651fi
5652if test `eval echo '${'$as_ac_Header'}'` = yes; then
5653 cat >>confdefs.h <<_ACEOF
5654#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5655_ACEOF
5656
5657fi
5658
5659done
5660
5661ac_ext=cpp
5662ac_cpp='$CXXCPP $CPPFLAGS'
5663ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5664ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5665ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5666if test -z "$CXX"; then
5667 if test -n "$CCC"; then
5668 CXX=$CCC
5669 else
5670 if test -n "$ac_tool_prefix"; then
5671 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5672 do
5673 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5674set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5675{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5677if test "${ac_cv_prog_CXX+set}" = set; then
5678 echo $ECHO_N "(cached) $ECHO_C" >&6
5679else
5680 if test -n "$CXX"; then
5681 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5682else
5683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5684for as_dir in $PATH
5685do
5686 IFS=$as_save_IFS
5687 test -z "$as_dir" && as_dir=.
5688 for ac_exec_ext in '' $ac_executable_extensions; do
5689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5690 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5692 break 2
5693 fi
5694done
5695done
5696IFS=$as_save_IFS
5697
5698fi
5699fi
5700CXX=$ac_cv_prog_CXX
5701if test -n "$CXX"; then
5702 { echo "$as_me:$LINENO: result: $CXX" >&5
5703echo "${ECHO_T}$CXX" >&6; }
5704else
5705 { echo "$as_me:$LINENO: result: no" >&5
5706echo "${ECHO_T}no" >&6; }
5707fi
5708
5709
5710 test -n "$CXX" && break
5711 done
5712fi
5713if test -z "$CXX"; then
5714 ac_ct_CXX=$CXX
5715 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5716do
5717 # Extract the first word of "$ac_prog", so it can be a program name with args.
5718set dummy $ac_prog; ac_word=$2
5719{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5721if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5722 echo $ECHO_N "(cached) $ECHO_C" >&6
5723else
5724 if test -n "$ac_ct_CXX"; then
5725 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5726else
5727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5728for as_dir in $PATH
5729do
5730 IFS=$as_save_IFS
5731 test -z "$as_dir" && as_dir=.
5732 for ac_exec_ext in '' $ac_executable_extensions; do
5733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5734 ac_cv_prog_ac_ct_CXX="$ac_prog"
5735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5736 break 2
5737 fi
5738done
5739done
5740IFS=$as_save_IFS
5741
5742fi
5743fi
5744ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5745if test -n "$ac_ct_CXX"; then
5746 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5747echo "${ECHO_T}$ac_ct_CXX" >&6; }
5748else
5749 { echo "$as_me:$LINENO: result: no" >&5
5750echo "${ECHO_T}no" >&6; }
5751fi
5752
5753
5754 test -n "$ac_ct_CXX" && break
5755done
5756
5757 if test "x$ac_ct_CXX" = x; then
5758 CXX="g++"
5759 else
5760 case $cross_compiling:$ac_tool_warned in
5761yes:)
5762{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5763whose name does not start with the host triplet. If you think this
5764configuration is useful to you, please write to autoconf@gnu.org." >&5
5765echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5766whose name does not start with the host triplet. If you think this
5767configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5768ac_tool_warned=yes ;;
5769esac
5770 CXX=$ac_ct_CXX
5771 fi
5772fi
5773
5774 fi
5775fi
5776# Provide some information about the compiler.
5777echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5778ac_compiler=`set X $ac_compile; echo $2`
5779{ (ac_try="$ac_compiler --version >&5"
5780case "(($ac_try" in
5781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5782 *) ac_try_echo=$ac_try;;
5783esac
5784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5785 (eval "$ac_compiler --version >&5") 2>&5
5786 ac_status=$?
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); }
5789{ (ac_try="$ac_compiler -v >&5"
5790case "(($ac_try" in
5791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5792 *) ac_try_echo=$ac_try;;
5793esac
5794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5795 (eval "$ac_compiler -v >&5") 2>&5
5796 ac_status=$?
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); }
5799{ (ac_try="$ac_compiler -V >&5"
5800case "(($ac_try" in
5801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5802 *) ac_try_echo=$ac_try;;
5803esac
5804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5805 (eval "$ac_compiler -V >&5") 2>&5
5806 ac_status=$?
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); }
5809
5810{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5811echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5812if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5813 echo $ECHO_N "(cached) $ECHO_C" >&6
5814else
5815 cat >conftest.$ac_ext <<_ACEOF
5816/* confdefs.h. */
5817_ACEOF
5818cat confdefs.h >>conftest.$ac_ext
5819cat >>conftest.$ac_ext <<_ACEOF
5820/* end confdefs.h. */
5821
5822int
5823main ()
5824{
5825#ifndef __GNUC__
5826 choke me
5827#endif
5828
5829 ;
5830 return 0;
5831}
5832_ACEOF
5833rm -f conftest.$ac_objext
5834if { (ac_try="$ac_compile"
5835case "(($ac_try" in
5836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5837 *) ac_try_echo=$ac_try;;
5838esac
5839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5840 (eval "$ac_compile") 2>conftest.er1
5841 ac_status=$?
5842 grep -v '^ *+' conftest.er1 >conftest.err
5843 rm -f conftest.er1
5844 cat conftest.err >&5
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); } && {
5847 test -z "$ac_cxx_werror_flag" ||
5848 test ! -s conftest.err
5849 } && test -s conftest.$ac_objext; then
5850 ac_compiler_gnu=yes
5851else
5852 echo "$as_me: failed program was:" >&5
5853sed 's/^/| /' conftest.$ac_ext >&5
5854
5855 ac_compiler_gnu=no
5856fi
5857
5858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5859ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5860
5861fi
5862{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5863echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5864GXX=`test $ac_compiler_gnu = yes && echo yes`
5865ac_test_CXXFLAGS=${CXXFLAGS+set}
5866ac_save_CXXFLAGS=$CXXFLAGS
5867{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5868echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5869if test "${ac_cv_prog_cxx_g+set}" = set; then
5870 echo $ECHO_N "(cached) $ECHO_C" >&6
5871else
5872 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5873 ac_cxx_werror_flag=yes
5874 ac_cv_prog_cxx_g=no
5875 CXXFLAGS="-g"
5876 cat >conftest.$ac_ext <<_ACEOF
5877/* confdefs.h. */
5878_ACEOF
5879cat confdefs.h >>conftest.$ac_ext
5880cat >>conftest.$ac_ext <<_ACEOF
5881/* end confdefs.h. */
5882
5883int
5884main ()
5885{
5886
5887 ;
5888 return 0;
5889}
5890_ACEOF
5891rm -f conftest.$ac_objext
5892if { (ac_try="$ac_compile"
5893case "(($ac_try" in
5894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5895 *) ac_try_echo=$ac_try;;
5896esac
5897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5898 (eval "$ac_compile") 2>conftest.er1
5899 ac_status=$?
5900 grep -v '^ *+' conftest.er1 >conftest.err
5901 rm -f conftest.er1
5902 cat conftest.err >&5
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); } && {
5905 test -z "$ac_cxx_werror_flag" ||
5906 test ! -s conftest.err
5907 } && test -s conftest.$ac_objext; then
5908 ac_cv_prog_cxx_g=yes
5909else
5910 echo "$as_me: failed program was:" >&5
5911sed 's/^/| /' conftest.$ac_ext >&5
5912
5913 CXXFLAGS=""
5914 cat >conftest.$ac_ext <<_ACEOF
5915/* confdefs.h. */
5916_ACEOF
5917cat confdefs.h >>conftest.$ac_ext
5918cat >>conftest.$ac_ext <<_ACEOF
5919/* end confdefs.h. */
5920
5921int
5922main ()
5923{
5924
5925 ;
5926 return 0;
5927}
5928_ACEOF
5929rm -f conftest.$ac_objext
5930if { (ac_try="$ac_compile"
5931case "(($ac_try" in
5932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5933 *) ac_try_echo=$ac_try;;
5934esac
5935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5936 (eval "$ac_compile") 2>conftest.er1
5937 ac_status=$?
5938 grep -v '^ *+' conftest.er1 >conftest.err
5939 rm -f conftest.er1
5940 cat conftest.err >&5
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); } && {
5943 test -z "$ac_cxx_werror_flag" ||
5944 test ! -s conftest.err
5945 } && test -s conftest.$ac_objext; then
5946 :
5947else
5948 echo "$as_me: failed program was:" >&5
5949sed 's/^/| /' conftest.$ac_ext >&5
5950
5951 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5952 CXXFLAGS="-g"
5953 cat >conftest.$ac_ext <<_ACEOF
5954/* confdefs.h. */
5955_ACEOF
5956cat confdefs.h >>conftest.$ac_ext
5957cat >>conftest.$ac_ext <<_ACEOF
5958/* end confdefs.h. */
5959
5960int
5961main ()
5962{
5963
5964 ;
5965 return 0;
5966}
5967_ACEOF
5968rm -f conftest.$ac_objext
5969if { (ac_try="$ac_compile"
5970case "(($ac_try" in
5971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5972 *) ac_try_echo=$ac_try;;
5973esac
5974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5975 (eval "$ac_compile") 2>conftest.er1
5976 ac_status=$?
5977 grep -v '^ *+' conftest.er1 >conftest.err
5978 rm -f conftest.er1
5979 cat conftest.err >&5
5980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); } && {
5982 test -z "$ac_cxx_werror_flag" ||
5983 test ! -s conftest.err
5984 } && test -s conftest.$ac_objext; then
5985 ac_cv_prog_cxx_g=yes
5986else
5987 echo "$as_me: failed program was:" >&5
5988sed 's/^/| /' conftest.$ac_ext >&5
5989
5990
5991fi
5992
5993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5994fi
5995
5996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5997fi
5998
5999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6000 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6001fi
6002{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6003echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6004if test "$ac_test_CXXFLAGS" = set; then
6005 CXXFLAGS=$ac_save_CXXFLAGS
6006elif test $ac_cv_prog_cxx_g = yes; then
6007 if test "$GXX" = yes; then
6008 CXXFLAGS="-g -O2"
6009 else
6010 CXXFLAGS="-g"
6011 fi
6012else
6013 if test "$GXX" = yes; then
6014 CXXFLAGS="-O2"
6015 else
6016 CXXFLAGS=
6017 fi
6018fi
6019ac_ext=cpp
6020ac_cpp='$CXXCPP $CPPFLAGS'
6021ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6022ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6023ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6024
6025depcc="$CXX" am_compiler_list=
6026
6027{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6028echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6029if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6030 echo $ECHO_N "(cached) $ECHO_C" >&6
6031else
6032 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6033 # We make a subdir and do the tests there. Otherwise we can end up
6034 # making bogus files that we don't know about and never remove. For
6035 # instance it was reported that on HP-UX the gcc test will end up
6036 # making a dummy file named `D' -- because `-MD' means `put the output
6037 # in D'.
6038 mkdir conftest.dir
6039 # Copy depcomp to subdir because otherwise we won't find it if we're
6040 # using a relative directory.
6041 cp "$am_depcomp" conftest.dir
6042 cd conftest.dir
6043 # We will build objects and dependencies in a subdirectory because
6044 # it helps to detect inapplicable dependency modes. For instance
6045 # both Tru64's cc and ICC support -MD to output dependencies as a
6046 # side effect of compilation, but ICC will put the dependencies in
6047 # the current directory while Tru64 will put them in the object
6048 # directory.
6049 mkdir sub
6050
6051 am_cv_CXX_dependencies_compiler_type=none
6052 if test "$am_compiler_list" = ""; then
6053 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6054 fi
6055 for depmode in $am_compiler_list; do
6056 # Setup a source with many dependencies, because some compilers
6057 # like to wrap large dependency lists on column 80 (with \), and
6058 # we should not choose a depcomp mode which is confused by this.
6059 #
6060 # We need to recreate these files for each test, as the compiler may
6061 # overwrite some of them when testing with obscure command lines.
6062 # This happens at least with the AIX C compiler.
6063 : > sub/conftest.c
6064 for i in 1 2 3 4 5 6; do
6065 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6066 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6067 # Solaris 8's {/usr,}/bin/sh.
6068 touch sub/conftst$i.h
6069 done
6070 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6071
6072 case $depmode in
6073 nosideeffect)
6074 # after this tag, mechanisms are not by side-effect, so they'll
6075 # only be used when explicitly requested
6076 if test "x$enable_dependency_tracking" = xyes; then
6077 continue
6078 else
6079 break
6080 fi
6081 ;;
6082 none) break ;;
6083 esac
6084 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6085 # mode. It turns out that the SunPro C++ compiler does not properly
6086 # handle `-M -o', and we need to detect this.
6087 if depmode=$depmode \
6088 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6089 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6090 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6091 >/dev/null 2>conftest.err &&
6092 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6093 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6094 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6095 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6096 # icc doesn't choke on unknown options, it will just issue warnings
6097 # or remarks (even with -Werror). So we grep stderr for any message
6098 # that says an option was ignored or not supported.
6099 # When given -MP, icc 7.0 and 7.1 complain thusly:
6100 # icc: Command line warning: ignoring option '-M'; no argument required
6101 # The diagnosis changed in icc 8.0:
6102 # icc: Command line remark: option '-MP' not supported
6103 if (grep 'ignoring option' conftest.err ||
6104 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6105 am_cv_CXX_dependencies_compiler_type=$depmode
6106 break
6107 fi
6108 fi
6109 done
6110
6111 cd ..
6112 rm -rf conftest.dir
6113else
6114 am_cv_CXX_dependencies_compiler_type=none
6115fi
6116
6117fi
6118{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6119echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6120CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6121
6122 if
6123 test "x$enable_dependency_tracking" != xno \
6124 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6125 am__fastdepCXX_TRUE=
6126 am__fastdepCXX_FALSE='#'
6127else
6128 am__fastdepCXX_TRUE='#'
6129 am__fastdepCXX_FALSE=
6130fi
6131
6132
6133ac_ext=cpp
6134ac_cpp='$CXXCPP $CPPFLAGS'
6135ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6136ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6137ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6138{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6139echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6140if test -z "$CXXCPP"; then
6141 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6142 echo $ECHO_N "(cached) $ECHO_C" >&6
6143else
6144 # Double quotes because CXXCPP needs to be expanded
6145 for CXXCPP in "$CXX -E" "/lib/cpp"
6146 do
6147 ac_preproc_ok=false
6148for ac_cxx_preproc_warn_flag in '' yes
6149do
6150 # Use a header file that comes with gcc, so configuring glibc
6151 # with a fresh cross-compiler works.
6152 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6153 # <limits.h> exists even on freestanding compilers.
6154 # On the NeXT, cc -E runs the code through the compiler's parser,
6155 # not just through cpp. "Syntax error" is here to catch this case.
6156 cat >conftest.$ac_ext <<_ACEOF
6157/* confdefs.h. */
6158_ACEOF
6159cat confdefs.h >>conftest.$ac_ext
6160cat >>conftest.$ac_ext <<_ACEOF
6161/* end confdefs.h. */
6162#ifdef __STDC__
6163# include <limits.h>
6164#else
6165# include <assert.h>
6166#endif
6167 Syntax error
6168_ACEOF
6169if { (ac_try="$ac_cpp conftest.$ac_ext"
6170case "(($ac_try" in
6171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6172 *) ac_try_echo=$ac_try;;
6173esac
6174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6175 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6176 ac_status=$?
6177 grep -v '^ *+' conftest.er1 >conftest.err
6178 rm -f conftest.er1
6179 cat conftest.err >&5
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); } >/dev/null && {
6182 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6183 test ! -s conftest.err
6184 }; then
6185 :
6186else
6187 echo "$as_me: failed program was:" >&5
6188sed 's/^/| /' conftest.$ac_ext >&5
6189
6190 # Broken: fails on valid input.
6191continue
6192fi
6193
6194rm -f conftest.err conftest.$ac_ext
6195
6196 # OK, works on sane cases. Now check whether nonexistent headers
6197 # can be detected and how.
6198 cat >conftest.$ac_ext <<_ACEOF
6199/* confdefs.h. */
6200_ACEOF
6201cat confdefs.h >>conftest.$ac_ext
6202cat >>conftest.$ac_ext <<_ACEOF
6203/* end confdefs.h. */
6204#include <ac_nonexistent.h>
6205_ACEOF
6206if { (ac_try="$ac_cpp conftest.$ac_ext"
6207case "(($ac_try" in
6208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6209 *) ac_try_echo=$ac_try;;
6210esac
6211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6212 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6213 ac_status=$?
6214 grep -v '^ *+' conftest.er1 >conftest.err
6215 rm -f conftest.er1
6216 cat conftest.err >&5
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); } >/dev/null && {
6219 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6220 test ! -s conftest.err
6221 }; then
6222 # Broken: success on invalid input.
6223continue
6224else
6225 echo "$as_me: failed program was:" >&5
6226sed 's/^/| /' conftest.$ac_ext >&5
6227
6228 # Passes both tests.
6229ac_preproc_ok=:
6230break
6231fi
6232
6233rm -f conftest.err conftest.$ac_ext
6234
6235done
6236# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6237rm -f conftest.err conftest.$ac_ext
6238if $ac_preproc_ok; then
6239 break
6240fi
6241
6242 done
6243 ac_cv_prog_CXXCPP=$CXXCPP
6244
6245fi
6246 CXXCPP=$ac_cv_prog_CXXCPP
6247else
6248 ac_cv_prog_CXXCPP=$CXXCPP
6249fi
6250{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
6251echo "${ECHO_T}$CXXCPP" >&6; }
6252ac_preproc_ok=false
6253for ac_cxx_preproc_warn_flag in '' yes
6254do
6255 # Use a header file that comes with gcc, so configuring glibc
6256 # with a fresh cross-compiler works.
6257 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6258 # <limits.h> exists even on freestanding compilers.
6259 # On the NeXT, cc -E runs the code through the compiler's parser,
6260 # not just through cpp. "Syntax error" is here to catch this case.
6261 cat >conftest.$ac_ext <<_ACEOF
6262/* confdefs.h. */
6263_ACEOF
6264cat confdefs.h >>conftest.$ac_ext
6265cat >>conftest.$ac_ext <<_ACEOF
6266/* end confdefs.h. */
6267#ifdef __STDC__
6268# include <limits.h>
6269#else
6270# include <assert.h>
6271#endif
6272 Syntax error
6273_ACEOF
6274if { (ac_try="$ac_cpp conftest.$ac_ext"
6275case "(($ac_try" in
6276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6277 *) ac_try_echo=$ac_try;;
6278esac
6279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6281 ac_status=$?
6282 grep -v '^ *+' conftest.er1 >conftest.err
6283 rm -f conftest.er1
6284 cat conftest.err >&5
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); } >/dev/null && {
6287 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6288 test ! -s conftest.err
6289 }; then
6290 :
6291else
6292 echo "$as_me: failed program was:" >&5
6293sed 's/^/| /' conftest.$ac_ext >&5
6294
6295 # Broken: fails on valid input.
6296continue
6297fi
6298
6299rm -f conftest.err conftest.$ac_ext
6300
6301 # OK, works on sane cases. Now check whether nonexistent headers
6302 # can be detected and how.
6303 cat >conftest.$ac_ext <<_ACEOF
6304/* confdefs.h. */
6305_ACEOF
6306cat confdefs.h >>conftest.$ac_ext
6307cat >>conftest.$ac_ext <<_ACEOF
6308/* end confdefs.h. */
6309#include <ac_nonexistent.h>
6310_ACEOF
6311if { (ac_try="$ac_cpp conftest.$ac_ext"
6312case "(($ac_try" in
6313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6314 *) ac_try_echo=$ac_try;;
6315esac
6316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6318 ac_status=$?
6319 grep -v '^ *+' conftest.er1 >conftest.err
6320 rm -f conftest.er1
6321 cat conftest.err >&5
6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323 (exit $ac_status); } >/dev/null && {
6324 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6325 test ! -s conftest.err
6326 }; then
6327 # Broken: success on invalid input.
6328continue
6329else
6330 echo "$as_me: failed program was:" >&5
6331sed 's/^/| /' conftest.$ac_ext >&5
6332
6333 # Passes both tests.
6334ac_preproc_ok=:
6335break
6336fi
6337
6338rm -f conftest.err conftest.$ac_ext
6339
6340done
6341# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6342rm -f conftest.err conftest.$ac_ext
6343if $ac_preproc_ok; then
6344 :
6345else
6346 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6347See \`config.log' for more details." >&5
6348echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6349See \`config.log' for more details." >&2;}
6350 { (exit 1); exit 1; }; }
6351fi
6352
6353ac_ext=cpp
6354ac_cpp='$CXXCPP $CPPFLAGS'
6355ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6356ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6357ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6358
6359
6360ac_ext=f
6361ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6362ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6363ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6364if test -n "$ac_tool_prefix"; then
6365 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6366 do
6367 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6368set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6369{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6370echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6371if test "${ac_cv_prog_F77+set}" = set; then
6372 echo $ECHO_N "(cached) $ECHO_C" >&6
6373else
6374 if test -n "$F77"; then
6375 ac_cv_prog_F77="$F77" # Let the user override the test.
6376else
6377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6378for as_dir in $PATH
6379do
6380 IFS=$as_save_IFS
6381 test -z "$as_dir" && as_dir=.
6382 for ac_exec_ext in '' $ac_executable_extensions; do
6383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6384 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6386 break 2
6387 fi
6388done
6389done
6390IFS=$as_save_IFS
6391
6392fi
6393fi
6394F77=$ac_cv_prog_F77
6395if test -n "$F77"; then
6396 { echo "$as_me:$LINENO: result: $F77" >&5
6397echo "${ECHO_T}$F77" >&6; }
6398else
6399 { echo "$as_me:$LINENO: result: no" >&5
6400echo "${ECHO_T}no" >&6; }
6401fi
6402
6403
6404 test -n "$F77" && break
6405 done
6406fi
6407if test -z "$F77"; then
6408 ac_ct_F77=$F77
6409 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6410do
6411 # Extract the first word of "$ac_prog", so it can be a program name with args.
6412set dummy $ac_prog; ac_word=$2
6413{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6414echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6415if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6416 echo $ECHO_N "(cached) $ECHO_C" >&6
6417else
6418 if test -n "$ac_ct_F77"; then
6419 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6420else
6421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6422for as_dir in $PATH
6423do
6424 IFS=$as_save_IFS
6425 test -z "$as_dir" && as_dir=.
6426 for ac_exec_ext in '' $ac_executable_extensions; do
6427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6428 ac_cv_prog_ac_ct_F77="$ac_prog"
6429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6430 break 2
6431 fi
6432done
6433done
6434IFS=$as_save_IFS
6435
6436fi
6437fi
6438ac_ct_F77=$ac_cv_prog_ac_ct_F77
6439if test -n "$ac_ct_F77"; then
6440 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6441echo "${ECHO_T}$ac_ct_F77" >&6; }
6442else
6443 { echo "$as_me:$LINENO: result: no" >&5
6444echo "${ECHO_T}no" >&6; }
6445fi
6446
6447
6448 test -n "$ac_ct_F77" && break
6449done
6450
6451 if test "x$ac_ct_F77" = x; then
6452 F77=""
6453 else
6454 case $cross_compiling:$ac_tool_warned in
6455yes:)
6456{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6457whose name does not start with the host triplet. If you think this
6458configuration is useful to you, please write to autoconf@gnu.org." >&5
6459echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6460whose name does not start with the host triplet. If you think this
6461configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6462ac_tool_warned=yes ;;
6463esac
6464 F77=$ac_ct_F77
6465 fi
6466fi
6467
6468
6469# Provide some information about the compiler.
6470echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6471ac_compiler=`set X $ac_compile; echo $2`
6472{ (ac_try="$ac_compiler --version >&5"
6473case "(($ac_try" in
6474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6475 *) ac_try_echo=$ac_try;;
6476esac
6477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6478 (eval "$ac_compiler --version >&5") 2>&5
6479 ac_status=$?
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); }
6482{ (ac_try="$ac_compiler -v >&5"
6483case "(($ac_try" in
6484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6485 *) ac_try_echo=$ac_try;;
6486esac
6487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6488 (eval "$ac_compiler -v >&5") 2>&5
6489 ac_status=$?
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); }
6492{ (ac_try="$ac_compiler -V >&5"
6493case "(($ac_try" in
6494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6495 *) ac_try_echo=$ac_try;;
6496esac
6497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6498 (eval "$ac_compiler -V >&5") 2>&5
6499 ac_status=$?
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); }
6502rm -f a.out
6503
6504# If we don't use `.F' as extension, the preprocessor is not run on the
6505# input file. (Note that this only needs to work for GNU compilers.)
6506ac_save_ext=$ac_ext
6507ac_ext=F
6508{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6509echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6510if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6511 echo $ECHO_N "(cached) $ECHO_C" >&6
6512else
6513 cat >conftest.$ac_ext <<_ACEOF
6514 program main
6515#ifndef __GNUC__
6516 choke me
6517#endif
6518
6519 end
6520_ACEOF
6521rm -f conftest.$ac_objext
6522if { (ac_try="$ac_compile"
6523case "(($ac_try" in
6524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6525 *) ac_try_echo=$ac_try;;
6526esac
6527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6528 (eval "$ac_compile") 2>conftest.er1
6529 ac_status=$?
6530 grep -v '^ *+' conftest.er1 >conftest.err
6531 rm -f conftest.er1
6532 cat conftest.err >&5
6533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534 (exit $ac_status); } && {
6535 test -z "$ac_f77_werror_flag" ||
6536 test ! -s conftest.err
6537 } && test -s conftest.$ac_objext; then
6538 ac_compiler_gnu=yes
6539else
6540 echo "$as_me: failed program was:" >&5
6541sed 's/^/| /' conftest.$ac_ext >&5
6542
6543 ac_compiler_gnu=no
6544fi
6545
6546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6547ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6548
6549fi
6550{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6551echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6552ac_ext=$ac_save_ext
6553ac_test_FFLAGS=${FFLAGS+set}
6554ac_save_FFLAGS=$FFLAGS
6555FFLAGS=
6556{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6557echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6558if test "${ac_cv_prog_f77_g+set}" = set; then
6559 echo $ECHO_N "(cached) $ECHO_C" >&6
6560else
6561 FFLAGS=-g
6562cat >conftest.$ac_ext <<_ACEOF
6563 program main
6564
6565 end
6566_ACEOF
6567rm -f conftest.$ac_objext
6568if { (ac_try="$ac_compile"
6569case "(($ac_try" in
6570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6571 *) ac_try_echo=$ac_try;;
6572esac
6573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6574 (eval "$ac_compile") 2>conftest.er1
6575 ac_status=$?
6576 grep -v '^ *+' conftest.er1 >conftest.err
6577 rm -f conftest.er1
6578 cat conftest.err >&5
6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); } && {
6581 test -z "$ac_f77_werror_flag" ||
6582 test ! -s conftest.err
6583 } && test -s conftest.$ac_objext; then
6584 ac_cv_prog_f77_g=yes
6585else
6586 echo "$as_me: failed program was:" >&5
6587sed 's/^/| /' conftest.$ac_ext >&5
6588
6589 ac_cv_prog_f77_g=no
6590fi
6591
6592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6593
6594fi
6595{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6596echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6597if test "$ac_test_FFLAGS" = set; then
6598 FFLAGS=$ac_save_FFLAGS
6599elif test $ac_cv_prog_f77_g = yes; then
6600 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6601 FFLAGS="-g -O2"
6602 else
6603 FFLAGS="-g"
6604 fi
6605else
6606 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6607 FFLAGS="-O2"
6608 else
6609 FFLAGS=
6610 fi
6611fi
6612
6613G77=`test $ac_compiler_gnu = yes && echo yes`
6614ac_ext=c
6615ac_cpp='$CPP $CPPFLAGS'
6616ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6617ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6618ac_compiler_gnu=$ac_cv_c_compiler_gnu
6619
6620
6621
6622# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6623
6624# find the maximum length of command line arguments
6625{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6626echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6627if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6628 echo $ECHO_N "(cached) $ECHO_C" >&6
6629else
6630 i=0
6631 teststring="ABCD"
6632
6633 case $build_os in
6634 msdosdjgpp*)
6635 # On DJGPP, this test can blow up pretty badly due to problems in libc
6636 # (any single argument exceeding 2000 bytes causes a buffer overrun
6637 # during glob expansion). Even if it were fixed, the result of this
6638 # check would be larger than it should be.
6639 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6640 ;;
6641
6642 gnu*)
6643 # Under GNU Hurd, this test is not required because there is
6644 # no limit to the length of command line arguments.
6645 # Libtool will interpret -1 as no limit whatsoever
6646 lt_cv_sys_max_cmd_len=-1;
6647 ;;
6648
6649 cygwin* | mingw*)
6650 # On Win9x/ME, this test blows up -- it succeeds, but takes
6651 # about 5 minutes as the teststring grows exponentially.
6652 # Worse, since 9x/ME are not pre-emptively multitasking,
6653 # you end up with a "frozen" computer, even though with patience
6654 # the test eventually succeeds (with a max line length of 256k).
6655 # Instead, let's just punt: use the minimum linelength reported by
6656 # all of the supported platforms: 8192 (on NT/2K/XP).
6657 lt_cv_sys_max_cmd_len=8192;
6658 ;;
6659
6660 amigaos*)
6661 # On AmigaOS with pdksh, this test takes hours, literally.
6662 # So we just punt and use a minimum line length of 8192.
6663 lt_cv_sys_max_cmd_len=8192;
6664 ;;
6665
6666 *)
6667 # If test is not a shell built-in, we'll probably end up computing a
6668 # maximum length that is only half of the actual maximum length, but
6669 # we can't tell.
6670 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6671 = "XX$teststring") >/dev/null 2>&1 &&
6672 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6673 lt_cv_sys_max_cmd_len=$new_result &&
6674 test $i != 17 # 1/2 MB should be enough
6675 do
6676 i=`expr $i + 1`
6677 teststring=$teststring$teststring
6678 done
6679 teststring=
6680 # Add a significant safety factor because C++ compilers can tack on massive
6681 # amounts of additional arguments before passing them to the linker.
6682 # It appears as though 1/2 is a usable value.
6683 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6684 ;;
6685 esac
6686
6687fi
6688
6689if test -n $lt_cv_sys_max_cmd_len ; then
6690 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6691echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6692else
6693 { echo "$as_me:$LINENO: result: none" >&5
6694echo "${ECHO_T}none" >&6; }
6695fi
6696
6697
6698
6699
6700# Check for command to grab the raw symbol name followed by C symbol from nm.
6701{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6702echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6703if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6704 echo $ECHO_N "(cached) $ECHO_C" >&6
6705else
6706
6707# These are sane defaults that work on at least a few old systems.
6708# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6709
6710# Character class describing NM global symbol codes.
6711symcode='[BCDEGRST]'
6712
6713# Regexp to match symbols that can be accessed directly from C.
6714sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6715
6716# Transform the above into a raw symbol and a C symbol.
6717symxfrm='\1 \2\3 \3'
6718
6719# Transform an extracted symbol line into a proper C declaration
6720lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6721
6722# Transform an extracted symbol line into symbol name and symbol address
6723lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6724
6725# Define system-specific variables.
6726case $host_os in
6727aix*)
6728 symcode='[BCDT]'
6729 ;;
6730cygwin* | mingw* | pw32*)
6731 symcode='[ABCDGISTW]'
6732 ;;
6733hpux*) # Its linker distinguishes data from code symbols
6734 if test "$host_cpu" = ia64; then
6735 symcode='[ABCDEGRST]'
6736 fi
6737 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6738 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6739 ;;
6740irix* | nonstopux*)
6741 symcode='[BCDEGRST]'
6742 ;;
6743osf*)
6744 symcode='[BCDEGQRST]'
6745 ;;
6746solaris* | sysv5*)
6747 symcode='[BDRT]'
6748 ;;
6749sysv4)
6750 symcode='[DFNSTU]'
6751 ;;
6752esac
6753
6754# Handle CRLF in mingw tool chain
6755opt_cr=
6756case $build_os in
6757mingw*)
6758 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6759 ;;
6760esac
6761
6762# If we're using GNU nm, then use its standard symbol codes.
6763case `$NM -V 2>&1` in
6764*GNU* | *'with BFD'*)
6765 symcode='[ABCDGIRSTW]' ;;
6766esac
6767
6768# Try without a prefix undercore, then with it.
6769for ac_symprfx in "" "_"; do
6770
6771 # Write the raw and C identifiers.
6772 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
6773
6774 # Check to see that the pipe works correctly.
6775 pipe_works=no
6776
6777 rm -f conftest*
6778 cat > conftest.$ac_ext <<EOF
6779#ifdef __cplusplus
6780extern "C" {
6781#endif
6782char nm_test_var;
6783void nm_test_func(){}
6784#ifdef __cplusplus
6785}
6786#endif
6787int main(){nm_test_var='a';nm_test_func();return(0);}
6788EOF
6789
6790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6791 (eval $ac_compile) 2>&5
6792 ac_status=$?
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); }; then
6795 # Now try to grab the symbols.
6796 nlist=conftest.nm
6797 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6798 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6799 ac_status=$?
6800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801 (exit $ac_status); } && test -s "$nlist"; then
6802 # Try sorting and uniquifying the output.
6803 if sort "$nlist" | uniq > "$nlist"T; then
6804 mv -f "$nlist"T "$nlist"
6805 else
6806 rm -f "$nlist"T
6807 fi
6808
6809 # Make sure that we snagged all the symbols we need.
6810 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6811 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6812 cat <<EOF > conftest.$ac_ext
6813#ifdef __cplusplus
6814extern "C" {
6815#endif
6816
6817EOF
6818 # Now generate the symbol file.
6819 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6820
6821 cat <<EOF >> conftest.$ac_ext
6822#if defined (__STDC__) && __STDC__
6823# define lt_ptr_t void *
6824#else
6825# define lt_ptr_t char *
6826# define const
6827#endif
6828
6829/* The mapping between symbol names and symbols. */
6830const struct {
6831 const char *name;
6832 lt_ptr_t address;
6833}
6834lt_preloaded_symbols[] =
6835{
6836EOF
6837 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6838 cat <<\EOF >> conftest.$ac_ext
6839 {0, (lt_ptr_t) 0}
6840};
6841
6842#ifdef __cplusplus
6843}
6844#endif
6845EOF
6846 # Now try linking the two files.
6847 mv conftest.$ac_objext conftstm.$ac_objext
6848 lt_save_LIBS="$LIBS"
6849 lt_save_CFLAGS="$CFLAGS"
6850 LIBS="conftstm.$ac_objext"
6851 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6853 (eval $ac_link) 2>&5
6854 ac_status=$?
6855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6857 pipe_works=yes
6858 fi
6859 LIBS="$lt_save_LIBS"
6860 CFLAGS="$lt_save_CFLAGS"
6861 else
6862 echo "cannot find nm_test_func in $nlist" >&5
6863 fi
6864 else
6865 echo "cannot find nm_test_var in $nlist" >&5
6866 fi
6867 else
6868 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6869 fi
6870 else
6871 echo "$progname: failed program was:" >&5
6872 cat conftest.$ac_ext >&5
6873 fi
6874 rm -f conftest* conftst*
6875
6876 # Do not use the global_symbol_pipe unless it works.
6877 if test "$pipe_works" = yes; then
6878 break
6879 else
6880 lt_cv_sys_global_symbol_pipe=
6881 fi
6882done
6883
6884fi
6885
6886if test -z "$lt_cv_sys_global_symbol_pipe"; then
6887 lt_cv_sys_global_symbol_to_cdecl=
6888fi
6889if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6890 { echo "$as_me:$LINENO: result: failed" >&5
6891echo "${ECHO_T}failed" >&6; }
6892else
6893 { echo "$as_me:$LINENO: result: ok" >&5
6894echo "${ECHO_T}ok" >&6; }
6895fi
6896
6897{ echo "$as_me:$LINENO: checking for objdir" >&5
6898echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6899if test "${lt_cv_objdir+set}" = set; then
6900 echo $ECHO_N "(cached) $ECHO_C" >&6
6901else
6902 rm -f .libs 2>/dev/null
6903mkdir .libs 2>/dev/null
6904if test -d .libs; then
6905 lt_cv_objdir=.libs
6906else
6907 # MS-DOS does not allow filenames that begin with a dot.
6908 lt_cv_objdir=_libs
6909fi
6910rmdir .libs 2>/dev/null
6911fi
6912{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6913echo "${ECHO_T}$lt_cv_objdir" >&6; }
6914objdir=$lt_cv_objdir
6915
6916
6917
6918
6919
6920case $host_os in
6921aix3*)
6922 # AIX sometimes has problems with the GCC collect2 program. For some
6923 # reason, if we set the COLLECT_NAMES environment variable, the problems
6924 # vanish in a puff of smoke.
6925 if test "X${COLLECT_NAMES+set}" != Xset; then
6926 COLLECT_NAMES=
6927 export COLLECT_NAMES
6928 fi
6929 ;;
6930esac
6931
6932# Sed substitution that helps us do robust quoting. It backslashifies
6933# metacharacters that are still active within double-quoted strings.
6934Xsed='sed -e s/^X//'
6935sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6936
6937# Same as above, but do not quote variable references.
6938double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6939
6940# Sed substitution to delay expansion of an escaped shell variable in a
6941# double_quote_subst'ed string.
6942delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6943
6944# Sed substitution to avoid accidental globbing in evaled expressions
6945no_glob_subst='s/\*/\\\*/g'
6946
6947# Constants:
6948rm="rm -f"
6949
6950# Global variables:
6951default_ofile=libtool
6952can_build_shared=yes
6953
6954# All known linkers require a `.a' archive for static linking (except M$VC,
6955# which needs '.lib').
6956libext=a
6957ltmain="$ac_aux_dir/ltmain.sh"
6958ofile="$default_ofile"
6959with_gnu_ld="$lt_cv_prog_gnu_ld"
6960
6961if test -n "$ac_tool_prefix"; then
6962 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6963set dummy ${ac_tool_prefix}ar; ac_word=$2
6964{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6966if test "${ac_cv_prog_AR+set}" = set; then
6967 echo $ECHO_N "(cached) $ECHO_C" >&6
6968else
6969 if test -n "$AR"; then
6970 ac_cv_prog_AR="$AR" # Let the user override the test.
6971else
6972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6973for as_dir in $PATH
6974do
6975 IFS=$as_save_IFS
6976 test -z "$as_dir" && as_dir=.
6977 for ac_exec_ext in '' $ac_executable_extensions; do
6978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6979 ac_cv_prog_AR="${ac_tool_prefix}ar"
6980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6981 break 2
6982 fi
6983done
6984done
6985IFS=$as_save_IFS
6986
6987fi
6988fi
6989AR=$ac_cv_prog_AR
6990if test -n "$AR"; then
6991 { echo "$as_me:$LINENO: result: $AR" >&5
6992echo "${ECHO_T}$AR" >&6; }
6993else
6994 { echo "$as_me:$LINENO: result: no" >&5
6995echo "${ECHO_T}no" >&6; }
6996fi
6997
6998
6999fi
7000if test -z "$ac_cv_prog_AR"; then
7001 ac_ct_AR=$AR
7002 # Extract the first word of "ar", so it can be a program name with args.
7003set dummy ar; ac_word=$2
7004{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7005echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7006if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7007 echo $ECHO_N "(cached) $ECHO_C" >&6
7008else
7009 if test -n "$ac_ct_AR"; then
7010 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7011else
7012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7013for as_dir in $PATH
7014do
7015 IFS=$as_save_IFS
7016 test -z "$as_dir" && as_dir=.
7017 for ac_exec_ext in '' $ac_executable_extensions; do
7018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7019 ac_cv_prog_ac_ct_AR="ar"
7020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7021 break 2
7022 fi
7023done
7024done
7025IFS=$as_save_IFS
7026
7027fi
7028fi
7029ac_ct_AR=$ac_cv_prog_ac_ct_AR
7030if test -n "$ac_ct_AR"; then
7031 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7032echo "${ECHO_T}$ac_ct_AR" >&6; }
7033else
7034 { echo "$as_me:$LINENO: result: no" >&5
7035echo "${ECHO_T}no" >&6; }
7036fi
7037
7038 if test "x$ac_ct_AR" = x; then
7039 AR="false"
7040 else
7041 case $cross_compiling:$ac_tool_warned in
7042yes:)
7043{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7044whose name does not start with the host triplet. If you think this
7045configuration is useful to you, please write to autoconf@gnu.org." >&5
7046echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7047whose name does not start with the host triplet. If you think this
7048configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7049ac_tool_warned=yes ;;
7050esac
7051 AR=$ac_ct_AR
7052 fi
7053else
7054 AR="$ac_cv_prog_AR"
7055fi
7056
7057if test -n "$ac_tool_prefix"; then
7058 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7059set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7060{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7061echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7062if test "${ac_cv_prog_RANLIB+set}" = set; then
7063 echo $ECHO_N "(cached) $ECHO_C" >&6
7064else
7065 if test -n "$RANLIB"; then
7066 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7067else
7068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7069for as_dir in $PATH
7070do
7071 IFS=$as_save_IFS
7072 test -z "$as_dir" && as_dir=.
7073 for ac_exec_ext in '' $ac_executable_extensions; do
7074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7075 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7077 break 2
7078 fi
7079done
7080done
7081IFS=$as_save_IFS
7082
7083fi
7084fi
7085RANLIB=$ac_cv_prog_RANLIB
7086if test -n "$RANLIB"; then
7087 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7088echo "${ECHO_T}$RANLIB" >&6; }
7089else
7090 { echo "$as_me:$LINENO: result: no" >&5
7091echo "${ECHO_T}no" >&6; }
7092fi
7093
7094
7095fi
7096if test -z "$ac_cv_prog_RANLIB"; then
7097 ac_ct_RANLIB=$RANLIB
7098 # Extract the first word of "ranlib", so it can be a program name with args.
7099set dummy ranlib; ac_word=$2
7100{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7102if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7103 echo $ECHO_N "(cached) $ECHO_C" >&6
7104else
7105 if test -n "$ac_ct_RANLIB"; then
7106 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7107else
7108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109for as_dir in $PATH
7110do
7111 IFS=$as_save_IFS
7112 test -z "$as_dir" && as_dir=.
7113 for ac_exec_ext in '' $ac_executable_extensions; do
7114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7115 ac_cv_prog_ac_ct_RANLIB="ranlib"
7116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7117 break 2
7118 fi
7119done
7120done
7121IFS=$as_save_IFS
7122
7123fi
7124fi
7125ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7126if test -n "$ac_ct_RANLIB"; then
7127 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7128echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7129else
7130 { echo "$as_me:$LINENO: result: no" >&5
7131echo "${ECHO_T}no" >&6; }
7132fi
7133
7134 if test "x$ac_ct_RANLIB" = x; then
7135 RANLIB=":"
7136 else
7137 case $cross_compiling:$ac_tool_warned in
7138yes:)
7139{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7140whose name does not start with the host triplet. If you think this
7141configuration is useful to you, please write to autoconf@gnu.org." >&5
7142echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7143whose name does not start with the host triplet. If you think this
7144configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7145ac_tool_warned=yes ;;
7146esac
7147 RANLIB=$ac_ct_RANLIB
7148 fi
7149else
7150 RANLIB="$ac_cv_prog_RANLIB"
7151fi
7152
7153if test -n "$ac_tool_prefix"; then
7154 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7155set dummy ${ac_tool_prefix}strip; ac_word=$2
7156{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7157echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7158if test "${ac_cv_prog_STRIP+set}" = set; then
7159 echo $ECHO_N "(cached) $ECHO_C" >&6
7160else
7161 if test -n "$STRIP"; then
7162 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7163else
7164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7165for as_dir in $PATH
7166do
7167 IFS=$as_save_IFS
7168 test -z "$as_dir" && as_dir=.
7169 for ac_exec_ext in '' $ac_executable_extensions; do
7170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7171 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7173 break 2
7174 fi
7175done
7176done
7177IFS=$as_save_IFS
7178
7179fi
7180fi
7181STRIP=$ac_cv_prog_STRIP
7182if test -n "$STRIP"; then
7183 { echo "$as_me:$LINENO: result: $STRIP" >&5
7184echo "${ECHO_T}$STRIP" >&6; }
7185else
7186 { echo "$as_me:$LINENO: result: no" >&5
7187echo "${ECHO_T}no" >&6; }
7188fi
7189
7190
7191fi
7192if test -z "$ac_cv_prog_STRIP"; then
7193 ac_ct_STRIP=$STRIP
7194 # Extract the first word of "strip", so it can be a program name with args.
7195set dummy strip; ac_word=$2
7196{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7197echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7198if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7199 echo $ECHO_N "(cached) $ECHO_C" >&6
7200else
7201 if test -n "$ac_ct_STRIP"; then
7202 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7203else
7204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205for as_dir in $PATH
7206do
7207 IFS=$as_save_IFS
7208 test -z "$as_dir" && as_dir=.
7209 for ac_exec_ext in '' $ac_executable_extensions; do
7210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7211 ac_cv_prog_ac_ct_STRIP="strip"
7212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7213 break 2
7214 fi
7215done
7216done
7217IFS=$as_save_IFS
7218
7219fi
7220fi
7221ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7222if test -n "$ac_ct_STRIP"; then
7223 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7224echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7225else
7226 { echo "$as_me:$LINENO: result: no" >&5
7227echo "${ECHO_T}no" >&6; }
7228fi
7229
7230 if test "x$ac_ct_STRIP" = x; then
7231 STRIP=":"
7232 else
7233 case $cross_compiling:$ac_tool_warned in
7234yes:)
7235{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7236whose name does not start with the host triplet. If you think this
7237configuration is useful to you, please write to autoconf@gnu.org." >&5
7238echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7239whose name does not start with the host triplet. If you think this
7240configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7241ac_tool_warned=yes ;;
7242esac
7243 STRIP=$ac_ct_STRIP
7244 fi
7245else
7246 STRIP="$ac_cv_prog_STRIP"
7247fi
7248
7249
7250old_CC="$CC"
7251old_CFLAGS="$CFLAGS"
7252
7253# Set sane defaults for various variables
7254test -z "$AR" && AR=ar
7255test -z "$AR_FLAGS" && AR_FLAGS=cru
7256test -z "$AS" && AS=as
7257test -z "$CC" && CC=cc
7258test -z "$LTCC" && LTCC=$CC
7259test -z "$DLLTOOL" && DLLTOOL=dlltool
7260test -z "$LD" && LD=ld
7261test -z "$LN_S" && LN_S="ln -s"
7262test -z "$MAGIC_CMD" && MAGIC_CMD=file
7263test -z "$NM" && NM=nm
7264test -z "$SED" && SED=sed
7265test -z "$OBJDUMP" && OBJDUMP=objdump
7266test -z "$RANLIB" && RANLIB=:
7267test -z "$STRIP" && STRIP=:
7268test -z "$ac_objext" && ac_objext=o
7269
7270# Determine commands to create old-style static archives.
7271old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7272old_postinstall_cmds='chmod 644 $oldlib'
7273old_postuninstall_cmds=
7274
7275if test -n "$RANLIB"; then
7276 case $host_os in
7277 openbsd*)
7278 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7279 ;;
7280 *)
7281 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7282 ;;
7283 esac
7284 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7285fi
7286
7287# Only perform the check for file, if the check method requires it
7288case $deplibs_check_method in
7289file_magic*)
7290 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7291 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7292echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7293if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7294 echo $ECHO_N "(cached) $ECHO_C" >&6
7295else
7296 case $MAGIC_CMD in
7297[\\/*] | ?:[\\/]*)
7298 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7299 ;;
7300*)
7301 lt_save_MAGIC_CMD="$MAGIC_CMD"
7302 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7303 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7304 for ac_dir in $ac_dummy; do
7305 IFS="$lt_save_ifs"
7306 test -z "$ac_dir" && ac_dir=.
7307 if test -f $ac_dir/${ac_tool_prefix}file; then
7308 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7309 if test -n "$file_magic_test_file"; then
7310 case $deplibs_check_method in
7311 "file_magic "*)
7312 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7313 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7314 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7315 $EGREP "$file_magic_regex" > /dev/null; then
7316 :
7317 else
7318 cat <<EOF 1>&2
7319
7320*** Warning: the command libtool uses to detect shared libraries,
7321*** $file_magic_cmd, produces output that libtool cannot recognize.
7322*** The result is that libtool may fail to recognize shared libraries
7323*** as such. This will affect the creation of libtool libraries that
7324*** depend on shared libraries, but programs linked with such libtool
7325*** libraries will work regardless of this problem. Nevertheless, you
7326*** may want to report the problem to your system manager and/or to
7327*** bug-libtool@gnu.org
7328
7329EOF
7330 fi ;;
7331 esac
7332 fi
7333 break
7334 fi
7335 done
7336 IFS="$lt_save_ifs"
7337 MAGIC_CMD="$lt_save_MAGIC_CMD"
7338 ;;
7339esac
7340fi
7341
7342MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7343if test -n "$MAGIC_CMD"; then
7344 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7345echo "${ECHO_T}$MAGIC_CMD" >&6; }
7346else
7347 { echo "$as_me:$LINENO: result: no" >&5
7348echo "${ECHO_T}no" >&6; }
7349fi
7350
7351if test -z "$lt_cv_path_MAGIC_CMD"; then
7352 if test -n "$ac_tool_prefix"; then
7353 { echo "$as_me:$LINENO: checking for file" >&5
7354echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7355if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7356 echo $ECHO_N "(cached) $ECHO_C" >&6
7357else
7358 case $MAGIC_CMD in
7359[\\/*] | ?:[\\/]*)
7360 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7361 ;;
7362*)
7363 lt_save_MAGIC_CMD="$MAGIC_CMD"
7364 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7365 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7366 for ac_dir in $ac_dummy; do
7367 IFS="$lt_save_ifs"
7368 test -z "$ac_dir" && ac_dir=.
7369 if test -f $ac_dir/file; then
7370 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7371 if test -n "$file_magic_test_file"; then
7372 case $deplibs_check_method in
7373 "file_magic "*)
7374 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7375 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7376 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7377 $EGREP "$file_magic_regex" > /dev/null; then
7378 :
7379 else
7380 cat <<EOF 1>&2
7381
7382*** Warning: the command libtool uses to detect shared libraries,
7383*** $file_magic_cmd, produces output that libtool cannot recognize.
7384*** The result is that libtool may fail to recognize shared libraries
7385*** as such. This will affect the creation of libtool libraries that
7386*** depend on shared libraries, but programs linked with such libtool
7387*** libraries will work regardless of this problem. Nevertheless, you
7388*** may want to report the problem to your system manager and/or to
7389*** bug-libtool@gnu.org
7390
7391EOF
7392 fi ;;
7393 esac
7394 fi
7395 break
7396 fi
7397 done
7398 IFS="$lt_save_ifs"
7399 MAGIC_CMD="$lt_save_MAGIC_CMD"
7400 ;;
7401esac
7402fi
7403
7404MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7405if test -n "$MAGIC_CMD"; then
7406 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7407echo "${ECHO_T}$MAGIC_CMD" >&6; }
7408else
7409 { echo "$as_me:$LINENO: result: no" >&5
7410echo "${ECHO_T}no" >&6; }
7411fi
7412
7413 else
7414 MAGIC_CMD=:
7415 fi
7416fi
7417
7418 fi
7419 ;;
7420esac
7421
7422enable_dlopen=no
7423enable_win32_dll=yes
7424
7425# Check whether --enable-libtool-lock was given.
7426if test "${enable_libtool_lock+set}" = set; then
7427 enableval=$enable_libtool_lock;
7428fi
7429
7430test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7431
7432
7433# Check whether --with-pic was given.
7434if test "${with_pic+set}" = set; then
7435 withval=$with_pic; pic_mode="$withval"
7436else
7437 pic_mode=default
7438fi
7439
7440test -z "$pic_mode" && pic_mode=default
7441
7442# Use C for the default configuration in the libtool script
7443tagname=
7444lt_save_CC="$CC"
7445ac_ext=c
7446ac_cpp='$CPP $CPPFLAGS'
7447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7449ac_compiler_gnu=$ac_cv_c_compiler_gnu
7450
7451
7452# Source file extension for C test sources.
7453ac_ext=c
7454
7455# Object file extension for compiled C test sources.
7456objext=o
7457objext=$objext
7458
7459# Code to be used in simple compile tests
7460lt_simple_compile_test_code="int some_variable = 0;\n"
7461
7462# Code to be used in simple link tests
7463lt_simple_link_test_code='int main(){return(0);}\n'
7464
7465
7466# If no C compiler was specified, use CC.
7467LTCC=${LTCC-"$CC"}
7468
7469# Allow CC to be a program name with arguments.
7470compiler=$CC
7471
7472
7473#
7474# Check for any special shared library compilation flags.
7475#
7476lt_prog_cc_shlib=
7477if test "$GCC" = no; then
7478 case $host_os in
7479 sco3.2v5*)
7480 lt_prog_cc_shlib='-belf'
7481 ;;
7482 esac
7483fi
7484if test -n "$lt_prog_cc_shlib"; then
7485 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7486echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7487 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7488 else
7489 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7490echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7491 lt_cv_prog_cc_can_build_shared=no
7492 fi
7493fi
7494
7495
7496#
7497# Check to make sure the static flag actually works.
7498#
7499{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7500echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
7501if test "${lt_prog_compiler_static_works+set}" = set; then
7502 echo $ECHO_N "(cached) $ECHO_C" >&6
7503else
7504 lt_prog_compiler_static_works=no
7505 save_LDFLAGS="$LDFLAGS"
7506 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7507 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7508 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7509 # The compiler can only warn and ignore the option if not recognized
7510 # So say no if there are warnings
7511 if test -s conftest.err; then
7512 # Append any errors to the config.log.
7513 cat conftest.err 1>&5
7514 else
7515 lt_prog_compiler_static_works=yes
7516 fi
7517 fi
7518 $rm conftest*
7519 LDFLAGS="$save_LDFLAGS"
7520
7521fi
7522{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7523echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7524
7525if test x"$lt_prog_compiler_static_works" = xyes; then
7526 :
7527else
7528 lt_prog_compiler_static=
7529fi
7530
7531
7532
7533## CAVEAT EMPTOR:
7534## There is no encapsulation within the following macros, do not change
7535## the running order or otherwise move them around unless you know exactly
7536## what you are doing...
7537
7538lt_prog_compiler_no_builtin_flag=
7539
7540if test "$GCC" = yes; then
7541 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7542
7543
7544{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7545echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7546if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7547 echo $ECHO_N "(cached) $ECHO_C" >&6
7548else
7549 lt_cv_prog_compiler_rtti_exceptions=no
7550 ac_outfile=conftest.$ac_objext
7551 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7552 lt_compiler_flag="-fno-rtti -fno-exceptions"
7553 # Insert the option either (1) after the last *FLAGS variable, or
7554 # (2) before a word containing "conftest.", or (3) at the end.
7555 # Note that $ac_compile itself does not contain backslashes and begins
7556 # with a dollar sign (not a hyphen), so the echo should work correctly.
7557 # The option is referenced via a variable to avoid confusing sed.
7558 lt_compile=`echo "$ac_compile" | $SED \
7559 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7560 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7561 -e 's:$: $lt_compiler_flag:'`
7562 (eval echo "\"\$as_me:7562: $lt_compile\"" >&5)
7563 (eval "$lt_compile" 2>conftest.err)
7564 ac_status=$?
7565 cat conftest.err >&5
7566 echo "$as_me:7566: \$? = $ac_status" >&5
7567 if (exit $ac_status) && test -s "$ac_outfile"; then
7568 # The compiler can only warn and ignore the option if not recognized
7569 # So say no if there are warnings
7570 if test ! -s conftest.err; then
7571 lt_cv_prog_compiler_rtti_exceptions=yes
7572 fi
7573 fi
7574 $rm conftest*
7575
7576fi
7577{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7578echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7579
7580if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7581 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7582else
7583 :
7584fi
7585
7586fi
7587
7588lt_prog_compiler_wl=
7589lt_prog_compiler_pic=
7590lt_prog_compiler_static=
7591
7592{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7593echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7594
7595 if test "$GCC" = yes; then
7596 lt_prog_compiler_wl='-Wl,'
7597 lt_prog_compiler_static='-static'
7598
7599 case $host_os in
7600 aix*)
7601 # All AIX code is PIC.
7602 if test "$host_cpu" = ia64; then
7603 # AIX 5 now supports IA64 processor
7604 lt_prog_compiler_static='-Bstatic'
7605 fi
7606 ;;
7607
7608 amigaos*)
7609 # FIXME: we need at least 68020 code to build shared libraries, but
7610 # adding the `-m68020' flag to GCC prevents building anything better,
7611 # like `-m68040'.
7612 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7613 ;;
7614
7615 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7616 # PIC is the default for these OSes.
7617 ;;
7618
7619 mingw* | pw32* | os2*)
7620 # This hack is so that the source file can tell whether it is being
7621 # built for inclusion in a dll (and should export symbols for example).
7622 lt_prog_compiler_pic='-DDLL_EXPORT'
7623 ;;
7624
7625 darwin* | rhapsody*)
7626 # PIC is the default on this platform
7627 # Common symbols not allowed in MH_DYLIB files
7628 lt_prog_compiler_pic='-fno-common'
7629 ;;
7630
7631 msdosdjgpp*)
7632 # Just because we use GCC doesn't mean we suddenly get shared libraries
7633 # on systems that don't support them.
7634 lt_prog_compiler_can_build_shared=no
7635 enable_shared=no
7636 ;;
7637
7638 sysv4*MP*)
7639 if test -d /usr/nec; then
7640 lt_prog_compiler_pic=-Kconform_pic
7641 fi
7642 ;;
7643
7644 hpux*)
7645 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7646 # not for PA HP-UX.
7647 case "$host_cpu" in
7648 hppa*64*|ia64*)
7649 # +Z the default
7650 ;;
7651 *)
7652 lt_prog_compiler_pic='-fPIC'
7653 ;;
7654 esac
7655 ;;
7656
7657 *)
7658 lt_prog_compiler_pic='-fPIC'
7659 ;;
7660 esac
7661 else
7662 # PORTME Check for flag to pass linker flags through the system compiler.
7663 case $host_os in
7664 aix*)
7665 lt_prog_compiler_wl='-Wl,'
7666 if test "$host_cpu" = ia64; then
7667 # AIX 5 now supports IA64 processor
7668 lt_prog_compiler_static='-Bstatic'
7669 else
7670 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7671 fi
7672 ;;
7673
7674 mingw* | pw32* | os2*)
7675 # This hack is so that the source file can tell whether it is being
7676 # built for inclusion in a dll (and should export symbols for example).
7677 lt_prog_compiler_pic='-DDLL_EXPORT'
7678 ;;
7679
7680 hpux9* | hpux10* | hpux11*)
7681 lt_prog_compiler_wl='-Wl,'
7682 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7683 # not for PA HP-UX.
7684 case "$host_cpu" in
7685 hppa*64*|ia64*)
7686 # +Z the default
7687 ;;
7688 *)
7689 lt_prog_compiler_pic='+Z'
7690 ;;
7691 esac
7692 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7693 lt_prog_compiler_static='${wl}-a ${wl}archive'
7694 ;;
7695
7696 irix5* | irix6* | nonstopux*)
7697 lt_prog_compiler_wl='-Wl,'
7698 # PIC (with -KPIC) is the default.
7699 lt_prog_compiler_static='-non_shared'
7700 ;;
7701
7702 newsos6)
7703 lt_prog_compiler_pic='-KPIC'
7704 lt_prog_compiler_static='-Bstatic'
7705 ;;
7706
7707 linux*)
7708 case $CC in
7709 icc* | ecc*)
7710 lt_prog_compiler_wl='-Wl,'
7711 lt_prog_compiler_pic='-KPIC'
7712 lt_prog_compiler_static='-static'
7713 ;;
7714 ccc*)
7715 lt_prog_compiler_wl='-Wl,'
7716 # All Alpha code is PIC.
7717 lt_prog_compiler_static='-non_shared'
7718 ;;
7719 esac
7720 ;;
7721
7722 osf3* | osf4* | osf5*)
7723 lt_prog_compiler_wl='-Wl,'
7724 # All OSF/1 code is PIC.
7725 lt_prog_compiler_static='-non_shared'
7726 ;;
7727
7728 sco3.2v5*)
7729 lt_prog_compiler_pic='-Kpic'
7730 lt_prog_compiler_static='-dn'
7731 ;;
7732
7733 solaris*)
7734 lt_prog_compiler_wl='-Wl,'
7735 lt_prog_compiler_pic='-KPIC'
7736 lt_prog_compiler_static='-Bstatic'
7737 ;;
7738
7739 sunos4*)
7740 lt_prog_compiler_wl='-Qoption ld '
7741 lt_prog_compiler_pic='-PIC'
7742 lt_prog_compiler_static='-Bstatic'
7743 ;;
7744
7745 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7746 lt_prog_compiler_wl='-Wl,'
7747 lt_prog_compiler_pic='-KPIC'
7748 lt_prog_compiler_static='-Bstatic'
7749 ;;
7750
7751 sysv4*MP*)
7752 if test -d /usr/nec ;then
7753 lt_prog_compiler_pic='-Kconform_pic'
7754 lt_prog_compiler_static='-Bstatic'
7755 fi
7756 ;;
7757
7758 uts4*)
7759 lt_prog_compiler_pic='-pic'
7760 lt_prog_compiler_static='-Bstatic'
7761 ;;
7762
7763 *)
7764 lt_prog_compiler_can_build_shared=no
7765 ;;
7766 esac
7767 fi
7768
7769{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7770echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7771
7772#
7773# Check to make sure the PIC flag actually works.
7774#
7775if test -n "$lt_prog_compiler_pic"; then
7776
7777{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7778echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7779if test "${lt_prog_compiler_pic_works+set}" = set; then
7780 echo $ECHO_N "(cached) $ECHO_C" >&6
7781else
7782 lt_prog_compiler_pic_works=no
7783 ac_outfile=conftest.$ac_objext
7784 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7785 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7786 # Insert the option either (1) after the last *FLAGS variable, or
7787 # (2) before a word containing "conftest.", or (3) at the end.
7788 # Note that $ac_compile itself does not contain backslashes and begins
7789 # with a dollar sign (not a hyphen), so the echo should work correctly.
7790 # The option is referenced via a variable to avoid confusing sed.
7791 lt_compile=`echo "$ac_compile" | $SED \
7792 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7793 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7794 -e 's:$: $lt_compiler_flag:'`
7795 (eval echo "\"\$as_me:7795: $lt_compile\"" >&5)
7796 (eval "$lt_compile" 2>conftest.err)
7797 ac_status=$?
7798 cat conftest.err >&5
7799 echo "$as_me:7799: \$? = $ac_status" >&5
7800 if (exit $ac_status) && test -s "$ac_outfile"; then
7801 # The compiler can only warn and ignore the option if not recognized
7802 # So say no if there are warnings
7803 if test ! -s conftest.err; then
7804 lt_prog_compiler_pic_works=yes
7805 fi
7806 fi
7807 $rm conftest*
7808
7809fi
7810{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7811echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7812
7813if test x"$lt_prog_compiler_pic_works" = xyes; then
7814 case $lt_prog_compiler_pic in
7815 "" | " "*) ;;
7816 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7817 esac
7818else
7819 lt_prog_compiler_pic=
7820 lt_prog_compiler_can_build_shared=no
7821fi
7822
7823fi
7824case "$host_os" in
7825 # For platforms which do not support PIC, -DPIC is meaningless:
7826 *djgpp*)
7827 lt_prog_compiler_pic=
7828 ;;
7829 *)
7830 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7831 ;;
7832esac
7833
7834{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7835echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7836if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7837 echo $ECHO_N "(cached) $ECHO_C" >&6
7838else
7839 lt_cv_prog_compiler_c_o=no
7840 $rm -r conftest 2>/dev/null
7841 mkdir conftest
7842 cd conftest
7843 mkdir out
7844 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7845
7846 lt_compiler_flag="-o out/conftest2.$ac_objext"
7847 # Insert the option either (1) after the last *FLAGS variable, or
7848 # (2) before a word containing "conftest.", or (3) at the end.
7849 # Note that $ac_compile itself does not contain backslashes and begins
7850 # with a dollar sign (not a hyphen), so the echo should work correctly.
7851 lt_compile=`echo "$ac_compile" | $SED \
7852 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7853 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7854 -e 's:$: $lt_compiler_flag:'`
7855 (eval echo "\"\$as_me:7855: $lt_compile\"" >&5)
7856 (eval "$lt_compile" 2>out/conftest.err)
7857 ac_status=$?
7858 cat out/conftest.err >&5
7859 echo "$as_me:7859: \$? = $ac_status" >&5
7860 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7861 then
7862 # The compiler can only warn and ignore the option if not recognized
7863 # So say no if there are warnings
7864 if test ! -s out/conftest.err; then
7865 lt_cv_prog_compiler_c_o=yes
7866 fi
7867 fi
7868 chmod u+w .
7869 $rm conftest*
7870 # SGI C++ compiler will create directory out/ii_files/ for
7871 # template instantiation
7872 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7873 $rm out/* && rmdir out
7874 cd ..
7875 rmdir conftest
7876 $rm conftest*
7877
7878fi
7879{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7880echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7881
7882
7883hard_links="nottested"
7884if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7885 # do not overwrite the value of need_locks provided by the user
7886 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7887echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7888 hard_links=yes
7889 $rm conftest*
7890 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7891 touch conftest.a
7892 ln conftest.a conftest.b 2>&5 || hard_links=no
7893 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7894 { echo "$as_me:$LINENO: result: $hard_links" >&5
7895echo "${ECHO_T}$hard_links" >&6; }
7896 if test "$hard_links" = no; then
7897 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7898echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7899 need_locks=warn
7900 fi
7901else
7902 need_locks=no
7903fi
7904
7905{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7906echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7907
7908 runpath_var=
7909 allow_undefined_flag=
7910 enable_shared_with_static_runtimes=no
7911 archive_cmds=
7912 archive_expsym_cmds=
7913 old_archive_From_new_cmds=
7914 old_archive_from_expsyms_cmds=
7915 export_dynamic_flag_spec=
7916 whole_archive_flag_spec=
7917 thread_safe_flag_spec=
7918 hardcode_libdir_flag_spec=
7919 hardcode_libdir_flag_spec_ld=
7920 hardcode_libdir_separator=
7921 hardcode_direct=no
7922 hardcode_minus_L=no
7923 hardcode_shlibpath_var=unsupported
7924 link_all_deplibs=unknown
7925 hardcode_automatic=no
7926 module_cmds=
7927 module_expsym_cmds=
7928 always_export_symbols=no
7929 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7930 # include_expsyms should be a list of space-separated symbols to be *always*
7931 # included in the symbol list
7932 include_expsyms=
7933 # exclude_expsyms can be an extended regexp of symbols to exclude
7934 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7935 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7936 # as well as any symbol that contains `d'.
7937 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7938 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7939 # platforms (ab)use it in PIC code, but their linkers get confused if
7940 # the symbol is explicitly referenced. Since portable code cannot
7941 # rely on this symbol name, it's probably fine to never include it in
7942 # preloaded symbol tables.
7943 extract_expsyms_cmds=
7944
7945 case $host_os in
7946 cygwin* | mingw* | pw32*)
7947 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7948 # When not using gcc, we currently assume that we are using
7949 # Microsoft Visual C++.
7950 if test "$GCC" != yes; then
7951 with_gnu_ld=no
7952 fi
7953 ;;
7954 openbsd*)
7955 with_gnu_ld=no
7956 ;;
7957 esac
7958
7959 ld_shlibs=yes
7960 if test "$with_gnu_ld" = yes; then
7961 # If archive_cmds runs LD, not CC, wlarc should be empty
7962 wlarc='${wl}'
7963
7964 # See if GNU ld supports shared libraries.
7965 case $host_os in
7966 aix3* | aix4* | aix5*)
7967 # On AIX/PPC, the GNU linker is very broken
7968 if test "$host_cpu" != ia64; then
7969 ld_shlibs=no
7970 cat <<EOF 1>&2
7971
7972*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7973*** to be unable to reliably create shared libraries on AIX.
7974*** Therefore, libtool is disabling shared libraries support. If you
7975*** really care for shared libraries, you may want to modify your PATH
7976*** so that a non-GNU linker is found, and then restart.
7977
7978EOF
7979 fi
7980 ;;
7981
7982 amigaos*)
7983 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7984 hardcode_libdir_flag_spec='-L$libdir'
7985 hardcode_minus_L=yes
7986
7987 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7988 # that the semantics of dynamic libraries on AmigaOS, at least up
7989 # to version 4, is to share data among multiple programs linked
7990 # with the same dynamic library. Since this doesn't match the
7991 # behavior of shared libraries on other platforms, we can't use
7992 # them.
7993 ld_shlibs=no
7994 ;;
7995
7996 beos*)
7997 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7998 allow_undefined_flag=unsupported
7999 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8000 # support --undefined. This deserves some investigation. FIXME
8001 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8002 else
8003 ld_shlibs=no
8004 fi
8005 ;;
8006
8007 cygwin* | mingw* | pw32*)
8008 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8009 # as there is no search path for DLLs.
8010 hardcode_libdir_flag_spec='-L$libdir'
8011 allow_undefined_flag=unsupported
8012 always_export_symbols=no
8013 enable_shared_with_static_runtimes=yes
8014 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8015
8016 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8017 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8018 # If the export-symbols file already is a .def file (1st line
8019 # is EXPORTS), use it as is; otherwise, prepend...
8020 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8021 cp $export_symbols $output_objdir/$soname.def;
8022 else
8023 echo EXPORTS > $output_objdir/$soname.def;
8024 cat $export_symbols >> $output_objdir/$soname.def;
8025 fi~
8026 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8027 else
8028 ld_shlibs=no
8029 fi
8030 ;;
8031
8032 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
8033 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8034 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8035 wlarc=
8036 else
8037 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8038 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8039 fi
8040 ;;
8041
8042 solaris* | sysv5*)
8043 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8044 ld_shlibs=no
8045 cat <<EOF 1>&2
8046
8047*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8048*** create shared libraries on Solaris systems. Therefore, libtool
8049*** is disabling shared libraries support. We urge you to upgrade GNU
8050*** binutils to release 2.9.1 or newer. Another option is to modify
8051*** your PATH or compiler configuration so that the native linker is
8052*** used, and then restart.
8053
8054EOF
8055 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8056 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8057 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8058 else
8059 ld_shlibs=no
8060 fi
8061 ;;
8062
8063 sunos4*)
8064 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8065 wlarc=
8066 hardcode_direct=yes
8067 hardcode_shlibpath_var=no
8068 ;;
8069
8070 linux*)
8071 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8072 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8073 archive_cmds="$tmp_archive_cmds"
8074 supports_anon_versioning=no
8075 case `$LD -v 2>/dev/null` in
8076 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8077 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8078 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8079 *\ 2.11.*) ;; # other 2.11 versions
8080 *) supports_anon_versioning=yes ;;
8081 esac
8082 if test $supports_anon_versioning = yes; then
8083 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8084cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8085$echo "local: *; };" >> $output_objdir/$libname.ver~
8086 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8087 else
8088 archive_expsym_cmds="$tmp_archive_cmds"
8089 fi
8090 link_all_deplibs=no
8091 else
8092 ld_shlibs=no
8093 fi
8094 ;;
8095
8096 *)
8097 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8098 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8099 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8100 else
8101 ld_shlibs=no
8102 fi
8103 ;;
8104 esac
8105
8106 if test "$ld_shlibs" = yes; then
8107 runpath_var=LD_RUN_PATH
8108 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8109 export_dynamic_flag_spec='${wl}--export-dynamic'
8110 # ancient GNU ld didn't support --whole-archive et. al.
8111 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8112 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8113 else
8114 whole_archive_flag_spec=
8115 fi
8116 fi
8117 else
8118 # PORTME fill in a description of your system's linker (not GNU ld)
8119 case $host_os in
8120 aix3*)
8121 allow_undefined_flag=unsupported
8122 always_export_symbols=yes
8123 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8124 # Note: this linker hardcodes the directories in LIBPATH if there
8125 # are no directories specified by -L.
8126 hardcode_minus_L=yes
8127 if test "$GCC" = yes && test -z "$link_static_flag"; then
8128 # Neither direct hardcoding nor static linking is supported with a
8129 # broken collect2.
8130 hardcode_direct=unsupported
8131 fi
8132 ;;
8133
8134 aix4* | aix5*)
8135 if test "$host_cpu" = ia64; then
8136 # On IA64, the linker does run time linking by default, so we don't
8137 # have to do anything special.
8138 aix_use_runtimelinking=no
8139 exp_sym_flag='-Bexport'
8140 no_entry_flag=""
8141 else
8142 # If we're using GNU nm, then we don't want the "-C" option.
8143 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8144 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8145 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8146 else
8147 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8148 fi
8149 aix_use_runtimelinking=no
8150
8151 # Test if we are trying to use run time linking or normal
8152 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8153 # need to do runtime linking.
8154 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8155 for ld_flag in $LDFLAGS; do
8156 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8157 aix_use_runtimelinking=yes
8158 break
8159 fi
8160 done
8161 esac
8162
8163 exp_sym_flag='-bexport'
8164 no_entry_flag='-bnoentry'
8165 fi
8166
8167 # When large executables or shared objects are built, AIX ld can
8168 # have problems creating the table of contents. If linking a library
8169 # or program results in "error TOC overflow" add -mminimal-toc to
8170 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8171 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8172
8173 archive_cmds=''
8174 hardcode_direct=yes
8175 hardcode_libdir_separator=':'
8176 link_all_deplibs=yes
8177
8178 if test "$GCC" = yes; then
8179 case $host_os in aix4.012|aix4.012.*)
8180 # We only want to do this on AIX 4.2 and lower, the check
8181 # below for broken collect2 doesn't work under 4.3+
8182 collect2name=`${CC} -print-prog-name=collect2`
8183 if test -f "$collect2name" && \
8184 strings "$collect2name" | grep resolve_lib_name >/dev/null
8185 then
8186 # We have reworked collect2
8187 hardcode_direct=yes
8188 else
8189 # We have old collect2
8190 hardcode_direct=unsupported
8191 # It fails to find uninstalled libraries when the uninstalled
8192 # path is not listed in the libpath. Setting hardcode_minus_L
8193 # to unsupported forces relinking
8194 hardcode_minus_L=yes
8195 hardcode_libdir_flag_spec='-L$libdir'
8196 hardcode_libdir_separator=
8197 fi
8198 esac
8199 shared_flag='-shared'
8200 else
8201 # not using gcc
8202 if test "$host_cpu" = ia64; then
8203 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8204 # chokes on -Wl,-G. The following line is correct:
8205 shared_flag='-G'
8206 else
8207 if test "$aix_use_runtimelinking" = yes; then
8208 shared_flag='${wl}-G'
8209 else
8210 shared_flag='${wl}-bM:SRE'
8211 fi
8212 fi
8213 fi
8214
8215 # It seems that -bexpall does not export symbols beginning with
8216 # underscore (_), so it is better to generate a list of symbols to export.
8217 always_export_symbols=yes
8218 if test "$aix_use_runtimelinking" = yes; then
8219 # Warning - without using the other runtime loading flags (-brtl),
8220 # -berok will link without error, but may produce a broken library.
8221 allow_undefined_flag='-berok'
8222 # Determine the default libpath from the value encoded in an empty executable.
8223 cat >conftest.$ac_ext <<_ACEOF
8224/* confdefs.h. */
8225_ACEOF
8226cat confdefs.h >>conftest.$ac_ext
8227cat >>conftest.$ac_ext <<_ACEOF
8228/* end confdefs.h. */
8229
8230int
8231main ()
8232{
8233
8234 ;
8235 return 0;
8236}
8237_ACEOF
8238rm -f conftest.$ac_objext conftest$ac_exeext
8239if { (ac_try="$ac_link"
8240case "(($ac_try" in
8241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8242 *) ac_try_echo=$ac_try;;
8243esac
8244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8245 (eval "$ac_link") 2>conftest.er1
8246 ac_status=$?
8247 grep -v '^ *+' conftest.er1 >conftest.err
8248 rm -f conftest.er1
8249 cat conftest.err >&5
8250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251 (exit $ac_status); } && {
8252 test -z "$ac_c_werror_flag" ||
8253 test ! -s conftest.err
8254 } && test -s conftest$ac_exeext &&
8255 $as_test_x conftest$ac_exeext; then
8256
8257aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8258}'`
8259# Check for a 64-bit object if we didn't find anything.
8260if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8261}'`; fi
8262else
8263 echo "$as_me: failed program was:" >&5
8264sed 's/^/| /' conftest.$ac_ext >&5
8265
8266
8267fi
8268
8269rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8270 conftest$ac_exeext conftest.$ac_ext
8271if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8272
8273 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8274 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8275 else
8276 if test "$host_cpu" = ia64; then
8277 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8278 allow_undefined_flag="-z nodefs"
8279 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
8280 else
8281 # Determine the default libpath from the value encoded in an empty executable.
8282 cat >conftest.$ac_ext <<_ACEOF
8283/* confdefs.h. */
8284_ACEOF
8285cat confdefs.h >>conftest.$ac_ext
8286cat >>conftest.$ac_ext <<_ACEOF
8287/* end confdefs.h. */
8288
8289int
8290main ()
8291{
8292
8293 ;
8294 return 0;
8295}
8296_ACEOF
8297rm -f conftest.$ac_objext conftest$ac_exeext
8298if { (ac_try="$ac_link"
8299case "(($ac_try" in
8300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8301 *) ac_try_echo=$ac_try;;
8302esac
8303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8304 (eval "$ac_link") 2>conftest.er1
8305 ac_status=$?
8306 grep -v '^ *+' conftest.er1 >conftest.err
8307 rm -f conftest.er1
8308 cat conftest.err >&5
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310 (exit $ac_status); } && {
8311 test -z "$ac_c_werror_flag" ||
8312 test ! -s conftest.err
8313 } && test -s conftest$ac_exeext &&
8314 $as_test_x conftest$ac_exeext; then
8315
8316aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8317}'`
8318# Check for a 64-bit object if we didn't find anything.
8319if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8320}'`; fi
8321else
8322 echo "$as_me: failed program was:" >&5
8323sed 's/^/| /' conftest.$ac_ext >&5
8324
8325
8326fi
8327
8328rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8329 conftest$ac_exeext conftest.$ac_ext
8330if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8331
8332 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8333 # Warning - without using the other run time loading flags,
8334 # -berok will link without error, but may produce a broken library.
8335 no_undefined_flag=' ${wl}-bernotok'
8336 allow_undefined_flag=' ${wl}-berok'
8337 # -bexpall does not export symbols beginning with underscore (_)
8338 always_export_symbols=yes
8339 # Exported symbols can be pulled into shared objects from archives
8340 whole_archive_flag_spec=' '
8341 archive_cmds_need_lc=yes
8342 # This is similar to how AIX traditionally builds it's shared libraries.
8343 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8344 fi
8345 fi
8346 ;;
8347
8348 amigaos*)
8349 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8350 hardcode_libdir_flag_spec='-L$libdir'
8351 hardcode_minus_L=yes
8352 # see comment about different semantics on the GNU ld section
8353 ld_shlibs=no
8354 ;;
8355
8356 bsdi4*)
8357 export_dynamic_flag_spec=-rdynamic
8358 ;;
8359
8360 cygwin* | mingw* | pw32*)
8361 # When not using gcc, we currently assume that we are using
8362 # Microsoft Visual C++.
8363 # hardcode_libdir_flag_spec is actually meaningless, as there is
8364 # no search path for DLLs.
8365 hardcode_libdir_flag_spec=' '
8366 allow_undefined_flag=unsupported
8367 # Tell ltmain to make .lib files, not .a files.
8368 libext=lib
8369 # Tell ltmain to make .dll files, not .so files.
8370 shrext_cmds=".dll"
8371 # FIXME: Setting linknames here is a bad hack.
8372 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8373 # The linker will automatically build a .lib file if we build a DLL.
8374 old_archive_From_new_cmds='true'
8375 # FIXME: Should let the user specify the lib program.
8376 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8377 fix_srcfile_path='`cygpath -w "$srcfile"`'
8378 enable_shared_with_static_runtimes=yes
8379 ;;
8380
8381 darwin* | rhapsody*)
8382 if test "$GXX" = yes ; then
8383 archive_cmds_need_lc=no
8384 case "$host_os" in
8385 rhapsody* | darwin1.[012])
8386 allow_undefined_flag='-undefined suppress'
8387 ;;
8388 *) # Darwin 1.3 on
8389 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8390 allow_undefined_flag='-flat_namespace -undefined suppress'
8391 else
8392 case ${MACOSX_DEPLOYMENT_TARGET} in
8393 10.[012])
8394 allow_undefined_flag='-flat_namespace -undefined suppress'
8395 ;;
8396 10.*)
8397 allow_undefined_flag='-undefined dynamic_lookup'
8398 ;;
8399 esac
8400 fi
8401 ;;
8402 esac
8403 lt_int_apple_cc_single_mod=no
8404 output_verbose_link_cmd='echo'
8405 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
8406 lt_int_apple_cc_single_mod=yes
8407 fi
8408 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8409 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8410 else
8411 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8412 fi
8413 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8414 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8415 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8416 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8417 else
8418 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8419 fi
8420 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8421 hardcode_direct=no
8422 hardcode_automatic=yes
8423 hardcode_shlibpath_var=unsupported
8424 whole_archive_flag_spec='-all_load $convenience'
8425 link_all_deplibs=yes
8426 else
8427 ld_shlibs=no
8428 fi
8429 ;;
8430
8431 dgux*)
8432 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8433 hardcode_libdir_flag_spec='-L$libdir'
8434 hardcode_shlibpath_var=no
8435 ;;
8436
8437 freebsd1*)
8438 ld_shlibs=no
8439 ;;
8440
8441 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8442 # support. Future versions do this automatically, but an explicit c++rt0.o
8443 # does not break anything, and helps significantly (at the cost of a little
8444 # extra space).
8445 freebsd2.2*)
8446 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8447 hardcode_libdir_flag_spec='-R$libdir'
8448 hardcode_direct=yes
8449 hardcode_shlibpath_var=no
8450 ;;
8451
8452 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8453 freebsd2*)
8454 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8455 hardcode_direct=yes
8456 hardcode_minus_L=yes
8457 hardcode_shlibpath_var=no
8458 ;;
8459
8460 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8461 freebsd* | kfreebsd*-gnu)
8462 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8463 hardcode_libdir_flag_spec='-R$libdir'
8464 hardcode_direct=yes
8465 hardcode_shlibpath_var=no
8466 ;;
8467
8468 hpux9*)
8469 if test "$GCC" = yes; then
8470 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8471 else
8472 archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8473 fi
8474 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8475 hardcode_libdir_separator=:
8476 hardcode_direct=yes
8477
8478 # hardcode_minus_L: Not really in the search PATH,
8479 # but as the default location of the library.
8480 hardcode_minus_L=yes
8481 export_dynamic_flag_spec='${wl}-E'
8482 ;;
8483
8484 hpux10* | hpux11*)
8485 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8486 case "$host_cpu" in
8487 hppa*64*|ia64*)
8488 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8489 ;;
8490 *)
8491 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8492 ;;
8493 esac
8494 else
8495 case "$host_cpu" in
8496 hppa*64*|ia64*)
8497 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8498 ;;
8499 *)
8500 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8501 ;;
8502 esac
8503 fi
8504 if test "$with_gnu_ld" = no; then
8505 case "$host_cpu" in
8506 hppa*64*)
8507 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8508 hardcode_libdir_flag_spec_ld='+b $libdir'
8509 hardcode_libdir_separator=:
8510 hardcode_direct=no
8511 hardcode_shlibpath_var=no
8512 ;;
8513 ia64*)
8514 hardcode_libdir_flag_spec='-L$libdir'
8515 hardcode_direct=no
8516 hardcode_shlibpath_var=no
8517
8518 # hardcode_minus_L: Not really in the search PATH,
8519 # but as the default location of the library.
8520 hardcode_minus_L=yes
8521 ;;
8522 *)
8523 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8524 hardcode_libdir_separator=:
8525 hardcode_direct=yes
8526 export_dynamic_flag_spec='${wl}-E'
8527
8528 # hardcode_minus_L: Not really in the search PATH,
8529 # but as the default location of the library.
8530 hardcode_minus_L=yes
8531 ;;
8532 esac
8533 fi
8534 ;;
8535
8536 irix5* | irix6* | nonstopux*)
8537 if test "$GCC" = yes; then
8538 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8539 else
8540 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8541 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8542 fi
8543 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8544 hardcode_libdir_separator=:
8545 link_all_deplibs=yes
8546 ;;
8547
8548 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
8549 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8550 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8551 else
8552 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8553 fi
8554 hardcode_libdir_flag_spec='-R$libdir'
8555 hardcode_direct=yes
8556 hardcode_shlibpath_var=no
8557 ;;
8558
8559 newsos6)
8560 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8561 hardcode_direct=yes
8562 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8563 hardcode_libdir_separator=:
8564 hardcode_shlibpath_var=no
8565 ;;
8566
8567 openbsd*)
8568 hardcode_direct=yes
8569 hardcode_shlibpath_var=no
8570 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8571 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8572 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8573 export_dynamic_flag_spec='${wl}-E'
8574 else
8575 case $host_os in
8576 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8577 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8578 hardcode_libdir_flag_spec='-R$libdir'
8579 ;;
8580 *)
8581 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8582 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8583 ;;
8584 esac
8585 fi
8586 ;;
8587
8588 os2*)
8589 hardcode_libdir_flag_spec='-L$libdir'
8590 hardcode_minus_L=yes
8591 allow_undefined_flag=unsupported
8592 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8593 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8594 ;;
8595
8596 osf3*)
8597 if test "$GCC" = yes; then
8598 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8599 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8600 else
8601 allow_undefined_flag=' -expect_unresolved \*'
8602 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8603 fi
8604 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8605 hardcode_libdir_separator=:
8606 ;;
8607
8608 osf4* | osf5*) # as osf3* with the addition of -msym flag
8609 if test "$GCC" = yes; then
8610 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8611 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8612 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8613 else
8614 allow_undefined_flag=' -expect_unresolved \*'
8615 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8616 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8617 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
8618
8619 # Both c and cxx compiler support -rpath directly
8620 hardcode_libdir_flag_spec='-rpath $libdir'
8621 fi
8622 hardcode_libdir_separator=:
8623 ;;
8624
8625 sco3.2v5*)
8626 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8627 hardcode_shlibpath_var=no
8628 export_dynamic_flag_spec='${wl}-Bexport'
8629 runpath_var=LD_RUN_PATH
8630 hardcode_runpath_var=yes
8631 ;;
8632
8633 solaris*)
8634 no_undefined_flag=' -z text'
8635 if test "$GCC" = yes; then
8636 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8637 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8638 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8639 else
8640 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8641 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8642 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8643 fi
8644 hardcode_libdir_flag_spec='-R$libdir'
8645 hardcode_shlibpath_var=no
8646 case $host_os in
8647 solaris2.[0-5] | solaris2.[0-5].*) ;;
8648 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
8649 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8650 esac
8651 link_all_deplibs=yes
8652 ;;
8653
8654 sunos4*)
8655 if test "x$host_vendor" = xsequent; then
8656 # Use $CC to link under sequent, because it throws in some extra .o
8657 # files that make .init and .fini sections work.
8658 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8659 else
8660 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8661 fi
8662 hardcode_libdir_flag_spec='-L$libdir'
8663 hardcode_direct=yes
8664 hardcode_minus_L=yes
8665 hardcode_shlibpath_var=no
8666 ;;
8667
8668 sysv4)
8669 case $host_vendor in
8670 sni)
8671 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8672 hardcode_direct=yes # is this really true???
8673 ;;
8674 siemens)
8675 ## LD is ld it makes a PLAMLIB
8676 ## CC just makes a GrossModule.
8677 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8678 reload_cmds='$CC -r -o $output$reload_objs'
8679 hardcode_direct=no
8680 ;;
8681 motorola)
8682 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8683 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8684 ;;
8685 esac
8686 runpath_var='LD_RUN_PATH'
8687 hardcode_shlibpath_var=no
8688 ;;
8689
8690 sysv4.3*)
8691 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8692 hardcode_shlibpath_var=no
8693 export_dynamic_flag_spec='-Bexport'
8694 ;;
8695
8696 sysv4*MP*)
8697 if test -d /usr/nec; then
8698 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8699 hardcode_shlibpath_var=no
8700 runpath_var=LD_RUN_PATH
8701 hardcode_runpath_var=yes
8702 ld_shlibs=yes
8703 fi
8704 ;;
8705
8706 sysv4.2uw2*)
8707 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8708 hardcode_direct=yes
8709 hardcode_minus_L=no
8710 hardcode_shlibpath_var=no
8711 hardcode_runpath_var=yes
8712 runpath_var=LD_RUN_PATH
8713 ;;
8714
8715 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8716 no_undefined_flag='${wl}-z ${wl}text'
8717 if test "$GCC" = yes; then
8718 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8719 else
8720 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8721 fi
8722 runpath_var='LD_RUN_PATH'
8723 hardcode_shlibpath_var=no
8724 ;;
8725
8726 sysv5*)
8727 no_undefined_flag=' -z text'
8728 # $CC -shared without GNU ld will not create a library from C++
8729 # object files and a static libstdc++, better avoid it by now
8730 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8731 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8732 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8733 hardcode_libdir_flag_spec=
8734 hardcode_shlibpath_var=no
8735 runpath_var='LD_RUN_PATH'
8736 ;;
8737
8738 uts4*)
8739 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8740 hardcode_libdir_flag_spec='-L$libdir'
8741 hardcode_shlibpath_var=no
8742 ;;
8743
8744 *)
8745 ld_shlibs=no
8746 ;;
8747 esac
8748 fi
8749
8750{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8751echo "${ECHO_T}$ld_shlibs" >&6; }
8752test "$ld_shlibs" = no && can_build_shared=no
8753
8754variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8755if test "$GCC" = yes; then
8756 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8757fi
8758
8759#
8760# Do we need to explicitly link libc?
8761#
8762case "x$archive_cmds_need_lc" in
8763x|xyes)
8764 # Assume -lc should be added
8765 archive_cmds_need_lc=yes
8766
8767 if test "$enable_shared" = yes && test "$GCC" = yes; then
8768 case $archive_cmds in
8769 *'~'*)
8770 # FIXME: we may have to deal with multi-command sequences.
8771 ;;
8772 '$CC '*)
8773 # Test whether the compiler implicitly links with -lc since on some
8774 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8775 # to ld, don't add -lc before -lgcc.
8776 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8777echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8778 $rm conftest*
8779 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8780
8781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8782 (eval $ac_compile) 2>&5
8783 ac_status=$?
8784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 (exit $ac_status); } 2>conftest.err; then
8786 soname=conftest
8787 lib=conftest
8788 libobjs=conftest.$ac_objext
8789 deplibs=
8790 wl=$lt_prog_compiler_wl
8791 compiler_flags=-v
8792 linker_flags=-v
8793 verstring=
8794 output_objdir=.
8795 libname=conftest
8796 lt_save_allow_undefined_flag=$allow_undefined_flag
8797 allow_undefined_flag=
8798 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8799 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8800 ac_status=$?
8801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802 (exit $ac_status); }
8803 then
8804 archive_cmds_need_lc=no
8805 else
8806 archive_cmds_need_lc=yes
8807 fi
8808 allow_undefined_flag=$lt_save_allow_undefined_flag
8809 else
8810 cat conftest.err 1>&5
8811 fi
8812 $rm conftest*
8813 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8814echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8815 ;;
8816 esac
8817 fi
8818 ;;
8819esac
8820
8821{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8822echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8823library_names_spec=
8824libname_spec='lib$name'
8825soname_spec=
8826shrext_cmds=".so"
8827postinstall_cmds=
8828postuninstall_cmds=
8829finish_cmds=
8830finish_eval=
8831shlibpath_var=
8832shlibpath_overrides_runpath=unknown
8833version_type=none
8834dynamic_linker="$host_os ld.so"
8835sys_lib_dlsearch_path_spec="/lib /usr/lib"
8836if test "$GCC" = yes; then
8837 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8838 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8839 # if the path contains ";" then we assume it to be the separator
8840 # otherwise default to the standard path separator (i.e. ":") - it is
8841 # assumed that no part of a normal pathname contains ";" but that should
8842 # okay in the real world where ";" in dirpaths is itself problematic.
8843 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8844 else
8845 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8846 fi
8847else
8848 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8849fi
8850need_lib_prefix=unknown
8851hardcode_into_libs=no
8852
8853# when you set need_version to no, make sure it does not cause -set_version
8854# flags to be left without arguments
8855need_version=unknown
8856
8857case $host_os in
8858aix3*)
8859 version_type=linux
8860 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8861 shlibpath_var=LIBPATH
8862
8863 # AIX 3 has no versioning support, so we append a major version to the name.
8864 soname_spec='${libname}${release}${shared_ext}$major'
8865 ;;
8866
8867aix4* | aix5*)
8868 version_type=linux
8869 need_lib_prefix=no
8870 need_version=no
8871 hardcode_into_libs=yes
8872 if test "$host_cpu" = ia64; then
8873 # AIX 5 supports IA64
8874 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8875 shlibpath_var=LD_LIBRARY_PATH
8876 else
8877 # With GCC up to 2.95.x, collect2 would create an import file
8878 # for dependence libraries. The import file would start with
8879 # the line `#! .'. This would cause the generated library to
8880 # depend on `.', always an invalid library. This was fixed in
8881 # development snapshots of GCC prior to 3.0.
8882 case $host_os in
8883 aix4 | aix4.[01] | aix4.[01].*)
8884 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8885 echo ' yes '
8886 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8887 :
8888 else
8889 can_build_shared=no
8890 fi
8891 ;;
8892 esac
8893 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8894 # soname into executable. Probably we can add versioning support to
8895 # collect2, so additional links can be useful in future.
8896 if test "$aix_use_runtimelinking" = yes; then
8897 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8898 # instead of lib<name>.a to let people know that these are not
8899 # typical AIX shared libraries.
8900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8901 else
8902 # We preserve .a as extension for shared libraries through AIX4.2
8903 # and later when we are not doing run time linking.
8904 library_names_spec='${libname}${release}.a $libname.a'
8905 soname_spec='${libname}${release}${shared_ext}$major'
8906 fi
8907 shlibpath_var=LIBPATH
8908 fi
8909 ;;
8910
8911amigaos*)
8912 library_names_spec='$libname.ixlibrary $libname.a'
8913 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8914 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8915 ;;
8916
8917beos*)
8918 library_names_spec='${libname}${shared_ext}'
8919 dynamic_linker="$host_os ld.so"
8920 shlibpath_var=LIBRARY_PATH
8921 ;;
8922
8923bsdi4*)
8924 version_type=linux
8925 need_version=no
8926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8927 soname_spec='${libname}${release}${shared_ext}$major'
8928 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8929 shlibpath_var=LD_LIBRARY_PATH
8930 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8931 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8932 # the default ld.so.conf also contains /usr/contrib/lib and
8933 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8934 # libtool to hard-code these into programs
8935 ;;
8936
8937cygwin* | mingw* | pw32*)
8938 version_type=windows
8939 shrext_cmds=".dll"
8940 need_version=no
8941 need_lib_prefix=no
8942
8943 case $GCC,$host_os in
8944 yes,cygwin* | yes,mingw* | yes,pw32*)
8945 library_names_spec='$libname.dll.a'
8946 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8947 postinstall_cmds='base_file=`basename \${file}`~
8948 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8949 dldir=$destdir/`dirname \$dlpath`~
8950 test -d \$dldir || mkdir -p \$dldir~
8951 $install_prog $dir/$dlname \$dldir/$dlname'
8952 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8953 dlpath=$dir/\$dldll~
8954 $rm \$dlpath'
8955 shlibpath_overrides_runpath=yes
8956
8957 case $host_os in
8958 cygwin*)
8959 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8960 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8961 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8962 ;;
8963 mingw*)
8964 # MinGW DLLs use traditional 'lib' prefix
8965 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8966 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8967 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8968 # It is most probably a Windows format PATH printed by
8969 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8970 # path with ; separators, and with drive letters. We can handle the
8971 # drive letters (cygwin fileutils understands them), so leave them,
8972 # especially as we might pass files found there to a mingw objdump,
8973 # which wouldn't understand a cygwinified path. Ahh.
8974 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8975 else
8976 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8977 fi
8978 ;;
8979 pw32*)
8980 # pw32 DLLs use 'pw' prefix rather than 'lib'
8981 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8982 ;;
8983 esac
8984 ;;
8985
8986 *)
8987 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8988 ;;
8989 esac
8990 dynamic_linker='Win32 ld.exe'
8991 # FIXME: first we should search . and the directory the executable is in
8992 shlibpath_var=PATH
8993 ;;
8994
8995darwin* | rhapsody*)
8996 dynamic_linker="$host_os dyld"
8997 version_type=darwin
8998 need_lib_prefix=no
8999 need_version=no
9000 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9001 soname_spec='${libname}${release}${major}$shared_ext'
9002 shlibpath_overrides_runpath=yes
9003 shlibpath_var=DYLD_LIBRARY_PATH
9004 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
9005 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9006 if test "$GCC" = yes; then
9007 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9008 else
9009 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9010 fi
9011 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9012 ;;
9013
9014dgux*)
9015 version_type=linux
9016 need_lib_prefix=no
9017 need_version=no
9018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9019 soname_spec='${libname}${release}${shared_ext}$major'
9020 shlibpath_var=LD_LIBRARY_PATH
9021 ;;
9022
9023freebsd1*)
9024 dynamic_linker=no
9025 ;;
9026
9027kfreebsd*-gnu)
9028 version_type=linux
9029 need_lib_prefix=no
9030 need_version=no
9031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9032 soname_spec='${libname}${release}${shared_ext}$major'
9033 shlibpath_var=LD_LIBRARY_PATH
9034 shlibpath_overrides_runpath=no
9035 hardcode_into_libs=yes
9036 dynamic_linker='GNU ld.so'
9037 ;;
9038
9039freebsd*)
9040 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
9041 version_type=freebsd-$objformat
9042 case $version_type in
9043 freebsd-elf*)
9044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9045 need_version=no
9046 need_lib_prefix=no
9047 ;;
9048 freebsd-*)
9049 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9050 need_version=yes
9051 ;;
9052 esac
9053 shlibpath_var=LD_LIBRARY_PATH
9054 case $host_os in
9055 freebsd2*)
9056 shlibpath_overrides_runpath=yes
9057 ;;
9058 freebsd3.01* | freebsdelf3.01*)
9059 shlibpath_overrides_runpath=yes
9060 hardcode_into_libs=yes
9061 ;;
9062 *) # from 3.2 on
9063 shlibpath_overrides_runpath=no
9064 hardcode_into_libs=yes
9065 ;;
9066 esac
9067 ;;
9068
9069gnu*)
9070 version_type=linux
9071 need_lib_prefix=no
9072 need_version=no
9073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9074 soname_spec='${libname}${release}${shared_ext}$major'
9075 shlibpath_var=LD_LIBRARY_PATH
9076 hardcode_into_libs=yes
9077 ;;
9078
9079hpux9* | hpux10* | hpux11*)
9080 # Give a soname corresponding to the major version so that dld.sl refuses to
9081 # link against other versions.
9082 version_type=sunos
9083 need_lib_prefix=no
9084 need_version=no
9085 case "$host_cpu" in
9086 ia64*)
9087 shrext_cmds='.so'
9088 hardcode_into_libs=yes
9089 dynamic_linker="$host_os dld.so"
9090 shlibpath_var=LD_LIBRARY_PATH
9091 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9093 soname_spec='${libname}${release}${shared_ext}$major'
9094 if test "X$HPUX_IA64_MODE" = X32; then
9095 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9096 else
9097 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9098 fi
9099 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9100 ;;
9101 hppa*64*)
9102 shrext_cmds='.sl'
9103 hardcode_into_libs=yes
9104 dynamic_linker="$host_os dld.sl"
9105 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9106 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9108 soname_spec='${libname}${release}${shared_ext}$major'
9109 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9110 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9111 ;;
9112 *)
9113 shrext_cmds='.sl'
9114 dynamic_linker="$host_os dld.sl"
9115 shlibpath_var=SHLIB_PATH
9116 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9118 soname_spec='${libname}${release}${shared_ext}$major'
9119 ;;
9120 esac
9121 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9122 postinstall_cmds='chmod 555 $lib'
9123 ;;
9124
9125irix5* | irix6* | nonstopux*)
9126 case $host_os in
9127 nonstopux*) version_type=nonstopux ;;
9128 *)
9129 if test "$lt_cv_prog_gnu_ld" = yes; then
9130 version_type=linux
9131 else
9132 version_type=irix
9133 fi ;;
9134 esac
9135 need_lib_prefix=no
9136 need_version=no
9137 soname_spec='${libname}${release}${shared_ext}$major'
9138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9139 case $host_os in
9140 irix5* | nonstopux*)
9141 libsuff= shlibsuff=
9142 ;;
9143 *)
9144 case $LD in # libtool.m4 will add one of these switches to LD
9145 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9146 libsuff= shlibsuff= libmagic=32-bit;;
9147 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9148 libsuff=32 shlibsuff=N32 libmagic=N32;;
9149 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9150 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9151 *) libsuff= shlibsuff= libmagic=never-match;;
9152 esac
9153 ;;
9154 esac
9155 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9156 shlibpath_overrides_runpath=no
9157 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9158 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9159 hardcode_into_libs=yes
9160 ;;
9161
9162# No shared lib support for Linux oldld, aout, or coff.
9163linux*oldld* | linux*aout* | linux*coff*)
9164 dynamic_linker=no
9165 ;;
9166
9167# This must be Linux ELF.
9168linux*)
9169 version_type=linux
9170 need_lib_prefix=no
9171 need_version=no
9172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9173 soname_spec='${libname}${release}${shared_ext}$major'
9174 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9175 shlibpath_var=LD_LIBRARY_PATH
9176 shlibpath_overrides_runpath=no
9177 # This implies no fast_install, which is unacceptable.
9178 # Some rework will be needed to allow for fast_install
9179 # before this can be enabled.
9180 hardcode_into_libs=yes
9181
9182 # Append ld.so.conf contents to the search path
9183 if test -f /etc/ld.so.conf; then
9184 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
9185 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9186 fi
9187
9188 # We used to test for /lib/ld.so.1 and disable shared libraries on
9189 # powerpc, because MkLinux only supported shared libraries with the
9190 # GNU dynamic linker. Since this was broken with cross compilers,
9191 # most powerpc-linux boxes support dynamic linking these days and
9192 # people can always --disable-shared, the test was removed, and we
9193 # assume the GNU/Linux dynamic linker is in use.
9194 dynamic_linker='GNU/Linux ld.so'
9195 ;;
9196
9197netbsdelf*-gnu)
9198 version_type=linux
9199 need_lib_prefix=no
9200 need_version=no
9201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9202 soname_spec='${libname}${release}${shared_ext}$major'
9203 shlibpath_var=LD_LIBRARY_PATH
9204 shlibpath_overrides_runpath=no
9205 hardcode_into_libs=yes
9206 dynamic_linker='NetBSD ld.elf_so'
9207 ;;
9208
9209knetbsd*-gnu)
9210 version_type=linux
9211 need_lib_prefix=no
9212 need_version=no
9213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9214 soname_spec='${libname}${release}${shared_ext}$major'
9215 shlibpath_var=LD_LIBRARY_PATH
9216 shlibpath_overrides_runpath=no
9217 hardcode_into_libs=yes
9218 dynamic_linker='GNU ld.so'
9219 ;;
9220
9221netbsd*)
9222 version_type=sunos
9223 need_lib_prefix=no
9224 need_version=no
9225 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9227 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9228 dynamic_linker='NetBSD (a.out) ld.so'
9229 else
9230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9231 soname_spec='${libname}${release}${shared_ext}$major'
9232 dynamic_linker='NetBSD ld.elf_so'
9233 fi
9234 shlibpath_var=LD_LIBRARY_PATH
9235 shlibpath_overrides_runpath=yes
9236 hardcode_into_libs=yes
9237 ;;
9238
9239newsos6)
9240 version_type=linux
9241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9242 shlibpath_var=LD_LIBRARY_PATH
9243 shlibpath_overrides_runpath=yes
9244 ;;
9245
9246nto-qnx*)
9247 version_type=linux
9248 need_lib_prefix=no
9249 need_version=no
9250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9251 soname_spec='${libname}${release}${shared_ext}$major'
9252 shlibpath_var=LD_LIBRARY_PATH
9253 shlibpath_overrides_runpath=yes
9254 ;;
9255
9256openbsd*)
9257 version_type=sunos
9258 need_lib_prefix=no
9259 need_version=yes
9260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9261 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9262 shlibpath_var=LD_LIBRARY_PATH
9263 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9264 case $host_os in
9265 openbsd2.[89] | openbsd2.[89].*)
9266 shlibpath_overrides_runpath=no
9267 ;;
9268 *)
9269 shlibpath_overrides_runpath=yes
9270 ;;
9271 esac
9272 else
9273 shlibpath_overrides_runpath=yes
9274 fi
9275 ;;
9276
9277os2*)
9278 libname_spec='$name'
9279 shrext_cmds=".dll"
9280 need_lib_prefix=no
9281 library_names_spec='$libname${shared_ext} $libname.a'
9282 dynamic_linker='OS/2 ld.exe'
9283 shlibpath_var=LIBPATH
9284 ;;
9285
9286osf3* | osf4* | osf5*)
9287 version_type=osf
9288 need_lib_prefix=no
9289 need_version=no
9290 soname_spec='${libname}${release}${shared_ext}$major'
9291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9292 shlibpath_var=LD_LIBRARY_PATH
9293 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9294 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9295 ;;
9296
9297sco3.2v5*)
9298 version_type=osf
9299 soname_spec='${libname}${release}${shared_ext}$major'
9300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9301 shlibpath_var=LD_LIBRARY_PATH
9302 ;;
9303
9304solaris*)
9305 version_type=linux
9306 need_lib_prefix=no
9307 need_version=no
9308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9309 soname_spec='${libname}${release}${shared_ext}$major'
9310 shlibpath_var=LD_LIBRARY_PATH
9311 shlibpath_overrides_runpath=yes
9312 hardcode_into_libs=yes
9313 # ldd complains unless libraries are executable
9314 postinstall_cmds='chmod +x $lib'
9315 ;;
9316
9317sunos4*)
9318 version_type=sunos
9319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9320 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9321 shlibpath_var=LD_LIBRARY_PATH
9322 shlibpath_overrides_runpath=yes
9323 if test "$with_gnu_ld" = yes; then
9324 need_lib_prefix=no
9325 fi
9326 need_version=yes
9327 ;;
9328
9329sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9330 version_type=linux
9331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9332 soname_spec='${libname}${release}${shared_ext}$major'
9333 shlibpath_var=LD_LIBRARY_PATH
9334 case $host_vendor in
9335 sni)
9336 shlibpath_overrides_runpath=no
9337 need_lib_prefix=no
9338 export_dynamic_flag_spec='${wl}-Blargedynsym'
9339 runpath_var=LD_RUN_PATH
9340 ;;
9341 siemens)
9342 need_lib_prefix=no
9343 ;;
9344 motorola)
9345 need_lib_prefix=no
9346 need_version=no
9347 shlibpath_overrides_runpath=no
9348 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9349 ;;
9350 esac
9351 ;;
9352
9353sysv4*MP*)
9354 if test -d /usr/nec ;then
9355 version_type=linux
9356 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9357 soname_spec='$libname${shared_ext}.$major'
9358 shlibpath_var=LD_LIBRARY_PATH
9359 fi
9360 ;;
9361
9362uts4*)
9363 version_type=linux
9364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9365 soname_spec='${libname}${release}${shared_ext}$major'
9366 shlibpath_var=LD_LIBRARY_PATH
9367 ;;
9368
9369*)
9370 dynamic_linker=no
9371 ;;
9372esac
9373{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9374echo "${ECHO_T}$dynamic_linker" >&6; }
9375test "$dynamic_linker" = no && can_build_shared=no
9376
9377{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9378echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9379hardcode_action=
9380if test -n "$hardcode_libdir_flag_spec" || \
9381 test -n "$runpath_var " || \
9382 test "X$hardcode_automatic"="Xyes" ; then
9383
9384 # We can hardcode non-existant directories.
9385 if test "$hardcode_direct" != no &&
9386 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9387 # have to relink, otherwise we might link with an installed library
9388 # when we should be linking with a yet-to-be-installed one
9389 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9390 test "$hardcode_minus_L" != no; then
9391 # Linking always hardcodes the temporary library directory.
9392 hardcode_action=relink
9393 else
9394 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9395 hardcode_action=immediate
9396 fi
9397else
9398 # We cannot hardcode anything, or else we can only hardcode existing
9399 # directories.
9400 hardcode_action=unsupported
9401fi
9402{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9403echo "${ECHO_T}$hardcode_action" >&6; }
9404
9405if test "$hardcode_action" = relink; then
9406 # Fast installation is not supported
9407 enable_fast_install=no
9408elif test "$shlibpath_overrides_runpath" = yes ||
9409 test "$enable_shared" = no; then
9410 # Fast installation is not necessary
9411 enable_fast_install=needless
9412fi
9413
9414striplib=
9415old_striplib=
9416{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9417echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9418if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9419 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9420 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9421 { echo "$as_me:$LINENO: result: yes" >&5
9422echo "${ECHO_T}yes" >&6; }
9423else
9424# FIXME - insert some real tests, host_os isn't really good enough
9425 case $host_os in
9426 darwin*)
9427 if test -n "$STRIP" ; then
9428 striplib="$STRIP -x"
9429 { echo "$as_me:$LINENO: result: yes" >&5
9430echo "${ECHO_T}yes" >&6; }
9431 else
9432 { echo "$as_me:$LINENO: result: no" >&5
9433echo "${ECHO_T}no" >&6; }
9434fi
9435 ;;
9436 *)
9437 { echo "$as_me:$LINENO: result: no" >&5
9438echo "${ECHO_T}no" >&6; }
9439 ;;
9440 esac
9441fi
9442
9443if test "x$enable_dlopen" != xyes; then
9444 enable_dlopen=unknown
9445 enable_dlopen_self=unknown
9446 enable_dlopen_self_static=unknown
9447else
9448 lt_cv_dlopen=no
9449 lt_cv_dlopen_libs=
9450
9451 case $host_os in
9452 beos*)
9453 lt_cv_dlopen="load_add_on"
9454 lt_cv_dlopen_libs=
9455 lt_cv_dlopen_self=yes
9456 ;;
9457
9458 mingw* | pw32*)
9459 lt_cv_dlopen="LoadLibrary"
9460 lt_cv_dlopen_libs=
9461 ;;
9462
9463 cygwin*)
9464 lt_cv_dlopen="dlopen"
9465 lt_cv_dlopen_libs=
9466 ;;
9467
9468 darwin*)
9469 # if libdl is installed we need to link against it
9470 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9471echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9472if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9473 echo $ECHO_N "(cached) $ECHO_C" >&6
9474else
9475 ac_check_lib_save_LIBS=$LIBS
9476LIBS="-ldl $LIBS"
9477cat >conftest.$ac_ext <<_ACEOF
9478/* confdefs.h. */
9479_ACEOF
9480cat confdefs.h >>conftest.$ac_ext
9481cat >>conftest.$ac_ext <<_ACEOF
9482/* end confdefs.h. */
9483
9484/* Override any GCC internal prototype to avoid an error.
9485 Use char because int might match the return type of a GCC
9486 builtin and then its argument prototype would still apply. */
9487#ifdef __cplusplus
9488extern "C"
9489#endif
9490char dlopen ();
9491int
9492main ()
9493{
9494return dlopen ();
9495 ;
9496 return 0;
9497}
9498_ACEOF
9499rm -f conftest.$ac_objext conftest$ac_exeext
9500if { (ac_try="$ac_link"
9501case "(($ac_try" in
9502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9503 *) ac_try_echo=$ac_try;;
9504esac
9505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9506 (eval "$ac_link") 2>conftest.er1
9507 ac_status=$?
9508 grep -v '^ *+' conftest.er1 >conftest.err
9509 rm -f conftest.er1
9510 cat conftest.err >&5
9511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512 (exit $ac_status); } && {
9513 test -z "$ac_c_werror_flag" ||
9514 test ! -s conftest.err
9515 } && test -s conftest$ac_exeext &&
9516 $as_test_x conftest$ac_exeext; then
9517 ac_cv_lib_dl_dlopen=yes
9518else
9519 echo "$as_me: failed program was:" >&5
9520sed 's/^/| /' conftest.$ac_ext >&5
9521
9522 ac_cv_lib_dl_dlopen=no
9523fi
9524
9525rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9526 conftest$ac_exeext conftest.$ac_ext
9527LIBS=$ac_check_lib_save_LIBS
9528fi
9529{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9530echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9531if test $ac_cv_lib_dl_dlopen = yes; then
9532 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9533else
9534
9535 lt_cv_dlopen="dyld"
9536 lt_cv_dlopen_libs=
9537 lt_cv_dlopen_self=yes
9538
9539fi
9540
9541 ;;
9542
9543 *)
9544 { echo "$as_me:$LINENO: checking for shl_load" >&5
9545echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9546if test "${ac_cv_func_shl_load+set}" = set; then
9547 echo $ECHO_N "(cached) $ECHO_C" >&6
9548else
9549 cat >conftest.$ac_ext <<_ACEOF
9550/* confdefs.h. */
9551_ACEOF
9552cat confdefs.h >>conftest.$ac_ext
9553cat >>conftest.$ac_ext <<_ACEOF
9554/* end confdefs.h. */
9555/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9557#define shl_load innocuous_shl_load
9558
9559/* System header to define __stub macros and hopefully few prototypes,
9560 which can conflict with char shl_load (); below.
9561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9562 <limits.h> exists even on freestanding compilers. */
9563
9564#ifdef __STDC__
9565# include <limits.h>
9566#else
9567# include <assert.h>
9568#endif
9569
9570#undef shl_load
9571
9572/* Override any GCC internal prototype to avoid an error.
9573 Use char because int might match the return type of a GCC
9574 builtin and then its argument prototype would still apply. */
9575#ifdef __cplusplus
9576extern "C"
9577#endif
9578char shl_load ();
9579/* The GNU C library defines this for functions which it implements
9580 to always fail with ENOSYS. Some functions are actually named
9581 something starting with __ and the normal name is an alias. */
9582#if defined __stub_shl_load || defined __stub___shl_load
9583choke me
9584#endif
9585
9586int
9587main ()
9588{
9589return shl_load ();
9590 ;
9591 return 0;
9592}
9593_ACEOF
9594rm -f conftest.$ac_objext conftest$ac_exeext
9595if { (ac_try="$ac_link"
9596case "(($ac_try" in
9597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9598 *) ac_try_echo=$ac_try;;
9599esac
9600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9601 (eval "$ac_link") 2>conftest.er1
9602 ac_status=$?
9603 grep -v '^ *+' conftest.er1 >conftest.err
9604 rm -f conftest.er1
9605 cat conftest.err >&5
9606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607 (exit $ac_status); } && {
9608 test -z "$ac_c_werror_flag" ||
9609 test ! -s conftest.err
9610 } && test -s conftest$ac_exeext &&
9611 $as_test_x conftest$ac_exeext; then
9612 ac_cv_func_shl_load=yes
9613else
9614 echo "$as_me: failed program was:" >&5
9615sed 's/^/| /' conftest.$ac_ext >&5
9616
9617 ac_cv_func_shl_load=no
9618fi
9619
9620rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9621 conftest$ac_exeext conftest.$ac_ext
9622fi
9623{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9624echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9625if test $ac_cv_func_shl_load = yes; then
9626 lt_cv_dlopen="shl_load"
9627else
9628 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9629echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9630if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9631 echo $ECHO_N "(cached) $ECHO_C" >&6
9632else
9633 ac_check_lib_save_LIBS=$LIBS
9634LIBS="-ldld $LIBS"
9635cat >conftest.$ac_ext <<_ACEOF
9636/* confdefs.h. */
9637_ACEOF
9638cat confdefs.h >>conftest.$ac_ext
9639cat >>conftest.$ac_ext <<_ACEOF
9640/* end confdefs.h. */
9641
9642/* Override any GCC internal prototype to avoid an error.
9643 Use char because int might match the return type of a GCC
9644 builtin and then its argument prototype would still apply. */
9645#ifdef __cplusplus
9646extern "C"
9647#endif
9648char shl_load ();
9649int
9650main ()
9651{
9652return shl_load ();
9653 ;
9654 return 0;
9655}
9656_ACEOF
9657rm -f conftest.$ac_objext conftest$ac_exeext
9658if { (ac_try="$ac_link"
9659case "(($ac_try" in
9660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9661 *) ac_try_echo=$ac_try;;
9662esac
9663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9664 (eval "$ac_link") 2>conftest.er1
9665 ac_status=$?
9666 grep -v '^ *+' conftest.er1 >conftest.err
9667 rm -f conftest.er1
9668 cat conftest.err >&5
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 (exit $ac_status); } && {
9671 test -z "$ac_c_werror_flag" ||
9672 test ! -s conftest.err
9673 } && test -s conftest$ac_exeext &&
9674 $as_test_x conftest$ac_exeext; then
9675 ac_cv_lib_dld_shl_load=yes
9676else
9677 echo "$as_me: failed program was:" >&5
9678sed 's/^/| /' conftest.$ac_ext >&5
9679
9680 ac_cv_lib_dld_shl_load=no
9681fi
9682
9683rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9684 conftest$ac_exeext conftest.$ac_ext
9685LIBS=$ac_check_lib_save_LIBS
9686fi
9687{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9688echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9689if test $ac_cv_lib_dld_shl_load = yes; then
9690 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9691else
9692 { echo "$as_me:$LINENO: checking for dlopen" >&5
9693echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9694if test "${ac_cv_func_dlopen+set}" = set; then
9695 echo $ECHO_N "(cached) $ECHO_C" >&6
9696else
9697 cat >conftest.$ac_ext <<_ACEOF
9698/* confdefs.h. */
9699_ACEOF
9700cat confdefs.h >>conftest.$ac_ext
9701cat >>conftest.$ac_ext <<_ACEOF
9702/* end confdefs.h. */
9703/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9705#define dlopen innocuous_dlopen
9706
9707/* System header to define __stub macros and hopefully few prototypes,
9708 which can conflict with char dlopen (); below.
9709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9710 <limits.h> exists even on freestanding compilers. */
9711
9712#ifdef __STDC__
9713# include <limits.h>
9714#else
9715# include <assert.h>
9716#endif
9717
9718#undef dlopen
9719
9720/* Override any GCC internal prototype to avoid an error.
9721 Use char because int might match the return type of a GCC
9722 builtin and then its argument prototype would still apply. */
9723#ifdef __cplusplus
9724extern "C"
9725#endif
9726char dlopen ();
9727/* The GNU C library defines this for functions which it implements
9728 to always fail with ENOSYS. Some functions are actually named
9729 something starting with __ and the normal name is an alias. */
9730#if defined __stub_dlopen || defined __stub___dlopen
9731choke me
9732#endif
9733
9734int
9735main ()
9736{
9737return dlopen ();
9738 ;
9739 return 0;
9740}
9741_ACEOF
9742rm -f conftest.$ac_objext conftest$ac_exeext
9743if { (ac_try="$ac_link"
9744case "(($ac_try" in
9745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9746 *) ac_try_echo=$ac_try;;
9747esac
9748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9749 (eval "$ac_link") 2>conftest.er1
9750 ac_status=$?
9751 grep -v '^ *+' conftest.er1 >conftest.err
9752 rm -f conftest.er1
9753 cat conftest.err >&5
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); } && {
9756 test -z "$ac_c_werror_flag" ||
9757 test ! -s conftest.err
9758 } && test -s conftest$ac_exeext &&
9759 $as_test_x conftest$ac_exeext; then
9760 ac_cv_func_dlopen=yes
9761else
9762 echo "$as_me: failed program was:" >&5
9763sed 's/^/| /' conftest.$ac_ext >&5
9764
9765 ac_cv_func_dlopen=no
9766fi
9767
9768rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9769 conftest$ac_exeext conftest.$ac_ext
9770fi
9771{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9772echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9773if test $ac_cv_func_dlopen = yes; then
9774 lt_cv_dlopen="dlopen"
9775else
9776 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9777echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9778if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9779 echo $ECHO_N "(cached) $ECHO_C" >&6
9780else
9781 ac_check_lib_save_LIBS=$LIBS
9782LIBS="-ldl $LIBS"
9783cat >conftest.$ac_ext <<_ACEOF
9784/* confdefs.h. */
9785_ACEOF
9786cat confdefs.h >>conftest.$ac_ext
9787cat >>conftest.$ac_ext <<_ACEOF
9788/* end confdefs.h. */
9789
9790/* Override any GCC internal prototype to avoid an error.
9791 Use char because int might match the return type of a GCC
9792 builtin and then its argument prototype would still apply. */
9793#ifdef __cplusplus
9794extern "C"
9795#endif
9796char dlopen ();
9797int
9798main ()
9799{
9800return dlopen ();
9801 ;
9802 return 0;
9803}
9804_ACEOF
9805rm -f conftest.$ac_objext conftest$ac_exeext
9806if { (ac_try="$ac_link"
9807case "(($ac_try" in
9808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9809 *) ac_try_echo=$ac_try;;
9810esac
9811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9812 (eval "$ac_link") 2>conftest.er1
9813 ac_status=$?
9814 grep -v '^ *+' conftest.er1 >conftest.err
9815 rm -f conftest.er1
9816 cat conftest.err >&5
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); } && {
9819 test -z "$ac_c_werror_flag" ||
9820 test ! -s conftest.err
9821 } && test -s conftest$ac_exeext &&
9822 $as_test_x conftest$ac_exeext; then
9823 ac_cv_lib_dl_dlopen=yes
9824else
9825 echo "$as_me: failed program was:" >&5
9826sed 's/^/| /' conftest.$ac_ext >&5
9827
9828 ac_cv_lib_dl_dlopen=no
9829fi
9830
9831rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9832 conftest$ac_exeext conftest.$ac_ext
9833LIBS=$ac_check_lib_save_LIBS
9834fi
9835{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9836echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9837if test $ac_cv_lib_dl_dlopen = yes; then
9838 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9839else
9840 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9841echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9842if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9843 echo $ECHO_N "(cached) $ECHO_C" >&6
9844else
9845 ac_check_lib_save_LIBS=$LIBS
9846LIBS="-lsvld $LIBS"
9847cat >conftest.$ac_ext <<_ACEOF
9848/* confdefs.h. */
9849_ACEOF
9850cat confdefs.h >>conftest.$ac_ext
9851cat >>conftest.$ac_ext <<_ACEOF
9852/* end confdefs.h. */
9853
9854/* Override any GCC internal prototype to avoid an error.
9855 Use char because int might match the return type of a GCC
9856 builtin and then its argument prototype would still apply. */
9857#ifdef __cplusplus
9858extern "C"
9859#endif
9860char dlopen ();
9861int
9862main ()
9863{
9864return dlopen ();
9865 ;
9866 return 0;
9867}
9868_ACEOF
9869rm -f conftest.$ac_objext conftest$ac_exeext
9870if { (ac_try="$ac_link"
9871case "(($ac_try" in
9872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9873 *) ac_try_echo=$ac_try;;
9874esac
9875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9876 (eval "$ac_link") 2>conftest.er1
9877 ac_status=$?
9878 grep -v '^ *+' conftest.er1 >conftest.err
9879 rm -f conftest.er1
9880 cat conftest.err >&5
9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882 (exit $ac_status); } && {
9883 test -z "$ac_c_werror_flag" ||
9884 test ! -s conftest.err
9885 } && test -s conftest$ac_exeext &&
9886 $as_test_x conftest$ac_exeext; then
9887 ac_cv_lib_svld_dlopen=yes
9888else
9889 echo "$as_me: failed program was:" >&5
9890sed 's/^/| /' conftest.$ac_ext >&5
9891
9892 ac_cv_lib_svld_dlopen=no
9893fi
9894
9895rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9896 conftest$ac_exeext conftest.$ac_ext
9897LIBS=$ac_check_lib_save_LIBS
9898fi
9899{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9900echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9901if test $ac_cv_lib_svld_dlopen = yes; then
9902 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9903else
9904 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9905echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9906if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9907 echo $ECHO_N "(cached) $ECHO_C" >&6
9908else
9909 ac_check_lib_save_LIBS=$LIBS
9910LIBS="-ldld $LIBS"
9911cat >conftest.$ac_ext <<_ACEOF
9912/* confdefs.h. */
9913_ACEOF
9914cat confdefs.h >>conftest.$ac_ext
9915cat >>conftest.$ac_ext <<_ACEOF
9916/* end confdefs.h. */
9917
9918/* Override any GCC internal prototype to avoid an error.
9919 Use char because int might match the return type of a GCC
9920 builtin and then its argument prototype would still apply. */
9921#ifdef __cplusplus
9922extern "C"
9923#endif
9924char dld_link ();
9925int
9926main ()
9927{
9928return dld_link ();
9929 ;
9930 return 0;
9931}
9932_ACEOF
9933rm -f conftest.$ac_objext conftest$ac_exeext
9934if { (ac_try="$ac_link"
9935case "(($ac_try" in
9936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9937 *) ac_try_echo=$ac_try;;
9938esac
9939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9940 (eval "$ac_link") 2>conftest.er1
9941 ac_status=$?
9942 grep -v '^ *+' conftest.er1 >conftest.err
9943 rm -f conftest.er1
9944 cat conftest.err >&5
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); } && {
9947 test -z "$ac_c_werror_flag" ||
9948 test ! -s conftest.err
9949 } && test -s conftest$ac_exeext &&
9950 $as_test_x conftest$ac_exeext; then
9951 ac_cv_lib_dld_dld_link=yes
9952else
9953 echo "$as_me: failed program was:" >&5
9954sed 's/^/| /' conftest.$ac_ext >&5
9955
9956 ac_cv_lib_dld_dld_link=no
9957fi
9958
9959rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9960 conftest$ac_exeext conftest.$ac_ext
9961LIBS=$ac_check_lib_save_LIBS
9962fi
9963{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9964echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9965if test $ac_cv_lib_dld_dld_link = yes; then
9966 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9967fi
9968
9969
9970fi
9971
9972
9973fi
9974
9975
9976fi
9977
9978
9979fi
9980
9981
9982fi
9983
9984 ;;
9985 esac
9986
9987 if test "x$lt_cv_dlopen" != xno; then
9988 enable_dlopen=yes
9989 else
9990 enable_dlopen=no
9991 fi
9992
9993 case $lt_cv_dlopen in
9994 dlopen)
9995 save_CPPFLAGS="$CPPFLAGS"
9996 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9997
9998 save_LDFLAGS="$LDFLAGS"
9999 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10000
10001 save_LIBS="$LIBS"
10002 LIBS="$lt_cv_dlopen_libs $LIBS"
10003
10004 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10005echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10006if test "${lt_cv_dlopen_self+set}" = set; then
10007 echo $ECHO_N "(cached) $ECHO_C" >&6
10008else
10009 if test "$cross_compiling" = yes; then :
10010 lt_cv_dlopen_self=cross
10011else
10012 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10013 lt_status=$lt_dlunknown
10014 cat > conftest.$ac_ext <<EOF
10015#line 10015 "configure"
10016#include "confdefs.h"
10017
10018#if HAVE_DLFCN_H
10019#include <dlfcn.h>
10020#endif
10021
10022#include <stdio.h>
10023
10024#ifdef RTLD_GLOBAL
10025# define LT_DLGLOBAL RTLD_GLOBAL
10026#else
10027# ifdef DL_GLOBAL
10028# define LT_DLGLOBAL DL_GLOBAL
10029# else
10030# define LT_DLGLOBAL 0
10031# endif
10032#endif
10033
10034/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10035 find out it does not work in some platform. */
10036#ifndef LT_DLLAZY_OR_NOW
10037# ifdef RTLD_LAZY
10038# define LT_DLLAZY_OR_NOW RTLD_LAZY
10039# else
10040# ifdef DL_LAZY
10041# define LT_DLLAZY_OR_NOW DL_LAZY
10042# else
10043# ifdef RTLD_NOW
10044# define LT_DLLAZY_OR_NOW RTLD_NOW
10045# else
10046# ifdef DL_NOW
10047# define LT_DLLAZY_OR_NOW DL_NOW
10048# else
10049# define LT_DLLAZY_OR_NOW 0
10050# endif
10051# endif
10052# endif
10053# endif
10054#endif
10055
10056#ifdef __cplusplus
10057extern "C" void exit (int);
10058#endif
10059
10060void fnord() { int i=42;}
10061int main ()
10062{
10063 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10064 int status = $lt_dlunknown;
10065
10066 if (self)
10067 {
10068 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10069 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10070 /* dlclose (self); */
10071 }
10072
10073 exit (status);
10074}
10075EOF
10076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10077 (eval $ac_link) 2>&5
10078 ac_status=$?
10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10081 (./conftest; exit; ) 2>/dev/null
10082 lt_status=$?
10083 case x$lt_status in
10084 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10085 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10086 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10087 esac
10088 else :
10089 # compilation failed
10090 lt_cv_dlopen_self=no
10091 fi
10092fi
10093rm -fr conftest*
10094
10095
10096fi
10097{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10098echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10099
10100 if test "x$lt_cv_dlopen_self" = xyes; then
10101 LDFLAGS="$LDFLAGS $link_static_flag"
10102 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10103echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10104if test "${lt_cv_dlopen_self_static+set}" = set; then
10105 echo $ECHO_N "(cached) $ECHO_C" >&6
10106else
10107 if test "$cross_compiling" = yes; then :
10108 lt_cv_dlopen_self_static=cross
10109else
10110 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10111 lt_status=$lt_dlunknown
10112 cat > conftest.$ac_ext <<EOF
10113#line 10113 "configure"
10114#include "confdefs.h"
10115
10116#if HAVE_DLFCN_H
10117#include <dlfcn.h>
10118#endif
10119
10120#include <stdio.h>
10121
10122#ifdef RTLD_GLOBAL
10123# define LT_DLGLOBAL RTLD_GLOBAL
10124#else
10125# ifdef DL_GLOBAL
10126# define LT_DLGLOBAL DL_GLOBAL
10127# else
10128# define LT_DLGLOBAL 0
10129# endif
10130#endif
10131
10132/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10133 find out it does not work in some platform. */
10134#ifndef LT_DLLAZY_OR_NOW
10135# ifdef RTLD_LAZY
10136# define LT_DLLAZY_OR_NOW RTLD_LAZY
10137# else
10138# ifdef DL_LAZY
10139# define LT_DLLAZY_OR_NOW DL_LAZY
10140# else
10141# ifdef RTLD_NOW
10142# define LT_DLLAZY_OR_NOW RTLD_NOW
10143# else
10144# ifdef DL_NOW
10145# define LT_DLLAZY_OR_NOW DL_NOW
10146# else
10147# define LT_DLLAZY_OR_NOW 0
10148# endif
10149# endif
10150# endif
10151# endif
10152#endif
10153
10154#ifdef __cplusplus
10155extern "C" void exit (int);
10156#endif
10157
10158void fnord() { int i=42;}
10159int main ()
10160{
10161 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10162 int status = $lt_dlunknown;
10163
10164 if (self)
10165 {
10166 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10167 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10168 /* dlclose (self); */
10169 }
10170
10171 exit (status);
10172}
10173EOF
10174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10175 (eval $ac_link) 2>&5
10176 ac_status=$?
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10179 (./conftest; exit; ) 2>/dev/null
10180 lt_status=$?
10181 case x$lt_status in
10182 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10183 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10184 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10185 esac
10186 else :
10187 # compilation failed
10188 lt_cv_dlopen_self_static=no
10189 fi
10190fi
10191rm -fr conftest*
10192
10193
10194fi
10195{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10196echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10197 fi
10198
10199 CPPFLAGS="$save_CPPFLAGS"
10200 LDFLAGS="$save_LDFLAGS"
10201 LIBS="$save_LIBS"
10202 ;;
10203 esac
10204
10205 case $lt_cv_dlopen_self in
10206 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10207 *) enable_dlopen_self=unknown ;;
10208 esac
10209
10210 case $lt_cv_dlopen_self_static in
10211 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10212 *) enable_dlopen_self_static=unknown ;;
10213 esac
10214fi
10215
10216
10217# Report which librarie types wil actually be built
10218{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10219echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10220{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10221echo "${ECHO_T}$can_build_shared" >&6; }
10222
10223{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10224echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10225test "$can_build_shared" = "no" && enable_shared=no
10226
10227# On AIX, shared libraries and static libraries use the same namespace, and
10228# are all built from PIC.
10229case "$host_os" in
10230aix3*)
10231 test "$enable_shared" = yes && enable_static=no
10232 if test -n "$RANLIB"; then
10233 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10234 postinstall_cmds='$RANLIB $lib'
10235 fi
10236 ;;
10237
10238aix4* | aix5*)
10239 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10240 test "$enable_shared" = yes && enable_static=no
10241 fi
10242 ;;
10243 darwin* | rhapsody*)
10244 if test "$GCC" = yes; then
10245 archive_cmds_need_lc=no
10246 case "$host_os" in
10247 rhapsody* | darwin1.[012])
10248 allow_undefined_flag='-undefined suppress'
10249 ;;
10250 *) # Darwin 1.3 on
10251 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10252 allow_undefined_flag='-flat_namespace -undefined suppress'
10253 else
10254 case ${MACOSX_DEPLOYMENT_TARGET} in
10255 10.[012])
10256 allow_undefined_flag='-flat_namespace -undefined suppress'
10257 ;;
10258 10.*)
10259 allow_undefined_flag='-undefined dynamic_lookup'
10260 ;;
10261 esac
10262 fi
10263 ;;
10264 esac
10265 output_verbose_link_cmd='echo'
10266 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
10267 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10268 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10269 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10270 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10271 hardcode_direct=no
10272 hardcode_automatic=yes
10273 hardcode_shlibpath_var=unsupported
10274 whole_archive_flag_spec='-all_load $convenience'
10275 link_all_deplibs=yes
10276 else
10277 ld_shlibs=no
10278 fi
10279 ;;
10280esac
10281{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10282echo "${ECHO_T}$enable_shared" >&6; }
10283
10284{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10285echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10286# Make sure either enable_shared or enable_static is yes.
10287test "$enable_shared" = yes || enable_static=yes
10288{ echo "$as_me:$LINENO: result: $enable_static" >&5
10289echo "${ECHO_T}$enable_static" >&6; }
10290
10291# The else clause should only fire when bootstrapping the
10292# libtool distribution, otherwise you forgot to ship ltmain.sh
10293# with your package, and you will get complaints that there are
10294# no rules to generate ltmain.sh.
10295if test -f "$ltmain"; then
10296 # See if we are running on zsh, and set the options which allow our commands through
10297 # without removal of \ escapes.
10298 if test -n "${ZSH_VERSION+set}" ; then
10299 setopt NO_GLOB_SUBST
10300 fi
10301 # Now quote all the things that may contain metacharacters while being
10302 # careful not to overquote the AC_SUBSTed values. We take copies of the
10303 # variables and quote the copies for generation of the libtool script.
10304 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10305 SED SHELL STRIP \
10306 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10307 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10308 deplibs_check_method reload_flag reload_cmds need_locks \
10309 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10310 lt_cv_sys_global_symbol_to_c_name_address \
10311 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10312 old_postinstall_cmds old_postuninstall_cmds \
10313 compiler \
10314 CC \
10315 LD \
10316 lt_prog_compiler_wl \
10317 lt_prog_compiler_pic \
10318 lt_prog_compiler_static \
10319 lt_prog_compiler_no_builtin_flag \
10320 export_dynamic_flag_spec \
10321 thread_safe_flag_spec \
10322 whole_archive_flag_spec \
10323 enable_shared_with_static_runtimes \
10324 old_archive_cmds \
10325 old_archive_from_new_cmds \
10326 predep_objects \
10327 postdep_objects \
10328 predeps \
10329 postdeps \
10330 compiler_lib_search_path \
10331 archive_cmds \
10332 archive_expsym_cmds \
10333 postinstall_cmds \
10334 postuninstall_cmds \
10335 old_archive_from_expsyms_cmds \
10336 allow_undefined_flag \
10337 no_undefined_flag \
10338 export_symbols_cmds \
10339 hardcode_libdir_flag_spec \
10340 hardcode_libdir_flag_spec_ld \
10341 hardcode_libdir_separator \
10342 hardcode_automatic \
10343 module_cmds \
10344 module_expsym_cmds \
10345 lt_cv_prog_compiler_c_o \
10346 exclude_expsyms \
10347 include_expsyms; do
10348
10349 case $var in
10350 old_archive_cmds | \
10351 old_archive_from_new_cmds | \
10352 archive_cmds | \
10353 archive_expsym_cmds | \
10354 module_cmds | \
10355 module_expsym_cmds | \
10356 old_archive_from_expsyms_cmds | \
10357 export_symbols_cmds | \
10358 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10359 postinstall_cmds | postuninstall_cmds | \
10360 old_postinstall_cmds | old_postuninstall_cmds | \
10361 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10362 # Double-quote double-evaled strings.
10363 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10364 ;;
10365 *)
10366 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10367 ;;
10368 esac
10369 done
10370
10371 case $lt_echo in
10372 *'\$0 --fallback-echo"')
10373 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10374 ;;
10375 esac
10376
10377cfgfile="${ofile}T"
10378 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10379 $rm -f "$cfgfile"
10380 { echo "$as_me:$LINENO: creating $ofile" >&5
10381echo "$as_me: creating $ofile" >&6;}
10382
10383 cat <<__EOF__ >> "$cfgfile"
10384#! $SHELL
10385
10386# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10387# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10388# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10389#
10390# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10391# Free Software Foundation, Inc.
10392#
10393# This file is part of GNU Libtool:
10394# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10395#
10396# This program is free software; you can redistribute it and/or modify
10397# it under the terms of the GNU General Public License as published by
10398# the Free Software Foundation; either version 2 of the License, or
10399# (at your option) any later version.
10400#
10401# This program is distributed in the hope that it will be useful, but
10402# WITHOUT ANY WARRANTY; without even the implied warranty of
10403# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10404# General Public License for more details.
10405#
10406# You should have received a copy of the GNU General Public License
10407# along with this program; if not, write to the Free Software
10408# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
10409#
10410# As a special exception to the GNU General Public License, if you
10411# distribute this file as part of a program that contains a
10412# configuration script generated by Autoconf, you may include it under
10413# the same distribution terms that you use for the rest of that program.
10414
10415# A sed program that does not truncate output.
10416SED=$lt_SED
10417
10418# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10419Xsed="$SED -e s/^X//"
10420
10421# The HP-UX ksh and POSIX shell print the target directory to stdout
10422# if CDPATH is set.
10423if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
10424
10425# The names of the tagged configurations supported by this script.
10426available_tags=
10427
10428# ### BEGIN LIBTOOL CONFIG
10429
10430# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10431
10432# Shell to use when invoking shell scripts.
10433SHELL=$lt_SHELL
10434
10435# Whether or not to build shared libraries.
10436build_libtool_libs=$enable_shared
10437
10438# Whether or not to build static libraries.
10439build_old_libs=$enable_static
10440
10441# Whether or not to add -lc for building shared libraries.
10442build_libtool_need_lc=$archive_cmds_need_lc
10443
10444# Whether or not to disallow shared libs when runtime libs are static
10445allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10446
10447# Whether or not to optimize for fast installation.
10448fast_install=$enable_fast_install
10449
10450# The host system.
10451host_alias=$host_alias
10452host=$host
10453
10454# An echo program that does not interpret backslashes.
10455echo=$lt_echo
10456
10457# The archiver.
10458AR=$lt_AR
10459AR_FLAGS=$lt_AR_FLAGS
10460
10461# A C compiler.
10462LTCC=$lt_LTCC
10463
10464# A language-specific compiler.
10465CC=$lt_compiler
10466
10467# Is the compiler the GNU C compiler?
10468with_gcc=$GCC
10469
10470# An ERE matcher.
10471EGREP=$lt_EGREP
10472
10473# The linker used to build libraries.
10474LD=$lt_LD
10475
10476# Whether we need hard or soft links.
10477LN_S=$lt_LN_S
10478
10479# A BSD-compatible nm program.
10480NM=$lt_NM
10481
10482# A symbol stripping program
10483STRIP=$lt_STRIP
10484
10485# Used to examine libraries when file_magic_cmd begins "file"
10486MAGIC_CMD=$MAGIC_CMD
10487
10488# Used on cygwin: DLL creation program.
10489DLLTOOL="$DLLTOOL"
10490
10491# Used on cygwin: object dumper.
10492OBJDUMP="$OBJDUMP"
10493
10494# Used on cygwin: assembler.
10495AS="$AS"
10496
10497# The name of the directory that contains temporary libtool files.
10498objdir=$objdir
10499
10500# How to create reloadable object files.
10501reload_flag=$lt_reload_flag
10502reload_cmds=$lt_reload_cmds
10503
10504# How to pass a linker flag through the compiler.
10505wl=$lt_lt_prog_compiler_wl
10506
10507# Object file suffix (normally "o").
10508objext="$ac_objext"
10509
10510# Old archive suffix (normally "a").
10511libext="$libext"
10512
10513# Shared library suffix (normally ".so").
10514shrext_cmds='$shrext_cmds'
10515
10516# Executable file suffix (normally "").
10517exeext="$exeext"
10518
10519# Additional compiler flags for building library objects.
10520pic_flag=$lt_lt_prog_compiler_pic
10521pic_mode=$pic_mode
10522
10523# What is the maximum length of a command?
10524max_cmd_len=$lt_cv_sys_max_cmd_len
10525
10526# Does compiler simultaneously support -c and -o options?
10527compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10528
10529# Must we lock files when doing compilation ?
10530need_locks=$lt_need_locks
10531
10532# Do we need the lib prefix for modules?
10533need_lib_prefix=$need_lib_prefix
10534
10535# Do we need a version for libraries?
10536need_version=$need_version
10537
10538# Whether dlopen is supported.
10539dlopen_support=$enable_dlopen
10540
10541# Whether dlopen of programs is supported.
10542dlopen_self=$enable_dlopen_self
10543
10544# Whether dlopen of statically linked programs is supported.
10545dlopen_self_static=$enable_dlopen_self_static
10546
10547# Compiler flag to prevent dynamic linking.
10548link_static_flag=$lt_lt_prog_compiler_static
10549
10550# Compiler flag to turn off builtin functions.
10551no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10552
10553# Compiler flag to allow reflexive dlopens.
10554export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10555
10556# Compiler flag to generate shared objects directly from archives.
10557whole_archive_flag_spec=$lt_whole_archive_flag_spec
10558
10559# Compiler flag to generate thread-safe objects.
10560thread_safe_flag_spec=$lt_thread_safe_flag_spec
10561
10562# Library versioning type.
10563version_type=$version_type
10564
10565# Format of library name prefix.
10566libname_spec=$lt_libname_spec
10567
10568# List of archive names. First name is the real one, the rest are links.
10569# The last name is the one that the linker finds with -lNAME.
10570library_names_spec=$lt_library_names_spec
10571
10572# The coded name of the library, if different from the real name.
10573soname_spec=$lt_soname_spec
10574
10575# Commands used to build and install an old-style archive.
10576RANLIB=$lt_RANLIB
10577old_archive_cmds=$lt_old_archive_cmds
10578old_postinstall_cmds=$lt_old_postinstall_cmds
10579old_postuninstall_cmds=$lt_old_postuninstall_cmds
10580
10581# Create an old-style archive from a shared archive.
10582old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10583
10584# Create a temporary old-style archive to link instead of a shared archive.
10585old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10586
10587# Commands used to build and install a shared archive.
10588archive_cmds=$lt_archive_cmds
10589archive_expsym_cmds=$lt_archive_expsym_cmds
10590postinstall_cmds=$lt_postinstall_cmds
10591postuninstall_cmds=$lt_postuninstall_cmds
10592
10593# Commands used to build a loadable module (assumed same as above if empty)
10594module_cmds=$lt_module_cmds
10595module_expsym_cmds=$lt_module_expsym_cmds
10596
10597# Commands to strip libraries.
10598old_striplib=$lt_old_striplib
10599striplib=$lt_striplib
10600
10601# Dependencies to place before the objects being linked to create a
10602# shared library.
10603predep_objects=$lt_predep_objects
10604
10605# Dependencies to place after the objects being linked to create a
10606# shared library.
10607postdep_objects=$lt_postdep_objects
10608
10609# Dependencies to place before the objects being linked to create a
10610# shared library.
10611predeps=$lt_predeps
10612
10613# Dependencies to place after the objects being linked to create a
10614# shared library.
10615postdeps=$lt_postdeps
10616
10617# The library search path used internally by the compiler when linking
10618# a shared library.
10619compiler_lib_search_path=$lt_compiler_lib_search_path
10620
10621# Method to check whether dependent libraries are shared objects.
10622deplibs_check_method=$lt_deplibs_check_method
10623
10624# Command to use when deplibs_check_method == file_magic.
10625file_magic_cmd=$lt_file_magic_cmd
10626
10627# Flag that allows shared libraries with undefined symbols to be built.
10628allow_undefined_flag=$lt_allow_undefined_flag
10629
10630# Flag that forces no undefined symbols.
10631no_undefined_flag=$lt_no_undefined_flag
10632
10633# Commands used to finish a libtool library installation in a directory.
10634finish_cmds=$lt_finish_cmds
10635
10636# Same as above, but a single script fragment to be evaled but not shown.
10637finish_eval=$lt_finish_eval
10638
10639# Take the output of nm and produce a listing of raw symbols and C names.
10640global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10641
10642# Transform the output of nm in a proper C declaration
10643global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10644
10645# Transform the output of nm in a C name address pair
10646global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10647
10648# This is the shared library runtime path variable.
10649runpath_var=$runpath_var
10650
10651# This is the shared library path variable.
10652shlibpath_var=$shlibpath_var
10653
10654# Is shlibpath searched before the hard-coded library search path?
10655shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10656
10657# How to hardcode a shared library path into an executable.
10658hardcode_action=$hardcode_action
10659
10660# Whether we should hardcode library paths into libraries.
10661hardcode_into_libs=$hardcode_into_libs
10662
10663# Flag to hardcode \$libdir into a binary during linking.
10664# This must work even if \$libdir does not exist.
10665hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10666
10667# If ld is used when linking, flag to hardcode \$libdir into
10668# a binary during linking. This must work even if \$libdir does
10669# not exist.
10670hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10671
10672# Whether we need a single -rpath flag with a separated argument.
10673hardcode_libdir_separator=$lt_hardcode_libdir_separator
10674
10675# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10676# resulting binary.
10677hardcode_direct=$hardcode_direct
10678
10679# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10680# resulting binary.
10681hardcode_minus_L=$hardcode_minus_L
10682
10683# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10684# the resulting binary.
10685hardcode_shlibpath_var=$hardcode_shlibpath_var
10686
10687# Set to yes if building a shared library automatically hardcodes DIR into the library
10688# and all subsequent libraries and executables linked against it.
10689hardcode_automatic=$hardcode_automatic
10690
10691# Variables whose values should be saved in libtool wrapper scripts and
10692# restored at relink time.
10693variables_saved_for_relink="$variables_saved_for_relink"
10694
10695# Whether libtool must link a program against all its dependency libraries.
10696link_all_deplibs=$link_all_deplibs
10697
10698# Compile-time system search path for libraries
10699sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10700
10701# Run-time system search path for libraries
10702sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10703
10704# Fix the shell variable \$srcfile for the compiler.
10705fix_srcfile_path="$fix_srcfile_path"
10706
10707# Set to yes if exported symbols are required.
10708always_export_symbols=$always_export_symbols
10709
10710# The commands to list exported symbols.
10711export_symbols_cmds=$lt_export_symbols_cmds
10712
10713# The commands to extract the exported symbol list from a shared archive.
10714extract_expsyms_cmds=$lt_extract_expsyms_cmds
10715
10716# Symbols that should not be listed in the preloaded symbols.
10717exclude_expsyms=$lt_exclude_expsyms
10718
10719# Symbols that must always be exported.
10720include_expsyms=$lt_include_expsyms
10721
10722# ### END LIBTOOL CONFIG
10723
10724__EOF__
10725
10726
10727 case $host_os in
10728 aix3*)
10729 cat <<\EOF >> "$cfgfile"
10730
10731# AIX sometimes has problems with the GCC collect2 program. For some
10732# reason, if we set the COLLECT_NAMES environment variable, the problems
10733# vanish in a puff of smoke.
10734if test "X${COLLECT_NAMES+set}" != Xset; then
10735 COLLECT_NAMES=
10736 export COLLECT_NAMES
10737fi
10738EOF
10739 ;;
10740 esac
10741
10742 # We use sed instead of cat because bash on DJGPP gets confused if
10743 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10744 # text mode, it properly converts lines to CR/LF. This bash problem
10745 # is reportedly fixed, but why not run on old versions too?
10746 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10747
10748 mv -f "$cfgfile" "$ofile" || \
10749 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10750 chmod +x "$ofile"
10751
10752else
10753 # If there is no Makefile yet, we rely on a make rule to execute
10754 # `config.status --recheck' to rerun these tests and create the
10755 # libtool script then.
10756 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10757 if test -f "$ltmain_in"; then
10758 test -f Makefile && make "$ltmain"
10759 fi
10760fi
10761
10762
10763ac_ext=c
10764ac_cpp='$CPP $CPPFLAGS'
10765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10767ac_compiler_gnu=$ac_cv_c_compiler_gnu
10768
10769CC="$lt_save_CC"
10770
10771
10772# Check whether --with-tags was given.
10773if test "${with_tags+set}" = set; then
10774 withval=$with_tags; tagnames="$withval"
10775fi
10776
10777
10778if test -f "$ltmain" && test -n "$tagnames"; then
10779 if test ! -f "${ofile}"; then
10780 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10781echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10782 fi
10783
10784 if test -z "$LTCC"; then
10785 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10786 if test -z "$LTCC"; then
10787 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10788echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10789 else
10790 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10791echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10792 fi
10793 fi
10794
10795 # Extract list of available tagged configurations in $ofile.
10796 # Note that this assumes the entire list is on one line.
10797 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10798
10799 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10800 for tagname in $tagnames; do
10801 IFS="$lt_save_ifs"
10802 # Check whether tagname contains only valid characters
10803 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10804 "") ;;
10805 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10806echo "$as_me: error: invalid tag name: $tagname" >&2;}
10807 { (exit 1); exit 1; }; }
10808 ;;
10809 esac
10810
10811 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10812 then
10813 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10814echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10815 { (exit 1); exit 1; }; }
10816 fi
10817
10818 # Update the list of available tags.
10819 if test -n "$tagname"; then
10820 echo appending configuration tag \"$tagname\" to $ofile
10821
10822 case $tagname in
10823 CXX)
10824 if test -n "$CXX" && test "X$CXX" != "Xno"; then
10825 ac_ext=cpp
10826ac_cpp='$CXXCPP $CPPFLAGS'
10827ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10828ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10829ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10830
10831
10832
10833
10834archive_cmds_need_lc_CXX=no
10835allow_undefined_flag_CXX=
10836always_export_symbols_CXX=no
10837archive_expsym_cmds_CXX=
10838export_dynamic_flag_spec_CXX=
10839hardcode_direct_CXX=no
10840hardcode_libdir_flag_spec_CXX=
10841hardcode_libdir_flag_spec_ld_CXX=
10842hardcode_libdir_separator_CXX=
10843hardcode_minus_L_CXX=no
10844hardcode_automatic_CXX=no
10845module_cmds_CXX=
10846module_expsym_cmds_CXX=
10847link_all_deplibs_CXX=unknown
10848old_archive_cmds_CXX=$old_archive_cmds
10849no_undefined_flag_CXX=
10850whole_archive_flag_spec_CXX=
10851enable_shared_with_static_runtimes_CXX=no
10852
10853# Dependencies to place before and after the object being linked:
10854predep_objects_CXX=
10855postdep_objects_CXX=
10856predeps_CXX=
10857postdeps_CXX=
10858compiler_lib_search_path_CXX=
10859
10860# Source file extension for C++ test sources.
10861ac_ext=cc
10862
10863# Object file extension for compiled C++ test sources.
10864objext=o
10865objext_CXX=$objext
10866
10867# Code to be used in simple compile tests
10868lt_simple_compile_test_code="int some_variable = 0;\n"
10869
10870# Code to be used in simple link tests
10871lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10872
10873# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10874
10875# If no C compiler was specified, use CC.
10876LTCC=${LTCC-"$CC"}
10877
10878# Allow CC to be a program name with arguments.
10879compiler=$CC
10880
10881
10882# Allow CC to be a program name with arguments.
10883lt_save_CC=$CC
10884lt_save_LD=$LD
10885lt_save_GCC=$GCC
10886GCC=$GXX
10887lt_save_with_gnu_ld=$with_gnu_ld
10888lt_save_path_LD=$lt_cv_path_LD
10889if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10890 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10891else
10892 unset lt_cv_prog_gnu_ld
10893fi
10894if test -n "${lt_cv_path_LDCXX+set}"; then
10895 lt_cv_path_LD=$lt_cv_path_LDCXX
10896else
10897 unset lt_cv_path_LD
10898fi
10899test -z "${LDCXX+set}" || LD=$LDCXX
10900CC=${CXX-"c++"}
10901compiler=$CC
10902compiler_CXX=$CC
10903cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10904
10905# We don't want -fno-exception wen compiling C++ code, so set the
10906# no_builtin_flag separately
10907if test "$GXX" = yes; then
10908 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10909else
10910 lt_prog_compiler_no_builtin_flag_CXX=
10911fi
10912
10913if test "$GXX" = yes; then
10914 # Set up default GNU C++ configuration
10915
10916
10917# Check whether --with-gnu-ld was given.
10918if test "${with_gnu_ld+set}" = set; then
10919 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10920else
10921 with_gnu_ld=no
10922fi
10923
10924ac_prog=ld
10925if test "$GCC" = yes; then
10926 # Check if gcc -print-prog-name=ld gives a path.
10927 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10928echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10929 case $host in
10930 *-*-mingw*)
10931 # gcc leaves a trailing carriage return which upsets mingw
10932 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10933 *)
10934 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10935 esac
10936 case $ac_prog in
10937 # Accept absolute paths.
10938 [\\/]* | ?:[\\/]*)
10939 re_direlt='/[^/][^/]*/\.\./'
10940 # Canonicalize the pathname of ld
10941 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10942 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10943 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10944 done
10945 test -z "$LD" && LD="$ac_prog"
10946 ;;
10947 "")
10948 # If it fails, then pretend we aren't using GCC.
10949 ac_prog=ld
10950 ;;
10951 *)
10952 # If it is relative, then search for the first ld in PATH.
10953 with_gnu_ld=unknown
10954 ;;
10955 esac
10956elif test "$with_gnu_ld" = yes; then
10957 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10958echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10959else
10960 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10961echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10962fi
10963if test "${lt_cv_path_LD+set}" = set; then
10964 echo $ECHO_N "(cached) $ECHO_C" >&6
10965else
10966 if test -z "$LD"; then
10967 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10968 for ac_dir in $PATH; do
10969 IFS="$lt_save_ifs"
10970 test -z "$ac_dir" && ac_dir=.
10971 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10972 lt_cv_path_LD="$ac_dir/$ac_prog"
10973 # Check to see if the program is GNU ld. I'd rather use --version,
10974 # but apparently some GNU ld's only accept -v.
10975 # Break only if it was the GNU/non-GNU ld that we prefer.
10976 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10977 *GNU* | *'with BFD'*)
10978 test "$with_gnu_ld" != no && break
10979 ;;
10980 *)
10981 test "$with_gnu_ld" != yes && break
10982 ;;
10983 esac
10984 fi
10985 done
10986 IFS="$lt_save_ifs"
10987else
10988 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10989fi
10990fi
10991
10992LD="$lt_cv_path_LD"
10993if test -n "$LD"; then
10994 { echo "$as_me:$LINENO: result: $LD" >&5
10995echo "${ECHO_T}$LD" >&6; }
10996else
10997 { echo "$as_me:$LINENO: result: no" >&5
10998echo "${ECHO_T}no" >&6; }
10999fi
11000test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11001echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11002 { (exit 1); exit 1; }; }
11003{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11004echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11005if test "${lt_cv_prog_gnu_ld+set}" = set; then
11006 echo $ECHO_N "(cached) $ECHO_C" >&6
11007else
11008 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11009case `$LD -v 2>&1 </dev/null` in
11010*GNU* | *'with BFD'*)
11011 lt_cv_prog_gnu_ld=yes
11012 ;;
11013*)
11014 lt_cv_prog_gnu_ld=no
11015 ;;
11016esac
11017fi
11018{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11019echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11020with_gnu_ld=$lt_cv_prog_gnu_ld
11021
11022
11023
11024 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11025 # archiving commands below assume that GNU ld is being used.
11026 if test "$with_gnu_ld" = yes; then
11027 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11028 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11029
11030 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11031 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11032
11033 # If archive_cmds runs LD, not CC, wlarc should be empty
11034 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11035 # investigate it a little bit more. (MM)
11036 wlarc='${wl}'
11037
11038 # ancient GNU ld didn't support --whole-archive et. al.
11039 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11040 grep 'no-whole-archive' > /dev/null; then
11041 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11042 else
11043 whole_archive_flag_spec_CXX=
11044 fi
11045 else
11046 with_gnu_ld=no
11047 wlarc=
11048
11049 # A generic and very simple default shared library creation
11050 # command for GNU C++ for the case where it uses the native
11051 # linker, instead of GNU ld. If possible, this setting should
11052 # overridden to take advantage of the native linker features on
11053 # the platform it is being used on.
11054 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11055 fi
11056
11057 # Commands to make compiler produce verbose output that lists
11058 # what "hidden" libraries, object files and flags are used when
11059 # linking a shared library.
11060 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11061
11062else
11063 GXX=no
11064 with_gnu_ld=no
11065 wlarc=
11066fi
11067
11068# PORTME: fill in a description of your system's C++ link characteristics
11069{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11070echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11071ld_shlibs_CXX=yes
11072case $host_os in
11073 aix3*)
11074 # FIXME: insert proper C++ library support
11075 ld_shlibs_CXX=no
11076 ;;
11077 aix4* | aix5*)
11078 if test "$host_cpu" = ia64; then
11079 # On IA64, the linker does run time linking by default, so we don't
11080 # have to do anything special.
11081 aix_use_runtimelinking=no
11082 exp_sym_flag='-Bexport'
11083 no_entry_flag=""
11084 else
11085 aix_use_runtimelinking=no
11086
11087 # Test if we are trying to use run time linking or normal
11088 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11089 # need to do runtime linking.
11090 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11091 for ld_flag in $LDFLAGS; do
11092 case $ld_flag in
11093 *-brtl*)
11094 aix_use_runtimelinking=yes
11095 break
11096 ;;
11097 esac
11098 done
11099 esac
11100
11101 exp_sym_flag='-bexport'
11102 no_entry_flag='-bnoentry'
11103 fi
11104
11105 # When large executables or shared objects are built, AIX ld can
11106 # have problems creating the table of contents. If linking a library
11107 # or program results in "error TOC overflow" add -mminimal-toc to
11108 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11109 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11110
11111 archive_cmds_CXX=''
11112 hardcode_direct_CXX=yes
11113 hardcode_libdir_separator_CXX=':'
11114 link_all_deplibs_CXX=yes
11115
11116 if test "$GXX" = yes; then
11117 case $host_os in aix4.012|aix4.012.*)
11118 # We only want to do this on AIX 4.2 and lower, the check
11119 # below for broken collect2 doesn't work under 4.3+
11120 collect2name=`${CC} -print-prog-name=collect2`
11121 if test -f "$collect2name" && \
11122 strings "$collect2name" | grep resolve_lib_name >/dev/null
11123 then
11124 # We have reworked collect2
11125 hardcode_direct_CXX=yes
11126 else
11127 # We have old collect2
11128 hardcode_direct_CXX=unsupported
11129 # It fails to find uninstalled libraries when the uninstalled
11130 # path is not listed in the libpath. Setting hardcode_minus_L
11131 # to unsupported forces relinking
11132 hardcode_minus_L_CXX=yes
11133 hardcode_libdir_flag_spec_CXX='-L$libdir'
11134 hardcode_libdir_separator_CXX=
11135 fi
11136 esac
11137 shared_flag='-shared'
11138 else
11139 # not using gcc
11140 if test "$host_cpu" = ia64; then
11141 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11142 # chokes on -Wl,-G. The following line is correct:
11143 shared_flag='-G'
11144 else
11145 if test "$aix_use_runtimelinking" = yes; then
11146 shared_flag='${wl}-G'
11147 else
11148 shared_flag='${wl}-bM:SRE'
11149 fi
11150 fi
11151 fi
11152
11153 # It seems that -bexpall does not export symbols beginning with
11154 # underscore (_), so it is better to generate a list of symbols to export.
11155 always_export_symbols_CXX=yes
11156 if test "$aix_use_runtimelinking" = yes; then
11157 # Warning - without using the other runtime loading flags (-brtl),
11158 # -berok will link without error, but may produce a broken library.
11159 allow_undefined_flag_CXX='-berok'
11160 # Determine the default libpath from the value encoded in an empty executable.
11161 cat >conftest.$ac_ext <<_ACEOF
11162/* confdefs.h. */
11163_ACEOF
11164cat confdefs.h >>conftest.$ac_ext
11165cat >>conftest.$ac_ext <<_ACEOF
11166/* end confdefs.h. */
11167
11168int
11169main ()
11170{
11171
11172 ;
11173 return 0;
11174}
11175_ACEOF
11176rm -f conftest.$ac_objext conftest$ac_exeext
11177if { (ac_try="$ac_link"
11178case "(($ac_try" in
11179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11180 *) ac_try_echo=$ac_try;;
11181esac
11182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11183 (eval "$ac_link") 2>conftest.er1
11184 ac_status=$?
11185 grep -v '^ *+' conftest.er1 >conftest.err
11186 rm -f conftest.er1
11187 cat conftest.err >&5
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); } && {
11190 test -z "$ac_cxx_werror_flag" ||
11191 test ! -s conftest.err
11192 } && test -s conftest$ac_exeext &&
11193 $as_test_x conftest$ac_exeext; then
11194
11195aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11196}'`
11197# Check for a 64-bit object if we didn't find anything.
11198if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11199}'`; fi
11200else
11201 echo "$as_me: failed program was:" >&5
11202sed 's/^/| /' conftest.$ac_ext >&5
11203
11204
11205fi
11206
11207rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11208 conftest$ac_exeext conftest.$ac_ext
11209if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11210
11211 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11212
11213 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11214 else
11215 if test "$host_cpu" = ia64; then
11216 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11217 allow_undefined_flag_CXX="-z nodefs"
11218 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
11219 else
11220 # Determine the default libpath from the value encoded in an empty executable.
11221 cat >conftest.$ac_ext <<_ACEOF
11222/* confdefs.h. */
11223_ACEOF
11224cat confdefs.h >>conftest.$ac_ext
11225cat >>conftest.$ac_ext <<_ACEOF
11226/* end confdefs.h. */
11227
11228int
11229main ()
11230{
11231
11232 ;
11233 return 0;
11234}
11235_ACEOF
11236rm -f conftest.$ac_objext conftest$ac_exeext
11237if { (ac_try="$ac_link"
11238case "(($ac_try" in
11239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11240 *) ac_try_echo=$ac_try;;
11241esac
11242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11243 (eval "$ac_link") 2>conftest.er1
11244 ac_status=$?
11245 grep -v '^ *+' conftest.er1 >conftest.err
11246 rm -f conftest.er1
11247 cat conftest.err >&5
11248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249 (exit $ac_status); } && {
11250 test -z "$ac_cxx_werror_flag" ||
11251 test ! -s conftest.err
11252 } && test -s conftest$ac_exeext &&
11253 $as_test_x conftest$ac_exeext; then
11254
11255aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11256}'`
11257# Check for a 64-bit object if we didn't find anything.
11258if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11259}'`; fi
11260else
11261 echo "$as_me: failed program was:" >&5
11262sed 's/^/| /' conftest.$ac_ext >&5
11263
11264
11265fi
11266
11267rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11268 conftest$ac_exeext conftest.$ac_ext
11269if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11270
11271 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11272 # Warning - without using the other run time loading flags,
11273 # -berok will link without error, but may produce a broken library.
11274 no_undefined_flag_CXX=' ${wl}-bernotok'
11275 allow_undefined_flag_CXX=' ${wl}-berok'
11276 # -bexpall does not export symbols beginning with underscore (_)
11277 always_export_symbols_CXX=yes
11278 # Exported symbols can be pulled into shared objects from archives
11279 whole_archive_flag_spec_CXX=' '
11280 archive_cmds_need_lc_CXX=yes
11281 # This is similar to how AIX traditionally builds it's shared libraries.
11282 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11283 fi
11284 fi
11285 ;;
11286 chorus*)
11287 case $cc_basename in
11288 *)
11289 # FIXME: insert proper C++ library support
11290 ld_shlibs_CXX=no
11291 ;;
11292 esac
11293 ;;
11294
11295 cygwin* | mingw* | pw32*)
11296 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11297 # as there is no search path for DLLs.
11298 hardcode_libdir_flag_spec_CXX='-L$libdir'
11299 allow_undefined_flag_CXX=unsupported
11300 always_export_symbols_CXX=no
11301 enable_shared_with_static_runtimes_CXX=yes
11302
11303 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11304 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11305 # If the export-symbols file already is a .def file (1st line
11306 # is EXPORTS), use it as is; otherwise, prepend...
11307 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11308 cp $export_symbols $output_objdir/$soname.def;
11309 else
11310 echo EXPORTS > $output_objdir/$soname.def;
11311 cat $export_symbols >> $output_objdir/$soname.def;
11312 fi~
11313 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11314 else
11315 ld_shlibs_CXX=no
11316 fi
11317 ;;
11318
11319 darwin* | rhapsody*)
11320 if test "$GXX" = yes; then
11321 archive_cmds_need_lc_CXX=no
11322 case "$host_os" in
11323 rhapsody* | darwin1.[012])
11324 allow_undefined_flag_CXX='-undefined suppress'
11325 ;;
11326 *) # Darwin 1.3 on
11327 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11328 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
11329 else
11330 case ${MACOSX_DEPLOYMENT_TARGET} in
11331 10.[012])
11332 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
11333 ;;
11334 10.*)
11335 allow_undefined_flag_CXX='-undefined dynamic_lookup'
11336 ;;
11337 esac
11338 fi
11339 ;;
11340 esac
11341 lt_int_apple_cc_single_mod=no
11342 output_verbose_link_cmd='echo'
11343 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
11344 lt_int_apple_cc_single_mod=yes
11345 fi
11346 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11347 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11348 else
11349 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11350 fi
11351 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11352
11353 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11354 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11355 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11356 else
11357 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11358 fi
11359 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11360 hardcode_direct_CXX=no
11361 hardcode_automatic_CXX=yes
11362 hardcode_shlibpath_var_CXX=unsupported
11363 whole_archive_flag_spec_CXX='-all_load $convenience'
11364 link_all_deplibs_CXX=yes
11365 else
11366 ld_shlibs_CXX=no
11367 fi
11368 ;;
11369
11370 dgux*)
11371 case $cc_basename in
11372 ec++)
11373 # FIXME: insert proper C++ library support
11374 ld_shlibs_CXX=no
11375 ;;
11376 ghcx)
11377 # Green Hills C++ Compiler
11378 # FIXME: insert proper C++ library support
11379 ld_shlibs_CXX=no
11380 ;;
11381 *)
11382 # FIXME: insert proper C++ library support
11383 ld_shlibs_CXX=no
11384 ;;
11385 esac
11386 ;;
11387 freebsd12*)
11388 # C++ shared libraries reported to be fairly broken before switch to ELF
11389 ld_shlibs_CXX=no
11390 ;;
11391 freebsd-elf*)
11392 archive_cmds_need_lc_CXX=no
11393 ;;
11394 freebsd* | kfreebsd*-gnu)
11395 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11396 # conventions
11397 ld_shlibs_CXX=yes
11398 ;;
11399 gnu*)
11400 ;;
11401 hpux9*)
11402 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11403 hardcode_libdir_separator_CXX=:
11404 export_dynamic_flag_spec_CXX='${wl}-E'
11405 hardcode_direct_CXX=yes
11406 hardcode_minus_L_CXX=yes # Not in the search PATH,
11407 # but as the default
11408 # location of the library.
11409
11410 case $cc_basename in
11411 CC)
11412 # FIXME: insert proper C++ library support
11413 ld_shlibs_CXX=no
11414 ;;
11415 aCC)
11416 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11417 # Commands to make compiler produce verbose output that lists
11418 # what "hidden" libraries, object files and flags are used when
11419 # linking a shared library.
11420 #
11421 # There doesn't appear to be a way to prevent this compiler from
11422 # explicitly linking system object files so we need to strip them
11423 # from the output so that they don't get included in the library
11424 # dependencies.
11425 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11426 ;;
11427 *)
11428 if test "$GXX" = yes; then
11429 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11430 else
11431 # FIXME: insert proper C++ library support
11432 ld_shlibs_CXX=no
11433 fi
11434 ;;
11435 esac
11436 ;;
11437 hpux10*|hpux11*)
11438 if test $with_gnu_ld = no; then
11439 case "$host_cpu" in
11440 hppa*64*)
11441 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11442 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11443 hardcode_libdir_separator_CXX=:
11444 ;;
11445 ia64*)
11446 hardcode_libdir_flag_spec_CXX='-L$libdir'
11447 ;;
11448 *)
11449 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11450 hardcode_libdir_separator_CXX=:
11451 export_dynamic_flag_spec_CXX='${wl}-E'
11452 ;;
11453 esac
11454 fi
11455 case "$host_cpu" in
11456 hppa*64*)
11457 hardcode_direct_CXX=no
11458 hardcode_shlibpath_var_CXX=no
11459 ;;
11460 ia64*)
11461 hardcode_direct_CXX=no
11462 hardcode_shlibpath_var_CXX=no
11463 hardcode_minus_L_CXX=yes # Not in the search PATH,
11464 # but as the default
11465 # location of the library.
11466 ;;
11467 *)
11468 hardcode_direct_CXX=yes
11469 hardcode_minus_L_CXX=yes # Not in the search PATH,
11470 # but as the default
11471 # location of the library.
11472 ;;
11473 esac
11474
11475 case $cc_basename in
11476 CC)
11477 # FIXME: insert proper C++ library support
11478 ld_shlibs_CXX=no
11479 ;;
11480 aCC)
11481 case "$host_cpu" in
11482 hppa*64*|ia64*)
11483 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11484 ;;
11485 *)
11486 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11487 ;;
11488 esac
11489 # Commands to make compiler produce verbose output that lists
11490 # what "hidden" libraries, object files and flags are used when
11491 # linking a shared library.
11492 #
11493 # There doesn't appear to be a way to prevent this compiler from
11494 # explicitly linking system object files so we need to strip them
11495 # from the output so that they don't get included in the library
11496 # dependencies.
11497 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11498 ;;
11499 *)
11500 if test "$GXX" = yes; then
11501 if test $with_gnu_ld = no; then
11502 case "$host_cpu" in
11503 ia64*|hppa*64*)
11504 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11505 ;;
11506 *)
11507 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11508 ;;
11509 esac
11510 fi
11511 else
11512 # FIXME: insert proper C++ library support
11513 ld_shlibs_CXX=no
11514 fi
11515 ;;
11516 esac
11517 ;;
11518 irix5* | irix6*)
11519 case $cc_basename in
11520 CC)
11521 # SGI C++
11522 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11523
11524 # Archives containing C++ object files must be created using
11525 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11526 # necessary to make sure instantiated templates are included
11527 # in the archive.
11528 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11529 ;;
11530 *)
11531 if test "$GXX" = yes; then
11532 if test "$with_gnu_ld" = no; then
11533 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11534 else
11535 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11536 fi
11537 fi
11538 link_all_deplibs_CXX=yes
11539 ;;
11540 esac
11541 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11542 hardcode_libdir_separator_CXX=:
11543 ;;
11544 linux*)
11545 case $cc_basename in
11546 KCC)
11547 # Kuck and Associates, Inc. (KAI) C++ Compiler
11548
11549 # KCC will only create a shared library if the output file
11550 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11551 # to its proper name (with version) after linking.
11552 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11553 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11554 # Commands to make compiler produce verbose output that lists
11555 # what "hidden" libraries, object files and flags are used when
11556 # linking a shared library.
11557 #
11558 # There doesn't appear to be a way to prevent this compiler from
11559 # explicitly linking system object files so we need to strip them
11560 # from the output so that they don't get included in the library
11561 # dependencies.
11562 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11563
11564 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11565 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11566
11567 # Archives containing C++ object files must be created using
11568 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11569 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11570 ;;
11571 icpc)
11572 # Intel C++
11573 with_gnu_ld=yes
11574 archive_cmds_need_lc_CXX=no
11575 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11576 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11577 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11578 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11579 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11580 ;;
11581 cxx)
11582 # Compaq C++
11583 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11584 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11585
11586 runpath_var=LD_RUN_PATH
11587 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11588 hardcode_libdir_separator_CXX=:
11589
11590 # Commands to make compiler produce verbose output that lists
11591 # what "hidden" libraries, object files and flags are used when
11592 # linking a shared library.
11593 #
11594 # There doesn't appear to be a way to prevent this compiler from
11595 # explicitly linking system object files so we need to strip them
11596 # from the output so that they don't get included in the library
11597 # dependencies.
11598 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11599 ;;
11600 esac
11601 ;;
11602 lynxos*)
11603 # FIXME: insert proper C++ library support
11604 ld_shlibs_CXX=no
11605 ;;
11606 m88k*)
11607 # FIXME: insert proper C++ library support
11608 ld_shlibs_CXX=no
11609 ;;
11610 mvs*)
11611 case $cc_basename in
11612 cxx)
11613 # FIXME: insert proper C++ library support
11614 ld_shlibs_CXX=no
11615 ;;
11616 *)
11617 # FIXME: insert proper C++ library support
11618 ld_shlibs_CXX=no
11619 ;;
11620 esac
11621 ;;
11622 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11623 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11624 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11625 wlarc=
11626 hardcode_libdir_flag_spec_CXX='-R$libdir'
11627 hardcode_direct_CXX=yes
11628 hardcode_shlibpath_var_CXX=no
11629 fi
11630 # Workaround some broken pre-1.5 toolchains
11631 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11632 ;;
11633 osf3*)
11634 case $cc_basename in
11635 KCC)
11636 # Kuck and Associates, Inc. (KAI) C++ Compiler
11637
11638 # KCC will only create a shared library if the output file
11639 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11640 # to its proper name (with version) after linking.
11641 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11642
11643 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11644 hardcode_libdir_separator_CXX=:
11645
11646 # Archives containing C++ object files must be created using
11647 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11648 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11649
11650 ;;
11651 RCC)
11652 # Rational C++ 2.4.1
11653 # FIXME: insert proper C++ library support
11654 ld_shlibs_CXX=no
11655 ;;
11656 cxx)
11657 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11658 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11659
11660 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11661 hardcode_libdir_separator_CXX=:
11662
11663 # Commands to make compiler produce verbose output that lists
11664 # what "hidden" libraries, object files and flags are used when
11665 # linking a shared library.
11666 #
11667 # There doesn't appear to be a way to prevent this compiler from
11668 # explicitly linking system object files so we need to strip them
11669 # from the output so that they don't get included in the library
11670 # dependencies.
11671 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11672 ;;
11673 *)
11674 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11675 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11676 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11677
11678 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11679 hardcode_libdir_separator_CXX=:
11680
11681 # Commands to make compiler produce verbose output that lists
11682 # what "hidden" libraries, object files and flags are used when
11683 # linking a shared library.
11684 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11685
11686 else
11687 # FIXME: insert proper C++ library support
11688 ld_shlibs_CXX=no
11689 fi
11690 ;;
11691 esac
11692 ;;
11693 osf4* | osf5*)
11694 case $cc_basename in
11695 KCC)
11696 # Kuck and Associates, Inc. (KAI) C++ Compiler
11697
11698 # KCC will only create a shared library if the output file
11699 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11700 # to its proper name (with version) after linking.
11701 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11702
11703 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11704 hardcode_libdir_separator_CXX=:
11705
11706 # Archives containing C++ object files must be created using
11707 # the KAI C++ compiler.
11708 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11709 ;;
11710 RCC)
11711 # Rational C++ 2.4.1
11712 # FIXME: insert proper C++ library support
11713 ld_shlibs_CXX=no
11714 ;;
11715 cxx)
11716 allow_undefined_flag_CXX=' -expect_unresolved \*'
11717 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11718 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11719 echo "-hidden">> $lib.exp~
11720 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
11721 $rm $lib.exp'
11722
11723 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11724 hardcode_libdir_separator_CXX=:
11725
11726 # Commands to make compiler produce verbose output that lists
11727 # what "hidden" libraries, object files and flags are used when
11728 # linking a shared library.
11729 #
11730 # There doesn't appear to be a way to prevent this compiler from
11731 # explicitly linking system object files so we need to strip them
11732 # from the output so that they don't get included in the library
11733 # dependencies.
11734 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11735 ;;
11736 *)
11737 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11738 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11739 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11740
11741 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11742 hardcode_libdir_separator_CXX=:
11743
11744 # Commands to make compiler produce verbose output that lists
11745 # what "hidden" libraries, object files and flags are used when
11746 # linking a shared library.
11747 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11748
11749 else
11750 # FIXME: insert proper C++ library support
11751 ld_shlibs_CXX=no
11752 fi
11753 ;;
11754 esac
11755 ;;
11756 psos*)
11757 # FIXME: insert proper C++ library support
11758 ld_shlibs_CXX=no
11759 ;;
11760 sco*)
11761 archive_cmds_need_lc_CXX=no
11762 case $cc_basename in
11763 CC)
11764 # FIXME: insert proper C++ library support
11765 ld_shlibs_CXX=no
11766 ;;
11767 *)
11768 # FIXME: insert proper C++ library support
11769 ld_shlibs_CXX=no
11770 ;;
11771 esac
11772 ;;
11773 sunos4*)
11774 case $cc_basename in
11775 CC)
11776 # Sun C++ 4.x
11777 # FIXME: insert proper C++ library support
11778 ld_shlibs_CXX=no
11779 ;;
11780 lcc)
11781 # Lucid
11782 # FIXME: insert proper C++ library support
11783 ld_shlibs_CXX=no
11784 ;;
11785 *)
11786 # FIXME: insert proper C++ library support
11787 ld_shlibs_CXX=no
11788 ;;
11789 esac
11790 ;;
11791 solaris*)
11792 case $cc_basename in
11793 CC)
11794 # Sun C++ 4.2, 5.x and Centerline C++
11795 no_undefined_flag_CXX=' -zdefs'
11796 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11797 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11798 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11799
11800 hardcode_libdir_flag_spec_CXX='-R$libdir'
11801 hardcode_shlibpath_var_CXX=no
11802 case $host_os in
11803 solaris2.0-5 | solaris2.0-5.*) ;;
11804 *)
11805 # The C++ compiler is used as linker so we must use $wl
11806 # flag to pass the commands to the underlying system
11807 # linker.
11808 # Supported since Solaris 2.6 (maybe 2.5.1?)
11809 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11810 ;;
11811 esac
11812 link_all_deplibs_CXX=yes
11813
11814 # Commands to make compiler produce verbose output that lists
11815 # what "hidden" libraries, object files and flags are used when
11816 # linking a shared library.
11817 #
11818 # There doesn't appear to be a way to prevent this compiler from
11819 # explicitly linking system object files so we need to strip them
11820 # from the output so that they don't get included in the library
11821 # dependencies.
11822 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11823
11824 # Archives containing C++ object files must be created using
11825 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11826 # necessary to make sure instantiated templates are included
11827 # in the archive.
11828 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11829 ;;
11830 gcx)
11831 # Green Hills C++ Compiler
11832 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11833
11834 # The C++ compiler must be used to create the archive.
11835 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11836 ;;
11837 *)
11838 # GNU C++ compiler with Solaris linker
11839 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11840 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11841 if $CC --version | grep -v '^2\.7' > /dev/null; then
11842 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11843 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11844 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11845
11846 # Commands to make compiler produce verbose output that lists
11847 # what "hidden" libraries, object files and flags are used when
11848 # linking a shared library.
11849 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11850 else
11851 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11852 # platform.
11853 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11854 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11855 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11856
11857 # Commands to make compiler produce verbose output that lists
11858 # what "hidden" libraries, object files and flags are used when
11859 # linking a shared library.
11860 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11861 fi
11862
11863 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11864 fi
11865 ;;
11866 esac
11867 ;;
11868 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11869 archive_cmds_need_lc_CXX=no
11870 ;;
11871 tandem*)
11872 case $cc_basename in
11873 NCC)
11874 # NonStop-UX NCC 3.20
11875 # FIXME: insert proper C++ library support
11876 ld_shlibs_CXX=no
11877 ;;
11878 *)
11879 # FIXME: insert proper C++ library support
11880 ld_shlibs_CXX=no
11881 ;;
11882 esac
11883 ;;
11884 vxworks*)
11885 # FIXME: insert proper C++ library support
11886 ld_shlibs_CXX=no
11887 ;;
11888 *)
11889 # FIXME: insert proper C++ library support
11890 ld_shlibs_CXX=no
11891 ;;
11892esac
11893{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11894echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11895test "$ld_shlibs_CXX" = no && can_build_shared=no
11896
11897GCC_CXX="$GXX"
11898LD_CXX="$LD"
11899
11900## CAVEAT EMPTOR:
11901## There is no encapsulation within the following macros, do not change
11902## the running order or otherwise move them around unless you know exactly
11903## what you are doing...
11904
11905cat > conftest.$ac_ext <<EOF
11906class Foo
11907{
11908public:
11909 Foo (void) { a = 0; }
11910private:
11911 int a;
11912};
11913EOF
11914
11915if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11916 (eval $ac_compile) 2>&5
11917 ac_status=$?
11918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); }; then
11920 # Parse the compiler output and extract the necessary
11921 # objects, libraries and library flags.
11922
11923 # Sentinel used to keep track of whether or not we are before
11924 # the conftest object file.
11925 pre_test_object_deps_done=no
11926
11927 # The `*' in the case matches for architectures that use `case' in
11928 # $output_verbose_cmd can trigger glob expansion during the loop
11929 # eval without this substitution.
11930 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11931
11932 for p in `eval $output_verbose_link_cmd`; do
11933 case $p in
11934
11935 -L* | -R* | -l*)
11936 # Some compilers place space between "-{L,R}" and the path.
11937 # Remove the space.
11938 if test $p = "-L" \
11939 || test $p = "-R"; then
11940 prev=$p
11941 continue
11942 else
11943 prev=
11944 fi
11945
11946 if test "$pre_test_object_deps_done" = no; then
11947 case $p in
11948 -L* | -R*)
11949 # Internal compiler library paths should come after those
11950 # provided the user. The postdeps already come after the
11951 # user supplied libs so there is no need to process them.
11952 if test -z "$compiler_lib_search_path_CXX"; then
11953 compiler_lib_search_path_CXX="${prev}${p}"
11954 else
11955 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11956 fi
11957 ;;
11958 # The "-l" case would never come before the object being
11959 # linked, so don't bother handling this case.
11960 esac
11961 else
11962 if test -z "$postdeps_CXX"; then
11963 postdeps_CXX="${prev}${p}"
11964 else
11965 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11966 fi
11967 fi
11968 ;;
11969
11970 *.$objext)
11971 # This assumes that the test object file only shows up
11972 # once in the compiler output.
11973 if test "$p" = "conftest.$objext"; then
11974 pre_test_object_deps_done=yes
11975 continue
11976 fi
11977
11978 if test "$pre_test_object_deps_done" = no; then
11979 if test -z "$predep_objects_CXX"; then
11980 predep_objects_CXX="$p"
11981 else
11982 predep_objects_CXX="$predep_objects_CXX $p"
11983 fi
11984 else
11985 if test -z "$postdep_objects_CXX"; then
11986 postdep_objects_CXX="$p"
11987 else
11988 postdep_objects_CXX="$postdep_objects_CXX $p"
11989 fi
11990 fi
11991 ;;
11992
11993 *) ;; # Ignore the rest.
11994
11995 esac
11996 done
11997
11998 # Clean up.
11999 rm -f a.out a.exe
12000else
12001 echo "libtool.m4: error: problem compiling CXX test program"
12002fi
12003
12004$rm -f confest.$objext
12005
12006case " $postdeps_CXX " in
12007*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12008esac
12009
12010lt_prog_compiler_wl_CXX=
12011lt_prog_compiler_pic_CXX=
12012lt_prog_compiler_static_CXX=
12013
12014{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12015echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12016
12017 # C++ specific cases for pic, static, wl, etc.
12018 if test "$GXX" = yes; then
12019 lt_prog_compiler_wl_CXX='-Wl,'
12020 lt_prog_compiler_static_CXX='-static'
12021
12022 case $host_os in
12023 aix*)
12024 # All AIX code is PIC.
12025 if test "$host_cpu" = ia64; then
12026 # AIX 5 now supports IA64 processor
12027 lt_prog_compiler_static_CXX='-Bstatic'
12028 fi
12029 ;;
12030 amigaos*)
12031 # FIXME: we need at least 68020 code to build shared libraries, but
12032 # adding the `-m68020' flag to GCC prevents building anything better,
12033 # like `-m68040'.
12034 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12035 ;;
12036 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12037 # PIC is the default for these OSes.
12038 ;;
12039 mingw* | os2* | pw32*)
12040 # This hack is so that the source file can tell whether it is being
12041 # built for inclusion in a dll (and should export symbols for example).
12042 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12043 ;;
12044 darwin* | rhapsody*)
12045 # PIC is the default on this platform
12046 # Common symbols not allowed in MH_DYLIB files
12047 lt_prog_compiler_pic_CXX='-fno-common'
12048 ;;
12049 *djgpp*)
12050 # DJGPP does not support shared libraries at all
12051 lt_prog_compiler_pic_CXX=
12052 ;;
12053 sysv4*MP*)
12054 if test -d /usr/nec; then
12055 lt_prog_compiler_pic_CXX=-Kconform_pic
12056 fi
12057 ;;
12058 hpux*)
12059 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12060 # not for PA HP-UX.
12061 case "$host_cpu" in
12062 hppa*64*|ia64*)
12063 ;;
12064 *)
12065 lt_prog_compiler_pic_CXX='-fPIC'
12066 ;;
12067 esac
12068 ;;
12069 *)
12070 lt_prog_compiler_pic_CXX='-fPIC'
12071 ;;
12072 esac
12073 else
12074 case $host_os in
12075 aix4* | aix5*)
12076 # All AIX code is PIC.
12077 if test "$host_cpu" = ia64; then
12078 # AIX 5 now supports IA64 processor
12079 lt_prog_compiler_static_CXX='-Bstatic'
12080 else
12081 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12082 fi
12083 ;;
12084 chorus*)
12085 case $cc_basename in
12086 cxch68)
12087 # Green Hills C++ Compiler
12088 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12089 ;;
12090 esac
12091 ;;
12092 dgux*)
12093 case $cc_basename in
12094 ec++)
12095 lt_prog_compiler_pic_CXX='-KPIC'
12096 ;;
12097 ghcx)
12098 # Green Hills C++ Compiler
12099 lt_prog_compiler_pic_CXX='-pic'
12100 ;;
12101 *)
12102 ;;
12103 esac
12104 ;;
12105 freebsd* | kfreebsd*-gnu)
12106 # FreeBSD uses GNU C++
12107 ;;
12108 hpux9* | hpux10* | hpux11*)
12109 case $cc_basename in
12110 CC)
12111 lt_prog_compiler_wl_CXX='-Wl,'
12112 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12113 if test "$host_cpu" != ia64; then
12114 lt_prog_compiler_pic_CXX='+Z'
12115 fi
12116 ;;
12117 aCC)
12118 lt_prog_compiler_wl_CXX='-Wl,'
12119 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12120 case "$host_cpu" in
12121 hppa*64*|ia64*)
12122 # +Z the default
12123 ;;
12124 *)
12125 lt_prog_compiler_pic_CXX='+Z'
12126 ;;
12127 esac
12128 ;;
12129 *)
12130 ;;
12131 esac
12132 ;;
12133 irix5* | irix6* | nonstopux*)
12134 case $cc_basename in
12135 CC)
12136 lt_prog_compiler_wl_CXX='-Wl,'
12137 lt_prog_compiler_static_CXX='-non_shared'
12138 # CC pic flag -KPIC is the default.
12139 ;;
12140 *)
12141 ;;
12142 esac
12143 ;;
12144 linux*)
12145 case $cc_basename in
12146 KCC)
12147 # KAI C++ Compiler
12148 lt_prog_compiler_wl_CXX='--backend -Wl,'
12149 lt_prog_compiler_pic_CXX='-fPIC'
12150 ;;
12151 icpc)
12152 # Intel C++
12153 lt_prog_compiler_wl_CXX='-Wl,'
12154 lt_prog_compiler_pic_CXX='-KPIC'
12155 lt_prog_compiler_static_CXX='-static'
12156 ;;
12157 cxx)
12158 # Compaq C++
12159 # Make sure the PIC flag is empty. It appears that all Alpha
12160 # Linux and Compaq Tru64 Unix objects are PIC.
12161 lt_prog_compiler_pic_CXX=
12162 lt_prog_compiler_static_CXX='-non_shared'
12163 ;;
12164 *)
12165 ;;
12166 esac
12167 ;;
12168 lynxos*)
12169 ;;
12170 m88k*)
12171 ;;
12172 mvs*)
12173 case $cc_basename in
12174 cxx)
12175 lt_prog_compiler_pic_CXX='-W c,exportall'
12176 ;;
12177 *)
12178 ;;
12179 esac
12180 ;;
12181 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
12182 ;;
12183 osf3* | osf4* | osf5*)
12184 case $cc_basename in
12185 KCC)
12186 lt_prog_compiler_wl_CXX='--backend -Wl,'
12187 ;;
12188 RCC)
12189 # Rational C++ 2.4.1
12190 lt_prog_compiler_pic_CXX='-pic'
12191 ;;
12192 cxx)
12193 # Digital/Compaq C++
12194 lt_prog_compiler_wl_CXX='-Wl,'
12195 # Make sure the PIC flag is empty. It appears that all Alpha
12196 # Linux and Compaq Tru64 Unix objects are PIC.
12197 lt_prog_compiler_pic_CXX=
12198 lt_prog_compiler_static_CXX='-non_shared'
12199 ;;
12200 *)
12201 ;;
12202 esac
12203 ;;
12204 psos*)
12205 ;;
12206 sco*)
12207 case $cc_basename in
12208 CC)
12209 lt_prog_compiler_pic_CXX='-fPIC'
12210 ;;
12211 *)
12212 ;;
12213 esac
12214 ;;
12215 solaris*)
12216 case $cc_basename in
12217 CC)
12218 # Sun C++ 4.2, 5.x and Centerline C++
12219 lt_prog_compiler_pic_CXX='-KPIC'
12220 lt_prog_compiler_static_CXX='-Bstatic'
12221 lt_prog_compiler_wl_CXX='-Qoption ld '
12222 ;;
12223 gcx)
12224 # Green Hills C++ Compiler
12225 lt_prog_compiler_pic_CXX='-PIC'
12226 ;;
12227 *)
12228 ;;
12229 esac
12230 ;;
12231 sunos4*)
12232 case $cc_basename in
12233 CC)
12234 # Sun C++ 4.x
12235 lt_prog_compiler_pic_CXX='-pic'
12236 lt_prog_compiler_static_CXX='-Bstatic'
12237 ;;
12238 lcc)
12239 # Lucid
12240 lt_prog_compiler_pic_CXX='-pic'
12241 ;;
12242 *)
12243 ;;
12244 esac
12245 ;;
12246 tandem*)
12247 case $cc_basename in
12248 NCC)
12249 # NonStop-UX NCC 3.20
12250 lt_prog_compiler_pic_CXX='-KPIC'
12251 ;;
12252 *)
12253 ;;
12254 esac
12255 ;;
12256 unixware*)
12257 ;;
12258 vxworks*)
12259 ;;
12260 *)
12261 lt_prog_compiler_can_build_shared_CXX=no
12262 ;;
12263 esac
12264 fi
12265
12266{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12267echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12268
12269#
12270# Check to make sure the PIC flag actually works.
12271#
12272if test -n "$lt_prog_compiler_pic_CXX"; then
12273
12274{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12275echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12276if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12277 echo $ECHO_N "(cached) $ECHO_C" >&6
12278else
12279 lt_prog_compiler_pic_works_CXX=no
12280 ac_outfile=conftest.$ac_objext
12281 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12282 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12283 # Insert the option either (1) after the last *FLAGS variable, or
12284 # (2) before a word containing "conftest.", or (3) at the end.
12285 # Note that $ac_compile itself does not contain backslashes and begins
12286 # with a dollar sign (not a hyphen), so the echo should work correctly.
12287 # The option is referenced via a variable to avoid confusing sed.
12288 lt_compile=`echo "$ac_compile" | $SED \
12289 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12290 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12291 -e 's:$: $lt_compiler_flag:'`
12292 (eval echo "\"\$as_me:12292: $lt_compile\"" >&5)
12293 (eval "$lt_compile" 2>conftest.err)
12294 ac_status=$?
12295 cat conftest.err >&5
12296 echo "$as_me:12296: \$? = $ac_status" >&5
12297 if (exit $ac_status) && test -s "$ac_outfile"; then
12298 # The compiler can only warn and ignore the option if not recognized
12299 # So say no if there are warnings
12300 if test ! -s conftest.err; then
12301 lt_prog_compiler_pic_works_CXX=yes
12302 fi
12303 fi
12304 $rm conftest*
12305
12306fi
12307{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12308echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12309
12310if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12311 case $lt_prog_compiler_pic_CXX in
12312 "" | " "*) ;;
12313 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12314 esac
12315else
12316 lt_prog_compiler_pic_CXX=
12317 lt_prog_compiler_can_build_shared_CXX=no
12318fi
12319
12320fi
12321case "$host_os" in
12322 # For platforms which do not support PIC, -DPIC is meaningless:
12323 *djgpp*)
12324 lt_prog_compiler_pic_CXX=
12325 ;;
12326 *)
12327 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12328 ;;
12329esac
12330
12331{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12332echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12333if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12334 echo $ECHO_N "(cached) $ECHO_C" >&6
12335else
12336 lt_cv_prog_compiler_c_o_CXX=no
12337 $rm -r conftest 2>/dev/null
12338 mkdir conftest
12339 cd conftest
12340 mkdir out
12341 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12342
12343 lt_compiler_flag="-o out/conftest2.$ac_objext"
12344 # Insert the option either (1) after the last *FLAGS variable, or
12345 # (2) before a word containing "conftest.", or (3) at the end.
12346 # Note that $ac_compile itself does not contain backslashes and begins
12347 # with a dollar sign (not a hyphen), so the echo should work correctly.
12348 lt_compile=`echo "$ac_compile" | $SED \
12349 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12350 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12351 -e 's:$: $lt_compiler_flag:'`
12352 (eval echo "\"\$as_me:12352: $lt_compile\"" >&5)
12353 (eval "$lt_compile" 2>out/conftest.err)
12354 ac_status=$?
12355 cat out/conftest.err >&5
12356 echo "$as_me:12356: \$? = $ac_status" >&5
12357 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12358 then
12359 # The compiler can only warn and ignore the option if not recognized
12360 # So say no if there are warnings
12361 if test ! -s out/conftest.err; then
12362 lt_cv_prog_compiler_c_o_CXX=yes
12363 fi
12364 fi
12365 chmod u+w .
12366 $rm conftest*
12367 # SGI C++ compiler will create directory out/ii_files/ for
12368 # template instantiation
12369 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12370 $rm out/* && rmdir out
12371 cd ..
12372 rmdir conftest
12373 $rm conftest*
12374
12375fi
12376{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12377echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12378
12379
12380hard_links="nottested"
12381if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12382 # do not overwrite the value of need_locks provided by the user
12383 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12384echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12385 hard_links=yes
12386 $rm conftest*
12387 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12388 touch conftest.a
12389 ln conftest.a conftest.b 2>&5 || hard_links=no
12390 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12391 { echo "$as_me:$LINENO: result: $hard_links" >&5
12392echo "${ECHO_T}$hard_links" >&6; }
12393 if test "$hard_links" = no; then
12394 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12395echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12396 need_locks=warn
12397 fi
12398else
12399 need_locks=no
12400fi
12401
12402{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12403echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12404
12405 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12406 case $host_os in
12407 aix4* | aix5*)
12408 # If we're using GNU nm, then we don't want the "-C" option.
12409 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12410 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12411 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12412 else
12413 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12414 fi
12415 ;;
12416 pw32*)
12417 export_symbols_cmds_CXX="$ltdll_cmds"
12418 ;;
12419 cygwin* | mingw*)
12420 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12421 ;;
12422 linux*)
12423 link_all_deplibs_CXX=no
12424 ;;
12425 *)
12426 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12427 ;;
12428 esac
12429
12430{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12431echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12432test "$ld_shlibs_CXX" = no && can_build_shared=no
12433
12434variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12435if test "$GCC" = yes; then
12436 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12437fi
12438
12439#
12440# Do we need to explicitly link libc?
12441#
12442case "x$archive_cmds_need_lc_CXX" in
12443x|xyes)
12444 # Assume -lc should be added
12445 archive_cmds_need_lc_CXX=yes
12446
12447 if test "$enable_shared" = yes && test "$GCC" = yes; then
12448 case $archive_cmds_CXX in
12449 *'~'*)
12450 # FIXME: we may have to deal with multi-command sequences.
12451 ;;
12452 '$CC '*)
12453 # Test whether the compiler implicitly links with -lc since on some
12454 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12455 # to ld, don't add -lc before -lgcc.
12456 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12457echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12458 $rm conftest*
12459 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12460
12461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12462 (eval $ac_compile) 2>&5
12463 ac_status=$?
12464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465 (exit $ac_status); } 2>conftest.err; then
12466 soname=conftest
12467 lib=conftest
12468 libobjs=conftest.$ac_objext
12469 deplibs=
12470 wl=$lt_prog_compiler_wl_CXX
12471 compiler_flags=-v
12472 linker_flags=-v
12473 verstring=
12474 output_objdir=.
12475 libname=conftest
12476 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12477 allow_undefined_flag_CXX=
12478 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12479 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12480 ac_status=$?
12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 (exit $ac_status); }
12483 then
12484 archive_cmds_need_lc_CXX=no
12485 else
12486 archive_cmds_need_lc_CXX=yes
12487 fi
12488 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12489 else
12490 cat conftest.err 1>&5
12491 fi
12492 $rm conftest*
12493 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12494echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12495 ;;
12496 esac
12497 fi
12498 ;;
12499esac
12500
12501{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12502echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12503library_names_spec=
12504libname_spec='lib$name'
12505soname_spec=
12506shrext_cmds=".so"
12507postinstall_cmds=
12508postuninstall_cmds=
12509finish_cmds=
12510finish_eval=
12511shlibpath_var=
12512shlibpath_overrides_runpath=unknown
12513version_type=none
12514dynamic_linker="$host_os ld.so"
12515sys_lib_dlsearch_path_spec="/lib /usr/lib"
12516if test "$GCC" = yes; then
12517 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12518 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12519 # if the path contains ";" then we assume it to be the separator
12520 # otherwise default to the standard path separator (i.e. ":") - it is
12521 # assumed that no part of a normal pathname contains ";" but that should
12522 # okay in the real world where ";" in dirpaths is itself problematic.
12523 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12524 else
12525 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12526 fi
12527else
12528 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12529fi
12530need_lib_prefix=unknown
12531hardcode_into_libs=no
12532
12533# when you set need_version to no, make sure it does not cause -set_version
12534# flags to be left without arguments
12535need_version=unknown
12536
12537case $host_os in
12538aix3*)
12539 version_type=linux
12540 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12541 shlibpath_var=LIBPATH
12542
12543 # AIX 3 has no versioning support, so we append a major version to the name.
12544 soname_spec='${libname}${release}${shared_ext}$major'
12545 ;;
12546
12547aix4* | aix5*)
12548 version_type=linux
12549 need_lib_prefix=no
12550 need_version=no
12551 hardcode_into_libs=yes
12552 if test "$host_cpu" = ia64; then
12553 # AIX 5 supports IA64
12554 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12555 shlibpath_var=LD_LIBRARY_PATH
12556 else
12557 # With GCC up to 2.95.x, collect2 would create an import file
12558 # for dependence libraries. The import file would start with
12559 # the line `#! .'. This would cause the generated library to
12560 # depend on `.', always an invalid library. This was fixed in
12561 # development snapshots of GCC prior to 3.0.
12562 case $host_os in
12563 aix4 | aix4.[01] | aix4.[01].*)
12564 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12565 echo ' yes '
12566 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12567 :
12568 else
12569 can_build_shared=no
12570 fi
12571 ;;
12572 esac
12573 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12574 # soname into executable. Probably we can add versioning support to
12575 # collect2, so additional links can be useful in future.
12576 if test "$aix_use_runtimelinking" = yes; then
12577 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12578 # instead of lib<name>.a to let people know that these are not
12579 # typical AIX shared libraries.
12580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12581 else
12582 # We preserve .a as extension for shared libraries through AIX4.2
12583 # and later when we are not doing run time linking.
12584 library_names_spec='${libname}${release}.a $libname.a'
12585 soname_spec='${libname}${release}${shared_ext}$major'
12586 fi
12587 shlibpath_var=LIBPATH
12588 fi
12589 ;;
12590
12591amigaos*)
12592 library_names_spec='$libname.ixlibrary $libname.a'
12593 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12594 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12595 ;;
12596
12597beos*)
12598 library_names_spec='${libname}${shared_ext}'
12599 dynamic_linker="$host_os ld.so"
12600 shlibpath_var=LIBRARY_PATH
12601 ;;
12602
12603bsdi4*)
12604 version_type=linux
12605 need_version=no
12606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12607 soname_spec='${libname}${release}${shared_ext}$major'
12608 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12609 shlibpath_var=LD_LIBRARY_PATH
12610 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12611 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12612 # the default ld.so.conf also contains /usr/contrib/lib and
12613 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12614 # libtool to hard-code these into programs
12615 ;;
12616
12617cygwin* | mingw* | pw32*)
12618 version_type=windows
12619 shrext_cmds=".dll"
12620 need_version=no
12621 need_lib_prefix=no
12622
12623 case $GCC,$host_os in
12624 yes,cygwin* | yes,mingw* | yes,pw32*)
12625 library_names_spec='$libname.dll.a'
12626 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12627 postinstall_cmds='base_file=`basename \${file}`~
12628 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12629 dldir=$destdir/`dirname \$dlpath`~
12630 test -d \$dldir || mkdir -p \$dldir~
12631 $install_prog $dir/$dlname \$dldir/$dlname'
12632 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12633 dlpath=$dir/\$dldll~
12634 $rm \$dlpath'
12635 shlibpath_overrides_runpath=yes
12636
12637 case $host_os in
12638 cygwin*)
12639 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12640 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12641 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12642 ;;
12643 mingw*)
12644 # MinGW DLLs use traditional 'lib' prefix
12645 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12646 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12647 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12648 # It is most probably a Windows format PATH printed by
12649 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12650 # path with ; separators, and with drive letters. We can handle the
12651 # drive letters (cygwin fileutils understands them), so leave them,
12652 # especially as we might pass files found there to a mingw objdump,
12653 # which wouldn't understand a cygwinified path. Ahh.
12654 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12655 else
12656 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12657 fi
12658 ;;
12659 pw32*)
12660 # pw32 DLLs use 'pw' prefix rather than 'lib'
12661 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
12662 ;;
12663 esac
12664 ;;
12665
12666 *)
12667 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12668 ;;
12669 esac
12670 dynamic_linker='Win32 ld.exe'
12671 # FIXME: first we should search . and the directory the executable is in
12672 shlibpath_var=PATH
12673 ;;
12674
12675darwin* | rhapsody*)
12676 dynamic_linker="$host_os dyld"
12677 version_type=darwin
12678 need_lib_prefix=no
12679 need_version=no
12680 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12681 soname_spec='${libname}${release}${major}$shared_ext'
12682 shlibpath_overrides_runpath=yes
12683 shlibpath_var=DYLD_LIBRARY_PATH
12684 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
12685 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12686 if test "$GCC" = yes; then
12687 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12688 else
12689 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12690 fi
12691 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12692 ;;
12693
12694dgux*)
12695 version_type=linux
12696 need_lib_prefix=no
12697 need_version=no
12698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12699 soname_spec='${libname}${release}${shared_ext}$major'
12700 shlibpath_var=LD_LIBRARY_PATH
12701 ;;
12702
12703freebsd1*)
12704 dynamic_linker=no
12705 ;;
12706
12707kfreebsd*-gnu)
12708 version_type=linux
12709 need_lib_prefix=no
12710 need_version=no
12711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12712 soname_spec='${libname}${release}${shared_ext}$major'
12713 shlibpath_var=LD_LIBRARY_PATH
12714 shlibpath_overrides_runpath=no
12715 hardcode_into_libs=yes
12716 dynamic_linker='GNU ld.so'
12717 ;;
12718
12719freebsd*)
12720 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12721 version_type=freebsd-$objformat
12722 case $version_type in
12723 freebsd-elf*)
12724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12725 need_version=no
12726 need_lib_prefix=no
12727 ;;
12728 freebsd-*)
12729 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12730 need_version=yes
12731 ;;
12732 esac
12733 shlibpath_var=LD_LIBRARY_PATH
12734 case $host_os in
12735 freebsd2*)
12736 shlibpath_overrides_runpath=yes
12737 ;;
12738 freebsd3.01* | freebsdelf3.01*)
12739 shlibpath_overrides_runpath=yes
12740 hardcode_into_libs=yes
12741 ;;
12742 *) # from 3.2 on
12743 shlibpath_overrides_runpath=no
12744 hardcode_into_libs=yes
12745 ;;
12746 esac
12747 ;;
12748
12749gnu*)
12750 version_type=linux
12751 need_lib_prefix=no
12752 need_version=no
12753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12754 soname_spec='${libname}${release}${shared_ext}$major'
12755 shlibpath_var=LD_LIBRARY_PATH
12756 hardcode_into_libs=yes
12757 ;;
12758
12759hpux9* | hpux10* | hpux11*)
12760 # Give a soname corresponding to the major version so that dld.sl refuses to
12761 # link against other versions.
12762 version_type=sunos
12763 need_lib_prefix=no
12764 need_version=no
12765 case "$host_cpu" in
12766 ia64*)
12767 shrext_cmds='.so'
12768 hardcode_into_libs=yes
12769 dynamic_linker="$host_os dld.so"
12770 shlibpath_var=LD_LIBRARY_PATH
12771 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12773 soname_spec='${libname}${release}${shared_ext}$major'
12774 if test "X$HPUX_IA64_MODE" = X32; then
12775 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12776 else
12777 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12778 fi
12779 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12780 ;;
12781 hppa*64*)
12782 shrext_cmds='.sl'
12783 hardcode_into_libs=yes
12784 dynamic_linker="$host_os dld.sl"
12785 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12786 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12788 soname_spec='${libname}${release}${shared_ext}$major'
12789 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12790 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12791 ;;
12792 *)
12793 shrext_cmds='.sl'
12794 dynamic_linker="$host_os dld.sl"
12795 shlibpath_var=SHLIB_PATH
12796 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12798 soname_spec='${libname}${release}${shared_ext}$major'
12799 ;;
12800 esac
12801 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12802 postinstall_cmds='chmod 555 $lib'
12803 ;;
12804
12805irix5* | irix6* | nonstopux*)
12806 case $host_os in
12807 nonstopux*) version_type=nonstopux ;;
12808 *)
12809 if test "$lt_cv_prog_gnu_ld" = yes; then
12810 version_type=linux
12811 else
12812 version_type=irix
12813 fi ;;
12814 esac
12815 need_lib_prefix=no
12816 need_version=no
12817 soname_spec='${libname}${release}${shared_ext}$major'
12818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12819 case $host_os in
12820 irix5* | nonstopux*)
12821 libsuff= shlibsuff=
12822 ;;
12823 *)
12824 case $LD in # libtool.m4 will add one of these switches to LD
12825 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12826 libsuff= shlibsuff= libmagic=32-bit;;
12827 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12828 libsuff=32 shlibsuff=N32 libmagic=N32;;
12829 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12830 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12831 *) libsuff= shlibsuff= libmagic=never-match;;
12832 esac
12833 ;;
12834 esac
12835 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12836 shlibpath_overrides_runpath=no
12837 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12838 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12839 hardcode_into_libs=yes
12840 ;;
12841
12842# No shared lib support for Linux oldld, aout, or coff.
12843linux*oldld* | linux*aout* | linux*coff*)
12844 dynamic_linker=no
12845 ;;
12846
12847# This must be Linux ELF.
12848linux*)
12849 version_type=linux
12850 need_lib_prefix=no
12851 need_version=no
12852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12853 soname_spec='${libname}${release}${shared_ext}$major'
12854 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12855 shlibpath_var=LD_LIBRARY_PATH
12856 shlibpath_overrides_runpath=no
12857 # This implies no fast_install, which is unacceptable.
12858 # Some rework will be needed to allow for fast_install
12859 # before this can be enabled.
12860 hardcode_into_libs=yes
12861
12862 # Append ld.so.conf contents to the search path
12863 if test -f /etc/ld.so.conf; then
12864 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
12865 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12866 fi
12867
12868 # We used to test for /lib/ld.so.1 and disable shared libraries on
12869 # powerpc, because MkLinux only supported shared libraries with the
12870 # GNU dynamic linker. Since this was broken with cross compilers,
12871 # most powerpc-linux boxes support dynamic linking these days and
12872 # people can always --disable-shared, the test was removed, and we
12873 # assume the GNU/Linux dynamic linker is in use.
12874 dynamic_linker='GNU/Linux ld.so'
12875 ;;
12876
12877netbsdelf*-gnu)
12878 version_type=linux
12879 need_lib_prefix=no
12880 need_version=no
12881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12882 soname_spec='${libname}${release}${shared_ext}$major'
12883 shlibpath_var=LD_LIBRARY_PATH
12884 shlibpath_overrides_runpath=no
12885 hardcode_into_libs=yes
12886 dynamic_linker='NetBSD ld.elf_so'
12887 ;;
12888
12889knetbsd*-gnu)
12890 version_type=linux
12891 need_lib_prefix=no
12892 need_version=no
12893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12894 soname_spec='${libname}${release}${shared_ext}$major'
12895 shlibpath_var=LD_LIBRARY_PATH
12896 shlibpath_overrides_runpath=no
12897 hardcode_into_libs=yes
12898 dynamic_linker='GNU ld.so'
12899 ;;
12900
12901netbsd*)
12902 version_type=sunos
12903 need_lib_prefix=no
12904 need_version=no
12905 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12907 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12908 dynamic_linker='NetBSD (a.out) ld.so'
12909 else
12910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12911 soname_spec='${libname}${release}${shared_ext}$major'
12912 dynamic_linker='NetBSD ld.elf_so'
12913 fi
12914 shlibpath_var=LD_LIBRARY_PATH
12915 shlibpath_overrides_runpath=yes
12916 hardcode_into_libs=yes
12917 ;;
12918
12919newsos6)
12920 version_type=linux
12921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12922 shlibpath_var=LD_LIBRARY_PATH
12923 shlibpath_overrides_runpath=yes
12924 ;;
12925
12926nto-qnx*)
12927 version_type=linux
12928 need_lib_prefix=no
12929 need_version=no
12930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12931 soname_spec='${libname}${release}${shared_ext}$major'
12932 shlibpath_var=LD_LIBRARY_PATH
12933 shlibpath_overrides_runpath=yes
12934 ;;
12935
12936openbsd*)
12937 version_type=sunos
12938 need_lib_prefix=no
12939 need_version=yes
12940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12941 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12942 shlibpath_var=LD_LIBRARY_PATH
12943 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12944 case $host_os in
12945 openbsd2.[89] | openbsd2.[89].*)
12946 shlibpath_overrides_runpath=no
12947 ;;
12948 *)
12949 shlibpath_overrides_runpath=yes
12950 ;;
12951 esac
12952 else
12953 shlibpath_overrides_runpath=yes
12954 fi
12955 ;;
12956
12957os2*)
12958 libname_spec='$name'
12959 shrext_cmds=".dll"
12960 need_lib_prefix=no
12961 library_names_spec='$libname${shared_ext} $libname.a'
12962 dynamic_linker='OS/2 ld.exe'
12963 shlibpath_var=LIBPATH
12964 ;;
12965
12966osf3* | osf4* | osf5*)
12967 version_type=osf
12968 need_lib_prefix=no
12969 need_version=no
12970 soname_spec='${libname}${release}${shared_ext}$major'
12971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12972 shlibpath_var=LD_LIBRARY_PATH
12973 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12974 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12975 ;;
12976
12977sco3.2v5*)
12978 version_type=osf
12979 soname_spec='${libname}${release}${shared_ext}$major'
12980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12981 shlibpath_var=LD_LIBRARY_PATH
12982 ;;
12983
12984solaris*)
12985 version_type=linux
12986 need_lib_prefix=no
12987 need_version=no
12988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12989 soname_spec='${libname}${release}${shared_ext}$major'
12990 shlibpath_var=LD_LIBRARY_PATH
12991 shlibpath_overrides_runpath=yes
12992 hardcode_into_libs=yes
12993 # ldd complains unless libraries are executable
12994 postinstall_cmds='chmod +x $lib'
12995 ;;
12996
12997sunos4*)
12998 version_type=sunos
12999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13000 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13001 shlibpath_var=LD_LIBRARY_PATH
13002 shlibpath_overrides_runpath=yes
13003 if test "$with_gnu_ld" = yes; then
13004 need_lib_prefix=no
13005 fi
13006 need_version=yes
13007 ;;
13008
13009sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13010 version_type=linux
13011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13012 soname_spec='${libname}${release}${shared_ext}$major'
13013 shlibpath_var=LD_LIBRARY_PATH
13014 case $host_vendor in
13015 sni)
13016 shlibpath_overrides_runpath=no
13017 need_lib_prefix=no
13018 export_dynamic_flag_spec='${wl}-Blargedynsym'
13019 runpath_var=LD_RUN_PATH
13020 ;;
13021 siemens)
13022 need_lib_prefix=no
13023 ;;
13024 motorola)
13025 need_lib_prefix=no
13026 need_version=no
13027 shlibpath_overrides_runpath=no
13028 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13029 ;;
13030 esac
13031 ;;
13032
13033sysv4*MP*)
13034 if test -d /usr/nec ;then
13035 version_type=linux
13036 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13037 soname_spec='$libname${shared_ext}.$major'
13038 shlibpath_var=LD_LIBRARY_PATH
13039 fi
13040 ;;
13041
13042uts4*)
13043 version_type=linux
13044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13045 soname_spec='${libname}${release}${shared_ext}$major'
13046 shlibpath_var=LD_LIBRARY_PATH
13047 ;;
13048
13049*)
13050 dynamic_linker=no
13051 ;;
13052esac
13053{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13054echo "${ECHO_T}$dynamic_linker" >&6; }
13055test "$dynamic_linker" = no && can_build_shared=no
13056
13057{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13058echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13059hardcode_action_CXX=
13060if test -n "$hardcode_libdir_flag_spec_CXX" || \
13061 test -n "$runpath_var CXX" || \
13062 test "X$hardcode_automatic_CXX"="Xyes" ; then
13063
13064 # We can hardcode non-existant directories.
13065 if test "$hardcode_direct_CXX" != no &&
13066 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13067 # have to relink, otherwise we might link with an installed library
13068 # when we should be linking with a yet-to-be-installed one
13069 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13070 test "$hardcode_minus_L_CXX" != no; then
13071 # Linking always hardcodes the temporary library directory.
13072 hardcode_action_CXX=relink
13073 else
13074 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13075 hardcode_action_CXX=immediate
13076 fi
13077else
13078 # We cannot hardcode anything, or else we can only hardcode existing
13079 # directories.
13080 hardcode_action_CXX=unsupported
13081fi
13082{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13083echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13084
13085if test "$hardcode_action_CXX" = relink; then
13086 # Fast installation is not supported
13087 enable_fast_install=no
13088elif test "$shlibpath_overrides_runpath" = yes ||
13089 test "$enable_shared" = no; then
13090 # Fast installation is not necessary
13091 enable_fast_install=needless
13092fi
13093
13094striplib=
13095old_striplib=
13096{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13097echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
13098if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13099 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13100 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13101 { echo "$as_me:$LINENO: result: yes" >&5
13102echo "${ECHO_T}yes" >&6; }
13103else
13104# FIXME - insert some real tests, host_os isn't really good enough
13105 case $host_os in
13106 darwin*)
13107 if test -n "$STRIP" ; then
13108 striplib="$STRIP -x"
13109 { echo "$as_me:$LINENO: result: yes" >&5
13110echo "${ECHO_T}yes" >&6; }
13111 else
13112 { echo "$as_me:$LINENO: result: no" >&5
13113echo "${ECHO_T}no" >&6; }
13114fi
13115 ;;
13116 *)
13117 { echo "$as_me:$LINENO: result: no" >&5
13118echo "${ECHO_T}no" >&6; }
13119 ;;
13120 esac
13121fi
13122
13123if test "x$enable_dlopen" != xyes; then
13124 enable_dlopen=unknown
13125 enable_dlopen_self=unknown
13126 enable_dlopen_self_static=unknown
13127else
13128 lt_cv_dlopen=no
13129 lt_cv_dlopen_libs=
13130
13131 case $host_os in
13132 beos*)
13133 lt_cv_dlopen="load_add_on"
13134 lt_cv_dlopen_libs=
13135 lt_cv_dlopen_self=yes
13136 ;;
13137
13138 mingw* | pw32*)
13139 lt_cv_dlopen="LoadLibrary"
13140 lt_cv_dlopen_libs=
13141 ;;
13142
13143 cygwin*)
13144 lt_cv_dlopen="dlopen"
13145 lt_cv_dlopen_libs=
13146 ;;
13147
13148 darwin*)
13149 # if libdl is installed we need to link against it
13150 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13151echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13152if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13153 echo $ECHO_N "(cached) $ECHO_C" >&6
13154else
13155 ac_check_lib_save_LIBS=$LIBS
13156LIBS="-ldl $LIBS"
13157cat >conftest.$ac_ext <<_ACEOF
13158/* confdefs.h. */
13159_ACEOF
13160cat confdefs.h >>conftest.$ac_ext
13161cat >>conftest.$ac_ext <<_ACEOF
13162/* end confdefs.h. */
13163
13164/* Override any GCC internal prototype to avoid an error.
13165 Use char because int might match the return type of a GCC
13166 builtin and then its argument prototype would still apply. */
13167#ifdef __cplusplus
13168extern "C"
13169#endif
13170char dlopen ();
13171int
13172main ()
13173{
13174return dlopen ();
13175 ;
13176 return 0;
13177}
13178_ACEOF
13179rm -f conftest.$ac_objext conftest$ac_exeext
13180if { (ac_try="$ac_link"
13181case "(($ac_try" in
13182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13183 *) ac_try_echo=$ac_try;;
13184esac
13185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13186 (eval "$ac_link") 2>conftest.er1
13187 ac_status=$?
13188 grep -v '^ *+' conftest.er1 >conftest.err
13189 rm -f conftest.er1
13190 cat conftest.err >&5
13191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192 (exit $ac_status); } && {
13193 test -z "$ac_cxx_werror_flag" ||
13194 test ! -s conftest.err
13195 } && test -s conftest$ac_exeext &&
13196 $as_test_x conftest$ac_exeext; then
13197 ac_cv_lib_dl_dlopen=yes
13198else
13199 echo "$as_me: failed program was:" >&5
13200sed 's/^/| /' conftest.$ac_ext >&5
13201
13202 ac_cv_lib_dl_dlopen=no
13203fi
13204
13205rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13206 conftest$ac_exeext conftest.$ac_ext
13207LIBS=$ac_check_lib_save_LIBS
13208fi
13209{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13210echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13211if test $ac_cv_lib_dl_dlopen = yes; then
13212 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13213else
13214
13215 lt_cv_dlopen="dyld"
13216 lt_cv_dlopen_libs=
13217 lt_cv_dlopen_self=yes
13218
13219fi
13220
13221 ;;
13222
13223 *)
13224 { echo "$as_me:$LINENO: checking for shl_load" >&5
13225echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
13226if test "${ac_cv_func_shl_load+set}" = set; then
13227 echo $ECHO_N "(cached) $ECHO_C" >&6
13228else
13229 cat >conftest.$ac_ext <<_ACEOF
13230/* confdefs.h. */
13231_ACEOF
13232cat confdefs.h >>conftest.$ac_ext
13233cat >>conftest.$ac_ext <<_ACEOF
13234/* end confdefs.h. */
13235/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13236 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13237#define shl_load innocuous_shl_load
13238
13239/* System header to define __stub macros and hopefully few prototypes,
13240 which can conflict with char shl_load (); below.
13241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13242 <limits.h> exists even on freestanding compilers. */
13243
13244#ifdef __STDC__
13245# include <limits.h>
13246#else
13247# include <assert.h>
13248#endif
13249
13250#undef shl_load
13251
13252/* Override any GCC internal prototype to avoid an error.
13253 Use char because int might match the return type of a GCC
13254 builtin and then its argument prototype would still apply. */
13255#ifdef __cplusplus
13256extern "C"
13257#endif
13258char shl_load ();
13259/* The GNU C library defines this for functions which it implements
13260 to always fail with ENOSYS. Some functions are actually named
13261 something starting with __ and the normal name is an alias. */
13262#if defined __stub_shl_load || defined __stub___shl_load
13263choke me
13264#endif
13265
13266int
13267main ()
13268{
13269return shl_load ();
13270 ;
13271 return 0;
13272}
13273_ACEOF
13274rm -f conftest.$ac_objext conftest$ac_exeext
13275if { (ac_try="$ac_link"
13276case "(($ac_try" in
13277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13278 *) ac_try_echo=$ac_try;;
13279esac
13280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13281 (eval "$ac_link") 2>conftest.er1
13282 ac_status=$?
13283 grep -v '^ *+' conftest.er1 >conftest.err
13284 rm -f conftest.er1
13285 cat conftest.err >&5
13286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13287 (exit $ac_status); } && {
13288 test -z "$ac_cxx_werror_flag" ||
13289 test ! -s conftest.err
13290 } && test -s conftest$ac_exeext &&
13291 $as_test_x conftest$ac_exeext; then
13292 ac_cv_func_shl_load=yes
13293else
13294 echo "$as_me: failed program was:" >&5
13295sed 's/^/| /' conftest.$ac_ext >&5
13296
13297 ac_cv_func_shl_load=no
13298fi
13299
13300rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13301 conftest$ac_exeext conftest.$ac_ext
13302fi
13303{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13304echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
13305if test $ac_cv_func_shl_load = yes; then
13306 lt_cv_dlopen="shl_load"
13307else
13308 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13309echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
13310if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13311 echo $ECHO_N "(cached) $ECHO_C" >&6
13312else
13313 ac_check_lib_save_LIBS=$LIBS
13314LIBS="-ldld $LIBS"
13315cat >conftest.$ac_ext <<_ACEOF
13316/* confdefs.h. */
13317_ACEOF
13318cat confdefs.h >>conftest.$ac_ext
13319cat >>conftest.$ac_ext <<_ACEOF
13320/* end confdefs.h. */
13321
13322/* Override any GCC internal prototype to avoid an error.
13323 Use char because int might match the return type of a GCC
13324 builtin and then its argument prototype would still apply. */
13325#ifdef __cplusplus
13326extern "C"
13327#endif
13328char shl_load ();
13329int
13330main ()
13331{
13332return shl_load ();
13333 ;
13334 return 0;
13335}
13336_ACEOF
13337rm -f conftest.$ac_objext conftest$ac_exeext
13338if { (ac_try="$ac_link"
13339case "(($ac_try" in
13340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13341 *) ac_try_echo=$ac_try;;
13342esac
13343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13344 (eval "$ac_link") 2>conftest.er1
13345 ac_status=$?
13346 grep -v '^ *+' conftest.er1 >conftest.err
13347 rm -f conftest.er1
13348 cat conftest.err >&5
13349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350 (exit $ac_status); } && {
13351 test -z "$ac_cxx_werror_flag" ||
13352 test ! -s conftest.err
13353 } && test -s conftest$ac_exeext &&
13354 $as_test_x conftest$ac_exeext; then
13355 ac_cv_lib_dld_shl_load=yes
13356else
13357 echo "$as_me: failed program was:" >&5
13358sed 's/^/| /' conftest.$ac_ext >&5
13359
13360 ac_cv_lib_dld_shl_load=no
13361fi
13362
13363rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13364 conftest$ac_exeext conftest.$ac_ext
13365LIBS=$ac_check_lib_save_LIBS
13366fi
13367{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13368echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
13369if test $ac_cv_lib_dld_shl_load = yes; then
13370 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13371else
13372 { echo "$as_me:$LINENO: checking for dlopen" >&5
13373echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
13374if test "${ac_cv_func_dlopen+set}" = set; then
13375 echo $ECHO_N "(cached) $ECHO_C" >&6
13376else
13377 cat >conftest.$ac_ext <<_ACEOF
13378/* confdefs.h. */
13379_ACEOF
13380cat confdefs.h >>conftest.$ac_ext
13381cat >>conftest.$ac_ext <<_ACEOF
13382/* end confdefs.h. */
13383/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13385#define dlopen innocuous_dlopen
13386
13387/* System header to define __stub macros and hopefully few prototypes,
13388 which can conflict with char dlopen (); below.
13389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13390 <limits.h> exists even on freestanding compilers. */
13391
13392#ifdef __STDC__
13393# include <limits.h>
13394#else
13395# include <assert.h>
13396#endif
13397
13398#undef dlopen
13399
13400/* Override any GCC internal prototype to avoid an error.
13401 Use char because int might match the return type of a GCC
13402 builtin and then its argument prototype would still apply. */
13403#ifdef __cplusplus
13404extern "C"
13405#endif
13406char dlopen ();
13407/* The GNU C library defines this for functions which it implements
13408 to always fail with ENOSYS. Some functions are actually named
13409 something starting with __ and the normal name is an alias. */
13410#if defined __stub_dlopen || defined __stub___dlopen
13411choke me
13412#endif
13413
13414int
13415main ()
13416{
13417return dlopen ();
13418 ;
13419 return 0;
13420}
13421_ACEOF
13422rm -f conftest.$ac_objext conftest$ac_exeext
13423if { (ac_try="$ac_link"
13424case "(($ac_try" in
13425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13426 *) ac_try_echo=$ac_try;;
13427esac
13428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13429 (eval "$ac_link") 2>conftest.er1
13430 ac_status=$?
13431 grep -v '^ *+' conftest.er1 >conftest.err
13432 rm -f conftest.er1
13433 cat conftest.err >&5
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); } && {
13436 test -z "$ac_cxx_werror_flag" ||
13437 test ! -s conftest.err
13438 } && test -s conftest$ac_exeext &&
13439 $as_test_x conftest$ac_exeext; then
13440 ac_cv_func_dlopen=yes
13441else
13442 echo "$as_me: failed program was:" >&5
13443sed 's/^/| /' conftest.$ac_ext >&5
13444
13445 ac_cv_func_dlopen=no
13446fi
13447
13448rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13449 conftest$ac_exeext conftest.$ac_ext
13450fi
13451{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13452echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
13453if test $ac_cv_func_dlopen = yes; then
13454 lt_cv_dlopen="dlopen"
13455else
13456 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13457echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13458if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13459 echo $ECHO_N "(cached) $ECHO_C" >&6
13460else
13461 ac_check_lib_save_LIBS=$LIBS
13462LIBS="-ldl $LIBS"
13463cat >conftest.$ac_ext <<_ACEOF
13464/* confdefs.h. */
13465_ACEOF
13466cat confdefs.h >>conftest.$ac_ext
13467cat >>conftest.$ac_ext <<_ACEOF
13468/* end confdefs.h. */
13469
13470/* Override any GCC internal prototype to avoid an error.
13471 Use char because int might match the return type of a GCC
13472 builtin and then its argument prototype would still apply. */
13473#ifdef __cplusplus
13474extern "C"
13475#endif
13476char dlopen ();
13477int
13478main ()
13479{
13480return dlopen ();
13481 ;
13482 return 0;
13483}
13484_ACEOF
13485rm -f conftest.$ac_objext conftest$ac_exeext
13486if { (ac_try="$ac_link"
13487case "(($ac_try" in
13488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13489 *) ac_try_echo=$ac_try;;
13490esac
13491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13492 (eval "$ac_link") 2>conftest.er1
13493 ac_status=$?
13494 grep -v '^ *+' conftest.er1 >conftest.err
13495 rm -f conftest.er1
13496 cat conftest.err >&5
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); } && {
13499 test -z "$ac_cxx_werror_flag" ||
13500 test ! -s conftest.err
13501 } && test -s conftest$ac_exeext &&
13502 $as_test_x conftest$ac_exeext; then
13503 ac_cv_lib_dl_dlopen=yes
13504else
13505 echo "$as_me: failed program was:" >&5
13506sed 's/^/| /' conftest.$ac_ext >&5
13507
13508 ac_cv_lib_dl_dlopen=no
13509fi
13510
13511rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13512 conftest$ac_exeext conftest.$ac_ext
13513LIBS=$ac_check_lib_save_LIBS
13514fi
13515{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13516echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13517if test $ac_cv_lib_dl_dlopen = yes; then
13518 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13519else
13520 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13521echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
13522if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13523 echo $ECHO_N "(cached) $ECHO_C" >&6
13524else
13525 ac_check_lib_save_LIBS=$LIBS
13526LIBS="-lsvld $LIBS"
13527cat >conftest.$ac_ext <<_ACEOF
13528/* confdefs.h. */
13529_ACEOF
13530cat confdefs.h >>conftest.$ac_ext
13531cat >>conftest.$ac_ext <<_ACEOF
13532/* end confdefs.h. */
13533
13534/* Override any GCC internal prototype to avoid an error.
13535 Use char because int might match the return type of a GCC
13536 builtin and then its argument prototype would still apply. */
13537#ifdef __cplusplus
13538extern "C"
13539#endif
13540char dlopen ();
13541int
13542main ()
13543{
13544return dlopen ();
13545 ;
13546 return 0;
13547}
13548_ACEOF
13549rm -f conftest.$ac_objext conftest$ac_exeext
13550if { (ac_try="$ac_link"
13551case "(($ac_try" in
13552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13553 *) ac_try_echo=$ac_try;;
13554esac
13555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13556 (eval "$ac_link") 2>conftest.er1
13557 ac_status=$?
13558 grep -v '^ *+' conftest.er1 >conftest.err
13559 rm -f conftest.er1
13560 cat conftest.err >&5
13561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562 (exit $ac_status); } && {
13563 test -z "$ac_cxx_werror_flag" ||
13564 test ! -s conftest.err
13565 } && test -s conftest$ac_exeext &&
13566 $as_test_x conftest$ac_exeext; then
13567 ac_cv_lib_svld_dlopen=yes
13568else
13569 echo "$as_me: failed program was:" >&5
13570sed 's/^/| /' conftest.$ac_ext >&5
13571
13572 ac_cv_lib_svld_dlopen=no
13573fi
13574
13575rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13576 conftest$ac_exeext conftest.$ac_ext
13577LIBS=$ac_check_lib_save_LIBS
13578fi
13579{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13580echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
13581if test $ac_cv_lib_svld_dlopen = yes; then
13582 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13583else
13584 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13585echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
13586if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13587 echo $ECHO_N "(cached) $ECHO_C" >&6
13588else
13589 ac_check_lib_save_LIBS=$LIBS
13590LIBS="-ldld $LIBS"
13591cat >conftest.$ac_ext <<_ACEOF
13592/* confdefs.h. */
13593_ACEOF
13594cat confdefs.h >>conftest.$ac_ext
13595cat >>conftest.$ac_ext <<_ACEOF
13596/* end confdefs.h. */
13597
13598/* Override any GCC internal prototype to avoid an error.
13599 Use char because int might match the return type of a GCC
13600 builtin and then its argument prototype would still apply. */
13601#ifdef __cplusplus
13602extern "C"
13603#endif
13604char dld_link ();
13605int
13606main ()
13607{
13608return dld_link ();
13609 ;
13610 return 0;
13611}
13612_ACEOF
13613rm -f conftest.$ac_objext conftest$ac_exeext
13614if { (ac_try="$ac_link"
13615case "(($ac_try" in
13616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13617 *) ac_try_echo=$ac_try;;
13618esac
13619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13620 (eval "$ac_link") 2>conftest.er1
13621 ac_status=$?
13622 grep -v '^ *+' conftest.er1 >conftest.err
13623 rm -f conftest.er1
13624 cat conftest.err >&5
13625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626 (exit $ac_status); } && {
13627 test -z "$ac_cxx_werror_flag" ||
13628 test ! -s conftest.err
13629 } && test -s conftest$ac_exeext &&
13630 $as_test_x conftest$ac_exeext; then
13631 ac_cv_lib_dld_dld_link=yes
13632else
13633 echo "$as_me: failed program was:" >&5
13634sed 's/^/| /' conftest.$ac_ext >&5
13635
13636 ac_cv_lib_dld_dld_link=no
13637fi
13638
13639rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13640 conftest$ac_exeext conftest.$ac_ext
13641LIBS=$ac_check_lib_save_LIBS
13642fi
13643{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13644echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
13645if test $ac_cv_lib_dld_dld_link = yes; then
13646 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13647fi
13648
13649
13650fi
13651
13652
13653fi
13654
13655
13656fi
13657
13658
13659fi
13660
13661
13662fi
13663
13664 ;;
13665 esac
13666
13667 if test "x$lt_cv_dlopen" != xno; then
13668 enable_dlopen=yes
13669 else
13670 enable_dlopen=no
13671 fi
13672
13673 case $lt_cv_dlopen in
13674 dlopen)
13675 save_CPPFLAGS="$CPPFLAGS"
13676 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13677
13678 save_LDFLAGS="$LDFLAGS"
13679 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13680
13681 save_LIBS="$LIBS"
13682 LIBS="$lt_cv_dlopen_libs $LIBS"
13683
13684 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13685echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
13686if test "${lt_cv_dlopen_self+set}" = set; then
13687 echo $ECHO_N "(cached) $ECHO_C" >&6
13688else
13689 if test "$cross_compiling" = yes; then :
13690 lt_cv_dlopen_self=cross
13691else
13692 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13693 lt_status=$lt_dlunknown
13694 cat > conftest.$ac_ext <<EOF
13695#line 13695 "configure"
13696#include "confdefs.h"
13697
13698#if HAVE_DLFCN_H
13699#include <dlfcn.h>
13700#endif
13701
13702#include <stdio.h>
13703
13704#ifdef RTLD_GLOBAL
13705# define LT_DLGLOBAL RTLD_GLOBAL
13706#else
13707# ifdef DL_GLOBAL
13708# define LT_DLGLOBAL DL_GLOBAL
13709# else
13710# define LT_DLGLOBAL 0
13711# endif
13712#endif
13713
13714/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13715 find out it does not work in some platform. */
13716#ifndef LT_DLLAZY_OR_NOW
13717# ifdef RTLD_LAZY
13718# define LT_DLLAZY_OR_NOW RTLD_LAZY
13719# else
13720# ifdef DL_LAZY
13721# define LT_DLLAZY_OR_NOW DL_LAZY
13722# else
13723# ifdef RTLD_NOW
13724# define LT_DLLAZY_OR_NOW RTLD_NOW
13725# else
13726# ifdef DL_NOW
13727# define LT_DLLAZY_OR_NOW DL_NOW
13728# else
13729# define LT_DLLAZY_OR_NOW 0
13730# endif
13731# endif
13732# endif
13733# endif
13734#endif
13735
13736#ifdef __cplusplus
13737extern "C" void exit (int);
13738#endif
13739
13740void fnord() { int i=42;}
13741int main ()
13742{
13743 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13744 int status = $lt_dlunknown;
13745
13746 if (self)
13747 {
13748 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13749 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13750 /* dlclose (self); */
13751 }
13752
13753 exit (status);
13754}
13755EOF
13756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13757 (eval $ac_link) 2>&5
13758 ac_status=$?
13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13761 (./conftest; exit; ) 2>/dev/null
13762 lt_status=$?
13763 case x$lt_status in
13764 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13765 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13766 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13767 esac
13768 else :
13769 # compilation failed
13770 lt_cv_dlopen_self=no
13771 fi
13772fi
13773rm -fr conftest*
13774
13775
13776fi
13777{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13778echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
13779
13780 if test "x$lt_cv_dlopen_self" = xyes; then
13781 LDFLAGS="$LDFLAGS $link_static_flag"
13782 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13783echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
13784if test "${lt_cv_dlopen_self_static+set}" = set; then
13785 echo $ECHO_N "(cached) $ECHO_C" >&6
13786else
13787 if test "$cross_compiling" = yes; then :
13788 lt_cv_dlopen_self_static=cross
13789else
13790 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13791 lt_status=$lt_dlunknown
13792 cat > conftest.$ac_ext <<EOF
13793#line 13793 "configure"
13794#include "confdefs.h"
13795
13796#if HAVE_DLFCN_H
13797#include <dlfcn.h>
13798#endif
13799
13800#include <stdio.h>
13801
13802#ifdef RTLD_GLOBAL
13803# define LT_DLGLOBAL RTLD_GLOBAL
13804#else
13805# ifdef DL_GLOBAL
13806# define LT_DLGLOBAL DL_GLOBAL
13807# else
13808# define LT_DLGLOBAL 0
13809# endif
13810#endif
13811
13812/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13813 find out it does not work in some platform. */
13814#ifndef LT_DLLAZY_OR_NOW
13815# ifdef RTLD_LAZY
13816# define LT_DLLAZY_OR_NOW RTLD_LAZY
13817# else
13818# ifdef DL_LAZY
13819# define LT_DLLAZY_OR_NOW DL_LAZY
13820# else
13821# ifdef RTLD_NOW
13822# define LT_DLLAZY_OR_NOW RTLD_NOW
13823# else
13824# ifdef DL_NOW
13825# define LT_DLLAZY_OR_NOW DL_NOW
13826# else
13827# define LT_DLLAZY_OR_NOW 0
13828# endif
13829# endif
13830# endif
13831# endif
13832#endif
13833
13834#ifdef __cplusplus
13835extern "C" void exit (int);
13836#endif
13837
13838void fnord() { int i=42;}
13839int main ()
13840{
13841 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13842 int status = $lt_dlunknown;
13843
13844 if (self)
13845 {
13846 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13847 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13848 /* dlclose (self); */
13849 }
13850
13851 exit (status);
13852}
13853EOF
13854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13855 (eval $ac_link) 2>&5
13856 ac_status=$?
13857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13859 (./conftest; exit; ) 2>/dev/null
13860 lt_status=$?
13861 case x$lt_status in
13862 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13863 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13864 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13865 esac
13866 else :
13867 # compilation failed
13868 lt_cv_dlopen_self_static=no
13869 fi
13870fi
13871rm -fr conftest*
13872
13873
13874fi
13875{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13876echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
13877 fi
13878
13879 CPPFLAGS="$save_CPPFLAGS"
13880 LDFLAGS="$save_LDFLAGS"
13881 LIBS="$save_LIBS"
13882 ;;
13883 esac
13884
13885 case $lt_cv_dlopen_self in
13886 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13887 *) enable_dlopen_self=unknown ;;
13888 esac
13889
13890 case $lt_cv_dlopen_self_static in
13891 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13892 *) enable_dlopen_self_static=unknown ;;
13893 esac
13894fi
13895
13896
13897# The else clause should only fire when bootstrapping the
13898# libtool distribution, otherwise you forgot to ship ltmain.sh
13899# with your package, and you will get complaints that there are
13900# no rules to generate ltmain.sh.
13901if test -f "$ltmain"; then
13902 # See if we are running on zsh, and set the options which allow our commands through
13903 # without removal of \ escapes.
13904 if test -n "${ZSH_VERSION+set}" ; then
13905 setopt NO_GLOB_SUBST
13906 fi
13907 # Now quote all the things that may contain metacharacters while being
13908 # careful not to overquote the AC_SUBSTed values. We take copies of the
13909 # variables and quote the copies for generation of the libtool script.
13910 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13911 SED SHELL STRIP \
13912 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13913 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13914 deplibs_check_method reload_flag reload_cmds need_locks \
13915 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13916 lt_cv_sys_global_symbol_to_c_name_address \
13917 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13918 old_postinstall_cmds old_postuninstall_cmds \
13919 compiler_CXX \
13920 CC_CXX \
13921 LD_CXX \
13922 lt_prog_compiler_wl_CXX \
13923 lt_prog_compiler_pic_CXX \
13924 lt_prog_compiler_static_CXX \
13925 lt_prog_compiler_no_builtin_flag_CXX \
13926 export_dynamic_flag_spec_CXX \
13927 thread_safe_flag_spec_CXX \
13928 whole_archive_flag_spec_CXX \
13929 enable_shared_with_static_runtimes_CXX \
13930 old_archive_cmds_CXX \
13931 old_archive_from_new_cmds_CXX \
13932 predep_objects_CXX \
13933 postdep_objects_CXX \
13934 predeps_CXX \
13935 postdeps_CXX \
13936 compiler_lib_search_path_CXX \
13937 archive_cmds_CXX \
13938 archive_expsym_cmds_CXX \
13939 postinstall_cmds_CXX \
13940 postuninstall_cmds_CXX \
13941 old_archive_from_expsyms_cmds_CXX \
13942 allow_undefined_flag_CXX \
13943 no_undefined_flag_CXX \
13944 export_symbols_cmds_CXX \
13945 hardcode_libdir_flag_spec_CXX \
13946 hardcode_libdir_flag_spec_ld_CXX \
13947 hardcode_libdir_separator_CXX \
13948 hardcode_automatic_CXX \
13949 module_cmds_CXX \
13950 module_expsym_cmds_CXX \
13951 lt_cv_prog_compiler_c_o_CXX \
13952 exclude_expsyms_CXX \
13953 include_expsyms_CXX; do
13954
13955 case $var in
13956 old_archive_cmds_CXX | \
13957 old_archive_from_new_cmds_CXX | \
13958 archive_cmds_CXX | \
13959 archive_expsym_cmds_CXX | \
13960 module_cmds_CXX | \
13961 module_expsym_cmds_CXX | \
13962 old_archive_from_expsyms_cmds_CXX | \
13963 export_symbols_cmds_CXX | \
13964 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13965 postinstall_cmds | postuninstall_cmds | \
13966 old_postinstall_cmds | old_postuninstall_cmds | \
13967 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13968 # Double-quote double-evaled strings.
13969 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13970 ;;
13971 *)
13972 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13973 ;;
13974 esac
13975 done
13976
13977 case $lt_echo in
13978 *'\$0 --fallback-echo"')
13979 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13980 ;;
13981 esac
13982
13983cfgfile="$ofile"
13984
13985 cat <<__EOF__ >> "$cfgfile"
13986# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13987
13988# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13989
13990# Shell to use when invoking shell scripts.
13991SHELL=$lt_SHELL
13992
13993# Whether or not to build shared libraries.
13994build_libtool_libs=$enable_shared
13995
13996# Whether or not to build static libraries.
13997build_old_libs=$enable_static
13998
13999# Whether or not to add -lc for building shared libraries.
14000build_libtool_need_lc=$archive_cmds_need_lc_CXX
14001
14002# Whether or not to disallow shared libs when runtime libs are static
14003allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14004
14005# Whether or not to optimize for fast installation.
14006fast_install=$enable_fast_install
14007
14008# The host system.
14009host_alias=$host_alias
14010host=$host
14011
14012# An echo program that does not interpret backslashes.
14013echo=$lt_echo
14014
14015# The archiver.
14016AR=$lt_AR
14017AR_FLAGS=$lt_AR_FLAGS
14018
14019# A C compiler.
14020LTCC=$lt_LTCC
14021
14022# A language-specific compiler.
14023CC=$lt_compiler_CXX
14024
14025# Is the compiler the GNU C compiler?
14026with_gcc=$GCC_CXX
14027
14028# An ERE matcher.
14029EGREP=$lt_EGREP
14030
14031# The linker used to build libraries.
14032LD=$lt_LD_CXX
14033
14034# Whether we need hard or soft links.
14035LN_S=$lt_LN_S
14036
14037# A BSD-compatible nm program.
14038NM=$lt_NM
14039
14040# A symbol stripping program
14041STRIP=$lt_STRIP
14042
14043# Used to examine libraries when file_magic_cmd begins "file"
14044MAGIC_CMD=$MAGIC_CMD
14045
14046# Used on cygwin: DLL creation program.
14047DLLTOOL="$DLLTOOL"
14048
14049# Used on cygwin: object dumper.
14050OBJDUMP="$OBJDUMP"
14051
14052# Used on cygwin: assembler.
14053AS="$AS"
14054
14055# The name of the directory that contains temporary libtool files.
14056objdir=$objdir
14057
14058# How to create reloadable object files.
14059reload_flag=$lt_reload_flag
14060reload_cmds=$lt_reload_cmds
14061
14062# How to pass a linker flag through the compiler.
14063wl=$lt_lt_prog_compiler_wl_CXX
14064
14065# Object file suffix (normally "o").
14066objext="$ac_objext"
14067
14068# Old archive suffix (normally "a").
14069libext="$libext"
14070
14071# Shared library suffix (normally ".so").
14072shrext_cmds='$shrext_cmds'
14073
14074# Executable file suffix (normally "").
14075exeext="$exeext"
14076
14077# Additional compiler flags for building library objects.
14078pic_flag=$lt_lt_prog_compiler_pic_CXX
14079pic_mode=$pic_mode
14080
14081# What is the maximum length of a command?
14082max_cmd_len=$lt_cv_sys_max_cmd_len
14083
14084# Does compiler simultaneously support -c and -o options?
14085compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14086
14087# Must we lock files when doing compilation ?
14088need_locks=$lt_need_locks
14089
14090# Do we need the lib prefix for modules?
14091need_lib_prefix=$need_lib_prefix
14092
14093# Do we need a version for libraries?
14094need_version=$need_version
14095
14096# Whether dlopen is supported.
14097dlopen_support=$enable_dlopen
14098
14099# Whether dlopen of programs is supported.
14100dlopen_self=$enable_dlopen_self
14101
14102# Whether dlopen of statically linked programs is supported.
14103dlopen_self_static=$enable_dlopen_self_static
14104
14105# Compiler flag to prevent dynamic linking.
14106link_static_flag=$lt_lt_prog_compiler_static_CXX
14107
14108# Compiler flag to turn off builtin functions.
14109no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14110
14111# Compiler flag to allow reflexive dlopens.
14112export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14113
14114# Compiler flag to generate shared objects directly from archives.
14115whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14116
14117# Compiler flag to generate thread-safe objects.
14118thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14119
14120# Library versioning type.
14121version_type=$version_type
14122
14123# Format of library name prefix.
14124libname_spec=$lt_libname_spec
14125
14126# List of archive names. First name is the real one, the rest are links.
14127# The last name is the one that the linker finds with -lNAME.
14128library_names_spec=$lt_library_names_spec
14129
14130# The coded name of the library, if different from the real name.
14131soname_spec=$lt_soname_spec
14132
14133# Commands used to build and install an old-style archive.
14134RANLIB=$lt_RANLIB
14135old_archive_cmds=$lt_old_archive_cmds_CXX
14136old_postinstall_cmds=$lt_old_postinstall_cmds
14137old_postuninstall_cmds=$lt_old_postuninstall_cmds
14138
14139# Create an old-style archive from a shared archive.
14140old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14141
14142# Create a temporary old-style archive to link instead of a shared archive.
14143old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14144
14145# Commands used to build and install a shared archive.
14146archive_cmds=$lt_archive_cmds_CXX
14147archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14148postinstall_cmds=$lt_postinstall_cmds
14149postuninstall_cmds=$lt_postuninstall_cmds
14150
14151# Commands used to build a loadable module (assumed same as above if empty)
14152module_cmds=$lt_module_cmds_CXX
14153module_expsym_cmds=$lt_module_expsym_cmds_CXX
14154
14155# Commands to strip libraries.
14156old_striplib=$lt_old_striplib
14157striplib=$lt_striplib
14158
14159# Dependencies to place before the objects being linked to create a
14160# shared library.
14161predep_objects=$lt_predep_objects_CXX
14162
14163# Dependencies to place after the objects being linked to create a
14164# shared library.
14165postdep_objects=$lt_postdep_objects_CXX
14166
14167# Dependencies to place before the objects being linked to create a
14168# shared library.
14169predeps=$lt_predeps_CXX
14170
14171# Dependencies to place after the objects being linked to create a
14172# shared library.
14173postdeps=$lt_postdeps_CXX
14174
14175# The library search path used internally by the compiler when linking
14176# a shared library.
14177compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14178
14179# Method to check whether dependent libraries are shared objects.
14180deplibs_check_method=$lt_deplibs_check_method
14181
14182# Command to use when deplibs_check_method == file_magic.
14183file_magic_cmd=$lt_file_magic_cmd
14184
14185# Flag that allows shared libraries with undefined symbols to be built.
14186allow_undefined_flag=$lt_allow_undefined_flag_CXX
14187
14188# Flag that forces no undefined symbols.
14189no_undefined_flag=$lt_no_undefined_flag_CXX
14190
14191# Commands used to finish a libtool library installation in a directory.
14192finish_cmds=$lt_finish_cmds
14193
14194# Same as above, but a single script fragment to be evaled but not shown.
14195finish_eval=$lt_finish_eval
14196
14197# Take the output of nm and produce a listing of raw symbols and C names.
14198global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14199
14200# Transform the output of nm in a proper C declaration
14201global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14202
14203# Transform the output of nm in a C name address pair
14204global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14205
14206# This is the shared library runtime path variable.
14207runpath_var=$runpath_var
14208
14209# This is the shared library path variable.
14210shlibpath_var=$shlibpath_var
14211
14212# Is shlibpath searched before the hard-coded library search path?
14213shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14214
14215# How to hardcode a shared library path into an executable.
14216hardcode_action=$hardcode_action_CXX
14217
14218# Whether we should hardcode library paths into libraries.
14219hardcode_into_libs=$hardcode_into_libs
14220
14221# Flag to hardcode \$libdir into a binary during linking.
14222# This must work even if \$libdir does not exist.
14223hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14224
14225# If ld is used when linking, flag to hardcode \$libdir into
14226# a binary during linking. This must work even if \$libdir does
14227# not exist.
14228hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14229
14230# Whether we need a single -rpath flag with a separated argument.
14231hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14232
14233# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14234# resulting binary.
14235hardcode_direct=$hardcode_direct_CXX
14236
14237# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14238# resulting binary.
14239hardcode_minus_L=$hardcode_minus_L_CXX
14240
14241# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14242# the resulting binary.
14243hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14244
14245# Set to yes if building a shared library automatically hardcodes DIR into the library
14246# and all subsequent libraries and executables linked against it.
14247hardcode_automatic=$hardcode_automatic_CXX
14248
14249# Variables whose values should be saved in libtool wrapper scripts and
14250# restored at relink time.
14251variables_saved_for_relink="$variables_saved_for_relink"
14252
14253# Whether libtool must link a program against all its dependency libraries.
14254link_all_deplibs=$link_all_deplibs_CXX
14255
14256# Compile-time system search path for libraries
14257sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14258
14259# Run-time system search path for libraries
14260sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14261
14262# Fix the shell variable \$srcfile for the compiler.
14263fix_srcfile_path="$fix_srcfile_path_CXX"
14264
14265# Set to yes if exported symbols are required.
14266always_export_symbols=$always_export_symbols_CXX
14267
14268# The commands to list exported symbols.
14269export_symbols_cmds=$lt_export_symbols_cmds_CXX
14270
14271# The commands to extract the exported symbol list from a shared archive.
14272extract_expsyms_cmds=$lt_extract_expsyms_cmds
14273
14274# Symbols that should not be listed in the preloaded symbols.
14275exclude_expsyms=$lt_exclude_expsyms_CXX
14276
14277# Symbols that must always be exported.
14278include_expsyms=$lt_include_expsyms_CXX
14279
14280# ### END LIBTOOL TAG CONFIG: $tagname
14281
14282__EOF__
14283
14284
14285else
14286 # If there is no Makefile yet, we rely on a make rule to execute
14287 # `config.status --recheck' to rerun these tests and create the
14288 # libtool script then.
14289 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14290 if test -f "$ltmain_in"; then
14291 test -f Makefile && make "$ltmain"
14292 fi
14293fi
14294
14295
14296ac_ext=c
14297ac_cpp='$CPP $CPPFLAGS'
14298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14300ac_compiler_gnu=$ac_cv_c_compiler_gnu
14301
14302CC=$lt_save_CC
14303LDCXX=$LD
14304LD=$lt_save_LD
14305GCC=$lt_save_GCC
14306with_gnu_ldcxx=$with_gnu_ld
14307with_gnu_ld=$lt_save_with_gnu_ld
14308lt_cv_path_LDCXX=$lt_cv_path_LD
14309lt_cv_path_LD=$lt_save_path_LD
14310lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14311lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14312
14313 else
14314 tagname=""
14315 fi
14316 ;;
14317
14318 F77)
14319 if test -n "$F77" && test "X$F77" != "Xno"; then
14320
14321ac_ext=f
14322ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14323ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14324ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14325
14326
14327archive_cmds_need_lc_F77=no
14328allow_undefined_flag_F77=
14329always_export_symbols_F77=no
14330archive_expsym_cmds_F77=
14331export_dynamic_flag_spec_F77=
14332hardcode_direct_F77=no
14333hardcode_libdir_flag_spec_F77=
14334hardcode_libdir_flag_spec_ld_F77=
14335hardcode_libdir_separator_F77=
14336hardcode_minus_L_F77=no
14337hardcode_automatic_F77=no
14338module_cmds_F77=
14339module_expsym_cmds_F77=
14340link_all_deplibs_F77=unknown
14341old_archive_cmds_F77=$old_archive_cmds
14342no_undefined_flag_F77=
14343whole_archive_flag_spec_F77=
14344enable_shared_with_static_runtimes_F77=no
14345
14346# Source file extension for f77 test sources.
14347ac_ext=f
14348
14349# Object file extension for compiled f77 test sources.
14350objext=o
14351objext_F77=$objext
14352
14353# Code to be used in simple compile tests
14354lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14355
14356# Code to be used in simple link tests
14357lt_simple_link_test_code=" program t\n end\n"
14358
14359# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14360
14361# If no C compiler was specified, use CC.
14362LTCC=${LTCC-"$CC"}
14363
14364# Allow CC to be a program name with arguments.
14365compiler=$CC
14366
14367
14368# Allow CC to be a program name with arguments.
14369lt_save_CC="$CC"
14370CC=${F77-"f77"}
14371compiler=$CC
14372compiler_F77=$CC
14373cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
14374
14375{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14376echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14377{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14378echo "${ECHO_T}$can_build_shared" >&6; }
14379
14380{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14381echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14382test "$can_build_shared" = "no" && enable_shared=no
14383
14384# On AIX, shared libraries and static libraries use the same namespace, and
14385# are all built from PIC.
14386case "$host_os" in
14387aix3*)
14388 test "$enable_shared" = yes && enable_static=no
14389 if test -n "$RANLIB"; then
14390 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14391 postinstall_cmds='$RANLIB $lib'
14392 fi
14393 ;;
14394aix4* | aix5*)
14395 test "$enable_shared" = yes && enable_static=no
14396 ;;
14397esac
14398{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14399echo "${ECHO_T}$enable_shared" >&6; }
14400
14401{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14402echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14403# Make sure either enable_shared or enable_static is yes.
14404test "$enable_shared" = yes || enable_static=yes
14405{ echo "$as_me:$LINENO: result: $enable_static" >&5
14406echo "${ECHO_T}$enable_static" >&6; }
14407
14408test "$ld_shlibs_F77" = no && can_build_shared=no
14409
14410GCC_F77="$G77"
14411LD_F77="$LD"
14412
14413lt_prog_compiler_wl_F77=
14414lt_prog_compiler_pic_F77=
14415lt_prog_compiler_static_F77=
14416
14417{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14418echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14419
14420 if test "$GCC" = yes; then
14421 lt_prog_compiler_wl_F77='-Wl,'
14422 lt_prog_compiler_static_F77='-static'
14423
14424 case $host_os in
14425 aix*)
14426 # All AIX code is PIC.
14427 if test "$host_cpu" = ia64; then
14428 # AIX 5 now supports IA64 processor
14429 lt_prog_compiler_static_F77='-Bstatic'
14430 fi
14431 ;;
14432
14433 amigaos*)
14434 # FIXME: we need at least 68020 code to build shared libraries, but
14435 # adding the `-m68020' flag to GCC prevents building anything better,
14436 # like `-m68040'.
14437 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14438 ;;
14439
14440 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14441 # PIC is the default for these OSes.
14442 ;;
14443
14444 mingw* | pw32* | os2*)
14445 # This hack is so that the source file can tell whether it is being
14446 # built for inclusion in a dll (and should export symbols for example).
14447 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14448 ;;
14449
14450 darwin* | rhapsody*)
14451 # PIC is the default on this platform
14452 # Common symbols not allowed in MH_DYLIB files
14453 lt_prog_compiler_pic_F77='-fno-common'
14454 ;;
14455
14456 msdosdjgpp*)
14457 # Just because we use GCC doesn't mean we suddenly get shared libraries
14458 # on systems that don't support them.
14459 lt_prog_compiler_can_build_shared_F77=no
14460 enable_shared=no
14461 ;;
14462
14463 sysv4*MP*)
14464 if test -d /usr/nec; then
14465 lt_prog_compiler_pic_F77=-Kconform_pic
14466 fi
14467 ;;
14468
14469 hpux*)
14470 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14471 # not for PA HP-UX.
14472 case "$host_cpu" in
14473 hppa*64*|ia64*)
14474 # +Z the default
14475 ;;
14476 *)
14477 lt_prog_compiler_pic_F77='-fPIC'
14478 ;;
14479 esac
14480 ;;
14481
14482 *)
14483 lt_prog_compiler_pic_F77='-fPIC'
14484 ;;
14485 esac
14486 else
14487 # PORTME Check for flag to pass linker flags through the system compiler.
14488 case $host_os in
14489 aix*)
14490 lt_prog_compiler_wl_F77='-Wl,'
14491 if test "$host_cpu" = ia64; then
14492 # AIX 5 now supports IA64 processor
14493 lt_prog_compiler_static_F77='-Bstatic'
14494 else
14495 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14496 fi
14497 ;;
14498
14499 mingw* | pw32* | os2*)
14500 # This hack is so that the source file can tell whether it is being
14501 # built for inclusion in a dll (and should export symbols for example).
14502 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14503 ;;
14504
14505 hpux9* | hpux10* | hpux11*)
14506 lt_prog_compiler_wl_F77='-Wl,'
14507 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14508 # not for PA HP-UX.
14509 case "$host_cpu" in
14510 hppa*64*|ia64*)
14511 # +Z the default
14512 ;;
14513 *)
14514 lt_prog_compiler_pic_F77='+Z'
14515 ;;
14516 esac
14517 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14518 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14519 ;;
14520
14521 irix5* | irix6* | nonstopux*)
14522 lt_prog_compiler_wl_F77='-Wl,'
14523 # PIC (with -KPIC) is the default.
14524 lt_prog_compiler_static_F77='-non_shared'
14525 ;;
14526
14527 newsos6)
14528 lt_prog_compiler_pic_F77='-KPIC'
14529 lt_prog_compiler_static_F77='-Bstatic'
14530 ;;
14531
14532 linux*)
14533 case $CC in
14534 icc* | ecc*)
14535 lt_prog_compiler_wl_F77='-Wl,'
14536 lt_prog_compiler_pic_F77='-KPIC'
14537 lt_prog_compiler_static_F77='-static'
14538 ;;
14539 ccc*)
14540 lt_prog_compiler_wl_F77='-Wl,'
14541 # All Alpha code is PIC.
14542 lt_prog_compiler_static_F77='-non_shared'
14543 ;;
14544 esac
14545 ;;
14546
14547 osf3* | osf4* | osf5*)
14548 lt_prog_compiler_wl_F77='-Wl,'
14549 # All OSF/1 code is PIC.
14550 lt_prog_compiler_static_F77='-non_shared'
14551 ;;
14552
14553 sco3.2v5*)
14554 lt_prog_compiler_pic_F77='-Kpic'
14555 lt_prog_compiler_static_F77='-dn'
14556 ;;
14557
14558 solaris*)
14559 lt_prog_compiler_wl_F77='-Wl,'
14560 lt_prog_compiler_pic_F77='-KPIC'
14561 lt_prog_compiler_static_F77='-Bstatic'
14562 ;;
14563
14564 sunos4*)
14565 lt_prog_compiler_wl_F77='-Qoption ld '
14566 lt_prog_compiler_pic_F77='-PIC'
14567 lt_prog_compiler_static_F77='-Bstatic'
14568 ;;
14569
14570 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14571 lt_prog_compiler_wl_F77='-Wl,'
14572 lt_prog_compiler_pic_F77='-KPIC'
14573 lt_prog_compiler_static_F77='-Bstatic'
14574 ;;
14575
14576 sysv4*MP*)
14577 if test -d /usr/nec ;then
14578 lt_prog_compiler_pic_F77='-Kconform_pic'
14579 lt_prog_compiler_static_F77='-Bstatic'
14580 fi
14581 ;;
14582
14583 uts4*)
14584 lt_prog_compiler_pic_F77='-pic'
14585 lt_prog_compiler_static_F77='-Bstatic'
14586 ;;
14587
14588 *)
14589 lt_prog_compiler_can_build_shared_F77=no
14590 ;;
14591 esac
14592 fi
14593
14594{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14595echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14596
14597#
14598# Check to make sure the PIC flag actually works.
14599#
14600if test -n "$lt_prog_compiler_pic_F77"; then
14601
14602{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14603echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14604if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14605 echo $ECHO_N "(cached) $ECHO_C" >&6
14606else
14607 lt_prog_compiler_pic_works_F77=no
14608 ac_outfile=conftest.$ac_objext
14609 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14610 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14611 # Insert the option either (1) after the last *FLAGS variable, or
14612 # (2) before a word containing "conftest.", or (3) at the end.
14613 # Note that $ac_compile itself does not contain backslashes and begins
14614 # with a dollar sign (not a hyphen), so the echo should work correctly.
14615 # The option is referenced via a variable to avoid confusing sed.
14616 lt_compile=`echo "$ac_compile" | $SED \
14617 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14618 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14619 -e 's:$: $lt_compiler_flag:'`
14620 (eval echo "\"\$as_me:14620: $lt_compile\"" >&5)
14621 (eval "$lt_compile" 2>conftest.err)
14622 ac_status=$?
14623 cat conftest.err >&5
14624 echo "$as_me:14624: \$? = $ac_status" >&5
14625 if (exit $ac_status) && test -s "$ac_outfile"; then
14626 # The compiler can only warn and ignore the option if not recognized
14627 # So say no if there are warnings
14628 if test ! -s conftest.err; then
14629 lt_prog_compiler_pic_works_F77=yes
14630 fi
14631 fi
14632 $rm conftest*
14633
14634fi
14635{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14636echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14637
14638if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14639 case $lt_prog_compiler_pic_F77 in
14640 "" | " "*) ;;
14641 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14642 esac
14643else
14644 lt_prog_compiler_pic_F77=
14645 lt_prog_compiler_can_build_shared_F77=no
14646fi
14647
14648fi
14649case "$host_os" in
14650 # For platforms which do not support PIC, -DPIC is meaningless:
14651 *djgpp*)
14652 lt_prog_compiler_pic_F77=
14653 ;;
14654 *)
14655 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14656 ;;
14657esac
14658
14659{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14660echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14661if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14662 echo $ECHO_N "(cached) $ECHO_C" >&6
14663else
14664 lt_cv_prog_compiler_c_o_F77=no
14665 $rm -r conftest 2>/dev/null
14666 mkdir conftest
14667 cd conftest
14668 mkdir out
14669 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14670
14671 lt_compiler_flag="-o out/conftest2.$ac_objext"
14672 # Insert the option either (1) after the last *FLAGS variable, or
14673 # (2) before a word containing "conftest.", or (3) at the end.
14674 # Note that $ac_compile itself does not contain backslashes and begins
14675 # with a dollar sign (not a hyphen), so the echo should work correctly.
14676 lt_compile=`echo "$ac_compile" | $SED \
14677 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14678 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14679 -e 's:$: $lt_compiler_flag:'`
14680 (eval echo "\"\$as_me:14680: $lt_compile\"" >&5)
14681 (eval "$lt_compile" 2>out/conftest.err)
14682 ac_status=$?
14683 cat out/conftest.err >&5
14684 echo "$as_me:14684: \$? = $ac_status" >&5
14685 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14686 then
14687 # The compiler can only warn and ignore the option if not recognized
14688 # So say no if there are warnings
14689 if test ! -s out/conftest.err; then
14690 lt_cv_prog_compiler_c_o_F77=yes
14691 fi
14692 fi
14693 chmod u+w .
14694 $rm conftest*
14695 # SGI C++ compiler will create directory out/ii_files/ for
14696 # template instantiation
14697 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14698 $rm out/* && rmdir out
14699 cd ..
14700 rmdir conftest
14701 $rm conftest*
14702
14703fi
14704{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14705echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14706
14707
14708hard_links="nottested"
14709if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14710 # do not overwrite the value of need_locks provided by the user
14711 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14712echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14713 hard_links=yes
14714 $rm conftest*
14715 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14716 touch conftest.a
14717 ln conftest.a conftest.b 2>&5 || hard_links=no
14718 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14719 { echo "$as_me:$LINENO: result: $hard_links" >&5
14720echo "${ECHO_T}$hard_links" >&6; }
14721 if test "$hard_links" = no; then
14722 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14723echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14724 need_locks=warn
14725 fi
14726else
14727 need_locks=no
14728fi
14729
14730{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14731echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14732
14733 runpath_var=
14734 allow_undefined_flag_F77=
14735 enable_shared_with_static_runtimes_F77=no
14736 archive_cmds_F77=
14737 archive_expsym_cmds_F77=
14738 old_archive_From_new_cmds_F77=
14739 old_archive_from_expsyms_cmds_F77=
14740 export_dynamic_flag_spec_F77=
14741 whole_archive_flag_spec_F77=
14742 thread_safe_flag_spec_F77=
14743 hardcode_libdir_flag_spec_F77=
14744 hardcode_libdir_flag_spec_ld_F77=
14745 hardcode_libdir_separator_F77=
14746 hardcode_direct_F77=no
14747 hardcode_minus_L_F77=no
14748 hardcode_shlibpath_var_F77=unsupported
14749 link_all_deplibs_F77=unknown
14750 hardcode_automatic_F77=no
14751 module_cmds_F77=
14752 module_expsym_cmds_F77=
14753 always_export_symbols_F77=no
14754 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14755 # include_expsyms should be a list of space-separated symbols to be *always*
14756 # included in the symbol list
14757 include_expsyms_F77=
14758 # exclude_expsyms can be an extended regexp of symbols to exclude
14759 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14760 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14761 # as well as any symbol that contains `d'.
14762 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14763 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14764 # platforms (ab)use it in PIC code, but their linkers get confused if
14765 # the symbol is explicitly referenced. Since portable code cannot
14766 # rely on this symbol name, it's probably fine to never include it in
14767 # preloaded symbol tables.
14768 extract_expsyms_cmds=
14769
14770 case $host_os in
14771 cygwin* | mingw* | pw32*)
14772 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14773 # When not using gcc, we currently assume that we are using
14774 # Microsoft Visual C++.
14775 if test "$GCC" != yes; then
14776 with_gnu_ld=no
14777 fi
14778 ;;
14779 openbsd*)
14780 with_gnu_ld=no
14781 ;;
14782 esac
14783
14784 ld_shlibs_F77=yes
14785 if test "$with_gnu_ld" = yes; then
14786 # If archive_cmds runs LD, not CC, wlarc should be empty
14787 wlarc='${wl}'
14788
14789 # See if GNU ld supports shared libraries.
14790 case $host_os in
14791 aix3* | aix4* | aix5*)
14792 # On AIX/PPC, the GNU linker is very broken
14793 if test "$host_cpu" != ia64; then
14794 ld_shlibs_F77=no
14795 cat <<EOF 1>&2
14796
14797*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14798*** to be unable to reliably create shared libraries on AIX.
14799*** Therefore, libtool is disabling shared libraries support. If you
14800*** really care for shared libraries, you may want to modify your PATH
14801*** so that a non-GNU linker is found, and then restart.
14802
14803EOF
14804 fi
14805 ;;
14806
14807 amigaos*)
14808 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14809 hardcode_libdir_flag_spec_F77='-L$libdir'
14810 hardcode_minus_L_F77=yes
14811
14812 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14813 # that the semantics of dynamic libraries on AmigaOS, at least up
14814 # to version 4, is to share data among multiple programs linked
14815 # with the same dynamic library. Since this doesn't match the
14816 # behavior of shared libraries on other platforms, we can't use
14817 # them.
14818 ld_shlibs_F77=no
14819 ;;
14820
14821 beos*)
14822 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14823 allow_undefined_flag_F77=unsupported
14824 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14825 # support --undefined. This deserves some investigation. FIXME
14826 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14827 else
14828 ld_shlibs_F77=no
14829 fi
14830 ;;
14831
14832 cygwin* | mingw* | pw32*)
14833 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14834 # as there is no search path for DLLs.
14835 hardcode_libdir_flag_spec_F77='-L$libdir'
14836 allow_undefined_flag_F77=unsupported
14837 always_export_symbols_F77=no
14838 enable_shared_with_static_runtimes_F77=yes
14839 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14840
14841 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14842 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14843 # If the export-symbols file already is a .def file (1st line
14844 # is EXPORTS), use it as is; otherwise, prepend...
14845 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14846 cp $export_symbols $output_objdir/$soname.def;
14847 else
14848 echo EXPORTS > $output_objdir/$soname.def;
14849 cat $export_symbols >> $output_objdir/$soname.def;
14850 fi~
14851 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14852 else
14853 ld_shlibs=no
14854 fi
14855 ;;
14856
14857 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14858 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14859 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14860 wlarc=
14861 else
14862 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14863 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14864 fi
14865 ;;
14866
14867 solaris* | sysv5*)
14868 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14869 ld_shlibs_F77=no
14870 cat <<EOF 1>&2
14871
14872*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14873*** create shared libraries on Solaris systems. Therefore, libtool
14874*** is disabling shared libraries support. We urge you to upgrade GNU
14875*** binutils to release 2.9.1 or newer. Another option is to modify
14876*** your PATH or compiler configuration so that the native linker is
14877*** used, and then restart.
14878
14879EOF
14880 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14881 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14882 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14883 else
14884 ld_shlibs_F77=no
14885 fi
14886 ;;
14887
14888 sunos4*)
14889 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14890 wlarc=
14891 hardcode_direct_F77=yes
14892 hardcode_shlibpath_var_F77=no
14893 ;;
14894
14895 linux*)
14896 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14897 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14898 archive_cmds_F77="$tmp_archive_cmds"
14899 supports_anon_versioning=no
14900 case `$LD -v 2>/dev/null` in
14901 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14902 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14903 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14904 *\ 2.11.*) ;; # other 2.11 versions
14905 *) supports_anon_versioning=yes ;;
14906 esac
14907 if test $supports_anon_versioning = yes; then
14908 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14909cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14910$echo "local: *; };" >> $output_objdir/$libname.ver~
14911 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14912 else
14913 archive_expsym_cmds_F77="$tmp_archive_cmds"
14914 fi
14915 link_all_deplibs_F77=no
14916 else
14917 ld_shlibs_F77=no
14918 fi
14919 ;;
14920
14921 *)
14922 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14923 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14924 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14925 else
14926 ld_shlibs_F77=no
14927 fi
14928 ;;
14929 esac
14930
14931 if test "$ld_shlibs_F77" = yes; then
14932 runpath_var=LD_RUN_PATH
14933 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14934 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14935 # ancient GNU ld didn't support --whole-archive et. al.
14936 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14937 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14938 else
14939 whole_archive_flag_spec_F77=
14940 fi
14941 fi
14942 else
14943 # PORTME fill in a description of your system's linker (not GNU ld)
14944 case $host_os in
14945 aix3*)
14946 allow_undefined_flag_F77=unsupported
14947 always_export_symbols_F77=yes
14948 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14949 # Note: this linker hardcodes the directories in LIBPATH if there
14950 # are no directories specified by -L.
14951 hardcode_minus_L_F77=yes
14952 if test "$GCC" = yes && test -z "$link_static_flag"; then
14953 # Neither direct hardcoding nor static linking is supported with a
14954 # broken collect2.
14955 hardcode_direct_F77=unsupported
14956 fi
14957 ;;
14958
14959 aix4* | aix5*)
14960 if test "$host_cpu" = ia64; then
14961 # On IA64, the linker does run time linking by default, so we don't
14962 # have to do anything special.
14963 aix_use_runtimelinking=no
14964 exp_sym_flag='-Bexport'
14965 no_entry_flag=""
14966 else
14967 # If we're using GNU nm, then we don't want the "-C" option.
14968 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14969 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14970 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14971 else
14972 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14973 fi
14974 aix_use_runtimelinking=no
14975
14976 # Test if we are trying to use run time linking or normal
14977 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14978 # need to do runtime linking.
14979 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14980 for ld_flag in $LDFLAGS; do
14981 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14982 aix_use_runtimelinking=yes
14983 break
14984 fi
14985 done
14986 esac
14987
14988 exp_sym_flag='-bexport'
14989 no_entry_flag='-bnoentry'
14990 fi
14991
14992 # When large executables or shared objects are built, AIX ld can
14993 # have problems creating the table of contents. If linking a library
14994 # or program results in "error TOC overflow" add -mminimal-toc to
14995 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14996 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14997
14998 archive_cmds_F77=''
14999 hardcode_direct_F77=yes
15000 hardcode_libdir_separator_F77=':'
15001 link_all_deplibs_F77=yes
15002
15003 if test "$GCC" = yes; then
15004 case $host_os in aix4.012|aix4.012.*)
15005 # We only want to do this on AIX 4.2 and lower, the check
15006 # below for broken collect2 doesn't work under 4.3+
15007 collect2name=`${CC} -print-prog-name=collect2`
15008 if test -f "$collect2name" && \
15009 strings "$collect2name" | grep resolve_lib_name >/dev/null
15010 then
15011 # We have reworked collect2
15012 hardcode_direct_F77=yes
15013 else
15014 # We have old collect2
15015 hardcode_direct_F77=unsupported
15016 # It fails to find uninstalled libraries when the uninstalled
15017 # path is not listed in the libpath. Setting hardcode_minus_L
15018 # to unsupported forces relinking
15019 hardcode_minus_L_F77=yes
15020 hardcode_libdir_flag_spec_F77='-L$libdir'
15021 hardcode_libdir_separator_F77=
15022 fi
15023 esac
15024 shared_flag='-shared'
15025 else
15026 # not using gcc
15027 if test "$host_cpu" = ia64; then
15028 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15029 # chokes on -Wl,-G. The following line is correct:
15030 shared_flag='-G'
15031 else
15032 if test "$aix_use_runtimelinking" = yes; then
15033 shared_flag='${wl}-G'
15034 else
15035 shared_flag='${wl}-bM:SRE'
15036 fi
15037 fi
15038 fi
15039
15040 # It seems that -bexpall does not export symbols beginning with
15041 # underscore (_), so it is better to generate a list of symbols to export.
15042 always_export_symbols_F77=yes
15043 if test "$aix_use_runtimelinking" = yes; then
15044 # Warning - without using the other runtime loading flags (-brtl),
15045 # -berok will link without error, but may produce a broken library.
15046 allow_undefined_flag_F77='-berok'
15047 # Determine the default libpath from the value encoded in an empty executable.
15048 cat >conftest.$ac_ext <<_ACEOF
15049 program main
15050
15051 end
15052_ACEOF
15053rm -f conftest.$ac_objext conftest$ac_exeext
15054if { (ac_try="$ac_link"
15055case "(($ac_try" in
15056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15057 *) ac_try_echo=$ac_try;;
15058esac
15059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15060 (eval "$ac_link") 2>conftest.er1
15061 ac_status=$?
15062 grep -v '^ *+' conftest.er1 >conftest.err
15063 rm -f conftest.er1
15064 cat conftest.err >&5
15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); } && {
15067 test -z "$ac_f77_werror_flag" ||
15068 test ! -s conftest.err
15069 } && test -s conftest$ac_exeext &&
15070 $as_test_x conftest$ac_exeext; then
15071
15072aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15073}'`
15074# Check for a 64-bit object if we didn't find anything.
15075if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15076}'`; fi
15077else
15078 echo "$as_me: failed program was:" >&5
15079sed 's/^/| /' conftest.$ac_ext >&5
15080
15081
15082fi
15083
15084rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15085 conftest$ac_exeext conftest.$ac_ext
15086if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15087
15088 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15089 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15090 else
15091 if test "$host_cpu" = ia64; then
15092 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15093 allow_undefined_flag_F77="-z nodefs"
15094 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15095 else
15096 # Determine the default libpath from the value encoded in an empty executable.
15097 cat >conftest.$ac_ext <<_ACEOF
15098 program main
15099
15100 end
15101_ACEOF
15102rm -f conftest.$ac_objext conftest$ac_exeext
15103if { (ac_try="$ac_link"
15104case "(($ac_try" in
15105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15106 *) ac_try_echo=$ac_try;;
15107esac
15108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15109 (eval "$ac_link") 2>conftest.er1
15110 ac_status=$?
15111 grep -v '^ *+' conftest.er1 >conftest.err
15112 rm -f conftest.er1
15113 cat conftest.err >&5
15114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115 (exit $ac_status); } && {
15116 test -z "$ac_f77_werror_flag" ||
15117 test ! -s conftest.err
15118 } && test -s conftest$ac_exeext &&
15119 $as_test_x conftest$ac_exeext; then
15120
15121aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15122}'`
15123# Check for a 64-bit object if we didn't find anything.
15124if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15125}'`; fi
15126else
15127 echo "$as_me: failed program was:" >&5
15128sed 's/^/| /' conftest.$ac_ext >&5
15129
15130
15131fi
15132
15133rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15134 conftest$ac_exeext conftest.$ac_ext
15135if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15136
15137 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15138 # Warning - without using the other run time loading flags,
15139 # -berok will link without error, but may produce a broken library.
15140 no_undefined_flag_F77=' ${wl}-bernotok'
15141 allow_undefined_flag_F77=' ${wl}-berok'
15142 # -bexpall does not export symbols beginning with underscore (_)
15143 always_export_symbols_F77=yes
15144 # Exported symbols can be pulled into shared objects from archives
15145 whole_archive_flag_spec_F77=' '
15146 archive_cmds_need_lc_F77=yes
15147 # This is similar to how AIX traditionally builds it's shared libraries.
15148 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15149 fi
15150 fi
15151 ;;
15152
15153 amigaos*)
15154 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15155 hardcode_libdir_flag_spec_F77='-L$libdir'
15156 hardcode_minus_L_F77=yes
15157 # see comment about different semantics on the GNU ld section
15158 ld_shlibs_F77=no
15159 ;;
15160
15161 bsdi4*)
15162 export_dynamic_flag_spec_F77=-rdynamic
15163 ;;
15164
15165 cygwin* | mingw* | pw32*)
15166 # When not using gcc, we currently assume that we are using
15167 # Microsoft Visual C++.
15168 # hardcode_libdir_flag_spec is actually meaningless, as there is
15169 # no search path for DLLs.
15170 hardcode_libdir_flag_spec_F77=' '
15171 allow_undefined_flag_F77=unsupported
15172 # Tell ltmain to make .lib files, not .a files.
15173 libext=lib
15174 # Tell ltmain to make .dll files, not .so files.
15175 shrext_cmds=".dll"
15176 # FIXME: Setting linknames here is a bad hack.
15177 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15178 # The linker will automatically build a .lib file if we build a DLL.
15179 old_archive_From_new_cmds_F77='true'
15180 # FIXME: Should let the user specify the lib program.
15181 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15182 fix_srcfile_path='`cygpath -w "$srcfile"`'
15183 enable_shared_with_static_runtimes_F77=yes
15184 ;;
15185
15186 darwin* | rhapsody*)
15187 if test "$GXX" = yes ; then
15188 archive_cmds_need_lc_F77=no
15189 case "$host_os" in
15190 rhapsody* | darwin1.[012])
15191 allow_undefined_flag_F77='-undefined suppress'
15192 ;;
15193 *) # Darwin 1.3 on
15194 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15195 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
15196 else
15197 case ${MACOSX_DEPLOYMENT_TARGET} in
15198 10.[012])
15199 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
15200 ;;
15201 10.*)
15202 allow_undefined_flag_F77='-undefined dynamic_lookup'
15203 ;;
15204 esac
15205 fi
15206 ;;
15207 esac
15208 lt_int_apple_cc_single_mod=no
15209 output_verbose_link_cmd='echo'
15210 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15211 lt_int_apple_cc_single_mod=yes
15212 fi
15213 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15214 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15215 else
15216 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15217 fi
15218 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15219 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15220 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15221 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15222 else
15223 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15224 fi
15225 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15226 hardcode_direct_F77=no
15227 hardcode_automatic_F77=yes
15228 hardcode_shlibpath_var_F77=unsupported
15229 whole_archive_flag_spec_F77='-all_load $convenience'
15230 link_all_deplibs_F77=yes
15231 else
15232 ld_shlibs_F77=no
15233 fi
15234 ;;
15235
15236 dgux*)
15237 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15238 hardcode_libdir_flag_spec_F77='-L$libdir'
15239 hardcode_shlibpath_var_F77=no
15240 ;;
15241
15242 freebsd1*)
15243 ld_shlibs_F77=no
15244 ;;
15245
15246 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15247 # support. Future versions do this automatically, but an explicit c++rt0.o
15248 # does not break anything, and helps significantly (at the cost of a little
15249 # extra space).
15250 freebsd2.2*)
15251 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15252 hardcode_libdir_flag_spec_F77='-R$libdir'
15253 hardcode_direct_F77=yes
15254 hardcode_shlibpath_var_F77=no
15255 ;;
15256
15257 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15258 freebsd2*)
15259 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15260 hardcode_direct_F77=yes
15261 hardcode_minus_L_F77=yes
15262 hardcode_shlibpath_var_F77=no
15263 ;;
15264
15265 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15266 freebsd* | kfreebsd*-gnu)
15267 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15268 hardcode_libdir_flag_spec_F77='-R$libdir'
15269 hardcode_direct_F77=yes
15270 hardcode_shlibpath_var_F77=no
15271 ;;
15272
15273 hpux9*)
15274 if test "$GCC" = yes; then
15275 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15276 else
15277 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15278 fi
15279 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15280 hardcode_libdir_separator_F77=:
15281 hardcode_direct_F77=yes
15282
15283 # hardcode_minus_L: Not really in the search PATH,
15284 # but as the default location of the library.
15285 hardcode_minus_L_F77=yes
15286 export_dynamic_flag_spec_F77='${wl}-E'
15287 ;;
15288
15289 hpux10* | hpux11*)
15290 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15291 case "$host_cpu" in
15292 hppa*64*|ia64*)
15293 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15294 ;;
15295 *)
15296 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15297 ;;
15298 esac
15299 else
15300 case "$host_cpu" in
15301 hppa*64*|ia64*)
15302 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15303 ;;
15304 *)
15305 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15306 ;;
15307 esac
15308 fi
15309 if test "$with_gnu_ld" = no; then
15310 case "$host_cpu" in
15311 hppa*64*)
15312 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15313 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15314 hardcode_libdir_separator_F77=:
15315 hardcode_direct_F77=no
15316 hardcode_shlibpath_var_F77=no
15317 ;;
15318 ia64*)
15319 hardcode_libdir_flag_spec_F77='-L$libdir'
15320 hardcode_direct_F77=no
15321 hardcode_shlibpath_var_F77=no
15322
15323 # hardcode_minus_L: Not really in the search PATH,
15324 # but as the default location of the library.
15325 hardcode_minus_L_F77=yes
15326 ;;
15327 *)
15328 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15329 hardcode_libdir_separator_F77=:
15330 hardcode_direct_F77=yes
15331 export_dynamic_flag_spec_F77='${wl}-E'
15332
15333 # hardcode_minus_L: Not really in the search PATH,
15334 # but as the default location of the library.
15335 hardcode_minus_L_F77=yes
15336 ;;
15337 esac
15338 fi
15339 ;;
15340
15341 irix5* | irix6* | nonstopux*)
15342 if test "$GCC" = yes; then
15343 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15344 else
15345 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15346 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15347 fi
15348 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15349 hardcode_libdir_separator_F77=:
15350 link_all_deplibs_F77=yes
15351 ;;
15352
15353 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
15354 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15355 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15356 else
15357 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15358 fi
15359 hardcode_libdir_flag_spec_F77='-R$libdir'
15360 hardcode_direct_F77=yes
15361 hardcode_shlibpath_var_F77=no
15362 ;;
15363
15364 newsos6)
15365 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15366 hardcode_direct_F77=yes
15367 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15368 hardcode_libdir_separator_F77=:
15369 hardcode_shlibpath_var_F77=no
15370 ;;
15371
15372 openbsd*)
15373 hardcode_direct_F77=yes
15374 hardcode_shlibpath_var_F77=no
15375 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15376 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15377 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15378 export_dynamic_flag_spec_F77='${wl}-E'
15379 else
15380 case $host_os in
15381 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15382 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15383 hardcode_libdir_flag_spec_F77='-R$libdir'
15384 ;;
15385 *)
15386 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15387 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15388 ;;
15389 esac
15390 fi
15391 ;;
15392
15393 os2*)
15394 hardcode_libdir_flag_spec_F77='-L$libdir'
15395 hardcode_minus_L_F77=yes
15396 allow_undefined_flag_F77=unsupported
15397 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15398 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15399 ;;
15400
15401 osf3*)
15402 if test "$GCC" = yes; then
15403 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15404 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15405 else
15406 allow_undefined_flag_F77=' -expect_unresolved \*'
15407 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15408 fi
15409 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15410 hardcode_libdir_separator_F77=:
15411 ;;
15412
15413 osf4* | osf5*) # as osf3* with the addition of -msym flag
15414 if test "$GCC" = yes; then
15415 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15416 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15417 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15418 else
15419 allow_undefined_flag_F77=' -expect_unresolved \*'
15420 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15421 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15422 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
15423
15424 # Both c and cxx compiler support -rpath directly
15425 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15426 fi
15427 hardcode_libdir_separator_F77=:
15428 ;;
15429
15430 sco3.2v5*)
15431 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15432 hardcode_shlibpath_var_F77=no
15433 export_dynamic_flag_spec_F77='${wl}-Bexport'
15434 runpath_var=LD_RUN_PATH
15435 hardcode_runpath_var=yes
15436 ;;
15437
15438 solaris*)
15439 no_undefined_flag_F77=' -z text'
15440 if test "$GCC" = yes; then
15441 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15442 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15443 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15444 else
15445 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15446 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15447 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15448 fi
15449 hardcode_libdir_flag_spec_F77='-R$libdir'
15450 hardcode_shlibpath_var_F77=no
15451 case $host_os in
15452 solaris2.[0-5] | solaris2.[0-5].*) ;;
15453 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15454 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15455 esac
15456 link_all_deplibs_F77=yes
15457 ;;
15458
15459 sunos4*)
15460 if test "x$host_vendor" = xsequent; then
15461 # Use $CC to link under sequent, because it throws in some extra .o
15462 # files that make .init and .fini sections work.
15463 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15464 else
15465 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15466 fi
15467 hardcode_libdir_flag_spec_F77='-L$libdir'
15468 hardcode_direct_F77=yes
15469 hardcode_minus_L_F77=yes
15470 hardcode_shlibpath_var_F77=no
15471 ;;
15472
15473 sysv4)
15474 case $host_vendor in
15475 sni)
15476 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15477 hardcode_direct_F77=yes # is this really true???
15478 ;;
15479 siemens)
15480 ## LD is ld it makes a PLAMLIB
15481 ## CC just makes a GrossModule.
15482 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15483 reload_cmds_F77='$CC -r -o $output$reload_objs'
15484 hardcode_direct_F77=no
15485 ;;
15486 motorola)
15487 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15488 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15489 ;;
15490 esac
15491 runpath_var='LD_RUN_PATH'
15492 hardcode_shlibpath_var_F77=no
15493 ;;
15494
15495 sysv4.3*)
15496 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15497 hardcode_shlibpath_var_F77=no
15498 export_dynamic_flag_spec_F77='-Bexport'
15499 ;;
15500
15501 sysv4*MP*)
15502 if test -d /usr/nec; then
15503 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15504 hardcode_shlibpath_var_F77=no
15505 runpath_var=LD_RUN_PATH
15506 hardcode_runpath_var=yes
15507 ld_shlibs_F77=yes
15508 fi
15509 ;;
15510
15511 sysv4.2uw2*)
15512 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15513 hardcode_direct_F77=yes
15514 hardcode_minus_L_F77=no
15515 hardcode_shlibpath_var_F77=no
15516 hardcode_runpath_var=yes
15517 runpath_var=LD_RUN_PATH
15518 ;;
15519
15520 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15521 no_undefined_flag_F77='${wl}-z ${wl}text'
15522 if test "$GCC" = yes; then
15523 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15524 else
15525 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15526 fi
15527 runpath_var='LD_RUN_PATH'
15528 hardcode_shlibpath_var_F77=no
15529 ;;
15530
15531 sysv5*)
15532 no_undefined_flag_F77=' -z text'
15533 # $CC -shared without GNU ld will not create a library from C++
15534 # object files and a static libstdc++, better avoid it by now
15535 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15536 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15537 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15538 hardcode_libdir_flag_spec_F77=
15539 hardcode_shlibpath_var_F77=no
15540 runpath_var='LD_RUN_PATH'
15541 ;;
15542
15543 uts4*)
15544 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15545 hardcode_libdir_flag_spec_F77='-L$libdir'
15546 hardcode_shlibpath_var_F77=no
15547 ;;
15548
15549 *)
15550 ld_shlibs_F77=no
15551 ;;
15552 esac
15553 fi
15554
15555{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15556echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15557test "$ld_shlibs_F77" = no && can_build_shared=no
15558
15559variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15560if test "$GCC" = yes; then
15561 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15562fi
15563
15564#
15565# Do we need to explicitly link libc?
15566#
15567case "x$archive_cmds_need_lc_F77" in
15568x|xyes)
15569 # Assume -lc should be added
15570 archive_cmds_need_lc_F77=yes
15571
15572 if test "$enable_shared" = yes && test "$GCC" = yes; then
15573 case $archive_cmds_F77 in
15574 *'~'*)
15575 # FIXME: we may have to deal with multi-command sequences.
15576 ;;
15577 '$CC '*)
15578 # Test whether the compiler implicitly links with -lc since on some
15579 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15580 # to ld, don't add -lc before -lgcc.
15581 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15582echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15583 $rm conftest*
15584 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15585
15586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15587 (eval $ac_compile) 2>&5
15588 ac_status=$?
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); } 2>conftest.err; then
15591 soname=conftest
15592 lib=conftest
15593 libobjs=conftest.$ac_objext
15594 deplibs=
15595 wl=$lt_prog_compiler_wl_F77
15596 compiler_flags=-v
15597 linker_flags=-v
15598 verstring=
15599 output_objdir=.
15600 libname=conftest
15601 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15602 allow_undefined_flag_F77=
15603 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15604 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15605 ac_status=$?
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); }
15608 then
15609 archive_cmds_need_lc_F77=no
15610 else
15611 archive_cmds_need_lc_F77=yes
15612 fi
15613 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15614 else
15615 cat conftest.err 1>&5
15616 fi
15617 $rm conftest*
15618 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15619echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15620 ;;
15621 esac
15622 fi
15623 ;;
15624esac
15625
15626{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15627echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15628library_names_spec=
15629libname_spec='lib$name'
15630soname_spec=
15631shrext_cmds=".so"
15632postinstall_cmds=
15633postuninstall_cmds=
15634finish_cmds=
15635finish_eval=
15636shlibpath_var=
15637shlibpath_overrides_runpath=unknown
15638version_type=none
15639dynamic_linker="$host_os ld.so"
15640sys_lib_dlsearch_path_spec="/lib /usr/lib"
15641if test "$GCC" = yes; then
15642 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15643 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15644 # if the path contains ";" then we assume it to be the separator
15645 # otherwise default to the standard path separator (i.e. ":") - it is
15646 # assumed that no part of a normal pathname contains ";" but that should
15647 # okay in the real world where ";" in dirpaths is itself problematic.
15648 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15649 else
15650 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15651 fi
15652else
15653 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15654fi
15655need_lib_prefix=unknown
15656hardcode_into_libs=no
15657
15658# when you set need_version to no, make sure it does not cause -set_version
15659# flags to be left without arguments
15660need_version=unknown
15661
15662case $host_os in
15663aix3*)
15664 version_type=linux
15665 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15666 shlibpath_var=LIBPATH
15667
15668 # AIX 3 has no versioning support, so we append a major version to the name.
15669 soname_spec='${libname}${release}${shared_ext}$major'
15670 ;;
15671
15672aix4* | aix5*)
15673 version_type=linux
15674 need_lib_prefix=no
15675 need_version=no
15676 hardcode_into_libs=yes
15677 if test "$host_cpu" = ia64; then
15678 # AIX 5 supports IA64
15679 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15680 shlibpath_var=LD_LIBRARY_PATH
15681 else
15682 # With GCC up to 2.95.x, collect2 would create an import file
15683 # for dependence libraries. The import file would start with
15684 # the line `#! .'. This would cause the generated library to
15685 # depend on `.', always an invalid library. This was fixed in
15686 # development snapshots of GCC prior to 3.0.
15687 case $host_os in
15688 aix4 | aix4.[01] | aix4.[01].*)
15689 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15690 echo ' yes '
15691 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15692 :
15693 else
15694 can_build_shared=no
15695 fi
15696 ;;
15697 esac
15698 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15699 # soname into executable. Probably we can add versioning support to
15700 # collect2, so additional links can be useful in future.
15701 if test "$aix_use_runtimelinking" = yes; then
15702 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15703 # instead of lib<name>.a to let people know that these are not
15704 # typical AIX shared libraries.
15705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15706 else
15707 # We preserve .a as extension for shared libraries through AIX4.2
15708 # and later when we are not doing run time linking.
15709 library_names_spec='${libname}${release}.a $libname.a'
15710 soname_spec='${libname}${release}${shared_ext}$major'
15711 fi
15712 shlibpath_var=LIBPATH
15713 fi
15714 ;;
15715
15716amigaos*)
15717 library_names_spec='$libname.ixlibrary $libname.a'
15718 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15719 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15720 ;;
15721
15722beos*)
15723 library_names_spec='${libname}${shared_ext}'
15724 dynamic_linker="$host_os ld.so"
15725 shlibpath_var=LIBRARY_PATH
15726 ;;
15727
15728bsdi4*)
15729 version_type=linux
15730 need_version=no
15731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15732 soname_spec='${libname}${release}${shared_ext}$major'
15733 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15734 shlibpath_var=LD_LIBRARY_PATH
15735 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15736 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15737 # the default ld.so.conf also contains /usr/contrib/lib and
15738 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15739 # libtool to hard-code these into programs
15740 ;;
15741
15742cygwin* | mingw* | pw32*)
15743 version_type=windows
15744 shrext_cmds=".dll"
15745 need_version=no
15746 need_lib_prefix=no
15747
15748 case $GCC,$host_os in
15749 yes,cygwin* | yes,mingw* | yes,pw32*)
15750 library_names_spec='$libname.dll.a'
15751 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15752 postinstall_cmds='base_file=`basename \${file}`~
15753 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15754 dldir=$destdir/`dirname \$dlpath`~
15755 test -d \$dldir || mkdir -p \$dldir~
15756 $install_prog $dir/$dlname \$dldir/$dlname'
15757 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15758 dlpath=$dir/\$dldll~
15759 $rm \$dlpath'
15760 shlibpath_overrides_runpath=yes
15761
15762 case $host_os in
15763 cygwin*)
15764 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15765 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15766 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15767 ;;
15768 mingw*)
15769 # MinGW DLLs use traditional 'lib' prefix
15770 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15771 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15772 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15773 # It is most probably a Windows format PATH printed by
15774 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15775 # path with ; separators, and with drive letters. We can handle the
15776 # drive letters (cygwin fileutils understands them), so leave them,
15777 # especially as we might pass files found there to a mingw objdump,
15778 # which wouldn't understand a cygwinified path. Ahh.
15779 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15780 else
15781 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15782 fi
15783 ;;
15784 pw32*)
15785 # pw32 DLLs use 'pw' prefix rather than 'lib'
15786 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15787 ;;
15788 esac
15789 ;;
15790
15791 *)
15792 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15793 ;;
15794 esac
15795 dynamic_linker='Win32 ld.exe'
15796 # FIXME: first we should search . and the directory the executable is in
15797 shlibpath_var=PATH
15798 ;;
15799
15800darwin* | rhapsody*)
15801 dynamic_linker="$host_os dyld"
15802 version_type=darwin
15803 need_lib_prefix=no
15804 need_version=no
15805 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15806 soname_spec='${libname}${release}${major}$shared_ext'
15807 shlibpath_overrides_runpath=yes
15808 shlibpath_var=DYLD_LIBRARY_PATH
15809 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15810 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15811 if test "$GCC" = yes; then
15812 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15813 else
15814 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15815 fi
15816 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15817 ;;
15818
15819dgux*)
15820 version_type=linux
15821 need_lib_prefix=no
15822 need_version=no
15823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15824 soname_spec='${libname}${release}${shared_ext}$major'
15825 shlibpath_var=LD_LIBRARY_PATH
15826 ;;
15827
15828freebsd1*)
15829 dynamic_linker=no
15830 ;;
15831
15832kfreebsd*-gnu)
15833 version_type=linux
15834 need_lib_prefix=no
15835 need_version=no
15836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15837 soname_spec='${libname}${release}${shared_ext}$major'
15838 shlibpath_var=LD_LIBRARY_PATH
15839 shlibpath_overrides_runpath=no
15840 hardcode_into_libs=yes
15841 dynamic_linker='GNU ld.so'
15842 ;;
15843
15844freebsd*)
15845 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15846 version_type=freebsd-$objformat
15847 case $version_type in
15848 freebsd-elf*)
15849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15850 need_version=no
15851 need_lib_prefix=no
15852 ;;
15853 freebsd-*)
15854 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15855 need_version=yes
15856 ;;
15857 esac
15858 shlibpath_var=LD_LIBRARY_PATH
15859 case $host_os in
15860 freebsd2*)
15861 shlibpath_overrides_runpath=yes
15862 ;;
15863 freebsd3.01* | freebsdelf3.01*)
15864 shlibpath_overrides_runpath=yes
15865 hardcode_into_libs=yes
15866 ;;
15867 *) # from 3.2 on
15868 shlibpath_overrides_runpath=no
15869 hardcode_into_libs=yes
15870 ;;
15871 esac
15872 ;;
15873
15874gnu*)
15875 version_type=linux
15876 need_lib_prefix=no
15877 need_version=no
15878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15879 soname_spec='${libname}${release}${shared_ext}$major'
15880 shlibpath_var=LD_LIBRARY_PATH
15881 hardcode_into_libs=yes
15882 ;;
15883
15884hpux9* | hpux10* | hpux11*)
15885 # Give a soname corresponding to the major version so that dld.sl refuses to
15886 # link against other versions.
15887 version_type=sunos
15888 need_lib_prefix=no
15889 need_version=no
15890 case "$host_cpu" in
15891 ia64*)
15892 shrext_cmds='.so'
15893 hardcode_into_libs=yes
15894 dynamic_linker="$host_os dld.so"
15895 shlibpath_var=LD_LIBRARY_PATH
15896 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15898 soname_spec='${libname}${release}${shared_ext}$major'
15899 if test "X$HPUX_IA64_MODE" = X32; then
15900 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15901 else
15902 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15903 fi
15904 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15905 ;;
15906 hppa*64*)
15907 shrext_cmds='.sl'
15908 hardcode_into_libs=yes
15909 dynamic_linker="$host_os dld.sl"
15910 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15911 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15913 soname_spec='${libname}${release}${shared_ext}$major'
15914 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15915 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15916 ;;
15917 *)
15918 shrext_cmds='.sl'
15919 dynamic_linker="$host_os dld.sl"
15920 shlibpath_var=SHLIB_PATH
15921 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15923 soname_spec='${libname}${release}${shared_ext}$major'
15924 ;;
15925 esac
15926 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15927 postinstall_cmds='chmod 555 $lib'
15928 ;;
15929
15930irix5* | irix6* | nonstopux*)
15931 case $host_os in
15932 nonstopux*) version_type=nonstopux ;;
15933 *)
15934 if test "$lt_cv_prog_gnu_ld" = yes; then
15935 version_type=linux
15936 else
15937 version_type=irix
15938 fi ;;
15939 esac
15940 need_lib_prefix=no
15941 need_version=no
15942 soname_spec='${libname}${release}${shared_ext}$major'
15943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15944 case $host_os in
15945 irix5* | nonstopux*)
15946 libsuff= shlibsuff=
15947 ;;
15948 *)
15949 case $LD in # libtool.m4 will add one of these switches to LD
15950 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15951 libsuff= shlibsuff= libmagic=32-bit;;
15952 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15953 libsuff=32 shlibsuff=N32 libmagic=N32;;
15954 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15955 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15956 *) libsuff= shlibsuff= libmagic=never-match;;
15957 esac
15958 ;;
15959 esac
15960 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15961 shlibpath_overrides_runpath=no
15962 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15963 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15964 hardcode_into_libs=yes
15965 ;;
15966
15967# No shared lib support for Linux oldld, aout, or coff.
15968linux*oldld* | linux*aout* | linux*coff*)
15969 dynamic_linker=no
15970 ;;
15971
15972# This must be Linux ELF.
15973linux*)
15974 version_type=linux
15975 need_lib_prefix=no
15976 need_version=no
15977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15978 soname_spec='${libname}${release}${shared_ext}$major'
15979 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15980 shlibpath_var=LD_LIBRARY_PATH
15981 shlibpath_overrides_runpath=no
15982 # This implies no fast_install, which is unacceptable.
15983 # Some rework will be needed to allow for fast_install
15984 # before this can be enabled.
15985 hardcode_into_libs=yes
15986
15987 # Append ld.so.conf contents to the search path
15988 if test -f /etc/ld.so.conf; then
15989 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
15990 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15991 fi
15992
15993 # We used to test for /lib/ld.so.1 and disable shared libraries on
15994 # powerpc, because MkLinux only supported shared libraries with the
15995 # GNU dynamic linker. Since this was broken with cross compilers,
15996 # most powerpc-linux boxes support dynamic linking these days and
15997 # people can always --disable-shared, the test was removed, and we
15998 # assume the GNU/Linux dynamic linker is in use.
15999 dynamic_linker='GNU/Linux ld.so'
16000 ;;
16001
16002netbsdelf*-gnu)
16003 version_type=linux
16004 need_lib_prefix=no
16005 need_version=no
16006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16007 soname_spec='${libname}${release}${shared_ext}$major'
16008 shlibpath_var=LD_LIBRARY_PATH
16009 shlibpath_overrides_runpath=no
16010 hardcode_into_libs=yes
16011 dynamic_linker='NetBSD ld.elf_so'
16012 ;;
16013
16014knetbsd*-gnu)
16015 version_type=linux
16016 need_lib_prefix=no
16017 need_version=no
16018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16019 soname_spec='${libname}${release}${shared_ext}$major'
16020 shlibpath_var=LD_LIBRARY_PATH
16021 shlibpath_overrides_runpath=no
16022 hardcode_into_libs=yes
16023 dynamic_linker='GNU ld.so'
16024 ;;
16025
16026netbsd*)
16027 version_type=sunos
16028 need_lib_prefix=no
16029 need_version=no
16030 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16032 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16033 dynamic_linker='NetBSD (a.out) ld.so'
16034 else
16035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16036 soname_spec='${libname}${release}${shared_ext}$major'
16037 dynamic_linker='NetBSD ld.elf_so'
16038 fi
16039 shlibpath_var=LD_LIBRARY_PATH
16040 shlibpath_overrides_runpath=yes
16041 hardcode_into_libs=yes
16042 ;;
16043
16044newsos6)
16045 version_type=linux
16046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16047 shlibpath_var=LD_LIBRARY_PATH
16048 shlibpath_overrides_runpath=yes
16049 ;;
16050
16051nto-qnx*)
16052 version_type=linux
16053 need_lib_prefix=no
16054 need_version=no
16055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16056 soname_spec='${libname}${release}${shared_ext}$major'
16057 shlibpath_var=LD_LIBRARY_PATH
16058 shlibpath_overrides_runpath=yes
16059 ;;
16060
16061openbsd*)
16062 version_type=sunos
16063 need_lib_prefix=no
16064 need_version=yes
16065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16066 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16067 shlibpath_var=LD_LIBRARY_PATH
16068 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16069 case $host_os in
16070 openbsd2.[89] | openbsd2.[89].*)
16071 shlibpath_overrides_runpath=no
16072 ;;
16073 *)
16074 shlibpath_overrides_runpath=yes
16075 ;;
16076 esac
16077 else
16078 shlibpath_overrides_runpath=yes
16079 fi
16080 ;;
16081
16082os2*)
16083 libname_spec='$name'
16084 shrext_cmds=".dll"
16085 need_lib_prefix=no
16086 library_names_spec='$libname${shared_ext} $libname.a'
16087 dynamic_linker='OS/2 ld.exe'
16088 shlibpath_var=LIBPATH
16089 ;;
16090
16091osf3* | osf4* | osf5*)
16092 version_type=osf
16093 need_lib_prefix=no
16094 need_version=no
16095 soname_spec='${libname}${release}${shared_ext}$major'
16096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16097 shlibpath_var=LD_LIBRARY_PATH
16098 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16099 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16100 ;;
16101
16102sco3.2v5*)
16103 version_type=osf
16104 soname_spec='${libname}${release}${shared_ext}$major'
16105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16106 shlibpath_var=LD_LIBRARY_PATH
16107 ;;
16108
16109solaris*)
16110 version_type=linux
16111 need_lib_prefix=no
16112 need_version=no
16113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16114 soname_spec='${libname}${release}${shared_ext}$major'
16115 shlibpath_var=LD_LIBRARY_PATH
16116 shlibpath_overrides_runpath=yes
16117 hardcode_into_libs=yes
16118 # ldd complains unless libraries are executable
16119 postinstall_cmds='chmod +x $lib'
16120 ;;
16121
16122sunos4*)
16123 version_type=sunos
16124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16125 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16126 shlibpath_var=LD_LIBRARY_PATH
16127 shlibpath_overrides_runpath=yes
16128 if test "$with_gnu_ld" = yes; then
16129 need_lib_prefix=no
16130 fi
16131 need_version=yes
16132 ;;
16133
16134sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16135 version_type=linux
16136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16137 soname_spec='${libname}${release}${shared_ext}$major'
16138 shlibpath_var=LD_LIBRARY_PATH
16139 case $host_vendor in
16140 sni)
16141 shlibpath_overrides_runpath=no
16142 need_lib_prefix=no
16143 export_dynamic_flag_spec='${wl}-Blargedynsym'
16144 runpath_var=LD_RUN_PATH
16145 ;;
16146 siemens)
16147 need_lib_prefix=no
16148 ;;
16149 motorola)
16150 need_lib_prefix=no
16151 need_version=no
16152 shlibpath_overrides_runpath=no
16153 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16154 ;;
16155 esac
16156 ;;
16157
16158sysv4*MP*)
16159 if test -d /usr/nec ;then
16160 version_type=linux
16161 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16162 soname_spec='$libname${shared_ext}.$major'
16163 shlibpath_var=LD_LIBRARY_PATH
16164 fi
16165 ;;
16166
16167uts4*)
16168 version_type=linux
16169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16170 soname_spec='${libname}${release}${shared_ext}$major'
16171 shlibpath_var=LD_LIBRARY_PATH
16172 ;;
16173
16174*)
16175 dynamic_linker=no
16176 ;;
16177esac
16178{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16179echo "${ECHO_T}$dynamic_linker" >&6; }
16180test "$dynamic_linker" = no && can_build_shared=no
16181
16182{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16183echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16184hardcode_action_F77=
16185if test -n "$hardcode_libdir_flag_spec_F77" || \
16186 test -n "$runpath_var F77" || \
16187 test "X$hardcode_automatic_F77"="Xyes" ; then
16188
16189 # We can hardcode non-existant directories.
16190 if test "$hardcode_direct_F77" != no &&
16191 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16192 # have to relink, otherwise we might link with an installed library
16193 # when we should be linking with a yet-to-be-installed one
16194 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16195 test "$hardcode_minus_L_F77" != no; then
16196 # Linking always hardcodes the temporary library directory.
16197 hardcode_action_F77=relink
16198 else
16199 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16200 hardcode_action_F77=immediate
16201 fi
16202else
16203 # We cannot hardcode anything, or else we can only hardcode existing
16204 # directories.
16205 hardcode_action_F77=unsupported
16206fi
16207{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16208echo "${ECHO_T}$hardcode_action_F77" >&6; }
16209
16210if test "$hardcode_action_F77" = relink; then
16211 # Fast installation is not supported
16212 enable_fast_install=no
16213elif test "$shlibpath_overrides_runpath" = yes ||
16214 test "$enable_shared" = no; then
16215 # Fast installation is not necessary
16216 enable_fast_install=needless
16217fi
16218
16219striplib=
16220old_striplib=
16221{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16222echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16223if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16224 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16225 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16226 { echo "$as_me:$LINENO: result: yes" >&5
16227echo "${ECHO_T}yes" >&6; }
16228else
16229# FIXME - insert some real tests, host_os isn't really good enough
16230 case $host_os in
16231 darwin*)
16232 if test -n "$STRIP" ; then
16233 striplib="$STRIP -x"
16234 { echo "$as_me:$LINENO: result: yes" >&5
16235echo "${ECHO_T}yes" >&6; }
16236 else
16237 { echo "$as_me:$LINENO: result: no" >&5
16238echo "${ECHO_T}no" >&6; }
16239fi
16240 ;;
16241 *)
16242 { echo "$as_me:$LINENO: result: no" >&5
16243echo "${ECHO_T}no" >&6; }
16244 ;;
16245 esac
16246fi
16247
16248
16249
16250# The else clause should only fire when bootstrapping the
16251# libtool distribution, otherwise you forgot to ship ltmain.sh
16252# with your package, and you will get complaints that there are
16253# no rules to generate ltmain.sh.
16254if test -f "$ltmain"; then
16255 # See if we are running on zsh, and set the options which allow our commands through
16256 # without removal of \ escapes.
16257 if test -n "${ZSH_VERSION+set}" ; then
16258 setopt NO_GLOB_SUBST
16259 fi
16260 # Now quote all the things that may contain metacharacters while being
16261 # careful not to overquote the AC_SUBSTed values. We take copies of the
16262 # variables and quote the copies for generation of the libtool script.
16263 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16264 SED SHELL STRIP \
16265 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16266 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16267 deplibs_check_method reload_flag reload_cmds need_locks \
16268 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16269 lt_cv_sys_global_symbol_to_c_name_address \
16270 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16271 old_postinstall_cmds old_postuninstall_cmds \
16272 compiler_F77 \
16273 CC_F77 \
16274 LD_F77 \
16275 lt_prog_compiler_wl_F77 \
16276 lt_prog_compiler_pic_F77 \
16277 lt_prog_compiler_static_F77 \
16278 lt_prog_compiler_no_builtin_flag_F77 \
16279 export_dynamic_flag_spec_F77 \
16280 thread_safe_flag_spec_F77 \
16281 whole_archive_flag_spec_F77 \
16282 enable_shared_with_static_runtimes_F77 \
16283 old_archive_cmds_F77 \
16284 old_archive_from_new_cmds_F77 \
16285 predep_objects_F77 \
16286 postdep_objects_F77 \
16287 predeps_F77 \
16288 postdeps_F77 \
16289 compiler_lib_search_path_F77 \
16290 archive_cmds_F77 \
16291 archive_expsym_cmds_F77 \
16292 postinstall_cmds_F77 \
16293 postuninstall_cmds_F77 \
16294 old_archive_from_expsyms_cmds_F77 \
16295 allow_undefined_flag_F77 \
16296 no_undefined_flag_F77 \
16297 export_symbols_cmds_F77 \
16298 hardcode_libdir_flag_spec_F77 \
16299 hardcode_libdir_flag_spec_ld_F77 \
16300 hardcode_libdir_separator_F77 \
16301 hardcode_automatic_F77 \
16302 module_cmds_F77 \
16303 module_expsym_cmds_F77 \
16304 lt_cv_prog_compiler_c_o_F77 \
16305 exclude_expsyms_F77 \
16306 include_expsyms_F77; do
16307
16308 case $var in
16309 old_archive_cmds_F77 | \
16310 old_archive_from_new_cmds_F77 | \
16311 archive_cmds_F77 | \
16312 archive_expsym_cmds_F77 | \
16313 module_cmds_F77 | \
16314 module_expsym_cmds_F77 | \
16315 old_archive_from_expsyms_cmds_F77 | \
16316 export_symbols_cmds_F77 | \
16317 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16318 postinstall_cmds | postuninstall_cmds | \
16319 old_postinstall_cmds | old_postuninstall_cmds | \
16320 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16321 # Double-quote double-evaled strings.
16322 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16323 ;;
16324 *)
16325 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16326 ;;
16327 esac
16328 done
16329
16330 case $lt_echo in
16331 *'\$0 --fallback-echo"')
16332 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16333 ;;
16334 esac
16335
16336cfgfile="$ofile"
16337
16338 cat <<__EOF__ >> "$cfgfile"
16339# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16340
16341# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16342
16343# Shell to use when invoking shell scripts.
16344SHELL=$lt_SHELL
16345
16346# Whether or not to build shared libraries.
16347build_libtool_libs=$enable_shared
16348
16349# Whether or not to build static libraries.
16350build_old_libs=$enable_static
16351
16352# Whether or not to add -lc for building shared libraries.
16353build_libtool_need_lc=$archive_cmds_need_lc_F77
16354
16355# Whether or not to disallow shared libs when runtime libs are static
16356allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16357
16358# Whether or not to optimize for fast installation.
16359fast_install=$enable_fast_install
16360
16361# The host system.
16362host_alias=$host_alias
16363host=$host
16364
16365# An echo program that does not interpret backslashes.
16366echo=$lt_echo
16367
16368# The archiver.
16369AR=$lt_AR
16370AR_FLAGS=$lt_AR_FLAGS
16371
16372# A C compiler.
16373LTCC=$lt_LTCC
16374
16375# A language-specific compiler.
16376CC=$lt_compiler_F77
16377
16378# Is the compiler the GNU C compiler?
16379with_gcc=$GCC_F77
16380
16381# An ERE matcher.
16382EGREP=$lt_EGREP
16383
16384# The linker used to build libraries.
16385LD=$lt_LD_F77
16386
16387# Whether we need hard or soft links.
16388LN_S=$lt_LN_S
16389
16390# A BSD-compatible nm program.
16391NM=$lt_NM
16392
16393# A symbol stripping program
16394STRIP=$lt_STRIP
16395
16396# Used to examine libraries when file_magic_cmd begins "file"
16397MAGIC_CMD=$MAGIC_CMD
16398
16399# Used on cygwin: DLL creation program.
16400DLLTOOL="$DLLTOOL"
16401
16402# Used on cygwin: object dumper.
16403OBJDUMP="$OBJDUMP"
16404
16405# Used on cygwin: assembler.
16406AS="$AS"
16407
16408# The name of the directory that contains temporary libtool files.
16409objdir=$objdir
16410
16411# How to create reloadable object files.
16412reload_flag=$lt_reload_flag
16413reload_cmds=$lt_reload_cmds
16414
16415# How to pass a linker flag through the compiler.
16416wl=$lt_lt_prog_compiler_wl_F77
16417
16418# Object file suffix (normally "o").
16419objext="$ac_objext"
16420
16421# Old archive suffix (normally "a").
16422libext="$libext"
16423
16424# Shared library suffix (normally ".so").
16425shrext_cmds='$shrext_cmds'
16426
16427# Executable file suffix (normally "").
16428exeext="$exeext"
16429
16430# Additional compiler flags for building library objects.
16431pic_flag=$lt_lt_prog_compiler_pic_F77
16432pic_mode=$pic_mode
16433
16434# What is the maximum length of a command?
16435max_cmd_len=$lt_cv_sys_max_cmd_len
16436
16437# Does compiler simultaneously support -c and -o options?
16438compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16439
16440# Must we lock files when doing compilation ?
16441need_locks=$lt_need_locks
16442
16443# Do we need the lib prefix for modules?
16444need_lib_prefix=$need_lib_prefix
16445
16446# Do we need a version for libraries?
16447need_version=$need_version
16448
16449# Whether dlopen is supported.
16450dlopen_support=$enable_dlopen
16451
16452# Whether dlopen of programs is supported.
16453dlopen_self=$enable_dlopen_self
16454
16455# Whether dlopen of statically linked programs is supported.
16456dlopen_self_static=$enable_dlopen_self_static
16457
16458# Compiler flag to prevent dynamic linking.
16459link_static_flag=$lt_lt_prog_compiler_static_F77
16460
16461# Compiler flag to turn off builtin functions.
16462no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16463
16464# Compiler flag to allow reflexive dlopens.
16465export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16466
16467# Compiler flag to generate shared objects directly from archives.
16468whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16469
16470# Compiler flag to generate thread-safe objects.
16471thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16472
16473# Library versioning type.
16474version_type=$version_type
16475
16476# Format of library name prefix.
16477libname_spec=$lt_libname_spec
16478
16479# List of archive names. First name is the real one, the rest are links.
16480# The last name is the one that the linker finds with -lNAME.
16481library_names_spec=$lt_library_names_spec
16482
16483# The coded name of the library, if different from the real name.
16484soname_spec=$lt_soname_spec
16485
16486# Commands used to build and install an old-style archive.
16487RANLIB=$lt_RANLIB
16488old_archive_cmds=$lt_old_archive_cmds_F77
16489old_postinstall_cmds=$lt_old_postinstall_cmds
16490old_postuninstall_cmds=$lt_old_postuninstall_cmds
16491
16492# Create an old-style archive from a shared archive.
16493old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16494
16495# Create a temporary old-style archive to link instead of a shared archive.
16496old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16497
16498# Commands used to build and install a shared archive.
16499archive_cmds=$lt_archive_cmds_F77
16500archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16501postinstall_cmds=$lt_postinstall_cmds
16502postuninstall_cmds=$lt_postuninstall_cmds
16503
16504# Commands used to build a loadable module (assumed same as above if empty)
16505module_cmds=$lt_module_cmds_F77
16506module_expsym_cmds=$lt_module_expsym_cmds_F77
16507
16508# Commands to strip libraries.
16509old_striplib=$lt_old_striplib
16510striplib=$lt_striplib
16511
16512# Dependencies to place before the objects being linked to create a
16513# shared library.
16514predep_objects=$lt_predep_objects_F77
16515
16516# Dependencies to place after the objects being linked to create a
16517# shared library.
16518postdep_objects=$lt_postdep_objects_F77
16519
16520# Dependencies to place before the objects being linked to create a
16521# shared library.
16522predeps=$lt_predeps_F77
16523
16524# Dependencies to place after the objects being linked to create a
16525# shared library.
16526postdeps=$lt_postdeps_F77
16527
16528# The library search path used internally by the compiler when linking
16529# a shared library.
16530compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16531
16532# Method to check whether dependent libraries are shared objects.
16533deplibs_check_method=$lt_deplibs_check_method
16534
16535# Command to use when deplibs_check_method == file_magic.
16536file_magic_cmd=$lt_file_magic_cmd
16537
16538# Flag that allows shared libraries with undefined symbols to be built.
16539allow_undefined_flag=$lt_allow_undefined_flag_F77
16540
16541# Flag that forces no undefined symbols.
16542no_undefined_flag=$lt_no_undefined_flag_F77
16543
16544# Commands used to finish a libtool library installation in a directory.
16545finish_cmds=$lt_finish_cmds
16546
16547# Same as above, but a single script fragment to be evaled but not shown.
16548finish_eval=$lt_finish_eval
16549
16550# Take the output of nm and produce a listing of raw symbols and C names.
16551global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16552
16553# Transform the output of nm in a proper C declaration
16554global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16555
16556# Transform the output of nm in a C name address pair
16557global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16558
16559# This is the shared library runtime path variable.
16560runpath_var=$runpath_var
16561
16562# This is the shared library path variable.
16563shlibpath_var=$shlibpath_var
16564
16565# Is shlibpath searched before the hard-coded library search path?
16566shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16567
16568# How to hardcode a shared library path into an executable.
16569hardcode_action=$hardcode_action_F77
16570
16571# Whether we should hardcode library paths into libraries.
16572hardcode_into_libs=$hardcode_into_libs
16573
16574# Flag to hardcode \$libdir into a binary during linking.
16575# This must work even if \$libdir does not exist.
16576hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16577
16578# If ld is used when linking, flag to hardcode \$libdir into
16579# a binary during linking. This must work even if \$libdir does
16580# not exist.
16581hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16582
16583# Whether we need a single -rpath flag with a separated argument.
16584hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16585
16586# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16587# resulting binary.
16588hardcode_direct=$hardcode_direct_F77
16589
16590# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16591# resulting binary.
16592hardcode_minus_L=$hardcode_minus_L_F77
16593
16594# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16595# the resulting binary.
16596hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16597
16598# Set to yes if building a shared library automatically hardcodes DIR into the library
16599# and all subsequent libraries and executables linked against it.
16600hardcode_automatic=$hardcode_automatic_F77
16601
16602# Variables whose values should be saved in libtool wrapper scripts and
16603# restored at relink time.
16604variables_saved_for_relink="$variables_saved_for_relink"
16605
16606# Whether libtool must link a program against all its dependency libraries.
16607link_all_deplibs=$link_all_deplibs_F77
16608
16609# Compile-time system search path for libraries
16610sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16611
16612# Run-time system search path for libraries
16613sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16614
16615# Fix the shell variable \$srcfile for the compiler.
16616fix_srcfile_path="$fix_srcfile_path_F77"
16617
16618# Set to yes if exported symbols are required.
16619always_export_symbols=$always_export_symbols_F77
16620
16621# The commands to list exported symbols.
16622export_symbols_cmds=$lt_export_symbols_cmds_F77
16623
16624# The commands to extract the exported symbol list from a shared archive.
16625extract_expsyms_cmds=$lt_extract_expsyms_cmds
16626
16627# Symbols that should not be listed in the preloaded symbols.
16628exclude_expsyms=$lt_exclude_expsyms_F77
16629
16630# Symbols that must always be exported.
16631include_expsyms=$lt_include_expsyms_F77
16632
16633# ### END LIBTOOL TAG CONFIG: $tagname
16634
16635__EOF__
16636
16637
16638else
16639 # If there is no Makefile yet, we rely on a make rule to execute
16640 # `config.status --recheck' to rerun these tests and create the
16641 # libtool script then.
16642 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16643 if test -f "$ltmain_in"; then
16644 test -f Makefile && make "$ltmain"
16645 fi
16646fi
16647
16648
16649ac_ext=c
16650ac_cpp='$CPP $CPPFLAGS'
16651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16653ac_compiler_gnu=$ac_cv_c_compiler_gnu
16654
16655CC="$lt_save_CC"
16656
16657 else
16658 tagname=""
16659 fi
16660 ;;
16661
16662 GCJ)
16663 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16664
16665
16666# Source file extension for Java test sources.
16667ac_ext=java
16668
16669# Object file extension for compiled Java test sources.
16670objext=o
16671objext_GCJ=$objext
16672
16673# Code to be used in simple compile tests
16674lt_simple_compile_test_code="class foo {}\n"
16675
16676# Code to be used in simple link tests
16677lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
16678
16679# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16680
16681# If no C compiler was specified, use CC.
16682LTCC=${LTCC-"$CC"}
16683
16684# Allow CC to be a program name with arguments.
16685compiler=$CC
16686
16687
16688# Allow CC to be a program name with arguments.
16689lt_save_CC="$CC"
16690CC=${GCJ-"gcj"}
16691compiler=$CC
16692compiler_GCJ=$CC
16693
16694# GCJ did not exist at the time GCC didn't implicitly link libc in.
16695archive_cmds_need_lc_GCJ=no
16696
16697## CAVEAT EMPTOR:
16698## There is no encapsulation within the following macros, do not change
16699## the running order or otherwise move them around unless you know exactly
16700## what you are doing...
16701
16702lt_prog_compiler_no_builtin_flag_GCJ=
16703
16704if test "$GCC" = yes; then
16705 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16706
16707
16708{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16709echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16710if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16711 echo $ECHO_N "(cached) $ECHO_C" >&6
16712else
16713 lt_cv_prog_compiler_rtti_exceptions=no
16714 ac_outfile=conftest.$ac_objext
16715 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16716 lt_compiler_flag="-fno-rtti -fno-exceptions"
16717 # Insert the option either (1) after the last *FLAGS variable, or
16718 # (2) before a word containing "conftest.", or (3) at the end.
16719 # Note that $ac_compile itself does not contain backslashes and begins
16720 # with a dollar sign (not a hyphen), so the echo should work correctly.
16721 # The option is referenced via a variable to avoid confusing sed.
16722 lt_compile=`echo "$ac_compile" | $SED \
16723 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16724 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16725 -e 's:$: $lt_compiler_flag:'`
16726 (eval echo "\"\$as_me:16726: $lt_compile\"" >&5)
16727 (eval "$lt_compile" 2>conftest.err)
16728 ac_status=$?
16729 cat conftest.err >&5
16730 echo "$as_me:16730: \$? = $ac_status" >&5
16731 if (exit $ac_status) && test -s "$ac_outfile"; then
16732 # The compiler can only warn and ignore the option if not recognized
16733 # So say no if there are warnings
16734 if test ! -s conftest.err; then
16735 lt_cv_prog_compiler_rtti_exceptions=yes
16736 fi
16737 fi
16738 $rm conftest*
16739
16740fi
16741{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16742echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16743
16744if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16745 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16746else
16747 :
16748fi
16749
16750fi
16751
16752lt_prog_compiler_wl_GCJ=
16753lt_prog_compiler_pic_GCJ=
16754lt_prog_compiler_static_GCJ=
16755
16756{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16757echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16758
16759 if test "$GCC" = yes; then
16760 lt_prog_compiler_wl_GCJ='-Wl,'
16761 lt_prog_compiler_static_GCJ='-static'
16762
16763 case $host_os in
16764 aix*)
16765 # All AIX code is PIC.
16766 if test "$host_cpu" = ia64; then
16767 # AIX 5 now supports IA64 processor
16768 lt_prog_compiler_static_GCJ='-Bstatic'
16769 fi
16770 ;;
16771
16772 amigaos*)
16773 # FIXME: we need at least 68020 code to build shared libraries, but
16774 # adding the `-m68020' flag to GCC prevents building anything better,
16775 # like `-m68040'.
16776 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16777 ;;
16778
16779 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16780 # PIC is the default for these OSes.
16781 ;;
16782
16783 mingw* | pw32* | os2*)
16784 # This hack is so that the source file can tell whether it is being
16785 # built for inclusion in a dll (and should export symbols for example).
16786 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16787 ;;
16788
16789 darwin* | rhapsody*)
16790 # PIC is the default on this platform
16791 # Common symbols not allowed in MH_DYLIB files
16792 lt_prog_compiler_pic_GCJ='-fno-common'
16793 ;;
16794
16795 msdosdjgpp*)
16796 # Just because we use GCC doesn't mean we suddenly get shared libraries
16797 # on systems that don't support them.
16798 lt_prog_compiler_can_build_shared_GCJ=no
16799 enable_shared=no
16800 ;;
16801
16802 sysv4*MP*)
16803 if test -d /usr/nec; then
16804 lt_prog_compiler_pic_GCJ=-Kconform_pic
16805 fi
16806 ;;
16807
16808 hpux*)
16809 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16810 # not for PA HP-UX.
16811 case "$host_cpu" in
16812 hppa*64*|ia64*)
16813 # +Z the default
16814 ;;
16815 *)
16816 lt_prog_compiler_pic_GCJ='-fPIC'
16817 ;;
16818 esac
16819 ;;
16820
16821 *)
16822 lt_prog_compiler_pic_GCJ='-fPIC'
16823 ;;
16824 esac
16825 else
16826 # PORTME Check for flag to pass linker flags through the system compiler.
16827 case $host_os in
16828 aix*)
16829 lt_prog_compiler_wl_GCJ='-Wl,'
16830 if test "$host_cpu" = ia64; then
16831 # AIX 5 now supports IA64 processor
16832 lt_prog_compiler_static_GCJ='-Bstatic'
16833 else
16834 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16835 fi
16836 ;;
16837
16838 mingw* | pw32* | os2*)
16839 # This hack is so that the source file can tell whether it is being
16840 # built for inclusion in a dll (and should export symbols for example).
16841 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16842 ;;
16843
16844 hpux9* | hpux10* | hpux11*)
16845 lt_prog_compiler_wl_GCJ='-Wl,'
16846 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16847 # not for PA HP-UX.
16848 case "$host_cpu" in
16849 hppa*64*|ia64*)
16850 # +Z the default
16851 ;;
16852 *)
16853 lt_prog_compiler_pic_GCJ='+Z'
16854 ;;
16855 esac
16856 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16857 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16858 ;;
16859
16860 irix5* | irix6* | nonstopux*)
16861 lt_prog_compiler_wl_GCJ='-Wl,'
16862 # PIC (with -KPIC) is the default.
16863 lt_prog_compiler_static_GCJ='-non_shared'
16864 ;;
16865
16866 newsos6)
16867 lt_prog_compiler_pic_GCJ='-KPIC'
16868 lt_prog_compiler_static_GCJ='-Bstatic'
16869 ;;
16870
16871 linux*)
16872 case $CC in
16873 icc* | ecc*)
16874 lt_prog_compiler_wl_GCJ='-Wl,'
16875 lt_prog_compiler_pic_GCJ='-KPIC'
16876 lt_prog_compiler_static_GCJ='-static'
16877 ;;
16878 ccc*)
16879 lt_prog_compiler_wl_GCJ='-Wl,'
16880 # All Alpha code is PIC.
16881 lt_prog_compiler_static_GCJ='-non_shared'
16882 ;;
16883 esac
16884 ;;
16885
16886 osf3* | osf4* | osf5*)
16887 lt_prog_compiler_wl_GCJ='-Wl,'
16888 # All OSF/1 code is PIC.
16889 lt_prog_compiler_static_GCJ='-non_shared'
16890 ;;
16891
16892 sco3.2v5*)
16893 lt_prog_compiler_pic_GCJ='-Kpic'
16894 lt_prog_compiler_static_GCJ='-dn'
16895 ;;
16896
16897 solaris*)
16898 lt_prog_compiler_wl_GCJ='-Wl,'
16899 lt_prog_compiler_pic_GCJ='-KPIC'
16900 lt_prog_compiler_static_GCJ='-Bstatic'
16901 ;;
16902
16903 sunos4*)
16904 lt_prog_compiler_wl_GCJ='-Qoption ld '
16905 lt_prog_compiler_pic_GCJ='-PIC'
16906 lt_prog_compiler_static_GCJ='-Bstatic'
16907 ;;
16908
16909 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16910 lt_prog_compiler_wl_GCJ='-Wl,'
16911 lt_prog_compiler_pic_GCJ='-KPIC'
16912 lt_prog_compiler_static_GCJ='-Bstatic'
16913 ;;
16914
16915 sysv4*MP*)
16916 if test -d /usr/nec ;then
16917 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16918 lt_prog_compiler_static_GCJ='-Bstatic'
16919 fi
16920 ;;
16921
16922 uts4*)
16923 lt_prog_compiler_pic_GCJ='-pic'
16924 lt_prog_compiler_static_GCJ='-Bstatic'
16925 ;;
16926
16927 *)
16928 lt_prog_compiler_can_build_shared_GCJ=no
16929 ;;
16930 esac
16931 fi
16932
16933{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16934echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16935
16936#
16937# Check to make sure the PIC flag actually works.
16938#
16939if test -n "$lt_prog_compiler_pic_GCJ"; then
16940
16941{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16942echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16943if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16944 echo $ECHO_N "(cached) $ECHO_C" >&6
16945else
16946 lt_prog_compiler_pic_works_GCJ=no
16947 ac_outfile=conftest.$ac_objext
16948 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16949 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16950 # Insert the option either (1) after the last *FLAGS variable, or
16951 # (2) before a word containing "conftest.", or (3) at the end.
16952 # Note that $ac_compile itself does not contain backslashes and begins
16953 # with a dollar sign (not a hyphen), so the echo should work correctly.
16954 # The option is referenced via a variable to avoid confusing sed.
16955 lt_compile=`echo "$ac_compile" | $SED \
16956 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16957 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16958 -e 's:$: $lt_compiler_flag:'`
16959 (eval echo "\"\$as_me:16959: $lt_compile\"" >&5)
16960 (eval "$lt_compile" 2>conftest.err)
16961 ac_status=$?
16962 cat conftest.err >&5
16963 echo "$as_me:16963: \$? = $ac_status" >&5
16964 if (exit $ac_status) && test -s "$ac_outfile"; then
16965 # The compiler can only warn and ignore the option if not recognized
16966 # So say no if there are warnings
16967 if test ! -s conftest.err; then
16968 lt_prog_compiler_pic_works_GCJ=yes
16969 fi
16970 fi
16971 $rm conftest*
16972
16973fi
16974{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16975echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16976
16977if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16978 case $lt_prog_compiler_pic_GCJ in
16979 "" | " "*) ;;
16980 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16981 esac
16982else
16983 lt_prog_compiler_pic_GCJ=
16984 lt_prog_compiler_can_build_shared_GCJ=no
16985fi
16986
16987fi
16988case "$host_os" in
16989 # For platforms which do not support PIC, -DPIC is meaningless:
16990 *djgpp*)
16991 lt_prog_compiler_pic_GCJ=
16992 ;;
16993 *)
16994 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16995 ;;
16996esac
16997
16998{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16999echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17000if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17001 echo $ECHO_N "(cached) $ECHO_C" >&6
17002else
17003 lt_cv_prog_compiler_c_o_GCJ=no
17004 $rm -r conftest 2>/dev/null
17005 mkdir conftest
17006 cd conftest
17007 mkdir out
17008 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17009
17010 lt_compiler_flag="-o out/conftest2.$ac_objext"
17011 # Insert the option either (1) after the last *FLAGS variable, or
17012 # (2) before a word containing "conftest.", or (3) at the end.
17013 # Note that $ac_compile itself does not contain backslashes and begins
17014 # with a dollar sign (not a hyphen), so the echo should work correctly.
17015 lt_compile=`echo "$ac_compile" | $SED \
17016 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17017 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17018 -e 's:$: $lt_compiler_flag:'`
17019 (eval echo "\"\$as_me:17019: $lt_compile\"" >&5)
17020 (eval "$lt_compile" 2>out/conftest.err)
17021 ac_status=$?
17022 cat out/conftest.err >&5
17023 echo "$as_me:17023: \$? = $ac_status" >&5
17024 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17025 then
17026 # The compiler can only warn and ignore the option if not recognized
17027 # So say no if there are warnings
17028 if test ! -s out/conftest.err; then
17029 lt_cv_prog_compiler_c_o_GCJ=yes
17030 fi
17031 fi
17032 chmod u+w .
17033 $rm conftest*
17034 # SGI C++ compiler will create directory out/ii_files/ for
17035 # template instantiation
17036 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17037 $rm out/* && rmdir out
17038 cd ..
17039 rmdir conftest
17040 $rm conftest*
17041
17042fi
17043{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17044echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17045
17046
17047hard_links="nottested"
17048if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17049 # do not overwrite the value of need_locks provided by the user
17050 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17051echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17052 hard_links=yes
17053 $rm conftest*
17054 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17055 touch conftest.a
17056 ln conftest.a conftest.b 2>&5 || hard_links=no
17057 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17058 { echo "$as_me:$LINENO: result: $hard_links" >&5
17059echo "${ECHO_T}$hard_links" >&6; }
17060 if test "$hard_links" = no; then
17061 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17062echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17063 need_locks=warn
17064 fi
17065else
17066 need_locks=no
17067fi
17068
17069{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17070echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17071
17072 runpath_var=
17073 allow_undefined_flag_GCJ=
17074 enable_shared_with_static_runtimes_GCJ=no
17075 archive_cmds_GCJ=
17076 archive_expsym_cmds_GCJ=
17077 old_archive_From_new_cmds_GCJ=
17078 old_archive_from_expsyms_cmds_GCJ=
17079 export_dynamic_flag_spec_GCJ=
17080 whole_archive_flag_spec_GCJ=
17081 thread_safe_flag_spec_GCJ=
17082 hardcode_libdir_flag_spec_GCJ=
17083 hardcode_libdir_flag_spec_ld_GCJ=
17084 hardcode_libdir_separator_GCJ=
17085 hardcode_direct_GCJ=no
17086 hardcode_minus_L_GCJ=no
17087 hardcode_shlibpath_var_GCJ=unsupported
17088 link_all_deplibs_GCJ=unknown
17089 hardcode_automatic_GCJ=no
17090 module_cmds_GCJ=
17091 module_expsym_cmds_GCJ=
17092 always_export_symbols_GCJ=no
17093 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17094 # include_expsyms should be a list of space-separated symbols to be *always*
17095 # included in the symbol list
17096 include_expsyms_GCJ=
17097 # exclude_expsyms can be an extended regexp of symbols to exclude
17098 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17099 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17100 # as well as any symbol that contains `d'.
17101 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17102 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17103 # platforms (ab)use it in PIC code, but their linkers get confused if
17104 # the symbol is explicitly referenced. Since portable code cannot
17105 # rely on this symbol name, it's probably fine to never include it in
17106 # preloaded symbol tables.
17107 extract_expsyms_cmds=
17108
17109 case $host_os in
17110 cygwin* | mingw* | pw32*)
17111 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17112 # When not using gcc, we currently assume that we are using
17113 # Microsoft Visual C++.
17114 if test "$GCC" != yes; then
17115 with_gnu_ld=no
17116 fi
17117 ;;
17118 openbsd*)
17119 with_gnu_ld=no
17120 ;;
17121 esac
17122
17123 ld_shlibs_GCJ=yes
17124 if test "$with_gnu_ld" = yes; then
17125 # If archive_cmds runs LD, not CC, wlarc should be empty
17126 wlarc='${wl}'
17127
17128 # See if GNU ld supports shared libraries.
17129 case $host_os in
17130 aix3* | aix4* | aix5*)
17131 # On AIX/PPC, the GNU linker is very broken
17132 if test "$host_cpu" != ia64; then
17133 ld_shlibs_GCJ=no
17134 cat <<EOF 1>&2
17135
17136*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17137*** to be unable to reliably create shared libraries on AIX.
17138*** Therefore, libtool is disabling shared libraries support. If you
17139*** really care for shared libraries, you may want to modify your PATH
17140*** so that a non-GNU linker is found, and then restart.
17141
17142EOF
17143 fi
17144 ;;
17145
17146 amigaos*)
17147 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17148 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17149 hardcode_minus_L_GCJ=yes
17150
17151 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17152 # that the semantics of dynamic libraries on AmigaOS, at least up
17153 # to version 4, is to share data among multiple programs linked
17154 # with the same dynamic library. Since this doesn't match the
17155 # behavior of shared libraries on other platforms, we can't use
17156 # them.
17157 ld_shlibs_GCJ=no
17158 ;;
17159
17160 beos*)
17161 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17162 allow_undefined_flag_GCJ=unsupported
17163 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17164 # support --undefined. This deserves some investigation. FIXME
17165 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17166 else
17167 ld_shlibs_GCJ=no
17168 fi
17169 ;;
17170
17171 cygwin* | mingw* | pw32*)
17172 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17173 # as there is no search path for DLLs.
17174 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17175 allow_undefined_flag_GCJ=unsupported
17176 always_export_symbols_GCJ=no
17177 enable_shared_with_static_runtimes_GCJ=yes
17178 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17179
17180 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17181 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17182 # If the export-symbols file already is a .def file (1st line
17183 # is EXPORTS), use it as is; otherwise, prepend...
17184 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17185 cp $export_symbols $output_objdir/$soname.def;
17186 else
17187 echo EXPORTS > $output_objdir/$soname.def;
17188 cat $export_symbols >> $output_objdir/$soname.def;
17189 fi~
17190 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17191 else
17192 ld_shlibs=no
17193 fi
17194 ;;
17195
17196 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
17197 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17198 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17199 wlarc=
17200 else
17201 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17202 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17203 fi
17204 ;;
17205
17206 solaris* | sysv5*)
17207 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17208 ld_shlibs_GCJ=no
17209 cat <<EOF 1>&2
17210
17211*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17212*** create shared libraries on Solaris systems. Therefore, libtool
17213*** is disabling shared libraries support. We urge you to upgrade GNU
17214*** binutils to release 2.9.1 or newer. Another option is to modify
17215*** your PATH or compiler configuration so that the native linker is
17216*** used, and then restart.
17217
17218EOF
17219 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17220 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17221 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17222 else
17223 ld_shlibs_GCJ=no
17224 fi
17225 ;;
17226
17227 sunos4*)
17228 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17229 wlarc=
17230 hardcode_direct_GCJ=yes
17231 hardcode_shlibpath_var_GCJ=no
17232 ;;
17233
17234 linux*)
17235 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17236 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17237 archive_cmds_GCJ="$tmp_archive_cmds"
17238 supports_anon_versioning=no
17239 case `$LD -v 2>/dev/null` in
17240 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17241 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17242 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17243 *\ 2.11.*) ;; # other 2.11 versions
17244 *) supports_anon_versioning=yes ;;
17245 esac
17246 if test $supports_anon_versioning = yes; then
17247 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17248cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17249$echo "local: *; };" >> $output_objdir/$libname.ver~
17250 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17251 else
17252 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
17253 fi
17254 link_all_deplibs_GCJ=no
17255 else
17256 ld_shlibs_GCJ=no
17257 fi
17258 ;;
17259
17260 *)
17261 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17262 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17263 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17264 else
17265 ld_shlibs_GCJ=no
17266 fi
17267 ;;
17268 esac
17269
17270 if test "$ld_shlibs_GCJ" = yes; then
17271 runpath_var=LD_RUN_PATH
17272 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17273 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17274 # ancient GNU ld didn't support --whole-archive et. al.
17275 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17276 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17277 else
17278 whole_archive_flag_spec_GCJ=
17279 fi
17280 fi
17281 else
17282 # PORTME fill in a description of your system's linker (not GNU ld)
17283 case $host_os in
17284 aix3*)
17285 allow_undefined_flag_GCJ=unsupported
17286 always_export_symbols_GCJ=yes
17287 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17288 # Note: this linker hardcodes the directories in LIBPATH if there
17289 # are no directories specified by -L.
17290 hardcode_minus_L_GCJ=yes
17291 if test "$GCC" = yes && test -z "$link_static_flag"; then
17292 # Neither direct hardcoding nor static linking is supported with a
17293 # broken collect2.
17294 hardcode_direct_GCJ=unsupported
17295 fi
17296 ;;
17297
17298 aix4* | aix5*)
17299 if test "$host_cpu" = ia64; then
17300 # On IA64, the linker does run time linking by default, so we don't
17301 # have to do anything special.
17302 aix_use_runtimelinking=no
17303 exp_sym_flag='-Bexport'
17304 no_entry_flag=""
17305 else
17306 # If we're using GNU nm, then we don't want the "-C" option.
17307 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17308 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17309 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17310 else
17311 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17312 fi
17313 aix_use_runtimelinking=no
17314
17315 # Test if we are trying to use run time linking or normal
17316 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17317 # need to do runtime linking.
17318 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17319 for ld_flag in $LDFLAGS; do
17320 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17321 aix_use_runtimelinking=yes
17322 break
17323 fi
17324 done
17325 esac
17326
17327 exp_sym_flag='-bexport'
17328 no_entry_flag='-bnoentry'
17329 fi
17330
17331 # When large executables or shared objects are built, AIX ld can
17332 # have problems creating the table of contents. If linking a library
17333 # or program results in "error TOC overflow" add -mminimal-toc to
17334 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17335 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17336
17337 archive_cmds_GCJ=''
17338 hardcode_direct_GCJ=yes
17339 hardcode_libdir_separator_GCJ=':'
17340 link_all_deplibs_GCJ=yes
17341
17342 if test "$GCC" = yes; then
17343 case $host_os in aix4.012|aix4.012.*)
17344 # We only want to do this on AIX 4.2 and lower, the check
17345 # below for broken collect2 doesn't work under 4.3+
17346 collect2name=`${CC} -print-prog-name=collect2`
17347 if test -f "$collect2name" && \
17348 strings "$collect2name" | grep resolve_lib_name >/dev/null
17349 then
17350 # We have reworked collect2
17351 hardcode_direct_GCJ=yes
17352 else
17353 # We have old collect2
17354 hardcode_direct_GCJ=unsupported
17355 # It fails to find uninstalled libraries when the uninstalled
17356 # path is not listed in the libpath. Setting hardcode_minus_L
17357 # to unsupported forces relinking
17358 hardcode_minus_L_GCJ=yes
17359 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17360 hardcode_libdir_separator_GCJ=
17361 fi
17362 esac
17363 shared_flag='-shared'
17364 else
17365 # not using gcc
17366 if test "$host_cpu" = ia64; then
17367 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17368 # chokes on -Wl,-G. The following line is correct:
17369 shared_flag='-G'
17370 else
17371 if test "$aix_use_runtimelinking" = yes; then
17372 shared_flag='${wl}-G'
17373 else
17374 shared_flag='${wl}-bM:SRE'
17375 fi
17376 fi
17377 fi
17378
17379 # It seems that -bexpall does not export symbols beginning with
17380 # underscore (_), so it is better to generate a list of symbols to export.
17381 always_export_symbols_GCJ=yes
17382 if test "$aix_use_runtimelinking" = yes; then
17383 # Warning - without using the other runtime loading flags (-brtl),
17384 # -berok will link without error, but may produce a broken library.
17385 allow_undefined_flag_GCJ='-berok'
17386 # Determine the default libpath from the value encoded in an empty executable.
17387 cat >conftest.$ac_ext <<_ACEOF
17388/* confdefs.h. */
17389_ACEOF
17390cat confdefs.h >>conftest.$ac_ext
17391cat >>conftest.$ac_ext <<_ACEOF
17392/* end confdefs.h. */
17393
17394int
17395main ()
17396{
17397
17398 ;
17399 return 0;
17400}
17401_ACEOF
17402rm -f conftest.$ac_objext conftest$ac_exeext
17403if { (ac_try="$ac_link"
17404case "(($ac_try" in
17405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17406 *) ac_try_echo=$ac_try;;
17407esac
17408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17409 (eval "$ac_link") 2>conftest.er1
17410 ac_status=$?
17411 grep -v '^ *+' conftest.er1 >conftest.err
17412 rm -f conftest.er1
17413 cat conftest.err >&5
17414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415 (exit $ac_status); } && {
17416 test -z "$ac_c_werror_flag" ||
17417 test ! -s conftest.err
17418 } && test -s conftest$ac_exeext &&
17419 $as_test_x conftest$ac_exeext; then
17420
17421aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17422}'`
17423# Check for a 64-bit object if we didn't find anything.
17424if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17425}'`; fi
17426else
17427 echo "$as_me: failed program was:" >&5
17428sed 's/^/| /' conftest.$ac_ext >&5
17429
17430
17431fi
17432
17433rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17434 conftest$ac_exeext conftest.$ac_ext
17435if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17436
17437 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17438 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17439 else
17440 if test "$host_cpu" = ia64; then
17441 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17442 allow_undefined_flag_GCJ="-z nodefs"
17443 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
17444 else
17445 # Determine the default libpath from the value encoded in an empty executable.
17446 cat >conftest.$ac_ext <<_ACEOF
17447/* confdefs.h. */
17448_ACEOF
17449cat confdefs.h >>conftest.$ac_ext
17450cat >>conftest.$ac_ext <<_ACEOF
17451/* end confdefs.h. */
17452
17453int
17454main ()
17455{
17456
17457 ;
17458 return 0;
17459}
17460_ACEOF
17461rm -f conftest.$ac_objext conftest$ac_exeext
17462if { (ac_try="$ac_link"
17463case "(($ac_try" in
17464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17465 *) ac_try_echo=$ac_try;;
17466esac
17467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17468 (eval "$ac_link") 2>conftest.er1
17469 ac_status=$?
17470 grep -v '^ *+' conftest.er1 >conftest.err
17471 rm -f conftest.er1
17472 cat conftest.err >&5
17473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474 (exit $ac_status); } && {
17475 test -z "$ac_c_werror_flag" ||
17476 test ! -s conftest.err
17477 } && test -s conftest$ac_exeext &&
17478 $as_test_x conftest$ac_exeext; then
17479
17480aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17481}'`
17482# Check for a 64-bit object if we didn't find anything.
17483if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17484}'`; fi
17485else
17486 echo "$as_me: failed program was:" >&5
17487sed 's/^/| /' conftest.$ac_ext >&5
17488
17489
17490fi
17491
17492rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17493 conftest$ac_exeext conftest.$ac_ext
17494if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17495
17496 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17497 # Warning - without using the other run time loading flags,
17498 # -berok will link without error, but may produce a broken library.
17499 no_undefined_flag_GCJ=' ${wl}-bernotok'
17500 allow_undefined_flag_GCJ=' ${wl}-berok'
17501 # -bexpall does not export symbols beginning with underscore (_)
17502 always_export_symbols_GCJ=yes
17503 # Exported symbols can be pulled into shared objects from archives
17504 whole_archive_flag_spec_GCJ=' '
17505 archive_cmds_need_lc_GCJ=yes
17506 # This is similar to how AIX traditionally builds it's shared libraries.
17507 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17508 fi
17509 fi
17510 ;;
17511
17512 amigaos*)
17513 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17514 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17515 hardcode_minus_L_GCJ=yes
17516 # see comment about different semantics on the GNU ld section
17517 ld_shlibs_GCJ=no
17518 ;;
17519
17520 bsdi4*)
17521 export_dynamic_flag_spec_GCJ=-rdynamic
17522 ;;
17523
17524 cygwin* | mingw* | pw32*)
17525 # When not using gcc, we currently assume that we are using
17526 # Microsoft Visual C++.
17527 # hardcode_libdir_flag_spec is actually meaningless, as there is
17528 # no search path for DLLs.
17529 hardcode_libdir_flag_spec_GCJ=' '
17530 allow_undefined_flag_GCJ=unsupported
17531 # Tell ltmain to make .lib files, not .a files.
17532 libext=lib
17533 # Tell ltmain to make .dll files, not .so files.
17534 shrext_cmds=".dll"
17535 # FIXME: Setting linknames here is a bad hack.
17536 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17537 # The linker will automatically build a .lib file if we build a DLL.
17538 old_archive_From_new_cmds_GCJ='true'
17539 # FIXME: Should let the user specify the lib program.
17540 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17541 fix_srcfile_path='`cygpath -w "$srcfile"`'
17542 enable_shared_with_static_runtimes_GCJ=yes
17543 ;;
17544
17545 darwin* | rhapsody*)
17546 if test "$GXX" = yes ; then
17547 archive_cmds_need_lc_GCJ=no
17548 case "$host_os" in
17549 rhapsody* | darwin1.[012])
17550 allow_undefined_flag_GCJ='-undefined suppress'
17551 ;;
17552 *) # Darwin 1.3 on
17553 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17554 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
17555 else
17556 case ${MACOSX_DEPLOYMENT_TARGET} in
17557 10.[012])
17558 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
17559 ;;
17560 10.*)
17561 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
17562 ;;
17563 esac
17564 fi
17565 ;;
17566 esac
17567 lt_int_apple_cc_single_mod=no
17568 output_verbose_link_cmd='echo'
17569 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
17570 lt_int_apple_cc_single_mod=yes
17571 fi
17572 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17573 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17574 else
17575 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17576 fi
17577 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17578 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17579 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17580 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17581 else
17582 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17583 fi
17584 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17585 hardcode_direct_GCJ=no
17586 hardcode_automatic_GCJ=yes
17587 hardcode_shlibpath_var_GCJ=unsupported
17588 whole_archive_flag_spec_GCJ='-all_load $convenience'
17589 link_all_deplibs_GCJ=yes
17590 else
17591 ld_shlibs_GCJ=no
17592 fi
17593 ;;
17594
17595 dgux*)
17596 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17597 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17598 hardcode_shlibpath_var_GCJ=no
17599 ;;
17600
17601 freebsd1*)
17602 ld_shlibs_GCJ=no
17603 ;;
17604
17605 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17606 # support. Future versions do this automatically, but an explicit c++rt0.o
17607 # does not break anything, and helps significantly (at the cost of a little
17608 # extra space).
17609 freebsd2.2*)
17610 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17611 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17612 hardcode_direct_GCJ=yes
17613 hardcode_shlibpath_var_GCJ=no
17614 ;;
17615
17616 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17617 freebsd2*)
17618 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17619 hardcode_direct_GCJ=yes
17620 hardcode_minus_L_GCJ=yes
17621 hardcode_shlibpath_var_GCJ=no
17622 ;;
17623
17624 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17625 freebsd* | kfreebsd*-gnu)
17626 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17627 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17628 hardcode_direct_GCJ=yes
17629 hardcode_shlibpath_var_GCJ=no
17630 ;;
17631
17632 hpux9*)
17633 if test "$GCC" = yes; then
17634 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17635 else
17636 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17637 fi
17638 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17639 hardcode_libdir_separator_GCJ=:
17640 hardcode_direct_GCJ=yes
17641
17642 # hardcode_minus_L: Not really in the search PATH,
17643 # but as the default location of the library.
17644 hardcode_minus_L_GCJ=yes
17645 export_dynamic_flag_spec_GCJ='${wl}-E'
17646 ;;
17647
17648 hpux10* | hpux11*)
17649 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17650 case "$host_cpu" in
17651 hppa*64*|ia64*)
17652 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17653 ;;
17654 *)
17655 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17656 ;;
17657 esac
17658 else
17659 case "$host_cpu" in
17660 hppa*64*|ia64*)
17661 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17662 ;;
17663 *)
17664 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17665 ;;
17666 esac
17667 fi
17668 if test "$with_gnu_ld" = no; then
17669 case "$host_cpu" in
17670 hppa*64*)
17671 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17672 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17673 hardcode_libdir_separator_GCJ=:
17674 hardcode_direct_GCJ=no
17675 hardcode_shlibpath_var_GCJ=no
17676 ;;
17677 ia64*)
17678 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17679 hardcode_direct_GCJ=no
17680 hardcode_shlibpath_var_GCJ=no
17681
17682 # hardcode_minus_L: Not really in the search PATH,
17683 # but as the default location of the library.
17684 hardcode_minus_L_GCJ=yes
17685 ;;
17686 *)
17687 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17688 hardcode_libdir_separator_GCJ=:
17689 hardcode_direct_GCJ=yes
17690 export_dynamic_flag_spec_GCJ='${wl}-E'
17691
17692 # hardcode_minus_L: Not really in the search PATH,
17693 # but as the default location of the library.
17694 hardcode_minus_L_GCJ=yes
17695 ;;
17696 esac
17697 fi
17698 ;;
17699
17700 irix5* | irix6* | nonstopux*)
17701 if test "$GCC" = yes; then
17702 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17703 else
17704 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17705 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17706 fi
17707 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17708 hardcode_libdir_separator_GCJ=:
17709 link_all_deplibs_GCJ=yes
17710 ;;
17711
17712 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
17713 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17714 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17715 else
17716 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17717 fi
17718 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17719 hardcode_direct_GCJ=yes
17720 hardcode_shlibpath_var_GCJ=no
17721 ;;
17722
17723 newsos6)
17724 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17725 hardcode_direct_GCJ=yes
17726 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17727 hardcode_libdir_separator_GCJ=:
17728 hardcode_shlibpath_var_GCJ=no
17729 ;;
17730
17731 openbsd*)
17732 hardcode_direct_GCJ=yes
17733 hardcode_shlibpath_var_GCJ=no
17734 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17735 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17736 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17737 export_dynamic_flag_spec_GCJ='${wl}-E'
17738 else
17739 case $host_os in
17740 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17741 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17742 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17743 ;;
17744 *)
17745 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17746 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17747 ;;
17748 esac
17749 fi
17750 ;;
17751
17752 os2*)
17753 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17754 hardcode_minus_L_GCJ=yes
17755 allow_undefined_flag_GCJ=unsupported
17756 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
17757 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17758 ;;
17759
17760 osf3*)
17761 if test "$GCC" = yes; then
17762 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17763 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17764 else
17765 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17766 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17767 fi
17768 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17769 hardcode_libdir_separator_GCJ=:
17770 ;;
17771
17772 osf4* | osf5*) # as osf3* with the addition of -msym flag
17773 if test "$GCC" = yes; then
17774 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17775 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17776 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17777 else
17778 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17779 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17780 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17781 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
17782
17783 # Both c and cxx compiler support -rpath directly
17784 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17785 fi
17786 hardcode_libdir_separator_GCJ=:
17787 ;;
17788
17789 sco3.2v5*)
17790 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17791 hardcode_shlibpath_var_GCJ=no
17792 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17793 runpath_var=LD_RUN_PATH
17794 hardcode_runpath_var=yes
17795 ;;
17796
17797 solaris*)
17798 no_undefined_flag_GCJ=' -z text'
17799 if test "$GCC" = yes; then
17800 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17801 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17802 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17803 else
17804 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17805 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17806 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17807 fi
17808 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17809 hardcode_shlibpath_var_GCJ=no
17810 case $host_os in
17811 solaris2.[0-5] | solaris2.[0-5].*) ;;
17812 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
17813 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17814 esac
17815 link_all_deplibs_GCJ=yes
17816 ;;
17817
17818 sunos4*)
17819 if test "x$host_vendor" = xsequent; then
17820 # Use $CC to link under sequent, because it throws in some extra .o
17821 # files that make .init and .fini sections work.
17822 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17823 else
17824 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17825 fi
17826 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17827 hardcode_direct_GCJ=yes
17828 hardcode_minus_L_GCJ=yes
17829 hardcode_shlibpath_var_GCJ=no
17830 ;;
17831
17832 sysv4)
17833 case $host_vendor in
17834 sni)
17835 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17836 hardcode_direct_GCJ=yes # is this really true???
17837 ;;
17838 siemens)
17839 ## LD is ld it makes a PLAMLIB
17840 ## CC just makes a GrossModule.
17841 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17842 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17843 hardcode_direct_GCJ=no
17844 ;;
17845 motorola)
17846 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17847 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17848 ;;
17849 esac
17850 runpath_var='LD_RUN_PATH'
17851 hardcode_shlibpath_var_GCJ=no
17852 ;;
17853
17854 sysv4.3*)
17855 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17856 hardcode_shlibpath_var_GCJ=no
17857 export_dynamic_flag_spec_GCJ='-Bexport'
17858 ;;
17859
17860 sysv4*MP*)
17861 if test -d /usr/nec; then
17862 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17863 hardcode_shlibpath_var_GCJ=no
17864 runpath_var=LD_RUN_PATH
17865 hardcode_runpath_var=yes
17866 ld_shlibs_GCJ=yes
17867 fi
17868 ;;
17869
17870 sysv4.2uw2*)
17871 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17872 hardcode_direct_GCJ=yes
17873 hardcode_minus_L_GCJ=no
17874 hardcode_shlibpath_var_GCJ=no
17875 hardcode_runpath_var=yes
17876 runpath_var=LD_RUN_PATH
17877 ;;
17878
17879 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17880 no_undefined_flag_GCJ='${wl}-z ${wl}text'
17881 if test "$GCC" = yes; then
17882 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17883 else
17884 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17885 fi
17886 runpath_var='LD_RUN_PATH'
17887 hardcode_shlibpath_var_GCJ=no
17888 ;;
17889
17890 sysv5*)
17891 no_undefined_flag_GCJ=' -z text'
17892 # $CC -shared without GNU ld will not create a library from C++
17893 # object files and a static libstdc++, better avoid it by now
17894 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17895 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17896 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17897 hardcode_libdir_flag_spec_GCJ=
17898 hardcode_shlibpath_var_GCJ=no
17899 runpath_var='LD_RUN_PATH'
17900 ;;
17901
17902 uts4*)
17903 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17904 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17905 hardcode_shlibpath_var_GCJ=no
17906 ;;
17907
17908 *)
17909 ld_shlibs_GCJ=no
17910 ;;
17911 esac
17912 fi
17913
17914{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17915echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17916test "$ld_shlibs_GCJ" = no && can_build_shared=no
17917
17918variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17919if test "$GCC" = yes; then
17920 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17921fi
17922
17923#
17924# Do we need to explicitly link libc?
17925#
17926case "x$archive_cmds_need_lc_GCJ" in
17927x|xyes)
17928 # Assume -lc should be added
17929 archive_cmds_need_lc_GCJ=yes
17930
17931 if test "$enable_shared" = yes && test "$GCC" = yes; then
17932 case $archive_cmds_GCJ in
17933 *'~'*)
17934 # FIXME: we may have to deal with multi-command sequences.
17935 ;;
17936 '$CC '*)
17937 # Test whether the compiler implicitly links with -lc since on some
17938 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17939 # to ld, don't add -lc before -lgcc.
17940 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17941echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17942 $rm conftest*
17943 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17944
17945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17946 (eval $ac_compile) 2>&5
17947 ac_status=$?
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); } 2>conftest.err; then
17950 soname=conftest
17951 lib=conftest
17952 libobjs=conftest.$ac_objext
17953 deplibs=
17954 wl=$lt_prog_compiler_wl_GCJ
17955 compiler_flags=-v
17956 linker_flags=-v
17957 verstring=
17958 output_objdir=.
17959 libname=conftest
17960 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17961 allow_undefined_flag_GCJ=
17962 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17963 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17964 ac_status=$?
17965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966 (exit $ac_status); }
17967 then
17968 archive_cmds_need_lc_GCJ=no
17969 else
17970 archive_cmds_need_lc_GCJ=yes
17971 fi
17972 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17973 else
17974 cat conftest.err 1>&5
17975 fi
17976 $rm conftest*
17977 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17978echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17979 ;;
17980 esac
17981 fi
17982 ;;
17983esac
17984
17985{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17986echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17987library_names_spec=
17988libname_spec='lib$name'
17989soname_spec=
17990shrext_cmds=".so"
17991postinstall_cmds=
17992postuninstall_cmds=
17993finish_cmds=
17994finish_eval=
17995shlibpath_var=
17996shlibpath_overrides_runpath=unknown
17997version_type=none
17998dynamic_linker="$host_os ld.so"
17999sys_lib_dlsearch_path_spec="/lib /usr/lib"
18000if test "$GCC" = yes; then
18001 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18002 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18003 # if the path contains ";" then we assume it to be the separator
18004 # otherwise default to the standard path separator (i.e. ":") - it is
18005 # assumed that no part of a normal pathname contains ";" but that should
18006 # okay in the real world where ";" in dirpaths is itself problematic.
18007 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18008 else
18009 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18010 fi
18011else
18012 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18013fi
18014need_lib_prefix=unknown
18015hardcode_into_libs=no
18016
18017# when you set need_version to no, make sure it does not cause -set_version
18018# flags to be left without arguments
18019need_version=unknown
18020
18021case $host_os in
18022aix3*)
18023 version_type=linux
18024 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18025 shlibpath_var=LIBPATH
18026
18027 # AIX 3 has no versioning support, so we append a major version to the name.
18028 soname_spec='${libname}${release}${shared_ext}$major'
18029 ;;
18030
18031aix4* | aix5*)
18032 version_type=linux
18033 need_lib_prefix=no
18034 need_version=no
18035 hardcode_into_libs=yes
18036 if test "$host_cpu" = ia64; then
18037 # AIX 5 supports IA64
18038 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18039 shlibpath_var=LD_LIBRARY_PATH
18040 else
18041 # With GCC up to 2.95.x, collect2 would create an import file
18042 # for dependence libraries. The import file would start with
18043 # the line `#! .'. This would cause the generated library to
18044 # depend on `.', always an invalid library. This was fixed in
18045 # development snapshots of GCC prior to 3.0.
18046 case $host_os in
18047 aix4 | aix4.[01] | aix4.[01].*)
18048 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18049 echo ' yes '
18050 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18051 :
18052 else
18053 can_build_shared=no
18054 fi
18055 ;;
18056 esac
18057 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18058 # soname into executable. Probably we can add versioning support to
18059 # collect2, so additional links can be useful in future.
18060 if test "$aix_use_runtimelinking" = yes; then
18061 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18062 # instead of lib<name>.a to let people know that these are not
18063 # typical AIX shared libraries.
18064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18065 else
18066 # We preserve .a as extension for shared libraries through AIX4.2
18067 # and later when we are not doing run time linking.
18068 library_names_spec='${libname}${release}.a $libname.a'
18069 soname_spec='${libname}${release}${shared_ext}$major'
18070 fi
18071 shlibpath_var=LIBPATH
18072 fi
18073 ;;
18074
18075amigaos*)
18076 library_names_spec='$libname.ixlibrary $libname.a'
18077 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18078 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
18079 ;;
18080
18081beos*)
18082 library_names_spec='${libname}${shared_ext}'
18083 dynamic_linker="$host_os ld.so"
18084 shlibpath_var=LIBRARY_PATH
18085 ;;
18086
18087bsdi4*)
18088 version_type=linux
18089 need_version=no
18090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18091 soname_spec='${libname}${release}${shared_ext}$major'
18092 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18093 shlibpath_var=LD_LIBRARY_PATH
18094 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18095 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18096 # the default ld.so.conf also contains /usr/contrib/lib and
18097 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18098 # libtool to hard-code these into programs
18099 ;;
18100
18101cygwin* | mingw* | pw32*)
18102 version_type=windows
18103 shrext_cmds=".dll"
18104 need_version=no
18105 need_lib_prefix=no
18106
18107 case $GCC,$host_os in
18108 yes,cygwin* | yes,mingw* | yes,pw32*)
18109 library_names_spec='$libname.dll.a'
18110 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18111 postinstall_cmds='base_file=`basename \${file}`~
18112 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18113 dldir=$destdir/`dirname \$dlpath`~
18114 test -d \$dldir || mkdir -p \$dldir~
18115 $install_prog $dir/$dlname \$dldir/$dlname'
18116 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18117 dlpath=$dir/\$dldll~
18118 $rm \$dlpath'
18119 shlibpath_overrides_runpath=yes
18120
18121 case $host_os in
18122 cygwin*)
18123 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18124 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18125 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18126 ;;
18127 mingw*)
18128 # MinGW DLLs use traditional 'lib' prefix
18129 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18130 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18131 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18132 # It is most probably a Windows format PATH printed by
18133 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18134 # path with ; separators, and with drive letters. We can handle the
18135 # drive letters (cygwin fileutils understands them), so leave them,
18136 # especially as we might pass files found there to a mingw objdump,
18137 # which wouldn't understand a cygwinified path. Ahh.
18138 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18139 else
18140 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18141 fi
18142 ;;
18143 pw32*)
18144 # pw32 DLLs use 'pw' prefix rather than 'lib'
18145 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
18146 ;;
18147 esac
18148 ;;
18149
18150 *)
18151 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18152 ;;
18153 esac
18154 dynamic_linker='Win32 ld.exe'
18155 # FIXME: first we should search . and the directory the executable is in
18156 shlibpath_var=PATH
18157 ;;
18158
18159darwin* | rhapsody*)
18160 dynamic_linker="$host_os dyld"
18161 version_type=darwin
18162 need_lib_prefix=no
18163 need_version=no
18164 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18165 soname_spec='${libname}${release}${major}$shared_ext'
18166 shlibpath_overrides_runpath=yes
18167 shlibpath_var=DYLD_LIBRARY_PATH
18168 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
18169 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18170 if test "$GCC" = yes; then
18171 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18172 else
18173 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18174 fi
18175 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18176 ;;
18177
18178dgux*)
18179 version_type=linux
18180 need_lib_prefix=no
18181 need_version=no
18182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18183 soname_spec='${libname}${release}${shared_ext}$major'
18184 shlibpath_var=LD_LIBRARY_PATH
18185 ;;
18186
18187freebsd1*)
18188 dynamic_linker=no
18189 ;;
18190
18191kfreebsd*-gnu)
18192 version_type=linux
18193 need_lib_prefix=no
18194 need_version=no
18195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18196 soname_spec='${libname}${release}${shared_ext}$major'
18197 shlibpath_var=LD_LIBRARY_PATH
18198 shlibpath_overrides_runpath=no
18199 hardcode_into_libs=yes
18200 dynamic_linker='GNU ld.so'
18201 ;;
18202
18203freebsd*)
18204 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18205 version_type=freebsd-$objformat
18206 case $version_type in
18207 freebsd-elf*)
18208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18209 need_version=no
18210 need_lib_prefix=no
18211 ;;
18212 freebsd-*)
18213 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18214 need_version=yes
18215 ;;
18216 esac
18217 shlibpath_var=LD_LIBRARY_PATH
18218 case $host_os in
18219 freebsd2*)
18220 shlibpath_overrides_runpath=yes
18221 ;;
18222 freebsd3.01* | freebsdelf3.01*)
18223 shlibpath_overrides_runpath=yes
18224 hardcode_into_libs=yes
18225 ;;
18226 *) # from 3.2 on
18227 shlibpath_overrides_runpath=no
18228 hardcode_into_libs=yes
18229 ;;
18230 esac
18231 ;;
18232
18233gnu*)
18234 version_type=linux
18235 need_lib_prefix=no
18236 need_version=no
18237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18238 soname_spec='${libname}${release}${shared_ext}$major'
18239 shlibpath_var=LD_LIBRARY_PATH
18240 hardcode_into_libs=yes
18241 ;;
18242
18243hpux9* | hpux10* | hpux11*)
18244 # Give a soname corresponding to the major version so that dld.sl refuses to
18245 # link against other versions.
18246 version_type=sunos
18247 need_lib_prefix=no
18248 need_version=no
18249 case "$host_cpu" in
18250 ia64*)
18251 shrext_cmds='.so'
18252 hardcode_into_libs=yes
18253 dynamic_linker="$host_os dld.so"
18254 shlibpath_var=LD_LIBRARY_PATH
18255 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18257 soname_spec='${libname}${release}${shared_ext}$major'
18258 if test "X$HPUX_IA64_MODE" = X32; then
18259 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18260 else
18261 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18262 fi
18263 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18264 ;;
18265 hppa*64*)
18266 shrext_cmds='.sl'
18267 hardcode_into_libs=yes
18268 dynamic_linker="$host_os dld.sl"
18269 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18270 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18272 soname_spec='${libname}${release}${shared_ext}$major'
18273 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18274 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18275 ;;
18276 *)
18277 shrext_cmds='.sl'
18278 dynamic_linker="$host_os dld.sl"
18279 shlibpath_var=SHLIB_PATH
18280 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18282 soname_spec='${libname}${release}${shared_ext}$major'
18283 ;;
18284 esac
18285 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18286 postinstall_cmds='chmod 555 $lib'
18287 ;;
18288
18289irix5* | irix6* | nonstopux*)
18290 case $host_os in
18291 nonstopux*) version_type=nonstopux ;;
18292 *)
18293 if test "$lt_cv_prog_gnu_ld" = yes; then
18294 version_type=linux
18295 else
18296 version_type=irix
18297 fi ;;
18298 esac
18299 need_lib_prefix=no
18300 need_version=no
18301 soname_spec='${libname}${release}${shared_ext}$major'
18302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18303 case $host_os in
18304 irix5* | nonstopux*)
18305 libsuff= shlibsuff=
18306 ;;
18307 *)
18308 case $LD in # libtool.m4 will add one of these switches to LD
18309 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18310 libsuff= shlibsuff= libmagic=32-bit;;
18311 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18312 libsuff=32 shlibsuff=N32 libmagic=N32;;
18313 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18314 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18315 *) libsuff= shlibsuff= libmagic=never-match;;
18316 esac
18317 ;;
18318 esac
18319 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18320 shlibpath_overrides_runpath=no
18321 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18322 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18323 hardcode_into_libs=yes
18324 ;;
18325
18326# No shared lib support for Linux oldld, aout, or coff.
18327linux*oldld* | linux*aout* | linux*coff*)
18328 dynamic_linker=no
18329 ;;
18330
18331# This must be Linux ELF.
18332linux*)
18333 version_type=linux
18334 need_lib_prefix=no
18335 need_version=no
18336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18337 soname_spec='${libname}${release}${shared_ext}$major'
18338 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18339 shlibpath_var=LD_LIBRARY_PATH
18340 shlibpath_overrides_runpath=no
18341 # This implies no fast_install, which is unacceptable.
18342 # Some rework will be needed to allow for fast_install
18343 # before this can be enabled.
18344 hardcode_into_libs=yes
18345
18346 # Append ld.so.conf contents to the search path
18347 if test -f /etc/ld.so.conf; then
18348 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
18349 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18350 fi
18351
18352 # We used to test for /lib/ld.so.1 and disable shared libraries on
18353 # powerpc, because MkLinux only supported shared libraries with the
18354 # GNU dynamic linker. Since this was broken with cross compilers,
18355 # most powerpc-linux boxes support dynamic linking these days and
18356 # people can always --disable-shared, the test was removed, and we
18357 # assume the GNU/Linux dynamic linker is in use.
18358 dynamic_linker='GNU/Linux ld.so'
18359 ;;
18360
18361netbsdelf*-gnu)
18362 version_type=linux
18363 need_lib_prefix=no
18364 need_version=no
18365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18366 soname_spec='${libname}${release}${shared_ext}$major'
18367 shlibpath_var=LD_LIBRARY_PATH
18368 shlibpath_overrides_runpath=no
18369 hardcode_into_libs=yes
18370 dynamic_linker='NetBSD ld.elf_so'
18371 ;;
18372
18373knetbsd*-gnu)
18374 version_type=linux
18375 need_lib_prefix=no
18376 need_version=no
18377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18378 soname_spec='${libname}${release}${shared_ext}$major'
18379 shlibpath_var=LD_LIBRARY_PATH
18380 shlibpath_overrides_runpath=no
18381 hardcode_into_libs=yes
18382 dynamic_linker='GNU ld.so'
18383 ;;
18384
18385netbsd*)
18386 version_type=sunos
18387 need_lib_prefix=no
18388 need_version=no
18389 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18391 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18392 dynamic_linker='NetBSD (a.out) ld.so'
18393 else
18394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18395 soname_spec='${libname}${release}${shared_ext}$major'
18396 dynamic_linker='NetBSD ld.elf_so'
18397 fi
18398 shlibpath_var=LD_LIBRARY_PATH
18399 shlibpath_overrides_runpath=yes
18400 hardcode_into_libs=yes
18401 ;;
18402
18403newsos6)
18404 version_type=linux
18405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18406 shlibpath_var=LD_LIBRARY_PATH
18407 shlibpath_overrides_runpath=yes
18408 ;;
18409
18410nto-qnx*)
18411 version_type=linux
18412 need_lib_prefix=no
18413 need_version=no
18414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18415 soname_spec='${libname}${release}${shared_ext}$major'
18416 shlibpath_var=LD_LIBRARY_PATH
18417 shlibpath_overrides_runpath=yes
18418 ;;
18419
18420openbsd*)
18421 version_type=sunos
18422 need_lib_prefix=no
18423 need_version=yes
18424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18425 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18426 shlibpath_var=LD_LIBRARY_PATH
18427 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18428 case $host_os in
18429 openbsd2.[89] | openbsd2.[89].*)
18430 shlibpath_overrides_runpath=no
18431 ;;
18432 *)
18433 shlibpath_overrides_runpath=yes
18434 ;;
18435 esac
18436 else
18437 shlibpath_overrides_runpath=yes
18438 fi
18439 ;;
18440
18441os2*)
18442 libname_spec='$name'
18443 shrext_cmds=".dll"
18444 need_lib_prefix=no
18445 library_names_spec='$libname${shared_ext} $libname.a'
18446 dynamic_linker='OS/2 ld.exe'
18447 shlibpath_var=LIBPATH
18448 ;;
18449
18450osf3* | osf4* | osf5*)
18451 version_type=osf
18452 need_lib_prefix=no
18453 need_version=no
18454 soname_spec='${libname}${release}${shared_ext}$major'
18455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18456 shlibpath_var=LD_LIBRARY_PATH
18457 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18458 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18459 ;;
18460
18461sco3.2v5*)
18462 version_type=osf
18463 soname_spec='${libname}${release}${shared_ext}$major'
18464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18465 shlibpath_var=LD_LIBRARY_PATH
18466 ;;
18467
18468solaris*)
18469 version_type=linux
18470 need_lib_prefix=no
18471 need_version=no
18472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18473 soname_spec='${libname}${release}${shared_ext}$major'
18474 shlibpath_var=LD_LIBRARY_PATH
18475 shlibpath_overrides_runpath=yes
18476 hardcode_into_libs=yes
18477 # ldd complains unless libraries are executable
18478 postinstall_cmds='chmod +x $lib'
18479 ;;
18480
18481sunos4*)
18482 version_type=sunos
18483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18484 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18485 shlibpath_var=LD_LIBRARY_PATH
18486 shlibpath_overrides_runpath=yes
18487 if test "$with_gnu_ld" = yes; then
18488 need_lib_prefix=no
18489 fi
18490 need_version=yes
18491 ;;
18492
18493sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18494 version_type=linux
18495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18496 soname_spec='${libname}${release}${shared_ext}$major'
18497 shlibpath_var=LD_LIBRARY_PATH
18498 case $host_vendor in
18499 sni)
18500 shlibpath_overrides_runpath=no
18501 need_lib_prefix=no
18502 export_dynamic_flag_spec='${wl}-Blargedynsym'
18503 runpath_var=LD_RUN_PATH
18504 ;;
18505 siemens)
18506 need_lib_prefix=no
18507 ;;
18508 motorola)
18509 need_lib_prefix=no
18510 need_version=no
18511 shlibpath_overrides_runpath=no
18512 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18513 ;;
18514 esac
18515 ;;
18516
18517sysv4*MP*)
18518 if test -d /usr/nec ;then
18519 version_type=linux
18520 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18521 soname_spec='$libname${shared_ext}.$major'
18522 shlibpath_var=LD_LIBRARY_PATH
18523 fi
18524 ;;
18525
18526uts4*)
18527 version_type=linux
18528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18529 soname_spec='${libname}${release}${shared_ext}$major'
18530 shlibpath_var=LD_LIBRARY_PATH
18531 ;;
18532
18533*)
18534 dynamic_linker=no
18535 ;;
18536esac
18537{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18538echo "${ECHO_T}$dynamic_linker" >&6; }
18539test "$dynamic_linker" = no && can_build_shared=no
18540
18541{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18542echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18543hardcode_action_GCJ=
18544if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18545 test -n "$runpath_var GCJ" || \
18546 test "X$hardcode_automatic_GCJ"="Xyes" ; then
18547
18548 # We can hardcode non-existant directories.
18549 if test "$hardcode_direct_GCJ" != no &&
18550 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18551 # have to relink, otherwise we might link with an installed library
18552 # when we should be linking with a yet-to-be-installed one
18553 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18554 test "$hardcode_minus_L_GCJ" != no; then
18555 # Linking always hardcodes the temporary library directory.
18556 hardcode_action_GCJ=relink
18557 else
18558 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18559 hardcode_action_GCJ=immediate
18560 fi
18561else
18562 # We cannot hardcode anything, or else we can only hardcode existing
18563 # directories.
18564 hardcode_action_GCJ=unsupported
18565fi
18566{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18567echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18568
18569if test "$hardcode_action_GCJ" = relink; then
18570 # Fast installation is not supported
18571 enable_fast_install=no
18572elif test "$shlibpath_overrides_runpath" = yes ||
18573 test "$enable_shared" = no; then
18574 # Fast installation is not necessary
18575 enable_fast_install=needless
18576fi
18577
18578striplib=
18579old_striplib=
18580{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18581echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
18582if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18583 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18584 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18585 { echo "$as_me:$LINENO: result: yes" >&5
18586echo "${ECHO_T}yes" >&6; }
18587else
18588# FIXME - insert some real tests, host_os isn't really good enough
18589 case $host_os in
18590 darwin*)
18591 if test -n "$STRIP" ; then
18592 striplib="$STRIP -x"
18593 { echo "$as_me:$LINENO: result: yes" >&5
18594echo "${ECHO_T}yes" >&6; }
18595 else
18596 { echo "$as_me:$LINENO: result: no" >&5
18597echo "${ECHO_T}no" >&6; }
18598fi
18599 ;;
18600 *)
18601 { echo "$as_me:$LINENO: result: no" >&5
18602echo "${ECHO_T}no" >&6; }
18603 ;;
18604 esac
18605fi
18606
18607if test "x$enable_dlopen" != xyes; then
18608 enable_dlopen=unknown
18609 enable_dlopen_self=unknown
18610 enable_dlopen_self_static=unknown
18611else
18612 lt_cv_dlopen=no
18613 lt_cv_dlopen_libs=
18614
18615 case $host_os in
18616 beos*)
18617 lt_cv_dlopen="load_add_on"
18618 lt_cv_dlopen_libs=
18619 lt_cv_dlopen_self=yes
18620 ;;
18621
18622 mingw* | pw32*)
18623 lt_cv_dlopen="LoadLibrary"
18624 lt_cv_dlopen_libs=
18625 ;;
18626
18627 cygwin*)
18628 lt_cv_dlopen="dlopen"
18629 lt_cv_dlopen_libs=
18630 ;;
18631
18632 darwin*)
18633 # if libdl is installed we need to link against it
18634 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18635echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
18636if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18637 echo $ECHO_N "(cached) $ECHO_C" >&6
18638else
18639 ac_check_lib_save_LIBS=$LIBS
18640LIBS="-ldl $LIBS"
18641cat >conftest.$ac_ext <<_ACEOF
18642/* confdefs.h. */
18643_ACEOF
18644cat confdefs.h >>conftest.$ac_ext
18645cat >>conftest.$ac_ext <<_ACEOF
18646/* end confdefs.h. */
18647
18648/* Override any GCC internal prototype to avoid an error.
18649 Use char because int might match the return type of a GCC
18650 builtin and then its argument prototype would still apply. */
18651#ifdef __cplusplus
18652extern "C"
18653#endif
18654char dlopen ();
18655int
18656main ()
18657{
18658return dlopen ();
18659 ;
18660 return 0;
18661}
18662_ACEOF
18663rm -f conftest.$ac_objext conftest$ac_exeext
18664if { (ac_try="$ac_link"
18665case "(($ac_try" in
18666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18667 *) ac_try_echo=$ac_try;;
18668esac
18669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18670 (eval "$ac_link") 2>conftest.er1
18671 ac_status=$?
18672 grep -v '^ *+' conftest.er1 >conftest.err
18673 rm -f conftest.er1
18674 cat conftest.err >&5
18675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18676 (exit $ac_status); } && {
18677 test -z "$ac_c_werror_flag" ||
18678 test ! -s conftest.err
18679 } && test -s conftest$ac_exeext &&
18680 $as_test_x conftest$ac_exeext; then
18681 ac_cv_lib_dl_dlopen=yes
18682else
18683 echo "$as_me: failed program was:" >&5
18684sed 's/^/| /' conftest.$ac_ext >&5
18685
18686 ac_cv_lib_dl_dlopen=no
18687fi
18688
18689rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18690 conftest$ac_exeext conftest.$ac_ext
18691LIBS=$ac_check_lib_save_LIBS
18692fi
18693{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18694echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
18695if test $ac_cv_lib_dl_dlopen = yes; then
18696 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18697else
18698
18699 lt_cv_dlopen="dyld"
18700 lt_cv_dlopen_libs=
18701 lt_cv_dlopen_self=yes
18702
18703fi
18704
18705 ;;
18706
18707 *)
18708 { echo "$as_me:$LINENO: checking for shl_load" >&5
18709echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
18710if test "${ac_cv_func_shl_load+set}" = set; then
18711 echo $ECHO_N "(cached) $ECHO_C" >&6
18712else
18713 cat >conftest.$ac_ext <<_ACEOF
18714/* confdefs.h. */
18715_ACEOF
18716cat confdefs.h >>conftest.$ac_ext
18717cat >>conftest.$ac_ext <<_ACEOF
18718/* end confdefs.h. */
18719/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18721#define shl_load innocuous_shl_load
18722
18723/* System header to define __stub macros and hopefully few prototypes,
18724 which can conflict with char shl_load (); below.
18725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18726 <limits.h> exists even on freestanding compilers. */
18727
18728#ifdef __STDC__
18729# include <limits.h>
18730#else
18731# include <assert.h>
18732#endif
18733
18734#undef shl_load
18735
18736/* Override any GCC internal prototype to avoid an error.
18737 Use char because int might match the return type of a GCC
18738 builtin and then its argument prototype would still apply. */
18739#ifdef __cplusplus
18740extern "C"
18741#endif
18742char shl_load ();
18743/* The GNU C library defines this for functions which it implements
18744 to always fail with ENOSYS. Some functions are actually named
18745 something starting with __ and the normal name is an alias. */
18746#if defined __stub_shl_load || defined __stub___shl_load
18747choke me
18748#endif
18749
18750int
18751main ()
18752{
18753return shl_load ();
18754 ;
18755 return 0;
18756}
18757_ACEOF
18758rm -f conftest.$ac_objext conftest$ac_exeext
18759if { (ac_try="$ac_link"
18760case "(($ac_try" in
18761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18762 *) ac_try_echo=$ac_try;;
18763esac
18764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18765 (eval "$ac_link") 2>conftest.er1
18766 ac_status=$?
18767 grep -v '^ *+' conftest.er1 >conftest.err
18768 rm -f conftest.er1
18769 cat conftest.err >&5
18770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771 (exit $ac_status); } && {
18772 test -z "$ac_c_werror_flag" ||
18773 test ! -s conftest.err
18774 } && test -s conftest$ac_exeext &&
18775 $as_test_x conftest$ac_exeext; then
18776 ac_cv_func_shl_load=yes
18777else
18778 echo "$as_me: failed program was:" >&5
18779sed 's/^/| /' conftest.$ac_ext >&5
18780
18781 ac_cv_func_shl_load=no
18782fi
18783
18784rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18785 conftest$ac_exeext conftest.$ac_ext
18786fi
18787{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18788echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
18789if test $ac_cv_func_shl_load = yes; then
18790 lt_cv_dlopen="shl_load"
18791else
18792 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18793echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
18794if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18795 echo $ECHO_N "(cached) $ECHO_C" >&6
18796else
18797 ac_check_lib_save_LIBS=$LIBS
18798LIBS="-ldld $LIBS"
18799cat >conftest.$ac_ext <<_ACEOF
18800/* confdefs.h. */
18801_ACEOF
18802cat confdefs.h >>conftest.$ac_ext
18803cat >>conftest.$ac_ext <<_ACEOF
18804/* end confdefs.h. */
18805
18806/* Override any GCC internal prototype to avoid an error.
18807 Use char because int might match the return type of a GCC
18808 builtin and then its argument prototype would still apply. */
18809#ifdef __cplusplus
18810extern "C"
18811#endif
18812char shl_load ();
18813int
18814main ()
18815{
18816return shl_load ();
18817 ;
18818 return 0;
18819}
18820_ACEOF
18821rm -f conftest.$ac_objext conftest$ac_exeext
18822if { (ac_try="$ac_link"
18823case "(($ac_try" in
18824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18825 *) ac_try_echo=$ac_try;;
18826esac
18827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18828 (eval "$ac_link") 2>conftest.er1
18829 ac_status=$?
18830 grep -v '^ *+' conftest.er1 >conftest.err
18831 rm -f conftest.er1
18832 cat conftest.err >&5
18833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834 (exit $ac_status); } && {
18835 test -z "$ac_c_werror_flag" ||
18836 test ! -s conftest.err
18837 } && test -s conftest$ac_exeext &&
18838 $as_test_x conftest$ac_exeext; then
18839 ac_cv_lib_dld_shl_load=yes
18840else
18841 echo "$as_me: failed program was:" >&5
18842sed 's/^/| /' conftest.$ac_ext >&5
18843
18844 ac_cv_lib_dld_shl_load=no
18845fi
18846
18847rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18848 conftest$ac_exeext conftest.$ac_ext
18849LIBS=$ac_check_lib_save_LIBS
18850fi
18851{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18852echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
18853if test $ac_cv_lib_dld_shl_load = yes; then
18854 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18855else
18856 { echo "$as_me:$LINENO: checking for dlopen" >&5
18857echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
18858if test "${ac_cv_func_dlopen+set}" = set; then
18859 echo $ECHO_N "(cached) $ECHO_C" >&6
18860else
18861 cat >conftest.$ac_ext <<_ACEOF
18862/* confdefs.h. */
18863_ACEOF
18864cat confdefs.h >>conftest.$ac_ext
18865cat >>conftest.$ac_ext <<_ACEOF
18866/* end confdefs.h. */
18867/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18869#define dlopen innocuous_dlopen
18870
18871/* System header to define __stub macros and hopefully few prototypes,
18872 which can conflict with char dlopen (); below.
18873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18874 <limits.h> exists even on freestanding compilers. */
18875
18876#ifdef __STDC__
18877# include <limits.h>
18878#else
18879# include <assert.h>
18880#endif
18881
18882#undef dlopen
18883
18884/* Override any GCC internal prototype to avoid an error.
18885 Use char because int might match the return type of a GCC
18886 builtin and then its argument prototype would still apply. */
18887#ifdef __cplusplus
18888extern "C"
18889#endif
18890char dlopen ();
18891/* The GNU C library defines this for functions which it implements
18892 to always fail with ENOSYS. Some functions are actually named
18893 something starting with __ and the normal name is an alias. */
18894#if defined __stub_dlopen || defined __stub___dlopen
18895choke me
18896#endif
18897
18898int
18899main ()
18900{
18901return dlopen ();
18902 ;
18903 return 0;
18904}
18905_ACEOF
18906rm -f conftest.$ac_objext conftest$ac_exeext
18907if { (ac_try="$ac_link"
18908case "(($ac_try" in
18909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18910 *) ac_try_echo=$ac_try;;
18911esac
18912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18913 (eval "$ac_link") 2>conftest.er1
18914 ac_status=$?
18915 grep -v '^ *+' conftest.er1 >conftest.err
18916 rm -f conftest.er1
18917 cat conftest.err >&5
18918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18919 (exit $ac_status); } && {
18920 test -z "$ac_c_werror_flag" ||
18921 test ! -s conftest.err
18922 } && test -s conftest$ac_exeext &&
18923 $as_test_x conftest$ac_exeext; then
18924 ac_cv_func_dlopen=yes
18925else
18926 echo "$as_me: failed program was:" >&5
18927sed 's/^/| /' conftest.$ac_ext >&5
18928
18929 ac_cv_func_dlopen=no
18930fi
18931
18932rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18933 conftest$ac_exeext conftest.$ac_ext
18934fi
18935{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18936echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
18937if test $ac_cv_func_dlopen = yes; then
18938 lt_cv_dlopen="dlopen"
18939else
18940 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18941echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
18942if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18943 echo $ECHO_N "(cached) $ECHO_C" >&6
18944else
18945 ac_check_lib_save_LIBS=$LIBS
18946LIBS="-ldl $LIBS"
18947cat >conftest.$ac_ext <<_ACEOF
18948/* confdefs.h. */
18949_ACEOF
18950cat confdefs.h >>conftest.$ac_ext
18951cat >>conftest.$ac_ext <<_ACEOF
18952/* end confdefs.h. */
18953
18954/* Override any GCC internal prototype to avoid an error.
18955 Use char because int might match the return type of a GCC
18956 builtin and then its argument prototype would still apply. */
18957#ifdef __cplusplus
18958extern "C"
18959#endif
18960char dlopen ();
18961int
18962main ()
18963{
18964return dlopen ();
18965 ;
18966 return 0;
18967}
18968_ACEOF
18969rm -f conftest.$ac_objext conftest$ac_exeext
18970if { (ac_try="$ac_link"
18971case "(($ac_try" in
18972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18973 *) ac_try_echo=$ac_try;;
18974esac
18975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18976 (eval "$ac_link") 2>conftest.er1
18977 ac_status=$?
18978 grep -v '^ *+' conftest.er1 >conftest.err
18979 rm -f conftest.er1
18980 cat conftest.err >&5
18981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982 (exit $ac_status); } && {
18983 test -z "$ac_c_werror_flag" ||
18984 test ! -s conftest.err
18985 } && test -s conftest$ac_exeext &&
18986 $as_test_x conftest$ac_exeext; then
18987 ac_cv_lib_dl_dlopen=yes
18988else
18989 echo "$as_me: failed program was:" >&5
18990sed 's/^/| /' conftest.$ac_ext >&5
18991
18992 ac_cv_lib_dl_dlopen=no
18993fi
18994
18995rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18996 conftest$ac_exeext conftest.$ac_ext
18997LIBS=$ac_check_lib_save_LIBS
18998fi
18999{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19000echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
19001if test $ac_cv_lib_dl_dlopen = yes; then
19002 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19003else
19004 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19005echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
19006if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19007 echo $ECHO_N "(cached) $ECHO_C" >&6
19008else
19009 ac_check_lib_save_LIBS=$LIBS
19010LIBS="-lsvld $LIBS"
19011cat >conftest.$ac_ext <<_ACEOF
19012/* confdefs.h. */
19013_ACEOF
19014cat confdefs.h >>conftest.$ac_ext
19015cat >>conftest.$ac_ext <<_ACEOF
19016/* end confdefs.h. */
19017
19018/* Override any GCC internal prototype to avoid an error.
19019 Use char because int might match the return type of a GCC
19020 builtin and then its argument prototype would still apply. */
19021#ifdef __cplusplus
19022extern "C"
19023#endif
19024char dlopen ();
19025int
19026main ()
19027{
19028return dlopen ();
19029 ;
19030 return 0;
19031}
19032_ACEOF
19033rm -f conftest.$ac_objext conftest$ac_exeext
19034if { (ac_try="$ac_link"
19035case "(($ac_try" in
19036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19037 *) ac_try_echo=$ac_try;;
19038esac
19039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19040 (eval "$ac_link") 2>conftest.er1
19041 ac_status=$?
19042 grep -v '^ *+' conftest.er1 >conftest.err
19043 rm -f conftest.er1
19044 cat conftest.err >&5
19045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046 (exit $ac_status); } && {
19047 test -z "$ac_c_werror_flag" ||
19048 test ! -s conftest.err
19049 } && test -s conftest$ac_exeext &&
19050 $as_test_x conftest$ac_exeext; then
19051 ac_cv_lib_svld_dlopen=yes
19052else
19053 echo "$as_me: failed program was:" >&5
19054sed 's/^/| /' conftest.$ac_ext >&5
19055
19056 ac_cv_lib_svld_dlopen=no
19057fi
19058
19059rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19060 conftest$ac_exeext conftest.$ac_ext
19061LIBS=$ac_check_lib_save_LIBS
19062fi
19063{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19064echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
19065if test $ac_cv_lib_svld_dlopen = yes; then
19066 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19067else
19068 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19069echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
19070if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19071 echo $ECHO_N "(cached) $ECHO_C" >&6
19072else
19073 ac_check_lib_save_LIBS=$LIBS
19074LIBS="-ldld $LIBS"
19075cat >conftest.$ac_ext <<_ACEOF
19076/* confdefs.h. */
19077_ACEOF
19078cat confdefs.h >>conftest.$ac_ext
19079cat >>conftest.$ac_ext <<_ACEOF
19080/* end confdefs.h. */
19081
19082/* Override any GCC internal prototype to avoid an error.
19083 Use char because int might match the return type of a GCC
19084 builtin and then its argument prototype would still apply. */
19085#ifdef __cplusplus
19086extern "C"
19087#endif
19088char dld_link ();
19089int
19090main ()
19091{
19092return dld_link ();
19093 ;
19094 return 0;
19095}
19096_ACEOF
19097rm -f conftest.$ac_objext conftest$ac_exeext
19098if { (ac_try="$ac_link"
19099case "(($ac_try" in
19100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19101 *) ac_try_echo=$ac_try;;
19102esac
19103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19104 (eval "$ac_link") 2>conftest.er1
19105 ac_status=$?
19106 grep -v '^ *+' conftest.er1 >conftest.err
19107 rm -f conftest.er1
19108 cat conftest.err >&5
19109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19110 (exit $ac_status); } && {
19111 test -z "$ac_c_werror_flag" ||
19112 test ! -s conftest.err
19113 } && test -s conftest$ac_exeext &&
19114 $as_test_x conftest$ac_exeext; then
19115 ac_cv_lib_dld_dld_link=yes
19116else
19117 echo "$as_me: failed program was:" >&5
19118sed 's/^/| /' conftest.$ac_ext >&5
19119
19120 ac_cv_lib_dld_dld_link=no
19121fi
19122
19123rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19124 conftest$ac_exeext conftest.$ac_ext
19125LIBS=$ac_check_lib_save_LIBS
19126fi
19127{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19128echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
19129if test $ac_cv_lib_dld_dld_link = yes; then
19130 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19131fi
19132
19133
19134fi
19135
19136
19137fi
19138
19139
19140fi
19141
19142
19143fi
19144
19145
19146fi
19147
19148 ;;
19149 esac
19150
19151 if test "x$lt_cv_dlopen" != xno; then
19152 enable_dlopen=yes
19153 else
19154 enable_dlopen=no
19155 fi
19156
19157 case $lt_cv_dlopen in
19158 dlopen)
19159 save_CPPFLAGS="$CPPFLAGS"
19160 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19161
19162 save_LDFLAGS="$LDFLAGS"
19163 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19164
19165 save_LIBS="$LIBS"
19166 LIBS="$lt_cv_dlopen_libs $LIBS"
19167
19168 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19169echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
19170if test "${lt_cv_dlopen_self+set}" = set; then
19171 echo $ECHO_N "(cached) $ECHO_C" >&6
19172else
19173 if test "$cross_compiling" = yes; then :
19174 lt_cv_dlopen_self=cross
19175else
19176 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19177 lt_status=$lt_dlunknown
19178 cat > conftest.$ac_ext <<EOF
19179#line 19179 "configure"
19180#include "confdefs.h"
19181
19182#if HAVE_DLFCN_H
19183#include <dlfcn.h>
19184#endif
19185
19186#include <stdio.h>
19187
19188#ifdef RTLD_GLOBAL
19189# define LT_DLGLOBAL RTLD_GLOBAL
19190#else
19191# ifdef DL_GLOBAL
19192# define LT_DLGLOBAL DL_GLOBAL
19193# else
19194# define LT_DLGLOBAL 0
19195# endif
19196#endif
19197
19198/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19199 find out it does not work in some platform. */
19200#ifndef LT_DLLAZY_OR_NOW
19201# ifdef RTLD_LAZY
19202# define LT_DLLAZY_OR_NOW RTLD_LAZY
19203# else
19204# ifdef DL_LAZY
19205# define LT_DLLAZY_OR_NOW DL_LAZY
19206# else
19207# ifdef RTLD_NOW
19208# define LT_DLLAZY_OR_NOW RTLD_NOW
19209# else
19210# ifdef DL_NOW
19211# define LT_DLLAZY_OR_NOW DL_NOW
19212# else
19213# define LT_DLLAZY_OR_NOW 0
19214# endif
19215# endif
19216# endif
19217# endif
19218#endif
19219
19220#ifdef __cplusplus
19221extern "C" void exit (int);
19222#endif
19223
19224void fnord() { int i=42;}
19225int main ()
19226{
19227 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19228 int status = $lt_dlunknown;
19229
19230 if (self)
19231 {
19232 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19233 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19234 /* dlclose (self); */
19235 }
19236
19237 exit (status);
19238}
19239EOF
19240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19241 (eval $ac_link) 2>&5
19242 ac_status=$?
19243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19245 (./conftest; exit; ) 2>/dev/null
19246 lt_status=$?
19247 case x$lt_status in
19248 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19249 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19250 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19251 esac
19252 else :
19253 # compilation failed
19254 lt_cv_dlopen_self=no
19255 fi
19256fi
19257rm -fr conftest*
19258
19259
19260fi
19261{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19262echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
19263
19264 if test "x$lt_cv_dlopen_self" = xyes; then
19265 LDFLAGS="$LDFLAGS $link_static_flag"
19266 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19267echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
19268if test "${lt_cv_dlopen_self_static+set}" = set; then
19269 echo $ECHO_N "(cached) $ECHO_C" >&6
19270else
19271 if test "$cross_compiling" = yes; then :
19272 lt_cv_dlopen_self_static=cross
19273else
19274 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19275 lt_status=$lt_dlunknown
19276 cat > conftest.$ac_ext <<EOF
19277#line 19277 "configure"
19278#include "confdefs.h"
19279
19280#if HAVE_DLFCN_H
19281#include <dlfcn.h>
19282#endif
19283
19284#include <stdio.h>
19285
19286#ifdef RTLD_GLOBAL
19287# define LT_DLGLOBAL RTLD_GLOBAL
19288#else
19289# ifdef DL_GLOBAL
19290# define LT_DLGLOBAL DL_GLOBAL
19291# else
19292# define LT_DLGLOBAL 0
19293# endif
19294#endif
19295
19296/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19297 find out it does not work in some platform. */
19298#ifndef LT_DLLAZY_OR_NOW
19299# ifdef RTLD_LAZY
19300# define LT_DLLAZY_OR_NOW RTLD_LAZY
19301# else
19302# ifdef DL_LAZY
19303# define LT_DLLAZY_OR_NOW DL_LAZY
19304# else
19305# ifdef RTLD_NOW
19306# define LT_DLLAZY_OR_NOW RTLD_NOW
19307# else
19308# ifdef DL_NOW
19309# define LT_DLLAZY_OR_NOW DL_NOW
19310# else
19311# define LT_DLLAZY_OR_NOW 0
19312# endif
19313# endif
19314# endif
19315# endif
19316#endif
19317
19318#ifdef __cplusplus
19319extern "C" void exit (int);
19320#endif
19321
19322void fnord() { int i=42;}
19323int main ()
19324{
19325 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19326 int status = $lt_dlunknown;
19327
19328 if (self)
19329 {
19330 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19331 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19332 /* dlclose (self); */
19333 }
19334
19335 exit (status);
19336}
19337EOF
19338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19339 (eval $ac_link) 2>&5
19340 ac_status=$?
19341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19342 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19343 (./conftest; exit; ) 2>/dev/null
19344 lt_status=$?
19345 case x$lt_status in
19346 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19347 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19348 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19349 esac
19350 else :
19351 # compilation failed
19352 lt_cv_dlopen_self_static=no
19353 fi
19354fi
19355rm -fr conftest*
19356
19357
19358fi
19359{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19360echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
19361 fi
19362
19363 CPPFLAGS="$save_CPPFLAGS"
19364 LDFLAGS="$save_LDFLAGS"
19365 LIBS="$save_LIBS"
19366 ;;
19367 esac
19368
19369 case $lt_cv_dlopen_self in
19370 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19371 *) enable_dlopen_self=unknown ;;
19372 esac
19373
19374 case $lt_cv_dlopen_self_static in
19375 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19376 *) enable_dlopen_self_static=unknown ;;
19377 esac
19378fi
19379
19380
19381# The else clause should only fire when bootstrapping the
19382# libtool distribution, otherwise you forgot to ship ltmain.sh
19383# with your package, and you will get complaints that there are
19384# no rules to generate ltmain.sh.
19385if test -f "$ltmain"; then
19386 # See if we are running on zsh, and set the options which allow our commands through
19387 # without removal of \ escapes.
19388 if test -n "${ZSH_VERSION+set}" ; then
19389 setopt NO_GLOB_SUBST
19390 fi
19391 # Now quote all the things that may contain metacharacters while being
19392 # careful not to overquote the AC_SUBSTed values. We take copies of the
19393 # variables and quote the copies for generation of the libtool script.
19394 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19395 SED SHELL STRIP \
19396 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19397 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19398 deplibs_check_method reload_flag reload_cmds need_locks \
19399 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19400 lt_cv_sys_global_symbol_to_c_name_address \
19401 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19402 old_postinstall_cmds old_postuninstall_cmds \
19403 compiler_GCJ \
19404 CC_GCJ \
19405 LD_GCJ \
19406 lt_prog_compiler_wl_GCJ \
19407 lt_prog_compiler_pic_GCJ \
19408 lt_prog_compiler_static_GCJ \
19409 lt_prog_compiler_no_builtin_flag_GCJ \
19410 export_dynamic_flag_spec_GCJ \
19411 thread_safe_flag_spec_GCJ \
19412 whole_archive_flag_spec_GCJ \
19413 enable_shared_with_static_runtimes_GCJ \
19414 old_archive_cmds_GCJ \
19415 old_archive_from_new_cmds_GCJ \
19416 predep_objects_GCJ \
19417 postdep_objects_GCJ \
19418 predeps_GCJ \
19419 postdeps_GCJ \
19420 compiler_lib_search_path_GCJ \
19421 archive_cmds_GCJ \
19422 archive_expsym_cmds_GCJ \
19423 postinstall_cmds_GCJ \
19424 postuninstall_cmds_GCJ \
19425 old_archive_from_expsyms_cmds_GCJ \
19426 allow_undefined_flag_GCJ \
19427 no_undefined_flag_GCJ \
19428 export_symbols_cmds_GCJ \
19429 hardcode_libdir_flag_spec_GCJ \
19430 hardcode_libdir_flag_spec_ld_GCJ \
19431 hardcode_libdir_separator_GCJ \
19432 hardcode_automatic_GCJ \
19433 module_cmds_GCJ \
19434 module_expsym_cmds_GCJ \
19435 lt_cv_prog_compiler_c_o_GCJ \
19436 exclude_expsyms_GCJ \
19437 include_expsyms_GCJ; do
19438
19439 case $var in
19440 old_archive_cmds_GCJ | \
19441 old_archive_from_new_cmds_GCJ | \
19442 archive_cmds_GCJ | \
19443 archive_expsym_cmds_GCJ | \
19444 module_cmds_GCJ | \
19445 module_expsym_cmds_GCJ | \
19446 old_archive_from_expsyms_cmds_GCJ | \
19447 export_symbols_cmds_GCJ | \
19448 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19449 postinstall_cmds | postuninstall_cmds | \
19450 old_postinstall_cmds | old_postuninstall_cmds | \
19451 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19452 # Double-quote double-evaled strings.
19453 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19454 ;;
19455 *)
19456 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19457 ;;
19458 esac
19459 done
19460
19461 case $lt_echo in
19462 *'\$0 --fallback-echo"')
19463 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19464 ;;
19465 esac
19466
19467cfgfile="$ofile"
19468
19469 cat <<__EOF__ >> "$cfgfile"
19470# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19471
19472# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19473
19474# Shell to use when invoking shell scripts.
19475SHELL=$lt_SHELL
19476
19477# Whether or not to build shared libraries.
19478build_libtool_libs=$enable_shared
19479
19480# Whether or not to build static libraries.
19481build_old_libs=$enable_static
19482
19483# Whether or not to add -lc for building shared libraries.
19484build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19485
19486# Whether or not to disallow shared libs when runtime libs are static
19487allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19488
19489# Whether or not to optimize for fast installation.
19490fast_install=$enable_fast_install
19491
19492# The host system.
19493host_alias=$host_alias
19494host=$host
19495
19496# An echo program that does not interpret backslashes.
19497echo=$lt_echo
19498
19499# The archiver.
19500AR=$lt_AR
19501AR_FLAGS=$lt_AR_FLAGS
19502
19503# A C compiler.
19504LTCC=$lt_LTCC
19505
19506# A language-specific compiler.
19507CC=$lt_compiler_GCJ
19508
19509# Is the compiler the GNU C compiler?
19510with_gcc=$GCC_GCJ
19511
19512# An ERE matcher.
19513EGREP=$lt_EGREP
19514
19515# The linker used to build libraries.
19516LD=$lt_LD_GCJ
19517
19518# Whether we need hard or soft links.
19519LN_S=$lt_LN_S
19520
19521# A BSD-compatible nm program.
19522NM=$lt_NM
19523
19524# A symbol stripping program
19525STRIP=$lt_STRIP
19526
19527# Used to examine libraries when file_magic_cmd begins "file"
19528MAGIC_CMD=$MAGIC_CMD
19529
19530# Used on cygwin: DLL creation program.
19531DLLTOOL="$DLLTOOL"
19532
19533# Used on cygwin: object dumper.
19534OBJDUMP="$OBJDUMP"
19535
19536# Used on cygwin: assembler.
19537AS="$AS"
19538
19539# The name of the directory that contains temporary libtool files.
19540objdir=$objdir
19541
19542# How to create reloadable object files.
19543reload_flag=$lt_reload_flag
19544reload_cmds=$lt_reload_cmds
19545
19546# How to pass a linker flag through the compiler.
19547wl=$lt_lt_prog_compiler_wl_GCJ
19548
19549# Object file suffix (normally "o").
19550objext="$ac_objext"
19551
19552# Old archive suffix (normally "a").
19553libext="$libext"
19554
19555# Shared library suffix (normally ".so").
19556shrext_cmds='$shrext_cmds'
19557
19558# Executable file suffix (normally "").
19559exeext="$exeext"
19560
19561# Additional compiler flags for building library objects.
19562pic_flag=$lt_lt_prog_compiler_pic_GCJ
19563pic_mode=$pic_mode
19564
19565# What is the maximum length of a command?
19566max_cmd_len=$lt_cv_sys_max_cmd_len
19567
19568# Does compiler simultaneously support -c and -o options?
19569compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19570
19571# Must we lock files when doing compilation ?
19572need_locks=$lt_need_locks
19573
19574# Do we need the lib prefix for modules?
19575need_lib_prefix=$need_lib_prefix
19576
19577# Do we need a version for libraries?
19578need_version=$need_version
19579
19580# Whether dlopen is supported.
19581dlopen_support=$enable_dlopen
19582
19583# Whether dlopen of programs is supported.
19584dlopen_self=$enable_dlopen_self
19585
19586# Whether dlopen of statically linked programs is supported.
19587dlopen_self_static=$enable_dlopen_self_static
19588
19589# Compiler flag to prevent dynamic linking.
19590link_static_flag=$lt_lt_prog_compiler_static_GCJ
19591
19592# Compiler flag to turn off builtin functions.
19593no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19594
19595# Compiler flag to allow reflexive dlopens.
19596export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19597
19598# Compiler flag to generate shared objects directly from archives.
19599whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19600
19601# Compiler flag to generate thread-safe objects.
19602thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19603
19604# Library versioning type.
19605version_type=$version_type
19606
19607# Format of library name prefix.
19608libname_spec=$lt_libname_spec
19609
19610# List of archive names. First name is the real one, the rest are links.
19611# The last name is the one that the linker finds with -lNAME.
19612library_names_spec=$lt_library_names_spec
19613
19614# The coded name of the library, if different from the real name.
19615soname_spec=$lt_soname_spec
19616
19617# Commands used to build and install an old-style archive.
19618RANLIB=$lt_RANLIB
19619old_archive_cmds=$lt_old_archive_cmds_GCJ
19620old_postinstall_cmds=$lt_old_postinstall_cmds
19621old_postuninstall_cmds=$lt_old_postuninstall_cmds
19622
19623# Create an old-style archive from a shared archive.
19624old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19625
19626# Create a temporary old-style archive to link instead of a shared archive.
19627old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19628
19629# Commands used to build and install a shared archive.
19630archive_cmds=$lt_archive_cmds_GCJ
19631archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19632postinstall_cmds=$lt_postinstall_cmds
19633postuninstall_cmds=$lt_postuninstall_cmds
19634
19635# Commands used to build a loadable module (assumed same as above if empty)
19636module_cmds=$lt_module_cmds_GCJ
19637module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19638
19639# Commands to strip libraries.
19640old_striplib=$lt_old_striplib
19641striplib=$lt_striplib
19642
19643# Dependencies to place before the objects being linked to create a
19644# shared library.
19645predep_objects=$lt_predep_objects_GCJ
19646
19647# Dependencies to place after the objects being linked to create a
19648# shared library.
19649postdep_objects=$lt_postdep_objects_GCJ
19650
19651# Dependencies to place before the objects being linked to create a
19652# shared library.
19653predeps=$lt_predeps_GCJ
19654
19655# Dependencies to place after the objects being linked to create a
19656# shared library.
19657postdeps=$lt_postdeps_GCJ
19658
19659# The library search path used internally by the compiler when linking
19660# a shared library.
19661compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19662
19663# Method to check whether dependent libraries are shared objects.
19664deplibs_check_method=$lt_deplibs_check_method
19665
19666# Command to use when deplibs_check_method == file_magic.
19667file_magic_cmd=$lt_file_magic_cmd
19668
19669# Flag that allows shared libraries with undefined symbols to be built.
19670allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19671
19672# Flag that forces no undefined symbols.
19673no_undefined_flag=$lt_no_undefined_flag_GCJ
19674
19675# Commands used to finish a libtool library installation in a directory.
19676finish_cmds=$lt_finish_cmds
19677
19678# Same as above, but a single script fragment to be evaled but not shown.
19679finish_eval=$lt_finish_eval
19680
19681# Take the output of nm and produce a listing of raw symbols and C names.
19682global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19683
19684# Transform the output of nm in a proper C declaration
19685global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19686
19687# Transform the output of nm in a C name address pair
19688global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19689
19690# This is the shared library runtime path variable.
19691runpath_var=$runpath_var
19692
19693# This is the shared library path variable.
19694shlibpath_var=$shlibpath_var
19695
19696# Is shlibpath searched before the hard-coded library search path?
19697shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19698
19699# How to hardcode a shared library path into an executable.
19700hardcode_action=$hardcode_action_GCJ
19701
19702# Whether we should hardcode library paths into libraries.
19703hardcode_into_libs=$hardcode_into_libs
19704
19705# Flag to hardcode \$libdir into a binary during linking.
19706# This must work even if \$libdir does not exist.
19707hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19708
19709# If ld is used when linking, flag to hardcode \$libdir into
19710# a binary during linking. This must work even if \$libdir does
19711# not exist.
19712hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19713
19714# Whether we need a single -rpath flag with a separated argument.
19715hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19716
19717# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19718# resulting binary.
19719hardcode_direct=$hardcode_direct_GCJ
19720
19721# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19722# resulting binary.
19723hardcode_minus_L=$hardcode_minus_L_GCJ
19724
19725# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19726# the resulting binary.
19727hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19728
19729# Set to yes if building a shared library automatically hardcodes DIR into the library
19730# and all subsequent libraries and executables linked against it.
19731hardcode_automatic=$hardcode_automatic_GCJ
19732
19733# Variables whose values should be saved in libtool wrapper scripts and
19734# restored at relink time.
19735variables_saved_for_relink="$variables_saved_for_relink"
19736
19737# Whether libtool must link a program against all its dependency libraries.
19738link_all_deplibs=$link_all_deplibs_GCJ
19739
19740# Compile-time system search path for libraries
19741sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19742
19743# Run-time system search path for libraries
19744sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19745
19746# Fix the shell variable \$srcfile for the compiler.
19747fix_srcfile_path="$fix_srcfile_path_GCJ"
19748
19749# Set to yes if exported symbols are required.
19750always_export_symbols=$always_export_symbols_GCJ
19751
19752# The commands to list exported symbols.
19753export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19754
19755# The commands to extract the exported symbol list from a shared archive.
19756extract_expsyms_cmds=$lt_extract_expsyms_cmds
19757
19758# Symbols that should not be listed in the preloaded symbols.
19759exclude_expsyms=$lt_exclude_expsyms_GCJ
19760
19761# Symbols that must always be exported.
19762include_expsyms=$lt_include_expsyms_GCJ
19763
19764# ### END LIBTOOL TAG CONFIG: $tagname
19765
19766__EOF__
19767
19768
19769else
19770 # If there is no Makefile yet, we rely on a make rule to execute
19771 # `config.status --recheck' to rerun these tests and create the
19772 # libtool script then.
19773 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19774 if test -f "$ltmain_in"; then
19775 test -f Makefile && make "$ltmain"
19776 fi
19777fi
19778
19779
19780ac_ext=c
19781ac_cpp='$CPP $CPPFLAGS'
19782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19784ac_compiler_gnu=$ac_cv_c_compiler_gnu
19785
19786CC="$lt_save_CC"
19787
19788 else
19789 tagname=""
19790 fi
19791 ;;
19792
19793 RC)
19794
19795
19796# Source file extension for RC test sources.
19797ac_ext=rc
19798
19799# Object file extension for compiled RC test sources.
19800objext=o
19801objext_RC=$objext
19802
19803# Code to be used in simple compile tests
19804lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19805
19806# Code to be used in simple link tests
19807lt_simple_link_test_code="$lt_simple_compile_test_code"
19808
19809# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19810
19811# If no C compiler was specified, use CC.
19812LTCC=${LTCC-"$CC"}
19813
19814# Allow CC to be a program name with arguments.
19815compiler=$CC
19816
19817
19818# Allow CC to be a program name with arguments.
19819lt_save_CC="$CC"
19820CC=${RC-"windres"}
19821compiler=$CC
19822compiler_RC=$CC
19823lt_cv_prog_compiler_c_o_RC=yes
19824
19825# The else clause should only fire when bootstrapping the
19826# libtool distribution, otherwise you forgot to ship ltmain.sh
19827# with your package, and you will get complaints that there are
19828# no rules to generate ltmain.sh.
19829if test -f "$ltmain"; then
19830 # See if we are running on zsh, and set the options which allow our commands through
19831 # without removal of \ escapes.
19832 if test -n "${ZSH_VERSION+set}" ; then
19833 setopt NO_GLOB_SUBST
19834 fi
19835 # Now quote all the things that may contain metacharacters while being
19836 # careful not to overquote the AC_SUBSTed values. We take copies of the
19837 # variables and quote the copies for generation of the libtool script.
19838 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19839 SED SHELL STRIP \
19840 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19841 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19842 deplibs_check_method reload_flag reload_cmds need_locks \
19843 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19844 lt_cv_sys_global_symbol_to_c_name_address \
19845 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19846 old_postinstall_cmds old_postuninstall_cmds \
19847 compiler_RC \
19848 CC_RC \
19849 LD_RC \
19850 lt_prog_compiler_wl_RC \
19851 lt_prog_compiler_pic_RC \
19852 lt_prog_compiler_static_RC \
19853 lt_prog_compiler_no_builtin_flag_RC \
19854 export_dynamic_flag_spec_RC \
19855 thread_safe_flag_spec_RC \
19856 whole_archive_flag_spec_RC \
19857 enable_shared_with_static_runtimes_RC \
19858 old_archive_cmds_RC \
19859 old_archive_from_new_cmds_RC \
19860 predep_objects_RC \
19861 postdep_objects_RC \
19862 predeps_RC \
19863 postdeps_RC \
19864 compiler_lib_search_path_RC \
19865 archive_cmds_RC \
19866 archive_expsym_cmds_RC \
19867 postinstall_cmds_RC \
19868 postuninstall_cmds_RC \
19869 old_archive_from_expsyms_cmds_RC \
19870 allow_undefined_flag_RC \
19871 no_undefined_flag_RC \
19872 export_symbols_cmds_RC \
19873 hardcode_libdir_flag_spec_RC \
19874 hardcode_libdir_flag_spec_ld_RC \
19875 hardcode_libdir_separator_RC \
19876 hardcode_automatic_RC \
19877 module_cmds_RC \
19878 module_expsym_cmds_RC \
19879 lt_cv_prog_compiler_c_o_RC \
19880 exclude_expsyms_RC \
19881 include_expsyms_RC; do
19882
19883 case $var in
19884 old_archive_cmds_RC | \
19885 old_archive_from_new_cmds_RC | \
19886 archive_cmds_RC | \
19887 archive_expsym_cmds_RC | \
19888 module_cmds_RC | \
19889 module_expsym_cmds_RC | \
19890 old_archive_from_expsyms_cmds_RC | \
19891 export_symbols_cmds_RC | \
19892 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19893 postinstall_cmds | postuninstall_cmds | \
19894 old_postinstall_cmds | old_postuninstall_cmds | \
19895 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19896 # Double-quote double-evaled strings.
19897 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19898 ;;
19899 *)
19900 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19901 ;;
19902 esac
19903 done
19904
19905 case $lt_echo in
19906 *'\$0 --fallback-echo"')
19907 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19908 ;;
19909 esac
19910
19911cfgfile="$ofile"
19912
19913 cat <<__EOF__ >> "$cfgfile"
19914# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19915
19916# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19917
19918# Shell to use when invoking shell scripts.
19919SHELL=$lt_SHELL
19920
19921# Whether or not to build shared libraries.
19922build_libtool_libs=$enable_shared
19923
19924# Whether or not to build static libraries.
19925build_old_libs=$enable_static
19926
19927# Whether or not to add -lc for building shared libraries.
19928build_libtool_need_lc=$archive_cmds_need_lc_RC
19929
19930# Whether or not to disallow shared libs when runtime libs are static
19931allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19932
19933# Whether or not to optimize for fast installation.
19934fast_install=$enable_fast_install
19935
19936# The host system.
19937host_alias=$host_alias
19938host=$host
19939
19940# An echo program that does not interpret backslashes.
19941echo=$lt_echo
19942
19943# The archiver.
19944AR=$lt_AR
19945AR_FLAGS=$lt_AR_FLAGS
19946
19947# A C compiler.
19948LTCC=$lt_LTCC
19949
19950# A language-specific compiler.
19951CC=$lt_compiler_RC
19952
19953# Is the compiler the GNU C compiler?
19954with_gcc=$GCC_RC
19955
19956# An ERE matcher.
19957EGREP=$lt_EGREP
19958
19959# The linker used to build libraries.
19960LD=$lt_LD_RC
19961
19962# Whether we need hard or soft links.
19963LN_S=$lt_LN_S
19964
19965# A BSD-compatible nm program.
19966NM=$lt_NM
19967
19968# A symbol stripping program
19969STRIP=$lt_STRIP
19970
19971# Used to examine libraries when file_magic_cmd begins "file"
19972MAGIC_CMD=$MAGIC_CMD
19973
19974# Used on cygwin: DLL creation program.
19975DLLTOOL="$DLLTOOL"
19976
19977# Used on cygwin: object dumper.
19978OBJDUMP="$OBJDUMP"
19979
19980# Used on cygwin: assembler.
19981AS="$AS"
19982
19983# The name of the directory that contains temporary libtool files.
19984objdir=$objdir
19985
19986# How to create reloadable object files.
19987reload_flag=$lt_reload_flag
19988reload_cmds=$lt_reload_cmds
19989
19990# How to pass a linker flag through the compiler.
19991wl=$lt_lt_prog_compiler_wl_RC
19992
19993# Object file suffix (normally "o").
19994objext="$ac_objext"
19995
19996# Old archive suffix (normally "a").
19997libext="$libext"
19998
19999# Shared library suffix (normally ".so").
20000shrext_cmds='$shrext_cmds'
20001
20002# Executable file suffix (normally "").
20003exeext="$exeext"
20004
20005# Additional compiler flags for building library objects.
20006pic_flag=$lt_lt_prog_compiler_pic_RC
20007pic_mode=$pic_mode
20008
20009# What is the maximum length of a command?
20010max_cmd_len=$lt_cv_sys_max_cmd_len
20011
20012# Does compiler simultaneously support -c and -o options?
20013compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20014
20015# Must we lock files when doing compilation ?
20016need_locks=$lt_need_locks
20017
20018# Do we need the lib prefix for modules?
20019need_lib_prefix=$need_lib_prefix
20020
20021# Do we need a version for libraries?
20022need_version=$need_version
20023
20024# Whether dlopen is supported.
20025dlopen_support=$enable_dlopen
20026
20027# Whether dlopen of programs is supported.
20028dlopen_self=$enable_dlopen_self
20029
20030# Whether dlopen of statically linked programs is supported.
20031dlopen_self_static=$enable_dlopen_self_static
20032
20033# Compiler flag to prevent dynamic linking.
20034link_static_flag=$lt_lt_prog_compiler_static_RC
20035
20036# Compiler flag to turn off builtin functions.
20037no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20038
20039# Compiler flag to allow reflexive dlopens.
20040export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20041
20042# Compiler flag to generate shared objects directly from archives.
20043whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20044
20045# Compiler flag to generate thread-safe objects.
20046thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20047
20048# Library versioning type.
20049version_type=$version_type
20050
20051# Format of library name prefix.
20052libname_spec=$lt_libname_spec
20053
20054# List of archive names. First name is the real one, the rest are links.
20055# The last name is the one that the linker finds with -lNAME.
20056library_names_spec=$lt_library_names_spec
20057
20058# The coded name of the library, if different from the real name.
20059soname_spec=$lt_soname_spec
20060
20061# Commands used to build and install an old-style archive.
20062RANLIB=$lt_RANLIB
20063old_archive_cmds=$lt_old_archive_cmds_RC
20064old_postinstall_cmds=$lt_old_postinstall_cmds
20065old_postuninstall_cmds=$lt_old_postuninstall_cmds
20066
20067# Create an old-style archive from a shared archive.
20068old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20069
20070# Create a temporary old-style archive to link instead of a shared archive.
20071old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20072
20073# Commands used to build and install a shared archive.
20074archive_cmds=$lt_archive_cmds_RC
20075archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20076postinstall_cmds=$lt_postinstall_cmds
20077postuninstall_cmds=$lt_postuninstall_cmds
20078
20079# Commands used to build a loadable module (assumed same as above if empty)
20080module_cmds=$lt_module_cmds_RC
20081module_expsym_cmds=$lt_module_expsym_cmds_RC
20082
20083# Commands to strip libraries.
20084old_striplib=$lt_old_striplib
20085striplib=$lt_striplib
20086
20087# Dependencies to place before the objects being linked to create a
20088# shared library.
20089predep_objects=$lt_predep_objects_RC
20090
20091# Dependencies to place after the objects being linked to create a
20092# shared library.
20093postdep_objects=$lt_postdep_objects_RC
20094
20095# Dependencies to place before the objects being linked to create a
20096# shared library.
20097predeps=$lt_predeps_RC
20098
20099# Dependencies to place after the objects being linked to create a
20100# shared library.
20101postdeps=$lt_postdeps_RC
20102
20103# The library search path used internally by the compiler when linking
20104# a shared library.
20105compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20106
20107# Method to check whether dependent libraries are shared objects.
20108deplibs_check_method=$lt_deplibs_check_method
20109
20110# Command to use when deplibs_check_method == file_magic.
20111file_magic_cmd=$lt_file_magic_cmd
20112
20113# Flag that allows shared libraries with undefined symbols to be built.
20114allow_undefined_flag=$lt_allow_undefined_flag_RC
20115
20116# Flag that forces no undefined symbols.
20117no_undefined_flag=$lt_no_undefined_flag_RC
20118
20119# Commands used to finish a libtool library installation in a directory.
20120finish_cmds=$lt_finish_cmds
20121
20122# Same as above, but a single script fragment to be evaled but not shown.
20123finish_eval=$lt_finish_eval
20124
20125# Take the output of nm and produce a listing of raw symbols and C names.
20126global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20127
20128# Transform the output of nm in a proper C declaration
20129global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20130
20131# Transform the output of nm in a C name address pair
20132global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20133
20134# This is the shared library runtime path variable.
20135runpath_var=$runpath_var
20136
20137# This is the shared library path variable.
20138shlibpath_var=$shlibpath_var
20139
20140# Is shlibpath searched before the hard-coded library search path?
20141shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20142
20143# How to hardcode a shared library path into an executable.
20144hardcode_action=$hardcode_action_RC
20145
20146# Whether we should hardcode library paths into libraries.
20147hardcode_into_libs=$hardcode_into_libs
20148
20149# Flag to hardcode \$libdir into a binary during linking.
20150# This must work even if \$libdir does not exist.
20151hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20152
20153# If ld is used when linking, flag to hardcode \$libdir into
20154# a binary during linking. This must work even if \$libdir does
20155# not exist.
20156hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20157
20158# Whether we need a single -rpath flag with a separated argument.
20159hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20160
20161# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20162# resulting binary.
20163hardcode_direct=$hardcode_direct_RC
20164
20165# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20166# resulting binary.
20167hardcode_minus_L=$hardcode_minus_L_RC
20168
20169# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20170# the resulting binary.
20171hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20172
20173# Set to yes if building a shared library automatically hardcodes DIR into the library
20174# and all subsequent libraries and executables linked against it.
20175hardcode_automatic=$hardcode_automatic_RC
20176
20177# Variables whose values should be saved in libtool wrapper scripts and
20178# restored at relink time.
20179variables_saved_for_relink="$variables_saved_for_relink"
20180
20181# Whether libtool must link a program against all its dependency libraries.
20182link_all_deplibs=$link_all_deplibs_RC
20183
20184# Compile-time system search path for libraries
20185sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20186
20187# Run-time system search path for libraries
20188sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20189
20190# Fix the shell variable \$srcfile for the compiler.
20191fix_srcfile_path="$fix_srcfile_path_RC"
20192
20193# Set to yes if exported symbols are required.
20194always_export_symbols=$always_export_symbols_RC
20195
20196# The commands to list exported symbols.
20197export_symbols_cmds=$lt_export_symbols_cmds_RC
20198
20199# The commands to extract the exported symbol list from a shared archive.
20200extract_expsyms_cmds=$lt_extract_expsyms_cmds
20201
20202# Symbols that should not be listed in the preloaded symbols.
20203exclude_expsyms=$lt_exclude_expsyms_RC
20204
20205# Symbols that must always be exported.
20206include_expsyms=$lt_include_expsyms_RC
20207
20208# ### END LIBTOOL TAG CONFIG: $tagname
20209
20210__EOF__
20211
20212
20213else
20214 # If there is no Makefile yet, we rely on a make rule to execute
20215 # `config.status --recheck' to rerun these tests and create the
20216 # libtool script then.
20217 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20218 if test -f "$ltmain_in"; then
20219 test -f Makefile && make "$ltmain"
20220 fi
20221fi
20222
20223
20224ac_ext=c
20225ac_cpp='$CPP $CPPFLAGS'
20226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20228ac_compiler_gnu=$ac_cv_c_compiler_gnu
20229
20230CC="$lt_save_CC"
20231
20232 ;;
20233
20234 *)
20235 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20236echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20237 { (exit 1); exit 1; }; }
20238 ;;
20239 esac
20240
20241 # Append the new tag name to the list of available tags.
20242 if test -n "$tagname" ; then
20243 available_tags="$available_tags $tagname"
20244 fi
20245 fi
20246 done
20247 IFS="$lt_save_ifs"
20248
20249 # Now substitute the updated list of available tags.
20250 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20251 mv "${ofile}T" "$ofile"
20252 chmod +x "$ofile"
20253 else
20254 rm -f "${ofile}T"
20255 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20256echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20257 { (exit 1); exit 1; }; }
20258 fi
20259fi
20260
20261
20262
20263# This can be used to rebuild libtool when needed
20264LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20265
20266# Always use our own libtool.
20267LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20268
20269# Prevent multiple expansion
20270
20271
20272
20273
20274
20275
20276
20277
20278
20279
20280
20281
20282
20283
20284
20285
20286
20287
20288
20289
20290
20291# gtk-doc
20292
20293
20294if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20295 if test -n "$ac_tool_prefix"; then
20296 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20297set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20298{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20300if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20301 echo $ECHO_N "(cached) $ECHO_C" >&6
20302else
20303 case $PKG_CONFIG in
20304 [\\/]* | ?:[\\/]*)
20305 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20306 ;;
20307 *)
20308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20309for as_dir in $PATH
20310do
20311 IFS=$as_save_IFS
20312 test -z "$as_dir" && as_dir=.
20313 for ac_exec_ext in '' $ac_executable_extensions; do
20314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20315 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20317 break 2
20318 fi
20319done
20320done
20321IFS=$as_save_IFS
20322
20323 ;;
20324esac
20325fi
20326PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20327if test -n "$PKG_CONFIG"; then
20328 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20329echo "${ECHO_T}$PKG_CONFIG" >&6; }
20330else
20331 { echo "$as_me:$LINENO: result: no" >&5
20332echo "${ECHO_T}no" >&6; }
20333fi
20334
20335
20336fi
20337if test -z "$ac_cv_path_PKG_CONFIG"; then
20338 ac_pt_PKG_CONFIG=$PKG_CONFIG
20339 # Extract the first word of "pkg-config", so it can be a program name with args.
20340set dummy pkg-config; ac_word=$2
20341{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20343if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20344 echo $ECHO_N "(cached) $ECHO_C" >&6
20345else
20346 case $ac_pt_PKG_CONFIG in
20347 [\\/]* | ?:[\\/]*)
20348 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20349 ;;
20350 *)
20351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20352for as_dir in $PATH
20353do
20354 IFS=$as_save_IFS
20355 test -z "$as_dir" && as_dir=.
20356 for ac_exec_ext in '' $ac_executable_extensions; do
20357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20358 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20360 break 2
20361 fi
20362done
20363done
20364IFS=$as_save_IFS
20365
20366 ;;
20367esac
20368fi
20369ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20370if test -n "$ac_pt_PKG_CONFIG"; then
20371 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20372echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
20373else
20374 { echo "$as_me:$LINENO: result: no" >&5
20375echo "${ECHO_T}no" >&6; }
20376fi
20377
20378 if test "x$ac_pt_PKG_CONFIG" = x; then
20379 PKG_CONFIG=""
20380 else
20381 case $cross_compiling:$ac_tool_warned in
20382yes:)
20383{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20384whose name does not start with the host triplet. If you think this
20385configuration is useful to you, please write to autoconf@gnu.org." >&5
20386echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20387whose name does not start with the host triplet. If you think this
20388configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20389ac_tool_warned=yes ;;
20390esac
20391 PKG_CONFIG=$ac_pt_PKG_CONFIG
20392 fi
20393else
20394 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20395fi
20396
20397fi
20398if test -n "$PKG_CONFIG"; then
20399 _pkg_min_version=0.9.0
20400 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20401echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
20402 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20403 { echo "$as_me:$LINENO: result: yes" >&5
20404echo "${ECHO_T}yes" >&6; }
20405 else
20406 { echo "$as_me:$LINENO: result: no" >&5
20407echo "${ECHO_T}no" >&6; }
20408 PKG_CONFIG=""
20409 fi
20410
20411fi
20412
20413
20414# Check whether --with-html-dir was given.
20415if test "${with_html_dir+set}" = set; then
20416 withval=$with_html_dir;
20417else
20418 with_html_dir='${datadir}/gtk-doc/html'
20419fi
20420
20421 HTML_DIR="$with_html_dir"
20422
20423
20424 # Check whether --enable-gtk-doc was given.
20425if test "${enable_gtk_doc+set}" = set; then
20426 enableval=$enable_gtk_doc;
20427else
20428 enable_gtk_doc=no
20429fi
20430
20431
20432 if test x$enable_gtk_doc = xyes; then
20433 if test -n "$PKG_CONFIG" && \
20434 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk-doc\"") >&5
20435 ($PKG_CONFIG --exists --print-errors "gtk-doc") 2>&5
20436 ac_status=$?
20437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438 (exit $ac_status); }; then
20439 :
20440else
20441 { { echo "$as_me:$LINENO: error: gtk-doc not installed and --enable-gtk-doc requested" >&5
20442echo "$as_me: error: gtk-doc not installed and --enable-gtk-doc requested" >&2;}
20443 { (exit 1); exit 1; }; }
20444fi
20445 fi
20446
20447 { echo "$as_me:$LINENO: checking whether to build gtk-doc documentation" >&5
20448echo $ECHO_N "checking whether to build gtk-doc documentation... $ECHO_C" >&6; }
20449 { echo "$as_me:$LINENO: result: $enable_gtk_doc" >&5
20450echo "${ECHO_T}$enable_gtk_doc" >&6; }
20451
20452 for ac_prog in gtkdoc-check
20453do
20454 # Extract the first word of "$ac_prog", so it can be a program name with args.
20455set dummy $ac_prog; ac_word=$2
20456{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20458if test "${ac_cv_path_GTKDOC_CHECK+set}" = set; then
20459 echo $ECHO_N "(cached) $ECHO_C" >&6
20460else
20461 case $GTKDOC_CHECK in
20462 [\\/]* | ?:[\\/]*)
20463 ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
20464 ;;
20465 *)
20466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20467for as_dir in $PATH
20468do
20469 IFS=$as_save_IFS
20470 test -z "$as_dir" && as_dir=.
20471 for ac_exec_ext in '' $ac_executable_extensions; do
20472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20473 ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
20474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20475 break 2
20476 fi
20477done
20478done
20479IFS=$as_save_IFS
20480
20481 ;;
20482esac
20483fi
20484GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
20485if test -n "$GTKDOC_CHECK"; then
20486 { echo "$as_me:$LINENO: result: $GTKDOC_CHECK" >&5
20487echo "${ECHO_T}$GTKDOC_CHECK" >&6; }
20488else
20489 { echo "$as_me:$LINENO: result: no" >&5
20490echo "${ECHO_T}no" >&6; }
20491fi
20492
20493
20494 test -n "$GTKDOC_CHECK" && break
20495done
20496
20497
20498 if test x$enable_gtk_doc = xyes; then
20499 ENABLE_GTK_DOC_TRUE=
20500 ENABLE_GTK_DOC_FALSE='#'
20501else
20502 ENABLE_GTK_DOC_TRUE='#'
20503 ENABLE_GTK_DOC_FALSE=
20504fi
20505
20506 if test -n "$LIBTOOL"; then
20507 GTK_DOC_USE_LIBTOOL_TRUE=
20508 GTK_DOC_USE_LIBTOOL_FALSE='#'
20509else
20510 GTK_DOC_USE_LIBTOOL_TRUE='#'
20511 GTK_DOC_USE_LIBTOOL_FALSE=
20512fi
20513
20514
20515
20516# glib
20517# Check whether --enable-glibtest was given.
20518if test "${enable_glibtest+set}" = set; then
20519 enableval=$enable_glibtest;
20520else
20521 enable_glibtest=yes
20522fi
20523
20524
20525 pkg_config_args=glib-2.0
20526 for module in . gmodule gobject
20527 do
20528 case "$module" in
20529 gmodule)
20530 pkg_config_args="$pkg_config_args gmodule-2.0"
20531 ;;
20532 gmodule-no-export)
20533 pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
20534 ;;
20535 gobject)
20536 pkg_config_args="$pkg_config_args gobject-2.0"
20537 ;;
20538 gthread)
20539 pkg_config_args="$pkg_config_args gthread-2.0"
20540 ;;
20541 esac
20542 done
20543
20544 # Extract the first word of "pkg-config", so it can be a program name with args.
20545set dummy pkg-config; ac_word=$2
20546{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20548if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20549 echo $ECHO_N "(cached) $ECHO_C" >&6
20550else
20551 case $PKG_CONFIG in
20552 [\\/]* | ?:[\\/]*)
20553 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20554 ;;
20555 *)
20556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20557for as_dir in $PATH
20558do
20559 IFS=$as_save_IFS
20560 test -z "$as_dir" && as_dir=.
20561 for ac_exec_ext in '' $ac_executable_extensions; do
20562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20563 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20565 break 2
20566 fi
20567done
20568done
20569IFS=$as_save_IFS
20570
20571 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20572 ;;
20573esac
20574fi
20575PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20576if test -n "$PKG_CONFIG"; then
20577 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20578echo "${ECHO_T}$PKG_CONFIG" >&6; }
20579else
20580 { echo "$as_me:$LINENO: result: no" >&5
20581echo "${ECHO_T}no" >&6; }
20582fi
20583
20584
20585
20586 no_glib=""
20587
20588 if test x$PKG_CONFIG != xno ; then
20589 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then
20590 :
20591 else
20592 echo *** pkg-config too old; version 0.7 or better required.
20593 no_glib=yes
20594 PKG_CONFIG=no
20595 fi
20596 else
20597 no_glib=yes
20598 fi
20599
20600 min_glib_version=2.0.0
20601 { echo "$as_me:$LINENO: checking for GLIB - version >= $min_glib_version" >&5
20602echo $ECHO_N "checking for GLIB - version >= $min_glib_version... $ECHO_C" >&6; }
20603
20604 if test x$PKG_CONFIG != xno ; then
20605 ## don't try to run the test against uninstalled libtool libs
20606 if $PKG_CONFIG --uninstalled $pkg_config_args; then
20607 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
20608 enable_glibtest=no
20609 fi
20610
20611 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
20612 :
20613 else
20614 no_glib=yes
20615 fi
20616 fi
20617
20618 if test x"$no_glib" = x ; then
20619 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
20620 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
20621 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
20622
20623 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
20624 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
20625 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
20626 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20627 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
20628 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20629 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
20630 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20631 if test "x$enable_glibtest" = "xyes" ; then
20632 ac_save_CFLAGS="$CFLAGS"
20633 ac_save_LIBS="$LIBS"
20634 CFLAGS="$CFLAGS $GLIB_CFLAGS"
20635 LIBS="$GLIB_LIBS $LIBS"
20636 rm -f conf.glibtest
20637 if test "$cross_compiling" = yes; then
20638 echo $ac_n "cross compiling; assumed OK... $ac_c"
20639else
20640 cat >conftest.$ac_ext <<_ACEOF
20641/* confdefs.h. */
20642_ACEOF
20643cat confdefs.h >>conftest.$ac_ext
20644cat >>conftest.$ac_ext <<_ACEOF
20645/* end confdefs.h. */
20646
20647#include <glib.h>
20648#include <stdio.h>
20649#include <stdlib.h>
20650
20651int
20652main ()
20653{
20654 int major, minor, micro;
20655 char *tmp_version;
20656
20657 system ("touch conf.glibtest");
20658
20659 /* HP/UX 9 (%@#!) writes to sscanf strings */
20660 tmp_version = g_strdup("$min_glib_version");
20661 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20662 printf("%s, bad version string\n", "$min_glib_version");
20663 exit(1);
20664 }
20665
20666 if ((glib_major_version != $glib_config_major_version) ||
20667 (glib_minor_version != $glib_config_minor_version) ||
20668 (glib_micro_version != $glib_config_micro_version))
20669 {
20670 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
20671 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
20672 glib_major_version, glib_minor_version, glib_micro_version);
20673 printf ("*** was found! If pkg-config was correct, then it is best\n");
20674 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
20675 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20676 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20677 printf("*** required on your system.\n");
20678 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
20679 printf("*** to point to the correct configuration files\n");
20680 }
20681 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
20682 (glib_minor_version != GLIB_MINOR_VERSION) ||
20683 (glib_micro_version != GLIB_MICRO_VERSION))
20684 {
20685 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
20686 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
20687 printf("*** library (version %d.%d.%d)\n",
20688 glib_major_version, glib_minor_version, glib_micro_version);
20689 }
20690 else
20691 {
20692 if ((glib_major_version > major) ||
20693 ((glib_major_version == major) && (glib_minor_version > minor)) ||
20694 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
20695 {
20696 return 0;
20697 }
20698 else
20699 {
20700 printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
20701 glib_major_version, glib_minor_version, glib_micro_version);
20702 printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
20703 major, minor, micro);
20704 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
20705 printf("***\n");
20706 printf("*** If you have already installed a sufficiently new version, this error\n");
20707 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
20708 printf("*** being found. The easiest way to fix this is to remove the old version\n");
20709 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
20710 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
20711 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20712 printf("*** so that the correct libraries are found at run-time))\n");
20713 }
20714 }
20715 return 1;
20716}
20717
20718_ACEOF
20719rm -f conftest$ac_exeext
20720if { (ac_try="$ac_link"
20721case "(($ac_try" in
20722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20723 *) ac_try_echo=$ac_try;;
20724esac
20725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20726 (eval "$ac_link") 2>&5
20727 ac_status=$?
20728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20730 { (case "(($ac_try" in
20731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20732 *) ac_try_echo=$ac_try;;
20733esac
20734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20735 (eval "$ac_try") 2>&5
20736 ac_status=$?
20737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20738 (exit $ac_status); }; }; then
20739 :
20740else
20741 echo "$as_me: program exited with status $ac_status" >&5
20742echo "$as_me: failed program was:" >&5
20743sed 's/^/| /' conftest.$ac_ext >&5
20744
20745( exit $ac_status )
20746no_glib=yes
20747fi
20748rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20749fi
20750
20751
20752 CFLAGS="$ac_save_CFLAGS"
20753 LIBS="$ac_save_LIBS"
20754 fi
20755 fi
20756 if test "x$no_glib" = x ; then
20757 { echo "$as_me:$LINENO: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
20758echo "${ECHO_T}yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
20759 :
20760 else
20761 { echo "$as_me:$LINENO: result: no" >&5
20762echo "${ECHO_T}no" >&6; }
20763 if test "$PKG_CONFIG" = "no" ; then
20764 echo "*** A new enough version of pkg-config was not found."
20765 echo "*** See http://www.freedesktop.org/software/pkgconfig/"
20766 else
20767 if test -f conf.glibtest ; then
20768 :
20769 else
20770 echo "*** Could not run GLIB test program, checking why..."
20771 ac_save_CFLAGS="$CFLAGS"
20772 ac_save_LIBS="$LIBS"
20773 CFLAGS="$CFLAGS $GLIB_CFLAGS"
20774 LIBS="$LIBS $GLIB_LIBS"
20775 cat >conftest.$ac_ext <<_ACEOF
20776/* confdefs.h. */
20777_ACEOF
20778cat confdefs.h >>conftest.$ac_ext
20779cat >>conftest.$ac_ext <<_ACEOF
20780/* end confdefs.h. */
20781
20782#include <glib.h>
20783#include <stdio.h>
20784
20785int
20786main ()
20787{
20788 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
20789 ;
20790 return 0;
20791}
20792_ACEOF
20793rm -f conftest.$ac_objext conftest$ac_exeext
20794if { (ac_try="$ac_link"
20795case "(($ac_try" in
20796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20797 *) ac_try_echo=$ac_try;;
20798esac
20799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20800 (eval "$ac_link") 2>conftest.er1
20801 ac_status=$?
20802 grep -v '^ *+' conftest.er1 >conftest.err
20803 rm -f conftest.er1
20804 cat conftest.err >&5
20805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806 (exit $ac_status); } && {
20807 test -z "$ac_c_werror_flag" ||
20808 test ! -s conftest.err
20809 } && test -s conftest$ac_exeext &&
20810 $as_test_x conftest$ac_exeext; then
20811 echo "*** The test program compiled, but did not run. This usually means"
20812 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
20813 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
20814 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20815 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20816 echo "*** is required on your system"
20817 echo "***"
20818 echo "*** If you have an old version installed, it is best to remove it, although"
20819 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20820else
20821 echo "$as_me: failed program was:" >&5
20822sed 's/^/| /' conftest.$ac_ext >&5
20823
20824 echo "*** The test program failed to compile or link. See the file config.log for the"
20825 echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
20826fi
20827
20828rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20829 conftest$ac_exeext conftest.$ac_ext
20830 CFLAGS="$ac_save_CFLAGS"
20831 LIBS="$ac_save_LIBS"
20832 fi
20833 fi
20834 GLIB_CFLAGS=""
20835 GLIB_LIBS=""
20836 GLIB_GENMARSHAL=""
20837 GOBJECT_QUERY=""
20838 GLIB_MKENUMS=""
20839 { { echo "$as_me:$LINENO: error: glib >= 2.0 is needed" >&5
20840echo "$as_me: error: glib >= 2.0 is needed" >&2;}
20841 { (exit 1); exit 1; }; }
20842 fi
20843
20844
20845
20846
20847
20848 rm -f conf.glibtest
20849
20850
20851# gdk-pixbuf
20852# Check whether --enable-gtktest was given.
20853if test "${enable_gtktest+set}" = set; then
20854 enableval=$enable_gtktest;
20855else
20856 enable_gtktest=yes
20857fi
20858
20859
20860 pkg_config_args=gtk+-2.0
20861 for module in .
20862 do
20863 case "$module" in
20864 gthread)
20865 pkg_config_args="$pkg_config_args gthread-2.0"
20866 ;;
20867 esac
20868 done
20869
20870 no_gtk=""
20871
20872 # Extract the first word of "pkg-config", so it can be a program name with args.
20873set dummy pkg-config; ac_word=$2
20874{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20876if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20877 echo $ECHO_N "(cached) $ECHO_C" >&6
20878else
20879 case $PKG_CONFIG in
20880 [\\/]* | ?:[\\/]*)
20881 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20882 ;;
20883 *)
20884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20885for as_dir in $PATH
20886do
20887 IFS=$as_save_IFS
20888 test -z "$as_dir" && as_dir=.
20889 for ac_exec_ext in '' $ac_executable_extensions; do
20890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20891 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20893 break 2
20894 fi
20895done
20896done
20897IFS=$as_save_IFS
20898
20899 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20900 ;;
20901esac
20902fi
20903PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20904if test -n "$PKG_CONFIG"; then
20905 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20906echo "${ECHO_T}$PKG_CONFIG" >&6; }
20907else
20908 { echo "$as_me:$LINENO: result: no" >&5
20909echo "${ECHO_T}no" >&6; }
20910fi
20911
20912
20913
20914 if test x$PKG_CONFIG != xno ; then
20915 if pkg-config --atleast-pkgconfig-version 0.7 ; then
20916 :
20917 else
20918 echo "*** pkg-config too old; version 0.7 or better required."
20919 no_gtk=yes
20920 PKG_CONFIG=no
20921 fi
20922 else
20923 no_gtk=yes
20924 fi
20925
20926 min_gtk_version=2.0.0
20927 { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
20928echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; }
20929
20930 if test x$PKG_CONFIG != xno ; then
20931 ## don't try to run the test against uninstalled libtool libs
20932 if $PKG_CONFIG --uninstalled $pkg_config_args; then
20933 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
20934 enable_gtktest=no
20935 fi
20936
20937 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
20938 :
20939 else
20940 no_gtk=yes
20941 fi
20942 fi
20943
20944 if test x"$no_gtk" = x ; then
20945 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
20946 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
20947 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
20948 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20949 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
20950 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20951 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
20952 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20953 if test "x$enable_gtktest" = "xyes" ; then
20954 ac_save_CFLAGS="$CFLAGS"
20955 ac_save_LIBS="$LIBS"
20956 CFLAGS="$CFLAGS $GTK_CFLAGS"
20957 LIBS="$GTK_LIBS $LIBS"
20958 rm -f conf.gtktest
20959 if test "$cross_compiling" = yes; then
20960 echo $ac_n "cross compiling; assumed OK... $ac_c"
20961else
20962 cat >conftest.$ac_ext <<_ACEOF
20963/* confdefs.h. */
20964_ACEOF
20965cat confdefs.h >>conftest.$ac_ext
20966cat >>conftest.$ac_ext <<_ACEOF
20967/* end confdefs.h. */
20968
20969#include <gtk/gtk.h>
20970#include <stdio.h>
20971#include <stdlib.h>
20972
20973int
20974main ()
20975{
20976 int major, minor, micro;
20977 char *tmp_version;
20978
20979 system ("touch conf.gtktest");
20980
20981 /* HP/UX 9 (%@#!) writes to sscanf strings */
20982 tmp_version = g_strdup("$min_gtk_version");
20983 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20984 printf("%s, bad version string\n", "$min_gtk_version");
20985 exit(1);
20986 }
20987
20988 if ((gtk_major_version != $gtk_config_major_version) ||
20989 (gtk_minor_version != $gtk_config_minor_version) ||
20990 (gtk_micro_version != $gtk_config_micro_version))
20991 {
20992 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
20993 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20994 gtk_major_version, gtk_minor_version, gtk_micro_version);
20995 printf ("*** was found! If pkg-config was correct, then it is best\n");
20996 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20997 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20998 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20999 printf("*** required on your system.\n");
21000 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
21001 printf("*** to point to the correct configuration files\n");
21002 }
21003 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
21004 (gtk_minor_version != GTK_MINOR_VERSION) ||
21005 (gtk_micro_version != GTK_MICRO_VERSION))
21006 {
21007 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
21008 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
21009 printf("*** library (version %d.%d.%d)\n",
21010 gtk_major_version, gtk_minor_version, gtk_micro_version);
21011 }
21012 else
21013 {
21014 if ((gtk_major_version > major) ||
21015 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
21016 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
21017 {
21018 return 0;
21019 }
21020 else
21021 {
21022 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
21023 gtk_major_version, gtk_minor_version, gtk_micro_version);
21024 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
21025 major, minor, micro);
21026 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
21027 printf("***\n");
21028 printf("*** If you have already installed a sufficiently new version, this error\n");
21029 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
21030 printf("*** being found. The easiest way to fix this is to remove the old version\n");
21031 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
21032 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
21033 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
21034 printf("*** so that the correct libraries are found at run-time))\n");
21035 }
21036 }
21037 return 1;
21038}
21039
21040_ACEOF
21041rm -f conftest$ac_exeext
21042if { (ac_try="$ac_link"
21043case "(($ac_try" in
21044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21045 *) ac_try_echo=$ac_try;;
21046esac
21047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21048 (eval "$ac_link") 2>&5
21049 ac_status=$?
21050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21052 { (case "(($ac_try" in
21053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21054 *) ac_try_echo=$ac_try;;
21055esac
21056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21057 (eval "$ac_try") 2>&5
21058 ac_status=$?
21059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060 (exit $ac_status); }; }; then
21061 :
21062else
21063 echo "$as_me: program exited with status $ac_status" >&5
21064echo "$as_me: failed program was:" >&5
21065sed 's/^/| /' conftest.$ac_ext >&5
21066
21067( exit $ac_status )
21068no_gtk=yes
21069fi
21070rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21071fi
21072
21073
21074 CFLAGS="$ac_save_CFLAGS"
21075 LIBS="$ac_save_LIBS"
21076 fi
21077 fi
21078 if test "x$no_gtk" = x ; then
21079 { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
21080echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
21081 have_gtk2=true
21082 else
21083 { echo "$as_me:$LINENO: result: no" >&5
21084echo "${ECHO_T}no" >&6; }
21085 if test "$PKG_CONFIG" = "no" ; then
21086 echo "*** A new enough version of pkg-config was not found."
21087 echo "*** See http://pkgconfig.sourceforge.net"
21088 else
21089 if test -f conf.gtktest ; then
21090 :
21091 else
21092 echo "*** Could not run GTK+ test program, checking why..."
21093 ac_save_CFLAGS="$CFLAGS"
21094 ac_save_LIBS="$LIBS"
21095 CFLAGS="$CFLAGS $GTK_CFLAGS"
21096 LIBS="$LIBS $GTK_LIBS"
21097 cat >conftest.$ac_ext <<_ACEOF
21098/* confdefs.h. */
21099_ACEOF
21100cat confdefs.h >>conftest.$ac_ext
21101cat >>conftest.$ac_ext <<_ACEOF
21102/* end confdefs.h. */
21103
21104#include <gtk/gtk.h>
21105#include <stdio.h>
21106
21107int
21108main ()
21109{
21110 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
21111 ;
21112 return 0;
21113}
21114_ACEOF
21115rm -f conftest.$ac_objext conftest$ac_exeext
21116if { (ac_try="$ac_link"
21117case "(($ac_try" in
21118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21119 *) ac_try_echo=$ac_try;;
21120esac
21121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21122 (eval "$ac_link") 2>conftest.er1
21123 ac_status=$?
21124 grep -v '^ *+' conftest.er1 >conftest.err
21125 rm -f conftest.er1
21126 cat conftest.err >&5
21127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21128 (exit $ac_status); } && {
21129 test -z "$ac_c_werror_flag" ||
21130 test ! -s conftest.err
21131 } && test -s conftest$ac_exeext &&
21132 $as_test_x conftest$ac_exeext; then
21133 echo "*** The test program compiled, but did not run. This usually means"
21134 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
21135 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
21136 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
21137 echo "*** to the installed location Also, make sure you have run ldconfig if that"
21138 echo "*** is required on your system"
21139 echo "***"
21140 echo "*** If you have an old version installed, it is best to remove it, although"
21141 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
21142else
21143 echo "$as_me: failed program was:" >&5
21144sed 's/^/| /' conftest.$ac_ext >&5
21145
21146 echo "*** The test program failed to compile or link. See the file config.log for the"
21147 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
21148fi
21149
21150rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21151 conftest$ac_exeext conftest.$ac_ext
21152 CFLAGS="$ac_save_CFLAGS"
21153 LIBS="$ac_save_LIBS"
21154 fi
21155 fi
21156 GTK_CFLAGS=""
21157 GTK_LIBS=""
21158 :
21159 fi
21160
21161
21162 rm -f conf.gtktest
21163
21164if test "x$have_gtk2" = "xtrue" ; then
21165GDKPIXBUF_CFLAGS=$GTK_CFLAGS
21166GDKPIXBUF_LIBS=$GTK_LIBS
21167
21168
21169fi
21170 if test "x$have_gtk2" = "xtrue"; then
21171 HAVE_GDKPIXBUF_TRUE=
21172 HAVE_GDKPIXBUF_FALSE='#'
21173else
21174 HAVE_GDKPIXBUF_TRUE='#'
21175 HAVE_GDKPIXBUF_FALSE=
21176fi
21177
21178
21179# libxml2
21180
21181
21182# Check whether --with-xml-prefix was given.
21183if test "${with_xml_prefix+set}" = set; then
21184 withval=$with_xml_prefix; xml_config_prefix="$withval"
21185else
21186 xml_config_prefix=""
21187fi
21188
21189
21190# Check whether --with-xml-exec-prefix was given.
21191if test "${with_xml_exec_prefix+set}" = set; then
21192 withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
21193else
21194 xml_config_exec_prefix=""
21195fi
21196
21197# Check whether --enable-xmltest was given.
21198if test "${enable_xmltest+set}" = set; then
21199 enableval=$enable_xmltest;
21200else
21201 enable_xmltest=yes
21202fi
21203
21204
21205 if test x$xml_config_exec_prefix != x ; then
21206 xml_config_args="$xml_config_args"
21207 if test x${XML2_CONFIG+set} != xset ; then
21208 XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
21209 fi
21210 fi
21211 if test x$xml_config_prefix != x ; then
21212 xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
21213 if test x${XML2_CONFIG+set} != xset ; then
21214 XML2_CONFIG=$xml_config_prefix/bin/xml2-config
21215 fi
21216 fi
21217
21218 # Extract the first word of "xml2-config", so it can be a program name with args.
21219set dummy xml2-config; ac_word=$2
21220{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21222if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
21223 echo $ECHO_N "(cached) $ECHO_C" >&6
21224else
21225 case $XML2_CONFIG in
21226 [\\/]* | ?:[\\/]*)
21227 ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
21228 ;;
21229 *)
21230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21231for as_dir in $PATH
21232do
21233 IFS=$as_save_IFS
21234 test -z "$as_dir" && as_dir=.
21235 for ac_exec_ext in '' $ac_executable_extensions; do
21236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21237 ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21239 break 2
21240 fi
21241done
21242done
21243IFS=$as_save_IFS
21244
21245 test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
21246 ;;
21247esac
21248fi
21249XML2_CONFIG=$ac_cv_path_XML2_CONFIG
21250if test -n "$XML2_CONFIG"; then
21251 { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
21252echo "${ECHO_T}$XML2_CONFIG" >&6; }
21253else
21254 { echo "$as_me:$LINENO: result: no" >&5
21255echo "${ECHO_T}no" >&6; }
21256fi
21257
21258
21259 min_xml_version=2.0.0
21260 { echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
21261echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6; }
21262 no_xml=""
21263 if test "$XML2_CONFIG" = "no" ; then
21264 no_xml=yes
21265 else
21266 XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
21267 XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
21268 xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
21269 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21270 xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
21271 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21272 xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
21273 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21274 if test "x$enable_xmltest" = "xyes" ; then
21275 ac_save_CPPFLAGS="$CPPFLAGS"
21276 ac_save_LIBS="$LIBS"
21277 CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
21278 LIBS="$XML_LIBS $LIBS"
21279 rm -f conf.xmltest
21280 if test "$cross_compiling" = yes; then
21281 echo $ac_n "cross compiling; assumed OK... $ac_c"
21282else
21283 cat >conftest.$ac_ext <<_ACEOF
21284/* confdefs.h. */
21285_ACEOF
21286cat confdefs.h >>conftest.$ac_ext
21287cat >>conftest.$ac_ext <<_ACEOF
21288/* end confdefs.h. */
21289
21290#include <stdlib.h>
21291#include <stdio.h>
21292#include <string.h>
21293#include <libxml/xmlversion.h>
21294
21295int
21296main()
21297{
21298 int xml_major_version, xml_minor_version, xml_micro_version;
21299 int major, minor, micro;
21300 char *tmp_version;
21301
21302 system("touch conf.xmltest");
21303
21304 /* Capture xml2-config output via autoconf/configure variables */
21305 /* HP/UX 9 (%@#!) writes to sscanf strings */
21306 tmp_version = (char *)strdup("$min_xml_version");
21307 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
21308 printf("%s, bad version string from xml2-config\n", "$min_xml_version");
21309 exit(1);
21310 }
21311 free(tmp_version);
21312
21313 /* Capture the version information from the header files */
21314 tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
21315 if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
21316 printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
21317 exit(1);
21318 }
21319 free(tmp_version);
21320
21321 /* Compare xml2-config output to the libxml headers */
21322 if ((xml_major_version != $xml_config_major_version) ||
21323 (xml_minor_version != $xml_config_minor_version) ||
21324 (xml_micro_version != $xml_config_micro_version))
21325 {
21326 printf("*** libxml header files (version %d.%d.%d) do not match\n",
21327 xml_major_version, xml_minor_version, xml_micro_version);
21328 printf("*** xml2-config (version %d.%d.%d)\n",
21329 $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
21330 return 1;
21331 }
21332/* Compare the headers to the library to make sure we match */
21333 /* Less than ideal -- doesn't provide us with return value feedback,
21334 * only exits if there's a serious mismatch between header and library.
21335 */
21336 LIBXML_TEST_VERSION;
21337
21338 /* Test that the library is greater than our minimum version */
21339 if ((xml_major_version > major) ||
21340 ((xml_major_version == major) && (xml_minor_version > minor)) ||
21341 ((xml_major_version == major) && (xml_minor_version == minor) &&
21342 (xml_micro_version >= micro)))
21343 {
21344 return 0;
21345 }
21346 else
21347 {
21348 printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
21349 xml_major_version, xml_minor_version, xml_micro_version);
21350 printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
21351 major, minor, micro);
21352 printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
21353 printf("***\n");
21354 printf("*** If you have already installed a sufficiently new version, this error\n");
21355 printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
21356 printf("*** being found. The easiest way to fix this is to remove the old version\n");
21357 printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
21358 printf("*** correct copy of xml2-config. (In this case, you will have to\n");
21359 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
21360 printf("*** so that the correct libraries are found at run-time))\n");
21361 }
21362 return 1;
21363}
21364
21365_ACEOF
21366rm -f conftest$ac_exeext
21367if { (ac_try="$ac_link"
21368case "(($ac_try" in
21369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21370 *) ac_try_echo=$ac_try;;
21371esac
21372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21373 (eval "$ac_link") 2>&5
21374 ac_status=$?
21375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21376 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21377 { (case "(($ac_try" in
21378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21379 *) ac_try_echo=$ac_try;;
21380esac
21381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21382 (eval "$ac_try") 2>&5
21383 ac_status=$?
21384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385 (exit $ac_status); }; }; then
21386 :
21387else
21388 echo "$as_me: program exited with status $ac_status" >&5
21389echo "$as_me: failed program was:" >&5
21390sed 's/^/| /' conftest.$ac_ext >&5
21391
21392( exit $ac_status )
21393no_xml=yes
21394fi
21395rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21396fi
21397
21398
21399 CPPFLAGS="$ac_save_CPPFLAGS"
21400 LIBS="$ac_save_LIBS"
21401 fi
21402 fi
21403
21404 if test "x$no_xml" = x ; then
21405 { echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
21406echo "${ECHO_T}yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
21407 have_libxml2=true
21408 else
21409 { echo "$as_me:$LINENO: result: no" >&5
21410echo "${ECHO_T}no" >&6; }
21411 if test "$XML2_CONFIG" = "no" ; then
21412 echo "*** The xml2-config script installed by LIBXML could not be found"
21413 echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
21414 echo "*** your path, or set the XML2_CONFIG environment variable to the"
21415 echo "*** full path to xml2-config."
21416 else
21417 if test -f conf.xmltest ; then
21418 :
21419 else
21420 echo "*** Could not run libxml test program, checking why..."
21421 CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
21422 LIBS="$LIBS $XML_LIBS"
21423 cat >conftest.$ac_ext <<_ACEOF
21424/* confdefs.h. */
21425_ACEOF
21426cat confdefs.h >>conftest.$ac_ext
21427cat >>conftest.$ac_ext <<_ACEOF
21428/* end confdefs.h. */
21429
21430#include <libxml/xmlversion.h>
21431#include <stdio.h>
21432
21433int
21434main ()
21435{
21436 LIBXML_TEST_VERSION; return 0;
21437 ;
21438 return 0;
21439}
21440_ACEOF
21441rm -f conftest.$ac_objext conftest$ac_exeext
21442if { (ac_try="$ac_link"
21443case "(($ac_try" in
21444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21445 *) ac_try_echo=$ac_try;;
21446esac
21447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21448 (eval "$ac_link") 2>conftest.er1
21449 ac_status=$?
21450 grep -v '^ *+' conftest.er1 >conftest.err
21451 rm -f conftest.er1
21452 cat conftest.err >&5
21453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21454 (exit $ac_status); } && {
21455 test -z "$ac_c_werror_flag" ||
21456 test ! -s conftest.err
21457 } && test -s conftest$ac_exeext &&
21458 $as_test_x conftest$ac_exeext; then
21459 echo "*** The test program compiled, but did not run. This usually means"
21460 echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
21461 echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
21462 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
21463 echo "*** to the installed location Also, make sure you have run ldconfig if that"
21464 echo "*** is required on your system"
21465 echo "***"
21466 echo "*** If you have an old version installed, it is best to remove it, although"
21467 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
21468else
21469 echo "$as_me: failed program was:" >&5
21470sed 's/^/| /' conftest.$ac_ext >&5
21471
21472 echo "*** The test program failed to compile or link. See the file config.log for the"
21473 echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
21474 echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
21475 echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
21476fi
21477
21478rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21479 conftest$ac_exeext conftest.$ac_ext
21480 CPPFLAGS="$ac_save_CPPFLAGS"
21481 LIBS="$ac_save_LIBS"
21482 fi
21483 fi
21484
21485 XML_CPPFLAGS=""
21486 XML_LIBS=""
21487 :
21488 fi
21489
21490
21491 rm -f conf.xmltest
21492
21493if test "x$have_libxml2" = "xtrue" ; then
21494LIBXML2_CFLAGS=$XML_CPPFLAGS
21495LIBXML2_LIBS=$XML_LIBS
21496
21497
21498fi
21499 if test "x$have_libxml2" = "xtrue"; then
21500 HAVE_LIBXML2_TRUE=
21501 HAVE_LIBXML2_FALSE='#'
21502else
21503 HAVE_LIBXML2_TRUE='#'
21504 HAVE_LIBXML2_FALSE=
21505fi
21506
21507
21508# libgsf
21509
21510pkg_failed=no
21511{ echo "$as_me:$LINENO: checking for LIBGSF" >&5
21512echo $ECHO_N "checking for LIBGSF... $ECHO_C" >&6; }
21513
21514if test -n "$PKG_CONFIG"; then
21515 if test -n "$LIBGSF_CFLAGS"; then
21516 pkg_cv_LIBGSF_CFLAGS="$LIBGSF_CFLAGS"
21517 else
21518 if test -n "$PKG_CONFIG" && \
21519 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgsf-1 >= 1.0.0\"") >&5
21520 ($PKG_CONFIG --exists --print-errors "libgsf-1 >= 1.0.0") 2>&5
21521 ac_status=$?
21522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21523 (exit $ac_status); }; then
21524 pkg_cv_LIBGSF_CFLAGS=`$PKG_CONFIG --cflags "libgsf-1 >= 1.0.0" 2>/dev/null`
21525else
21526 pkg_failed=yes
21527fi
21528 fi
21529else
21530 pkg_failed=untried
21531fi
21532if test -n "$PKG_CONFIG"; then
21533 if test -n "$LIBGSF_LIBS"; then
21534 pkg_cv_LIBGSF_LIBS="$LIBGSF_LIBS"
21535 else
21536 if test -n "$PKG_CONFIG" && \
21537 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgsf-1 >= 1.0.0\"") >&5
21538 ($PKG_CONFIG --exists --print-errors "libgsf-1 >= 1.0.0") 2>&5
21539 ac_status=$?
21540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21541 (exit $ac_status); }; then
21542 pkg_cv_LIBGSF_LIBS=`$PKG_CONFIG --libs "libgsf-1 >= 1.0.0" 2>/dev/null`
21543else
21544 pkg_failed=yes
21545fi
21546 fi
21547else
21548 pkg_failed=untried
21549fi
21550
21551
21552
21553if test $pkg_failed = yes; then
21554
21555if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21556 _pkg_short_errors_supported=yes
21557else
21558 _pkg_short_errors_supported=no
21559fi
21560 if test $_pkg_short_errors_supported = yes; then
21561 LIBGSF_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgsf-1 >= 1.0.0"`
21562 else
21563 LIBGSF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgsf-1 >= 1.0.0"`
21564 fi
21565 # Put the nasty error message in config.log where it belongs
21566 echo "$LIBGSF_PKG_ERRORS" >&5
21567
21568 { echo "$as_me:$LINENO: result: no" >&5
21569echo "${ECHO_T}no" >&6; }
21570 have_libgsf=false
21571elif test $pkg_failed = untried; then
21572 have_libgsf=false
21573else
21574 LIBGSF_CFLAGS=$pkg_cv_LIBGSF_CFLAGS
21575 LIBGSF_LIBS=$pkg_cv_LIBGSF_LIBS
21576 { echo "$as_me:$LINENO: result: yes" >&5
21577echo "${ECHO_T}yes" >&6; }
21578 have_libgsf=true
21579fi
21580if test "x$have_libgsf" = "xtrue" ; then
21581
21582cat >>confdefs.h <<\_ACEOF
21583#define HAVE_LIBGSF 1
21584_ACEOF
21585
21586fi
21587 if test "x$have_libgsf" = "xtrue"; then
21588 HAVE_LIBGSF_TRUE=
21589 HAVE_LIBGSF_FALSE='#'
21590else
21591 HAVE_LIBGSF_TRUE='#'
21592 HAVE_LIBGSF_FALSE=
21593fi
21594
21595
21596# libmagic
21597# Check whether --enable-libmagic was given.
21598if test "${enable_libmagic+set}" = set; then
21599 enableval=$enable_libmagic; if test "$enableval" = "no" ; then disable_libmagic=true ; fi
21600fi
21601
21602if test "x$disable_libmagic" != "xtrue" ; then
21603if test "${ac_cv_header_magic_h+set}" = set; then
21604 { echo "$as_me:$LINENO: checking for magic.h" >&5
21605echo $ECHO_N "checking for magic.h... $ECHO_C" >&6; }
21606if test "${ac_cv_header_magic_h+set}" = set; then
21607 echo $ECHO_N "(cached) $ECHO_C" >&6
21608fi
21609{ echo "$as_me:$LINENO: result: $ac_cv_header_magic_h" >&5
21610echo "${ECHO_T}$ac_cv_header_magic_h" >&6; }
21611else
21612 # Is the header compilable?
21613{ echo "$as_me:$LINENO: checking magic.h usability" >&5
21614echo $ECHO_N "checking magic.h usability... $ECHO_C" >&6; }
21615cat >conftest.$ac_ext <<_ACEOF
21616/* confdefs.h. */
21617_ACEOF
21618cat confdefs.h >>conftest.$ac_ext
21619cat >>conftest.$ac_ext <<_ACEOF
21620/* end confdefs.h. */
21621$ac_includes_default
21622#include <magic.h>
21623_ACEOF
21624rm -f conftest.$ac_objext
21625if { (ac_try="$ac_compile"
21626case "(($ac_try" in
21627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21628 *) ac_try_echo=$ac_try;;
21629esac
21630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21631 (eval "$ac_compile") 2>conftest.er1
21632 ac_status=$?
21633 grep -v '^ *+' conftest.er1 >conftest.err
21634 rm -f conftest.er1
21635 cat conftest.err >&5
21636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21637 (exit $ac_status); } && {
21638 test -z "$ac_c_werror_flag" ||
21639 test ! -s conftest.err
21640 } && test -s conftest.$ac_objext; then
21641 ac_header_compiler=yes
21642else
21643 echo "$as_me: failed program was:" >&5
21644sed 's/^/| /' conftest.$ac_ext >&5
21645
21646 ac_header_compiler=no
21647fi
21648
21649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21650{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21651echo "${ECHO_T}$ac_header_compiler" >&6; }
21652
21653# Is the header present?
21654{ echo "$as_me:$LINENO: checking magic.h presence" >&5
21655echo $ECHO_N "checking magic.h presence... $ECHO_C" >&6; }
21656cat >conftest.$ac_ext <<_ACEOF
21657/* confdefs.h. */
21658_ACEOF
21659cat confdefs.h >>conftest.$ac_ext
21660cat >>conftest.$ac_ext <<_ACEOF
21661/* end confdefs.h. */
21662#include <magic.h>
21663_ACEOF
21664if { (ac_try="$ac_cpp conftest.$ac_ext"
21665case "(($ac_try" in
21666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21667 *) ac_try_echo=$ac_try;;
21668esac
21669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21671 ac_status=$?
21672 grep -v '^ *+' conftest.er1 >conftest.err
21673 rm -f conftest.er1
21674 cat conftest.err >&5
21675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21676 (exit $ac_status); } >/dev/null && {
21677 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21678 test ! -s conftest.err
21679 }; then
21680 ac_header_preproc=yes
21681else
21682 echo "$as_me: failed program was:" >&5
21683sed 's/^/| /' conftest.$ac_ext >&5
21684
21685 ac_header_preproc=no
21686fi
21687
21688rm -f conftest.err conftest.$ac_ext
21689{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21690echo "${ECHO_T}$ac_header_preproc" >&6; }
21691
21692# So? What about this header?
21693case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21694 yes:no: )
21695 { echo "$as_me:$LINENO: WARNING: magic.h: accepted by the compiler, rejected by the preprocessor!" >&5
21696echo "$as_me: WARNING: magic.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21697 { echo "$as_me:$LINENO: WARNING: magic.h: proceeding with the compiler's result" >&5
21698echo "$as_me: WARNING: magic.h: proceeding with the compiler's result" >&2;}
21699 ac_header_preproc=yes
21700 ;;
21701 no:yes:* )
21702 { echo "$as_me:$LINENO: WARNING: magic.h: present but cannot be compiled" >&5
21703echo "$as_me: WARNING: magic.h: present but cannot be compiled" >&2;}
21704 { echo "$as_me:$LINENO: WARNING: magic.h: check for missing prerequisite headers?" >&5
21705echo "$as_me: WARNING: magic.h: check for missing prerequisite headers?" >&2;}
21706 { echo "$as_me:$LINENO: WARNING: magic.h: see the Autoconf documentation" >&5
21707echo "$as_me: WARNING: magic.h: see the Autoconf documentation" >&2;}
21708 { echo "$as_me:$LINENO: WARNING: magic.h: section \"Present But Cannot Be Compiled\"" >&5
21709echo "$as_me: WARNING: magic.h: section \"Present But Cannot Be Compiled\"" >&2;}
21710 { echo "$as_me:$LINENO: WARNING: magic.h: proceeding with the preprocessor's result" >&5
21711echo "$as_me: WARNING: magic.h: proceeding with the preprocessor's result" >&2;}
21712 { echo "$as_me:$LINENO: WARNING: magic.h: in the future, the compiler will take precedence" >&5
21713echo "$as_me: WARNING: magic.h: in the future, the compiler will take precedence" >&2;}
21714
21715 ;;
21716esac
21717{ echo "$as_me:$LINENO: checking for magic.h" >&5
21718echo $ECHO_N "checking for magic.h... $ECHO_C" >&6; }
21719if test "${ac_cv_header_magic_h+set}" = set; then
21720 echo $ECHO_N "(cached) $ECHO_C" >&6
21721else
21722 ac_cv_header_magic_h=$ac_header_preproc
21723fi
21724{ echo "$as_me:$LINENO: result: $ac_cv_header_magic_h" >&5
21725echo "${ECHO_T}$ac_cv_header_magic_h" >&6; }
21726
21727fi
21728if test $ac_cv_header_magic_h = yes; then
21729 have_magic_h=true
21730fi
21731
21732
21733{ echo "$as_me:$LINENO: checking for magic_open in -lmagic" >&5
21734echo $ECHO_N "checking for magic_open in -lmagic... $ECHO_C" >&6; }
21735if test "${ac_cv_lib_magic_magic_open+set}" = set; then
21736 echo $ECHO_N "(cached) $ECHO_C" >&6
21737else
21738 ac_check_lib_save_LIBS=$LIBS
21739LIBS="-lmagic $LIBS"
21740cat >conftest.$ac_ext <<_ACEOF
21741/* confdefs.h. */
21742_ACEOF
21743cat confdefs.h >>conftest.$ac_ext
21744cat >>conftest.$ac_ext <<_ACEOF
21745/* end confdefs.h. */
21746
21747/* Override any GCC internal prototype to avoid an error.
21748 Use char because int might match the return type of a GCC
21749 builtin and then its argument prototype would still apply. */
21750#ifdef __cplusplus
21751extern "C"
21752#endif
21753char magic_open ();
21754int
21755main ()
21756{
21757return magic_open ();
21758 ;
21759 return 0;
21760}
21761_ACEOF
21762rm -f conftest.$ac_objext conftest$ac_exeext
21763if { (ac_try="$ac_link"
21764case "(($ac_try" in
21765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21766 *) ac_try_echo=$ac_try;;
21767esac
21768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21769 (eval "$ac_link") 2>conftest.er1
21770 ac_status=$?
21771 grep -v '^ *+' conftest.er1 >conftest.err
21772 rm -f conftest.er1
21773 cat conftest.err >&5
21774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21775 (exit $ac_status); } && {
21776 test -z "$ac_c_werror_flag" ||
21777 test ! -s conftest.err
21778 } && test -s conftest$ac_exeext &&
21779 $as_test_x conftest$ac_exeext; then
21780 ac_cv_lib_magic_magic_open=yes
21781else
21782 echo "$as_me: failed program was:" >&5
21783sed 's/^/| /' conftest.$ac_ext >&5
21784
21785 ac_cv_lib_magic_magic_open=no
21786fi
21787
21788rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21789 conftest$ac_exeext conftest.$ac_ext
21790LIBS=$ac_check_lib_save_LIBS
21791fi
21792{ echo "$as_me:$LINENO: result: $ac_cv_lib_magic_magic_open" >&5
21793echo "${ECHO_T}$ac_cv_lib_magic_magic_open" >&6; }
21794if test $ac_cv_lib_magic_magic_open = yes; then
21795 have_magic_open=true
21796fi
21797
21798if test "x$have_magic_h" = "xtrue" && test "x$have_magic_open" = "xtrue"; then
21799have_libmagic=true
21800
21801cat >>confdefs.h <<\_ACEOF
21802#define USE_LIBMAGIC 1
21803_ACEOF
21804
21805
21806 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
21807 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21808 ac_define_dir=`eval echo $libdir/$PACKAGE/libg3d.magic`
21809 ac_define_dir=`eval echo $ac_define_dir`
21810
21811cat >>confdefs.h <<_ACEOF
21812#define MAGIC_FILENAME "$ac_define_dir"
21813_ACEOF
21814
21815
21816MAGIC_LIBS=-lmagic
21817fi
21818fi
21819
21820#AM_CONDITIONAL([USE_LIBMAGIC], test "x$have_libmagic" = "xtrue")
21821
21822# libm
21823
21824{ echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
21825echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
21826if test "${ac_cv_lib_m_sqrt+set}" = set; then
21827 echo $ECHO_N "(cached) $ECHO_C" >&6
21828else
21829 ac_check_lib_save_LIBS=$LIBS
21830LIBS="-lm $LIBS"
21831cat >conftest.$ac_ext <<_ACEOF
21832/* confdefs.h. */
21833_ACEOF
21834cat confdefs.h >>conftest.$ac_ext
21835cat >>conftest.$ac_ext <<_ACEOF
21836/* end confdefs.h. */
21837
21838/* Override any GCC internal prototype to avoid an error.
21839 Use char because int might match the return type of a GCC
21840 builtin and then its argument prototype would still apply. */
21841#ifdef __cplusplus
21842extern "C"
21843#endif
21844char sqrt ();
21845int
21846main ()
21847{
21848return sqrt ();
21849 ;
21850 return 0;
21851}
21852_ACEOF
21853rm -f conftest.$ac_objext conftest$ac_exeext
21854if { (ac_try="$ac_link"
21855case "(($ac_try" in
21856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21857 *) ac_try_echo=$ac_try;;
21858esac
21859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21860 (eval "$ac_link") 2>conftest.er1
21861 ac_status=$?
21862 grep -v '^ *+' conftest.er1 >conftest.err
21863 rm -f conftest.er1
21864 cat conftest.err >&5
21865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21866 (exit $ac_status); } && {
21867 test -z "$ac_c_werror_flag" ||
21868 test ! -s conftest.err
21869 } && test -s conftest$ac_exeext &&
21870 $as_test_x conftest$ac_exeext; then
21871 ac_cv_lib_m_sqrt=yes
21872else
21873 echo "$as_me: failed program was:" >&5
21874sed 's/^/| /' conftest.$ac_ext >&5
21875
21876 ac_cv_lib_m_sqrt=no
21877fi
21878
21879rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21880 conftest$ac_exeext conftest.$ac_ext
21881LIBS=$ac_check_lib_save_LIBS
21882fi
21883{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
21884echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
21885if test $ac_cv_lib_m_sqrt = yes; then
21886 cat >>confdefs.h <<_ACEOF
21887#define HAVE_LIBM 1
21888_ACEOF
21889
21890 LIBS="-lm $LIBS"
21891
21892else
21893 { { echo "$as_me:$LINENO: error: requires math library" >&5
21894echo "$as_me: error: requires math library" >&2;}
21895 { (exit 1); exit 1; }; }
21896fi
21897
21898MATH_LIBS=-lm
21899
21900
21901# zlib
21902Z_DIR= Z_LIBS= Z_CFLAGS=
21903
21904# Check whether --with-zlib was given.
21905if test "${with_zlib+set}" = set; then
21906 withval=$with_zlib; case $withval in
21907 yes|no) ;;
21908 *) Z_DIR=$withval
21909 CPPFLAGS="${CPPFLAGS} -I$withval/include"
21910 LDFLAGS="${LDFLAGS} -L$withval/lib"
21911 ;;
21912 esac
21913fi
21914
21915if test "x$with_zlib" != xno; then
21916 with_zlib=no
21917 if test "${ac_cv_header_zlib_h+set}" = set; then
21918 { echo "$as_me:$LINENO: checking for zlib.h" >&5
21919echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
21920if test "${ac_cv_header_zlib_h+set}" = set; then
21921 echo $ECHO_N "(cached) $ECHO_C" >&6
21922fi
21923{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
21924echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
21925else
21926 # Is the header compilable?
21927{ echo "$as_me:$LINENO: checking zlib.h usability" >&5
21928echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
21929cat >conftest.$ac_ext <<_ACEOF
21930/* confdefs.h. */
21931_ACEOF
21932cat confdefs.h >>conftest.$ac_ext
21933cat >>conftest.$ac_ext <<_ACEOF
21934/* end confdefs.h. */
21935$ac_includes_default
21936#include <zlib.h>
21937_ACEOF
21938rm -f conftest.$ac_objext
21939if { (ac_try="$ac_compile"
21940case "(($ac_try" in
21941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21942 *) ac_try_echo=$ac_try;;
21943esac
21944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21945 (eval "$ac_compile") 2>conftest.er1
21946 ac_status=$?
21947 grep -v '^ *+' conftest.er1 >conftest.err
21948 rm -f conftest.er1
21949 cat conftest.err >&5
21950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21951 (exit $ac_status); } && {
21952 test -z "$ac_c_werror_flag" ||
21953 test ! -s conftest.err
21954 } && test -s conftest.$ac_objext; then
21955 ac_header_compiler=yes
21956else
21957 echo "$as_me: failed program was:" >&5
21958sed 's/^/| /' conftest.$ac_ext >&5
21959
21960 ac_header_compiler=no
21961fi
21962
21963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21964{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21965echo "${ECHO_T}$ac_header_compiler" >&6; }
21966
21967# Is the header present?
21968{ echo "$as_me:$LINENO: checking zlib.h presence" >&5
21969echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
21970cat >conftest.$ac_ext <<_ACEOF
21971/* confdefs.h. */
21972_ACEOF
21973cat confdefs.h >>conftest.$ac_ext
21974cat >>conftest.$ac_ext <<_ACEOF
21975/* end confdefs.h. */
21976#include <zlib.h>
21977_ACEOF
21978if { (ac_try="$ac_cpp conftest.$ac_ext"
21979case "(($ac_try" in
21980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21981 *) ac_try_echo=$ac_try;;
21982esac
21983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21984 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21985 ac_status=$?
21986 grep -v '^ *+' conftest.er1 >conftest.err
21987 rm -f conftest.er1
21988 cat conftest.err >&5
21989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21990 (exit $ac_status); } >/dev/null && {
21991 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21992 test ! -s conftest.err
21993 }; then
21994 ac_header_preproc=yes
21995else
21996 echo "$as_me: failed program was:" >&5
21997sed 's/^/| /' conftest.$ac_ext >&5
21998
21999 ac_header_preproc=no
22000fi
22001
22002rm -f conftest.err conftest.$ac_ext
22003{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22004echo "${ECHO_T}$ac_header_preproc" >&6; }
22005
22006# So? What about this header?
22007case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22008 yes:no: )
22009 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
22010echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22011 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
22012echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
22013 ac_header_preproc=yes
22014 ;;
22015 no:yes:* )
22016 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
22017echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
22018 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
22019echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
22020 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
22021echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
22022 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
22023echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
22024 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
22025echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
22026 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
22027echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
22028
22029 ;;
22030esac
22031{ echo "$as_me:$LINENO: checking for zlib.h" >&5
22032echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
22033if test "${ac_cv_header_zlib_h+set}" = set; then
22034 echo $ECHO_N "(cached) $ECHO_C" >&6
22035else
22036 ac_cv_header_zlib_h=$ac_header_preproc
22037fi
22038{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22039echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
22040
22041fi
22042if test $ac_cv_header_zlib_h = yes; then
22043 { echo "$as_me:$LINENO: checking for gzread in -lz" >&5
22044echo $ECHO_N "checking for gzread in -lz... $ECHO_C" >&6; }
22045if test "${ac_cv_lib_z_gzread+set}" = set; then
22046 echo $ECHO_N "(cached) $ECHO_C" >&6
22047else
22048 ac_check_lib_save_LIBS=$LIBS
22049LIBS="-lz $LIBS"
22050cat >conftest.$ac_ext <<_ACEOF
22051/* confdefs.h. */
22052_ACEOF
22053cat confdefs.h >>conftest.$ac_ext
22054cat >>conftest.$ac_ext <<_ACEOF
22055/* end confdefs.h. */
22056
22057/* Override any GCC internal prototype to avoid an error.
22058 Use char because int might match the return type of a GCC
22059 builtin and then its argument prototype would still apply. */
22060#ifdef __cplusplus
22061extern "C"
22062#endif
22063char gzread ();
22064int
22065main ()
22066{
22067return gzread ();
22068 ;
22069 return 0;
22070}
22071_ACEOF
22072rm -f conftest.$ac_objext conftest$ac_exeext
22073if { (ac_try="$ac_link"
22074case "(($ac_try" in
22075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22076 *) ac_try_echo=$ac_try;;
22077esac
22078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22079 (eval "$ac_link") 2>conftest.er1
22080 ac_status=$?
22081 grep -v '^ *+' conftest.er1 >conftest.err
22082 rm -f conftest.er1
22083 cat conftest.err >&5
22084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22085 (exit $ac_status); } && {
22086 test -z "$ac_c_werror_flag" ||
22087 test ! -s conftest.err
22088 } && test -s conftest$ac_exeext &&
22089 $as_test_x conftest$ac_exeext; then
22090 ac_cv_lib_z_gzread=yes
22091else
22092 echo "$as_me: failed program was:" >&5
22093sed 's/^/| /' conftest.$ac_ext >&5
22094
22095 ac_cv_lib_z_gzread=no
22096fi
22097
22098rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22099 conftest$ac_exeext conftest.$ac_ext
22100LIBS=$ac_check_lib_save_LIBS
22101fi
22102{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzread" >&5
22103echo "${ECHO_T}$ac_cv_lib_z_gzread" >&6; }
22104if test $ac_cv_lib_z_gzread = yes; then
22105 with_zlib=yes
22106fi
22107
22108fi
22109
22110
22111fi
22112if test "x$Z_DIR" != "x"; then
22113 Z_CFLAGS="-I$Z_DIR/include"
22114 Z_LIBS="-L$Z_DIR/lib -lz"
22115else
22116 Z_LIBS="-lz"
22117fi
22118
22119
22120if test "$with_zlib" = "yes"; then
22121
22122cat >>confdefs.h <<\_ACEOF
22123#define HAVE_ZLIB 1
22124_ACEOF
22125
22126fi
22127 if test "$with_zlib" = "yes"; then
22128 HAVE_ZLIB_TRUE=
22129 HAVE_ZLIB_FALSE='#'
22130else
22131 HAVE_ZLIB_TRUE='#'
22132 HAVE_ZLIB_FALSE=
22133fi
22134
22135
22136# Debug level (verbosity & optimization)
22137{ echo "$as_me:$LINENO: checking for debug level" >&5
22138echo $ECHO_N "checking for debug level... $ECHO_C" >&6; }
22139# Check whether --enable-debug was given.
22140if test "${enable_debug+set}" = set; then
22141 enableval=$enable_debug; if test "$enableval" = "yes" ; then DEBUG=1; else DEBUG=$enableval; fi
22142else
22143 DEBUG=0
22144fi
22145
22146{ echo "$as_me:$LINENO: result: $DEBUG" >&5
22147echo "${ECHO_T}$DEBUG" >&6; }
22148
22149
22150# Check whether --enable-experimental was given.
22151if test "${enable_experimental+set}" = set; then
22152 enableval=$enable_experimental; if test "x$enableval" = "xyes" ; then experimental=1
22153 else experimental=0; fi
22154else
22155 experimental=0
22156fi
22157
22158 if test "x$experimental" = "x1"; then
22159 EXPERIMENTAL_TRUE=
22160 EXPERIMENTAL_FALSE='#'
22161else
22162 EXPERIMENTAL_TRUE='#'
22163 EXPERIMENTAL_FALSE=
22164fi
22165
22166
22167# Check whether --enable-cxxtest was given.
22168if test "${enable_cxxtest+set}" = set; then
22169 enableval=$enable_cxxtest; if test "x$enableval" = "xyes" ; then cxxtest=1 else cxxtest=0; fi
22170else
22171 cxxtest=0
22172fi
22173
22174 if test "x$cxxtest" = "x1"; then
22175 HAVE_CXX_TRUE=
22176 HAVE_CXX_FALSE='#'
22177else
22178 HAVE_CXX_TRUE='#'
22179 HAVE_CXX_FALSE=
22180fi
22181
22182
22183# Check whether --enable-profile was given.
22184if test "${enable_profile+set}" = set; then
22185 enableval=$enable_profile; if test "x$enableval" = "xyes" ; then profile="-pg"
22186 else profile=""; fi
22187else
22188 profile=""
22189fi
22190
22191
22192if test "$DEBUG" = "0"; then
22193 DBG_CFLAGS="-O2 $profile"
22194else
22195 DBG_CFLAGS="-g $profile"
22196fi
22197
22198
22199# plugin directories
22200
22201 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
22202 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22203 ac_define_dir=`eval echo $libdir/$PACKAGE/plugins`
22204 ac_define_dir=`eval echo $ac_define_dir`
22205
22206cat >>confdefs.h <<_ACEOF
22207#define PLUGIN_DIR "$ac_define_dir"
22208_ACEOF
22209
22210
22211
22212PLUGINS_LDFLAGS="-avoid-version -export-dynamic"
22213
22214
22215ac_config_files="$ac_config_files Makefile doc/Makefile doc/api/Makefile doc/support_matrix/Makefile include/Makefile include/g3d/Makefile m4/Makefile plugins/Makefile plugins/image/Makefile plugins/import/Makefile plugins/import/imp_3dm/Makefile plugins/import/imp_3dmf/Makefile plugins/import/imp_3ds/Makefile plugins/import/imp_ac3d/Makefile plugins/import/imp_acf/Makefile plugins/import/imp_ar/Makefile plugins/import/imp_ase/Makefile plugins/import/imp_blend/Makefile plugins/import/imp_c4d/Makefile plugins/import/imp_cob/Makefile plugins/import/imp_dae/Makefile plugins/import/imp_dpm/Makefile plugins/import/imp_dxf/Makefile plugins/import/imp_flt/Makefile plugins/import/imp_glb/Makefile plugins/import/imp_heightfield/Makefile plugins/import/imp_iob/Makefile plugins/import/imp_joe/Makefile plugins/import/imp_kmz/Makefile plugins/import/imp_ldraw/Makefile plugins/import/imp_leocad/Makefile plugins/import/imp_lwo/Makefile plugins/import/imp_max/Makefile plugins/import/imp_maya/Makefile plugins/import/imp_md2/Makefile plugins/import/imp_md3/Makefile plugins/import/imp_nff/Makefile plugins/import/imp_obj/Makefile plugins/import/imp_osm/Makefile plugins/import/imp_q3o/Makefile plugins/import/imp_r4/Makefile plugins/import/imp_rbh/Makefile plugins/import/imp_skp/Makefile plugins/import/imp_stl/Makefile plugins/import/imp_ta/Makefile plugins/import/imp_test/Makefile plugins/import/imp_vrml/Makefile plugins/import/imp_vrml2/Makefile src/Makefile programs/Makefile tests/Makefile libg3d.pc"
22216
22217cat >confcache <<\_ACEOF
22218# This file is a shell script that caches the results of configure
22219# tests run on this system so they can be shared between configure
22220# scripts and configure runs, see configure's option --config-cache.
22221# It is not useful on other systems. If it contains results you don't
22222# want to keep, you may remove or edit it.
22223#
22224# config.status only pays attention to the cache file if you give it
22225# the --recheck option to rerun configure.
22226#
22227# `ac_cv_env_foo' variables (set or unset) will be overridden when
22228# loading this file, other *unset* `ac_cv_foo' will be assigned the
22229# following values.
22230
22231_ACEOF
22232
22233# The following way of writing the cache mishandles newlines in values,
22234# but we know of no workaround that is simple, portable, and efficient.
22235# So, we kill variables containing newlines.
22236# Ultrix sh set writes to stderr and can't be redirected directly,
22237# and sets the high bit in the cache file unless we assign to the vars.
22238(
22239 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22240 eval ac_val=\$$ac_var
22241 case $ac_val in #(
22242 *${as_nl}*)
22243 case $ac_var in #(
22244 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22245echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22246 esac
22247 case $ac_var in #(
22248 _ | IFS | as_nl) ;; #(
22249 *) $as_unset $ac_var ;;
22250 esac ;;
22251 esac
22252 done
22253
22254 (set) 2>&1 |
22255 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22256 *${as_nl}ac_space=\ *)
22257 # `set' does not quote correctly, so add quotes (double-quote
22258 # substitution turns \\\\ into \\, and sed turns \\ into \).
22259 sed -n \
22260 "s/'/'\\\\''/g;
22261 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22262 ;; #(
22263 *)
22264 # `set' quotes correctly as required by POSIX, so do not add quotes.
22265 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22266 ;;
22267 esac |
22268 sort
22269) |
22270 sed '
22271 /^ac_cv_env_/b end
22272 t clear
22273 :clear
22274 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22275 t end
22276 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22277 :end' >>confcache
22278if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22279 if test -w "$cache_file"; then
22280 test "x$cache_file" != "x/dev/null" &&
22281 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22282echo "$as_me: updating cache $cache_file" >&6;}
22283 cat confcache >$cache_file
22284 else
22285 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22286echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22287 fi
22288fi
22289rm -f confcache
22290
22291test "x$prefix" = xNONE && prefix=$ac_default_prefix
22292# Let make expand exec_prefix.
22293test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22294
22295DEFS=-DHAVE_CONFIG_H
22296
22297ac_libobjs=
22298ac_ltlibobjs=
22299for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22300 # 1. Remove the extension, and $U if already installed.
22301 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22302 ac_i=`echo "$ac_i" | sed "$ac_script"`
22303 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22304 # will be set to the directory where LIBOBJS objects are built.
22305 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22306 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22307done
22308LIBOBJS=$ac_libobjs
22309
22310LTLIBOBJS=$ac_ltlibobjs
22311
22312
22313if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22314 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22315Usually this means the macro was only invoked conditionally." >&5
22316echo "$as_me: error: conditional \"AMDEP\" was never defined.
22317Usually this means the macro was only invoked conditionally." >&2;}
22318 { (exit 1); exit 1; }; }
22319fi
22320if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22321 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22322Usually this means the macro was only invoked conditionally." >&5
22323echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22324Usually this means the macro was only invoked conditionally." >&2;}
22325 { (exit 1); exit 1; }; }
22326fi
22327if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
22328 { { echo "$as_me:$LINENO: error: conditional \"OS_WIN32\" was never defined.
22329Usually this means the macro was only invoked conditionally." >&5
22330echo "$as_me: error: conditional \"OS_WIN32\" was never defined.
22331Usually this means the macro was only invoked conditionally." >&2;}
22332 { (exit 1); exit 1; }; }
22333fi
22334if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22335 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22336Usually this means the macro was only invoked conditionally." >&5
22337echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22338Usually this means the macro was only invoked conditionally." >&2;}
22339 { (exit 1); exit 1; }; }
22340fi
22341if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
22342 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK_DOC\" was never defined.
22343Usually this means the macro was only invoked conditionally." >&5
22344echo "$as_me: error: conditional \"ENABLE_GTK_DOC\" was never defined.
22345Usually this means the macro was only invoked conditionally." >&2;}
22346 { (exit 1); exit 1; }; }
22347fi
22348if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
22349 { { echo "$as_me:$LINENO: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
22350Usually this means the macro was only invoked conditionally." >&5
22351echo "$as_me: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
22352Usually this means the macro was only invoked conditionally." >&2;}
22353 { (exit 1); exit 1; }; }
22354fi
22355if test -z "${HAVE_GDKPIXBUF_TRUE}" && test -z "${HAVE_GDKPIXBUF_FALSE}"; then
22356 { { echo "$as_me:$LINENO: error: conditional \"HAVE_GDKPIXBUF\" was never defined.
22357Usually this means the macro was only invoked conditionally." >&5
22358echo "$as_me: error: conditional \"HAVE_GDKPIXBUF\" was never defined.
22359Usually this means the macro was only invoked conditionally." >&2;}
22360 { (exit 1); exit 1; }; }
22361fi
22362if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then
22363 { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBXML2\" was never defined.
22364Usually this means the macro was only invoked conditionally." >&5
22365echo "$as_me: error: conditional \"HAVE_LIBXML2\" was never defined.
22366Usually this means the macro was only invoked conditionally." >&2;}
22367 { (exit 1); exit 1; }; }
22368fi
22369if test -z "${HAVE_LIBGSF_TRUE}" && test -z "${HAVE_LIBGSF_FALSE}"; then
22370 { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBGSF\" was never defined.
22371Usually this means the macro was only invoked conditionally." >&5
22372echo "$as_me: error: conditional \"HAVE_LIBGSF\" was never defined.
22373Usually this means the macro was only invoked conditionally." >&2;}
22374 { (exit 1); exit 1; }; }
22375fi
22376if test -z "${HAVE_ZLIB_TRUE}" && test -z "${HAVE_ZLIB_FALSE}"; then
22377 { { echo "$as_me:$LINENO: error: conditional \"HAVE_ZLIB\" was never defined.
22378Usually this means the macro was only invoked conditionally." >&5
22379echo "$as_me: error: conditional \"HAVE_ZLIB\" was never defined.
22380Usually this means the macro was only invoked conditionally." >&2;}
22381 { (exit 1); exit 1; }; }
22382fi
22383if test -z "${EXPERIMENTAL_TRUE}" && test -z "${EXPERIMENTAL_FALSE}"; then
22384 { { echo "$as_me:$LINENO: error: conditional \"EXPERIMENTAL\" was never defined.
22385Usually this means the macro was only invoked conditionally." >&5
22386echo "$as_me: error: conditional \"EXPERIMENTAL\" was never defined.
22387Usually this means the macro was only invoked conditionally." >&2;}
22388 { (exit 1); exit 1; }; }
22389fi
22390if test -z "${HAVE_CXX_TRUE}" && test -z "${HAVE_CXX_FALSE}"; then
22391 { { echo "$as_me:$LINENO: error: conditional \"HAVE_CXX\" was never defined.
22392Usually this means the macro was only invoked conditionally." >&5
22393echo "$as_me: error: conditional \"HAVE_CXX\" was never defined.
22394Usually this means the macro was only invoked conditionally." >&2;}
22395 { (exit 1); exit 1; }; }
22396fi
22397
22398: ${CONFIG_STATUS=./config.status}
22399ac_clean_files_save=$ac_clean_files
22400ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22401{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22402echo "$as_me: creating $CONFIG_STATUS" >&6;}
22403cat >$CONFIG_STATUS <<_ACEOF
22404#! $SHELL
22405# Generated by $as_me.
22406# Run this file to recreate the current configuration.
22407# Compiler output produced by configure, useful for debugging
22408# configure, is in config.log if it exists.
22409
22410debug=false
22411ac_cs_recheck=false
22412ac_cs_silent=false
22413SHELL=\${CONFIG_SHELL-$SHELL}
22414_ACEOF
22415
22416cat >>$CONFIG_STATUS <<\_ACEOF
22417## --------------------- ##
22418## M4sh Initialization. ##
22419## --------------------- ##
22420
22421# Be more Bourne compatible
22422DUALCASE=1; export DUALCASE # for MKS sh
22423if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22424 emulate sh
22425 NULLCMD=:
22426 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22427 # is contrary to our usage. Disable this feature.
22428 alias -g '${1+"$@"}'='"$@"'
22429 setopt NO_GLOB_SUBST
22430else
22431 case `(set -o) 2>/dev/null` in
22432 *posix*) set -o posix ;;
22433esac
22434
22435fi
22436
22437
22438
22439
22440# PATH needs CR
22441# Avoid depending upon Character Ranges.
22442as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22443as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22444as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22445as_cr_digits='0123456789'
22446as_cr_alnum=$as_cr_Letters$as_cr_digits
22447
22448# The user is always right.
22449if test "${PATH_SEPARATOR+set}" != set; then
22450 echo "#! /bin/sh" >conf$$.sh
22451 echo "exit 0" >>conf$$.sh
22452 chmod +x conf$$.sh
22453 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22454 PATH_SEPARATOR=';'
22455 else
22456 PATH_SEPARATOR=:
22457 fi
22458 rm -f conf$$.sh
22459fi
22460
22461# Support unset when possible.
22462if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22463 as_unset=unset
22464else
22465 as_unset=false
22466fi
22467
22468
22469# IFS
22470# We need space, tab and new line, in precisely that order. Quoting is
22471# there to prevent editors from complaining about space-tab.
22472# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22473# splitting by setting IFS to empty value.)
22474as_nl='
22475'
22476IFS=" "" $as_nl"
22477
22478# Find who we are. Look in the path if we contain no directory separator.
22479case $0 in
22480 *[\\/]* ) as_myself=$0 ;;
22481 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22482for as_dir in $PATH
22483do
22484 IFS=$as_save_IFS
22485 test -z "$as_dir" && as_dir=.
22486 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22487done
22488IFS=$as_save_IFS
22489
22490 ;;
22491esac
22492# We did not find ourselves, most probably we were run as `sh COMMAND'
22493# in which case we are not to be found in the path.
22494if test "x$as_myself" = x; then
22495 as_myself=$0
22496fi
22497if test ! -f "$as_myself"; then
22498 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22499 { (exit 1); exit 1; }
22500fi
22501
22502# Work around bugs in pre-3.0 UWIN ksh.
22503for as_var in ENV MAIL MAILPATH
22504do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22505done
22506PS1='$ '
22507PS2='> '
22508PS4='+ '
22509
22510# NLS nuisances.
22511for as_var in \
22512 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22513 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22514 LC_TELEPHONE LC_TIME
22515do
22516 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22517 eval $as_var=C; export $as_var
22518 else
22519 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22520 fi
22521done
22522
22523# Required to use basename.
22524if expr a : '\(a\)' >/dev/null 2>&1 &&
22525 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22526 as_expr=expr
22527else
22528 as_expr=false
22529fi
22530
22531if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22532 as_basename=basename
22533else
22534 as_basename=false
22535fi
22536
22537
22538# Name of the executable.
22539as_me=`$as_basename -- "$0" ||
22540$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22541 X"$0" : 'X\(//\)$' \| \
22542 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22543echo X/"$0" |
22544 sed '/^.*\/\([^/][^/]*\)\/*$/{
22545 s//\1/
22546 q
22547 }
22548 /^X\/\(\/\/\)$/{
22549 s//\1/
22550 q
22551 }
22552 /^X\/\(\/\).*/{
22553 s//\1/
22554 q
22555 }
22556 s/.*/./; q'`
22557
22558# CDPATH.
22559$as_unset CDPATH
22560
22561
22562
22563 as_lineno_1=$LINENO
22564 as_lineno_2=$LINENO
22565 test "x$as_lineno_1" != "x$as_lineno_2" &&
22566 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22567
22568 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22569 # uniformly replaced by the line number. The first 'sed' inserts a
22570 # line-number line after each line using $LINENO; the second 'sed'
22571 # does the real work. The second script uses 'N' to pair each
22572 # line-number line with the line containing $LINENO, and appends
22573 # trailing '-' during substitution so that $LINENO is not a special
22574 # case at line end.
22575 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22576 # scripts with optimization help from Paolo Bonzini. Blame Lee
22577 # E. McMahon (1931-1989) for sed's syntax. :-)
22578 sed -n '
22579 p
22580 /[$]LINENO/=
22581 ' <$as_myself |
22582 sed '
22583 s/[$]LINENO.*/&-/
22584 t lineno
22585 b
22586 :lineno
22587 N
22588 :loop
22589 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22590 t loop
22591 s/-\n.*//
22592 ' >$as_me.lineno &&
22593 chmod +x "$as_me.lineno" ||
22594 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22595 { (exit 1); exit 1; }; }
22596
22597 # Don't try to exec as it changes $[0], causing all sort of problems
22598 # (the dirname of $[0] is not the place where we might find the
22599 # original and so on. Autoconf is especially sensitive to this).
22600 . "./$as_me.lineno"
22601 # Exit status is that of the last command.
22602 exit
22603}
22604
22605
22606if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22607 as_dirname=dirname
22608else
22609 as_dirname=false
22610fi
22611
22612ECHO_C= ECHO_N= ECHO_T=
22613case `echo -n x` in
22614-n*)
22615 case `echo 'x\c'` in
22616 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22617 *) ECHO_C='\c';;
22618 esac;;
22619*)
22620 ECHO_N='-n';;
22621esac
22622
22623if expr a : '\(a\)' >/dev/null 2>&1 &&
22624 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22625 as_expr=expr
22626else
22627 as_expr=false
22628fi
22629
22630rm -f conf$$ conf$$.exe conf$$.file
22631if test -d conf$$.dir; then
22632 rm -f conf$$.dir/conf$$.file
22633else
22634 rm -f conf$$.dir
22635 mkdir conf$$.dir
22636fi
22637echo >conf$$.file
22638if ln -s conf$$.file conf$$ 2>/dev/null; then
22639 as_ln_s='ln -s'
22640 # ... but there are two gotchas:
22641 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22642 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22643 # In both cases, we have to default to `cp -p'.
22644 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22645 as_ln_s='cp -p'
22646elif ln conf$$.file conf$$ 2>/dev/null; then
22647 as_ln_s=ln
22648else
22649 as_ln_s='cp -p'
22650fi
22651rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22652rmdir conf$$.dir 2>/dev/null
22653
22654if mkdir -p . 2>/dev/null; then
22655 as_mkdir_p=:
22656else
22657 test -d ./-p && rmdir ./-p
22658 as_mkdir_p=false
22659fi
22660
22661if test -x / >/dev/null 2>&1; then
22662 as_test_x='test -x'
22663else
22664 if ls -dL / >/dev/null 2>&1; then
22665 as_ls_L_option=L
22666 else
22667 as_ls_L_option=
22668 fi
22669 as_test_x='
22670 eval sh -c '\''
22671 if test -d "$1"; then
22672 test -d "$1/.";
22673 else
22674 case $1 in
22675 -*)set "./$1";;
22676 esac;
22677 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22678 ???[sx]*):;;*)false;;esac;fi
22679 '\'' sh
22680 '
22681fi
22682as_executable_p=$as_test_x
22683
22684# Sed expression to map a string onto a valid CPP name.
22685as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22686
22687# Sed expression to map a string onto a valid variable name.
22688as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22689
22690
22691exec 6>&1
22692
22693# Save the log message, to keep $[0] and so on meaningful, and to
22694# report actual input values of CONFIG_FILES etc. instead of their
22695# values after options handling.
22696ac_log="
22697This file was extended by $as_me, which was
22698generated by GNU Autoconf 2.61. Invocation command line was
22699
22700 CONFIG_FILES = $CONFIG_FILES
22701 CONFIG_HEADERS = $CONFIG_HEADERS
22702 CONFIG_LINKS = $CONFIG_LINKS
22703 CONFIG_COMMANDS = $CONFIG_COMMANDS
22704 $ $0 $@
22705
22706on `(hostname || uname -n) 2>/dev/null | sed 1q`
22707"
22708
22709_ACEOF
22710
22711cat >>$CONFIG_STATUS <<_ACEOF
22712# Files that config.status was made for.
22713config_files="$ac_config_files"
22714config_headers="$ac_config_headers"
22715config_commands="$ac_config_commands"
22716
22717_ACEOF
22718
22719cat >>$CONFIG_STATUS <<\_ACEOF
22720ac_cs_usage="\
22721\`$as_me' instantiates files from templates according to the
22722current configuration.
22723
22724Usage: $0 [OPTIONS] [FILE]...
22725
22726 -h, --help print this help, then exit
22727 -V, --version print version number and configuration settings, then exit
22728 -q, --quiet do not print progress messages
22729 -d, --debug don't remove temporary files
22730 --recheck update $as_me by reconfiguring in the same conditions
22731 --file=FILE[:TEMPLATE]
22732 instantiate the configuration file FILE
22733 --header=FILE[:TEMPLATE]
22734 instantiate the configuration header FILE
22735
22736Configuration files:
22737$config_files
22738
22739Configuration headers:
22740$config_headers
22741
22742Configuration commands:
22743$config_commands
22744
22745Report bugs to <bug-autoconf@gnu.org>."
22746
22747_ACEOF
22748cat >>$CONFIG_STATUS <<_ACEOF
22749ac_cs_version="\\
22750config.status
22751configured by $0, generated by GNU Autoconf 2.61,
22752 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22753
22754Copyright (C) 2006 Free Software Foundation, Inc.
22755This config.status script is free software; the Free Software Foundation
22756gives unlimited permission to copy, distribute and modify it."
22757
22758ac_pwd='$ac_pwd'
22759srcdir='$srcdir'
22760INSTALL='$INSTALL'
22761MKDIR_P='$MKDIR_P'
22762_ACEOF
22763
22764cat >>$CONFIG_STATUS <<\_ACEOF
22765# If no file are specified by the user, then we need to provide default
22766# value. By we need to know if files were specified by the user.
22767ac_need_defaults=:
22768while test $# != 0
22769do
22770 case $1 in
22771 --*=*)
22772 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22773 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22774 ac_shift=:
22775 ;;
22776 *)
22777 ac_option=$1
22778 ac_optarg=$2
22779 ac_shift=shift
22780 ;;
22781 esac
22782
22783 case $ac_option in
22784 # Handling of the options.
22785 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22786 ac_cs_recheck=: ;;
22787 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22788 echo "$ac_cs_version"; exit ;;
22789 --debug | --debu | --deb | --de | --d | -d )
22790 debug=: ;;
22791 --file | --fil | --fi | --f )
22792 $ac_shift
22793 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22794 ac_need_defaults=false;;
22795 --header | --heade | --head | --hea )
22796 $ac_shift
22797 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22798 ac_need_defaults=false;;
22799 --he | --h)
22800 # Conflict between --help and --header
22801 { echo "$as_me: error: ambiguous option: $1
22802Try \`$0 --help' for more information." >&2
22803 { (exit 1); exit 1; }; };;
22804 --help | --hel | -h )
22805 echo "$ac_cs_usage"; exit ;;
22806 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22807 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22808 ac_cs_silent=: ;;
22809
22810 # This is an error.
22811 -*) { echo "$as_me: error: unrecognized option: $1
22812Try \`$0 --help' for more information." >&2
22813 { (exit 1); exit 1; }; } ;;
22814
22815 *) ac_config_targets="$ac_config_targets $1"
22816 ac_need_defaults=false ;;
22817
22818 esac
22819 shift
22820done
22821
22822ac_configure_extra_args=
22823
22824if $ac_cs_silent; then
22825 exec 6>/dev/null
22826 ac_configure_extra_args="$ac_configure_extra_args --silent"
22827fi
22828
22829_ACEOF
22830cat >>$CONFIG_STATUS <<_ACEOF
22831if \$ac_cs_recheck; then
22832 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22833 CONFIG_SHELL=$SHELL
22834 export CONFIG_SHELL
22835 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22836fi
22837
22838_ACEOF
22839cat >>$CONFIG_STATUS <<\_ACEOF
22840exec 5>>config.log
22841{
22842 echo
22843 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22844## Running $as_me. ##
22845_ASBOX
22846 echo "$ac_log"
22847} >&5
22848
22849_ACEOF
22850cat >>$CONFIG_STATUS <<_ACEOF
22851#
22852# INIT-COMMANDS
22853#
22854AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22855
22856_ACEOF
22857
22858cat >>$CONFIG_STATUS <<\_ACEOF
22859
22860# Handling of arguments.
22861for ac_config_target in $ac_config_targets
22862do
22863 case $ac_config_target in
22864 "include/g3d/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/g3d/config.h" ;;
22865 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22866 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22867 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22868 "doc/api/Makefile") CONFIG_FILES="$CONFIG_FILES doc/api/Makefile" ;;
22869 "doc/support_matrix/Makefile") CONFIG_FILES="$CONFIG_FILES doc/support_matrix/Makefile" ;;
22870 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
22871 "include/g3d/Makefile") CONFIG_FILES="$CONFIG_FILES include/g3d/Makefile" ;;
22872 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
22873 "plugins/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;;
22874 "plugins/image/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/image/Makefile" ;;
22875 "plugins/import/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/Makefile" ;;
22876 "plugins/import/imp_3dm/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_3dm/Makefile" ;;
22877 "plugins/import/imp_3dmf/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_3dmf/Makefile" ;;
22878 "plugins/import/imp_3ds/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_3ds/Makefile" ;;
22879 "plugins/import/imp_ac3d/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_ac3d/Makefile" ;;
22880 "plugins/import/imp_acf/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_acf/Makefile" ;;
22881 "plugins/import/imp_ar/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_ar/Makefile" ;;
22882 "plugins/import/imp_ase/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_ase/Makefile" ;;
22883 "plugins/import/imp_blend/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_blend/Makefile" ;;
22884 "plugins/import/imp_c4d/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_c4d/Makefile" ;;
22885 "plugins/import/imp_cob/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_cob/Makefile" ;;
22886 "plugins/import/imp_dae/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_dae/Makefile" ;;
22887 "plugins/import/imp_dpm/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_dpm/Makefile" ;;
22888 "plugins/import/imp_dxf/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_dxf/Makefile" ;;
22889 "plugins/import/imp_flt/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_flt/Makefile" ;;
22890 "plugins/import/imp_glb/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_glb/Makefile" ;;
22891 "plugins/import/imp_heightfield/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_heightfield/Makefile" ;;
22892 "plugins/import/imp_iob/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_iob/Makefile" ;;
22893 "plugins/import/imp_joe/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_joe/Makefile" ;;
22894 "plugins/import/imp_kmz/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_kmz/Makefile" ;;
22895 "plugins/import/imp_ldraw/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_ldraw/Makefile" ;;
22896 "plugins/import/imp_leocad/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_leocad/Makefile" ;;
22897 "plugins/import/imp_lwo/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_lwo/Makefile" ;;
22898 "plugins/import/imp_max/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_max/Makefile" ;;
22899 "plugins/import/imp_maya/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_maya/Makefile" ;;
22900 "plugins/import/imp_md2/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_md2/Makefile" ;;
22901 "plugins/import/imp_md3/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_md3/Makefile" ;;
22902 "plugins/import/imp_nff/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_nff/Makefile" ;;
22903 "plugins/import/imp_obj/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_obj/Makefile" ;;
22904 "plugins/import/imp_osm/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_osm/Makefile" ;;
22905 "plugins/import/imp_q3o/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_q3o/Makefile" ;;
22906 "plugins/import/imp_r4/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_r4/Makefile" ;;
22907 "plugins/import/imp_rbh/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_rbh/Makefile" ;;
22908 "plugins/import/imp_skp/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_skp/Makefile" ;;
22909 "plugins/import/imp_stl/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_stl/Makefile" ;;
22910 "plugins/import/imp_ta/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_ta/Makefile" ;;
22911 "plugins/import/imp_test/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_test/Makefile" ;;
22912 "plugins/import/imp_vrml/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_vrml/Makefile" ;;
22913 "plugins/import/imp_vrml2/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_vrml2/Makefile" ;;
22914 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22915 "programs/Makefile") CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
22916 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
22917 "libg3d.pc") CONFIG_FILES="$CONFIG_FILES libg3d.pc" ;;
22918
22919 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22920echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22921 { (exit 1); exit 1; }; };;
22922 esac
22923done
22924
22925
22926# If the user did not use the arguments to specify the items to instantiate,
22927# then the envvar interface is used. Set only those that are not.
22928# We use the long form for the default assignment because of an extremely
22929# bizarre bug on SunOS 4.1.3.
22930if $ac_need_defaults; then
22931 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22932 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22933 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22934fi
22935
22936# Have a temporary directory for convenience. Make it in the build tree
22937# simply because there is no reason against having it here, and in addition,
22938# creating and moving files from /tmp can sometimes cause problems.
22939# Hook for its removal unless debugging.
22940# Note that there is a small window in which the directory will not be cleaned:
22941# after its creation but before its name has been assigned to `$tmp'.
22942$debug ||
22943{
22944 tmp=
22945 trap 'exit_status=$?
22946 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22947' 0
22948 trap '{ (exit 1); exit 1; }' 1 2 13 15
22949}
22950# Create a (secure) tmp directory for tmp files.
22951
22952{
22953 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22954 test -n "$tmp" && test -d "$tmp"
22955} ||
22956{
22957 tmp=./conf$$-$RANDOM
22958 (umask 077 && mkdir "$tmp")
22959} ||
22960{
22961 echo "$me: cannot create a temporary directory in ." >&2
22962 { (exit 1); exit 1; }
22963}
22964
22965#
22966# Set up the sed scripts for CONFIG_FILES section.
22967#
22968
22969# No need to generate the scripts if there are no CONFIG_FILES.
22970# This happens for instance when ./config.status config.h
22971if test -n "$CONFIG_FILES"; then
22972
22973_ACEOF
22974
22975
22976
22977ac_delim='%!_!# '
22978for ac_last_try in false false false false false :; do
22979 cat >conf$$subs.sed <<_ACEOF
22980SHELL!$SHELL$ac_delim
22981PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22982PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22983PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22984PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22985PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22986PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22987exec_prefix!$exec_prefix$ac_delim
22988prefix!$prefix$ac_delim
22989program_transform_name!$program_transform_name$ac_delim
22990bindir!$bindir$ac_delim
22991sbindir!$sbindir$ac_delim
22992libexecdir!$libexecdir$ac_delim
22993datarootdir!$datarootdir$ac_delim
22994datadir!$datadir$ac_delim
22995sysconfdir!$sysconfdir$ac_delim
22996sharedstatedir!$sharedstatedir$ac_delim
22997localstatedir!$localstatedir$ac_delim
22998includedir!$includedir$ac_delim
22999oldincludedir!$oldincludedir$ac_delim
23000docdir!$docdir$ac_delim
23001infodir!$infodir$ac_delim
23002htmldir!$htmldir$ac_delim
23003dvidir!$dvidir$ac_delim
23004pdfdir!$pdfdir$ac_delim
23005psdir!$psdir$ac_delim
23006libdir!$libdir$ac_delim
23007localedir!$localedir$ac_delim
23008mandir!$mandir$ac_delim
23009DEFS!$DEFS$ac_delim
23010ECHO_C!$ECHO_C$ac_delim
23011ECHO_N!$ECHO_N$ac_delim
23012ECHO_T!$ECHO_T$ac_delim
23013LIBS!$LIBS$ac_delim
23014build_alias!$build_alias$ac_delim
23015host_alias!$host_alias$ac_delim
23016target_alias!$target_alias$ac_delim
23017INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23018INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23019INSTALL_DATA!$INSTALL_DATA$ac_delim
23020am__isrc!$am__isrc$ac_delim
23021CYGPATH_W!$CYGPATH_W$ac_delim
23022PACKAGE!$PACKAGE$ac_delim
23023VERSION!$VERSION$ac_delim
23024ACLOCAL!$ACLOCAL$ac_delim
23025AUTOCONF!$AUTOCONF$ac_delim
23026AUTOMAKE!$AUTOMAKE$ac_delim
23027AUTOHEADER!$AUTOHEADER$ac_delim
23028MAKEINFO!$MAKEINFO$ac_delim
23029install_sh!$install_sh$ac_delim
23030STRIP!$STRIP$ac_delim
23031INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
23032mkdir_p!$mkdir_p$ac_delim
23033AWK!$AWK$ac_delim
23034SET_MAKE!$SET_MAKE$ac_delim
23035am__leading_dot!$am__leading_dot$ac_delim
23036AMTAR!$AMTAR$ac_delim
23037am__tar!$am__tar$ac_delim
23038am__untar!$am__untar$ac_delim
23039LTVERSION!$LTVERSION$ac_delim
23040CC!$CC$ac_delim
23041CFLAGS!$CFLAGS$ac_delim
23042LDFLAGS!$LDFLAGS$ac_delim
23043CPPFLAGS!$CPPFLAGS$ac_delim
23044ac_ct_CC!$ac_ct_CC$ac_delim
23045EXEEXT!$EXEEXT$ac_delim
23046OBJEXT!$OBJEXT$ac_delim
23047DEPDIR!$DEPDIR$ac_delim
23048am__include!$am__include$ac_delim
23049am__quote!$am__quote$ac_delim
23050AMDEP_TRUE!$AMDEP_TRUE$ac_delim
23051AMDEP_FALSE!$AMDEP_FALSE$ac_delim
23052AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
23053CCDEPMODE!$CCDEPMODE$ac_delim
23054am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
23055am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
23056LEX!$LEX$ac_delim
23057LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
23058LEXLIB!$LEXLIB$ac_delim
23059CPP!$CPP$ac_delim
23060GREP!$GREP$ac_delim
23061EGREP!$EGREP$ac_delim
23062OS_WIN32_TRUE!$OS_WIN32_TRUE$ac_delim
23063OS_WIN32_FALSE!$OS_WIN32_FALSE$ac_delim
23064build!$build$ac_delim
23065build_cpu!$build_cpu$ac_delim
23066build_vendor!$build_vendor$ac_delim
23067build_os!$build_os$ac_delim
23068host!$host$ac_delim
23069host_cpu!$host_cpu$ac_delim
23070host_vendor!$host_vendor$ac_delim
23071host_os!$host_os$ac_delim
23072LN_S!$LN_S$ac_delim
23073ECHO!$ECHO$ac_delim
23074AR!$AR$ac_delim
23075RANLIB!$RANLIB$ac_delim
23076DLLTOOL!$DLLTOOL$ac_delim
23077_ACEOF
23078
23079 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23080 break
23081 elif $ac_last_try; then
23082 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23083echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23084 { (exit 1); exit 1; }; }
23085 else
23086 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23087 fi
23088done
23089
23090ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23091if test -n "$ac_eof"; then
23092 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23093 ac_eof=`expr $ac_eof + 1`
23094fi
23095
23096cat >>$CONFIG_STATUS <<_ACEOF
23097cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23098/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23099_ACEOF
23100sed '
23101s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23102s/^/s,@/; s/!/@,|#_!!_#|/
23103:n
23104t n
23105s/'"$ac_delim"'$/,g/; t
23106s/$/\\/; p
23107N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23108' >>$CONFIG_STATUS <conf$$subs.sed
23109rm -f conf$$subs.sed
23110cat >>$CONFIG_STATUS <<_ACEOF
23111CEOF$ac_eof
23112_ACEOF
23113
23114
23115ac_delim='%!_!# '
23116for ac_last_try in false false false false false :; do
23117 cat >conf$$subs.sed <<_ACEOF
23118AS!$AS$ac_delim
23119OBJDUMP!$OBJDUMP$ac_delim
23120CXX!$CXX$ac_delim
23121CXXFLAGS!$CXXFLAGS$ac_delim
23122ac_ct_CXX!$ac_ct_CXX$ac_delim
23123CXXDEPMODE!$CXXDEPMODE$ac_delim
23124am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
23125am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
23126CXXCPP!$CXXCPP$ac_delim
23127F77!$F77$ac_delim
23128FFLAGS!$FFLAGS$ac_delim
23129ac_ct_F77!$ac_ct_F77$ac_delim
23130LIBTOOL!$LIBTOOL$ac_delim
23131HTML_DIR!$HTML_DIR$ac_delim
23132PKG_CONFIG!$PKG_CONFIG$ac_delim
23133GTKDOC_CHECK!$GTKDOC_CHECK$ac_delim
23134ENABLE_GTK_DOC_TRUE!$ENABLE_GTK_DOC_TRUE$ac_delim
23135ENABLE_GTK_DOC_FALSE!$ENABLE_GTK_DOC_FALSE$ac_delim
23136GTK_DOC_USE_LIBTOOL_TRUE!$GTK_DOC_USE_LIBTOOL_TRUE$ac_delim
23137GTK_DOC_USE_LIBTOOL_FALSE!$GTK_DOC_USE_LIBTOOL_FALSE$ac_delim
23138GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim
23139GLIB_LIBS!$GLIB_LIBS$ac_delim
23140GLIB_GENMARSHAL!$GLIB_GENMARSHAL$ac_delim
23141GOBJECT_QUERY!$GOBJECT_QUERY$ac_delim
23142GLIB_MKENUMS!$GLIB_MKENUMS$ac_delim
23143GTK_CFLAGS!$GTK_CFLAGS$ac_delim
23144GTK_LIBS!$GTK_LIBS$ac_delim
23145GDKPIXBUF_CFLAGS!$GDKPIXBUF_CFLAGS$ac_delim
23146GDKPIXBUF_LIBS!$GDKPIXBUF_LIBS$ac_delim
23147HAVE_GDKPIXBUF_TRUE!$HAVE_GDKPIXBUF_TRUE$ac_delim
23148HAVE_GDKPIXBUF_FALSE!$HAVE_GDKPIXBUF_FALSE$ac_delim
23149XML2_CONFIG!$XML2_CONFIG$ac_delim
23150XML_CPPFLAGS!$XML_CPPFLAGS$ac_delim
23151XML_LIBS!$XML_LIBS$ac_delim
23152LIBXML2_CFLAGS!$LIBXML2_CFLAGS$ac_delim
23153LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
23154HAVE_LIBXML2_TRUE!$HAVE_LIBXML2_TRUE$ac_delim
23155HAVE_LIBXML2_FALSE!$HAVE_LIBXML2_FALSE$ac_delim
23156LIBGSF_CFLAGS!$LIBGSF_CFLAGS$ac_delim
23157LIBGSF_LIBS!$LIBGSF_LIBS$ac_delim
23158HAVE_LIBGSF_TRUE!$HAVE_LIBGSF_TRUE$ac_delim
23159HAVE_LIBGSF_FALSE!$HAVE_LIBGSF_FALSE$ac_delim
23160MAGIC_LIBS!$MAGIC_LIBS$ac_delim
23161MATH_LIBS!$MATH_LIBS$ac_delim
23162Z_CFLAGS!$Z_CFLAGS$ac_delim
23163Z_LIBS!$Z_LIBS$ac_delim
23164HAVE_ZLIB_TRUE!$HAVE_ZLIB_TRUE$ac_delim
23165HAVE_ZLIB_FALSE!$HAVE_ZLIB_FALSE$ac_delim
23166DEBUG!$DEBUG$ac_delim
23167EXPERIMENTAL_TRUE!$EXPERIMENTAL_TRUE$ac_delim
23168EXPERIMENTAL_FALSE!$EXPERIMENTAL_FALSE$ac_delim
23169HAVE_CXX_TRUE!$HAVE_CXX_TRUE$ac_delim
23170HAVE_CXX_FALSE!$HAVE_CXX_FALSE$ac_delim
23171DBG_CFLAGS!$DBG_CFLAGS$ac_delim
23172PLUGINS_LDFLAGS!$PLUGINS_LDFLAGS$ac_delim
23173LIBOBJS!$LIBOBJS$ac_delim
23174LTLIBOBJS!$LTLIBOBJS$ac_delim
23175_ACEOF
23176
23177 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 57; then
23178 break
23179 elif $ac_last_try; then
23180 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23181echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23182 { (exit 1); exit 1; }; }
23183 else
23184 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23185 fi
23186done
23187
23188ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23189if test -n "$ac_eof"; then
23190 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23191 ac_eof=`expr $ac_eof + 1`
23192fi
23193
23194cat >>$CONFIG_STATUS <<_ACEOF
23195cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23196/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23197_ACEOF
23198sed '
23199s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23200s/^/s,@/; s/!/@,|#_!!_#|/
23201:n
23202t n
23203s/'"$ac_delim"'$/,g/; t
23204s/$/\\/; p
23205N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23206' >>$CONFIG_STATUS <conf$$subs.sed
23207rm -f conf$$subs.sed
23208cat >>$CONFIG_STATUS <<_ACEOF
23209:end
23210s/|#_!!_#|//g
23211CEOF$ac_eof
23212_ACEOF
23213
23214
23215# VPATH may cause trouble with some makes, so we remove $(srcdir),
23216# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23217# trailing colons and then remove the whole line if VPATH becomes empty
23218# (actually we leave an empty line to preserve line numbers).
23219if test "x$srcdir" = x.; then
23220 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23221s/:*\$(srcdir):*/:/
23222s/:*\${srcdir}:*/:/
23223s/:*@srcdir@:*/:/
23224s/^\([^=]*=[ ]*\):*/\1/
23225s/:*$//
23226s/^[^=]*=[ ]*$//
23227}'
23228fi
23229
23230cat >>$CONFIG_STATUS <<\_ACEOF
23231fi # test -n "$CONFIG_FILES"
23232
23233
23234for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23235do
23236 case $ac_tag in
23237 :[FHLC]) ac_mode=$ac_tag; continue;;
23238 esac
23239 case $ac_mode$ac_tag in
23240 :[FHL]*:*);;
23241 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23242echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23243 { (exit 1); exit 1; }; };;
23244 :[FH]-) ac_tag=-:-;;
23245 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23246 esac
23247 ac_save_IFS=$IFS
23248 IFS=:
23249 set x $ac_tag
23250 IFS=$ac_save_IFS
23251 shift
23252 ac_file=$1
23253 shift
23254
23255 case $ac_mode in
23256 :L) ac_source=$1;;
23257 :[FH])
23258 ac_file_inputs=
23259 for ac_f
23260 do
23261 case $ac_f in
23262 -) ac_f="$tmp/stdin";;
23263 *) # Look for the file first in the build tree, then in the source tree
23264 # (if the path is not absolute). The absolute path cannot be DOS-style,
23265 # because $ac_f cannot contain `:'.
23266 test -f "$ac_f" ||
23267 case $ac_f in
23268 [\\/$]*) false;;
23269 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23270 esac ||
23271 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23272echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23273 { (exit 1); exit 1; }; };;
23274 esac
23275 ac_file_inputs="$ac_file_inputs $ac_f"
23276 done
23277
23278 # Let's still pretend it is `configure' which instantiates (i.e., don't
23279 # use $as_me), people would be surprised to read:
23280 # /* config.h. Generated by config.status. */
23281 configure_input="Generated from "`IFS=:
23282 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23283 if test x"$ac_file" != x-; then
23284 configure_input="$ac_file. $configure_input"
23285 { echo "$as_me:$LINENO: creating $ac_file" >&5
23286echo "$as_me: creating $ac_file" >&6;}
23287 fi
23288
23289 case $ac_tag in
23290 *:-:* | *:-) cat >"$tmp/stdin";;
23291 esac
23292 ;;
23293 esac
23294
23295 ac_dir=`$as_dirname -- "$ac_file" ||
23296$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23297 X"$ac_file" : 'X\(//\)[^/]' \| \
23298 X"$ac_file" : 'X\(//\)$' \| \
23299 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23300echo X"$ac_file" |
23301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23302 s//\1/
23303 q
23304 }
23305 /^X\(\/\/\)[^/].*/{
23306 s//\1/
23307 q
23308 }
23309 /^X\(\/\/\)$/{
23310 s//\1/
23311 q
23312 }
23313 /^X\(\/\).*/{
23314 s//\1/
23315 q
23316 }
23317 s/.*/./; q'`
23318 { as_dir="$ac_dir"
23319 case $as_dir in #(
23320 -*) as_dir=./$as_dir;;
23321 esac
23322 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23323 as_dirs=
23324 while :; do
23325 case $as_dir in #(
23326 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23327 *) as_qdir=$as_dir;;
23328 esac
23329 as_dirs="'$as_qdir' $as_dirs"
23330 as_dir=`$as_dirname -- "$as_dir" ||
23331$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23332 X"$as_dir" : 'X\(//\)[^/]' \| \
23333 X"$as_dir" : 'X\(//\)$' \| \
23334 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23335echo X"$as_dir" |
23336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23337 s//\1/
23338 q
23339 }
23340 /^X\(\/\/\)[^/].*/{
23341 s//\1/
23342 q
23343 }
23344 /^X\(\/\/\)$/{
23345 s//\1/
23346 q
23347 }
23348 /^X\(\/\).*/{
23349 s//\1/
23350 q
23351 }
23352 s/.*/./; q'`
23353 test -d "$as_dir" && break
23354 done
23355 test -z "$as_dirs" || eval "mkdir $as_dirs"
23356 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23357echo "$as_me: error: cannot create directory $as_dir" >&2;}
23358 { (exit 1); exit 1; }; }; }
23359 ac_builddir=.
23360
23361case "$ac_dir" in
23362.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23363*)
23364 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23365 # A ".." for each directory in $ac_dir_suffix.
23366 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23367 case $ac_top_builddir_sub in
23368 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23369 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23370 esac ;;
23371esac
23372ac_abs_top_builddir=$ac_pwd
23373ac_abs_builddir=$ac_pwd$ac_dir_suffix
23374# for backward compatibility:
23375ac_top_builddir=$ac_top_build_prefix
23376
23377case $srcdir in
23378 .) # We are building in place.
23379 ac_srcdir=.
23380 ac_top_srcdir=$ac_top_builddir_sub
23381 ac_abs_top_srcdir=$ac_pwd ;;
23382 [\\/]* | ?:[\\/]* ) # Absolute name.
23383 ac_srcdir=$srcdir$ac_dir_suffix;
23384 ac_top_srcdir=$srcdir
23385 ac_abs_top_srcdir=$srcdir ;;
23386 *) # Relative name.
23387 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23388 ac_top_srcdir=$ac_top_build_prefix$srcdir
23389 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23390esac
23391ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23392
23393
23394 case $ac_mode in
23395 :F)
23396 #
23397 # CONFIG_FILE
23398 #
23399
23400 case $INSTALL in
23401 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23402 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23403 esac
23404 ac_MKDIR_P=$MKDIR_P
23405 case $MKDIR_P in
23406 [\\/$]* | ?:[\\/]* ) ;;
23407 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23408 esac
23409_ACEOF
23410
23411cat >>$CONFIG_STATUS <<\_ACEOF
23412# If the template does not know about datarootdir, expand it.
23413# FIXME: This hack should be removed a few years after 2.60.
23414ac_datarootdir_hack=; ac_datarootdir_seen=
23415
23416case `sed -n '/datarootdir/ {
23417 p
23418 q
23419}
23420/@datadir@/p
23421/@docdir@/p
23422/@infodir@/p
23423/@localedir@/p
23424/@mandir@/p
23425' $ac_file_inputs` in
23426*datarootdir*) ac_datarootdir_seen=yes;;
23427*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23428 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23429echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23430_ACEOF
23431cat >>$CONFIG_STATUS <<_ACEOF
23432 ac_datarootdir_hack='
23433 s&@datadir@&$datadir&g
23434 s&@docdir@&$docdir&g
23435 s&@infodir@&$infodir&g
23436 s&@localedir@&$localedir&g
23437 s&@mandir@&$mandir&g
23438 s&\\\${datarootdir}&$datarootdir&g' ;;
23439esac
23440_ACEOF
23441
23442# Neutralize VPATH when `$srcdir' = `.'.
23443# Shell code in configure.ac might set extrasub.
23444# FIXME: do we really want to maintain this feature?
23445cat >>$CONFIG_STATUS <<_ACEOF
23446 sed "$ac_vpsub
23447$extrasub
23448_ACEOF
23449cat >>$CONFIG_STATUS <<\_ACEOF
23450:t
23451/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23452s&@configure_input@&$configure_input&;t t
23453s&@top_builddir@&$ac_top_builddir_sub&;t t
23454s&@srcdir@&$ac_srcdir&;t t
23455s&@abs_srcdir@&$ac_abs_srcdir&;t t
23456s&@top_srcdir@&$ac_top_srcdir&;t t
23457s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23458s&@builddir@&$ac_builddir&;t t
23459s&@abs_builddir@&$ac_abs_builddir&;t t
23460s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23461s&@INSTALL@&$ac_INSTALL&;t t
23462s&@MKDIR_P@&$ac_MKDIR_P&;t t
23463$ac_datarootdir_hack
23464" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23465
23466test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23467 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23468 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23469 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23470which seems to be undefined. Please make sure it is defined." >&5
23471echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23472which seems to be undefined. Please make sure it is defined." >&2;}
23473
23474 rm -f "$tmp/stdin"
23475 case $ac_file in
23476 -) cat "$tmp/out"; rm -f "$tmp/out";;
23477 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23478 esac
23479 ;;
23480 :H)
23481 #
23482 # CONFIG_HEADER
23483 #
23484_ACEOF
23485
23486# Transform confdefs.h into a sed script `conftest.defines', that
23487# substitutes the proper values into config.h.in to produce config.h.
23488rm -f conftest.defines conftest.tail
23489# First, append a space to every undef/define line, to ease matching.
23490echo 's/$/ /' >conftest.defines
23491# Then, protect against being on the right side of a sed subst, or in
23492# an unquoted here document, in config.status. If some macros were
23493# called several times there might be several #defines for the same
23494# symbol, which is useless. But do not sort them, since the last
23495# AC_DEFINE must be honored.
23496ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23497# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23498# NAME is the cpp macro being defined, VALUE is the value it is being given.
23499# PARAMS is the parameter list in the macro definition--in most cases, it's
23500# just an empty string.
23501ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23502ac_dB='\\)[ (].*,\\1define\\2'
23503ac_dC=' '
23504ac_dD=' ,'
23505
23506uniq confdefs.h |
23507 sed -n '
23508 t rset
23509 :rset
23510 s/^[ ]*#[ ]*define[ ][ ]*//
23511 t ok
23512 d
23513 :ok
23514 s/[\\&,]/\\&/g
23515 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23516 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23517 ' >>conftest.defines
23518
23519# Remove the space that was appended to ease matching.
23520# Then replace #undef with comments. This is necessary, for
23521# example, in the case of _POSIX_SOURCE, which is predefined and required
23522# on some systems where configure will not decide to define it.
23523# (The regexp can be short, since the line contains either #define or #undef.)
23524echo 's/ $//
23525s,^[ #]*u.*,/* & */,' >>conftest.defines
23526
23527# Break up conftest.defines:
23528ac_max_sed_lines=50
23529
23530# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23531# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23532# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23533# et cetera.
23534ac_in='$ac_file_inputs'
23535ac_out='"$tmp/out1"'
23536ac_nxt='"$tmp/out2"'
23537
23538while :
23539do
23540 # Write a here document:
23541 cat >>$CONFIG_STATUS <<_ACEOF
23542 # First, check the format of the line:
23543 cat >"\$tmp/defines.sed" <<\\CEOF
23544/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23545/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23546b
23547:def
23548_ACEOF
23549 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23550 echo 'CEOF
23551 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23552 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23553 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23554 grep . conftest.tail >/dev/null || break
23555 rm -f conftest.defines
23556 mv conftest.tail conftest.defines
23557done
23558rm -f conftest.defines conftest.tail
23559
23560echo "ac_result=$ac_in" >>$CONFIG_STATUS
23561cat >>$CONFIG_STATUS <<\_ACEOF
23562 if test x"$ac_file" != x-; then
23563 echo "/* $configure_input */" >"$tmp/config.h"
23564 cat "$ac_result" >>"$tmp/config.h"
23565 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23566 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23567echo "$as_me: $ac_file is unchanged" >&6;}
23568 else
23569 rm -f $ac_file
23570 mv "$tmp/config.h" $ac_file
23571 fi
23572 else
23573 echo "/* $configure_input */"
23574 cat "$ac_result"
23575 fi
23576 rm -f "$tmp/out12"
23577# Compute $ac_file's index in $config_headers.
23578_am_arg=$ac_file
23579_am_stamp_count=1
23580for _am_header in $config_headers :; do
23581 case $_am_header in
23582 $_am_arg | $_am_arg:* )
23583 break ;;
23584 * )
23585 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23586 esac
23587done
23588echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23589$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23590 X"$_am_arg" : 'X\(//\)[^/]' \| \
23591 X"$_am_arg" : 'X\(//\)$' \| \
23592 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23593echo X"$_am_arg" |
23594 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23595 s//\1/
23596 q
23597 }
23598 /^X\(\/\/\)[^/].*/{
23599 s//\1/
23600 q
23601 }
23602 /^X\(\/\/\)$/{
23603 s//\1/
23604 q
23605 }
23606 /^X\(\/\).*/{
23607 s//\1/
23608 q
23609 }
23610 s/.*/./; q'`/stamp-h$_am_stamp_count
23611 ;;
23612
23613 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23614echo "$as_me: executing $ac_file commands" >&6;}
23615 ;;
23616 esac
23617
23618
23619 case $ac_file$ac_mode in
23620 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23621 # Strip MF so we end up with the name of the file.
23622 mf=`echo "$mf" | sed -e 's/:.*$//'`
23623 # Check whether this is an Automake generated Makefile or not.
23624 # We used to match only the files named `Makefile.in', but
23625 # some people rename them; so instead we look at the file content.
23626 # Grep'ing the first line is not enough: some people post-process
23627 # each Makefile.in and add a new line on top of each file to say so.
23628 # Grep'ing the whole file is not good either: AIX grep has a line
23629 # limit of 2048, but all sed's we know have understand at least 4000.
23630 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23631 dirpart=`$as_dirname -- "$mf" ||
23632$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23633 X"$mf" : 'X\(//\)[^/]' \| \
23634 X"$mf" : 'X\(//\)$' \| \
23635 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23636echo X"$mf" |
23637 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23638 s//\1/
23639 q
23640 }
23641 /^X\(\/\/\)[^/].*/{
23642 s//\1/
23643 q
23644 }
23645 /^X\(\/\/\)$/{
23646 s//\1/
23647 q
23648 }
23649 /^X\(\/\).*/{
23650 s//\1/
23651 q
23652 }
23653 s/.*/./; q'`
23654 else
23655 continue
23656 fi
23657 # Extract the definition of DEPDIR, am__include, and am__quote
23658 # from the Makefile without running `make'.
23659 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23660 test -z "$DEPDIR" && continue
23661 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23662 test -z "am__include" && continue
23663 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23664 # When using ansi2knr, U may be empty or an underscore; expand it
23665 U=`sed -n 's/^U = //p' < "$mf"`
23666 # Find all dependency output files, they are included files with
23667 # $(DEPDIR) in their names. We invoke sed twice because it is the
23668 # simplest approach to changing $(DEPDIR) to its actual value in the
23669 # expansion.
23670 for file in `sed -n "
23671 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23672 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23673 # Make sure the directory exists.
23674 test -f "$dirpart/$file" && continue
23675 fdir=`$as_dirname -- "$file" ||
23676$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23677 X"$file" : 'X\(//\)[^/]' \| \
23678 X"$file" : 'X\(//\)$' \| \
23679 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23680echo X"$file" |
23681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23682 s//\1/
23683 q
23684 }
23685 /^X\(\/\/\)[^/].*/{
23686 s//\1/
23687 q
23688 }
23689 /^X\(\/\/\)$/{
23690 s//\1/
23691 q
23692 }
23693 /^X\(\/\).*/{
23694 s//\1/
23695 q
23696 }
23697 s/.*/./; q'`
23698 { as_dir=$dirpart/$fdir
23699 case $as_dir in #(
23700 -*) as_dir=./$as_dir;;
23701 esac
23702 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23703 as_dirs=
23704 while :; do
23705 case $as_dir in #(
23706 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23707 *) as_qdir=$as_dir;;
23708 esac
23709 as_dirs="'$as_qdir' $as_dirs"
23710 as_dir=`$as_dirname -- "$as_dir" ||
23711$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23712 X"$as_dir" : 'X\(//\)[^/]' \| \
23713 X"$as_dir" : 'X\(//\)$' \| \
23714 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23715echo X"$as_dir" |
23716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23717 s//\1/
23718 q
23719 }
23720 /^X\(\/\/\)[^/].*/{
23721 s//\1/
23722 q
23723 }
23724 /^X\(\/\/\)$/{
23725 s//\1/
23726 q
23727 }
23728 /^X\(\/\).*/{
23729 s//\1/
23730 q
23731 }
23732 s/.*/./; q'`
23733 test -d "$as_dir" && break
23734 done
23735 test -z "$as_dirs" || eval "mkdir $as_dirs"
23736 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23737echo "$as_me: error: cannot create directory $as_dir" >&2;}
23738 { (exit 1); exit 1; }; }; }
23739 # echo "creating $dirpart/$file"
23740 echo '# dummy' > "$dirpart/$file"
23741 done
23742done
23743 ;;
23744
23745 esac
23746done # for ac_tag
23747
23748
23749{ (exit 0); exit 0; }
23750_ACEOF
23751chmod +x $CONFIG_STATUS
23752ac_clean_files=$ac_clean_files_save
23753
23754
23755# configure is writing to config.log, and then calls config.status.
23756# config.status does its own redirection, appending to config.log.
23757# Unfortunately, on DOS this fails, as config.log is still kept open
23758# by configure, so config.status won't be able to write to it; its
23759# output is simply discarded. So we exec the FD to /dev/null,
23760# effectively closing config.log, so it can be properly (re)opened and
23761# appended to by config.status. When coming back to configure, we
23762# need to make the FD available again.
23763if test "$no_create" != yes; then
23764 ac_cs_success=:
23765 ac_config_status_args=
23766 test "$silent" = yes &&
23767 ac_config_status_args="$ac_config_status_args --quiet"
23768 exec 5>/dev/null
23769 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23770 exec 5>>config.log
23771 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23772 # would make configure fail if this is the last instruction.
23773 $ac_cs_success || { (exit 1); exit 1; }
23774fi
23775
23776
diff --git a/src/others/mimesh/libg3d-0.0.8/configure.in b/src/others/mimesh/libg3d-0.0.8/configure.in
new file mode 100644
index 0000000..4d1f639
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/configure.in
@@ -0,0 +1,221 @@
1
2AC_INIT(configure.in)
3AC_CONFIG_AUX_DIR(config)
4
5# versioning stuff
6m4_define([g3d_major_version], [0])
7m4_define([g3d_minor_version], [0])
8m4_define([g3d_micro_version], [8])
9m4_define([g3d_interface_age], [8])
10m4_define([g3d_version],
11 [g3d_major_version.g3d_minor_version.g3d_micro_version])
12m4_define([g3d_binary_age],
13 [m4_eval(100 * g3d_minor_version + g3d_micro_version)])
14VERSION=g3d_version
15
16m4_define([lt_current],
17 [m4_eval(100 * g3d_minor_version + g3d_micro_version - g3d_interface_age)])
18m4_define([lt_revision], [g3d_interface_age])
19m4_define([lt_age], [m4_eval(g3d_binary_age - g3d_interface_age)])
20LTVERSION="lt_current:lt_revision:lt_age"
21
22PACKAGE=libg3d
23
24AM_INIT_AUTOMAKE($PACKAGE, $VERSION, no-define)
25AC_SUBST(VERSION)
26AC_SUBST(LTVERSION)
27
28AC_CONFIG_HEADERS(include/g3d/config.h)
29
30AC_PROG_CC
31AM_PROG_LEX
32AC_HEADER_STDC
33
34AC_DISABLE_STATIC
35
36AM_IS_WIN32
37AM_CONDITIONAL(OS_WIN32, test "$os_win32" = yes)
38
39AC_LIBTOOL_WIN32_DLL
40AC_PROG_LIBTOOL
41
42# gtk-doc
43GTK_DOC_CHECK
44
45# glib
46AM_PATH_GLIB_2_0(2.0.0,,AC_MSG_ERROR([glib >= 2.0 is needed]), gmodule gobject)
47
48# gdk-pixbuf
49AM_PATH_GTK_2_0(2.0.0, have_gtk2=true)
50if test "x$have_gtk2" = "xtrue" ; then
51GDKPIXBUF_CFLAGS=$GTK_CFLAGS
52GDKPIXBUF_LIBS=$GTK_LIBS
53AC_SUBST(GDKPIXBUF_CFLAGS)
54AC_SUBST(GDKPIXBUF_LIBS)
55fi
56AM_CONDITIONAL([HAVE_GDKPIXBUF], test "x$have_gtk2" = "xtrue")
57
58# libxml2
59AM_PATH_XML2(2.0.0, have_libxml2=true)
60if test "x$have_libxml2" = "xtrue" ; then
61LIBXML2_CFLAGS=$XML_CPPFLAGS
62LIBXML2_LIBS=$XML_LIBS
63AC_SUBST(LIBXML2_CFLAGS)
64AC_SUBST(LIBXML2_LIBS)
65fi
66AM_CONDITIONAL([HAVE_LIBXML2], test "x$have_libxml2" = "xtrue")
67
68# libgsf
69PKG_CHECK_MODULES(LIBGSF, libgsf-1 >= 1.0.0,
70 [have_libgsf=true], [have_libgsf=false])
71if test "x$have_libgsf" = "xtrue" ; then
72AC_DEFINE([HAVE_LIBGSF], 1, [have GSF library])
73fi
74AM_CONDITIONAL([HAVE_LIBGSF], test "x$have_libgsf" = "xtrue")
75
76# libmagic
77AC_ARG_ENABLE(libmagic,
78 [[ --disable-libmagic disable file type detection using libmagic]],
79 [if test "$enableval" = "no" ; then disable_libmagic=true ; fi])
80if test "x$disable_libmagic" != "xtrue" ; then
81AC_CHECK_HEADER([magic.h], have_magic_h=true)
82AC_CHECK_LIB([magic], [magic_open], have_magic_open=true)
83if test "x$have_magic_h" = "xtrue" && test "x$have_magic_open" = "xtrue"; then
84have_libmagic=true
85AC_DEFINE([USE_LIBMAGIC], 1, [use libmagic for file type detection])
86AC_DEFINE_DIR([MAGIC_FILENAME], libdir/$PACKAGE/libg3d.magic, [magic file])
87MAGIC_LIBS=-lmagic
88fi
89fi
90AC_SUBST(MAGIC_LIBS)
91#AM_CONDITIONAL([USE_LIBMAGIC], test "x$have_libmagic" = "xtrue")
92
93# libm
94AC_CHECK_LIB(m, sqrt,, [AC_MSG_ERROR([requires math library])])
95MATH_LIBS=-lm
96AC_SUBST(MATH_LIBS)
97
98# zlib
99Z_DIR= Z_LIBS= Z_CFLAGS=
100AC_ARG_WITH(zlib,
101 [[ --with-zlib=DIR use libz in DIR]],
102 [case $withval in
103 yes|no) ;;
104 *) Z_DIR=$withval
105 CPPFLAGS="${CPPFLAGS} -I$withval/include"
106 LDFLAGS="${LDFLAGS} -L$withval/lib"
107 ;;
108 esac])
109if test "x$with_zlib" != xno; then
110 with_zlib=no
111 AC_CHECK_HEADER(zlib.h, [AC_CHECK_LIB(z, gzread, [with_zlib=yes])])
112fi
113if test "x$Z_DIR" != "x"; then
114 Z_CFLAGS="-I$Z_DIR/include"
115 Z_LIBS="-L$Z_DIR/lib -lz"
116else
117 Z_LIBS="-lz"
118fi
119AC_SUBST(Z_CFLAGS)
120AC_SUBST(Z_LIBS)
121if test "$with_zlib" = "yes"; then
122 AC_DEFINE([HAVE_ZLIB], 1, [have zlib])
123fi
124AM_CONDITIONAL([HAVE_ZLIB], test "$with_zlib" = "yes")
125
126# Debug level (verbosity & optimization)
127AC_MSG_CHECKING([for debug level])
128AC_ARG_ENABLE(debug,
129 [[ --enable-debug[=LVL] enable debug level LVL or 1 (default is 0)]],
130 [if test "$enableval" = "yes" ; then DEBUG=1; else DEBUG=$enableval; fi],
131 DEBUG=0)
132AC_MSG_RESULT($DEBUG)
133AC_SUBST(DEBUG)
134
135AC_ARG_ENABLE(experimental,
136 [[ --enable-experimental enable experimental and unfinished plugins]],
137 [if test "x$enableval" = "xyes" ; then experimental=1
138 else experimental=0; fi],
139 experimental=0)
140AM_CONDITIONAL([EXPERIMENTAL], test "x$experimental" = "x1")
141
142AC_ARG_ENABLE(cxxtest,
143 [[ --enable-cxxtest enable C++ test]],
144 [if test "x$enableval" = "xyes" ; then cxxtest=1 else cxxtest=0; fi],
145 cxxtest=0)
146AM_CONDITIONAL([HAVE_CXX], test "x$cxxtest" = "x1")
147
148AC_ARG_ENABLE(profile,
149 [[ --enable-profile enable gprof profiling]],
150 [if test "x$enableval" = "xyes" ; then profile="-pg"
151 else profile=""; fi],
152 profile="")
153
154if test "$DEBUG" = "0"; then
155 DBG_CFLAGS="-O2 $profile"
156else
157 DBG_CFLAGS="-g $profile"
158fi
159AC_SUBST(DBG_CFLAGS)
160
161# plugin directories
162AC_DEFINE_DIR(PLUGIN_DIR, libdir/$PACKAGE/plugins, [Plugin directory])
163
164PLUGINS_LDFLAGS="-avoid-version -export-dynamic"
165AC_SUBST(PLUGINS_LDFLAGS)
166
167AC_OUTPUT(
168 Makefile
169 doc/Makefile
170 doc/api/Makefile
171 doc/support_matrix/Makefile
172 include/Makefile
173 include/g3d/Makefile
174 m4/Makefile
175 plugins/Makefile
176 plugins/image/Makefile
177 plugins/import/Makefile
178 plugins/import/imp_3dm/Makefile
179 plugins/import/imp_3dmf/Makefile
180 plugins/import/imp_3ds/Makefile
181 plugins/import/imp_ac3d/Makefile
182 plugins/import/imp_acf/Makefile
183 plugins/import/imp_ar/Makefile
184 plugins/import/imp_ase/Makefile
185 plugins/import/imp_blend/Makefile
186 plugins/import/imp_c4d/Makefile
187 plugins/import/imp_cob/Makefile
188 plugins/import/imp_dae/Makefile
189 plugins/import/imp_dpm/Makefile
190 plugins/import/imp_dxf/Makefile
191 plugins/import/imp_flt/Makefile
192 plugins/import/imp_glb/Makefile
193 plugins/import/imp_heightfield/Makefile
194 plugins/import/imp_iob/Makefile
195 plugins/import/imp_joe/Makefile
196 plugins/import/imp_kmz/Makefile
197 plugins/import/imp_ldraw/Makefile
198 plugins/import/imp_leocad/Makefile
199 plugins/import/imp_lwo/Makefile
200 plugins/import/imp_max/Makefile
201 plugins/import/imp_maya/Makefile
202 plugins/import/imp_md2/Makefile
203 plugins/import/imp_md3/Makefile
204 plugins/import/imp_nff/Makefile
205 plugins/import/imp_obj/Makefile
206 plugins/import/imp_osm/Makefile
207 plugins/import/imp_q3o/Makefile
208 plugins/import/imp_r4/Makefile
209 plugins/import/imp_rbh/Makefile
210 plugins/import/imp_skp/Makefile
211 plugins/import/imp_stl/Makefile
212 plugins/import/imp_ta/Makefile
213 plugins/import/imp_test/Makefile
214 plugins/import/imp_vrml/Makefile
215 plugins/import/imp_vrml2/Makefile
216 src/Makefile
217 programs/Makefile
218 tests/Makefile
219 libg3d.pc
220)
221