Codebase list virt-viewer / upstream/0.0.3
Imported Upstream version 0.0.3 Guido Guenther 16 years ago
31 changed file(s) with 39056 addition(s) and 2332 deletion(s). Raw diff Collapse all Expand all
22
33 The Virt Viewer application is written by
44
5 Daniel P. Berrange <berrange@redhat.com>
5 Daniel P. Berrange <berrange-at-redhat-dot-com>
66
77 With additional patches from:
8
9 Chris Lalancette <clalance-at-redhat-dot-com>
10 Atsushi SAKAI <sakaia-at-jp-dot-fujitsu-dot-com>
11 Richard W.M. Jones <rjones-at-redhat-dot-com>
812
913 ...send patches to get your name here...
1014
0 2008-03-09 "Daniel P. Berrange <berrange@redhat.com>
1
2 * autobuild.sh, configure.ac, virt-viewer.spec.in:
3 Added -plugin sub RPM, disabled by default, except for autobuild
4 [efcac0fc56b5] [tip]
5
6 2008-03-08 "Daniel P. Berrange <berrange@redhat.com>
7
8 * configure.ac:
9 Relax firefox plugin version to 1.5.0
10 [0252cf01fe3c]
11
12 2008-03-07 "Daniel P. Berrange <berrange@redhat.com>
13
14 * src/main.c:
15 Disable scaling by default if running on composited window
16 [aadb3fb8316e]
17
18 * src/main.c:
19 Block view menu accelerator & remove debug
20 [01e11e3566ff]
21
22 * src/main.c, virt-viewer.spec.in:
23 Added support for desktop scaling with OpenGL
24 [23cd61984e4c]
25
26 2008-03-05 "Daniel P. Berrange <berrange@redhat.com>
27
28 * .hgignore, acinclude.m4, autobuild.sh, autogen.sh, configure.ac,
29 plugin/Makefile.am, plugin/npshell.c, plugin/npunix.c, plugin/virt-
30 viewer-plugin.c, src/main.c:
31 Kill automake portability warnings. Use a config.h Cleanup misc
32 build issues. Build with fatal compile warnings
33 [7254e127a017]
34
35 * src/main.c:
36 Disable menu accelerators when keyboard is grabbed (Chris Lalancett)
37 [50ed4d0b0632]
38
39 * autogen.sh:
40 Fix type in autogen.sh output (Chris Lalancett)
41 [25932c2b565a]
42
43 2008-01-25 "Daniel P. Berrange <berrange@redhat.com>
44
45 * .hgignore, Makefile.am, autogen.sh, configure.ac,
46 plugin/Makefile.am, plugin/npshell.c, plugin/npunix.c,
47 plugin/test.html, plugin/virt-viewer-plugin.c, plugin/virt-viewer-
48 plugin.h:
49 Added browser plugin (Richard Jones)
50 [09761c04bdcd]
51
52 * AUTHORS, src/Makefile.am, src/main.c, src/viewer.h:
53 Refactor main method for viewer to prepare for plugin (Richard Jones
54 [270fbc7d4192]
55
56 2008-01-11 "Daniel P. Berrange <berrange@redhat.com>
57
58 * src/main.c:
59 Whitespace fix
60 [fe1efb558b4b]
61
62 * src/main.c:
63 Hide chars in passwd field
64 [69daa8257222]
65
66 2008-01-10 "Daniel P. Berrange <berrange@redhat.com>
67
68 * AUTHORS, NEWS, README, man/virt-viewer.pod, src/main.c:
69 Fix a few typos (Atsushi SAKAI)
70 [a0d79af724b0]
71
72 2007-11-29 "Daniel P. Berrange <berrange@redhat.com>
73
74 * AUTHORS, src/main.c:
75 Use proper domain name in title bar, rather than VNC server title
76 [59fccec87973]
77
078 2007-08-28 "Daniel P. Berrange <berrange@redhat.com>
79
80 * .hgtags:
81 Added tag release-0.0.2 for changeset f3accb51c6f5
82 [97f00b8df38a]
83
84 * src/main.c:
85 Fix crash with no transport
86 [f3accb51c6f5] [release-0.0.2]
87
88 * ChangeLog, NEWS, configure.ac, virt-viewer.spec.in:
89 New release 0.0.2
90 [3d88506cc468]
191
292 * man/virt-viewer.pod:
393 Document the '--direct' option
4 [0d9a8fd612d9] [tip]
94 [0d9a8fd612d9]
595
696 * src/main.c:
797 Support TLS credentials & improved SSH tunnelling
16106 * Merge
17107 [c40130b3a7ec]
18108
19 2007-08-15 "Daniel P. Berrange <berrange@redhat.com>
20
21 * COPYING, INSTALL:
22 Added COPYING/INSTALL files
23 [1f83ef35bb59]
24
25 2007-08-27 "Daniel P. Berrange <berrange@redhat.com>
26
27109 * src/main.c:
28110 Added initial ability to connect remote hosts
29111 [ac9cae161efb]
37119 [21f7b4c5c93c]
38120
39121 2007-08-15 "Daniel P. Berrange <berrange@redhat.com>
122
123 * COPYING, INSTALL:
124 Added COPYING/INSTALL files
125 [1f83ef35bb59]
40126
41127 * .hgtags:
42128 Added tag release-0.0.1 for changeset 2b78ab2d18ce
00
1 SUBDIRS = src man
1 SUBDIRS = src man plugin
22
33 EXTRA_DIST = @PACKAGE@.spec
44
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
0 # Makefile.in generated by automake 1.10 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 Free Software Foundation, Inc.
4 # 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
77 # with or without modifications, as long as this notice is preserved.
1212 # PARTICULAR PURPOSE.
1313
1414 @SET_MAKE@
15 srcdir = @srcdir@
16 top_srcdir = @top_srcdir@
1715 VPATH = @srcdir@
1816 pkgdatadir = $(datadir)/@PACKAGE@
1917 pkglibdir = $(libdir)/@PACKAGE@
2018 pkgincludedir = $(includedir)/@PACKAGE@
21 top_builddir = .
2219 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 INSTALL = @INSTALL@
2420 install_sh_DATA = $(install_sh) -c -m 644
2521 install_sh_PROGRAM = $(install_sh) -c
2622 install_sh_SCRIPT = $(install_sh) -c
3228 NORMAL_UNINSTALL = :
3329 PRE_UNINSTALL = :
3430 POST_UNINSTALL = :
31 build_triplet = @build@
32 host_triplet = @host@
3533 subdir = .
3634 DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
37 $(srcdir)/Makefile.in $(srcdir)/virt-viewer.spec.in \
38 $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \
39 compile depcomp install-sh missing
35 $(srcdir)/Makefile.in $(srcdir)/config.h.in \
36 $(srcdir)/virt-viewer.spec.in $(top_srcdir)/configure AUTHORS \
37 COPYING ChangeLog INSTALL NEWS compile config.guess config.sub \
38 depcomp install-sh ltmain.sh missing
4039 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
4140 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
4241 $(top_srcdir)/configure.ac
4342 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
4443 $(ACLOCAL_M4)
4544 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
46 configure.lineno configure.status.lineno
45 configure.lineno config.status.lineno
4746 mkinstalldirs = $(install_sh) -d
47 CONFIG_HEADER = config.h
4848 CONFIG_CLEAN_FILES = virt-viewer.spec
4949 SOURCES =
5050 DIST_SOURCES =
5151 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
5252 html-recursive info-recursive install-data-recursive \
53 install-exec-recursive install-info-recursive \
54 install-recursive installcheck-recursive installdirs-recursive \
55 pdf-recursive ps-recursive uninstall-info-recursive \
56 uninstall-recursive
53 install-dvi-recursive install-exec-recursive \
54 install-html-recursive install-info-recursive \
55 install-pdf-recursive install-ps-recursive install-recursive \
56 installcheck-recursive installdirs-recursive pdf-recursive \
57 ps-recursive uninstall-recursive
58 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
59 distclean-recursive maintainer-clean-recursive
5760 ETAGS = etags
5861 CTAGS = ctags
5962 DIST_SUBDIRS = $(SUBDIRS)
6972 distuninstallcheck_listfiles = find . -type f -print
7073 distcleancheck_listfiles = find . -type f -print
7174 ACLOCAL = @ACLOCAL@
72 AMDEP_FALSE = @AMDEP_FALSE@
73 AMDEP_TRUE = @AMDEP_TRUE@
7475 AMTAR = @AMTAR@
76 AR = @AR@
7577 AUTOCONF = @AUTOCONF@
7678 AUTOHEADER = @AUTOHEADER@
7779 AUTOMAKE = @AUTOMAKE@
7981 CC = @CC@
8082 CCDEPMODE = @CCDEPMODE@
8183 CFLAGS = @CFLAGS@
84 CPP = @CPP@
8285 CPPFLAGS = @CPPFLAGS@
86 CXX = @CXX@
87 CXXCPP = @CXXCPP@
88 CXXDEPMODE = @CXXDEPMODE@
89 CXXFLAGS = @CXXFLAGS@
8390 CYGPATH_W = @CYGPATH_W@
8491 DEFS = @DEFS@
8592 DEPDIR = @DEPDIR@
93 ECHO = @ECHO@
8694 ECHO_C = @ECHO_C@
8795 ECHO_N = @ECHO_N@
8896 ECHO_T = @ECHO_T@
97 EGREP = @EGREP@
8998 EXEEXT = @EXEEXT@
99 F77 = @F77@
100 FFLAGS = @FFLAGS@
101 FIREFOX_PLUGIN_CFLAGS = @FIREFOX_PLUGIN_CFLAGS@
102 FIREFOX_PLUGIN_LIBS = @FIREFOX_PLUGIN_LIBS@
103 GREP = @GREP@
90104 GTK2_CFLAGS = @GTK2_CFLAGS@
91105 GTK2_LIBS = @GTK2_LIBS@
92106 GTKVNC_CFLAGS = @GTKVNC_CFLAGS@
93107 GTKVNC_LIBS = @GTKVNC_LIBS@
108 INSTALL = @INSTALL@
94109 INSTALL_DATA = @INSTALL_DATA@
95110 INSTALL_PROGRAM = @INSTALL_PROGRAM@
96111 INSTALL_SCRIPT = @INSTALL_SCRIPT@
98113 LDFLAGS = @LDFLAGS@
99114 LIBOBJS = @LIBOBJS@
100115 LIBS = @LIBS@
116 LIBTOOL = @LIBTOOL@
101117 LIBVIRT_CFLAGS = @LIBVIRT_CFLAGS@
102118 LIBVIRT_LIBS = @LIBVIRT_LIBS@
103119 LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
104120 LIBXML2_LIBS = @LIBXML2_LIBS@
121 LN_S = @LN_S@
105122 LTLIBOBJS = @LTLIBOBJS@
106123 MAKEINFO = @MAKEINFO@
124 MKDIR_P = @MKDIR_P@
125 MOZILLA_PLUGIN_CFLAGS = @MOZILLA_PLUGIN_CFLAGS@
126 MOZILLA_PLUGIN_LIBS = @MOZILLA_PLUGIN_LIBS@
127 NSPR_CFLAGS = @NSPR_CFLAGS@
128 NSPR_LIBS = @NSPR_LIBS@
107129 OBJEXT = @OBJEXT@
108130 PACKAGE = @PACKAGE@
109131 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
113135 PACKAGE_VERSION = @PACKAGE_VERSION@
114136 PATH_SEPARATOR = @PATH_SEPARATOR@
115137 PKG_CONFIG = @PKG_CONFIG@
138 RANLIB = @RANLIB@
139 SED = @SED@
116140 SET_MAKE = @SET_MAKE@
117141 SHELL = @SHELL@
118142 STRIP = @STRIP@
119143 VERSION = @VERSION@
120144 WARN_CFLAGS = @WARN_CFLAGS@
145 abs_builddir = @abs_builddir@
146 abs_srcdir = @abs_srcdir@
147 abs_top_builddir = @abs_top_builddir@
148 abs_top_srcdir = @abs_top_srcdir@
121149 ac_ct_CC = @ac_ct_CC@
122 ac_ct_STRIP = @ac_ct_STRIP@
123 ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@
124 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
125 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
150 ac_ct_CXX = @ac_ct_CXX@
151 ac_ct_F77 = @ac_ct_F77@
126152 am__include = @am__include@
127153 am__leading_dot = @am__leading_dot@
128154 am__quote = @am__quote@
129155 am__tar = @am__tar@
130156 am__untar = @am__untar@
131157 bindir = @bindir@
158 build = @build@
132159 build_alias = @build_alias@
160 build_cpu = @build_cpu@
161 build_os = @build_os@
162 build_vendor = @build_vendor@
163 builddir = @builddir@
133164 datadir = @datadir@
165 datarootdir = @datarootdir@
166 docdir = @docdir@
167 dvidir = @dvidir@
134168 exec_prefix = @exec_prefix@
169 host = @host@
135170 host_alias = @host_alias@
171 host_cpu = @host_cpu@
172 host_os = @host_os@
173 host_vendor = @host_vendor@
174 htmldir = @htmldir@
136175 includedir = @includedir@
137176 infodir = @infodir@
138177 install_sh = @install_sh@
139178 libdir = @libdir@
140179 libexecdir = @libexecdir@
180 localedir = @localedir@
141181 localstatedir = @localstatedir@
142182 mandir = @mandir@
143183 mkdir_p = @mkdir_p@
144184 oldincludedir = @oldincludedir@
185 pdfdir = @pdfdir@
145186 prefix = @prefix@
146187 program_transform_name = @program_transform_name@
188 psdir = @psdir@
147189 sbindir = @sbindir@
148190 sharedstatedir = @sharedstatedir@
191 srcdir = @srcdir@
149192 sysconfdir = @sysconfdir@
150193 target_alias = @target_alias@
151 SUBDIRS = src man
194 top_builddir = @top_builddir@
195 top_srcdir = @top_srcdir@
196 SUBDIRS = src man plugin
152197 EXTRA_DIST = @PACKAGE@.spec
153198 DISTCLEAN_FILES = @PACKAGE@.spec
154 all: all-recursive
199 all: config.h
200 $(MAKE) $(AM_MAKEFLAGS) all-recursive
155201
156202 .SUFFIXES:
157203 am--refresh:
187233 cd $(srcdir) && $(AUTOCONF)
188234 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
189235 cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
236
237 config.h: stamp-h1
238 @if test ! -f $@; then \
239 rm -f stamp-h1; \
240 $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
241 else :; fi
242
243 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
244 @rm -f stamp-h1
245 cd $(top_builddir) && $(SHELL) ./config.status config.h
246 $(srcdir)/config.h.in: $(am__configure_deps)
247 cd $(top_srcdir) && $(AUTOHEADER)
248 rm -f stamp-h1
249 touch $@
250
251 distclean-hdr:
252 -rm -f config.h stamp-h1
190253 virt-viewer.spec: $(top_builddir)/config.status $(srcdir)/virt-viewer.spec.in
191254 cd $(top_builddir) && $(SHELL) ./config.status $@
192 uninstall-info-am:
255
256 mostlyclean-libtool:
257 -rm -f *.lo
258
259 clean-libtool:
260 -rm -rf .libs _libs
261
262 distclean-libtool:
263 -rm -f libtool
193264
194265 # This directory's subdirectories are mostly independent; you can cd
195266 # into them and run `make' without going through this Makefile.
222293 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
223294 fi; test -z "$$fail"
224295
225 mostlyclean-recursive clean-recursive distclean-recursive \
226 maintainer-clean-recursive:
296 $(RECURSIVE_CLEAN_TARGETS):
227297 @failcom='exit 1'; \
228298 for f in x $$MAKEFLAGS; do \
229299 case $$f in \
272342 mkid -fID $$unique
273343 tags: TAGS
274344
275 TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
345 TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
276346 $(TAGS_FILES) $(LISP)
277347 tags=; \
278348 here=`pwd`; \
289359 tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
290360 fi; \
291361 done; \
292 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
362 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
293363 unique=`for i in $$list; do \
294364 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
295365 done | \
301371 $$tags $$unique; \
302372 fi
303373 ctags: CTAGS
304 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
374 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
305375 $(TAGS_FILES) $(LISP)
306376 tags=; \
307377 here=`pwd`; \
308 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
378 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
309379 unique=`for i in $$list; do \
310380 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
311381 done | \
325395
326396 distdir: $(DISTFILES)
327397 $(am__remove_distdir)
328 mkdir $(distdir)
329 $(mkdir_p) $(distdir)/.
330 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
331 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
332 list='$(DISTFILES)'; for file in $$list; do \
333 case $$file in \
334 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
335 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
336 esac; \
398 test -d $(distdir) || mkdir $(distdir)
399 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
400 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
401 list='$(DISTFILES)'; \
402 dist_files=`for file in $$list; do echo $$file; done | \
403 sed -e "s|^$$srcdirstrip/||;t" \
404 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
405 case $$dist_files in \
406 */*) $(MKDIR_P) `echo "$$dist_files" | \
407 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
408 sort -u` ;; \
409 esac; \
410 for file in $$dist_files; do \
337411 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
338 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
339 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
340 dir="/$$dir"; \
341 $(mkdir_p) "$(distdir)$$dir"; \
342 else \
343 dir=''; \
344 fi; \
345412 if test -d $$d/$$file; then \
413 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
346414 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
347415 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
348416 fi; \
356424 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
357425 if test "$$subdir" = .; then :; else \
358426 test -d "$(distdir)/$$subdir" \
359 || $(mkdir_p) "$(distdir)/$$subdir" \
427 || $(MKDIR_P) "$(distdir)/$$subdir" \
360428 || exit 1; \
361429 distdir=`$(am__cd) $(distdir) && pwd`; \
362430 top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
364432 $(MAKE) $(AM_MAKEFLAGS) \
365433 top_distdir="$$top_distdir" \
366434 distdir="$$distdir/$$subdir" \
435 am__remove_distdir=: \
436 am__skip_length_check=: \
367437 distdir) \
368438 || exit 1; \
369439 fi; \
371441 -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
372442 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
373443 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
374 ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
444 ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
375445 || chmod -R a+r $(distdir)
376446 dist-gzip: distdir
377447 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
446516 $(am__remove_distdir)
447517 @(echo "$(distdir) archives ready for distribution: "; \
448518 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
449 sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
519 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
450520 distuninstallcheck:
451521 @cd $(distuninstallcheck_dir) \
452522 && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
467537 exit 1; } >&2
468538 check-am: all-am
469539 check: check-recursive
470 all-am: Makefile
540 all-am: Makefile config.h
471541 installdirs: installdirs-recursive
472542 installdirs-am:
473543 install: install-recursive
496566 @echo "it deletes files that may require special tools to rebuild."
497567 clean: clean-recursive
498568
499 clean-am: clean-generic mostlyclean-am
569 clean-am: clean-generic clean-libtool mostlyclean-am
500570
501571 distclean: distclean-recursive
502572 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
503573 -rm -f Makefile
504 distclean-am: clean-am distclean-generic distclean-tags
574 distclean-am: clean-am distclean-generic distclean-hdr \
575 distclean-libtool distclean-tags
505576
506577 dvi: dvi-recursive
507578
515586
516587 install-data-am:
517588
589 install-dvi: install-dvi-recursive
590
518591 install-exec-am:
519592
593 install-html: install-html-recursive
594
520595 install-info: install-info-recursive
521596
522597 install-man:
598
599 install-pdf: install-pdf-recursive
600
601 install-ps: install-ps-recursive
523602
524603 installcheck-am:
525604
531610
532611 mostlyclean: mostlyclean-recursive
533612
534 mostlyclean-am: mostlyclean-generic
613 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
535614
536615 pdf: pdf-recursive
537616
541620
542621 ps-am:
543622
544 uninstall-am: uninstall-info-am
545
546 uninstall-info: uninstall-info-recursive
547
548 .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \
549 check-am clean clean-generic clean-recursive ctags \
550 ctags-recursive dist dist-all dist-bzip2 dist-gzip dist-shar \
551 dist-tarZ dist-zip distcheck distclean distclean-generic \
552 distclean-recursive distclean-tags distcleancheck distdir \
553 distuninstallcheck dvi dvi-am html html-am info info-am \
554 install install-am install-data install-data-am install-exec \
555 install-exec-am install-info install-info-am install-man \
556 install-strip installcheck installcheck-am installdirs \
557 installdirs-am maintainer-clean maintainer-clean-generic \
558 maintainer-clean-recursive mostlyclean mostlyclean-generic \
559 mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \
560 uninstall uninstall-am uninstall-info-am
623 uninstall-am:
624
625 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
626 install-strip
627
628 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
629 all all-am am--refresh check check-am clean clean-generic \
630 clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
631 dist-gzip dist-shar dist-tarZ dist-zip distcheck distclean \
632 distclean-generic distclean-hdr distclean-libtool \
633 distclean-tags distcleancheck distdir distuninstallcheck dvi \
634 dvi-am html html-am info info-am install install-am \
635 install-data install-data-am install-dvi install-dvi-am \
636 install-exec install-exec-am install-html install-html-am \
637 install-info install-info-am install-man install-pdf \
638 install-pdf-am install-ps install-ps-am install-strip \
639 installcheck installcheck-am installdirs installdirs-am \
640 maintainer-clean maintainer-clean-generic mostlyclean \
641 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
642 tags tags-recursive uninstall uninstall-am
561643
562644 # Tell versions [3.59,3.63) of GNU make to not export all variables.
563645 # Otherwise a system limit (for SysV at least) may be exceeded.
00 Virt Viewer News
11 ================
22
3 August 28, 2008
3 March 10, 2008
4 --------------
5
6 - Block accelerators when grab is active
7 - Enable smooth scaling of desktop to fill screen
8 - Added an experimental firefox plugin (disabled by default)
9 - Hide characters in password entry field
10 - Use domain name in title bar instead of VNC desktop name
11
12 August 28, 2007
413 ---------------
514
615 - Support connecting to remote libvirt servers
716 - Support connecting to remote VNC consoles
8 - Support tunnelling VNC over SSH
17 - Support tunneling VNC over SSH
918 - Support TLS x509 certificate credentials
1019
1120 August 15, 2007
77 to both local and remotely hosted guest OS, optionally
88 using SSL/TLS encryption.
99
10 Viewer Viewer uses the GTK-VNC widget to provide a display
10 Virt Viewer uses the GTK-VNC widget to provide a display
1111 of the VNC protocol. This is available from
1212
1313 http://gtk-vnc.sourceforge.net/
1414
15 Viewer Viewer uses libvirt to lookup information about the
15 Virt Viewer uses libvirt to lookup information about the
1616 guest OS display. This is available from
1717
1818 http://libvirt.org/
3232 maximum|error)
3333 try_compiler_flags="$try_compiler_flags -Wall -Wmissing-prototypes -std=c99 -Wnested-externs -Wpointer-arith"
3434 try_compiler_flags="$try_compiler_flags -Wextra -Wshadow -Wcast-align -Wwrite-strings -Waggregate-return"
35 try_compiler_flags="$try_compiler_flags -Wstrict-prototypes -Winline -Wredundant-decls -Wno-sign-compare"
35 # Removed -Wstrict-prototypes to avoid GTK bug
36 try_compiler_flags="$try_compiler_flags -Winline -Wredundant-decls -Wno-sign-compare"
3637 if test "$enable_compile_warnings" = "error" ; then
3738 try_compiler_flags="$try_compiler_flags -Werror"
3839 fi
0 # generated automatically by aclocal 1.9.6 -*- Autoconf -*-
0 # generated automatically by aclocal 1.10 -*- Autoconf -*-
11
22 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
3 # 2005 Free Software Foundation, Inc.
3 # 2005, 2006 Free Software Foundation, Inc.
44 # This file is free software; the Free Software Foundation
55 # gives unlimited permission to copy and/or distribute it,
66 # with or without modifications, as long as this notice is preserved.
99 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
1010 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
1111 # PARTICULAR PURPOSE.
12
13 m4_if(m4_PACKAGE_VERSION, [2.61],,
14 [m4_fatal([this file was generated for autoconf 2.61.
15 You have another version of autoconf. If you want to use that,
16 you should regenerate the build system entirely.], [63])])
17
18 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
19
20 # serial 51 AC_PROG_LIBTOOL
21
22
23 # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
24 # -----------------------------------------------------------
25 # If this macro is not defined by Autoconf, define it here.
26 m4_ifdef([AC_PROVIDE_IFELSE],
27 [],
28 [m4_define([AC_PROVIDE_IFELSE],
29 [m4_ifdef([AC_PROVIDE_$1],
30 [$2], [$3])])])
31
32
33 # AC_PROG_LIBTOOL
34 # ---------------
35 AC_DEFUN([AC_PROG_LIBTOOL],
36 [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
37 dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
38 dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
39 AC_PROVIDE_IFELSE([AC_PROG_CXX],
40 [AC_LIBTOOL_CXX],
41 [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
42 ])])
43 dnl And a similar setup for Fortran 77 support
44 AC_PROVIDE_IFELSE([AC_PROG_F77],
45 [AC_LIBTOOL_F77],
46 [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
47 ])])
48
49 dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
50 dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
51 dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
52 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
53 [AC_LIBTOOL_GCJ],
54 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
55 [AC_LIBTOOL_GCJ],
56 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
57 [AC_LIBTOOL_GCJ],
58 [ifdef([AC_PROG_GCJ],
59 [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
60 ifdef([A][M_PROG_GCJ],
61 [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
62 ifdef([LT_AC_PROG_GCJ],
63 [define([LT_AC_PROG_GCJ],
64 defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
65 ])])# AC_PROG_LIBTOOL
66
67
68 # _AC_PROG_LIBTOOL
69 # ----------------
70 AC_DEFUN([_AC_PROG_LIBTOOL],
71 [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
72 AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
73 AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
74 AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
75
76 # This can be used to rebuild libtool when needed
77 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
78
79 # Always use our own libtool.
80 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
81 AC_SUBST(LIBTOOL)dnl
82
83 # Prevent multiple expansion
84 define([AC_PROG_LIBTOOL], [])
85 ])# _AC_PROG_LIBTOOL
86
87
88 # AC_LIBTOOL_SETUP
89 # ----------------
90 AC_DEFUN([AC_LIBTOOL_SETUP],
91 [AC_PREREQ(2.50)dnl
92 AC_REQUIRE([AC_ENABLE_SHARED])dnl
93 AC_REQUIRE([AC_ENABLE_STATIC])dnl
94 AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
95 AC_REQUIRE([AC_CANONICAL_HOST])dnl
96 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
97 AC_REQUIRE([AC_PROG_CC])dnl
98 AC_REQUIRE([AC_PROG_LD])dnl
99 AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
100 AC_REQUIRE([AC_PROG_NM])dnl
101
102 AC_REQUIRE([AC_PROG_LN_S])dnl
103 AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
104 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
105 AC_REQUIRE([AC_OBJEXT])dnl
106 AC_REQUIRE([AC_EXEEXT])dnl
107 dnl
108
109 AC_LIBTOOL_SYS_MAX_CMD_LEN
110 AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
111 AC_LIBTOOL_OBJDIR
112
113 AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
114 _LT_AC_PROG_ECHO_BACKSLASH
115
116 case $host_os in
117 aix3*)
118 # AIX sometimes has problems with the GCC collect2 program. For some
119 # reason, if we set the COLLECT_NAMES environment variable, the problems
120 # vanish in a puff of smoke.
121 if test "X${COLLECT_NAMES+set}" != Xset; then
122 COLLECT_NAMES=
123 export COLLECT_NAMES
124 fi
125 ;;
126 esac
127
128 # Sed substitution that helps us do robust quoting. It backslashifies
129 # metacharacters that are still active within double-quoted strings.
130 Xsed='sed -e 1s/^X//'
131 [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
132
133 # Same as above, but do not quote variable references.
134 [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
135
136 # Sed substitution to delay expansion of an escaped shell variable in a
137 # double_quote_subst'ed string.
138 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
139
140 # Sed substitution to avoid accidental globbing in evaled expressions
141 no_glob_subst='s/\*/\\\*/g'
142
143 # Constants:
144 rm="rm -f"
145
146 # Global variables:
147 default_ofile=libtool
148 can_build_shared=yes
149
150 # All known linkers require a `.a' archive for static linking (except MSVC,
151 # which needs '.lib').
152 libext=a
153 ltmain="$ac_aux_dir/ltmain.sh"
154 ofile="$default_ofile"
155 with_gnu_ld="$lt_cv_prog_gnu_ld"
156
157 AC_CHECK_TOOL(AR, ar, false)
158 AC_CHECK_TOOL(RANLIB, ranlib, :)
159 AC_CHECK_TOOL(STRIP, strip, :)
160
161 old_CC="$CC"
162 old_CFLAGS="$CFLAGS"
163
164 # Set sane defaults for various variables
165 test -z "$AR" && AR=ar
166 test -z "$AR_FLAGS" && AR_FLAGS=cru
167 test -z "$AS" && AS=as
168 test -z "$CC" && CC=cc
169 test -z "$LTCC" && LTCC=$CC
170 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
171 test -z "$DLLTOOL" && DLLTOOL=dlltool
172 test -z "$LD" && LD=ld
173 test -z "$LN_S" && LN_S="ln -s"
174 test -z "$MAGIC_CMD" && MAGIC_CMD=file
175 test -z "$NM" && NM=nm
176 test -z "$SED" && SED=sed
177 test -z "$OBJDUMP" && OBJDUMP=objdump
178 test -z "$RANLIB" && RANLIB=:
179 test -z "$STRIP" && STRIP=:
180 test -z "$ac_objext" && ac_objext=o
181
182 # Determine commands to create old-style static archives.
183 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
184 old_postinstall_cmds='chmod 644 $oldlib'
185 old_postuninstall_cmds=
186
187 if test -n "$RANLIB"; then
188 case $host_os in
189 openbsd*)
190 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
191 ;;
192 *)
193 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
194 ;;
195 esac
196 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
197 fi
198
199 _LT_CC_BASENAME([$compiler])
200
201 # Only perform the check for file, if the check method requires it
202 case $deplibs_check_method in
203 file_magic*)
204 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
205 AC_PATH_MAGIC
206 fi
207 ;;
208 esac
209
210 AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
211 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
212 enable_win32_dll=yes, enable_win32_dll=no)
213
214 AC_ARG_ENABLE([libtool-lock],
215 [AC_HELP_STRING([--disable-libtool-lock],
216 [avoid locking (might break parallel builds)])])
217 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
218
219 AC_ARG_WITH([pic],
220 [AC_HELP_STRING([--with-pic],
221 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
222 [pic_mode="$withval"],
223 [pic_mode=default])
224 test -z "$pic_mode" && pic_mode=default
225
226 # Use C for the default configuration in the libtool script
227 tagname=
228 AC_LIBTOOL_LANG_C_CONFIG
229 _LT_AC_TAGCONFIG
230 ])# AC_LIBTOOL_SETUP
231
232
233 # _LT_AC_SYS_COMPILER
234 # -------------------
235 AC_DEFUN([_LT_AC_SYS_COMPILER],
236 [AC_REQUIRE([AC_PROG_CC])dnl
237
238 # If no C compiler was specified, use CC.
239 LTCC=${LTCC-"$CC"}
240
241 # If no C compiler flags were specified, use CFLAGS.
242 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
243
244 # Allow CC to be a program name with arguments.
245 compiler=$CC
246 ])# _LT_AC_SYS_COMPILER
247
248
249 # _LT_CC_BASENAME(CC)
250 # -------------------
251 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
252 AC_DEFUN([_LT_CC_BASENAME],
253 [for cc_temp in $1""; do
254 case $cc_temp in
255 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
256 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
257 \-*) ;;
258 *) break;;
259 esac
260 done
261 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
262 ])
263
264
265 # _LT_COMPILER_BOILERPLATE
266 # ------------------------
267 # Check for compiler boilerplate output or warnings with
268 # the simple compiler test code.
269 AC_DEFUN([_LT_COMPILER_BOILERPLATE],
270 [AC_REQUIRE([LT_AC_PROG_SED])dnl
271 ac_outfile=conftest.$ac_objext
272 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
273 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
274 _lt_compiler_boilerplate=`cat conftest.err`
275 $rm conftest*
276 ])# _LT_COMPILER_BOILERPLATE
277
278
279 # _LT_LINKER_BOILERPLATE
280 # ----------------------
281 # Check for linker boilerplate output or warnings with
282 # the simple link test code.
283 AC_DEFUN([_LT_LINKER_BOILERPLATE],
284 [AC_REQUIRE([LT_AC_PROG_SED])dnl
285 ac_outfile=conftest.$ac_objext
286 echo "$lt_simple_link_test_code" >conftest.$ac_ext
287 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
288 _lt_linker_boilerplate=`cat conftest.err`
289 $rm conftest*
290 ])# _LT_LINKER_BOILERPLATE
291
292
293 # _LT_AC_SYS_LIBPATH_AIX
294 # ----------------------
295 # Links a minimal program and checks the executable
296 # for the system default hardcoded library path. In most cases,
297 # this is /usr/lib:/lib, but when the MPI compilers are used
298 # the location of the communication and MPI libs are included too.
299 # If we don't find anything, use the default library path according
300 # to the aix ld manual.
301 AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
302 [AC_REQUIRE([LT_AC_PROG_SED])dnl
303 AC_LINK_IFELSE(AC_LANG_PROGRAM,[
304 lt_aix_libpath_sed='
305 /Import File Strings/,/^$/ {
306 /^0/ {
307 s/^0 *\(.*\)$/\1/
308 p
309 }
310 }'
311 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
312 # Check for a 64-bit object if we didn't find anything.
313 if test -z "$aix_libpath"; then
314 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
315 fi],[])
316 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
317 ])# _LT_AC_SYS_LIBPATH_AIX
318
319
320 # _LT_AC_SHELL_INIT(ARG)
321 # ----------------------
322 AC_DEFUN([_LT_AC_SHELL_INIT],
323 [ifdef([AC_DIVERSION_NOTICE],
324 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
325 [AC_DIVERT_PUSH(NOTICE)])
326 $1
327 AC_DIVERT_POP
328 ])# _LT_AC_SHELL_INIT
329
330
331 # _LT_AC_PROG_ECHO_BACKSLASH
332 # --------------------------
333 # Add some code to the start of the generated configure script which
334 # will find an echo command which doesn't interpret backslashes.
335 AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
336 [_LT_AC_SHELL_INIT([
337 # Check that we are running under the correct shell.
338 SHELL=${CONFIG_SHELL-/bin/sh}
339
340 case X$ECHO in
341 X*--fallback-echo)
342 # Remove one level of quotation (which was required for Make).
343 ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
344 ;;
345 esac
346
347 echo=${ECHO-echo}
348 if test "X[$]1" = X--no-reexec; then
349 # Discard the --no-reexec flag, and continue.
350 shift
351 elif test "X[$]1" = X--fallback-echo; then
352 # Avoid inline document here, it may be left over
353 :
354 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
355 # Yippee, $echo works!
356 :
357 else
358 # Restart under the correct shell.
359 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
360 fi
361
362 if test "X[$]1" = X--fallback-echo; then
363 # used as fallback echo
364 shift
365 cat <<EOF
366 [$]*
367 EOF
368 exit 0
369 fi
370
371 # The HP-UX ksh and POSIX shell print the target directory to stdout
372 # if CDPATH is set.
373 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
374
375 if test -z "$ECHO"; then
376 if test "X${echo_test_string+set}" != Xset; then
377 # find a string as large as possible, as long as the shell can cope with it
378 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
379 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
380 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
381 echo_test_string=`eval $cmd` &&
382 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
383 then
384 break
385 fi
386 done
387 fi
388
389 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
390 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
391 test "X$echo_testing_string" = "X$echo_test_string"; then
392 :
393 else
394 # The Solaris, AIX, and Digital Unix default echo programs unquote
395 # backslashes. This makes it impossible to quote backslashes using
396 # echo "$something" | sed 's/\\/\\\\/g'
397 #
398 # So, first we look for a working echo in the user's PATH.
399
400 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
401 for dir in $PATH /usr/ucb; do
402 IFS="$lt_save_ifs"
403 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
404 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
405 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
406 test "X$echo_testing_string" = "X$echo_test_string"; then
407 echo="$dir/echo"
408 break
409 fi
410 done
411 IFS="$lt_save_ifs"
412
413 if test "X$echo" = Xecho; then
414 # We didn't find a better echo, so look for alternatives.
415 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
416 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
417 test "X$echo_testing_string" = "X$echo_test_string"; then
418 # This shell has a builtin print -r that does the trick.
419 echo='print -r'
420 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
421 test "X$CONFIG_SHELL" != X/bin/ksh; then
422 # If we have ksh, try running configure again with it.
423 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
424 export ORIGINAL_CONFIG_SHELL
425 CONFIG_SHELL=/bin/ksh
426 export CONFIG_SHELL
427 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
428 else
429 # Try using printf.
430 echo='printf %s\n'
431 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
432 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
433 test "X$echo_testing_string" = "X$echo_test_string"; then
434 # Cool, printf works
435 :
436 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
437 test "X$echo_testing_string" = 'X\t' &&
438 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
439 test "X$echo_testing_string" = "X$echo_test_string"; then
440 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
441 export CONFIG_SHELL
442 SHELL="$CONFIG_SHELL"
443 export SHELL
444 echo="$CONFIG_SHELL [$]0 --fallback-echo"
445 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
446 test "X$echo_testing_string" = 'X\t' &&
447 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
448 test "X$echo_testing_string" = "X$echo_test_string"; then
449 echo="$CONFIG_SHELL [$]0 --fallback-echo"
450 else
451 # maybe with a smaller string...
452 prev=:
453
454 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
455 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
456 then
457 break
458 fi
459 prev="$cmd"
460 done
461
462 if test "$prev" != 'sed 50q "[$]0"'; then
463 echo_test_string=`eval $prev`
464 export echo_test_string
465 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
466 else
467 # Oops. We lost completely, so just stick with echo.
468 echo=echo
469 fi
470 fi
471 fi
472 fi
473 fi
474 fi
475
476 # Copy echo and quote the copy suitably for passing to libtool from
477 # the Makefile, instead of quoting the original, which is used later.
478 ECHO=$echo
479 if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
480 ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
481 fi
482
483 AC_SUBST(ECHO)
484 ])])# _LT_AC_PROG_ECHO_BACKSLASH
485
486
487 # _LT_AC_LOCK
488 # -----------
489 AC_DEFUN([_LT_AC_LOCK],
490 [AC_ARG_ENABLE([libtool-lock],
491 [AC_HELP_STRING([--disable-libtool-lock],
492 [avoid locking (might break parallel builds)])])
493 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
494
495 # Some flags need to be propagated to the compiler or linker for good
496 # libtool support.
497 case $host in
498 ia64-*-hpux*)
499 # Find out which ABI we are using.
500 echo 'int i;' > conftest.$ac_ext
501 if AC_TRY_EVAL(ac_compile); then
502 case `/usr/bin/file conftest.$ac_objext` in
503 *ELF-32*)
504 HPUX_IA64_MODE="32"
505 ;;
506 *ELF-64*)
507 HPUX_IA64_MODE="64"
508 ;;
509 esac
510 fi
511 rm -rf conftest*
512 ;;
513 *-*-irix6*)
514 # Find out which ABI we are using.
515 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
516 if AC_TRY_EVAL(ac_compile); then
517 if test "$lt_cv_prog_gnu_ld" = yes; then
518 case `/usr/bin/file conftest.$ac_objext` in
519 *32-bit*)
520 LD="${LD-ld} -melf32bsmip"
521 ;;
522 *N32*)
523 LD="${LD-ld} -melf32bmipn32"
524 ;;
525 *64-bit*)
526 LD="${LD-ld} -melf64bmip"
527 ;;
528 esac
529 else
530 case `/usr/bin/file conftest.$ac_objext` in
531 *32-bit*)
532 LD="${LD-ld} -32"
533 ;;
534 *N32*)
535 LD="${LD-ld} -n32"
536 ;;
537 *64-bit*)
538 LD="${LD-ld} -64"
539 ;;
540 esac
541 fi
542 fi
543 rm -rf conftest*
544 ;;
545
546 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
547 s390*-*linux*|sparc*-*linux*)
548 # Find out which ABI we are using.
549 echo 'int i;' > conftest.$ac_ext
550 if AC_TRY_EVAL(ac_compile); then
551 case `/usr/bin/file conftest.o` in
552 *32-bit*)
553 case $host in
554 x86_64-*kfreebsd*-gnu)
555 LD="${LD-ld} -m elf_i386_fbsd"
556 ;;
557 x86_64-*linux*)
558 LD="${LD-ld} -m elf_i386"
559 ;;
560 ppc64-*linux*|powerpc64-*linux*)
561 LD="${LD-ld} -m elf32ppclinux"
562 ;;
563 s390x-*linux*)
564 LD="${LD-ld} -m elf_s390"
565 ;;
566 sparc64-*linux*)
567 LD="${LD-ld} -m elf32_sparc"
568 ;;
569 esac
570 ;;
571 *64-bit*)
572 libsuff=64
573 case $host in
574 x86_64-*kfreebsd*-gnu)
575 LD="${LD-ld} -m elf_x86_64_fbsd"
576 ;;
577 x86_64-*linux*)
578 LD="${LD-ld} -m elf_x86_64"
579 ;;
580 ppc*-*linux*|powerpc*-*linux*)
581 LD="${LD-ld} -m elf64ppc"
582 ;;
583 s390*-*linux*)
584 LD="${LD-ld} -m elf64_s390"
585 ;;
586 sparc*-*linux*)
587 LD="${LD-ld} -m elf64_sparc"
588 ;;
589 esac
590 ;;
591 esac
592 fi
593 rm -rf conftest*
594 ;;
595
596 *-*-sco3.2v5*)
597 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
598 SAVE_CFLAGS="$CFLAGS"
599 CFLAGS="$CFLAGS -belf"
600 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
601 [AC_LANG_PUSH(C)
602 AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
603 AC_LANG_POP])
604 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
605 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
606 CFLAGS="$SAVE_CFLAGS"
607 fi
608 ;;
609 sparc*-*solaris*)
610 # Find out which ABI we are using.
611 echo 'int i;' > conftest.$ac_ext
612 if AC_TRY_EVAL(ac_compile); then
613 case `/usr/bin/file conftest.o` in
614 *64-bit*)
615 case $lt_cv_prog_gnu_ld in
616 yes*) LD="${LD-ld} -m elf64_sparc" ;;
617 *) LD="${LD-ld} -64" ;;
618 esac
619 ;;
620 esac
621 fi
622 rm -rf conftest*
623 ;;
624
625 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
626 [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
627 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
628 AC_CHECK_TOOL(AS, as, false)
629 AC_CHECK_TOOL(OBJDUMP, objdump, false)
630 ;;
631 ])
632 esac
633
634 need_locks="$enable_libtool_lock"
635
636 ])# _LT_AC_LOCK
637
638
639 # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
640 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
641 # ----------------------------------------------------------------
642 # Check whether the given compiler option works
643 AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
644 [AC_REQUIRE([LT_AC_PROG_SED])
645 AC_CACHE_CHECK([$1], [$2],
646 [$2=no
647 ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
648 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
649 lt_compiler_flag="$3"
650 # Insert the option either (1) after the last *FLAGS variable, or
651 # (2) before a word containing "conftest.", or (3) at the end.
652 # Note that $ac_compile itself does not contain backslashes and begins
653 # with a dollar sign (not a hyphen), so the echo should work correctly.
654 # The option is referenced via a variable to avoid confusing sed.
655 lt_compile=`echo "$ac_compile" | $SED \
656 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
657 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
658 -e 's:$: $lt_compiler_flag:'`
659 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
660 (eval "$lt_compile" 2>conftest.err)
661 ac_status=$?
662 cat conftest.err >&AS_MESSAGE_LOG_FD
663 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
664 if (exit $ac_status) && test -s "$ac_outfile"; then
665 # The compiler can only warn and ignore the option if not recognized
666 # So say no if there are warnings other than the usual output.
667 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
668 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
669 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
670 $2=yes
671 fi
672 fi
673 $rm conftest*
674 ])
675
676 if test x"[$]$2" = xyes; then
677 ifelse([$5], , :, [$5])
678 else
679 ifelse([$6], , :, [$6])
680 fi
681 ])# AC_LIBTOOL_COMPILER_OPTION
682
683
684 # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
685 # [ACTION-SUCCESS], [ACTION-FAILURE])
686 # ------------------------------------------------------------
687 # Check whether the given compiler option works
688 AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
689 [AC_REQUIRE([LT_AC_PROG_SED])dnl
690 AC_CACHE_CHECK([$1], [$2],
691 [$2=no
692 save_LDFLAGS="$LDFLAGS"
693 LDFLAGS="$LDFLAGS $3"
694 echo "$lt_simple_link_test_code" > conftest.$ac_ext
695 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
696 # The linker can only warn and ignore the option if not recognized
697 # So say no if there are warnings
698 if test -s conftest.err; then
699 # Append any errors to the config.log.
700 cat conftest.err 1>&AS_MESSAGE_LOG_FD
701 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
702 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
703 if diff conftest.exp conftest.er2 >/dev/null; then
704 $2=yes
705 fi
706 else
707 $2=yes
708 fi
709 fi
710 $rm conftest*
711 LDFLAGS="$save_LDFLAGS"
712 ])
713
714 if test x"[$]$2" = xyes; then
715 ifelse([$4], , :, [$4])
716 else
717 ifelse([$5], , :, [$5])
718 fi
719 ])# AC_LIBTOOL_LINKER_OPTION
720
721
722 # AC_LIBTOOL_SYS_MAX_CMD_LEN
723 # --------------------------
724 AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
725 [# find the maximum length of command line arguments
726 AC_MSG_CHECKING([the maximum length of command line arguments])
727 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
728 i=0
729 teststring="ABCD"
730
731 case $build_os in
732 msdosdjgpp*)
733 # On DJGPP, this test can blow up pretty badly due to problems in libc
734 # (any single argument exceeding 2000 bytes causes a buffer overrun
735 # during glob expansion). Even if it were fixed, the result of this
736 # check would be larger than it should be.
737 lt_cv_sys_max_cmd_len=12288; # 12K is about right
738 ;;
739
740 gnu*)
741 # Under GNU Hurd, this test is not required because there is
742 # no limit to the length of command line arguments.
743 # Libtool will interpret -1 as no limit whatsoever
744 lt_cv_sys_max_cmd_len=-1;
745 ;;
746
747 cygwin* | mingw*)
748 # On Win9x/ME, this test blows up -- it succeeds, but takes
749 # about 5 minutes as the teststring grows exponentially.
750 # Worse, since 9x/ME are not pre-emptively multitasking,
751 # you end up with a "frozen" computer, even though with patience
752 # the test eventually succeeds (with a max line length of 256k).
753 # Instead, let's just punt: use the minimum linelength reported by
754 # all of the supported platforms: 8192 (on NT/2K/XP).
755 lt_cv_sys_max_cmd_len=8192;
756 ;;
757
758 amigaos*)
759 # On AmigaOS with pdksh, this test takes hours, literally.
760 # So we just punt and use a minimum line length of 8192.
761 lt_cv_sys_max_cmd_len=8192;
762 ;;
763
764 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
765 # This has been around since 386BSD, at least. Likely further.
766 if test -x /sbin/sysctl; then
767 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
768 elif test -x /usr/sbin/sysctl; then
769 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
770 else
771 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
772 fi
773 # And add a safety zone
774 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
775 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
776 ;;
777
778 interix*)
779 # We know the value 262144 and hardcode it with a safety zone (like BSD)
780 lt_cv_sys_max_cmd_len=196608
781 ;;
782
783 osf*)
784 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
785 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
786 # nice to cause kernel panics so lets avoid the loop below.
787 # First set a reasonable default.
788 lt_cv_sys_max_cmd_len=16384
789 #
790 if test -x /sbin/sysconfig; then
791 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
792 *1*) lt_cv_sys_max_cmd_len=-1 ;;
793 esac
794 fi
795 ;;
796 sco3.2v5*)
797 lt_cv_sys_max_cmd_len=102400
798 ;;
799 sysv5* | sco5v6* | sysv4.2uw2*)
800 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
801 if test -n "$kargmax"; then
802 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
803 else
804 lt_cv_sys_max_cmd_len=32768
805 fi
806 ;;
807 *)
808 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
809 if test -n "$lt_cv_sys_max_cmd_len"; then
810 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
811 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
812 else
813 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
814 while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
815 = "XX$teststring") >/dev/null 2>&1 &&
816 new_result=`expr "X$teststring" : ".*" 2>&1` &&
817 lt_cv_sys_max_cmd_len=$new_result &&
818 test $i != 17 # 1/2 MB should be enough
819 do
820 i=`expr $i + 1`
821 teststring=$teststring$teststring
822 done
823 teststring=
824 # Add a significant safety factor because C++ compilers can tack on massive
825 # amounts of additional arguments before passing them to the linker.
826 # It appears as though 1/2 is a usable value.
827 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
828 fi
829 ;;
830 esac
831 ])
832 if test -n $lt_cv_sys_max_cmd_len ; then
833 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
834 else
835 AC_MSG_RESULT(none)
836 fi
837 ])# AC_LIBTOOL_SYS_MAX_CMD_LEN
838
839
840 # _LT_AC_CHECK_DLFCN
841 # ------------------
842 AC_DEFUN([_LT_AC_CHECK_DLFCN],
843 [AC_CHECK_HEADERS(dlfcn.h)dnl
844 ])# _LT_AC_CHECK_DLFCN
845
846
847 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
848 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
849 # ---------------------------------------------------------------------
850 AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
851 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
852 if test "$cross_compiling" = yes; then :
853 [$4]
854 else
855 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
856 lt_status=$lt_dlunknown
857 cat > conftest.$ac_ext <<EOF
858 [#line __oline__ "configure"
859 #include "confdefs.h"
860
861 #if HAVE_DLFCN_H
862 #include <dlfcn.h>
863 #endif
864
865 #include <stdio.h>
866
867 #ifdef RTLD_GLOBAL
868 # define LT_DLGLOBAL RTLD_GLOBAL
869 #else
870 # ifdef DL_GLOBAL
871 # define LT_DLGLOBAL DL_GLOBAL
872 # else
873 # define LT_DLGLOBAL 0
874 # endif
875 #endif
876
877 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
878 find out it does not work in some platform. */
879 #ifndef LT_DLLAZY_OR_NOW
880 # ifdef RTLD_LAZY
881 # define LT_DLLAZY_OR_NOW RTLD_LAZY
882 # else
883 # ifdef DL_LAZY
884 # define LT_DLLAZY_OR_NOW DL_LAZY
885 # else
886 # ifdef RTLD_NOW
887 # define LT_DLLAZY_OR_NOW RTLD_NOW
888 # else
889 # ifdef DL_NOW
890 # define LT_DLLAZY_OR_NOW DL_NOW
891 # else
892 # define LT_DLLAZY_OR_NOW 0
893 # endif
894 # endif
895 # endif
896 # endif
897 #endif
898
899 #ifdef __cplusplus
900 extern "C" void exit (int);
901 #endif
902
903 void fnord() { int i=42;}
904 int main ()
905 {
906 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
907 int status = $lt_dlunknown;
908
909 if (self)
910 {
911 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
912 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
913 /* dlclose (self); */
914 }
915 else
916 puts (dlerror ());
917
918 exit (status);
919 }]
920 EOF
921 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
922 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
923 lt_status=$?
924 case x$lt_status in
925 x$lt_dlno_uscore) $1 ;;
926 x$lt_dlneed_uscore) $2 ;;
927 x$lt_dlunknown|x*) $3 ;;
928 esac
929 else :
930 # compilation failed
931 $3
932 fi
933 fi
934 rm -fr conftest*
935 ])# _LT_AC_TRY_DLOPEN_SELF
936
937
938 # AC_LIBTOOL_DLOPEN_SELF
939 # ----------------------
940 AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
941 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
942 if test "x$enable_dlopen" != xyes; then
943 enable_dlopen=unknown
944 enable_dlopen_self=unknown
945 enable_dlopen_self_static=unknown
946 else
947 lt_cv_dlopen=no
948 lt_cv_dlopen_libs=
949
950 case $host_os in
951 beos*)
952 lt_cv_dlopen="load_add_on"
953 lt_cv_dlopen_libs=
954 lt_cv_dlopen_self=yes
955 ;;
956
957 mingw* | pw32*)
958 lt_cv_dlopen="LoadLibrary"
959 lt_cv_dlopen_libs=
960 ;;
961
962 cygwin*)
963 lt_cv_dlopen="dlopen"
964 lt_cv_dlopen_libs=
965 ;;
966
967 darwin*)
968 # if libdl is installed we need to link against it
969 AC_CHECK_LIB([dl], [dlopen],
970 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
971 lt_cv_dlopen="dyld"
972 lt_cv_dlopen_libs=
973 lt_cv_dlopen_self=yes
974 ])
975 ;;
976
977 *)
978 AC_CHECK_FUNC([shl_load],
979 [lt_cv_dlopen="shl_load"],
980 [AC_CHECK_LIB([dld], [shl_load],
981 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
982 [AC_CHECK_FUNC([dlopen],
983 [lt_cv_dlopen="dlopen"],
984 [AC_CHECK_LIB([dl], [dlopen],
985 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
986 [AC_CHECK_LIB([svld], [dlopen],
987 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
988 [AC_CHECK_LIB([dld], [dld_link],
989 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
990 ])
991 ])
992 ])
993 ])
994 ])
995 ;;
996 esac
997
998 if test "x$lt_cv_dlopen" != xno; then
999 enable_dlopen=yes
1000 else
1001 enable_dlopen=no
1002 fi
1003
1004 case $lt_cv_dlopen in
1005 dlopen)
1006 save_CPPFLAGS="$CPPFLAGS"
1007 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1008
1009 save_LDFLAGS="$LDFLAGS"
1010 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1011
1012 save_LIBS="$LIBS"
1013 LIBS="$lt_cv_dlopen_libs $LIBS"
1014
1015 AC_CACHE_CHECK([whether a program can dlopen itself],
1016 lt_cv_dlopen_self, [dnl
1017 _LT_AC_TRY_DLOPEN_SELF(
1018 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1019 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1020 ])
1021
1022 if test "x$lt_cv_dlopen_self" = xyes; then
1023 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1024 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1025 lt_cv_dlopen_self_static, [dnl
1026 _LT_AC_TRY_DLOPEN_SELF(
1027 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1028 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1029 ])
1030 fi
1031
1032 CPPFLAGS="$save_CPPFLAGS"
1033 LDFLAGS="$save_LDFLAGS"
1034 LIBS="$save_LIBS"
1035 ;;
1036 esac
1037
1038 case $lt_cv_dlopen_self in
1039 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1040 *) enable_dlopen_self=unknown ;;
1041 esac
1042
1043 case $lt_cv_dlopen_self_static in
1044 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1045 *) enable_dlopen_self_static=unknown ;;
1046 esac
1047 fi
1048 ])# AC_LIBTOOL_DLOPEN_SELF
1049
1050
1051 # AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1052 # ---------------------------------
1053 # Check to see if options -c and -o are simultaneously supported by compiler
1054 AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1055 [AC_REQUIRE([LT_AC_PROG_SED])dnl
1056 AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1057 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1058 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1059 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1060 $rm -r conftest 2>/dev/null
1061 mkdir conftest
1062 cd conftest
1063 mkdir out
1064 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1065
1066 lt_compiler_flag="-o out/conftest2.$ac_objext"
1067 # Insert the option either (1) after the last *FLAGS variable, or
1068 # (2) before a word containing "conftest.", or (3) at the end.
1069 # Note that $ac_compile itself does not contain backslashes and begins
1070 # with a dollar sign (not a hyphen), so the echo should work correctly.
1071 lt_compile=`echo "$ac_compile" | $SED \
1072 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1073 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1074 -e 's:$: $lt_compiler_flag:'`
1075 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1076 (eval "$lt_compile" 2>out/conftest.err)
1077 ac_status=$?
1078 cat out/conftest.err >&AS_MESSAGE_LOG_FD
1079 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1080 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1081 then
1082 # The compiler can only warn and ignore the option if not recognized
1083 # So say no if there are warnings
1084 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1085 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1086 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1087 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1088 fi
1089 fi
1090 chmod u+w . 2>&AS_MESSAGE_LOG_FD
1091 $rm conftest*
1092 # SGI C++ compiler will create directory out/ii_files/ for
1093 # template instantiation
1094 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1095 $rm out/* && rmdir out
1096 cd ..
1097 rmdir conftest
1098 $rm conftest*
1099 ])
1100 ])# AC_LIBTOOL_PROG_CC_C_O
1101
1102
1103 # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1104 # -----------------------------------------
1105 # Check to see if we can do hard links to lock some files if needed
1106 AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1107 [AC_REQUIRE([_LT_AC_LOCK])dnl
1108
1109 hard_links="nottested"
1110 if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1111 # do not overwrite the value of need_locks provided by the user
1112 AC_MSG_CHECKING([if we can lock with hard links])
1113 hard_links=yes
1114 $rm conftest*
1115 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1116 touch conftest.a
1117 ln conftest.a conftest.b 2>&5 || hard_links=no
1118 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1119 AC_MSG_RESULT([$hard_links])
1120 if test "$hard_links" = no; then
1121 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1122 need_locks=warn
1123 fi
1124 else
1125 need_locks=no
1126 fi
1127 ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1128
1129
1130 # AC_LIBTOOL_OBJDIR
1131 # -----------------
1132 AC_DEFUN([AC_LIBTOOL_OBJDIR],
1133 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1134 [rm -f .libs 2>/dev/null
1135 mkdir .libs 2>/dev/null
1136 if test -d .libs; then
1137 lt_cv_objdir=.libs
1138 else
1139 # MS-DOS does not allow filenames that begin with a dot.
1140 lt_cv_objdir=_libs
1141 fi
1142 rmdir .libs 2>/dev/null])
1143 objdir=$lt_cv_objdir
1144 ])# AC_LIBTOOL_OBJDIR
1145
1146
1147 # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1148 # ----------------------------------------------
1149 # Check hardcoding attributes.
1150 AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
1151 [AC_MSG_CHECKING([how to hardcode library paths into programs])
1152 _LT_AC_TAGVAR(hardcode_action, $1)=
1153 if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1154 test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
1155 test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1156
1157 # We can hardcode non-existant directories.
1158 if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
1159 # If the only mechanism to avoid hardcoding is shlibpath_var, we
1160 # have to relink, otherwise we might link with an installed library
1161 # when we should be linking with a yet-to-be-installed one
1162 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1163 test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
1164 # Linking always hardcodes the temporary library directory.
1165 _LT_AC_TAGVAR(hardcode_action, $1)=relink
1166 else
1167 # We can link without hardcoding, and we can hardcode nonexisting dirs.
1168 _LT_AC_TAGVAR(hardcode_action, $1)=immediate
1169 fi
1170 else
1171 # We cannot hardcode anything, or else we can only hardcode existing
1172 # directories.
1173 _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
1174 fi
1175 AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
1176
1177 if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
1178 # Fast installation is not supported
1179 enable_fast_install=no
1180 elif test "$shlibpath_overrides_runpath" = yes ||
1181 test "$enable_shared" = no; then
1182 # Fast installation is not necessary
1183 enable_fast_install=needless
1184 fi
1185 ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
1186
1187
1188 # AC_LIBTOOL_SYS_LIB_STRIP
1189 # ------------------------
1190 AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
1191 [striplib=
1192 old_striplib=
1193 AC_MSG_CHECKING([whether stripping libraries is possible])
1194 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
1195 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1196 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1197 AC_MSG_RESULT([yes])
1198 else
1199 # FIXME - insert some real tests, host_os isn't really good enough
1200 case $host_os in
1201 darwin*)
1202 if test -n "$STRIP" ; then
1203 striplib="$STRIP -x"
1204 old_striplib="$STRIP -S"
1205 AC_MSG_RESULT([yes])
1206 else
1207 AC_MSG_RESULT([no])
1208 fi
1209 ;;
1210 *)
1211 AC_MSG_RESULT([no])
1212 ;;
1213 esac
1214 fi
1215 ])# AC_LIBTOOL_SYS_LIB_STRIP
1216
1217
1218 # AC_LIBTOOL_SYS_DYNAMIC_LINKER
1219 # -----------------------------
1220 # PORTME Fill in your ld.so characteristics
1221 AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1222 [AC_REQUIRE([LT_AC_PROG_SED])dnl
1223 AC_MSG_CHECKING([dynamic linker characteristics])
1224 library_names_spec=
1225 libname_spec='lib$name'
1226 soname_spec=
1227 shrext_cmds=".so"
1228 postinstall_cmds=
1229 postuninstall_cmds=
1230 finish_cmds=
1231 finish_eval=
1232 shlibpath_var=
1233 shlibpath_overrides_runpath=unknown
1234 version_type=none
1235 dynamic_linker="$host_os ld.so"
1236 sys_lib_dlsearch_path_spec="/lib /usr/lib"
1237 m4_if($1,[],[
1238 if test "$GCC" = yes; then
1239 case $host_os in
1240 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
1241 *) lt_awk_arg="/^libraries:/" ;;
1242 esac
1243 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1244 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
1245 # if the path contains ";" then we assume it to be the separator
1246 # otherwise default to the standard path separator (i.e. ":") - it is
1247 # assumed that no part of a normal pathname contains ";" but that should
1248 # okay in the real world where ";" in dirpaths is itself problematic.
1249 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1250 else
1251 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1252 fi
1253 # Ok, now we have the path, separated by spaces, we can step through it
1254 # and add multilib dir if necessary.
1255 lt_tmp_lt_search_path_spec=
1256 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
1257 for lt_sys_path in $lt_search_path_spec; do
1258 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
1259 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
1260 else
1261 test -d "$lt_sys_path" && \
1262 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
1263 fi
1264 done
1265 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
1266 BEGIN {RS=" "; FS="/|\n";} {
1267 lt_foo="";
1268 lt_count=0;
1269 for (lt_i = NF; lt_i > 0; lt_i--) {
1270 if ($lt_i != "" && $lt_i != ".") {
1271 if ($lt_i == "..") {
1272 lt_count++;
1273 } else {
1274 if (lt_count == 0) {
1275 lt_foo="/" $lt_i lt_foo;
1276 } else {
1277 lt_count--;
1278 }
1279 }
1280 }
1281 }
1282 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
1283 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
1284 }'`
1285 sys_lib_search_path_spec=`echo $lt_search_path_spec`
1286 else
1287 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1288 fi])
1289 need_lib_prefix=unknown
1290 hardcode_into_libs=no
1291
1292 # when you set need_version to no, make sure it does not cause -set_version
1293 # flags to be left without arguments
1294 need_version=unknown
1295
1296 case $host_os in
1297 aix3*)
1298 version_type=linux
1299 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
1300 shlibpath_var=LIBPATH
1301
1302 # AIX 3 has no versioning support, so we append a major version to the name.
1303 soname_spec='${libname}${release}${shared_ext}$major'
1304 ;;
1305
1306 aix4* | aix5*)
1307 version_type=linux
1308 need_lib_prefix=no
1309 need_version=no
1310 hardcode_into_libs=yes
1311 if test "$host_cpu" = ia64; then
1312 # AIX 5 supports IA64
1313 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
1314 shlibpath_var=LD_LIBRARY_PATH
1315 else
1316 # With GCC up to 2.95.x, collect2 would create an import file
1317 # for dependence libraries. The import file would start with
1318 # the line `#! .'. This would cause the generated library to
1319 # depend on `.', always an invalid library. This was fixed in
1320 # development snapshots of GCC prior to 3.0.
1321 case $host_os in
1322 aix4 | aix4.[[01]] | aix4.[[01]].*)
1323 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
1324 echo ' yes '
1325 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
1326 :
1327 else
1328 can_build_shared=no
1329 fi
1330 ;;
1331 esac
1332 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
1333 # soname into executable. Probably we can add versioning support to
1334 # collect2, so additional links can be useful in future.
1335 if test "$aix_use_runtimelinking" = yes; then
1336 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
1337 # instead of lib<name>.a to let people know that these are not
1338 # typical AIX shared libraries.
1339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1340 else
1341 # We preserve .a as extension for shared libraries through AIX4.2
1342 # and later when we are not doing run time linking.
1343 library_names_spec='${libname}${release}.a $libname.a'
1344 soname_spec='${libname}${release}${shared_ext}$major'
1345 fi
1346 shlibpath_var=LIBPATH
1347 fi
1348 ;;
1349
1350 amigaos*)
1351 library_names_spec='$libname.ixlibrary $libname.a'
1352 # Create ${libname}_ixlibrary.a entries in /sys/libs.
1353 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'
1354 ;;
1355
1356 beos*)
1357 library_names_spec='${libname}${shared_ext}'
1358 dynamic_linker="$host_os ld.so"
1359 shlibpath_var=LIBRARY_PATH
1360 ;;
1361
1362 bsdi[[45]]*)
1363 version_type=linux
1364 need_version=no
1365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1366 soname_spec='${libname}${release}${shared_ext}$major'
1367 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
1368 shlibpath_var=LD_LIBRARY_PATH
1369 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
1370 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
1371 # the default ld.so.conf also contains /usr/contrib/lib and
1372 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
1373 # libtool to hard-code these into programs
1374 ;;
1375
1376 cygwin* | mingw* | pw32*)
1377 version_type=windows
1378 shrext_cmds=".dll"
1379 need_version=no
1380 need_lib_prefix=no
1381
1382 case $GCC,$host_os in
1383 yes,cygwin* | yes,mingw* | yes,pw32*)
1384 library_names_spec='$libname.dll.a'
1385 # DLL is installed to $(libdir)/../bin by postinstall_cmds
1386 postinstall_cmds='base_file=`basename \${file}`~
1387 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
1388 dldir=$destdir/`dirname \$dlpath`~
1389 test -d \$dldir || mkdir -p \$dldir~
1390 $install_prog $dir/$dlname \$dldir/$dlname~
1391 chmod a+x \$dldir/$dlname'
1392 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1393 dlpath=$dir/\$dldll~
1394 $rm \$dlpath'
1395 shlibpath_overrides_runpath=yes
1396
1397 case $host_os in
1398 cygwin*)
1399 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1400 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1401 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
1402 ;;
1403 mingw*)
1404 # MinGW DLLs use traditional 'lib' prefix
1405 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1406 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1407 if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
1408 # It is most probably a Windows format PATH printed by
1409 # mingw gcc, but we are running on Cygwin. Gcc prints its search
1410 # path with ; separators, and with drive letters. We can handle the
1411 # drive letters (cygwin fileutils understands them), so leave them,
1412 # especially as we might pass files found there to a mingw objdump,
1413 # which wouldn't understand a cygwinified path. Ahh.
1414 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1415 else
1416 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1417 fi
1418 ;;
1419 pw32*)
1420 # pw32 DLLs use 'pw' prefix rather than 'lib'
1421 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1422 ;;
1423 esac
1424 ;;
1425
1426 *)
1427 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
1428 ;;
1429 esac
1430 dynamic_linker='Win32 ld.exe'
1431 # FIXME: first we should search . and the directory the executable is in
1432 shlibpath_var=PATH
1433 ;;
1434
1435 darwin* | rhapsody*)
1436 dynamic_linker="$host_os dyld"
1437 version_type=darwin
1438 need_lib_prefix=no
1439 need_version=no
1440 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
1441 soname_spec='${libname}${release}${major}$shared_ext'
1442 shlibpath_overrides_runpath=yes
1443 shlibpath_var=DYLD_LIBRARY_PATH
1444 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1445 m4_if([$1], [],[
1446 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
1447 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1448 ;;
1449
1450 dgux*)
1451 version_type=linux
1452 need_lib_prefix=no
1453 need_version=no
1454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
1455 soname_spec='${libname}${release}${shared_ext}$major'
1456 shlibpath_var=LD_LIBRARY_PATH
1457 ;;
1458
1459 freebsd1*)
1460 dynamic_linker=no
1461 ;;
1462
1463 freebsd* | dragonfly*)
1464 # DragonFly does not have aout. When/if they implement a new
1465 # versioning mechanism, adjust this.
1466 if test -x /usr/bin/objformat; then
1467 objformat=`/usr/bin/objformat`
1468 else
1469 case $host_os in
1470 freebsd[[123]]*) objformat=aout ;;
1471 *) objformat=elf ;;
1472 esac
1473 fi
1474 version_type=freebsd-$objformat
1475 case $version_type in
1476 freebsd-elf*)
1477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1478 need_version=no
1479 need_lib_prefix=no
1480 ;;
1481 freebsd-*)
1482 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
1483 need_version=yes
1484 ;;
1485 esac
1486 shlibpath_var=LD_LIBRARY_PATH
1487 case $host_os in
1488 freebsd2*)
1489 shlibpath_overrides_runpath=yes
1490 ;;
1491 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
1492 shlibpath_overrides_runpath=yes
1493 hardcode_into_libs=yes
1494 ;;
1495 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
1496 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
1497 shlibpath_overrides_runpath=no
1498 hardcode_into_libs=yes
1499 ;;
1500 *) # from 4.6 on, and DragonFly
1501 shlibpath_overrides_runpath=yes
1502 hardcode_into_libs=yes
1503 ;;
1504 esac
1505 ;;
1506
1507 gnu*)
1508 version_type=linux
1509 need_lib_prefix=no
1510 need_version=no
1511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
1512 soname_spec='${libname}${release}${shared_ext}$major'
1513 shlibpath_var=LD_LIBRARY_PATH
1514 hardcode_into_libs=yes
1515 ;;
1516
1517 hpux9* | hpux10* | hpux11*)
1518 # Give a soname corresponding to the major version so that dld.sl refuses to
1519 # link against other versions.
1520 version_type=sunos
1521 need_lib_prefix=no
1522 need_version=no
1523 case $host_cpu in
1524 ia64*)
1525 shrext_cmds='.so'
1526 hardcode_into_libs=yes
1527 dynamic_linker="$host_os dld.so"
1528 shlibpath_var=LD_LIBRARY_PATH
1529 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1531 soname_spec='${libname}${release}${shared_ext}$major'
1532 if test "X$HPUX_IA64_MODE" = X32; then
1533 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
1534 else
1535 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
1536 fi
1537 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1538 ;;
1539 hppa*64*)
1540 shrext_cmds='.sl'
1541 hardcode_into_libs=yes
1542 dynamic_linker="$host_os dld.sl"
1543 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1544 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1546 soname_spec='${libname}${release}${shared_ext}$major'
1547 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
1548 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1549 ;;
1550 *)
1551 shrext_cmds='.sl'
1552 dynamic_linker="$host_os dld.sl"
1553 shlibpath_var=SHLIB_PATH
1554 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
1555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1556 soname_spec='${libname}${release}${shared_ext}$major'
1557 ;;
1558 esac
1559 # HP-UX runs *really* slowly unless shared libraries are mode 555.
1560 postinstall_cmds='chmod 555 $lib'
1561 ;;
1562
1563 interix[[3-9]]*)
1564 version_type=linux
1565 need_lib_prefix=no
1566 need_version=no
1567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1568 soname_spec='${libname}${release}${shared_ext}$major'
1569 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
1570 shlibpath_var=LD_LIBRARY_PATH
1571 shlibpath_overrides_runpath=no
1572 hardcode_into_libs=yes
1573 ;;
1574
1575 irix5* | irix6* | nonstopux*)
1576 case $host_os in
1577 nonstopux*) version_type=nonstopux ;;
1578 *)
1579 if test "$lt_cv_prog_gnu_ld" = yes; then
1580 version_type=linux
1581 else
1582 version_type=irix
1583 fi ;;
1584 esac
1585 need_lib_prefix=no
1586 need_version=no
1587 soname_spec='${libname}${release}${shared_ext}$major'
1588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
1589 case $host_os in
1590 irix5* | nonstopux*)
1591 libsuff= shlibsuff=
1592 ;;
1593 *)
1594 case $LD in # libtool.m4 will add one of these switches to LD
1595 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
1596 libsuff= shlibsuff= libmagic=32-bit;;
1597 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
1598 libsuff=32 shlibsuff=N32 libmagic=N32;;
1599 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
1600 libsuff=64 shlibsuff=64 libmagic=64-bit;;
1601 *) libsuff= shlibsuff= libmagic=never-match;;
1602 esac
1603 ;;
1604 esac
1605 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
1606 shlibpath_overrides_runpath=no
1607 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
1608 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
1609 hardcode_into_libs=yes
1610 ;;
1611
1612 # No shared lib support for Linux oldld, aout, or coff.
1613 linux*oldld* | linux*aout* | linux*coff*)
1614 dynamic_linker=no
1615 ;;
1616
1617 # This must be Linux ELF.
1618 linux* | k*bsd*-gnu)
1619 version_type=linux
1620 need_lib_prefix=no
1621 need_version=no
1622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1623 soname_spec='${libname}${release}${shared_ext}$major'
1624 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1625 shlibpath_var=LD_LIBRARY_PATH
1626 shlibpath_overrides_runpath=no
1627 # This implies no fast_install, which is unacceptable.
1628 # Some rework will be needed to allow for fast_install
1629 # before this can be enabled.
1630 hardcode_into_libs=yes
1631 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
1632 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
1633
1634 # Append ld.so.conf contents to the search path
1635 if test -f /etc/ld.so.conf; then
1636 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1637 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
1638 fi
1639
1640 # We used to test for /lib/ld.so.1 and disable shared libraries on
1641 # powerpc, because MkLinux only supported shared libraries with the
1642 # GNU dynamic linker. Since this was broken with cross compilers,
1643 # most powerpc-linux boxes support dynamic linking these days and
1644 # people can always --disable-shared, the test was removed, and we
1645 # assume the GNU/Linux dynamic linker is in use.
1646 dynamic_linker='GNU/Linux ld.so'
1647 ;;
1648
1649 netbsd*)
1650 version_type=sunos
1651 need_lib_prefix=no
1652 need_version=no
1653 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1655 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1656 dynamic_linker='NetBSD (a.out) ld.so'
1657 else
1658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1659 soname_spec='${libname}${release}${shared_ext}$major'
1660 dynamic_linker='NetBSD ld.elf_so'
1661 fi
1662 shlibpath_var=LD_LIBRARY_PATH
1663 shlibpath_overrides_runpath=yes
1664 hardcode_into_libs=yes
1665 ;;
1666
1667 newsos6)
1668 version_type=linux
1669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1670 shlibpath_var=LD_LIBRARY_PATH
1671 shlibpath_overrides_runpath=yes
1672 ;;
1673
1674 nto-qnx*)
1675 version_type=linux
1676 need_lib_prefix=no
1677 need_version=no
1678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1679 soname_spec='${libname}${release}${shared_ext}$major'
1680 shlibpath_var=LD_LIBRARY_PATH
1681 shlibpath_overrides_runpath=yes
1682 ;;
1683
1684 openbsd*)
1685 version_type=sunos
1686 sys_lib_dlsearch_path_spec="/usr/lib"
1687 need_lib_prefix=no
1688 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1689 case $host_os in
1690 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
1691 *) need_version=no ;;
1692 esac
1693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1694 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1695 shlibpath_var=LD_LIBRARY_PATH
1696 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1697 case $host_os in
1698 openbsd2.[[89]] | openbsd2.[[89]].*)
1699 shlibpath_overrides_runpath=no
1700 ;;
1701 *)
1702 shlibpath_overrides_runpath=yes
1703 ;;
1704 esac
1705 else
1706 shlibpath_overrides_runpath=yes
1707 fi
1708 ;;
1709
1710 os2*)
1711 libname_spec='$name'
1712 shrext_cmds=".dll"
1713 need_lib_prefix=no
1714 library_names_spec='$libname${shared_ext} $libname.a'
1715 dynamic_linker='OS/2 ld.exe'
1716 shlibpath_var=LIBPATH
1717 ;;
1718
1719 osf3* | osf4* | osf5*)
1720 version_type=osf
1721 need_lib_prefix=no
1722 need_version=no
1723 soname_spec='${libname}${release}${shared_ext}$major'
1724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1725 shlibpath_var=LD_LIBRARY_PATH
1726 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
1727 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1728 ;;
1729
1730 rdos*)
1731 dynamic_linker=no
1732 ;;
1733
1734 solaris*)
1735 version_type=linux
1736 need_lib_prefix=no
1737 need_version=no
1738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1739 soname_spec='${libname}${release}${shared_ext}$major'
1740 shlibpath_var=LD_LIBRARY_PATH
1741 shlibpath_overrides_runpath=yes
1742 hardcode_into_libs=yes
1743 # ldd complains unless libraries are executable
1744 postinstall_cmds='chmod +x $lib'
1745 ;;
1746
1747 sunos4*)
1748 version_type=sunos
1749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1750 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
1751 shlibpath_var=LD_LIBRARY_PATH
1752 shlibpath_overrides_runpath=yes
1753 if test "$with_gnu_ld" = yes; then
1754 need_lib_prefix=no
1755 fi
1756 need_version=yes
1757 ;;
1758
1759 sysv4 | sysv4.3*)
1760 version_type=linux
1761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1762 soname_spec='${libname}${release}${shared_ext}$major'
1763 shlibpath_var=LD_LIBRARY_PATH
1764 case $host_vendor in
1765 sni)
1766 shlibpath_overrides_runpath=no
1767 need_lib_prefix=no
1768 export_dynamic_flag_spec='${wl}-Blargedynsym'
1769 runpath_var=LD_RUN_PATH
1770 ;;
1771 siemens)
1772 need_lib_prefix=no
1773 ;;
1774 motorola)
1775 need_lib_prefix=no
1776 need_version=no
1777 shlibpath_overrides_runpath=no
1778 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
1779 ;;
1780 esac
1781 ;;
1782
1783 sysv4*MP*)
1784 if test -d /usr/nec ;then
1785 version_type=linux
1786 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
1787 soname_spec='$libname${shared_ext}.$major'
1788 shlibpath_var=LD_LIBRARY_PATH
1789 fi
1790 ;;
1791
1792 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1793 version_type=freebsd-elf
1794 need_lib_prefix=no
1795 need_version=no
1796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1797 soname_spec='${libname}${release}${shared_ext}$major'
1798 shlibpath_var=LD_LIBRARY_PATH
1799 hardcode_into_libs=yes
1800 if test "$with_gnu_ld" = yes; then
1801 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
1802 shlibpath_overrides_runpath=no
1803 else
1804 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
1805 shlibpath_overrides_runpath=yes
1806 case $host_os in
1807 sco3.2v5*)
1808 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
1809 ;;
1810 esac
1811 fi
1812 sys_lib_dlsearch_path_spec='/usr/lib'
1813 ;;
1814
1815 uts4*)
1816 version_type=linux
1817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1818 soname_spec='${libname}${release}${shared_ext}$major'
1819 shlibpath_var=LD_LIBRARY_PATH
1820 ;;
1821
1822 *)
1823 dynamic_linker=no
1824 ;;
1825 esac
1826 AC_MSG_RESULT([$dynamic_linker])
1827 test "$dynamic_linker" = no && can_build_shared=no
1828
1829 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1830 if test "$GCC" = yes; then
1831 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1832 fi
1833 ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1834
1835
1836 # _LT_AC_TAGCONFIG
1837 # ----------------
1838 AC_DEFUN([_LT_AC_TAGCONFIG],
1839 [AC_REQUIRE([LT_AC_PROG_SED])dnl
1840 AC_ARG_WITH([tags],
1841 [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
1842 [include additional configurations @<:@automatic@:>@])],
1843 [tagnames="$withval"])
1844
1845 if test -f "$ltmain" && test -n "$tagnames"; then
1846 if test ! -f "${ofile}"; then
1847 AC_MSG_WARN([output file `$ofile' does not exist])
1848 fi
1849
1850 if test -z "$LTCC"; then
1851 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
1852 if test -z "$LTCC"; then
1853 AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
1854 else
1855 AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
1856 fi
1857 fi
1858 if test -z "$LTCFLAGS"; then
1859 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
1860 fi
1861
1862 # Extract list of available tagged configurations in $ofile.
1863 # Note that this assumes the entire list is on one line.
1864 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
1865
1866 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1867 for tagname in $tagnames; do
1868 IFS="$lt_save_ifs"
1869 # Check whether tagname contains only valid characters
1870 case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
1871 "") ;;
1872 *) AC_MSG_ERROR([invalid tag name: $tagname])
1873 ;;
1874 esac
1875
1876 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
1877 then
1878 AC_MSG_ERROR([tag name \"$tagname\" already exists])
1879 fi
1880
1881 # Update the list of available tags.
1882 if test -n "$tagname"; then
1883 echo appending configuration tag \"$tagname\" to $ofile
1884
1885 case $tagname in
1886 CXX)
1887 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
1888 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
1889 (test "X$CXX" != "Xg++"))) ; then
1890 AC_LIBTOOL_LANG_CXX_CONFIG
1891 else
1892 tagname=""
1893 fi
1894 ;;
1895
1896 F77)
1897 if test -n "$F77" && test "X$F77" != "Xno"; then
1898 AC_LIBTOOL_LANG_F77_CONFIG
1899 else
1900 tagname=""
1901 fi
1902 ;;
1903
1904 GCJ)
1905 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
1906 AC_LIBTOOL_LANG_GCJ_CONFIG
1907 else
1908 tagname=""
1909 fi
1910 ;;
1911
1912 RC)
1913 AC_LIBTOOL_LANG_RC_CONFIG
1914 ;;
1915
1916 *)
1917 AC_MSG_ERROR([Unsupported tag name: $tagname])
1918 ;;
1919 esac
1920
1921 # Append the new tag name to the list of available tags.
1922 if test -n "$tagname" ; then
1923 available_tags="$available_tags $tagname"
1924 fi
1925 fi
1926 done
1927 IFS="$lt_save_ifs"
1928
1929 # Now substitute the updated list of available tags.
1930 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
1931 mv "${ofile}T" "$ofile"
1932 chmod +x "$ofile"
1933 else
1934 rm -f "${ofile}T"
1935 AC_MSG_ERROR([unable to update list of available tagged configurations.])
1936 fi
1937 fi
1938 ])# _LT_AC_TAGCONFIG
1939
1940
1941 # AC_LIBTOOL_DLOPEN
1942 # -----------------
1943 # enable checks for dlopen support
1944 AC_DEFUN([AC_LIBTOOL_DLOPEN],
1945 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
1946 ])# AC_LIBTOOL_DLOPEN
1947
1948
1949 # AC_LIBTOOL_WIN32_DLL
1950 # --------------------
1951 # declare package support for building win32 DLLs
1952 AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
1953 [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
1954 ])# AC_LIBTOOL_WIN32_DLL
1955
1956
1957 # AC_ENABLE_SHARED([DEFAULT])
1958 # ---------------------------
1959 # implement the --enable-shared flag
1960 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
1961 AC_DEFUN([AC_ENABLE_SHARED],
1962 [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
1963 AC_ARG_ENABLE([shared],
1964 [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
1965 [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
1966 [p=${PACKAGE-default}
1967 case $enableval in
1968 yes) enable_shared=yes ;;
1969 no) enable_shared=no ;;
1970 *)
1971 enable_shared=no
1972 # Look at the argument we got. We use all the common list separators.
1973 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1974 for pkg in $enableval; do
1975 IFS="$lt_save_ifs"
1976 if test "X$pkg" = "X$p"; then
1977 enable_shared=yes
1978 fi
1979 done
1980 IFS="$lt_save_ifs"
1981 ;;
1982 esac],
1983 [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
1984 ])# AC_ENABLE_SHARED
1985
1986
1987 # AC_DISABLE_SHARED
1988 # -----------------
1989 # set the default shared flag to --disable-shared
1990 AC_DEFUN([AC_DISABLE_SHARED],
1991 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1992 AC_ENABLE_SHARED(no)
1993 ])# AC_DISABLE_SHARED
1994
1995
1996 # AC_ENABLE_STATIC([DEFAULT])
1997 # ---------------------------
1998 # implement the --enable-static flag
1999 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2000 AC_DEFUN([AC_ENABLE_STATIC],
2001 [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
2002 AC_ARG_ENABLE([static],
2003 [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
2004 [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
2005 [p=${PACKAGE-default}
2006 case $enableval in
2007 yes) enable_static=yes ;;
2008 no) enable_static=no ;;
2009 *)
2010 enable_static=no
2011 # Look at the argument we got. We use all the common list separators.
2012 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2013 for pkg in $enableval; do
2014 IFS="$lt_save_ifs"
2015 if test "X$pkg" = "X$p"; then
2016 enable_static=yes
2017 fi
2018 done
2019 IFS="$lt_save_ifs"
2020 ;;
2021 esac],
2022 [enable_static=]AC_ENABLE_STATIC_DEFAULT)
2023 ])# AC_ENABLE_STATIC
2024
2025
2026 # AC_DISABLE_STATIC
2027 # -----------------
2028 # set the default static flag to --disable-static
2029 AC_DEFUN([AC_DISABLE_STATIC],
2030 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2031 AC_ENABLE_STATIC(no)
2032 ])# AC_DISABLE_STATIC
2033
2034
2035 # AC_ENABLE_FAST_INSTALL([DEFAULT])
2036 # ---------------------------------
2037 # implement the --enable-fast-install flag
2038 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2039 AC_DEFUN([AC_ENABLE_FAST_INSTALL],
2040 [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
2041 AC_ARG_ENABLE([fast-install],
2042 [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
2043 [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
2044 [p=${PACKAGE-default}
2045 case $enableval in
2046 yes) enable_fast_install=yes ;;
2047 no) enable_fast_install=no ;;
2048 *)
2049 enable_fast_install=no
2050 # Look at the argument we got. We use all the common list separators.
2051 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2052 for pkg in $enableval; do
2053 IFS="$lt_save_ifs"
2054 if test "X$pkg" = "X$p"; then
2055 enable_fast_install=yes
2056 fi
2057 done
2058 IFS="$lt_save_ifs"
2059 ;;
2060 esac],
2061 [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
2062 ])# AC_ENABLE_FAST_INSTALL
2063
2064
2065 # AC_DISABLE_FAST_INSTALL
2066 # -----------------------
2067 # set the default to --disable-fast-install
2068 AC_DEFUN([AC_DISABLE_FAST_INSTALL],
2069 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2070 AC_ENABLE_FAST_INSTALL(no)
2071 ])# AC_DISABLE_FAST_INSTALL
2072
2073
2074 # AC_LIBTOOL_PICMODE([MODE])
2075 # --------------------------
2076 # implement the --with-pic flag
2077 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
2078 AC_DEFUN([AC_LIBTOOL_PICMODE],
2079 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2080 pic_mode=ifelse($#,1,$1,default)
2081 ])# AC_LIBTOOL_PICMODE
2082
2083
2084 # AC_PROG_EGREP
2085 # -------------
2086 # This is predefined starting with Autoconf 2.54, so this conditional
2087 # definition can be removed once we require Autoconf 2.54 or later.
2088 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
2089 [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
2090 [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2091 then ac_cv_prog_egrep='grep -E'
2092 else ac_cv_prog_egrep='egrep'
2093 fi])
2094 EGREP=$ac_cv_prog_egrep
2095 AC_SUBST([EGREP])
2096 ])])
2097
2098
2099 # AC_PATH_TOOL_PREFIX
2100 # -------------------
2101 # find a file program which can recognize shared library
2102 AC_DEFUN([AC_PATH_TOOL_PREFIX],
2103 [AC_REQUIRE([AC_PROG_EGREP])dnl
2104 AC_MSG_CHECKING([for $1])
2105 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2106 [case $MAGIC_CMD in
2107 [[\\/*] | ?:[\\/]*])
2108 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2109 ;;
2110 *)
2111 lt_save_MAGIC_CMD="$MAGIC_CMD"
2112 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2113 dnl $ac_dummy forces splitting on constant user-supplied paths.
2114 dnl POSIX.2 word splitting is done only on the output of word expansions,
2115 dnl not every word. This closes a longstanding sh security hole.
2116 ac_dummy="ifelse([$2], , $PATH, [$2])"
2117 for ac_dir in $ac_dummy; do
2118 IFS="$lt_save_ifs"
2119 test -z "$ac_dir" && ac_dir=.
2120 if test -f $ac_dir/$1; then
2121 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2122 if test -n "$file_magic_test_file"; then
2123 case $deplibs_check_method in
2124 "file_magic "*)
2125 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2126 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2127 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2128 $EGREP "$file_magic_regex" > /dev/null; then
2129 :
2130 else
2131 cat <<EOF 1>&2
2132
2133 *** Warning: the command libtool uses to detect shared libraries,
2134 *** $file_magic_cmd, produces output that libtool cannot recognize.
2135 *** The result is that libtool may fail to recognize shared libraries
2136 *** as such. This will affect the creation of libtool libraries that
2137 *** depend on shared libraries, but programs linked with such libtool
2138 *** libraries will work regardless of this problem. Nevertheless, you
2139 *** may want to report the problem to your system manager and/or to
2140 *** bug-libtool@gnu.org
2141
2142 EOF
2143 fi ;;
2144 esac
2145 fi
2146 break
2147 fi
2148 done
2149 IFS="$lt_save_ifs"
2150 MAGIC_CMD="$lt_save_MAGIC_CMD"
2151 ;;
2152 esac])
2153 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2154 if test -n "$MAGIC_CMD"; then
2155 AC_MSG_RESULT($MAGIC_CMD)
2156 else
2157 AC_MSG_RESULT(no)
2158 fi
2159 ])# AC_PATH_TOOL_PREFIX
2160
2161
2162 # AC_PATH_MAGIC
2163 # -------------
2164 # find a file program which can recognize a shared library
2165 AC_DEFUN([AC_PATH_MAGIC],
2166 [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2167 if test -z "$lt_cv_path_MAGIC_CMD"; then
2168 if test -n "$ac_tool_prefix"; then
2169 AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2170 else
2171 MAGIC_CMD=:
2172 fi
2173 fi
2174 ])# AC_PATH_MAGIC
2175
2176
2177 # AC_PROG_LD
2178 # ----------
2179 # find the pathname to the GNU or non-GNU linker
2180 AC_DEFUN([AC_PROG_LD],
2181 [AC_ARG_WITH([gnu-ld],
2182 [AC_HELP_STRING([--with-gnu-ld],
2183 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
2184 [test "$withval" = no || with_gnu_ld=yes],
2185 [with_gnu_ld=no])
2186 AC_REQUIRE([LT_AC_PROG_SED])dnl
2187 AC_REQUIRE([AC_PROG_CC])dnl
2188 AC_REQUIRE([AC_CANONICAL_HOST])dnl
2189 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2190 ac_prog=ld
2191 if test "$GCC" = yes; then
2192 # Check if gcc -print-prog-name=ld gives a path.
2193 AC_MSG_CHECKING([for ld used by $CC])
2194 case $host in
2195 *-*-mingw*)
2196 # gcc leaves a trailing carriage return which upsets mingw
2197 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2198 *)
2199 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2200 esac
2201 case $ac_prog in
2202 # Accept absolute paths.
2203 [[\\/]]* | ?:[[\\/]]*)
2204 re_direlt='/[[^/]][[^/]]*/\.\./'
2205 # Canonicalize the pathname of ld
2206 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2207 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2208 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2209 done
2210 test -z "$LD" && LD="$ac_prog"
2211 ;;
2212 "")
2213 # If it fails, then pretend we aren't using GCC.
2214 ac_prog=ld
2215 ;;
2216 *)
2217 # If it is relative, then search for the first ld in PATH.
2218 with_gnu_ld=unknown
2219 ;;
2220 esac
2221 elif test "$with_gnu_ld" = yes; then
2222 AC_MSG_CHECKING([for GNU ld])
2223 else
2224 AC_MSG_CHECKING([for non-GNU ld])
2225 fi
2226 AC_CACHE_VAL(lt_cv_path_LD,
2227 [if test -z "$LD"; then
2228 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2229 for ac_dir in $PATH; do
2230 IFS="$lt_save_ifs"
2231 test -z "$ac_dir" && ac_dir=.
2232 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2233 lt_cv_path_LD="$ac_dir/$ac_prog"
2234 # Check to see if the program is GNU ld. I'd rather use --version,
2235 # but apparently some variants of GNU ld only accept -v.
2236 # Break only if it was the GNU/non-GNU ld that we prefer.
2237 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2238 *GNU* | *'with BFD'*)
2239 test "$with_gnu_ld" != no && break
2240 ;;
2241 *)
2242 test "$with_gnu_ld" != yes && break
2243 ;;
2244 esac
2245 fi
2246 done
2247 IFS="$lt_save_ifs"
2248 else
2249 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2250 fi])
2251 LD="$lt_cv_path_LD"
2252 if test -n "$LD"; then
2253 AC_MSG_RESULT($LD)
2254 else
2255 AC_MSG_RESULT(no)
2256 fi
2257 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2258 AC_PROG_LD_GNU
2259 ])# AC_PROG_LD
2260
2261
2262 # AC_PROG_LD_GNU
2263 # --------------
2264 AC_DEFUN([AC_PROG_LD_GNU],
2265 [AC_REQUIRE([AC_PROG_EGREP])dnl
2266 AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2267 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
2268 case `$LD -v 2>&1 </dev/null` in
2269 *GNU* | *'with BFD'*)
2270 lt_cv_prog_gnu_ld=yes
2271 ;;
2272 *)
2273 lt_cv_prog_gnu_ld=no
2274 ;;
2275 esac])
2276 with_gnu_ld=$lt_cv_prog_gnu_ld
2277 ])# AC_PROG_LD_GNU
2278
2279
2280 # AC_PROG_LD_RELOAD_FLAG
2281 # ----------------------
2282 # find reload flag for linker
2283 # -- PORTME Some linkers may need a different reload flag.
2284 AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
2285 [AC_CACHE_CHECK([for $LD option to reload object files],
2286 lt_cv_ld_reload_flag,
2287 [lt_cv_ld_reload_flag='-r'])
2288 reload_flag=$lt_cv_ld_reload_flag
2289 case $reload_flag in
2290 "" | " "*) ;;
2291 *) reload_flag=" $reload_flag" ;;
2292 esac
2293 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2294 case $host_os in
2295 darwin*)
2296 if test "$GCC" = yes; then
2297 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
2298 else
2299 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2300 fi
2301 ;;
2302 esac
2303 ])# AC_PROG_LD_RELOAD_FLAG
2304
2305
2306 # AC_DEPLIBS_CHECK_METHOD
2307 # -----------------------
2308 # how to check for library dependencies
2309 # -- PORTME fill in with the dynamic library characteristics
2310 AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2311 [AC_CACHE_CHECK([how to recognize dependent libraries],
2312 lt_cv_deplibs_check_method,
2313 [lt_cv_file_magic_cmd='$MAGIC_CMD'
2314 lt_cv_file_magic_test_file=
2315 lt_cv_deplibs_check_method='unknown'
2316 # Need to set the preceding variable on all platforms that support
2317 # interlibrary dependencies.
2318 # 'none' -- dependencies not supported.
2319 # `unknown' -- same as none, but documents that we really don't know.
2320 # 'pass_all' -- all dependencies passed with no checks.
2321 # 'test_compile' -- check by making test program.
2322 # 'file_magic [[regex]]' -- check by looking for files in library path
2323 # which responds to the $file_magic_cmd with a given extended regex.
2324 # If you have `file' or equivalent on your system and you're not sure
2325 # whether `pass_all' will *always* work, you probably want this one.
2326
2327 case $host_os in
2328 aix4* | aix5*)
2329 lt_cv_deplibs_check_method=pass_all
2330 ;;
2331
2332 beos*)
2333 lt_cv_deplibs_check_method=pass_all
2334 ;;
2335
2336 bsdi[[45]]*)
2337 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
2338 lt_cv_file_magic_cmd='/usr/bin/file -L'
2339 lt_cv_file_magic_test_file=/shlib/libc.so
2340 ;;
2341
2342 cygwin*)
2343 # func_win32_libid is a shell function defined in ltmain.sh
2344 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2345 lt_cv_file_magic_cmd='func_win32_libid'
2346 ;;
2347
2348 mingw* | pw32*)
2349 # Base MSYS/MinGW do not provide the 'file' command needed by
2350 # func_win32_libid shell function, so use a weaker test based on 'objdump',
2351 # unless we find 'file', for example because we are cross-compiling.
2352 if ( file / ) >/dev/null 2>&1; then
2353 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2354 lt_cv_file_magic_cmd='func_win32_libid'
2355 else
2356 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2357 lt_cv_file_magic_cmd='$OBJDUMP -f'
2358 fi
2359 ;;
2360
2361 darwin* | rhapsody*)
2362 lt_cv_deplibs_check_method=pass_all
2363 ;;
2364
2365 freebsd* | dragonfly*)
2366 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2367 case $host_cpu in
2368 i*86 )
2369 # Not sure whether the presence of OpenBSD here was a mistake.
2370 # Let's accept both of them until this is cleared up.
2371 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
2372 lt_cv_file_magic_cmd=/usr/bin/file
2373 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2374 ;;
2375 esac
2376 else
2377 lt_cv_deplibs_check_method=pass_all
2378 fi
2379 ;;
2380
2381 gnu*)
2382 lt_cv_deplibs_check_method=pass_all
2383 ;;
2384
2385 hpux10.20* | hpux11*)
2386 lt_cv_file_magic_cmd=/usr/bin/file
2387 case $host_cpu in
2388 ia64*)
2389 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
2390 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2391 ;;
2392 hppa*64*)
2393 [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]']
2394 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
2395 ;;
2396 *)
2397 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
2398 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2399 ;;
2400 esac
2401 ;;
2402
2403 interix[[3-9]]*)
2404 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
2405 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
2406 ;;
2407
2408 irix5* | irix6* | nonstopux*)
2409 case $LD in
2410 *-32|*"-32 ") libmagic=32-bit;;
2411 *-n32|*"-n32 ") libmagic=N32;;
2412 *-64|*"-64 ") libmagic=64-bit;;
2413 *) libmagic=never-match;;
2414 esac
2415 lt_cv_deplibs_check_method=pass_all
2416 ;;
2417
2418 # This must be Linux ELF.
2419 linux* | k*bsd*-gnu)
2420 lt_cv_deplibs_check_method=pass_all
2421 ;;
2422
2423 netbsd*)
2424 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2425 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2426 else
2427 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
2428 fi
2429 ;;
2430
2431 newos6*)
2432 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
2433 lt_cv_file_magic_cmd=/usr/bin/file
2434 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2435 ;;
2436
2437 nto-qnx*)
2438 lt_cv_deplibs_check_method=unknown
2439 ;;
2440
2441 openbsd*)
2442 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2443 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
2444 else
2445 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2446 fi
2447 ;;
2448
2449 osf3* | osf4* | osf5*)
2450 lt_cv_deplibs_check_method=pass_all
2451 ;;
2452
2453 rdos*)
2454 lt_cv_deplibs_check_method=pass_all
2455 ;;
2456
2457 solaris*)
2458 lt_cv_deplibs_check_method=pass_all
2459 ;;
2460
2461 sysv4 | sysv4.3*)
2462 case $host_vendor in
2463 motorola)
2464 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]]'
2465 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2466 ;;
2467 ncr)
2468 lt_cv_deplibs_check_method=pass_all
2469 ;;
2470 sequent)
2471 lt_cv_file_magic_cmd='/bin/file'
2472 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
2473 ;;
2474 sni)
2475 lt_cv_file_magic_cmd='/bin/file'
2476 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
2477 lt_cv_file_magic_test_file=/lib/libc.so
2478 ;;
2479 siemens)
2480 lt_cv_deplibs_check_method=pass_all
2481 ;;
2482 pc)
2483 lt_cv_deplibs_check_method=pass_all
2484 ;;
2485 esac
2486 ;;
2487
2488 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2489 lt_cv_deplibs_check_method=pass_all
2490 ;;
2491 esac
2492 ])
2493 file_magic_cmd=$lt_cv_file_magic_cmd
2494 deplibs_check_method=$lt_cv_deplibs_check_method
2495 test -z "$deplibs_check_method" && deplibs_check_method=unknown
2496 ])# AC_DEPLIBS_CHECK_METHOD
2497
2498
2499 # AC_PROG_NM
2500 # ----------
2501 # find the pathname to a BSD-compatible name lister
2502 AC_DEFUN([AC_PROG_NM],
2503 [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
2504 [if test -n "$NM"; then
2505 # Let the user override the test.
2506 lt_cv_path_NM="$NM"
2507 else
2508 lt_nm_to_check="${ac_tool_prefix}nm"
2509 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
2510 lt_nm_to_check="$lt_nm_to_check nm"
2511 fi
2512 for lt_tmp_nm in $lt_nm_to_check; do
2513 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2514 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
2515 IFS="$lt_save_ifs"
2516 test -z "$ac_dir" && ac_dir=.
2517 tmp_nm="$ac_dir/$lt_tmp_nm"
2518 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2519 # Check to see if the nm accepts a BSD-compat flag.
2520 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2521 # nm: unknown option "B" ignored
2522 # Tru64's nm complains that /dev/null is an invalid object file
2523 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2524 */dev/null* | *'Invalid file or object type'*)
2525 lt_cv_path_NM="$tmp_nm -B"
2526 break
2527 ;;
2528 *)
2529 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2530 */dev/null*)
2531 lt_cv_path_NM="$tmp_nm -p"
2532 break
2533 ;;
2534 *)
2535 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2536 continue # so that we can try to find one that supports BSD flags
2537 ;;
2538 esac
2539 ;;
2540 esac
2541 fi
2542 done
2543 IFS="$lt_save_ifs"
2544 done
2545 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2546 fi])
2547 NM="$lt_cv_path_NM"
2548 ])# AC_PROG_NM
2549
2550
2551 # AC_CHECK_LIBM
2552 # -------------
2553 # check for math library
2554 AC_DEFUN([AC_CHECK_LIBM],
2555 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
2556 LIBM=
2557 case $host in
2558 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
2559 # These system don't have libm, or don't need it
2560 ;;
2561 *-ncr-sysv4.3*)
2562 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
2563 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
2564 ;;
2565 *)
2566 AC_CHECK_LIB(m, cos, LIBM="-lm")
2567 ;;
2568 esac
2569 ])# AC_CHECK_LIBM
2570
2571
2572 # AC_LIBLTDL_CONVENIENCE([DIRECTORY])
2573 # -----------------------------------
2574 # sets LIBLTDL to the link flags for the libltdl convenience library and
2575 # LTDLINCL to the include flags for the libltdl header and adds
2576 # --enable-ltdl-convenience to the configure arguments. Note that
2577 # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2578 # it is assumed to be `libltdl'. LIBLTDL will be prefixed with
2579 # '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
2580 # (note the single quotes!). If your package is not flat and you're not
2581 # using automake, define top_builddir and top_srcdir appropriately in
2582 # the Makefiles.
2583 AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2584 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2585 case $enable_ltdl_convenience in
2586 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
2587 "") enable_ltdl_convenience=yes
2588 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
2589 esac
2590 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
2591 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2592 # For backwards non-gettext consistent compatibility...
2593 INCLTDL="$LTDLINCL"
2594 ])# AC_LIBLTDL_CONVENIENCE
2595
2596
2597 # AC_LIBLTDL_INSTALLABLE([DIRECTORY])
2598 # -----------------------------------
2599 # sets LIBLTDL to the link flags for the libltdl installable library and
2600 # LTDLINCL to the include flags for the libltdl header and adds
2601 # --enable-ltdl-install to the configure arguments. Note that
2602 # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2603 # and an installed libltdl is not found, it is assumed to be `libltdl'.
2604 # LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
2605 # '${top_srcdir}/' (note the single quotes!). If your package is not
2606 # flat and you're not using automake, define top_builddir and top_srcdir
2607 # appropriately in the Makefiles.
2608 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2609 AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2610 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2611 AC_CHECK_LIB(ltdl, lt_dlinit,
2612 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
2613 [if test x"$enable_ltdl_install" = xno; then
2614 AC_MSG_WARN([libltdl not installed, but installation disabled])
2615 else
2616 enable_ltdl_install=yes
2617 fi
2618 ])
2619 if test x"$enable_ltdl_install" = x"yes"; then
2620 ac_configure_args="$ac_configure_args --enable-ltdl-install"
2621 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
2622 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2623 else
2624 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
2625 LIBLTDL="-lltdl"
2626 LTDLINCL=
2627 fi
2628 # For backwards non-gettext consistent compatibility...
2629 INCLTDL="$LTDLINCL"
2630 ])# AC_LIBLTDL_INSTALLABLE
2631
2632
2633 # AC_LIBTOOL_CXX
2634 # --------------
2635 # enable support for C++ libraries
2636 AC_DEFUN([AC_LIBTOOL_CXX],
2637 [AC_REQUIRE([_LT_AC_LANG_CXX])
2638 ])# AC_LIBTOOL_CXX
2639
2640
2641 # _LT_AC_LANG_CXX
2642 # ---------------
2643 AC_DEFUN([_LT_AC_LANG_CXX],
2644 [AC_REQUIRE([AC_PROG_CXX])
2645 AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2646 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
2647 ])# _LT_AC_LANG_CXX
2648
2649 # _LT_AC_PROG_CXXCPP
2650 # ------------------
2651 AC_DEFUN([_LT_AC_PROG_CXXCPP],
2652 [
2653 AC_REQUIRE([AC_PROG_CXX])
2654 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2655 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2656 (test "X$CXX" != "Xg++"))) ; then
2657 AC_PROG_CXXCPP
2658 fi
2659 ])# _LT_AC_PROG_CXXCPP
2660
2661 # AC_LIBTOOL_F77
2662 # --------------
2663 # enable support for Fortran 77 libraries
2664 AC_DEFUN([AC_LIBTOOL_F77],
2665 [AC_REQUIRE([_LT_AC_LANG_F77])
2666 ])# AC_LIBTOOL_F77
2667
2668
2669 # _LT_AC_LANG_F77
2670 # ---------------
2671 AC_DEFUN([_LT_AC_LANG_F77],
2672 [AC_REQUIRE([AC_PROG_F77])
2673 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
2674 ])# _LT_AC_LANG_F77
2675
2676
2677 # AC_LIBTOOL_GCJ
2678 # --------------
2679 # enable support for GCJ libraries
2680 AC_DEFUN([AC_LIBTOOL_GCJ],
2681 [AC_REQUIRE([_LT_AC_LANG_GCJ])
2682 ])# AC_LIBTOOL_GCJ
2683
2684
2685 # _LT_AC_LANG_GCJ
2686 # ---------------
2687 AC_DEFUN([_LT_AC_LANG_GCJ],
2688 [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
2689 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
2690 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
2691 [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
2692 [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
2693 [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
2694 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
2695 ])# _LT_AC_LANG_GCJ
2696
2697
2698 # AC_LIBTOOL_RC
2699 # -------------
2700 # enable support for Windows resource files
2701 AC_DEFUN([AC_LIBTOOL_RC],
2702 [AC_REQUIRE([LT_AC_PROG_RC])
2703 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
2704 ])# AC_LIBTOOL_RC
2705
2706
2707 # AC_LIBTOOL_LANG_C_CONFIG
2708 # ------------------------
2709 # Ensure that the configuration vars for the C compiler are
2710 # suitably defined. Those variables are subsequently used by
2711 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2712 AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
2713 AC_DEFUN([_LT_AC_LANG_C_CONFIG],
2714 [lt_save_CC="$CC"
2715 AC_LANG_PUSH(C)
2716
2717 # Source file extension for C test sources.
2718 ac_ext=c
2719
2720 # Object file extension for compiled C test sources.
2721 objext=o
2722 _LT_AC_TAGVAR(objext, $1)=$objext
2723
2724 # Code to be used in simple compile tests
2725 lt_simple_compile_test_code="int some_variable = 0;"
2726
2727 # Code to be used in simple link tests
2728 lt_simple_link_test_code='int main(){return(0);}'
2729
2730 _LT_AC_SYS_COMPILER
2731
2732 # save warnings/boilerplate of simple test code
2733 _LT_COMPILER_BOILERPLATE
2734 _LT_LINKER_BOILERPLATE
2735
2736 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2737 AC_LIBTOOL_PROG_COMPILER_PIC($1)
2738 AC_LIBTOOL_PROG_CC_C_O($1)
2739 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
2740 AC_LIBTOOL_PROG_LD_SHLIBS($1)
2741 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2742 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2743 AC_LIBTOOL_SYS_LIB_STRIP
2744 AC_LIBTOOL_DLOPEN_SELF
2745
2746 # Report which library types will actually be built
2747 AC_MSG_CHECKING([if libtool supports shared libraries])
2748 AC_MSG_RESULT([$can_build_shared])
2749
2750 AC_MSG_CHECKING([whether to build shared libraries])
2751 test "$can_build_shared" = "no" && enable_shared=no
2752
2753 # On AIX, shared libraries and static libraries use the same namespace, and
2754 # are all built from PIC.
2755 case $host_os in
2756 aix3*)
2757 test "$enable_shared" = yes && enable_static=no
2758 if test -n "$RANLIB"; then
2759 archive_cmds="$archive_cmds~\$RANLIB \$lib"
2760 postinstall_cmds='$RANLIB $lib'
2761 fi
2762 ;;
2763
2764 aix4* | aix5*)
2765 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2766 test "$enable_shared" = yes && enable_static=no
2767 fi
2768 ;;
2769 esac
2770 AC_MSG_RESULT([$enable_shared])
2771
2772 AC_MSG_CHECKING([whether to build static libraries])
2773 # Make sure either enable_shared or enable_static is yes.
2774 test "$enable_shared" = yes || enable_static=yes
2775 AC_MSG_RESULT([$enable_static])
2776
2777 AC_LIBTOOL_CONFIG($1)
2778
2779 AC_LANG_POP
2780 CC="$lt_save_CC"
2781 ])# AC_LIBTOOL_LANG_C_CONFIG
2782
2783
2784 # AC_LIBTOOL_LANG_CXX_CONFIG
2785 # --------------------------
2786 # Ensure that the configuration vars for the C compiler are
2787 # suitably defined. Those variables are subsequently used by
2788 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2789 AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
2790 AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
2791 [AC_LANG_PUSH(C++)
2792 AC_REQUIRE([AC_PROG_CXX])
2793 AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2794
2795 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2796 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
2797 _LT_AC_TAGVAR(always_export_symbols, $1)=no
2798 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
2799 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
2800 _LT_AC_TAGVAR(hardcode_direct, $1)=no
2801 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
2802 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
2803 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2804 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
2805 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2806 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
2807 _LT_AC_TAGVAR(module_cmds, $1)=
2808 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
2809 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
2810 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
2811 _LT_AC_TAGVAR(no_undefined_flag, $1)=
2812 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2813 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
2814
2815 # Dependencies to place before and after the object being linked:
2816 _LT_AC_TAGVAR(predep_objects, $1)=
2817 _LT_AC_TAGVAR(postdep_objects, $1)=
2818 _LT_AC_TAGVAR(predeps, $1)=
2819 _LT_AC_TAGVAR(postdeps, $1)=
2820 _LT_AC_TAGVAR(compiler_lib_search_path, $1)=
2821
2822 # Source file extension for C++ test sources.
2823 ac_ext=cpp
2824
2825 # Object file extension for compiled C++ test sources.
2826 objext=o
2827 _LT_AC_TAGVAR(objext, $1)=$objext
2828
2829 # Code to be used in simple compile tests
2830 lt_simple_compile_test_code="int some_variable = 0;"
2831
2832 # Code to be used in simple link tests
2833 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
2834
2835 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
2836 _LT_AC_SYS_COMPILER
2837
2838 # save warnings/boilerplate of simple test code
2839 _LT_COMPILER_BOILERPLATE
2840 _LT_LINKER_BOILERPLATE
2841
2842 # Allow CC to be a program name with arguments.
2843 lt_save_CC=$CC
2844 lt_save_LD=$LD
2845 lt_save_GCC=$GCC
2846 GCC=$GXX
2847 lt_save_with_gnu_ld=$with_gnu_ld
2848 lt_save_path_LD=$lt_cv_path_LD
2849 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
2850 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
2851 else
2852 $as_unset lt_cv_prog_gnu_ld
2853 fi
2854 if test -n "${lt_cv_path_LDCXX+set}"; then
2855 lt_cv_path_LD=$lt_cv_path_LDCXX
2856 else
2857 $as_unset lt_cv_path_LD
2858 fi
2859 test -z "${LDCXX+set}" || LD=$LDCXX
2860 CC=${CXX-"c++"}
2861 compiler=$CC
2862 _LT_AC_TAGVAR(compiler, $1)=$CC
2863 _LT_CC_BASENAME([$compiler])
2864
2865 # We don't want -fno-exception wen compiling C++ code, so set the
2866 # no_builtin_flag separately
2867 if test "$GXX" = yes; then
2868 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
2869 else
2870 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
2871 fi
2872
2873 if test "$GXX" = yes; then
2874 # Set up default GNU C++ configuration
2875
2876 AC_PROG_LD
2877
2878 # Check if GNU C++ uses GNU ld as the underlying linker, since the
2879 # archiving commands below assume that GNU ld is being used.
2880 if test "$with_gnu_ld" = yes; then
2881 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
2882 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
2883
2884 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
2885 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
2886
2887 # If archive_cmds runs LD, not CC, wlarc should be empty
2888 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
2889 # investigate it a little bit more. (MM)
2890 wlarc='${wl}'
2891
2892 # ancient GNU ld didn't support --whole-archive et. al.
2893 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
2894 grep 'no-whole-archive' > /dev/null; then
2895 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
2896 else
2897 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2898 fi
2899 else
2900 with_gnu_ld=no
2901 wlarc=
2902
2903 # A generic and very simple default shared library creation
2904 # command for GNU C++ for the case where it uses the native
2905 # linker, instead of GNU ld. If possible, this setting should
2906 # overridden to take advantage of the native linker features on
2907 # the platform it is being used on.
2908 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
2909 fi
2910
2911 # Commands to make compiler produce verbose output that lists
2912 # what "hidden" libraries, object files and flags are used when
2913 # linking a shared library.
2914 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
2915
2916 else
2917 GXX=no
2918 with_gnu_ld=no
2919 wlarc=
2920 fi
2921
2922 # PORTME: fill in a description of your system's C++ link characteristics
2923 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
2924 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
2925 case $host_os in
2926 aix3*)
2927 # FIXME: insert proper C++ library support
2928 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2929 ;;
2930 aix4* | aix5*)
2931 if test "$host_cpu" = ia64; then
2932 # On IA64, the linker does run time linking by default, so we don't
2933 # have to do anything special.
2934 aix_use_runtimelinking=no
2935 exp_sym_flag='-Bexport'
2936 no_entry_flag=""
2937 else
2938 aix_use_runtimelinking=no
2939
2940 # Test if we are trying to use run time linking or normal
2941 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
2942 # need to do runtime linking.
2943 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
2944 for ld_flag in $LDFLAGS; do
2945 case $ld_flag in
2946 *-brtl*)
2947 aix_use_runtimelinking=yes
2948 break
2949 ;;
2950 esac
2951 done
2952 ;;
2953 esac
2954
2955 exp_sym_flag='-bexport'
2956 no_entry_flag='-bnoentry'
2957 fi
2958
2959 # When large executables or shared objects are built, AIX ld can
2960 # have problems creating the table of contents. If linking a library
2961 # or program results in "error TOC overflow" add -mminimal-toc to
2962 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
2963 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
2964
2965 _LT_AC_TAGVAR(archive_cmds, $1)=''
2966 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2967 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
2968 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2969
2970 if test "$GXX" = yes; then
2971 case $host_os in aix4.[[012]]|aix4.[[012]].*)
2972 # We only want to do this on AIX 4.2 and lower, the check
2973 # below for broken collect2 doesn't work under 4.3+
2974 collect2name=`${CC} -print-prog-name=collect2`
2975 if test -f "$collect2name" && \
2976 strings "$collect2name" | grep resolve_lib_name >/dev/null
2977 then
2978 # We have reworked collect2
2979 :
2980 else
2981 # We have old collect2
2982 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
2983 # It fails to find uninstalled libraries when the uninstalled
2984 # path is not listed in the libpath. Setting hardcode_minus_L
2985 # to unsupported forces relinking
2986 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
2987 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2988 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2989 fi
2990 ;;
2991 esac
2992 shared_flag='-shared'
2993 if test "$aix_use_runtimelinking" = yes; then
2994 shared_flag="$shared_flag "'${wl}-G'
2995 fi
2996 else
2997 # not using gcc
2998 if test "$host_cpu" = ia64; then
2999 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3000 # chokes on -Wl,-G. The following line is correct:
3001 shared_flag='-G'
3002 else
3003 if test "$aix_use_runtimelinking" = yes; then
3004 shared_flag='${wl}-G'
3005 else
3006 shared_flag='${wl}-bM:SRE'
3007 fi
3008 fi
3009 fi
3010
3011 # It seems that -bexpall does not export symbols beginning with
3012 # underscore (_), so it is better to generate a list of symbols to export.
3013 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
3014 if test "$aix_use_runtimelinking" = yes; then
3015 # Warning - without using the other runtime loading flags (-brtl),
3016 # -berok will link without error, but may produce a broken library.
3017 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3018 # Determine the default libpath from the value encoded in an empty executable.
3019 _LT_AC_SYS_LIBPATH_AIX
3020 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3021
3022 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
3023 else
3024 if test "$host_cpu" = ia64; then
3025 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3026 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3027 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
3028 else
3029 # Determine the default libpath from the value encoded in an empty executable.
3030 _LT_AC_SYS_LIBPATH_AIX
3031 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3032 # Warning - without using the other run time loading flags,
3033 # -berok will link without error, but may produce a broken library.
3034 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3035 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3036 # Exported symbols can be pulled into shared objects from archives
3037 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
3038 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3039 # This is similar to how AIX traditionally builds its shared libraries.
3040 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
3041 fi
3042 fi
3043 ;;
3044
3045 beos*)
3046 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3047 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3048 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3049 # support --undefined. This deserves some investigation. FIXME
3050 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3051 else
3052 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3053 fi
3054 ;;
3055
3056 chorus*)
3057 case $cc_basename in
3058 *)
3059 # FIXME: insert proper C++ library support
3060 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3061 ;;
3062 esac
3063 ;;
3064
3065 cygwin* | mingw* | pw32*)
3066 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3067 # as there is no search path for DLLs.
3068 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3069 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3070 _LT_AC_TAGVAR(always_export_symbols, $1)=no
3071 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3072
3073 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3074 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
3075 # If the export-symbols file already is a .def file (1st line
3076 # is EXPORTS), use it as is; otherwise, prepend...
3077 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3078 cp $export_symbols $output_objdir/$soname.def;
3079 else
3080 echo EXPORTS > $output_objdir/$soname.def;
3081 cat $export_symbols >> $output_objdir/$soname.def;
3082 fi~
3083 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
3084 else
3085 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3086 fi
3087 ;;
3088 darwin* | rhapsody*)
3089 case $host_os in
3090 rhapsody* | darwin1.[[012]])
3091 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3092 ;;
3093 *) # Darwin 1.3 on
3094 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3095 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3096 else
3097 case ${MACOSX_DEPLOYMENT_TARGET} in
3098 10.[[012]])
3099 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3100 ;;
3101 10.*)
3102 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
3103 ;;
3104 esac
3105 fi
3106 ;;
3107 esac
3108 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3109 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3110 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3111 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3112 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3113 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3114
3115 if test "$GXX" = yes ; then
3116 lt_int_apple_cc_single_mod=no
3117 output_verbose_link_cmd='echo'
3118 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
3119 lt_int_apple_cc_single_mod=yes
3120 fi
3121 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3122 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3123 else
3124 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -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'
3125 fi
3126 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3127 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3128 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3129 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='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}'
3130 else
3131 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -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}'
3132 fi
3133 _LT_AC_TAGVAR(module_expsym_cmds, $1)='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}'
3134 else
3135 case $cc_basename in
3136 xlc*)
3137 output_verbose_link_cmd='echo'
3138 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
3139 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3140 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3141 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3142 _LT_AC_TAGVAR(module_expsym_cmds, $1)='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}'
3143 ;;
3144 *)
3145 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3146 ;;
3147 esac
3148 fi
3149 ;;
3150
3151 dgux*)
3152 case $cc_basename in
3153 ec++*)
3154 # FIXME: insert proper C++ library support
3155 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3156 ;;
3157 ghcx*)
3158 # Green Hills C++ Compiler
3159 # FIXME: insert proper C++ library support
3160 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3161 ;;
3162 *)
3163 # FIXME: insert proper C++ library support
3164 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3165 ;;
3166 esac
3167 ;;
3168 freebsd[[12]]*)
3169 # C++ shared libraries reported to be fairly broken before switch to ELF
3170 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3171 ;;
3172 freebsd-elf*)
3173 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3174 ;;
3175 freebsd* | dragonfly*)
3176 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3177 # conventions
3178 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3179 ;;
3180 gnu*)
3181 ;;
3182 hpux9*)
3183 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3184 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3185 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3186 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3187 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3188 # but as the default
3189 # location of the library.
3190
3191 case $cc_basename in
3192 CC*)
3193 # FIXME: insert proper C++ library support
3194 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3195 ;;
3196 aCC*)
3197 _LT_AC_TAGVAR(archive_cmds, $1)='$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'
3198 # Commands to make compiler produce verbose output that lists
3199 # what "hidden" libraries, object files and flags are used when
3200 # linking a shared library.
3201 #
3202 # There doesn't appear to be a way to prevent this compiler from
3203 # explicitly linking system object files so we need to strip them
3204 # from the output so that they don't get included in the library
3205 # dependencies.
3206 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'
3207 ;;
3208 *)
3209 if test "$GXX" = yes; then
3210 _LT_AC_TAGVAR(archive_cmds, $1)='$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'
3211 else
3212 # FIXME: insert proper C++ library support
3213 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3214 fi
3215 ;;
3216 esac
3217 ;;
3218 hpux10*|hpux11*)
3219 if test $with_gnu_ld = no; then
3220 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3221 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3222
3223 case $host_cpu in
3224 hppa*64*|ia64*) ;;
3225 *)
3226 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3227 ;;
3228 esac
3229 fi
3230 case $host_cpu in
3231 hppa*64*|ia64*)
3232 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3233 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3234 ;;
3235 *)
3236 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3237 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3238 # but as the default
3239 # location of the library.
3240 ;;
3241 esac
3242
3243 case $cc_basename in
3244 CC*)
3245 # FIXME: insert proper C++ library support
3246 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3247 ;;
3248 aCC*)
3249 case $host_cpu in
3250 hppa*64*)
3251 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3252 ;;
3253 ia64*)
3254 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3255 ;;
3256 *)
3257 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3258 ;;
3259 esac
3260 # Commands to make compiler produce verbose output that lists
3261 # what "hidden" libraries, object files and flags are used when
3262 # linking a shared library.
3263 #
3264 # There doesn't appear to be a way to prevent this compiler from
3265 # explicitly linking system object files so we need to strip them
3266 # from the output so that they don't get included in the library
3267 # dependencies.
3268 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'
3269 ;;
3270 *)
3271 if test "$GXX" = yes; then
3272 if test $with_gnu_ld = no; then
3273 case $host_cpu in
3274 hppa*64*)
3275 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3276 ;;
3277 ia64*)
3278 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3279 ;;
3280 *)
3281 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3282 ;;
3283 esac
3284 fi
3285 else
3286 # FIXME: insert proper C++ library support
3287 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3288 fi
3289 ;;
3290 esac
3291 ;;
3292 interix[[3-9]]*)
3293 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3294 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3295 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3296 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3297 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
3298 # Instead, shared libraries are loaded at an image base (0x10000000 by
3299 # default) and relocated if they conflict, which is a slow very memory
3300 # consuming and fragmenting process. To avoid this, we pick a random,
3301 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
3302 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
3303 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
3304 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
3305 ;;
3306 irix5* | irix6*)
3307 case $cc_basename in
3308 CC*)
3309 # SGI C++
3310 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3311
3312 # Archives containing C++ object files must be created using
3313 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
3314 # necessary to make sure instantiated templates are included
3315 # in the archive.
3316 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
3317 ;;
3318 *)
3319 if test "$GXX" = yes; then
3320 if test "$with_gnu_ld" = no; then
3321 _LT_AC_TAGVAR(archive_cmds, $1)='$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}${output_objdir}/so_locations -o $lib'
3322 else
3323 _LT_AC_TAGVAR(archive_cmds, $1)='$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'
3324 fi
3325 fi
3326 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3327 ;;
3328 esac
3329 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3330 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3331 ;;
3332 linux* | k*bsd*-gnu)
3333 case $cc_basename in
3334 KCC*)
3335 # Kuck and Associates, Inc. (KAI) C++ Compiler
3336
3337 # KCC will only create a shared library if the output file
3338 # ends with ".so" (or ".sl" for HP-UX), so rename the library
3339 # to its proper name (with version) after linking.
3340 _LT_AC_TAGVAR(archive_cmds, $1)='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'
3341 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='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'
3342 # Commands to make compiler produce verbose output that lists
3343 # what "hidden" libraries, object files and flags are used when
3344 # linking a shared library.
3345 #
3346 # There doesn't appear to be a way to prevent this compiler from
3347 # explicitly linking system object files so we need to strip them
3348 # from the output so that they don't get included in the library
3349 # dependencies.
3350 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'
3351
3352 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
3353 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3354
3355 # Archives containing C++ object files must be created using
3356 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3357 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3358 ;;
3359 icpc*)
3360 # Intel C++
3361 with_gnu_ld=yes
3362 # version 8.0 and above of icpc choke on multiply defined symbols
3363 # if we add $predep_objects and $postdep_objects, however 7.1 and
3364 # earlier do not add the objects themselves.
3365 case `$CC -V 2>&1` in
3366 *"Version 7."*)
3367 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3368 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3369 ;;
3370 *) # Version 8.0 or newer
3371 tmp_idyn=
3372 case $host_cpu in
3373 ia64*) tmp_idyn=' -i_dynamic';;
3374 esac
3375 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3376 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3377 ;;
3378 esac
3379 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3380 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3381 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3382 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3383 ;;
3384 pgCC*)
3385 # Portland Group C++ compiler
3386 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3387 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
3388
3389 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3390 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3391 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
3392 ;;
3393 cxx*)
3394 # Compaq C++
3395 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3396 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
3397
3398 runpath_var=LD_RUN_PATH
3399 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3400 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3401
3402 # Commands to make compiler produce verbose output that lists
3403 # what "hidden" libraries, object files and flags are used when
3404 # linking a shared library.
3405 #
3406 # There doesn't appear to be a way to prevent this compiler from
3407 # explicitly linking system object files so we need to strip them
3408 # from the output so that they don't get included in the library
3409 # dependencies.
3410 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'
3411 ;;
3412 *)
3413 case `$CC -V 2>&1 | sed 5q` in
3414 *Sun\ C*)
3415 # Sun C++ 5.9
3416 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3417 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3418 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
3419 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3420 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
3421
3422 # Not sure whether something based on
3423 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
3424 # would be better.
3425 output_verbose_link_cmd='echo'
3426
3427 # Archives containing C++ object files must be created using
3428 # "CC -xar", where "CC" is the Sun C++ compiler. This is
3429 # necessary to make sure instantiated templates are included
3430 # in the archive.
3431 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3432 ;;
3433 esac
3434 ;;
3435 esac
3436 ;;
3437 lynxos*)
3438 # FIXME: insert proper C++ library support
3439 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3440 ;;
3441 m88k*)
3442 # FIXME: insert proper C++ library support
3443 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3444 ;;
3445 mvs*)
3446 case $cc_basename in
3447 cxx*)
3448 # FIXME: insert proper C++ library support
3449 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3450 ;;
3451 *)
3452 # FIXME: insert proper C++ library support
3453 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3454 ;;
3455 esac
3456 ;;
3457 netbsd*)
3458 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3459 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3460 wlarc=
3461 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3462 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3463 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3464 fi
3465 # Workaround some broken pre-1.5 toolchains
3466 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
3467 ;;
3468 openbsd2*)
3469 # C++ shared libraries are fairly broken
3470 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3471 ;;
3472 openbsd*)
3473 if test -f /usr/libexec/ld.so; then
3474 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3475 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3476 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3477 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3478 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3479 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
3480 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3481 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3482 fi
3483 output_verbose_link_cmd='echo'
3484 else
3485 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3486 fi
3487 ;;
3488 osf3*)
3489 case $cc_basename in
3490 KCC*)
3491 # Kuck and Associates, Inc. (KAI) C++ Compiler
3492
3493 # KCC will only create a shared library if the output file
3494 # ends with ".so" (or ".sl" for HP-UX), so rename the library
3495 # to its proper name (with version) after linking.
3496 _LT_AC_TAGVAR(archive_cmds, $1)='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'
3497
3498 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3499 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3500
3501 # Archives containing C++ object files must be created using
3502 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3503 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3504
3505 ;;
3506 RCC*)
3507 # Rational C++ 2.4.1
3508 # FIXME: insert proper C++ library support
3509 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3510 ;;
3511 cxx*)
3512 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3513 _LT_AC_TAGVAR(archive_cmds, $1)='$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 ${output_objdir}/so_locations -o $lib'
3514
3515 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3516 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3517
3518 # Commands to make compiler produce verbose output that lists
3519 # what "hidden" libraries, object files and flags are used when
3520 # linking a shared library.
3521 #
3522 # There doesn't appear to be a way to prevent this compiler from
3523 # explicitly linking system object files so we need to strip them
3524 # from the output so that they don't get included in the library
3525 # dependencies.
3526 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'
3527 ;;
3528 *)
3529 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3530 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3531 _LT_AC_TAGVAR(archive_cmds, $1)='$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}${output_objdir}/so_locations -o $lib'
3532
3533 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3534 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3535
3536 # Commands to make compiler produce verbose output that lists
3537 # what "hidden" libraries, object files and flags are used when
3538 # linking a shared library.
3539 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3540
3541 else
3542 # FIXME: insert proper C++ library support
3543 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3544 fi
3545 ;;
3546 esac
3547 ;;
3548 osf4* | osf5*)
3549 case $cc_basename in
3550 KCC*)
3551 # Kuck and Associates, Inc. (KAI) C++ Compiler
3552
3553 # KCC will only create a shared library if the output file
3554 # ends with ".so" (or ".sl" for HP-UX), so rename the library
3555 # to its proper name (with version) after linking.
3556 _LT_AC_TAGVAR(archive_cmds, $1)='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'
3557
3558 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3559 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3560
3561 # Archives containing C++ object files must be created using
3562 # the KAI C++ compiler.
3563 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
3564 ;;
3565 RCC*)
3566 # Rational C++ 2.4.1
3567 # FIXME: insert proper C++ library support
3568 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3569 ;;
3570 cxx*)
3571 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
3572 _LT_AC_TAGVAR(archive_cmds, $1)='$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 ${output_objdir}/so_locations -o $lib'
3573 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
3574 echo "-hidden">> $lib.exp~
3575 $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 ${output_objdir}/so_locations -o $lib~
3576 $rm $lib.exp'
3577
3578 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3579 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3580
3581 # Commands to make compiler produce verbose output that lists
3582 # what "hidden" libraries, object files and flags are used when
3583 # linking a shared library.
3584 #
3585 # There doesn't appear to be a way to prevent this compiler from
3586 # explicitly linking system object files so we need to strip them
3587 # from the output so that they don't get included in the library
3588 # dependencies.
3589 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'
3590 ;;
3591 *)
3592 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3593 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3594 _LT_AC_TAGVAR(archive_cmds, $1)='$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}${output_objdir}/so_locations -o $lib'
3595
3596 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3597 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3598
3599 # Commands to make compiler produce verbose output that lists
3600 # what "hidden" libraries, object files and flags are used when
3601 # linking a shared library.
3602 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3603
3604 else
3605 # FIXME: insert proper C++ library support
3606 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3607 fi
3608 ;;
3609 esac
3610 ;;
3611 psos*)
3612 # FIXME: insert proper C++ library support
3613 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3614 ;;
3615 sunos4*)
3616 case $cc_basename in
3617 CC*)
3618 # Sun C++ 4.x
3619 # FIXME: insert proper C++ library support
3620 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3621 ;;
3622 lcc*)
3623 # Lucid
3624 # FIXME: insert proper C++ library support
3625 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3626 ;;
3627 *)
3628 # FIXME: insert proper C++ library support
3629 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3630 ;;
3631 esac
3632 ;;
3633 solaris*)
3634 case $cc_basename in
3635 CC*)
3636 # Sun C++ 4.2, 5.x and Centerline C++
3637 _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
3638 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3639 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3640 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3641 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3642
3643 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3644 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3645 case $host_os in
3646 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3647 *)
3648 # The compiler driver will combine and reorder linker options,
3649 # but understands `-z linker_flag'.
3650 # Supported since Solaris 2.6 (maybe 2.5.1?)
3651 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
3652 ;;
3653 esac
3654 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3655
3656 output_verbose_link_cmd='echo'
3657
3658 # Archives containing C++ object files must be created using
3659 # "CC -xar", where "CC" is the Sun C++ compiler. This is
3660 # necessary to make sure instantiated templates are included
3661 # in the archive.
3662 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3663 ;;
3664 gcx*)
3665 # Green Hills C++ Compiler
3666 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3667
3668 # The C++ compiler must be used to create the archive.
3669 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
3670 ;;
3671 *)
3672 # GNU C++ compiler with Solaris linker
3673 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3674 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
3675 if $CC --version | grep -v '^2\.7' > /dev/null; then
3676 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3677 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3678 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3679
3680 # Commands to make compiler produce verbose output that lists
3681 # what "hidden" libraries, object files and flags are used when
3682 # linking a shared library.
3683 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3684 else
3685 # g++ 2.7 appears to require `-G' NOT `-shared' on this
3686 # platform.
3687 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3688 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3689 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3690
3691 # Commands to make compiler produce verbose output that lists
3692 # what "hidden" libraries, object files and flags are used when
3693 # linking a shared library.
3694 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3695 fi
3696
3697 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
3698 case $host_os in
3699 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3700 *)
3701 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
3702 ;;
3703 esac
3704 fi
3705 ;;
3706 esac
3707 ;;
3708 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
3709 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3710 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3711 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3712 runpath_var='LD_RUN_PATH'
3713
3714 case $cc_basename in
3715 CC*)
3716 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3717 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3718 ;;
3719 *)
3720 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3721 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3722 ;;
3723 esac
3724 ;;
3725 sysv5* | sco3.2v5* | sco5v6*)
3726 # Note: We can NOT use -z defs as we might desire, because we do not
3727 # link with -lc, and that would cause any symbols used from libc to
3728 # always be unresolved, which means just about no library would
3729 # ever link correctly. If we're not using GNU ld we use -z text
3730 # though, which does catch some bad symbols but isn't as heavy-handed
3731 # as -z defs.
3732 # For security reasons, it is highly recommended that you always
3733 # use absolute paths for naming shared libraries, and exclude the
3734 # DT_RUNPATH tag from executables and libraries. But doing so
3735 # requires that you compile everything twice, which is a pain.
3736 # So that behaviour is only enabled if SCOABSPATH is set to a
3737 # non-empty value in the environment. Most likely only useful for
3738 # creating official distributions of packages.
3739 # This is a hack until libtool officially supports absolute path
3740 # names for shared libraries.
3741 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3742 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
3743 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3744 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3745 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
3746 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3747 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3748 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
3749 runpath_var='LD_RUN_PATH'
3750
3751 case $cc_basename in
3752 CC*)
3753 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3754 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3755 ;;
3756 *)
3757 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3758 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3759 ;;
3760 esac
3761 ;;
3762 tandem*)
3763 case $cc_basename in
3764 NCC*)
3765 # NonStop-UX NCC 3.20
3766 # FIXME: insert proper C++ library support
3767 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3768 ;;
3769 *)
3770 # FIXME: insert proper C++ library support
3771 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3772 ;;
3773 esac
3774 ;;
3775 vxworks*)
3776 # FIXME: insert proper C++ library support
3777 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3778 ;;
3779 *)
3780 # FIXME: insert proper C++ library support
3781 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3782 ;;
3783 esac
3784 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
3785 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
3786
3787 _LT_AC_TAGVAR(GCC, $1)="$GXX"
3788 _LT_AC_TAGVAR(LD, $1)="$LD"
3789
3790 AC_LIBTOOL_POSTDEP_PREDEP($1)
3791 AC_LIBTOOL_PROG_COMPILER_PIC($1)
3792 AC_LIBTOOL_PROG_CC_C_O($1)
3793 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3794 AC_LIBTOOL_PROG_LD_SHLIBS($1)
3795 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3796 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3797
3798 AC_LIBTOOL_CONFIG($1)
3799
3800 AC_LANG_POP
3801 CC=$lt_save_CC
3802 LDCXX=$LD
3803 LD=$lt_save_LD
3804 GCC=$lt_save_GCC
3805 with_gnu_ldcxx=$with_gnu_ld
3806 with_gnu_ld=$lt_save_with_gnu_ld
3807 lt_cv_path_LDCXX=$lt_cv_path_LD
3808 lt_cv_path_LD=$lt_save_path_LD
3809 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
3810 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
3811 ])# AC_LIBTOOL_LANG_CXX_CONFIG
3812
3813 # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
3814 # ------------------------------------
3815 # Figure out "hidden" library dependencies from verbose
3816 # compiler output when linking a shared library.
3817 # Parse the compiler output and extract the necessary
3818 # objects, libraries and library flags.
3819 AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
3820 dnl we can't use the lt_simple_compile_test_code here,
3821 dnl because it contains code intended for an executable,
3822 dnl not a library. It's possible we should let each
3823 dnl tag define a new lt_????_link_test_code variable,
3824 dnl but it's only used here...
3825 ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
3826 int a;
3827 void foo (void) { a = 0; }
3828 EOF
3829 ],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
3830 class Foo
3831 {
3832 public:
3833 Foo (void) { a = 0; }
3834 private:
3835 int a;
3836 };
3837 EOF
3838 ],[$1],[F77],[cat > conftest.$ac_ext <<EOF
3839 subroutine foo
3840 implicit none
3841 integer*4 a
3842 a=0
3843 return
3844 end
3845 EOF
3846 ],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
3847 public class foo {
3848 private int a;
3849 public void bar (void) {
3850 a = 0;
3851 }
3852 };
3853 EOF
3854 ])
3855 dnl Parse the compiler output and extract the necessary
3856 dnl objects, libraries and library flags.
3857 if AC_TRY_EVAL(ac_compile); then
3858 # Parse the compiler output and extract the necessary
3859 # objects, libraries and library flags.
3860
3861 # Sentinel used to keep track of whether or not we are before
3862 # the conftest object file.
3863 pre_test_object_deps_done=no
3864
3865 # The `*' in the case matches for architectures that use `case' in
3866 # $output_verbose_cmd can trigger glob expansion during the loop
3867 # eval without this substitution.
3868 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
3869
3870 for p in `eval $output_verbose_link_cmd`; do
3871 case $p in
3872
3873 -L* | -R* | -l*)
3874 # Some compilers place space between "-{L,R}" and the path.
3875 # Remove the space.
3876 if test $p = "-L" \
3877 || test $p = "-R"; then
3878 prev=$p
3879 continue
3880 else
3881 prev=
3882 fi
3883
3884 if test "$pre_test_object_deps_done" = no; then
3885 case $p in
3886 -L* | -R*)
3887 # Internal compiler library paths should come after those
3888 # provided the user. The postdeps already come after the
3889 # user supplied libs so there is no need to process them.
3890 if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
3891 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
3892 else
3893 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
3894 fi
3895 ;;
3896 # The "-l" case would never come before the object being
3897 # linked, so don't bother handling this case.
3898 esac
3899 else
3900 if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
3901 _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
3902 else
3903 _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
3904 fi
3905 fi
3906 ;;
3907
3908 *.$objext)
3909 # This assumes that the test object file only shows up
3910 # once in the compiler output.
3911 if test "$p" = "conftest.$objext"; then
3912 pre_test_object_deps_done=yes
3913 continue
3914 fi
3915
3916 if test "$pre_test_object_deps_done" = no; then
3917 if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
3918 _LT_AC_TAGVAR(predep_objects, $1)="$p"
3919 else
3920 _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
3921 fi
3922 else
3923 if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
3924 _LT_AC_TAGVAR(postdep_objects, $1)="$p"
3925 else
3926 _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
3927 fi
3928 fi
3929 ;;
3930
3931 *) ;; # Ignore the rest.
3932
3933 esac
3934 done
3935
3936 # Clean up.
3937 rm -f a.out a.exe
3938 else
3939 echo "libtool.m4: error: problem compiling $1 test program"
3940 fi
3941
3942 $rm -f confest.$objext
3943
3944 # PORTME: override above test on systems where it is broken
3945 ifelse([$1],[CXX],
3946 [case $host_os in
3947 interix[[3-9]]*)
3948 # Interix 3.5 installs completely hosed .la files for C++, so rather than
3949 # hack all around it, let's just trust "g++" to DTRT.
3950 _LT_AC_TAGVAR(predep_objects,$1)=
3951 _LT_AC_TAGVAR(postdep_objects,$1)=
3952 _LT_AC_TAGVAR(postdeps,$1)=
3953 ;;
3954
3955 linux*)
3956 case `$CC -V 2>&1 | sed 5q` in
3957 *Sun\ C*)
3958 # Sun C++ 5.9
3959 #
3960 # The more standards-conforming stlport4 library is
3961 # incompatible with the Cstd library. Avoid specifying
3962 # it if it's in CXXFLAGS. Ignore libCrun as
3963 # -library=stlport4 depends on it.
3964 case " $CXX $CXXFLAGS " in
3965 *" -library=stlport4 "*)
3966 solaris_use_stlport4=yes
3967 ;;
3968 esac
3969 if test "$solaris_use_stlport4" != yes; then
3970 _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
3971 fi
3972 ;;
3973 esac
3974 ;;
3975
3976 solaris*)
3977 case $cc_basename in
3978 CC*)
3979 # The more standards-conforming stlport4 library is
3980 # incompatible with the Cstd library. Avoid specifying
3981 # it if it's in CXXFLAGS. Ignore libCrun as
3982 # -library=stlport4 depends on it.
3983 case " $CXX $CXXFLAGS " in
3984 *" -library=stlport4 "*)
3985 solaris_use_stlport4=yes
3986 ;;
3987 esac
3988
3989 # Adding this requires a known-good setup of shared libraries for
3990 # Sun compiler versions before 5.6, else PIC objects from an old
3991 # archive will be linked into the output, leading to subtle bugs.
3992 if test "$solaris_use_stlport4" != yes; then
3993 _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
3994 fi
3995 ;;
3996 esac
3997 ;;
3998 esac
3999 ])
4000
4001 case " $_LT_AC_TAGVAR(postdeps, $1) " in
4002 *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4003 esac
4004 ])# AC_LIBTOOL_POSTDEP_PREDEP
4005
4006 # AC_LIBTOOL_LANG_F77_CONFIG
4007 # --------------------------
4008 # Ensure that the configuration vars for the C compiler are
4009 # suitably defined. Those variables are subsequently used by
4010 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4011 AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
4012 AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
4013 [AC_REQUIRE([AC_PROG_F77])
4014 AC_LANG_PUSH(Fortran 77)
4015
4016 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4017 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
4018 _LT_AC_TAGVAR(always_export_symbols, $1)=no
4019 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4020 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4021 _LT_AC_TAGVAR(hardcode_direct, $1)=no
4022 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4023 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4024 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4025 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4026 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
4027 _LT_AC_TAGVAR(module_cmds, $1)=
4028 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
4029 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4030 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4031 _LT_AC_TAGVAR(no_undefined_flag, $1)=
4032 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4033 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4034
4035 # Source file extension for f77 test sources.
4036 ac_ext=f
4037
4038 # Object file extension for compiled f77 test sources.
4039 objext=o
4040 _LT_AC_TAGVAR(objext, $1)=$objext
4041
4042 # Code to be used in simple compile tests
4043 lt_simple_compile_test_code="\
4044 subroutine t
4045 return
4046 end
4047 "
4048
4049 # Code to be used in simple link tests
4050 lt_simple_link_test_code="\
4051 program t
4052 end
4053 "
4054
4055 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4056 _LT_AC_SYS_COMPILER
4057
4058 # save warnings/boilerplate of simple test code
4059 _LT_COMPILER_BOILERPLATE
4060 _LT_LINKER_BOILERPLATE
4061
4062 # Allow CC to be a program name with arguments.
4063 lt_save_CC="$CC"
4064 CC=${F77-"f77"}
4065 compiler=$CC
4066 _LT_AC_TAGVAR(compiler, $1)=$CC
4067 _LT_CC_BASENAME([$compiler])
4068
4069 AC_MSG_CHECKING([if libtool supports shared libraries])
4070 AC_MSG_RESULT([$can_build_shared])
4071
4072 AC_MSG_CHECKING([whether to build shared libraries])
4073 test "$can_build_shared" = "no" && enable_shared=no
4074
4075 # On AIX, shared libraries and static libraries use the same namespace, and
4076 # are all built from PIC.
4077 case $host_os in
4078 aix3*)
4079 test "$enable_shared" = yes && enable_static=no
4080 if test -n "$RANLIB"; then
4081 archive_cmds="$archive_cmds~\$RANLIB \$lib"
4082 postinstall_cmds='$RANLIB $lib'
4083 fi
4084 ;;
4085 aix4* | aix5*)
4086 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4087 test "$enable_shared" = yes && enable_static=no
4088 fi
4089 ;;
4090 esac
4091 AC_MSG_RESULT([$enable_shared])
4092
4093 AC_MSG_CHECKING([whether to build static libraries])
4094 # Make sure either enable_shared or enable_static is yes.
4095 test "$enable_shared" = yes || enable_static=yes
4096 AC_MSG_RESULT([$enable_static])
4097
4098 _LT_AC_TAGVAR(GCC, $1)="$G77"
4099 _LT_AC_TAGVAR(LD, $1)="$LD"
4100
4101 AC_LIBTOOL_PROG_COMPILER_PIC($1)
4102 AC_LIBTOOL_PROG_CC_C_O($1)
4103 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4104 AC_LIBTOOL_PROG_LD_SHLIBS($1)
4105 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4106 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4107
4108 AC_LIBTOOL_CONFIG($1)
4109
4110 AC_LANG_POP
4111 CC="$lt_save_CC"
4112 ])# AC_LIBTOOL_LANG_F77_CONFIG
4113
4114
4115 # AC_LIBTOOL_LANG_GCJ_CONFIG
4116 # --------------------------
4117 # Ensure that the configuration vars for the C compiler are
4118 # suitably defined. Those variables are subsequently used by
4119 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4120 AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
4121 AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
4122 [AC_LANG_SAVE
4123
4124 # Source file extension for Java test sources.
4125 ac_ext=java
4126
4127 # Object file extension for compiled Java test sources.
4128 objext=o
4129 _LT_AC_TAGVAR(objext, $1)=$objext
4130
4131 # Code to be used in simple compile tests
4132 lt_simple_compile_test_code="class foo {}"
4133
4134 # Code to be used in simple link tests
4135 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
4136
4137 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4138 _LT_AC_SYS_COMPILER
4139
4140 # save warnings/boilerplate of simple test code
4141 _LT_COMPILER_BOILERPLATE
4142 _LT_LINKER_BOILERPLATE
4143
4144 # Allow CC to be a program name with arguments.
4145 lt_save_CC="$CC"
4146 CC=${GCJ-"gcj"}
4147 compiler=$CC
4148 _LT_AC_TAGVAR(compiler, $1)=$CC
4149 _LT_CC_BASENAME([$compiler])
4150
4151 # GCJ did not exist at the time GCC didn't implicitly link libc in.
4152 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4153
4154 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4155
4156 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4157 AC_LIBTOOL_PROG_COMPILER_PIC($1)
4158 AC_LIBTOOL_PROG_CC_C_O($1)
4159 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4160 AC_LIBTOOL_PROG_LD_SHLIBS($1)
4161 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4162 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4163
4164 AC_LIBTOOL_CONFIG($1)
4165
4166 AC_LANG_RESTORE
4167 CC="$lt_save_CC"
4168 ])# AC_LIBTOOL_LANG_GCJ_CONFIG
4169
4170
4171 # AC_LIBTOOL_LANG_RC_CONFIG
4172 # -------------------------
4173 # Ensure that the configuration vars for the Windows resource compiler are
4174 # suitably defined. Those variables are subsequently used by
4175 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4176 AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
4177 AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
4178 [AC_LANG_SAVE
4179
4180 # Source file extension for RC test sources.
4181 ac_ext=rc
4182
4183 # Object file extension for compiled RC test sources.
4184 objext=o
4185 _LT_AC_TAGVAR(objext, $1)=$objext
4186
4187 # Code to be used in simple compile tests
4188 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
4189
4190 # Code to be used in simple link tests
4191 lt_simple_link_test_code="$lt_simple_compile_test_code"
4192
4193 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4194 _LT_AC_SYS_COMPILER
4195
4196 # save warnings/boilerplate of simple test code
4197 _LT_COMPILER_BOILERPLATE
4198 _LT_LINKER_BOILERPLATE
4199
4200 # Allow CC to be a program name with arguments.
4201 lt_save_CC="$CC"
4202 CC=${RC-"windres"}
4203 compiler=$CC
4204 _LT_AC_TAGVAR(compiler, $1)=$CC
4205 _LT_CC_BASENAME([$compiler])
4206 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4207
4208 AC_LIBTOOL_CONFIG($1)
4209
4210 AC_LANG_RESTORE
4211 CC="$lt_save_CC"
4212 ])# AC_LIBTOOL_LANG_RC_CONFIG
4213
4214
4215 # AC_LIBTOOL_CONFIG([TAGNAME])
4216 # ----------------------------
4217 # If TAGNAME is not passed, then create an initial libtool script
4218 # with a default configuration from the untagged config vars. Otherwise
4219 # add code to config.status for appending the configuration named by
4220 # TAGNAME from the matching tagged config vars.
4221 AC_DEFUN([AC_LIBTOOL_CONFIG],
4222 [# The else clause should only fire when bootstrapping the
4223 # libtool distribution, otherwise you forgot to ship ltmain.sh
4224 # with your package, and you will get complaints that there are
4225 # no rules to generate ltmain.sh.
4226 if test -f "$ltmain"; then
4227 # See if we are running on zsh, and set the options which allow our commands through
4228 # without removal of \ escapes.
4229 if test -n "${ZSH_VERSION+set}" ; then
4230 setopt NO_GLOB_SUBST
4231 fi
4232 # Now quote all the things that may contain metacharacters while being
4233 # careful not to overquote the AC_SUBSTed values. We take copies of the
4234 # variables and quote the copies for generation of the libtool script.
4235 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
4236 SED SHELL STRIP \
4237 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4238 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4239 deplibs_check_method reload_flag reload_cmds need_locks \
4240 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
4241 lt_cv_sys_global_symbol_to_c_name_address \
4242 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4243 old_postinstall_cmds old_postuninstall_cmds \
4244 _LT_AC_TAGVAR(compiler, $1) \
4245 _LT_AC_TAGVAR(CC, $1) \
4246 _LT_AC_TAGVAR(LD, $1) \
4247 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
4248 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
4249 _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
4250 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
4251 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
4252 _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
4253 _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
4254 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
4255 _LT_AC_TAGVAR(old_archive_cmds, $1) \
4256 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
4257 _LT_AC_TAGVAR(predep_objects, $1) \
4258 _LT_AC_TAGVAR(postdep_objects, $1) \
4259 _LT_AC_TAGVAR(predeps, $1) \
4260 _LT_AC_TAGVAR(postdeps, $1) \
4261 _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
4262 _LT_AC_TAGVAR(archive_cmds, $1) \
4263 _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4264 _LT_AC_TAGVAR(postinstall_cmds, $1) \
4265 _LT_AC_TAGVAR(postuninstall_cmds, $1) \
4266 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
4267 _LT_AC_TAGVAR(allow_undefined_flag, $1) \
4268 _LT_AC_TAGVAR(no_undefined_flag, $1) \
4269 _LT_AC_TAGVAR(export_symbols_cmds, $1) \
4270 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
4271 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
4272 _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
4273 _LT_AC_TAGVAR(hardcode_automatic, $1) \
4274 _LT_AC_TAGVAR(module_cmds, $1) \
4275 _LT_AC_TAGVAR(module_expsym_cmds, $1) \
4276 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4277 _LT_AC_TAGVAR(fix_srcfile_path, $1) \
4278 _LT_AC_TAGVAR(exclude_expsyms, $1) \
4279 _LT_AC_TAGVAR(include_expsyms, $1); do
4280
4281 case $var in
4282 _LT_AC_TAGVAR(old_archive_cmds, $1) | \
4283 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
4284 _LT_AC_TAGVAR(archive_cmds, $1) | \
4285 _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
4286 _LT_AC_TAGVAR(module_cmds, $1) | \
4287 _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
4288 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
4289 _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
4290 extract_expsyms_cmds | reload_cmds | finish_cmds | \
4291 postinstall_cmds | postuninstall_cmds | \
4292 old_postinstall_cmds | old_postuninstall_cmds | \
4293 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4294 # Double-quote double-evaled strings.
4295 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4296 ;;
4297 *)
4298 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4299 ;;
4300 esac
4301 done
4302
4303 case $lt_echo in
4304 *'\[$]0 --fallback-echo"')
4305 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
4306 ;;
4307 esac
4308
4309 ifelse([$1], [],
4310 [cfgfile="${ofile}T"
4311 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
4312 $rm -f "$cfgfile"
4313 AC_MSG_NOTICE([creating $ofile])],
4314 [cfgfile="$ofile"])
4315
4316 cat <<__EOF__ >> "$cfgfile"
4317 ifelse([$1], [],
4318 [#! $SHELL
4319
4320 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4321 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4322 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
4323 #
4324 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
4325 # Free Software Foundation, Inc.
4326 #
4327 # This file is part of GNU Libtool:
4328 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4329 #
4330 # This program is free software; you can redistribute it and/or modify
4331 # it under the terms of the GNU General Public License as published by
4332 # the Free Software Foundation; either version 2 of the License, or
4333 # (at your option) any later version.
4334 #
4335 # This program is distributed in the hope that it will be useful, but
4336 # WITHOUT ANY WARRANTY; without even the implied warranty of
4337 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4338 # General Public License for more details.
4339 #
4340 # You should have received a copy of the GNU General Public License
4341 # along with this program; if not, write to the Free Software
4342 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
4343 #
4344 # As a special exception to the GNU General Public License, if you
4345 # distribute this file as part of a program that contains a
4346 # configuration script generated by Autoconf, you may include it under
4347 # the same distribution terms that you use for the rest of that program.
4348
4349 # A sed program that does not truncate output.
4350 SED=$lt_SED
4351
4352 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
4353 Xsed="$SED -e 1s/^X//"
4354
4355 # The HP-UX ksh and POSIX shell print the target directory to stdout
4356 # if CDPATH is set.
4357 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4358
4359 # The names of the tagged configurations supported by this script.
4360 available_tags=
4361
4362 # ### BEGIN LIBTOOL CONFIG],
4363 [# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
4364
4365 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4366
4367 # Shell to use when invoking shell scripts.
4368 SHELL=$lt_SHELL
4369
4370 # Whether or not to build shared libraries.
4371 build_libtool_libs=$enable_shared
4372
4373 # Whether or not to build static libraries.
4374 build_old_libs=$enable_static
4375
4376 # Whether or not to add -lc for building shared libraries.
4377 build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
4378
4379 # Whether or not to disallow shared libs when runtime libs are static
4380 allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
4381
4382 # Whether or not to optimize for fast installation.
4383 fast_install=$enable_fast_install
4384
4385 # The host system.
4386 host_alias=$host_alias
4387 host=$host
4388 host_os=$host_os
4389
4390 # The build system.
4391 build_alias=$build_alias
4392 build=$build
4393 build_os=$build_os
4394
4395 # An echo program that does not interpret backslashes.
4396 echo=$lt_echo
4397
4398 # The archiver.
4399 AR=$lt_AR
4400 AR_FLAGS=$lt_AR_FLAGS
4401
4402 # A C compiler.
4403 LTCC=$lt_LTCC
4404
4405 # LTCC compiler flags.
4406 LTCFLAGS=$lt_LTCFLAGS
4407
4408 # A language-specific compiler.
4409 CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4410
4411 # Is the compiler the GNU C compiler?
4412 with_gcc=$_LT_AC_TAGVAR(GCC, $1)
4413
4414 # An ERE matcher.
4415 EGREP=$lt_EGREP
4416
4417 # The linker used to build libraries.
4418 LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
4419
4420 # Whether we need hard or soft links.
4421 LN_S=$lt_LN_S
4422
4423 # A BSD-compatible nm program.
4424 NM=$lt_NM
4425
4426 # A symbol stripping program
4427 STRIP=$lt_STRIP
4428
4429 # Used to examine libraries when file_magic_cmd begins "file"
4430 MAGIC_CMD=$MAGIC_CMD
4431
4432 # Used on cygwin: DLL creation program.
4433 DLLTOOL="$DLLTOOL"
4434
4435 # Used on cygwin: object dumper.
4436 OBJDUMP="$OBJDUMP"
4437
4438 # Used on cygwin: assembler.
4439 AS="$AS"
4440
4441 # The name of the directory that contains temporary libtool files.
4442 objdir=$objdir
4443
4444 # How to create reloadable object files.
4445 reload_flag=$lt_reload_flag
4446 reload_cmds=$lt_reload_cmds
4447
4448 # How to pass a linker flag through the compiler.
4449 wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
4450
4451 # Object file suffix (normally "o").
4452 objext="$ac_objext"
4453
4454 # Old archive suffix (normally "a").
4455 libext="$libext"
4456
4457 # Shared library suffix (normally ".so").
4458 shrext_cmds='$shrext_cmds'
4459
4460 # Executable file suffix (normally "").
4461 exeext="$exeext"
4462
4463 # Additional compiler flags for building library objects.
4464 pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
4465 pic_mode=$pic_mode
4466
4467 # What is the maximum length of a command?
4468 max_cmd_len=$lt_cv_sys_max_cmd_len
4469
4470 # Does compiler simultaneously support -c and -o options?
4471 compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
4472
4473 # Must we lock files when doing compilation?
4474 need_locks=$lt_need_locks
4475
4476 # Do we need the lib prefix for modules?
4477 need_lib_prefix=$need_lib_prefix
4478
4479 # Do we need a version for libraries?
4480 need_version=$need_version
4481
4482 # Whether dlopen is supported.
4483 dlopen_support=$enable_dlopen
4484
4485 # Whether dlopen of programs is supported.
4486 dlopen_self=$enable_dlopen_self
4487
4488 # Whether dlopen of statically linked programs is supported.
4489 dlopen_self_static=$enable_dlopen_self_static
4490
4491 # Compiler flag to prevent dynamic linking.
4492 link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
4493
4494 # Compiler flag to turn off builtin functions.
4495 no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
4496
4497 # Compiler flag to allow reflexive dlopens.
4498 export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
4499
4500 # Compiler flag to generate shared objects directly from archives.
4501 whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
4502
4503 # Compiler flag to generate thread-safe objects.
4504 thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
4505
4506 # Library versioning type.
4507 version_type=$version_type
4508
4509 # Format of library name prefix.
4510 libname_spec=$lt_libname_spec
4511
4512 # List of archive names. First name is the real one, the rest are links.
4513 # The last name is the one that the linker finds with -lNAME.
4514 library_names_spec=$lt_library_names_spec
4515
4516 # The coded name of the library, if different from the real name.
4517 soname_spec=$lt_soname_spec
4518
4519 # Commands used to build and install an old-style archive.
4520 RANLIB=$lt_RANLIB
4521 old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
4522 old_postinstall_cmds=$lt_old_postinstall_cmds
4523 old_postuninstall_cmds=$lt_old_postuninstall_cmds
4524
4525 # Create an old-style archive from a shared archive.
4526 old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
4527
4528 # Create a temporary old-style archive to link instead of a shared archive.
4529 old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
4530
4531 # Commands used to build and install a shared archive.
4532 archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
4533 archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
4534 postinstall_cmds=$lt_postinstall_cmds
4535 postuninstall_cmds=$lt_postuninstall_cmds
4536
4537 # Commands used to build a loadable module (assumed same as above if empty)
4538 module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
4539 module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
4540
4541 # Commands to strip libraries.
4542 old_striplib=$lt_old_striplib
4543 striplib=$lt_striplib
4544
4545 # Dependencies to place before the objects being linked to create a
4546 # shared library.
4547 predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
4548
4549 # Dependencies to place after the objects being linked to create a
4550 # shared library.
4551 postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
4552
4553 # Dependencies to place before the objects being linked to create a
4554 # shared library.
4555 predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
4556
4557 # Dependencies to place after the objects being linked to create a
4558 # shared library.
4559 postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
4560
4561 # The library search path used internally by the compiler when linking
4562 # a shared library.
4563 compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
4564
4565 # Method to check whether dependent libraries are shared objects.
4566 deplibs_check_method=$lt_deplibs_check_method
4567
4568 # Command to use when deplibs_check_method == file_magic.
4569 file_magic_cmd=$lt_file_magic_cmd
4570
4571 # Flag that allows shared libraries with undefined symbols to be built.
4572 allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
4573
4574 # Flag that forces no undefined symbols.
4575 no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
4576
4577 # Commands used to finish a libtool library installation in a directory.
4578 finish_cmds=$lt_finish_cmds
4579
4580 # Same as above, but a single script fragment to be evaled but not shown.
4581 finish_eval=$lt_finish_eval
4582
4583 # Take the output of nm and produce a listing of raw symbols and C names.
4584 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
4585
4586 # Transform the output of nm in a proper C declaration
4587 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
4588
4589 # Transform the output of nm in a C name address pair
4590 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
4591
4592 # This is the shared library runtime path variable.
4593 runpath_var=$runpath_var
4594
4595 # This is the shared library path variable.
4596 shlibpath_var=$shlibpath_var
4597
4598 # Is shlibpath searched before the hard-coded library search path?
4599 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
4600
4601 # How to hardcode a shared library path into an executable.
4602 hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
4603
4604 # Whether we should hardcode library paths into libraries.
4605 hardcode_into_libs=$hardcode_into_libs
4606
4607 # Flag to hardcode \$libdir into a binary during linking.
4608 # This must work even if \$libdir does not exist.
4609 hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
4610
4611 # If ld is used when linking, flag to hardcode \$libdir into
4612 # a binary during linking. This must work even if \$libdir does
4613 # not exist.
4614 hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
4615
4616 # Whether we need a single -rpath flag with a separated argument.
4617 hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
4618
4619 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
4620 # resulting binary.
4621 hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
4622
4623 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
4624 # resulting binary.
4625 hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
4626
4627 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
4628 # the resulting binary.
4629 hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
4630
4631 # Set to yes if building a shared library automatically hardcodes DIR into the library
4632 # and all subsequent libraries and executables linked against it.
4633 hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
4634
4635 # Variables whose values should be saved in libtool wrapper scripts and
4636 # restored at relink time.
4637 variables_saved_for_relink="$variables_saved_for_relink"
4638
4639 # Whether libtool must link a program against all its dependency libraries.
4640 link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
4641
4642 # Compile-time system search path for libraries
4643 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
4644
4645 # Run-time system search path for libraries
4646 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4647
4648 # Fix the shell variable \$srcfile for the compiler.
4649 fix_srcfile_path=$lt_fix_srcfile_path
4650
4651 # Set to yes if exported symbols are required.
4652 always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
4653
4654 # The commands to list exported symbols.
4655 export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
4656
4657 # The commands to extract the exported symbol list from a shared archive.
4658 extract_expsyms_cmds=$lt_extract_expsyms_cmds
4659
4660 # Symbols that should not be listed in the preloaded symbols.
4661 exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
4662
4663 # Symbols that must always be exported.
4664 include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
4665
4666 ifelse([$1],[],
4667 [# ### END LIBTOOL CONFIG],
4668 [# ### END LIBTOOL TAG CONFIG: $tagname])
4669
4670 __EOF__
4671
4672 ifelse([$1],[], [
4673 case $host_os in
4674 aix3*)
4675 cat <<\EOF >> "$cfgfile"
4676
4677 # AIX sometimes has problems with the GCC collect2 program. For some
4678 # reason, if we set the COLLECT_NAMES environment variable, the problems
4679 # vanish in a puff of smoke.
4680 if test "X${COLLECT_NAMES+set}" != Xset; then
4681 COLLECT_NAMES=
4682 export COLLECT_NAMES
4683 fi
4684 EOF
4685 ;;
4686 esac
4687
4688 # We use sed instead of cat because bash on DJGPP gets confused if
4689 # if finds mixed CR/LF and LF-only lines. Since sed operates in
4690 # text mode, it properly converts lines to CR/LF. This bash problem
4691 # is reportedly fixed, but why not run on old versions too?
4692 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
4693
4694 mv -f "$cfgfile" "$ofile" || \
4695 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
4696 chmod +x "$ofile"
4697 ])
4698 else
4699 # If there is no Makefile yet, we rely on a make rule to execute
4700 # `config.status --recheck' to rerun these tests and create the
4701 # libtool script then.
4702 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
4703 if test -f "$ltmain_in"; then
4704 test -f Makefile && make "$ltmain"
4705 fi
4706 fi
4707 ])# AC_LIBTOOL_CONFIG
4708
4709
4710 # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
4711 # -------------------------------------------
4712 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
4713 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
4714
4715 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4716
4717 if test "$GCC" = yes; then
4718 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4719
4720 AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4721 lt_cv_prog_compiler_rtti_exceptions,
4722 [-fno-rtti -fno-exceptions], [],
4723 [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
4724 fi
4725 ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
4726
4727
4728 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
4729 # ---------------------------------
4730 AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
4731 [AC_REQUIRE([AC_CANONICAL_HOST])
4732 AC_REQUIRE([LT_AC_PROG_SED])
4733 AC_REQUIRE([AC_PROG_NM])
4734 AC_REQUIRE([AC_OBJEXT])
4735 # Check for command to grab the raw symbol name followed by C symbol from nm.
4736 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
4737 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
4738 [
4739 # These are sane defaults that work on at least a few old systems.
4740 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4741
4742 # Character class describing NM global symbol codes.
4743 symcode='[[BCDEGRST]]'
4744
4745 # Regexp to match symbols that can be accessed directly from C.
4746 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
4747
4748 # Transform an extracted symbol line into a proper C declaration
4749 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4750
4751 # Transform an extracted symbol line into symbol name and symbol address
4752 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'"
4753
4754 # Define system-specific variables.
4755 case $host_os in
4756 aix*)
4757 symcode='[[BCDT]]'
4758 ;;
4759 cygwin* | mingw* | pw32*)
4760 symcode='[[ABCDGISTW]]'
4761 ;;
4762 hpux*) # Its linker distinguishes data from code symbols
4763 if test "$host_cpu" = ia64; then
4764 symcode='[[ABCDEGRST]]'
4765 fi
4766 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4767 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'"
4768 ;;
4769 linux* | k*bsd*-gnu)
4770 if test "$host_cpu" = ia64; then
4771 symcode='[[ABCDGIRSTW]]'
4772 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4773 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'"
4774 fi
4775 ;;
4776 irix* | nonstopux*)
4777 symcode='[[BCDEGRST]]'
4778 ;;
4779 osf*)
4780 symcode='[[BCDEGQRST]]'
4781 ;;
4782 solaris*)
4783 symcode='[[BDRT]]'
4784 ;;
4785 sco3.2v5*)
4786 symcode='[[DT]]'
4787 ;;
4788 sysv4.2uw2*)
4789 symcode='[[DT]]'
4790 ;;
4791 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4792 symcode='[[ABDT]]'
4793 ;;
4794 sysv4)
4795 symcode='[[DFNSTU]]'
4796 ;;
4797 esac
4798
4799 # Handle CRLF in mingw tool chain
4800 opt_cr=
4801 case $build_os in
4802 mingw*)
4803 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4804 ;;
4805 esac
4806
4807 # If we're using GNU nm, then use its standard symbol codes.
4808 case `$NM -V 2>&1` in
4809 *GNU* | *'with BFD'*)
4810 symcode='[[ABCDGIRSTW]]' ;;
4811 esac
4812
4813 # Try without a prefix undercore, then with it.
4814 for ac_symprfx in "" "_"; do
4815
4816 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4817 symxfrm="\\1 $ac_symprfx\\2 \\2"
4818
4819 # Write the raw and C identifiers.
4820 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4821
4822 # Check to see that the pipe works correctly.
4823 pipe_works=no
4824
4825 rm -f conftest*
4826 cat > conftest.$ac_ext <<EOF
4827 #ifdef __cplusplus
4828 extern "C" {
4829 #endif
4830 char nm_test_var;
4831 void nm_test_func(){}
4832 #ifdef __cplusplus
4833 }
4834 #endif
4835 int main(){nm_test_var='a';nm_test_func();return(0);}
4836 EOF
4837
4838 if AC_TRY_EVAL(ac_compile); then
4839 # Now try to grab the symbols.
4840 nlist=conftest.nm
4841 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
4842 # Try sorting and uniquifying the output.
4843 if sort "$nlist" | uniq > "$nlist"T; then
4844 mv -f "$nlist"T "$nlist"
4845 else
4846 rm -f "$nlist"T
4847 fi
4848
4849 # Make sure that we snagged all the symbols we need.
4850 if grep ' nm_test_var$' "$nlist" >/dev/null; then
4851 if grep ' nm_test_func$' "$nlist" >/dev/null; then
4852 cat <<EOF > conftest.$ac_ext
4853 #ifdef __cplusplus
4854 extern "C" {
4855 #endif
4856
4857 EOF
4858 # Now generate the symbol file.
4859 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
4860
4861 cat <<EOF >> conftest.$ac_ext
4862 #if defined (__STDC__) && __STDC__
4863 # define lt_ptr_t void *
4864 #else
4865 # define lt_ptr_t char *
4866 # define const
4867 #endif
4868
4869 /* The mapping between symbol names and symbols. */
4870 const struct {
4871 const char *name;
4872 lt_ptr_t address;
4873 }
4874 lt_preloaded_symbols[[]] =
4875 {
4876 EOF
4877 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
4878 cat <<\EOF >> conftest.$ac_ext
4879 {0, (lt_ptr_t) 0}
4880 };
4881
4882 #ifdef __cplusplus
4883 }
4884 #endif
4885 EOF
4886 # Now try linking the two files.
4887 mv conftest.$ac_objext conftstm.$ac_objext
4888 lt_save_LIBS="$LIBS"
4889 lt_save_CFLAGS="$CFLAGS"
4890 LIBS="conftstm.$ac_objext"
4891 CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
4892 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
4893 pipe_works=yes
4894 fi
4895 LIBS="$lt_save_LIBS"
4896 CFLAGS="$lt_save_CFLAGS"
4897 else
4898 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
4899 fi
4900 else
4901 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
4902 fi
4903 else
4904 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
4905 fi
4906 else
4907 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4908 cat conftest.$ac_ext >&5
4909 fi
4910 rm -f conftest* conftst*
4911
4912 # Do not use the global_symbol_pipe unless it works.
4913 if test "$pipe_works" = yes; then
4914 break
4915 else
4916 lt_cv_sys_global_symbol_pipe=
4917 fi
4918 done
4919 ])
4920 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4921 lt_cv_sys_global_symbol_to_cdecl=
4922 fi
4923 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4924 AC_MSG_RESULT(failed)
4925 else
4926 AC_MSG_RESULT(ok)
4927 fi
4928 ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
4929
4930
4931 # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
4932 # ---------------------------------------
4933 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
4934 [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
4935 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4936 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
4937
4938 AC_MSG_CHECKING([for $compiler option to produce PIC])
4939 ifelse([$1],[CXX],[
4940 # C++ specific cases for pic, static, wl, etc.
4941 if test "$GXX" = yes; then
4942 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4943 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4944
4945 case $host_os in
4946 aix*)
4947 # All AIX code is PIC.
4948 if test "$host_cpu" = ia64; then
4949 # AIX 5 now supports IA64 processor
4950 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4951 fi
4952 ;;
4953 amigaos*)
4954 # FIXME: we need at least 68020 code to build shared libraries, but
4955 # adding the `-m68020' flag to GCC prevents building anything better,
4956 # like `-m68040'.
4957 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4958 ;;
4959 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4960 # PIC is the default for these OSes.
4961 ;;
4962 mingw* | cygwin* | os2* | pw32*)
4963 # This hack is so that the source file can tell whether it is being
4964 # built for inclusion in a dll (and should export symbols for example).
4965 # Although the cygwin gcc ignores -fPIC, still need this for old-style
4966 # (--disable-auto-import) libraries
4967 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
4968 ;;
4969 darwin* | rhapsody*)
4970 # PIC is the default on this platform
4971 # Common symbols not allowed in MH_DYLIB files
4972 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4973 ;;
4974 *djgpp*)
4975 # DJGPP does not support shared libraries at all
4976 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4977 ;;
4978 interix[[3-9]]*)
4979 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4980 # Instead, we relocate shared libraries at runtime.
4981 ;;
4982 sysv4*MP*)
4983 if test -d /usr/nec; then
4984 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4985 fi
4986 ;;
4987 hpux*)
4988 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4989 # not for PA HP-UX.
4990 case $host_cpu in
4991 hppa*64*|ia64*)
4992 ;;
4993 *)
4994 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4995 ;;
4996 esac
4997 ;;
4998 *)
4999 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5000 ;;
5001 esac
5002 else
5003 case $host_os in
5004 aix4* | aix5*)
5005 # All AIX code is PIC.
5006 if test "$host_cpu" = ia64; then
5007 # AIX 5 now supports IA64 processor
5008 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5009 else
5010 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5011 fi
5012 ;;
5013 chorus*)
5014 case $cc_basename in
5015 cxch68*)
5016 # Green Hills C++ Compiler
5017 # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--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"
5018 ;;
5019 esac
5020 ;;
5021 darwin*)
5022 # PIC is the default on this platform
5023 # Common symbols not allowed in MH_DYLIB files
5024 case $cc_basename in
5025 xlc*)
5026 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5027 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5028 ;;
5029 esac
5030 ;;
5031 dgux*)
5032 case $cc_basename in
5033 ec++*)
5034 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5035 ;;
5036 ghcx*)
5037 # Green Hills C++ Compiler
5038 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5039 ;;
5040 *)
5041 ;;
5042 esac
5043 ;;
5044 freebsd* | dragonfly*)
5045 # FreeBSD uses GNU C++
5046 ;;
5047 hpux9* | hpux10* | hpux11*)
5048 case $cc_basename in
5049 CC*)
5050 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5051 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5052 if test "$host_cpu" != ia64; then
5053 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5054 fi
5055 ;;
5056 aCC*)
5057 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5058 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5059 case $host_cpu in
5060 hppa*64*|ia64*)
5061 # +Z the default
5062 ;;
5063 *)
5064 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5065 ;;
5066 esac
5067 ;;
5068 *)
5069 ;;
5070 esac
5071 ;;
5072 interix*)
5073 # This is c89, which is MS Visual C++ (no shared libs)
5074 # Anyone wants to do a port?
5075 ;;
5076 irix5* | irix6* | nonstopux*)
5077 case $cc_basename in
5078 CC*)
5079 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5080 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5081 # CC pic flag -KPIC is the default.
5082 ;;
5083 *)
5084 ;;
5085 esac
5086 ;;
5087 linux* | k*bsd*-gnu)
5088 case $cc_basename in
5089 KCC*)
5090 # KAI C++ Compiler
5091 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5092 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5093 ;;
5094 icpc* | ecpc*)
5095 # Intel C++
5096 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5097 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5098 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5099 ;;
5100 pgCC*)
5101 # Portland Group C++ compiler.
5102 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5103 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5104 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5105 ;;
5106 cxx*)
5107 # Compaq C++
5108 # Make sure the PIC flag is empty. It appears that all Alpha
5109 # Linux and Compaq Tru64 Unix objects are PIC.
5110 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5111 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5112 ;;
5113 *)
5114 case `$CC -V 2>&1 | sed 5q` in
5115 *Sun\ C*)
5116 # Sun C++ 5.9
5117 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5118 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5119 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5120 ;;
5121 esac
5122 ;;
5123 esac
5124 ;;
5125 lynxos*)
5126 ;;
5127 m88k*)
5128 ;;
5129 mvs*)
5130 case $cc_basename in
5131 cxx*)
5132 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
5133 ;;
5134 *)
5135 ;;
5136 esac
5137 ;;
5138 netbsd*)
5139 ;;
5140 osf3* | osf4* | osf5*)
5141 case $cc_basename in
5142 KCC*)
5143 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5144 ;;
5145 RCC*)
5146 # Rational C++ 2.4.1
5147 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5148 ;;
5149 cxx*)
5150 # Digital/Compaq C++
5151 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5152 # Make sure the PIC flag is empty. It appears that all Alpha
5153 # Linux and Compaq Tru64 Unix objects are PIC.
5154 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5155 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5156 ;;
5157 *)
5158 ;;
5159 esac
5160 ;;
5161 psos*)
5162 ;;
5163 solaris*)
5164 case $cc_basename in
5165 CC*)
5166 # Sun C++ 4.2, 5.x and Centerline C++
5167 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5168 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5169 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5170 ;;
5171 gcx*)
5172 # Green Hills C++ Compiler
5173 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5174 ;;
5175 *)
5176 ;;
5177 esac
5178 ;;
5179 sunos4*)
5180 case $cc_basename in
5181 CC*)
5182 # Sun C++ 4.x
5183 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5184 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5185 ;;
5186 lcc*)
5187 # Lucid
5188 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5189 ;;
5190 *)
5191 ;;
5192 esac
5193 ;;
5194 tandem*)
5195 case $cc_basename in
5196 NCC*)
5197 # NonStop-UX NCC 3.20
5198 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5199 ;;
5200 *)
5201 ;;
5202 esac
5203 ;;
5204 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5205 case $cc_basename in
5206 CC*)
5207 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5208 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5209 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5210 ;;
5211 esac
5212 ;;
5213 vxworks*)
5214 ;;
5215 *)
5216 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5217 ;;
5218 esac
5219 fi
5220 ],
5221 [
5222 if test "$GCC" = yes; then
5223 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5224 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5225
5226 case $host_os in
5227 aix*)
5228 # All AIX code is PIC.
5229 if test "$host_cpu" = ia64; then
5230 # AIX 5 now supports IA64 processor
5231 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5232 fi
5233 ;;
5234
5235 amigaos*)
5236 # FIXME: we need at least 68020 code to build shared libraries, but
5237 # adding the `-m68020' flag to GCC prevents building anything better,
5238 # like `-m68040'.
5239 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5240 ;;
5241
5242 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5243 # PIC is the default for these OSes.
5244 ;;
5245
5246 mingw* | cygwin* | pw32* | os2*)
5247 # This hack is so that the source file can tell whether it is being
5248 # built for inclusion in a dll (and should export symbols for example).
5249 # Although the cygwin gcc ignores -fPIC, still need this for old-style
5250 # (--disable-auto-import) libraries
5251 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5252 ;;
5253
5254 darwin* | rhapsody*)
5255 # PIC is the default on this platform
5256 # Common symbols not allowed in MH_DYLIB files
5257 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5258 ;;
5259
5260 interix[[3-9]]*)
5261 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5262 # Instead, we relocate shared libraries at runtime.
5263 ;;
5264
5265 msdosdjgpp*)
5266 # Just because we use GCC doesn't mean we suddenly get shared libraries
5267 # on systems that don't support them.
5268 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5269 enable_shared=no
5270 ;;
5271
5272 sysv4*MP*)
5273 if test -d /usr/nec; then
5274 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5275 fi
5276 ;;
5277
5278 hpux*)
5279 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5280 # not for PA HP-UX.
5281 case $host_cpu in
5282 hppa*64*|ia64*)
5283 # +Z the default
5284 ;;
5285 *)
5286 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5287 ;;
5288 esac
5289 ;;
5290
5291 *)
5292 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5293 ;;
5294 esac
5295 else
5296 # PORTME Check for flag to pass linker flags through the system compiler.
5297 case $host_os in
5298 aix*)
5299 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5300 if test "$host_cpu" = ia64; then
5301 # AIX 5 now supports IA64 processor
5302 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5303 else
5304 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5305 fi
5306 ;;
5307 darwin*)
5308 # PIC is the default on this platform
5309 # Common symbols not allowed in MH_DYLIB files
5310 case $cc_basename in
5311 xlc*)
5312 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5313 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5314 ;;
5315 esac
5316 ;;
5317
5318 mingw* | cygwin* | pw32* | os2*)
5319 # This hack is so that the source file can tell whether it is being
5320 # built for inclusion in a dll (and should export symbols for example).
5321 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5322 ;;
5323
5324 hpux9* | hpux10* | hpux11*)
5325 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5326 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5327 # not for PA HP-UX.
5328 case $host_cpu in
5329 hppa*64*|ia64*)
5330 # +Z the default
5331 ;;
5332 *)
5333 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5334 ;;
5335 esac
5336 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5337 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5338 ;;
5339
5340 irix5* | irix6* | nonstopux*)
5341 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5342 # PIC (with -KPIC) is the default.
5343 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5344 ;;
5345
5346 newsos6)
5347 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5348 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5349 ;;
5350
5351 linux* | k*bsd*-gnu)
5352 case $cc_basename in
5353 icc* | ecc*)
5354 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5355 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5356 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5357 ;;
5358 pgcc* | pgf77* | pgf90* | pgf95*)
5359 # Portland Group compilers (*not* the Pentium gcc compiler,
5360 # which looks to be a dead project)
5361 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5362 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5363 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5364 ;;
5365 ccc*)
5366 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5367 # All Alpha code is PIC.
5368 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5369 ;;
5370 *)
5371 case `$CC -V 2>&1 | sed 5q` in
5372 *Sun\ C*)
5373 # Sun C 5.9
5374 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5375 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5376 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5377 ;;
5378 *Sun\ F*)
5379 # Sun Fortran 8.3 passes all unrecognized flags to the linker
5380 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5381 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5382 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
5383 ;;
5384 esac
5385 ;;
5386 esac
5387 ;;
5388
5389 osf3* | osf4* | osf5*)
5390 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5391 # All OSF/1 code is PIC.
5392 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5393 ;;
5394
5395 rdos*)
5396 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5397 ;;
5398
5399 solaris*)
5400 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5401 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5402 case $cc_basename in
5403 f77* | f90* | f95*)
5404 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
5405 *)
5406 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
5407 esac
5408 ;;
5409
5410 sunos4*)
5411 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5412 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5413 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5414 ;;
5415
5416 sysv4 | sysv4.2uw2* | sysv4.3*)
5417 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5418 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5419 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5420 ;;
5421
5422 sysv4*MP*)
5423 if test -d /usr/nec ;then
5424 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5425 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5426 fi
5427 ;;
5428
5429 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5430 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5431 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5432 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5433 ;;
5434
5435 unicos*)
5436 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5437 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5438 ;;
5439
5440 uts4*)
5441 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5442 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5443 ;;
5444
5445 *)
5446 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5447 ;;
5448 esac
5449 fi
5450 ])
5451 AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
5452
5453 #
5454 # Check to make sure the PIC flag actually works.
5455 #
5456 if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
5457 AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
5458 _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
5459 [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
5460 [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
5461 "" | " "*) ;;
5462 *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
5463 esac],
5464 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5465 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5466 fi
5467 case $host_os in
5468 # For platforms which do not support PIC, -DPIC is meaningless:
5469 *djgpp*)
5470 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5471 ;;
5472 *)
5473 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
5474 ;;
5475 esac
5476
5477 #
5478 # Check to make sure the static flag actually works.
5479 #
5480 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
5481 AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5482 _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
5483 $lt_tmp_static_flag,
5484 [],
5485 [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
5486 ])
5487
5488
5489 # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
5490 # ------------------------------------
5491 # See if the linker supports building shared libraries.
5492 AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5493 [AC_REQUIRE([LT_AC_PROG_SED])dnl
5494 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5495 ifelse([$1],[CXX],[
5496 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5497 case $host_os in
5498 aix4* | aix5*)
5499 # If we're using GNU nm, then we don't want the "-C" option.
5500 # -C means demangle to AIX nm, but means don't demangle with GNU nm
5501 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5502 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
5503 else
5504 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
5505 fi
5506 ;;
5507 pw32*)
5508 _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5509 ;;
5510 cygwin* | mingw*)
5511 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5512 ;;
5513 *)
5514 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5515 ;;
5516 esac
5517 ],[
5518 runpath_var=
5519 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
5520 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5521 _LT_AC_TAGVAR(archive_cmds, $1)=
5522 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5523 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
5524 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5525 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5526 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5527 _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
5528 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5529 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5530 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5531 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5532 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5533 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5534 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5535 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
5536 _LT_AC_TAGVAR(module_cmds, $1)=
5537 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
5538 _LT_AC_TAGVAR(always_export_symbols, $1)=no
5539 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5540 # include_expsyms should be a list of space-separated symbols to be *always*
5541 # included in the symbol list
5542 _LT_AC_TAGVAR(include_expsyms, $1)=
5543 # exclude_expsyms can be an extended regexp of symbols to exclude
5544 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5545 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5546 # as well as any symbol that contains `d'.
5547 _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
5548 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5549 # platforms (ab)use it in PIC code, but their linkers get confused if
5550 # the symbol is explicitly referenced. Since portable code cannot
5551 # rely on this symbol name, it's probably fine to never include it in
5552 # preloaded symbol tables.
5553 extract_expsyms_cmds=
5554 # Just being paranoid about ensuring that cc_basename is set.
5555 _LT_CC_BASENAME([$compiler])
5556 case $host_os in
5557 cygwin* | mingw* | pw32*)
5558 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5559 # When not using gcc, we currently assume that we are using
5560 # Microsoft Visual C++.
5561 if test "$GCC" != yes; then
5562 with_gnu_ld=no
5563 fi
5564 ;;
5565 interix*)
5566 # we just hope/assume this is gcc and not c89 (= MSVC++)
5567 with_gnu_ld=yes
5568 ;;
5569 openbsd*)
5570 with_gnu_ld=no
5571 ;;
5572 esac
5573
5574 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
5575 if test "$with_gnu_ld" = yes; then
5576 # If archive_cmds runs LD, not CC, wlarc should be empty
5577 wlarc='${wl}'
5578
5579 # Set some defaults for GNU ld with shared library support. These
5580 # are reset later if shared libraries are not supported. Putting them
5581 # here allows them to be overridden if necessary.
5582 runpath_var=LD_RUN_PATH
5583 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5584 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5585 # ancient GNU ld didn't support --whole-archive et. al.
5586 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
5587 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5588 else
5589 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5590 fi
5591 supports_anon_versioning=no
5592 case `$LD -v 2>/dev/null` in
5593 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5594 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5595 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5596 *\ 2.11.*) ;; # other 2.11 versions
5597 *) supports_anon_versioning=yes ;;
5598 esac
5599
5600 # See if GNU ld supports shared libraries.
5601 case $host_os in
5602 aix3* | aix4* | aix5*)
5603 # On AIX/PPC, the GNU linker is very broken
5604 if test "$host_cpu" != ia64; then
5605 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5606 cat <<EOF 1>&2
5607
5608 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5609 *** to be unable to reliably create shared libraries on AIX.
5610 *** Therefore, libtool is disabling shared libraries support. If you
5611 *** really care for shared libraries, you may want to modify your PATH
5612 *** so that a non-GNU linker is found, and then restart.
5613
5614 EOF
5615 fi
5616 ;;
5617
5618 amigaos*)
5619 _LT_AC_TAGVAR(archive_cmds, $1)='$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)'
5620 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5621 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5622
5623 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5624 # that the semantics of dynamic libraries on AmigaOS, at least up
5625 # to version 4, is to share data among multiple programs linked
5626 # with the same dynamic library. Since this doesn't match the
5627 # behavior of shared libraries on other platforms, we can't use
5628 # them.
5629 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5630 ;;
5631
5632 beos*)
5633 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5634 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5635 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5636 # support --undefined. This deserves some investigation. FIXME
5637 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5638 else
5639 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5640 fi
5641 ;;
5642
5643 cygwin* | mingw* | pw32*)
5644 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5645 # as there is no search path for DLLs.
5646 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5647 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5648 _LT_AC_TAGVAR(always_export_symbols, $1)=no
5649 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5650 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5651
5652 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5653 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5654 # If the export-symbols file already is a .def file (1st line
5655 # is EXPORTS), use it as is; otherwise, prepend...
5656 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5657 cp $export_symbols $output_objdir/$soname.def;
5658 else
5659 echo EXPORTS > $output_objdir/$soname.def;
5660 cat $export_symbols >> $output_objdir/$soname.def;
5661 fi~
5662 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5663 else
5664 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5665 fi
5666 ;;
5667
5668 interix[[3-9]]*)
5669 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5670 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5671 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5672 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5673 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5674 # Instead, shared libraries are loaded at an image base (0x10000000 by
5675 # default) and relocated if they conflict, which is a slow very memory
5676 # consuming and fragmenting process. To avoid this, we pick a random,
5677 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5678 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
5679 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5680 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5681 ;;
5682
5683 gnu* | linux* | k*bsd*-gnu)
5684 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5685 tmp_addflag=
5686 case $cc_basename,$host_cpu in
5687 pgcc*) # Portland Group C compiler
5688 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
5689 tmp_addflag=' $pic_flag'
5690 ;;
5691 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
5692 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
5693 tmp_addflag=' $pic_flag -Mnomain' ;;
5694 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
5695 tmp_addflag=' -i_dynamic' ;;
5696 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
5697 tmp_addflag=' -i_dynamic -nofor_main' ;;
5698 ifc* | ifort*) # Intel Fortran compiler
5699 tmp_addflag=' -nofor_main' ;;
5700 esac
5701 case `$CC -V 2>&1 | sed 5q` in
5702 *Sun\ C*) # Sun C 5.9
5703 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
5704 tmp_sharedflag='-G' ;;
5705 *Sun\ F*) # Sun Fortran 8.3
5706 tmp_sharedflag='-G' ;;
5707 *)
5708 tmp_sharedflag='-shared' ;;
5709 esac
5710 _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5711
5712 if test $supports_anon_versioning = yes; then
5713 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5714 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5715 $echo "local: *; };" >> $output_objdir/$libname.ver~
5716 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5717 fi
5718 else
5719 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5720 fi
5721 ;;
5722
5723 netbsd*)
5724 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5725 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5726 wlarc=
5727 else
5728 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5729 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5730 fi
5731 ;;
5732
5733 solaris*)
5734 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
5735 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5736 cat <<EOF 1>&2
5737
5738 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5739 *** create shared libraries on Solaris systems. Therefore, libtool
5740 *** is disabling shared libraries support. We urge you to upgrade GNU
5741 *** binutils to release 2.9.1 or newer. Another option is to modify
5742 *** your PATH or compiler configuration so that the native linker is
5743 *** used, and then restart.
5744
5745 EOF
5746 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5747 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5748 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5749 else
5750 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5751 fi
5752 ;;
5753
5754 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5755 case `$LD -v 2>&1` in
5756 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5757 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5758 cat <<_LT_EOF 1>&2
5759
5760 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5761 *** reliably create shared libraries on SCO systems. Therefore, libtool
5762 *** is disabling shared libraries support. We urge you to upgrade GNU
5763 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
5764 *** your PATH or compiler configuration so that the native linker is
5765 *** used, and then restart.
5766
5767 _LT_EOF
5768 ;;
5769 *)
5770 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5771 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
5772 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
5773 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
5774 else
5775 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5776 fi
5777 ;;
5778 esac
5779 ;;
5780
5781 sunos4*)
5782 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5783 wlarc=
5784 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5785 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5786 ;;
5787
5788 *)
5789 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5790 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5791 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5792 else
5793 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5794 fi
5795 ;;
5796 esac
5797
5798 if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
5799 runpath_var=
5800 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5801 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5802 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5803 fi
5804 else
5805 # PORTME fill in a description of your system's linker (not GNU ld)
5806 case $host_os in
5807 aix3*)
5808 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5809 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5810 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
5811 # Note: this linker hardcodes the directories in LIBPATH if there
5812 # are no directories specified by -L.
5813 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5814 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5815 # Neither direct hardcoding nor static linking is supported with a
5816 # broken collect2.
5817 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5818 fi
5819 ;;
5820
5821 aix4* | aix5*)
5822 if test "$host_cpu" = ia64; then
5823 # On IA64, the linker does run time linking by default, so we don't
5824 # have to do anything special.
5825 aix_use_runtimelinking=no
5826 exp_sym_flag='-Bexport'
5827 no_entry_flag=""
5828 else
5829 # If we're using GNU nm, then we don't want the "-C" option.
5830 # -C means demangle to AIX nm, but means don't demangle with GNU nm
5831 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5832 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
5833 else
5834 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
5835 fi
5836 aix_use_runtimelinking=no
5837
5838 # Test if we are trying to use run time linking or normal
5839 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5840 # need to do runtime linking.
5841 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
5842 for ld_flag in $LDFLAGS; do
5843 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5844 aix_use_runtimelinking=yes
5845 break
5846 fi
5847 done
5848 ;;
5849 esac
5850
5851 exp_sym_flag='-bexport'
5852 no_entry_flag='-bnoentry'
5853 fi
5854
5855 # When large executables or shared objects are built, AIX ld can
5856 # have problems creating the table of contents. If linking a library
5857 # or program results in "error TOC overflow" add -mminimal-toc to
5858 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5859 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5860
5861 _LT_AC_TAGVAR(archive_cmds, $1)=''
5862 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5863 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
5864 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5865
5866 if test "$GCC" = yes; then
5867 case $host_os in aix4.[[012]]|aix4.[[012]].*)
5868 # We only want to do this on AIX 4.2 and lower, the check
5869 # below for broken collect2 doesn't work under 4.3+
5870 collect2name=`${CC} -print-prog-name=collect2`
5871 if test -f "$collect2name" && \
5872 strings "$collect2name" | grep resolve_lib_name >/dev/null
5873 then
5874 # We have reworked collect2
5875 :
5876 else
5877 # We have old collect2
5878 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5879 # It fails to find uninstalled libraries when the uninstalled
5880 # path is not listed in the libpath. Setting hardcode_minus_L
5881 # to unsupported forces relinking
5882 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5883 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5884 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5885 fi
5886 ;;
5887 esac
5888 shared_flag='-shared'
5889 if test "$aix_use_runtimelinking" = yes; then
5890 shared_flag="$shared_flag "'${wl}-G'
5891 fi
5892 else
5893 # not using gcc
5894 if test "$host_cpu" = ia64; then
5895 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5896 # chokes on -Wl,-G. The following line is correct:
5897 shared_flag='-G'
5898 else
5899 if test "$aix_use_runtimelinking" = yes; then
5900 shared_flag='${wl}-G'
5901 else
5902 shared_flag='${wl}-bM:SRE'
5903 fi
5904 fi
5905 fi
5906
5907 # It seems that -bexpall does not export symbols beginning with
5908 # underscore (_), so it is better to generate a list of symbols to export.
5909 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5910 if test "$aix_use_runtimelinking" = yes; then
5911 # Warning - without using the other runtime loading flags (-brtl),
5912 # -berok will link without error, but may produce a broken library.
5913 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
5914 # Determine the default libpath from the value encoded in an empty executable.
5915 _LT_AC_SYS_LIBPATH_AIX
5916 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5917 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5918 else
5919 if test "$host_cpu" = ia64; then
5920 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5921 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5922 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
5923 else
5924 # Determine the default libpath from the value encoded in an empty executable.
5925 _LT_AC_SYS_LIBPATH_AIX
5926 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5927 # Warning - without using the other run time loading flags,
5928 # -berok will link without error, but may produce a broken library.
5929 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5930 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5931 # Exported symbols can be pulled into shared objects from archives
5932 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5933 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5934 # This is similar to how AIX traditionally builds its shared libraries.
5935 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
5936 fi
5937 fi
5938 ;;
5939
5940 amigaos*)
5941 _LT_AC_TAGVAR(archive_cmds, $1)='$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)'
5942 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5943 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5944 # see comment about different semantics on the GNU ld section
5945 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5946 ;;
5947
5948 bsdi[[45]]*)
5949 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5950 ;;
5951
5952 cygwin* | mingw* | pw32*)
5953 # When not using gcc, we currently assume that we are using
5954 # Microsoft Visual C++.
5955 # hardcode_libdir_flag_spec is actually meaningless, as there is
5956 # no search path for DLLs.
5957 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5958 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5959 # Tell ltmain to make .lib files, not .a files.
5960 libext=lib
5961 # Tell ltmain to make .dll files, not .so files.
5962 shrext_cmds=".dll"
5963 # FIXME: Setting linknames here is a bad hack.
5964 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
5965 # The linker will automatically build a .lib file if we build a DLL.
5966 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
5967 # FIXME: Should let the user specify the lib program.
5968 _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5969 _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5970 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5971 ;;
5972
5973 darwin* | rhapsody*)
5974 case $host_os in
5975 rhapsody* | darwin1.[[012]])
5976 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
5977 ;;
5978 *) # Darwin 1.3 on
5979 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
5980 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5981 else
5982 case ${MACOSX_DEPLOYMENT_TARGET} in
5983 10.[[012]])
5984 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5985 ;;
5986 10.*)
5987 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
5988 ;;
5989 esac
5990 fi
5991 ;;
5992 esac
5993 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5994 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5995 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
5996 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5997 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
5998 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5999 if test "$GCC" = yes ; then
6000 output_verbose_link_cmd='echo'
6001 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6002 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6003 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6004 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='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}'
6005 _LT_AC_TAGVAR(module_expsym_cmds, $1)='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}'
6006 else
6007 case $cc_basename in
6008 xlc*)
6009 output_verbose_link_cmd='echo'
6010 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
6011 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6012 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6013 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6014 _LT_AC_TAGVAR(module_expsym_cmds, $1)='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}'
6015 ;;
6016 *)
6017 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6018 ;;
6019 esac
6020 fi
6021 ;;
6022
6023 dgux*)
6024 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6025 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6026 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6027 ;;
6028
6029 freebsd1*)
6030 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6031 ;;
6032
6033 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6034 # support. Future versions do this automatically, but an explicit c++rt0.o
6035 # does not break anything, and helps significantly (at the cost of a little
6036 # extra space).
6037 freebsd2.2*)
6038 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6039 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6040 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6041 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6042 ;;
6043
6044 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6045 freebsd2*)
6046 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6047 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6048 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6049 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6050 ;;
6051
6052 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6053 freebsd* | dragonfly*)
6054 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6055 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6056 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6057 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6058 ;;
6059
6060 hpux9*)
6061 if test "$GCC" = yes; then
6062 _LT_AC_TAGVAR(archive_cmds, $1)='$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'
6063 else
6064 _LT_AC_TAGVAR(archive_cmds, $1)='$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'
6065 fi
6066 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6067 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6068 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6069
6070 # hardcode_minus_L: Not really in the search PATH,
6071 # but as the default location of the library.
6072 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6073 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6074 ;;
6075
6076 hpux10*)
6077 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6078 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6079 else
6080 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6081 fi
6082 if test "$with_gnu_ld" = no; then
6083 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6084 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6085
6086 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6087 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6088
6089 # hardcode_minus_L: Not really in the search PATH,
6090 # but as the default location of the library.
6091 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6092 fi
6093 ;;
6094
6095 hpux11*)
6096 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6097 case $host_cpu in
6098 hppa*64*)
6099 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6100 ;;
6101 ia64*)
6102 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6103 ;;
6104 *)
6105 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6106 ;;
6107 esac
6108 else
6109 case $host_cpu in
6110 hppa*64*)
6111 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6112 ;;
6113 ia64*)
6114 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6115 ;;
6116 *)
6117 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6118 ;;
6119 esac
6120 fi
6121 if test "$with_gnu_ld" = no; then
6122 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6123 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6124
6125 case $host_cpu in
6126 hppa*64*|ia64*)
6127 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
6128 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6129 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6130 ;;
6131 *)
6132 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6133 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6134
6135 # hardcode_minus_L: Not really in the search PATH,
6136 # but as the default location of the library.
6137 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6138 ;;
6139 esac
6140 fi
6141 ;;
6142
6143 irix5* | irix6* | nonstopux*)
6144 if test "$GCC" = yes; then
6145 _LT_AC_TAGVAR(archive_cmds, $1)='$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'
6146 else
6147 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6148 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
6149 fi
6150 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6151 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6152 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6153 ;;
6154
6155 netbsd*)
6156 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6157 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6158 else
6159 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6160 fi
6161 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6162 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6163 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6164 ;;
6165
6166 newsos6)
6167 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6168 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6169 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6170 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6171 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6172 ;;
6173
6174 openbsd*)
6175 if test -f /usr/libexec/ld.so; then
6176 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6177 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6178 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6179 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6180 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6181 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6182 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6183 else
6184 case $host_os in
6185 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6186 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6187 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6188 ;;
6189 *)
6190 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6191 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6192 ;;
6193 esac
6194 fi
6195 else
6196 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6197 fi
6198 ;;
6199
6200 os2*)
6201 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6202 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6203 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6204 _LT_AC_TAGVAR(archive_cmds, $1)='$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'
6205 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6206 ;;
6207
6208 osf3*)
6209 if test "$GCC" = yes; then
6210 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6211 _LT_AC_TAGVAR(archive_cmds, $1)='$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'
6212 else
6213 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6214 _LT_AC_TAGVAR(archive_cmds, $1)='$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'
6215 fi
6216 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6217 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6218 ;;
6219
6220 osf4* | osf5*) # as osf3* with the addition of -msym flag
6221 if test "$GCC" = yes; then
6222 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6223 _LT_AC_TAGVAR(archive_cmds, $1)='$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'
6224 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6225 else
6226 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6227 _LT_AC_TAGVAR(archive_cmds, $1)='$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'
6228 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6229 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
6230
6231 # Both c and cxx compiler support -rpath directly
6232 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6233 fi
6234 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6235 ;;
6236
6237 solaris*)
6238 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
6239 if test "$GCC" = yes; then
6240 wlarc='${wl}'
6241 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6242 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6243 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6244 else
6245 wlarc=''
6246 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6247 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6248 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6249 fi
6250 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6251 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6252 case $host_os in
6253 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6254 *)
6255 # The compiler driver will combine and reorder linker options,
6256 # but understands `-z linker_flag'. GCC discards it without `$wl',
6257 # but is careful enough not to reorder.
6258 # Supported since Solaris 2.6 (maybe 2.5.1?)
6259 if test "$GCC" = yes; then
6260 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6261 else
6262 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6263 fi
6264 ;;
6265 esac
6266 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6267 ;;
6268
6269 sunos4*)
6270 if test "x$host_vendor" = xsequent; then
6271 # Use $CC to link under sequent, because it throws in some extra .o
6272 # files that make .init and .fini sections work.
6273 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6274 else
6275 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6276 fi
6277 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6278 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6279 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6280 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6281 ;;
6282
6283 sysv4)
6284 case $host_vendor in
6285 sni)
6286 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6287 _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
6288 ;;
6289 siemens)
6290 ## LD is ld it makes a PLAMLIB
6291 ## CC just makes a GrossModule.
6292 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6293 _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
6294 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6295 ;;
6296 motorola)
6297 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6298 _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
6299 ;;
6300 esac
6301 runpath_var='LD_RUN_PATH'
6302 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6303 ;;
6304
6305 sysv4.3*)
6306 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6307 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6308 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
6309 ;;
6310
6311 sysv4*MP*)
6312 if test -d /usr/nec; then
6313 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6314 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6315 runpath_var=LD_RUN_PATH
6316 hardcode_runpath_var=yes
6317 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
6318 fi
6319 ;;
6320
6321 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6322 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6323 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6324 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6325 runpath_var='LD_RUN_PATH'
6326
6327 if test "$GCC" = yes; then
6328 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6329 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6330 else
6331 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6332 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6333 fi
6334 ;;
6335
6336 sysv5* | sco3.2v5* | sco5v6*)
6337 # Note: We can NOT use -z defs as we might desire, because we do not
6338 # link with -lc, and that would cause any symbols used from libc to
6339 # always be unresolved, which means just about no library would
6340 # ever link correctly. If we're not using GNU ld we use -z text
6341 # though, which does catch some bad symbols but isn't as heavy-handed
6342 # as -z defs.
6343 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6344 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6345 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6346 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6347 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
6348 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6349 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6350 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6351 runpath_var='LD_RUN_PATH'
6352
6353 if test "$GCC" = yes; then
6354 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6355 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6356 else
6357 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6358 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6359 fi
6360 ;;
6361
6362 uts4*)
6363 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6364 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6365 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6366 ;;
6367
6368 *)
6369 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6370 ;;
6371 esac
6372 fi
6373 ])
6374 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
6375 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6376
6377 #
6378 # Do we need to explicitly link libc?
6379 #
6380 case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
6381 x|xyes)
6382 # Assume -lc should be added
6383 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6384
6385 if test "$enable_shared" = yes && test "$GCC" = yes; then
6386 case $_LT_AC_TAGVAR(archive_cmds, $1) in
6387 *'~'*)
6388 # FIXME: we may have to deal with multi-command sequences.
6389 ;;
6390 '$CC '*)
6391 # Test whether the compiler implicitly links with -lc since on some
6392 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6393 # to ld, don't add -lc before -lgcc.
6394 AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6395 $rm conftest*
6396 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6397
6398 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6399 soname=conftest
6400 lib=conftest
6401 libobjs=conftest.$ac_objext
6402 deplibs=
6403 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
6404 pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
6405 compiler_flags=-v
6406 linker_flags=-v
6407 verstring=
6408 output_objdir=.
6409 libname=conftest
6410 lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
6411 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
6412 if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
6413 then
6414 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6415 else
6416 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6417 fi
6418 _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6419 else
6420 cat conftest.err 1>&5
6421 fi
6422 $rm conftest*
6423 AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
6424 ;;
6425 esac
6426 fi
6427 ;;
6428 esac
6429 ])# AC_LIBTOOL_PROG_LD_SHLIBS
6430
6431
6432 # _LT_AC_FILE_LTDLL_C
6433 # -------------------
6434 # Be careful that the start marker always follows a newline.
6435 AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
6436 # /* ltdll.c starts here */
6437 # #define WIN32_LEAN_AND_MEAN
6438 # #include <windows.h>
6439 # #undef WIN32_LEAN_AND_MEAN
6440 # #include <stdio.h>
6441 #
6442 # #ifndef __CYGWIN__
6443 # # ifdef __CYGWIN32__
6444 # # define __CYGWIN__ __CYGWIN32__
6445 # # endif
6446 # #endif
6447 #
6448 # #ifdef __cplusplus
6449 # extern "C" {
6450 # #endif
6451 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6452 # #ifdef __cplusplus
6453 # }
6454 # #endif
6455 #
6456 # #ifdef __CYGWIN__
6457 # #include <cygwin/cygwin_dll.h>
6458 # DECLARE_CYGWIN_DLL( DllMain );
6459 # #endif
6460 # HINSTANCE __hDllInstance_base;
6461 #
6462 # BOOL APIENTRY
6463 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6464 # {
6465 # __hDllInstance_base = hInst;
6466 # return TRUE;
6467 # }
6468 # /* ltdll.c ends here */
6469 ])# _LT_AC_FILE_LTDLL_C
6470
6471
6472 # _LT_AC_TAGVAR(VARNAME, [TAGNAME])
6473 # ---------------------------------
6474 AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
6475
6476
6477 # old names
6478 AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
6479 AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
6480 AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
6481 AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
6482 AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
6483 AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
6484 AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
6485
6486 # This is just to silence aclocal about the macro not being used
6487 ifelse([AC_DISABLE_FAST_INSTALL])
6488
6489 AC_DEFUN([LT_AC_PROG_GCJ],
6490 [AC_CHECK_TOOL(GCJ, gcj, no)
6491 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
6492 AC_SUBST(GCJFLAGS)
6493 ])
6494
6495 AC_DEFUN([LT_AC_PROG_RC],
6496 [AC_CHECK_TOOL(RC, windres, no)
6497 ])
6498
6499
6500 # Cheap backport of AS_EXECUTABLE_P and required macros
6501 # from Autoconf 2.59; we should not use $as_executable_p directly.
6502
6503 # _AS_TEST_PREPARE
6504 # ----------------
6505 m4_ifndef([_AS_TEST_PREPARE],
6506 [m4_defun([_AS_TEST_PREPARE],
6507 [if test -x / >/dev/null 2>&1; then
6508 as_executable_p='test -x'
6509 else
6510 as_executable_p='test -f'
6511 fi
6512 ])])# _AS_TEST_PREPARE
6513
6514 # AS_EXECUTABLE_P
6515 # ---------------
6516 # Check whether a file is executable.
6517 m4_ifndef([AS_EXECUTABLE_P],
6518 [m4_defun([AS_EXECUTABLE_P],
6519 [AS_REQUIRE([_AS_TEST_PREPARE])dnl
6520 $as_executable_p $1[]dnl
6521 ])])# AS_EXECUTABLE_P
6522
6523 # NOTE: This macro has been submitted for inclusion into #
6524 # GNU Autoconf as AC_PROG_SED. When it is available in #
6525 # a released version of Autoconf we should remove this #
6526 # macro and use it instead. #
6527 # LT_AC_PROG_SED
6528 # --------------
6529 # Check for a fully-functional sed program, that truncates
6530 # as few characters as possible. Prefer GNU sed if found.
6531 AC_DEFUN([LT_AC_PROG_SED],
6532 [AC_MSG_CHECKING([for a sed that does not truncate output])
6533 AC_CACHE_VAL(lt_cv_path_SED,
6534 [# Loop through the user's path and test for sed and gsed.
6535 # Then use that list of sed's as ones to test for truncation.
6536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6537 for as_dir in $PATH
6538 do
6539 IFS=$as_save_IFS
6540 test -z "$as_dir" && as_dir=.
6541 for lt_ac_prog in sed gsed; do
6542 for ac_exec_ext in '' $ac_executable_extensions; do
6543 if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
6544 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6545 fi
6546 done
6547 done
6548 done
6549 IFS=$as_save_IFS
6550 lt_ac_max=0
6551 lt_ac_count=0
6552 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6553 # along with /bin/sed that truncates output.
6554 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6555 test ! -f $lt_ac_sed && continue
6556 cat /dev/null > conftest.in
6557 lt_ac_count=0
6558 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6559 # Check for GNU sed and select it if it is found.
6560 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6561 lt_cv_path_SED=$lt_ac_sed
6562 break
6563 fi
6564 while true; do
6565 cat conftest.in conftest.in >conftest.tmp
6566 mv conftest.tmp conftest.in
6567 cp conftest.in conftest.nl
6568 echo >>conftest.nl
6569 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6570 cmp -s conftest.out conftest.nl || break
6571 # 10000 chars as input seems more than enough
6572 test $lt_ac_count -gt 10 && break
6573 lt_ac_count=`expr $lt_ac_count + 1`
6574 if test $lt_ac_count -gt $lt_ac_max; then
6575 lt_ac_max=$lt_ac_count
6576 lt_cv_path_SED=$lt_ac_sed
6577 fi
6578 done
6579 done
6580 ])
6581 SED=$lt_cv_path_SED
6582 AC_SUBST([SED])
6583 AC_MSG_RESULT([$SED])
6584 ])
126585
136586 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
146587 #
1586731
1596732 _PKG_TEXT
1606733
161 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
6734 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
1626735 [$4])
1636736 else
1646737 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
1686741 fi[]dnl
1696742 ])# PKG_CHECK_MODULES
1706743
171 # Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
6744 # Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc.
1726745 #
1736746 # This file is free software; the Free Software Foundation
1746747 # gives unlimited permission to copy and/or distribute it,
1786751 # ----------------------------
1796752 # Automake X.Y traces this macro to ensure aclocal.m4 has been
1806753 # generated from the m4 files accompanying Automake X.Y.
181 AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
6754 # (This private macro should not be called outside this file.)
6755 AC_DEFUN([AM_AUTOMAKE_VERSION],
6756 [am__api_version='1.10'
6757 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
6758 dnl require some minimum version. Point them to the right macro.
6759 m4_if([$1], [1.10], [],
6760 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
6761 ])
6762
6763 # _AM_AUTOCONF_VERSION(VERSION)
6764 # -----------------------------
6765 # aclocal traces this macro to find the Autoconf version.
6766 # This is a private macro too. Using m4_define simplifies
6767 # the logic in aclocal, which can simply ignore this definition.
6768 m4_define([_AM_AUTOCONF_VERSION], [])
1826769
1836770 # AM_SET_CURRENT_AUTOMAKE_VERSION
1846771 # -------------------------------
185 # Call AM_AUTOMAKE_VERSION so it can be traced.
6772 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
1866773 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
1876774 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
188 [AM_AUTOMAKE_VERSION([1.9.6])])
6775 [AM_AUTOMAKE_VERSION([1.10])dnl
6776 _AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
1896777
1906778 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
1916779
2426830
2436831 # AM_CONDITIONAL -*- Autoconf -*-
2446832
245 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
6833 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
2466834 # Free Software Foundation, Inc.
2476835 #
2486836 # This file is free software; the Free Software Foundation
2496837 # gives unlimited permission to copy and/or distribute it,
2506838 # with or without modifications, as long as this notice is preserved.
2516839
252 # serial 7
6840 # serial 8
2536841
2546842 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
2556843 # -------------------------------------
2586846 [AC_PREREQ(2.52)dnl
2596847 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
2606848 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
261 AC_SUBST([$1_TRUE])
262 AC_SUBST([$1_FALSE])
6849 AC_SUBST([$1_TRUE])dnl
6850 AC_SUBST([$1_FALSE])dnl
6851 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
6852 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
2636853 if $2; then
2646854 $1_TRUE=
2656855 $1_FALSE='#'
2736863 Usually this means the macro was only invoked conditionally.]])
2746864 fi])])
2756865
276
277 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
6866 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
2786867 # Free Software Foundation, Inc.
2796868 #
2806869 # This file is free software; the Free Software Foundation
2816870 # gives unlimited permission to copy and/or distribute it,
2826871 # with or without modifications, as long as this notice is preserved.
2836872
284 # serial 8
6873 # serial 9
2856874
2866875 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
2876876 # written in clear, in which case automake, when reading aclocal.m4,
3096898 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
3106899 [$1], CXX, [depcc="$CXX" am_compiler_list=],
3116900 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
6901 [$1], UPC, [depcc="$UPC" am_compiler_list=],
3126902 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
3136903 [depcc="$$1" am_compiler_list=])
3146904
3746964 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3756965 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3766966 >/dev/null 2>conftest.err &&
6967 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3776968 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3786969 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3796970 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4267017 AMDEPBACKSLASH='\'
4277018 fi
4287019 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
429 AC_SUBST([AMDEPBACKSLASH])
7020 AC_SUBST([AMDEPBACKSLASH])dnl
7021 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
4307022 ])
4317023
4327024 # Generate code to set up dependency tracking. -*- Autoconf -*-
4517043 # some people rename them; so instead we look at the file content.
4527044 # Grep'ing the first line is not enough: some people post-process
4537045 # each Makefile.in and add a new line on top of each file to say so.
454 # So let's grep whole file.
455 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
7046 # Grep'ing the whole file is not good either: AIX grep has a line
7047 # limit of 2048, but all sed's we know have understand at least 4000.
7048 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
4567049 dirpart=`AS_DIRNAME("$mf")`
4577050 else
4587051 continue
4977090 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
4987091 ])
4997092
7093 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
7094 # Free Software Foundation, Inc.
7095 #
7096 # This file is free software; the Free Software Foundation
7097 # gives unlimited permission to copy and/or distribute it,
7098 # with or without modifications, as long as this notice is preserved.
7099
7100 # serial 8
7101
7102 # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
7103 AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
7104
5007105 # Do all the work for Automake. -*- Autoconf -*-
5017106
502 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
503 # Free Software Foundation, Inc.
7107 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
7108 # 2005, 2006 Free Software Foundation, Inc.
5047109 #
5057110 # This file is free software; the Free Software Foundation
5067111 # gives unlimited permission to copy and/or distribute it,
5237128 # arguments mandatory, and then we can depend on a new Autoconf
5247129 # release and drop the old call support.
5257130 AC_DEFUN([AM_INIT_AUTOMAKE],
526 [AC_PREREQ([2.58])dnl
7131 [AC_PREREQ([2.60])dnl
5277132 dnl Autoconf wants to disallow AM_ names. We explicitly allow
5287133 dnl the ones we care about.
5297134 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
5307135 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
5317136 AC_REQUIRE([AC_PROG_INSTALL])dnl
532 # test to see if srcdir already configured
533 if test "`cd $srcdir && pwd`" != "`pwd`" &&
534 test -f $srcdir/config.status; then
535 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
7137 if test "`cd $srcdir && pwd`" != "`pwd`"; then
7138 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
7139 # is not polluted with repeated "-I."
7140 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
7141 # test to see if srcdir already configured
7142 if test -f $srcdir/config.status; then
7143 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
7144 fi
5367145 fi
5377146
5387147 # test whether we have cygpath
5527161 AC_SUBST([PACKAGE], [$1])dnl
5537162 AC_SUBST([VERSION], [$2])],
5547163 [_AM_SET_OPTIONS([$1])dnl
7164 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
7165 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
7166 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
5557167 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
5567168 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
5577169
5877199 [_AM_DEPENDENCIES(CXX)],
5887200 [define([AC_PROG_CXX],
5897201 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
7202 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
7203 [_AM_DEPENDENCIES(OBJC)],
7204 [define([AC_PROG_OBJC],
7205 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
5907206 ])
5917207 ])
5927208
6227238 # Define $install_sh.
6237239 AC_DEFUN([AM_PROG_INSTALL_SH],
6247240 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
625 install_sh=${install_sh-"$am_aux_dir/install-sh"}
7241 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
6267242 AC_SUBST(install_sh)])
6277243
6287244 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
6987314 rm -f confinc confmf
6997315 ])
7007316
701 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
702
703 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
7317 # Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005
7047318 # Free Software Foundation, Inc.
7057319 #
7067320 # This file is free software; the Free Software Foundation
7077321 # gives unlimited permission to copy and/or distribute it,
7087322 # with or without modifications, as long as this notice is preserved.
7097323
710 # serial 4
7324 # serial 5
7325
7326 # AM_PROG_CC_C_O
7327 # --------------
7328 # Like AC_PROG_CC_C_O, but changed for automake.
7329 AC_DEFUN([AM_PROG_CC_C_O],
7330 [AC_REQUIRE([AC_PROG_CC_C_O])dnl
7331 AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7332 AC_REQUIRE_AUX_FILE([compile])dnl
7333 # FIXME: we rely on the cache variable name because
7334 # there is no other way.
7335 set dummy $CC
7336 ac_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
7337 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
7338 # Losing compiler, so override with the script.
7339 # FIXME: It is wrong to rewrite CC.
7340 # But if we don't then we get into trouble of one sort or another.
7341 # A longer-term fix would be to have automake use am__CC in this case,
7342 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7343 CC="$am_aux_dir/compile $CC"
7344 fi
7345 dnl Make sure AC_PROG_CC is never called again, or it will override our
7346 dnl setting of CC.
7347 m4_define([AC_PROG_CC],
7348 [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
7349 ])
7350
7351 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
7352
7353 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
7354 # Free Software Foundation, Inc.
7355 #
7356 # This file is free software; the Free Software Foundation
7357 # gives unlimited permission to copy and/or distribute it,
7358 # with or without modifications, as long as this notice is preserved.
7359
7360 # serial 5
7117361
7127362 # AM_MISSING_PROG(NAME, PROGRAM)
7137363 # ------------------------------
7237373 # If it does, set am_missing_run to use it, otherwise, to nothing.
7247374 AC_DEFUN([AM_MISSING_HAS_RUN],
7257375 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7376 AC_REQUIRE_AUX_FILE([missing])dnl
7267377 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
7277378 # Use eval to expand $SHELL
7287379 if eval "$MISSING --run true"; then
7337384 fi
7347385 ])
7357386
736 # Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
7387 # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7377388 #
7387389 # This file is free software; the Free Software Foundation
7397390 # gives unlimited permission to copy and/or distribute it,
7417392
7427393 # AM_PROG_MKDIR_P
7437394 # ---------------
744 # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
745 #
746 # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
747 # created by `make install' are always world readable, even if the
748 # installer happens to have an overly restrictive umask (e.g. 077).
749 # This was a mistake. There are at least two reasons why we must not
750 # use `-m 0755':
751 # - it causes special bits like SGID to be ignored,
752 # - it may be too restrictive (some setups expect 775 directories).
753 #
754 # Do not use -m 0755 and let people choose whatever they expect by
755 # setting umask.
756 #
757 # We cannot accept any implementation of `mkdir' that recognizes `-p'.
758 # Some implementations (such as Solaris 8's) are not thread-safe: if a
759 # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
760 # concurrently, both version can detect that a/ is missing, but only
761 # one can create it and the other will error out. Consequently we
762 # restrict ourselves to GNU make (using the --version option ensures
763 # this.)
7395 # Check for `mkdir -p'.
7647396 AC_DEFUN([AM_PROG_MKDIR_P],
765 [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
766 # We used to keeping the `.' as first argument, in order to
767 # allow $(mkdir_p) to be used without argument. As in
768 # $(mkdir_p) $(somedir)
769 # where $(somedir) is conditionally defined. However this is wrong
770 # for two reasons:
771 # 1. if the package is installed by a user who cannot write `.'
772 # make install will fail,
773 # 2. the above comment should most certainly read
774 # $(mkdir_p) $(DESTDIR)$(somedir)
775 # so it does not work when $(somedir) is undefined and
776 # $(DESTDIR) is not.
777 # To support the latter case, we have to write
778 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
779 # so the `.' trick is pointless.
780 mkdir_p='mkdir -p --'
781 else
782 # On NextStep and OpenStep, the `mkdir' command does not
783 # recognize any option. It will interpret all options as
784 # directories to create, and then abort because `.' already
785 # exists.
786 for d in ./-p ./--version;
787 do
788 test -d $d && rmdir $d
789 done
790 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
791 if test -f "$ac_aux_dir/mkinstalldirs"; then
792 mkdir_p='$(mkinstalldirs)'
793 else
794 mkdir_p='$(install_sh) -d'
795 fi
796 fi
797 AC_SUBST([mkdir_p])])
7397 [AC_PREREQ([2.60])dnl
7398 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
7399 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
7400 dnl while keeping a definition of mkdir_p for backward compatibility.
7401 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
7402 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
7403 dnl Makefile.ins that do not define MKDIR_P, so we do our own
7404 dnl adjustment using top_builddir (which is defined more often than
7405 dnl MKDIR_P).
7406 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
7407 case $mkdir_p in
7408 [[\\/$]]* | ?:[[\\/]]*) ;;
7409 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
7410 esac
7411 ])
7987412
7997413 # Helper functions for option handling. -*- Autoconf -*-
8007414
9067520 if test "$cross_compiling" != no; then
9077521 AC_CHECK_TOOL([STRIP], [strip], :)
9087522 fi
909 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
7523 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
9107524 AC_SUBST([INSTALL_STRIP_PROGRAM])])
7525
7526 # Copyright (C) 2006 Free Software Foundation, Inc.
7527 #
7528 # This file is free software; the Free Software Foundation
7529 # gives unlimited permission to copy and/or distribute it,
7530 # with or without modifications, as long as this notice is preserved.
7531
7532 # _AM_SUBST_NOTMAKE(VARIABLE)
7533 # ---------------------------
7534 # Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in.
7535 # This macro is traced by Automake.
7536 AC_DEFUN([_AM_SUBST_NOTMAKE])
9117537
9127538 # Check how to create a tarball. -*- Autoconf -*-
9137539
0 #! /bin/sh
1 # Attempt to guess a canonical system name.
2 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
4 # Inc.
5
6 timestamp='2007-05-17'
7
8 # This file is free software; you can redistribute it and/or modify it
9 # 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
21 # 02110-1301, USA.
22 #
23 # As a special exception to the GNU General Public License, if you
24 # distribute this file as part of a program that contains a
25 # configuration script generated by Autoconf, you may include it under
26 # the same distribution terms that you use for the rest of that program.
27
28
29 # Originally written by Per Bothner <per@bothner.com>.
30 # Please send patches to <config-patches@gnu.org>. Submit a context
31 # diff and a properly formatted ChangeLog entry.
32 #
33 # This script attempts to guess a canonical system name similar to
34 # config.sub. If it succeeds, it prints the system name on stdout, and
35 # exits with 0. Otherwise, it exits with 1.
36 #
37 # The plan is that this can be called by configure scripts if you
38 # don't specify an explicit build system type.
39
40 me=`echo "$0" | sed -e 's,.*/,,'`
41
42 usage="\
43 Usage: $0 [OPTION]
44
45 Output the configuration name of the system \`$me' is run on.
46
47 Operation modes:
48 -h, --help print this help, then exit
49 -t, --time-stamp print date of last modification, then exit
50 -v, --version print version number, then exit
51
52 Report bugs and patches to <config-patches@gnu.org>."
53
54 version="\
55 GNU config.guess ($timestamp)
56
57 Originally written by Per Bothner.
58 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
59 Free Software Foundation, Inc.
60
61 This is free software; see the source for copying conditions. There is NO
62 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
63
64 help="
65 Try \`$me --help' for more information."
66
67 # Parse command line
68 while test $# -gt 0 ; do
69 case $1 in
70 --time-stamp | --time* | -t )
71 echo "$timestamp" ; exit ;;
72 --version | -v )
73 echo "$version" ; exit ;;
74 --help | --h* | -h )
75 echo "$usage"; exit ;;
76 -- ) # Stop option processing
77 shift; break ;;
78 - ) # Use stdin as input.
79 break ;;
80 -* )
81 echo "$me: invalid option $1$help" >&2
82 exit 1 ;;
83 * )
84 break ;;
85 esac
86 done
87
88 if test $# != 0; then
89 echo "$me: too many arguments$help" >&2
90 exit 1
91 fi
92
93 trap 'exit 1' 1 2 15
94
95 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a
96 # compiler to aid in system detection is discouraged as it requires
97 # temporary files to be created and, as you can see below, it is a
98 # headache to deal with in a portable fashion.
99
100 # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
101 # use `HOST_CC' if defined, but it is deprecated.
102
103 # Portable tmp directory creation inspired by the Autoconf team.
104
105 set_cc_for_build='
106 trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
107 trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
108 : ${TMPDIR=/tmp} ;
109 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
110 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
111 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
112 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
113 dummy=$tmp/dummy ;
114 tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
115 case $CC_FOR_BUILD,$HOST_CC,$CC in
116 ,,) echo "int x;" > $dummy.c ;
117 for c in cc gcc c89 c99 ; do
118 if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
119 CC_FOR_BUILD="$c"; break ;
120 fi ;
121 done ;
122 if test x"$CC_FOR_BUILD" = x ; then
123 CC_FOR_BUILD=no_compiler_found ;
124 fi
125 ;;
126 ,,*) CC_FOR_BUILD=$CC ;;
127 ,*,*) CC_FOR_BUILD=$HOST_CC ;;
128 esac ; set_cc_for_build= ;'
129
130 # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
131 # (ghazi@noc.rutgers.edu 1994-08-24)
132 if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
133 PATH=$PATH:/.attbin ; export PATH
134 fi
135
136 UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
137 UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
138 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
139 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
140
141 # Note: order is significant - the case branches are not exclusive.
142
143 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
144 *:NetBSD:*:*)
145 # NetBSD (nbsd) targets should (where applicable) match one or
146 # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
147 # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
148 # switched to ELF, *-*-netbsd* would select the old
149 # object file format. This provides both forward
150 # compatibility and a consistent mechanism for selecting the
151 # object file format.
152 #
153 # Note: NetBSD doesn't particularly care about the vendor
154 # portion of the name. We always set it to "unknown".
155 sysctl="sysctl -n hw.machine_arch"
156 UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
157 /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
158 case "${UNAME_MACHINE_ARCH}" in
159 armeb) machine=armeb-unknown ;;
160 arm*) machine=arm-unknown ;;
161 sh3el) machine=shl-unknown ;;
162 sh3eb) machine=sh-unknown ;;
163 sh5el) machine=sh5le-unknown ;;
164 *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
165 esac
166 # The Operating System including object format, if it has switched
167 # to ELF recently, or will in the future.
168 case "${UNAME_MACHINE_ARCH}" in
169 arm*|i386|m68k|ns32k|sh3*|sparc|vax)
170 eval $set_cc_for_build
171 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
172 | grep __ELF__ >/dev/null
173 then
174 # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
175 # Return netbsd for either. FIX?
176 os=netbsd
177 else
178 os=netbsdelf
179 fi
180 ;;
181 *)
182 os=netbsd
183 ;;
184 esac
185 # The OS release
186 # Debian GNU/NetBSD machines have a different userland, and
187 # thus, need a distinct triplet. However, they do not need
188 # kernel version information, so it can be replaced with a
189 # suitable tag, in the style of linux-gnu.
190 case "${UNAME_VERSION}" in
191 Debian*)
192 release='-gnu'
193 ;;
194 *)
195 release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
196 ;;
197 esac
198 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
199 # contains redundant information, the shorter form:
200 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
201 echo "${machine}-${os}${release}"
202 exit ;;
203 *:OpenBSD:*:*)
204 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
205 echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
206 exit ;;
207 *:ekkoBSD:*:*)
208 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
209 exit ;;
210 *:SolidBSD:*:*)
211 echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
212 exit ;;
213 macppc:MirBSD:*:*)
214 echo powerpc-unknown-mirbsd${UNAME_RELEASE}
215 exit ;;
216 *:MirBSD:*:*)
217 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
218 exit ;;
219 alpha:OSF1:*:*)
220 case $UNAME_RELEASE in
221 *4.0)
222 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
223 ;;
224 *5.*)
225 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
226 ;;
227 esac
228 # According to Compaq, /usr/sbin/psrinfo has been available on
229 # OSF/1 and Tru64 systems produced since 1995. I hope that
230 # covers most systems running today. This code pipes the CPU
231 # types through head -n 1, so we only detect the type of CPU 0.
232 ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
233 case "$ALPHA_CPU_TYPE" in
234 "EV4 (21064)")
235 UNAME_MACHINE="alpha" ;;
236 "EV4.5 (21064)")
237 UNAME_MACHINE="alpha" ;;
238 "LCA4 (21066/21068)")
239 UNAME_MACHINE="alpha" ;;
240 "EV5 (21164)")
241 UNAME_MACHINE="alphaev5" ;;
242 "EV5.6 (21164A)")
243 UNAME_MACHINE="alphaev56" ;;
244 "EV5.6 (21164PC)")
245 UNAME_MACHINE="alphapca56" ;;
246 "EV5.7 (21164PC)")
247 UNAME_MACHINE="alphapca57" ;;
248 "EV6 (21264)")
249 UNAME_MACHINE="alphaev6" ;;
250 "EV6.7 (21264A)")
251 UNAME_MACHINE="alphaev67" ;;
252 "EV6.8CB (21264C)")
253 UNAME_MACHINE="alphaev68" ;;
254 "EV6.8AL (21264B)")
255 UNAME_MACHINE="alphaev68" ;;
256 "EV6.8CX (21264D)")
257 UNAME_MACHINE="alphaev68" ;;
258 "EV6.9A (21264/EV69A)")
259 UNAME_MACHINE="alphaev69" ;;
260 "EV7 (21364)")
261 UNAME_MACHINE="alphaev7" ;;
262 "EV7.9 (21364A)")
263 UNAME_MACHINE="alphaev79" ;;
264 esac
265 # A Pn.n version is a patched version.
266 # A Vn.n version is a released version.
267 # A Tn.n version is a released field test version.
268 # A Xn.n version is an unreleased experimental baselevel.
269 # 1.2 uses "1.2" for uname -r.
270 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
271 exit ;;
272 Alpha\ *:Windows_NT*:*)
273 # How do we know it's Interix rather than the generic POSIX subsystem?
274 # Should we change UNAME_MACHINE based on the output of uname instead
275 # of the specific Alpha model?
276 echo alpha-pc-interix
277 exit ;;
278 21064:Windows_NT:50:3)
279 echo alpha-dec-winnt3.5
280 exit ;;
281 Amiga*:UNIX_System_V:4.0:*)
282 echo m68k-unknown-sysv4
283 exit ;;
284 *:[Aa]miga[Oo][Ss]:*:*)
285 echo ${UNAME_MACHINE}-unknown-amigaos
286 exit ;;
287 *:[Mm]orph[Oo][Ss]:*:*)
288 echo ${UNAME_MACHINE}-unknown-morphos
289 exit ;;
290 *:OS/390:*:*)
291 echo i370-ibm-openedition
292 exit ;;
293 *:z/VM:*:*)
294 echo s390-ibm-zvmoe
295 exit ;;
296 *:OS400:*:*)
297 echo powerpc-ibm-os400
298 exit ;;
299 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
300 echo arm-acorn-riscix${UNAME_RELEASE}
301 exit ;;
302 arm:riscos:*:*|arm:RISCOS:*:*)
303 echo arm-unknown-riscos
304 exit ;;
305 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
306 echo hppa1.1-hitachi-hiuxmpp
307 exit ;;
308 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
309 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
310 if test "`(/bin/universe) 2>/dev/null`" = att ; then
311 echo pyramid-pyramid-sysv3
312 else
313 echo pyramid-pyramid-bsd
314 fi
315 exit ;;
316 NILE*:*:*:dcosx)
317 echo pyramid-pyramid-svr4
318 exit ;;
319 DRS?6000:unix:4.0:6*)
320 echo sparc-icl-nx6
321 exit ;;
322 DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
323 case `/usr/bin/uname -p` in
324 sparc) echo sparc-icl-nx7; exit ;;
325 esac ;;
326 sun4H:SunOS:5.*:*)
327 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
328 exit ;;
329 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
330 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
331 exit ;;
332 i86pc:SunOS:5.*:* | ix86xen:SunOS:5.*:*)
333 echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
334 exit ;;
335 sun4*:SunOS:6*:*)
336 # According to config.sub, this is the proper way to canonicalize
337 # SunOS6. Hard to guess exactly what SunOS6 will be like, but
338 # it's likely to be more like Solaris than SunOS4.
339 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
340 exit ;;
341 sun4*:SunOS:*:*)
342 case "`/usr/bin/arch -k`" in
343 Series*|S4*)
344 UNAME_RELEASE=`uname -v`
345 ;;
346 esac
347 # Japanese Language versions have a version number like `4.1.3-JL'.
348 echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
349 exit ;;
350 sun3*:SunOS:*:*)
351 echo m68k-sun-sunos${UNAME_RELEASE}
352 exit ;;
353 sun*:*:4.2BSD:*)
354 UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
355 test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
356 case "`/bin/arch`" in
357 sun3)
358 echo m68k-sun-sunos${UNAME_RELEASE}
359 ;;
360 sun4)
361 echo sparc-sun-sunos${UNAME_RELEASE}
362 ;;
363 esac
364 exit ;;
365 aushp:SunOS:*:*)
366 echo sparc-auspex-sunos${UNAME_RELEASE}
367 exit ;;
368 # The situation for MiNT is a little confusing. The machine name
369 # can be virtually everything (everything which is not
370 # "atarist" or "atariste" at least should have a processor
371 # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
372 # to the lowercase version "mint" (or "freemint"). Finally
373 # the system name "TOS" denotes a system which is actually not
374 # MiNT. But MiNT is downward compatible to TOS, so this should
375 # be no problem.
376 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
377 echo m68k-atari-mint${UNAME_RELEASE}
378 exit ;;
379 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
380 echo m68k-atari-mint${UNAME_RELEASE}
381 exit ;;
382 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
383 echo m68k-atari-mint${UNAME_RELEASE}
384 exit ;;
385 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
386 echo m68k-milan-mint${UNAME_RELEASE}
387 exit ;;
388 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
389 echo m68k-hades-mint${UNAME_RELEASE}
390 exit ;;
391 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
392 echo m68k-unknown-mint${UNAME_RELEASE}
393 exit ;;
394 m68k:machten:*:*)
395 echo m68k-apple-machten${UNAME_RELEASE}
396 exit ;;
397 powerpc:machten:*:*)
398 echo powerpc-apple-machten${UNAME_RELEASE}
399 exit ;;
400 RISC*:Mach:*:*)
401 echo mips-dec-mach_bsd4.3
402 exit ;;
403 RISC*:ULTRIX:*:*)
404 echo mips-dec-ultrix${UNAME_RELEASE}
405 exit ;;
406 VAX*:ULTRIX*:*:*)
407 echo vax-dec-ultrix${UNAME_RELEASE}
408 exit ;;
409 2020:CLIX:*:* | 2430:CLIX:*:*)
410 echo clipper-intergraph-clix${UNAME_RELEASE}
411 exit ;;
412 mips:*:*:UMIPS | mips:*:*:RISCos)
413 eval $set_cc_for_build
414 sed 's/^ //' << EOF >$dummy.c
415 #ifdef __cplusplus
416 #include <stdio.h> /* for printf() prototype */
417 int main (int argc, char *argv[]) {
418 #else
419 int main (argc, argv) int argc; char *argv[]; {
420 #endif
421 #if defined (host_mips) && defined (MIPSEB)
422 #if defined (SYSTYPE_SYSV)
423 printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
424 #endif
425 #if defined (SYSTYPE_SVR4)
426 printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
427 #endif
428 #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
429 printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
430 #endif
431 #endif
432 exit (-1);
433 }
434 EOF
435 $CC_FOR_BUILD -o $dummy $dummy.c &&
436 dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
437 SYSTEM_NAME=`$dummy $dummyarg` &&
438 { echo "$SYSTEM_NAME"; exit; }
439 echo mips-mips-riscos${UNAME_RELEASE}
440 exit ;;
441 Motorola:PowerMAX_OS:*:*)
442 echo powerpc-motorola-powermax
443 exit ;;
444 Motorola:*:4.3:PL8-*)
445 echo powerpc-harris-powermax
446 exit ;;
447 Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
448 echo powerpc-harris-powermax
449 exit ;;
450 Night_Hawk:Power_UNIX:*:*)
451 echo powerpc-harris-powerunix
452 exit ;;
453 m88k:CX/UX:7*:*)
454 echo m88k-harris-cxux7
455 exit ;;
456 m88k:*:4*:R4*)
457 echo m88k-motorola-sysv4
458 exit ;;
459 m88k:*:3*:R3*)
460 echo m88k-motorola-sysv3
461 exit ;;
462 AViiON:dgux:*:*)
463 # DG/UX returns AViiON for all architectures
464 UNAME_PROCESSOR=`/usr/bin/uname -p`
465 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
466 then
467 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
468 [ ${TARGET_BINARY_INTERFACE}x = x ]
469 then
470 echo m88k-dg-dgux${UNAME_RELEASE}
471 else
472 echo m88k-dg-dguxbcs${UNAME_RELEASE}
473 fi
474 else
475 echo i586-dg-dgux${UNAME_RELEASE}
476 fi
477 exit ;;
478 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
479 echo m88k-dolphin-sysv3
480 exit ;;
481 M88*:*:R3*:*)
482 # Delta 88k system running SVR3
483 echo m88k-motorola-sysv3
484 exit ;;
485 XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
486 echo m88k-tektronix-sysv3
487 exit ;;
488 Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
489 echo m68k-tektronix-bsd
490 exit ;;
491 *:IRIX*:*:*)
492 echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
493 exit ;;
494 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
495 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
496 exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
497 i*86:AIX:*:*)
498 echo i386-ibm-aix
499 exit ;;
500 ia64:AIX:*:*)
501 if [ -x /usr/bin/oslevel ] ; then
502 IBM_REV=`/usr/bin/oslevel`
503 else
504 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
505 fi
506 echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
507 exit ;;
508 *:AIX:2:3)
509 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
510 eval $set_cc_for_build
511 sed 's/^ //' << EOF >$dummy.c
512 #include <sys/systemcfg.h>
513
514 main()
515 {
516 if (!__power_pc())
517 exit(1);
518 puts("powerpc-ibm-aix3.2.5");
519 exit(0);
520 }
521 EOF
522 if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
523 then
524 echo "$SYSTEM_NAME"
525 else
526 echo rs6000-ibm-aix3.2.5
527 fi
528 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
529 echo rs6000-ibm-aix3.2.4
530 else
531 echo rs6000-ibm-aix3.2
532 fi
533 exit ;;
534 *:AIX:*:[45])
535 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
536 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
537 IBM_ARCH=rs6000
538 else
539 IBM_ARCH=powerpc
540 fi
541 if [ -x /usr/bin/oslevel ] ; then
542 IBM_REV=`/usr/bin/oslevel`
543 else
544 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
545 fi
546 echo ${IBM_ARCH}-ibm-aix${IBM_REV}
547 exit ;;
548 *:AIX:*:*)
549 echo rs6000-ibm-aix
550 exit ;;
551 ibmrt:4.4BSD:*|romp-ibm:BSD:*)
552 echo romp-ibm-bsd4.4
553 exit ;;
554 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
555 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
556 exit ;; # report: romp-ibm BSD 4.3
557 *:BOSX:*:*)
558 echo rs6000-bull-bosx
559 exit ;;
560 DPX/2?00:B.O.S.:*:*)
561 echo m68k-bull-sysv3
562 exit ;;
563 9000/[34]??:4.3bsd:1.*:*)
564 echo m68k-hp-bsd
565 exit ;;
566 hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
567 echo m68k-hp-bsd4.4
568 exit ;;
569 9000/[34678]??:HP-UX:*:*)
570 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
571 case "${UNAME_MACHINE}" in
572 9000/31? ) HP_ARCH=m68000 ;;
573 9000/[34]?? ) HP_ARCH=m68k ;;
574 9000/[678][0-9][0-9])
575 if [ -x /usr/bin/getconf ]; then
576 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
577 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
578 case "${sc_cpu_version}" in
579 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
580 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
581 532) # CPU_PA_RISC2_0
582 case "${sc_kernel_bits}" in
583 32) HP_ARCH="hppa2.0n" ;;
584 64) HP_ARCH="hppa2.0w" ;;
585 '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
586 esac ;;
587 esac
588 fi
589 if [ "${HP_ARCH}" = "" ]; then
590 eval $set_cc_for_build
591 sed 's/^ //' << EOF >$dummy.c
592
593 #define _HPUX_SOURCE
594 #include <stdlib.h>
595 #include <unistd.h>
596
597 int main ()
598 {
599 #if defined(_SC_KERNEL_BITS)
600 long bits = sysconf(_SC_KERNEL_BITS);
601 #endif
602 long cpu = sysconf (_SC_CPU_VERSION);
603
604 switch (cpu)
605 {
606 case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
607 case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
608 case CPU_PA_RISC2_0:
609 #if defined(_SC_KERNEL_BITS)
610 switch (bits)
611 {
612 case 64: puts ("hppa2.0w"); break;
613 case 32: puts ("hppa2.0n"); break;
614 default: puts ("hppa2.0"); break;
615 } break;
616 #else /* !defined(_SC_KERNEL_BITS) */
617 puts ("hppa2.0"); break;
618 #endif
619 default: puts ("hppa1.0"); break;
620 }
621 exit (0);
622 }
623 EOF
624 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
625 test -z "$HP_ARCH" && HP_ARCH=hppa
626 fi ;;
627 esac
628 if [ ${HP_ARCH} = "hppa2.0w" ]
629 then
630 eval $set_cc_for_build
631
632 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
633 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
634 # generating 64-bit code. GNU and HP use different nomenclature:
635 #
636 # $ CC_FOR_BUILD=cc ./config.guess
637 # => hppa2.0w-hp-hpux11.23
638 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
639 # => hppa64-hp-hpux11.23
640
641 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
642 grep __LP64__ >/dev/null
643 then
644 HP_ARCH="hppa2.0w"
645 else
646 HP_ARCH="hppa64"
647 fi
648 fi
649 echo ${HP_ARCH}-hp-hpux${HPUX_REV}
650 exit ;;
651 ia64:HP-UX:*:*)
652 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
653 echo ia64-hp-hpux${HPUX_REV}
654 exit ;;
655 3050*:HI-UX:*:*)
656 eval $set_cc_for_build
657 sed 's/^ //' << EOF >$dummy.c
658 #include <unistd.h>
659 int
660 main ()
661 {
662 long cpu = sysconf (_SC_CPU_VERSION);
663 /* The order matters, because CPU_IS_HP_MC68K erroneously returns
664 true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
665 results, however. */
666 if (CPU_IS_PA_RISC (cpu))
667 {
668 switch (cpu)
669 {
670 case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
671 case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
672 case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
673 default: puts ("hppa-hitachi-hiuxwe2"); break;
674 }
675 }
676 else if (CPU_IS_HP_MC68K (cpu))
677 puts ("m68k-hitachi-hiuxwe2");
678 else puts ("unknown-hitachi-hiuxwe2");
679 exit (0);
680 }
681 EOF
682 $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
683 { echo "$SYSTEM_NAME"; exit; }
684 echo unknown-hitachi-hiuxwe2
685 exit ;;
686 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
687 echo hppa1.1-hp-bsd
688 exit ;;
689 9000/8??:4.3bsd:*:*)
690 echo hppa1.0-hp-bsd
691 exit ;;
692 *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
693 echo hppa1.0-hp-mpeix
694 exit ;;
695 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
696 echo hppa1.1-hp-osf
697 exit ;;
698 hp8??:OSF1:*:*)
699 echo hppa1.0-hp-osf
700 exit ;;
701 i*86:OSF1:*:*)
702 if [ -x /usr/sbin/sysversion ] ; then
703 echo ${UNAME_MACHINE}-unknown-osf1mk
704 else
705 echo ${UNAME_MACHINE}-unknown-osf1
706 fi
707 exit ;;
708 parisc*:Lites*:*:*)
709 echo hppa1.1-hp-lites
710 exit ;;
711 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
712 echo c1-convex-bsd
713 exit ;;
714 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
715 if getsysinfo -f scalar_acc
716 then echo c32-convex-bsd
717 else echo c2-convex-bsd
718 fi
719 exit ;;
720 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
721 echo c34-convex-bsd
722 exit ;;
723 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
724 echo c38-convex-bsd
725 exit ;;
726 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
727 echo c4-convex-bsd
728 exit ;;
729 CRAY*Y-MP:*:*:*)
730 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
731 exit ;;
732 CRAY*[A-Z]90:*:*:*)
733 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
734 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
735 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
736 -e 's/\.[^.]*$/.X/'
737 exit ;;
738 CRAY*TS:*:*:*)
739 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
740 exit ;;
741 CRAY*T3E:*:*:*)
742 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
743 exit ;;
744 CRAY*SV1:*:*:*)
745 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
746 exit ;;
747 *:UNICOS/mp:*:*)
748 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
749 exit ;;
750 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
751 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
752 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
753 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
754 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
755 exit ;;
756 5000:UNIX_System_V:4.*:*)
757 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
758 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
759 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
760 exit ;;
761 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
762 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
763 exit ;;
764 sparc*:BSD/OS:*:*)
765 echo sparc-unknown-bsdi${UNAME_RELEASE}
766 exit ;;
767 *:BSD/OS:*:*)
768 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
769 exit ;;
770 *:FreeBSD:*:*)
771 case ${UNAME_MACHINE} in
772 pc98)
773 echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
774 amd64)
775 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
776 *)
777 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
778 esac
779 exit ;;
780 i*:CYGWIN*:*)
781 echo ${UNAME_MACHINE}-pc-cygwin
782 exit ;;
783 *:MINGW*:*)
784 echo ${UNAME_MACHINE}-pc-mingw32
785 exit ;;
786 i*:windows32*:*)
787 # uname -m includes "-pc" on this system.
788 echo ${UNAME_MACHINE}-mingw32
789 exit ;;
790 i*:PW*:*)
791 echo ${UNAME_MACHINE}-pc-pw32
792 exit ;;
793 *:Interix*:[3456]*)
794 case ${UNAME_MACHINE} in
795 x86)
796 echo i586-pc-interix${UNAME_RELEASE}
797 exit ;;
798 EM64T | authenticamd)
799 echo x86_64-unknown-interix${UNAME_RELEASE}
800 exit ;;
801 esac ;;
802 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
803 echo i${UNAME_MACHINE}-pc-mks
804 exit ;;
805 i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
806 # How do we know it's Interix rather than the generic POSIX subsystem?
807 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
808 # UNAME_MACHINE based on the output of uname instead of i386?
809 echo i586-pc-interix
810 exit ;;
811 i*:UWIN*:*)
812 echo ${UNAME_MACHINE}-pc-uwin
813 exit ;;
814 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
815 echo x86_64-unknown-cygwin
816 exit ;;
817 p*:CYGWIN*:*)
818 echo powerpcle-unknown-cygwin
819 exit ;;
820 prep*:SunOS:5.*:*)
821 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
822 exit ;;
823 *:GNU:*:*)
824 # the GNU system
825 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
826 exit ;;
827 *:GNU/*:*:*)
828 # other systems with GNU libc and userland
829 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
830 exit ;;
831 i*86:Minix:*:*)
832 echo ${UNAME_MACHINE}-pc-minix
833 exit ;;
834 arm*:Linux:*:*)
835 echo ${UNAME_MACHINE}-unknown-linux-gnu
836 exit ;;
837 avr32*:Linux:*:*)
838 echo ${UNAME_MACHINE}-unknown-linux-gnu
839 exit ;;
840 cris:Linux:*:*)
841 echo cris-axis-linux-gnu
842 exit ;;
843 crisv32:Linux:*:*)
844 echo crisv32-axis-linux-gnu
845 exit ;;
846 frv:Linux:*:*)
847 echo frv-unknown-linux-gnu
848 exit ;;
849 ia64:Linux:*:*)
850 echo ${UNAME_MACHINE}-unknown-linux-gnu
851 exit ;;
852 m32r*:Linux:*:*)
853 echo ${UNAME_MACHINE}-unknown-linux-gnu
854 exit ;;
855 m68*:Linux:*:*)
856 echo ${UNAME_MACHINE}-unknown-linux-gnu
857 exit ;;
858 mips:Linux:*:*)
859 eval $set_cc_for_build
860 sed 's/^ //' << EOF >$dummy.c
861 #undef CPU
862 #undef mips
863 #undef mipsel
864 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
865 CPU=mipsel
866 #else
867 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
868 CPU=mips
869 #else
870 CPU=
871 #endif
872 #endif
873 EOF
874 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
875 /^CPU/{
876 s: ::g
877 p
878 }'`"
879 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
880 ;;
881 mips64:Linux:*:*)
882 eval $set_cc_for_build
883 sed 's/^ //' << EOF >$dummy.c
884 #undef CPU
885 #undef mips64
886 #undef mips64el
887 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
888 CPU=mips64el
889 #else
890 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
891 CPU=mips64
892 #else
893 CPU=
894 #endif
895 #endif
896 EOF
897 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
898 /^CPU/{
899 s: ::g
900 p
901 }'`"
902 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
903 ;;
904 or32:Linux:*:*)
905 echo or32-unknown-linux-gnu
906 exit ;;
907 ppc:Linux:*:*)
908 echo powerpc-unknown-linux-gnu
909 exit ;;
910 ppc64:Linux:*:*)
911 echo powerpc64-unknown-linux-gnu
912 exit ;;
913 alpha:Linux:*:*)
914 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
915 EV5) UNAME_MACHINE=alphaev5 ;;
916 EV56) UNAME_MACHINE=alphaev56 ;;
917 PCA56) UNAME_MACHINE=alphapca56 ;;
918 PCA57) UNAME_MACHINE=alphapca56 ;;
919 EV6) UNAME_MACHINE=alphaev6 ;;
920 EV67) UNAME_MACHINE=alphaev67 ;;
921 EV68*) UNAME_MACHINE=alphaev68 ;;
922 esac
923 objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
924 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
925 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
926 exit ;;
927 parisc:Linux:*:* | hppa:Linux:*:*)
928 # Look for CPU level
929 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
930 PA7*) echo hppa1.1-unknown-linux-gnu ;;
931 PA8*) echo hppa2.0-unknown-linux-gnu ;;
932 *) echo hppa-unknown-linux-gnu ;;
933 esac
934 exit ;;
935 parisc64:Linux:*:* | hppa64:Linux:*:*)
936 echo hppa64-unknown-linux-gnu
937 exit ;;
938 s390:Linux:*:* | s390x:Linux:*:*)
939 echo ${UNAME_MACHINE}-ibm-linux
940 exit ;;
941 sh64*:Linux:*:*)
942 echo ${UNAME_MACHINE}-unknown-linux-gnu
943 exit ;;
944 sh*:Linux:*:*)
945 echo ${UNAME_MACHINE}-unknown-linux-gnu
946 exit ;;
947 sparc:Linux:*:* | sparc64:Linux:*:*)
948 echo ${UNAME_MACHINE}-unknown-linux-gnu
949 exit ;;
950 vax:Linux:*:*)
951 echo ${UNAME_MACHINE}-dec-linux-gnu
952 exit ;;
953 x86_64:Linux:*:*)
954 echo x86_64-unknown-linux-gnu
955 exit ;;
956 xtensa:Linux:*:*)
957 echo xtensa-unknown-linux-gnu
958 exit ;;
959 i*86:Linux:*:*)
960 # The BFD linker knows what the default object file format is, so
961 # first see if it will tell us. cd to the root directory to prevent
962 # problems with other programs or directories called `ld' in the path.
963 # Set LC_ALL=C to ensure ld outputs messages in English.
964 ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
965 | sed -ne '/supported targets:/!d
966 s/[ ][ ]*/ /g
967 s/.*supported targets: *//
968 s/ .*//
969 p'`
970 case "$ld_supported_targets" in
971 elf32-i386)
972 TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
973 ;;
974 a.out-i386-linux)
975 echo "${UNAME_MACHINE}-pc-linux-gnuaout"
976 exit ;;
977 coff-i386)
978 echo "${UNAME_MACHINE}-pc-linux-gnucoff"
979 exit ;;
980 "")
981 # Either a pre-BFD a.out linker (linux-gnuoldld) or
982 # one that does not give us useful --help.
983 echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
984 exit ;;
985 esac
986 # Determine whether the default compiler is a.out or elf
987 eval $set_cc_for_build
988 sed 's/^ //' << EOF >$dummy.c
989 #include <features.h>
990 #ifdef __ELF__
991 # ifdef __GLIBC__
992 # if __GLIBC__ >= 2
993 LIBC=gnu
994 # else
995 LIBC=gnulibc1
996 # endif
997 # else
998 LIBC=gnulibc1
999 # endif
1000 #else
1001 #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
1002 LIBC=gnu
1003 #else
1004 LIBC=gnuaout
1005 #endif
1006 #endif
1007 #ifdef __dietlibc__
1008 LIBC=dietlibc
1009 #endif
1010 EOF
1011 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
1012 /^LIBC/{
1013 s: ::g
1014 p
1015 }'`"
1016 test x"${LIBC}" != x && {
1017 echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
1018 exit
1019 }
1020 test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
1021 ;;
1022 i*86:DYNIX/ptx:4*:*)
1023 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
1024 # earlier versions are messed up and put the nodename in both
1025 # sysname and nodename.
1026 echo i386-sequent-sysv4
1027 exit ;;
1028 i*86:UNIX_SV:4.2MP:2.*)
1029 # Unixware is an offshoot of SVR4, but it has its own version
1030 # number series starting with 2...
1031 # I am not positive that other SVR4 systems won't match this,
1032 # I just have to hope. -- rms.
1033 # Use sysv4.2uw... so that sysv4* matches it.
1034 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
1035 exit ;;
1036 i*86:OS/2:*:*)
1037 # If we were able to find `uname', then EMX Unix compatibility
1038 # is probably installed.
1039 echo ${UNAME_MACHINE}-pc-os2-emx
1040 exit ;;
1041 i*86:XTS-300:*:STOP)
1042 echo ${UNAME_MACHINE}-unknown-stop
1043 exit ;;
1044 i*86:atheos:*:*)
1045 echo ${UNAME_MACHINE}-unknown-atheos
1046 exit ;;
1047 i*86:syllable:*:*)
1048 echo ${UNAME_MACHINE}-pc-syllable
1049 exit ;;
1050 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
1051 echo i386-unknown-lynxos${UNAME_RELEASE}
1052 exit ;;
1053 i*86:*DOS:*:*)
1054 echo ${UNAME_MACHINE}-pc-msdosdjgpp
1055 exit ;;
1056 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
1057 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
1058 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1059 echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
1060 else
1061 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
1062 fi
1063 exit ;;
1064 i*86:*:5:[678]*)
1065 # UnixWare 7.x, OpenUNIX and OpenServer 6.
1066 case `/bin/uname -X | grep "^Machine"` in
1067 *486*) UNAME_MACHINE=i486 ;;
1068 *Pentium) UNAME_MACHINE=i586 ;;
1069 *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
1070 esac
1071 echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1072 exit ;;
1073 i*86:*:3.2:*)
1074 if test -f /usr/options/cb.name; then
1075 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
1076 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
1077 elif /bin/uname -X 2>/dev/null >/dev/null ; then
1078 UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
1079 (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
1080 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
1081 && UNAME_MACHINE=i586
1082 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
1083 && UNAME_MACHINE=i686
1084 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
1085 && UNAME_MACHINE=i686
1086 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
1087 else
1088 echo ${UNAME_MACHINE}-pc-sysv32
1089 fi
1090 exit ;;
1091 pc:*:*:*)
1092 # Left here for compatibility:
1093 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1094 # the processor, so we play safe by assuming i386.
1095 echo i386-pc-msdosdjgpp
1096 exit ;;
1097 Intel:Mach:3*:*)
1098 echo i386-pc-mach3
1099 exit ;;
1100 paragon:*:*:*)
1101 echo i860-intel-osf1
1102 exit ;;
1103 i860:*:4.*:*) # i860-SVR4
1104 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1105 echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
1106 else # Add other i860-SVR4 vendors below as they are discovered.
1107 echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
1108 fi
1109 exit ;;
1110 mini*:CTIX:SYS*5:*)
1111 # "miniframe"
1112 echo m68010-convergent-sysv
1113 exit ;;
1114 mc68k:UNIX:SYSTEM5:3.51m)
1115 echo m68k-convergent-sysv
1116 exit ;;
1117 M680?0:D-NIX:5.3:*)
1118 echo m68k-diab-dnix
1119 exit ;;
1120 M68*:*:R3V[5678]*:*)
1121 test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
1122 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)
1123 OS_REL=''
1124 test -r /etc/.relid \
1125 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1126 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1127 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1128 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1129 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1130 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1131 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1132 && { echo i486-ncr-sysv4; exit; } ;;
1133 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1134 echo m68k-unknown-lynxos${UNAME_RELEASE}
1135 exit ;;
1136 mc68030:UNIX_System_V:4.*:*)
1137 echo m68k-atari-sysv4
1138 exit ;;
1139 TSUNAMI:LynxOS:2.*:*)
1140 echo sparc-unknown-lynxos${UNAME_RELEASE}
1141 exit ;;
1142 rs6000:LynxOS:2.*:*)
1143 echo rs6000-unknown-lynxos${UNAME_RELEASE}
1144 exit ;;
1145 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
1146 echo powerpc-unknown-lynxos${UNAME_RELEASE}
1147 exit ;;
1148 SM[BE]S:UNIX_SV:*:*)
1149 echo mips-dde-sysv${UNAME_RELEASE}
1150 exit ;;
1151 RM*:ReliantUNIX-*:*:*)
1152 echo mips-sni-sysv4
1153 exit ;;
1154 RM*:SINIX-*:*:*)
1155 echo mips-sni-sysv4
1156 exit ;;
1157 *:SINIX-*:*:*)
1158 if uname -p 2>/dev/null >/dev/null ; then
1159 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1160 echo ${UNAME_MACHINE}-sni-sysv4
1161 else
1162 echo ns32k-sni-sysv
1163 fi
1164 exit ;;
1165 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1166 # says <Richard.M.Bartel@ccMail.Census.GOV>
1167 echo i586-unisys-sysv4
1168 exit ;;
1169 *:UNIX_System_V:4*:FTX*)
1170 # From Gerald Hewes <hewes@openmarket.com>.
1171 # How about differentiating between stratus architectures? -djm
1172 echo hppa1.1-stratus-sysv4
1173 exit ;;
1174 *:*:*:FTX*)
1175 # From seanf@swdc.stratus.com.
1176 echo i860-stratus-sysv4
1177 exit ;;
1178 i*86:VOS:*:*)
1179 # From Paul.Green@stratus.com.
1180 echo ${UNAME_MACHINE}-stratus-vos
1181 exit ;;
1182 *:VOS:*:*)
1183 # From Paul.Green@stratus.com.
1184 echo hppa1.1-stratus-vos
1185 exit ;;
1186 mc68*:A/UX:*:*)
1187 echo m68k-apple-aux${UNAME_RELEASE}
1188 exit ;;
1189 news*:NEWS-OS:6*:*)
1190 echo mips-sony-newsos6
1191 exit ;;
1192 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1193 if [ -d /usr/nec ]; then
1194 echo mips-nec-sysv${UNAME_RELEASE}
1195 else
1196 echo mips-unknown-sysv${UNAME_RELEASE}
1197 fi
1198 exit ;;
1199 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
1200 echo powerpc-be-beos
1201 exit ;;
1202 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
1203 echo powerpc-apple-beos
1204 exit ;;
1205 BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
1206 echo i586-pc-beos
1207 exit ;;
1208 SX-4:SUPER-UX:*:*)
1209 echo sx4-nec-superux${UNAME_RELEASE}
1210 exit ;;
1211 SX-5:SUPER-UX:*:*)
1212 echo sx5-nec-superux${UNAME_RELEASE}
1213 exit ;;
1214 SX-6:SUPER-UX:*:*)
1215 echo sx6-nec-superux${UNAME_RELEASE}
1216 exit ;;
1217 SX-7:SUPER-UX:*:*)
1218 echo sx7-nec-superux${UNAME_RELEASE}
1219 exit ;;
1220 SX-8:SUPER-UX:*:*)
1221 echo sx8-nec-superux${UNAME_RELEASE}
1222 exit ;;
1223 SX-8R:SUPER-UX:*:*)
1224 echo sx8r-nec-superux${UNAME_RELEASE}
1225 exit ;;
1226 Power*:Rhapsody:*:*)
1227 echo powerpc-apple-rhapsody${UNAME_RELEASE}
1228 exit ;;
1229 *:Rhapsody:*:*)
1230 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1231 exit ;;
1232 *:Darwin:*:*)
1233 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1234 case $UNAME_PROCESSOR in
1235 unknown) UNAME_PROCESSOR=powerpc ;;
1236 esac
1237 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1238 exit ;;
1239 *:procnto*:*:* | *:QNX:[0123456789]*:*)
1240 UNAME_PROCESSOR=`uname -p`
1241 if test "$UNAME_PROCESSOR" = "x86"; then
1242 UNAME_PROCESSOR=i386
1243 UNAME_MACHINE=pc
1244 fi
1245 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
1246 exit ;;
1247 *:QNX:*:4*)
1248 echo i386-pc-qnx
1249 exit ;;
1250 NSE-?:NONSTOP_KERNEL:*:*)
1251 echo nse-tandem-nsk${UNAME_RELEASE}
1252 exit ;;
1253 NSR-?:NONSTOP_KERNEL:*:*)
1254 echo nsr-tandem-nsk${UNAME_RELEASE}
1255 exit ;;
1256 *:NonStop-UX:*:*)
1257 echo mips-compaq-nonstopux
1258 exit ;;
1259 BS2000:POSIX*:*:*)
1260 echo bs2000-siemens-sysv
1261 exit ;;
1262 DS/*:UNIX_System_V:*:*)
1263 echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
1264 exit ;;
1265 *:Plan9:*:*)
1266 # "uname -m" is not consistent, so use $cputype instead. 386
1267 # is converted to i386 for consistency with other x86
1268 # operating systems.
1269 if test "$cputype" = "386"; then
1270 UNAME_MACHINE=i386
1271 else
1272 UNAME_MACHINE="$cputype"
1273 fi
1274 echo ${UNAME_MACHINE}-unknown-plan9
1275 exit ;;
1276 *:TOPS-10:*:*)
1277 echo pdp10-unknown-tops10
1278 exit ;;
1279 *:TENEX:*:*)
1280 echo pdp10-unknown-tenex
1281 exit ;;
1282 KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1283 echo pdp10-dec-tops20
1284 exit ;;
1285 XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
1286 echo pdp10-xkl-tops20
1287 exit ;;
1288 *:TOPS-20:*:*)
1289 echo pdp10-unknown-tops20
1290 exit ;;
1291 *:ITS:*:*)
1292 echo pdp10-unknown-its
1293 exit ;;
1294 SEI:*:*:SEIUX)
1295 echo mips-sei-seiux${UNAME_RELEASE}
1296 exit ;;
1297 *:DragonFly:*:*)
1298 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1299 exit ;;
1300 *:*VMS:*:*)
1301 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1302 case "${UNAME_MACHINE}" in
1303 A*) echo alpha-dec-vms ; exit ;;
1304 I*) echo ia64-dec-vms ; exit ;;
1305 V*) echo vax-dec-vms ; exit ;;
1306 esac ;;
1307 *:XENIX:*:SysV)
1308 echo i386-pc-xenix
1309 exit ;;
1310 i*86:skyos:*:*)
1311 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1312 exit ;;
1313 i*86:rdos:*:*)
1314 echo ${UNAME_MACHINE}-pc-rdos
1315 exit ;;
1316 esac
1317
1318 #echo '(No uname command or uname output not recognized.)' 1>&2
1319 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
1320
1321 eval $set_cc_for_build
1322 cat >$dummy.c <<EOF
1323 #ifdef _SEQUENT_
1324 # include <sys/types.h>
1325 # include <sys/utsname.h>
1326 #endif
1327 main ()
1328 {
1329 #if defined (sony)
1330 #if defined (MIPSEB)
1331 /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
1332 I don't know.... */
1333 printf ("mips-sony-bsd\n"); exit (0);
1334 #else
1335 #include <sys/param.h>
1336 printf ("m68k-sony-newsos%s\n",
1337 #ifdef NEWSOS4
1338 "4"
1339 #else
1340 ""
1341 #endif
1342 ); exit (0);
1343 #endif
1344 #endif
1345
1346 #if defined (__arm) && defined (__acorn) && defined (__unix)
1347 printf ("arm-acorn-riscix\n"); exit (0);
1348 #endif
1349
1350 #if defined (hp300) && !defined (hpux)
1351 printf ("m68k-hp-bsd\n"); exit (0);
1352 #endif
1353
1354 #if defined (NeXT)
1355 #if !defined (__ARCHITECTURE__)
1356 #define __ARCHITECTURE__ "m68k"
1357 #endif
1358 int version;
1359 version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
1360 if (version < 4)
1361 printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
1362 else
1363 printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
1364 exit (0);
1365 #endif
1366
1367 #if defined (MULTIMAX) || defined (n16)
1368 #if defined (UMAXV)
1369 printf ("ns32k-encore-sysv\n"); exit (0);
1370 #else
1371 #if defined (CMU)
1372 printf ("ns32k-encore-mach\n"); exit (0);
1373 #else
1374 printf ("ns32k-encore-bsd\n"); exit (0);
1375 #endif
1376 #endif
1377 #endif
1378
1379 #if defined (__386BSD__)
1380 printf ("i386-pc-bsd\n"); exit (0);
1381 #endif
1382
1383 #if defined (sequent)
1384 #if defined (i386)
1385 printf ("i386-sequent-dynix\n"); exit (0);
1386 #endif
1387 #if defined (ns32000)
1388 printf ("ns32k-sequent-dynix\n"); exit (0);
1389 #endif
1390 #endif
1391
1392 #if defined (_SEQUENT_)
1393 struct utsname un;
1394
1395 uname(&un);
1396
1397 if (strncmp(un.version, "V2", 2) == 0) {
1398 printf ("i386-sequent-ptx2\n"); exit (0);
1399 }
1400 if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
1401 printf ("i386-sequent-ptx1\n"); exit (0);
1402 }
1403 printf ("i386-sequent-ptx\n"); exit (0);
1404
1405 #endif
1406
1407 #if defined (vax)
1408 # if !defined (ultrix)
1409 # include <sys/param.h>
1410 # if defined (BSD)
1411 # if BSD == 43
1412 printf ("vax-dec-bsd4.3\n"); exit (0);
1413 # else
1414 # if BSD == 199006
1415 printf ("vax-dec-bsd4.3reno\n"); exit (0);
1416 # else
1417 printf ("vax-dec-bsd\n"); exit (0);
1418 # endif
1419 # endif
1420 # else
1421 printf ("vax-dec-bsd\n"); exit (0);
1422 # endif
1423 # else
1424 printf ("vax-dec-ultrix\n"); exit (0);
1425 # endif
1426 #endif
1427
1428 #if defined (alliant) && defined (i860)
1429 printf ("i860-alliant-bsd\n"); exit (0);
1430 #endif
1431
1432 exit (1);
1433 }
1434 EOF
1435
1436 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
1437 { echo "$SYSTEM_NAME"; exit; }
1438
1439 # Apollos put the system type in the environment.
1440
1441 test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
1442
1443 # Convex versions that predate uname can use getsysinfo(1)
1444
1445 if [ -x /usr/convex/getsysinfo ]
1446 then
1447 case `getsysinfo -f cpu_type` in
1448 c1*)
1449 echo c1-convex-bsd
1450 exit ;;
1451 c2*)
1452 if getsysinfo -f scalar_acc
1453 then echo c32-convex-bsd
1454 else echo c2-convex-bsd
1455 fi
1456 exit ;;
1457 c34*)
1458 echo c34-convex-bsd
1459 exit ;;
1460 c38*)
1461 echo c38-convex-bsd
1462 exit ;;
1463 c4*)
1464 echo c4-convex-bsd
1465 exit ;;
1466 esac
1467 fi
1468
1469 cat >&2 <<EOF
1470 $0: unable to guess system type
1471
1472 This script, last modified $timestamp, has failed to recognize
1473 the operating system you are using. It is advised that you
1474 download the most up to date version of the config scripts from
1475
1476 http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
1477 and
1478 http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
1479
1480 If the version you run ($0) is already up to date, please
1481 send the following data and any information you think might be
1482 pertinent to <config-patches@gnu.org> in order to provide the needed
1483 information to handle your system.
1484
1485 config.guess timestamp = $timestamp
1486
1487 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1488 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1489 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1490 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1491
1492 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
1493 /bin/uname -X = `(/bin/uname -X) 2>/dev/null`
1494
1495 hostinfo = `(hostinfo) 2>/dev/null`
1496 /bin/universe = `(/bin/universe) 2>/dev/null`
1497 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
1498 /bin/arch = `(/bin/arch) 2>/dev/null`
1499 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
1500 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
1501
1502 UNAME_MACHINE = ${UNAME_MACHINE}
1503 UNAME_RELEASE = ${UNAME_RELEASE}
1504 UNAME_SYSTEM = ${UNAME_SYSTEM}
1505 UNAME_VERSION = ${UNAME_VERSION}
1506 EOF
1507
1508 exit 1
1509
1510 # Local variables:
1511 # eval: (add-hook 'write-file-hooks 'time-stamp)
1512 # time-stamp-start: "timestamp='"
1513 # time-stamp-format: "%:y-%02m-%02d"
1514 # time-stamp-end: "'"
1515 # End:
0 /* config.h.in. Generated from configure.ac by autoheader. */
1
2 /* Define to 1 if you have the <dlfcn.h> header file. */
3 #undef HAVE_DLFCN_H
4
5 /* Define to 1 if you have the <inttypes.h> header file. */
6 #undef HAVE_INTTYPES_H
7
8 /* Define to 1 if you have the <memory.h> header file. */
9 #undef HAVE_MEMORY_H
10
11 /* Define to 1 if you have the <stdint.h> header file. */
12 #undef HAVE_STDINT_H
13
14 /* Define to 1 if you have the <stdlib.h> header file. */
15 #undef HAVE_STDLIB_H
16
17 /* Define to 1 if you have the <strings.h> header file. */
18 #undef HAVE_STRINGS_H
19
20 /* Define to 1 if you have the <string.h> header file. */
21 #undef HAVE_STRING_H
22
23 /* Define to 1 if you have the <sys/stat.h> header file. */
24 #undef HAVE_SYS_STAT_H
25
26 /* Define to 1 if you have the <sys/types.h> header file. */
27 #undef HAVE_SYS_TYPES_H
28
29 /* Define to 1 if you have the <unistd.h> header file. */
30 #undef HAVE_UNISTD_H
31
32 /* Define to 1 if your C compiler doesn't accept -c and -o together. */
33 #undef NO_MINUS_C_MINUS_O
34
35 /* Name of package */
36 #undef PACKAGE
37
38 /* Define to the address where bug reports for this package should be sent. */
39 #undef PACKAGE_BUGREPORT
40
41 /* Define to the full name of this package. */
42 #undef PACKAGE_NAME
43
44 /* Define to the full name and version of this package. */
45 #undef PACKAGE_STRING
46
47 /* Define to the one symbol short name of this package. */
48 #undef PACKAGE_TARNAME
49
50 /* Define to the version of this package. */
51 #undef PACKAGE_VERSION
52
53 /* Define to 1 if you have the ANSI C header files. */
54 #undef STDC_HEADERS
55
56 /* Version number of package */
57 #undef VERSION
58
59 /* Enable GNU extensions */
60 #undef _GNU_SOURCE
0 #! /bin/sh
1 # Configuration validation subroutine script.
2 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
4 # Inc.
5
6 timestamp='2007-04-29'
7
8 # This file is (in principle) common to ALL GNU software.
9 # The presence of a machine in this file suggests that SOME GNU software
10 # can handle that machine. It does not imply ALL GNU software can.
11 #
12 # This file is free software; you can redistribute it and/or modify
13 # it under the terms of the GNU General Public License as published by
14 # the Free Software Foundation; either version 2 of the License, or
15 # (at your option) any later version.
16 #
17 # This program is distributed in the hope that it will be useful,
18 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 # GNU General Public License for more details.
21 #
22 # You should have received a copy of the GNU General Public License
23 # along with this program; if not, write to the Free Software
24 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
25 # 02110-1301, USA.
26 #
27 # As a special exception to the GNU General Public License, if you
28 # distribute this file as part of a program that contains a
29 # configuration script generated by Autoconf, you may include it under
30 # the same distribution terms that you use for the rest of that program.
31
32
33 # Please send patches to <config-patches@gnu.org>. Submit a context
34 # diff and a properly formatted ChangeLog entry.
35 #
36 # Configuration subroutine to validate and canonicalize a configuration type.
37 # Supply the specified configuration type as an argument.
38 # If it is invalid, we print an error message on stderr and exit with code 1.
39 # Otherwise, we print the canonical config type on stdout and succeed.
40
41 # This file is supposed to be the same for all GNU packages
42 # and recognize all the CPU types, system types and aliases
43 # that are meaningful with *any* GNU software.
44 # Each package is responsible for reporting which valid configurations
45 # it does not support. The user should be able to distinguish
46 # a failure to support a valid configuration from a meaningless
47 # configuration.
48
49 # The goal of this file is to map all the various variations of a given
50 # machine specification into a single specification in the form:
51 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
52 # or in some cases, the newer four-part form:
53 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
54 # It is wrong to echo any other type of specification.
55
56 me=`echo "$0" | sed -e 's,.*/,,'`
57
58 usage="\
59 Usage: $0 [OPTION] CPU-MFR-OPSYS
60 $0 [OPTION] ALIAS
61
62 Canonicalize a configuration name.
63
64 Operation modes:
65 -h, --help print this help, then exit
66 -t, --time-stamp print date of last modification, then exit
67 -v, --version print version number, then exit
68
69 Report bugs and patches to <config-patches@gnu.org>."
70
71 version="\
72 GNU config.sub ($timestamp)
73
74 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
75 Free Software Foundation, Inc.
76
77 This is free software; see the source for copying conditions. There is NO
78 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
79
80 help="
81 Try \`$me --help' for more information."
82
83 # Parse command line
84 while test $# -gt 0 ; do
85 case $1 in
86 --time-stamp | --time* | -t )
87 echo "$timestamp" ; exit ;;
88 --version | -v )
89 echo "$version" ; exit ;;
90 --help | --h* | -h )
91 echo "$usage"; exit ;;
92 -- ) # Stop option processing
93 shift; break ;;
94 - ) # Use stdin as input.
95 break ;;
96 -* )
97 echo "$me: invalid option $1$help"
98 exit 1 ;;
99
100 *local*)
101 # First pass through any local machine types.
102 echo $1
103 exit ;;
104
105 * )
106 break ;;
107 esac
108 done
109
110 case $# in
111 0) echo "$me: missing argument$help" >&2
112 exit 1;;
113 1) ;;
114 *) echo "$me: too many arguments$help" >&2
115 exit 1;;
116 esac
117
118 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
119 # Here we must recognize all the valid KERNEL-OS combinations.
120 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
121 case $maybe_os in
122 nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
123 uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
124 storm-chaos* | os2-emx* | rtmk-nova*)
125 os=-$maybe_os
126 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
127 ;;
128 *)
129 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
130 if [ $basic_machine != $1 ]
131 then os=`echo $1 | sed 's/.*-/-/'`
132 else os=; fi
133 ;;
134 esac
135
136 ### Let's recognize common machines as not being operating systems so
137 ### that things like config.sub decstation-3100 work. We also
138 ### recognize some manufacturers as not being operating systems, so we
139 ### can provide default operating systems below.
140 case $os in
141 -sun*os*)
142 # Prevent following clause from handling this invalid input.
143 ;;
144 -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
145 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
146 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
147 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
148 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
149 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
150 -apple | -axis | -knuth | -cray)
151 os=
152 basic_machine=$1
153 ;;
154 -sim | -cisco | -oki | -wec | -winbond)
155 os=
156 basic_machine=$1
157 ;;
158 -scout)
159 ;;
160 -wrs)
161 os=-vxworks
162 basic_machine=$1
163 ;;
164 -chorusos*)
165 os=-chorusos
166 basic_machine=$1
167 ;;
168 -chorusrdb)
169 os=-chorusrdb
170 basic_machine=$1
171 ;;
172 -hiux*)
173 os=-hiuxwe2
174 ;;
175 -sco6)
176 os=-sco5v6
177 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
178 ;;
179 -sco5)
180 os=-sco3.2v5
181 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
182 ;;
183 -sco4)
184 os=-sco3.2v4
185 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
186 ;;
187 -sco3.2.[4-9]*)
188 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
189 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
190 ;;
191 -sco3.2v[4-9]*)
192 # Don't forget version if it is 3.2v4 or newer.
193 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
194 ;;
195 -sco5v6*)
196 # Don't forget version if it is 3.2v4 or newer.
197 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
198 ;;
199 -sco*)
200 os=-sco3.2v2
201 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
202 ;;
203 -udk*)
204 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
205 ;;
206 -isc)
207 os=-isc2.2
208 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
209 ;;
210 -clix*)
211 basic_machine=clipper-intergraph
212 ;;
213 -isc*)
214 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
215 ;;
216 -lynx*)
217 os=-lynxos
218 ;;
219 -ptx*)
220 basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
221 ;;
222 -windowsnt*)
223 os=`echo $os | sed -e 's/windowsnt/winnt/'`
224 ;;
225 -psos*)
226 os=-psos
227 ;;
228 -mint | -mint[0-9]*)
229 basic_machine=m68k-atari
230 os=-mint
231 ;;
232 esac
233
234 # Decode aliases for certain CPU-COMPANY combinations.
235 case $basic_machine in
236 # Recognize the basic CPU types without company name.
237 # Some are omitted here because they have special meanings below.
238 1750a | 580 \
239 | a29k \
240 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
241 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
242 | am33_2.0 \
243 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
244 | bfin \
245 | c4x | clipper \
246 | d10v | d30v | dlx | dsp16xx \
247 | fido | fr30 | frv \
248 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
249 | i370 | i860 | i960 | ia64 \
250 | ip2k | iq2000 \
251 | m32c | m32r | m32rle | m68000 | m68k | m88k \
252 | maxq | mb | microblaze | mcore | mep \
253 | mips | mipsbe | mipseb | mipsel | mipsle \
254 | mips16 \
255 | mips64 | mips64el \
256 | mips64vr | mips64vrel \
257 | mips64orion | mips64orionel \
258 | mips64vr4100 | mips64vr4100el \
259 | mips64vr4300 | mips64vr4300el \
260 | mips64vr5000 | mips64vr5000el \
261 | mips64vr5900 | mips64vr5900el \
262 | mipsisa32 | mipsisa32el \
263 | mipsisa32r2 | mipsisa32r2el \
264 | mipsisa64 | mipsisa64el \
265 | mipsisa64r2 | mipsisa64r2el \
266 | mipsisa64sb1 | mipsisa64sb1el \
267 | mipsisa64sr71k | mipsisa64sr71kel \
268 | mipstx39 | mipstx39el \
269 | mn10200 | mn10300 \
270 | mt \
271 | msp430 \
272 | nios | nios2 \
273 | ns16k | ns32k \
274 | or32 \
275 | pdp10 | pdp11 | pj | pjl \
276 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
277 | pyramid \
278 | score \
279 | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
280 | sh64 | sh64le \
281 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
282 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
283 | spu | strongarm \
284 | tahoe | thumb | tic4x | tic80 | tron \
285 | v850 | v850e \
286 | we32k \
287 | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
288 | z8k)
289 basic_machine=$basic_machine-unknown
290 ;;
291 m6811 | m68hc11 | m6812 | m68hc12)
292 # Motorola 68HC11/12.
293 basic_machine=$basic_machine-unknown
294 os=-none
295 ;;
296 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
297 ;;
298 ms1)
299 basic_machine=mt-unknown
300 ;;
301
302 # We use `pc' rather than `unknown'
303 # because (1) that's what they normally are, and
304 # (2) the word "unknown" tends to confuse beginning users.
305 i*86 | x86_64)
306 basic_machine=$basic_machine-pc
307 ;;
308 # Object if more than one company name word.
309 *-*-*)
310 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
311 exit 1
312 ;;
313 # Recognize the basic CPU types with company name.
314 580-* \
315 | a29k-* \
316 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
317 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
318 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
319 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
320 | avr-* | avr32-* \
321 | bfin-* | bs2000-* \
322 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
323 | clipper-* | craynv-* | cydra-* \
324 | d10v-* | d30v-* | dlx-* \
325 | elxsi-* \
326 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
327 | h8300-* | h8500-* \
328 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
329 | i*86-* | i860-* | i960-* | ia64-* \
330 | ip2k-* | iq2000-* \
331 | m32c-* | m32r-* | m32rle-* \
332 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
333 | m88110-* | m88k-* | maxq-* | mcore-* \
334 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
335 | mips16-* \
336 | mips64-* | mips64el-* \
337 | mips64vr-* | mips64vrel-* \
338 | mips64orion-* | mips64orionel-* \
339 | mips64vr4100-* | mips64vr4100el-* \
340 | mips64vr4300-* | mips64vr4300el-* \
341 | mips64vr5000-* | mips64vr5000el-* \
342 | mips64vr5900-* | mips64vr5900el-* \
343 | mipsisa32-* | mipsisa32el-* \
344 | mipsisa32r2-* | mipsisa32r2el-* \
345 | mipsisa64-* | mipsisa64el-* \
346 | mipsisa64r2-* | mipsisa64r2el-* \
347 | mipsisa64sb1-* | mipsisa64sb1el-* \
348 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
349 | mipstx39-* | mipstx39el-* \
350 | mmix-* \
351 | mt-* \
352 | msp430-* \
353 | nios-* | nios2-* \
354 | none-* | np1-* | ns16k-* | ns32k-* \
355 | orion-* \
356 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
357 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
358 | pyramid-* \
359 | romp-* | rs6000-* \
360 | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
361 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
362 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
363 | sparclite-* \
364 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
365 | tahoe-* | thumb-* \
366 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
367 | tron-* \
368 | v850-* | v850e-* | vax-* \
369 | we32k-* \
370 | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
371 | xstormy16-* | xtensa-* \
372 | ymp-* \
373 | z8k-*)
374 ;;
375 # Recognize the various machine names and aliases which stand
376 # for a CPU type and a company and sometimes even an OS.
377 386bsd)
378 basic_machine=i386-unknown
379 os=-bsd
380 ;;
381 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
382 basic_machine=m68000-att
383 ;;
384 3b*)
385 basic_machine=we32k-att
386 ;;
387 a29khif)
388 basic_machine=a29k-amd
389 os=-udi
390 ;;
391 abacus)
392 basic_machine=abacus-unknown
393 ;;
394 adobe68k)
395 basic_machine=m68010-adobe
396 os=-scout
397 ;;
398 alliant | fx80)
399 basic_machine=fx80-alliant
400 ;;
401 altos | altos3068)
402 basic_machine=m68k-altos
403 ;;
404 am29k)
405 basic_machine=a29k-none
406 os=-bsd
407 ;;
408 amd64)
409 basic_machine=x86_64-pc
410 ;;
411 amd64-*)
412 basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
413 ;;
414 amdahl)
415 basic_machine=580-amdahl
416 os=-sysv
417 ;;
418 amiga | amiga-*)
419 basic_machine=m68k-unknown
420 ;;
421 amigaos | amigados)
422 basic_machine=m68k-unknown
423 os=-amigaos
424 ;;
425 amigaunix | amix)
426 basic_machine=m68k-unknown
427 os=-sysv4
428 ;;
429 apollo68)
430 basic_machine=m68k-apollo
431 os=-sysv
432 ;;
433 apollo68bsd)
434 basic_machine=m68k-apollo
435 os=-bsd
436 ;;
437 aux)
438 basic_machine=m68k-apple
439 os=-aux
440 ;;
441 balance)
442 basic_machine=ns32k-sequent
443 os=-dynix
444 ;;
445 c90)
446 basic_machine=c90-cray
447 os=-unicos
448 ;;
449 convex-c1)
450 basic_machine=c1-convex
451 os=-bsd
452 ;;
453 convex-c2)
454 basic_machine=c2-convex
455 os=-bsd
456 ;;
457 convex-c32)
458 basic_machine=c32-convex
459 os=-bsd
460 ;;
461 convex-c34)
462 basic_machine=c34-convex
463 os=-bsd
464 ;;
465 convex-c38)
466 basic_machine=c38-convex
467 os=-bsd
468 ;;
469 cray | j90)
470 basic_machine=j90-cray
471 os=-unicos
472 ;;
473 craynv)
474 basic_machine=craynv-cray
475 os=-unicosmp
476 ;;
477 cr16c)
478 basic_machine=cr16c-unknown
479 os=-elf
480 ;;
481 crds | unos)
482 basic_machine=m68k-crds
483 ;;
484 crisv32 | crisv32-* | etraxfs*)
485 basic_machine=crisv32-axis
486 ;;
487 cris | cris-* | etrax*)
488 basic_machine=cris-axis
489 ;;
490 crx)
491 basic_machine=crx-unknown
492 os=-elf
493 ;;
494 da30 | da30-*)
495 basic_machine=m68k-da30
496 ;;
497 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
498 basic_machine=mips-dec
499 ;;
500 decsystem10* | dec10*)
501 basic_machine=pdp10-dec
502 os=-tops10
503 ;;
504 decsystem20* | dec20*)
505 basic_machine=pdp10-dec
506 os=-tops20
507 ;;
508 delta | 3300 | motorola-3300 | motorola-delta \
509 | 3300-motorola | delta-motorola)
510 basic_machine=m68k-motorola
511 ;;
512 delta88)
513 basic_machine=m88k-motorola
514 os=-sysv3
515 ;;
516 djgpp)
517 basic_machine=i586-pc
518 os=-msdosdjgpp
519 ;;
520 dpx20 | dpx20-*)
521 basic_machine=rs6000-bull
522 os=-bosx
523 ;;
524 dpx2* | dpx2*-bull)
525 basic_machine=m68k-bull
526 os=-sysv3
527 ;;
528 ebmon29k)
529 basic_machine=a29k-amd
530 os=-ebmon
531 ;;
532 elxsi)
533 basic_machine=elxsi-elxsi
534 os=-bsd
535 ;;
536 encore | umax | mmax)
537 basic_machine=ns32k-encore
538 ;;
539 es1800 | OSE68k | ose68k | ose | OSE)
540 basic_machine=m68k-ericsson
541 os=-ose
542 ;;
543 fx2800)
544 basic_machine=i860-alliant
545 ;;
546 genix)
547 basic_machine=ns32k-ns
548 ;;
549 gmicro)
550 basic_machine=tron-gmicro
551 os=-sysv
552 ;;
553 go32)
554 basic_machine=i386-pc
555 os=-go32
556 ;;
557 h3050r* | hiux*)
558 basic_machine=hppa1.1-hitachi
559 os=-hiuxwe2
560 ;;
561 h8300hms)
562 basic_machine=h8300-hitachi
563 os=-hms
564 ;;
565 h8300xray)
566 basic_machine=h8300-hitachi
567 os=-xray
568 ;;
569 h8500hms)
570 basic_machine=h8500-hitachi
571 os=-hms
572 ;;
573 harris)
574 basic_machine=m88k-harris
575 os=-sysv3
576 ;;
577 hp300-*)
578 basic_machine=m68k-hp
579 ;;
580 hp300bsd)
581 basic_machine=m68k-hp
582 os=-bsd
583 ;;
584 hp300hpux)
585 basic_machine=m68k-hp
586 os=-hpux
587 ;;
588 hp3k9[0-9][0-9] | hp9[0-9][0-9])
589 basic_machine=hppa1.0-hp
590 ;;
591 hp9k2[0-9][0-9] | hp9k31[0-9])
592 basic_machine=m68000-hp
593 ;;
594 hp9k3[2-9][0-9])
595 basic_machine=m68k-hp
596 ;;
597 hp9k6[0-9][0-9] | hp6[0-9][0-9])
598 basic_machine=hppa1.0-hp
599 ;;
600 hp9k7[0-79][0-9] | hp7[0-79][0-9])
601 basic_machine=hppa1.1-hp
602 ;;
603 hp9k78[0-9] | hp78[0-9])
604 # FIXME: really hppa2.0-hp
605 basic_machine=hppa1.1-hp
606 ;;
607 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
608 # FIXME: really hppa2.0-hp
609 basic_machine=hppa1.1-hp
610 ;;
611 hp9k8[0-9][13679] | hp8[0-9][13679])
612 basic_machine=hppa1.1-hp
613 ;;
614 hp9k8[0-9][0-9] | hp8[0-9][0-9])
615 basic_machine=hppa1.0-hp
616 ;;
617 hppa-next)
618 os=-nextstep3
619 ;;
620 hppaosf)
621 basic_machine=hppa1.1-hp
622 os=-osf
623 ;;
624 hppro)
625 basic_machine=hppa1.1-hp
626 os=-proelf
627 ;;
628 i370-ibm* | ibm*)
629 basic_machine=i370-ibm
630 ;;
631 # I'm not sure what "Sysv32" means. Should this be sysv3.2?
632 i*86v32)
633 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
634 os=-sysv32
635 ;;
636 i*86v4*)
637 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
638 os=-sysv4
639 ;;
640 i*86v)
641 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
642 os=-sysv
643 ;;
644 i*86sol2)
645 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
646 os=-solaris2
647 ;;
648 i386mach)
649 basic_machine=i386-mach
650 os=-mach
651 ;;
652 i386-vsta | vsta)
653 basic_machine=i386-unknown
654 os=-vsta
655 ;;
656 iris | iris4d)
657 basic_machine=mips-sgi
658 case $os in
659 -irix*)
660 ;;
661 *)
662 os=-irix4
663 ;;
664 esac
665 ;;
666 isi68 | isi)
667 basic_machine=m68k-isi
668 os=-sysv
669 ;;
670 m88k-omron*)
671 basic_machine=m88k-omron
672 ;;
673 magnum | m3230)
674 basic_machine=mips-mips
675 os=-sysv
676 ;;
677 merlin)
678 basic_machine=ns32k-utek
679 os=-sysv
680 ;;
681 mingw32)
682 basic_machine=i386-pc
683 os=-mingw32
684 ;;
685 mingw32ce)
686 basic_machine=arm-unknown
687 os=-mingw32ce
688 ;;
689 miniframe)
690 basic_machine=m68000-convergent
691 ;;
692 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
693 basic_machine=m68k-atari
694 os=-mint
695 ;;
696 mips3*-*)
697 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
698 ;;
699 mips3*)
700 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
701 ;;
702 monitor)
703 basic_machine=m68k-rom68k
704 os=-coff
705 ;;
706 morphos)
707 basic_machine=powerpc-unknown
708 os=-morphos
709 ;;
710 msdos)
711 basic_machine=i386-pc
712 os=-msdos
713 ;;
714 ms1-*)
715 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
716 ;;
717 mvs)
718 basic_machine=i370-ibm
719 os=-mvs
720 ;;
721 ncr3000)
722 basic_machine=i486-ncr
723 os=-sysv4
724 ;;
725 netbsd386)
726 basic_machine=i386-unknown
727 os=-netbsd
728 ;;
729 netwinder)
730 basic_machine=armv4l-rebel
731 os=-linux
732 ;;
733 news | news700 | news800 | news900)
734 basic_machine=m68k-sony
735 os=-newsos
736 ;;
737 news1000)
738 basic_machine=m68030-sony
739 os=-newsos
740 ;;
741 news-3600 | risc-news)
742 basic_machine=mips-sony
743 os=-newsos
744 ;;
745 necv70)
746 basic_machine=v70-nec
747 os=-sysv
748 ;;
749 next | m*-next )
750 basic_machine=m68k-next
751 case $os in
752 -nextstep* )
753 ;;
754 -ns2*)
755 os=-nextstep2
756 ;;
757 *)
758 os=-nextstep3
759 ;;
760 esac
761 ;;
762 nh3000)
763 basic_machine=m68k-harris
764 os=-cxux
765 ;;
766 nh[45]000)
767 basic_machine=m88k-harris
768 os=-cxux
769 ;;
770 nindy960)
771 basic_machine=i960-intel
772 os=-nindy
773 ;;
774 mon960)
775 basic_machine=i960-intel
776 os=-mon960
777 ;;
778 nonstopux)
779 basic_machine=mips-compaq
780 os=-nonstopux
781 ;;
782 np1)
783 basic_machine=np1-gould
784 ;;
785 nsr-tandem)
786 basic_machine=nsr-tandem
787 ;;
788 op50n-* | op60c-*)
789 basic_machine=hppa1.1-oki
790 os=-proelf
791 ;;
792 openrisc | openrisc-*)
793 basic_machine=or32-unknown
794 ;;
795 os400)
796 basic_machine=powerpc-ibm
797 os=-os400
798 ;;
799 OSE68000 | ose68000)
800 basic_machine=m68000-ericsson
801 os=-ose
802 ;;
803 os68k)
804 basic_machine=m68k-none
805 os=-os68k
806 ;;
807 pa-hitachi)
808 basic_machine=hppa1.1-hitachi
809 os=-hiuxwe2
810 ;;
811 paragon)
812 basic_machine=i860-intel
813 os=-osf
814 ;;
815 pbd)
816 basic_machine=sparc-tti
817 ;;
818 pbb)
819 basic_machine=m68k-tti
820 ;;
821 pc532 | pc532-*)
822 basic_machine=ns32k-pc532
823 ;;
824 pc98)
825 basic_machine=i386-pc
826 ;;
827 pc98-*)
828 basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
829 ;;
830 pentium | p5 | k5 | k6 | nexgen | viac3)
831 basic_machine=i586-pc
832 ;;
833 pentiumpro | p6 | 6x86 | athlon | athlon_*)
834 basic_machine=i686-pc
835 ;;
836 pentiumii | pentium2 | pentiumiii | pentium3)
837 basic_machine=i686-pc
838 ;;
839 pentium4)
840 basic_machine=i786-pc
841 ;;
842 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
843 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
844 ;;
845 pentiumpro-* | p6-* | 6x86-* | athlon-*)
846 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
847 ;;
848 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
849 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
850 ;;
851 pentium4-*)
852 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
853 ;;
854 pn)
855 basic_machine=pn-gould
856 ;;
857 power) basic_machine=power-ibm
858 ;;
859 ppc) basic_machine=powerpc-unknown
860 ;;
861 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
862 ;;
863 ppcle | powerpclittle | ppc-le | powerpc-little)
864 basic_machine=powerpcle-unknown
865 ;;
866 ppcle-* | powerpclittle-*)
867 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
868 ;;
869 ppc64) basic_machine=powerpc64-unknown
870 ;;
871 ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
872 ;;
873 ppc64le | powerpc64little | ppc64-le | powerpc64-little)
874 basic_machine=powerpc64le-unknown
875 ;;
876 ppc64le-* | powerpc64little-*)
877 basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
878 ;;
879 ps2)
880 basic_machine=i386-ibm
881 ;;
882 pw32)
883 basic_machine=i586-unknown
884 os=-pw32
885 ;;
886 rdos)
887 basic_machine=i386-pc
888 os=-rdos
889 ;;
890 rom68k)
891 basic_machine=m68k-rom68k
892 os=-coff
893 ;;
894 rm[46]00)
895 basic_machine=mips-siemens
896 ;;
897 rtpc | rtpc-*)
898 basic_machine=romp-ibm
899 ;;
900 s390 | s390-*)
901 basic_machine=s390-ibm
902 ;;
903 s390x | s390x-*)
904 basic_machine=s390x-ibm
905 ;;
906 sa29200)
907 basic_machine=a29k-amd
908 os=-udi
909 ;;
910 sb1)
911 basic_machine=mipsisa64sb1-unknown
912 ;;
913 sb1el)
914 basic_machine=mipsisa64sb1el-unknown
915 ;;
916 sde)
917 basic_machine=mipsisa32-sde
918 os=-elf
919 ;;
920 sei)
921 basic_machine=mips-sei
922 os=-seiux
923 ;;
924 sequent)
925 basic_machine=i386-sequent
926 ;;
927 sh)
928 basic_machine=sh-hitachi
929 os=-hms
930 ;;
931 sh5el)
932 basic_machine=sh5le-unknown
933 ;;
934 sh64)
935 basic_machine=sh64-unknown
936 ;;
937 sparclite-wrs | simso-wrs)
938 basic_machine=sparclite-wrs
939 os=-vxworks
940 ;;
941 sps7)
942 basic_machine=m68k-bull
943 os=-sysv2
944 ;;
945 spur)
946 basic_machine=spur-unknown
947 ;;
948 st2000)
949 basic_machine=m68k-tandem
950 ;;
951 stratus)
952 basic_machine=i860-stratus
953 os=-sysv4
954 ;;
955 sun2)
956 basic_machine=m68000-sun
957 ;;
958 sun2os3)
959 basic_machine=m68000-sun
960 os=-sunos3
961 ;;
962 sun2os4)
963 basic_machine=m68000-sun
964 os=-sunos4
965 ;;
966 sun3os3)
967 basic_machine=m68k-sun
968 os=-sunos3
969 ;;
970 sun3os4)
971 basic_machine=m68k-sun
972 os=-sunos4
973 ;;
974 sun4os3)
975 basic_machine=sparc-sun
976 os=-sunos3
977 ;;
978 sun4os4)
979 basic_machine=sparc-sun
980 os=-sunos4
981 ;;
982 sun4sol2)
983 basic_machine=sparc-sun
984 os=-solaris2
985 ;;
986 sun3 | sun3-*)
987 basic_machine=m68k-sun
988 ;;
989 sun4)
990 basic_machine=sparc-sun
991 ;;
992 sun386 | sun386i | roadrunner)
993 basic_machine=i386-sun
994 ;;
995 sv1)
996 basic_machine=sv1-cray
997 os=-unicos
998 ;;
999 symmetry)
1000 basic_machine=i386-sequent
1001 os=-dynix
1002 ;;
1003 t3e)
1004 basic_machine=alphaev5-cray
1005 os=-unicos
1006 ;;
1007 t90)
1008 basic_machine=t90-cray
1009 os=-unicos
1010 ;;
1011 tic54x | c54x*)
1012 basic_machine=tic54x-unknown
1013 os=-coff
1014 ;;
1015 tic55x | c55x*)
1016 basic_machine=tic55x-unknown
1017 os=-coff
1018 ;;
1019 tic6x | c6x*)
1020 basic_machine=tic6x-unknown
1021 os=-coff
1022 ;;
1023 tx39)
1024 basic_machine=mipstx39-unknown
1025 ;;
1026 tx39el)
1027 basic_machine=mipstx39el-unknown
1028 ;;
1029 toad1)
1030 basic_machine=pdp10-xkl
1031 os=-tops20
1032 ;;
1033 tower | tower-32)
1034 basic_machine=m68k-ncr
1035 ;;
1036 tpf)
1037 basic_machine=s390x-ibm
1038 os=-tpf
1039 ;;
1040 udi29k)
1041 basic_machine=a29k-amd
1042 os=-udi
1043 ;;
1044 ultra3)
1045 basic_machine=a29k-nyu
1046 os=-sym1
1047 ;;
1048 v810 | necv810)
1049 basic_machine=v810-nec
1050 os=-none
1051 ;;
1052 vaxv)
1053 basic_machine=vax-dec
1054 os=-sysv
1055 ;;
1056 vms)
1057 basic_machine=vax-dec
1058 os=-vms
1059 ;;
1060 vpp*|vx|vx-*)
1061 basic_machine=f301-fujitsu
1062 ;;
1063 vxworks960)
1064 basic_machine=i960-wrs
1065 os=-vxworks
1066 ;;
1067 vxworks68)
1068 basic_machine=m68k-wrs
1069 os=-vxworks
1070 ;;
1071 vxworks29k)
1072 basic_machine=a29k-wrs
1073 os=-vxworks
1074 ;;
1075 w65*)
1076 basic_machine=w65-wdc
1077 os=-none
1078 ;;
1079 w89k-*)
1080 basic_machine=hppa1.1-winbond
1081 os=-proelf
1082 ;;
1083 xbox)
1084 basic_machine=i686-pc
1085 os=-mingw32
1086 ;;
1087 xps | xps100)
1088 basic_machine=xps100-honeywell
1089 ;;
1090 ymp)
1091 basic_machine=ymp-cray
1092 os=-unicos
1093 ;;
1094 z8k-*-coff)
1095 basic_machine=z8k-unknown
1096 os=-sim
1097 ;;
1098 none)
1099 basic_machine=none-none
1100 os=-none
1101 ;;
1102
1103 # Here we handle the default manufacturer of certain CPU types. It is in
1104 # some cases the only manufacturer, in others, it is the most popular.
1105 w89k)
1106 basic_machine=hppa1.1-winbond
1107 ;;
1108 op50n)
1109 basic_machine=hppa1.1-oki
1110 ;;
1111 op60c)
1112 basic_machine=hppa1.1-oki
1113 ;;
1114 romp)
1115 basic_machine=romp-ibm
1116 ;;
1117 mmix)
1118 basic_machine=mmix-knuth
1119 ;;
1120 rs6000)
1121 basic_machine=rs6000-ibm
1122 ;;
1123 vax)
1124 basic_machine=vax-dec
1125 ;;
1126 pdp10)
1127 # there are many clones, so DEC is not a safe bet
1128 basic_machine=pdp10-unknown
1129 ;;
1130 pdp11)
1131 basic_machine=pdp11-dec
1132 ;;
1133 we32k)
1134 basic_machine=we32k-att
1135 ;;
1136 sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
1137 basic_machine=sh-unknown
1138 ;;
1139 sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1140 basic_machine=sparc-sun
1141 ;;
1142 cydra)
1143 basic_machine=cydra-cydrome
1144 ;;
1145 orion)
1146 basic_machine=orion-highlevel
1147 ;;
1148 orion105)
1149 basic_machine=clipper-highlevel
1150 ;;
1151 mac | mpw | mac-mpw)
1152 basic_machine=m68k-apple
1153 ;;
1154 pmac | pmac-mpw)
1155 basic_machine=powerpc-apple
1156 ;;
1157 *-unknown)
1158 # Make sure to match an already-canonicalized machine name.
1159 ;;
1160 *)
1161 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
1162 exit 1
1163 ;;
1164 esac
1165
1166 # Here we canonicalize certain aliases for manufacturers.
1167 case $basic_machine in
1168 *-digital*)
1169 basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
1170 ;;
1171 *-commodore*)
1172 basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
1173 ;;
1174 *)
1175 ;;
1176 esac
1177
1178 # Decode manufacturer-specific aliases for certain operating systems.
1179
1180 if [ x"$os" != x"" ]
1181 then
1182 case $os in
1183 # First match some system type aliases
1184 # that might get confused with valid system types.
1185 # -solaris* is a basic system type, with this one exception.
1186 -solaris1 | -solaris1.*)
1187 os=`echo $os | sed -e 's|solaris1|sunos4|'`
1188 ;;
1189 -solaris)
1190 os=-solaris2
1191 ;;
1192 -svr4*)
1193 os=-sysv4
1194 ;;
1195 -unixware*)
1196 os=-sysv4.2uw
1197 ;;
1198 -gnu/linux*)
1199 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
1200 ;;
1201 # First accept the basic system types.
1202 # The portable systems comes first.
1203 # Each alternative MUST END IN A *, to match a version number.
1204 # -sysv* is not here because it comes later, after sysvr4.
1205 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1206 | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
1207 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
1208 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1209 | -aos* \
1210 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1211 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1212 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1213 | -openbsd* | -solidbsd* \
1214 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1215 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1216 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1217 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1218 | -chorusos* | -chorusrdb* \
1219 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1220 | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1221 | -uxpv* | -beos* | -mpeix* | -udk* \
1222 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1223 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1224 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1225 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1226 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1227 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1228 | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
1229 # Remember, each alternative MUST END IN *, to match a version number.
1230 ;;
1231 -qnx*)
1232 case $basic_machine in
1233 x86-* | i*86-*)
1234 ;;
1235 *)
1236 os=-nto$os
1237 ;;
1238 esac
1239 ;;
1240 -nto-qnx*)
1241 ;;
1242 -nto*)
1243 os=`echo $os | sed -e 's|nto|nto-qnx|'`
1244 ;;
1245 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1246 | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
1247 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1248 ;;
1249 -mac*)
1250 os=`echo $os | sed -e 's|mac|macos|'`
1251 ;;
1252 -linux-dietlibc)
1253 os=-linux-dietlibc
1254 ;;
1255 -linux*)
1256 os=`echo $os | sed -e 's|linux|linux-gnu|'`
1257 ;;
1258 -sunos5*)
1259 os=`echo $os | sed -e 's|sunos5|solaris2|'`
1260 ;;
1261 -sunos6*)
1262 os=`echo $os | sed -e 's|sunos6|solaris3|'`
1263 ;;
1264 -opened*)
1265 os=-openedition
1266 ;;
1267 -os400*)
1268 os=-os400
1269 ;;
1270 -wince*)
1271 os=-wince
1272 ;;
1273 -osfrose*)
1274 os=-osfrose
1275 ;;
1276 -osf*)
1277 os=-osf
1278 ;;
1279 -utek*)
1280 os=-bsd
1281 ;;
1282 -dynix*)
1283 os=-bsd
1284 ;;
1285 -acis*)
1286 os=-aos
1287 ;;
1288 -atheos*)
1289 os=-atheos
1290 ;;
1291 -syllable*)
1292 os=-syllable
1293 ;;
1294 -386bsd)
1295 os=-bsd
1296 ;;
1297 -ctix* | -uts*)
1298 os=-sysv
1299 ;;
1300 -nova*)
1301 os=-rtmk-nova
1302 ;;
1303 -ns2 )
1304 os=-nextstep2
1305 ;;
1306 -nsk*)
1307 os=-nsk
1308 ;;
1309 # Preserve the version number of sinix5.
1310 -sinix5.*)
1311 os=`echo $os | sed -e 's|sinix|sysv|'`
1312 ;;
1313 -sinix*)
1314 os=-sysv4
1315 ;;
1316 -tpf*)
1317 os=-tpf
1318 ;;
1319 -triton*)
1320 os=-sysv3
1321 ;;
1322 -oss*)
1323 os=-sysv3
1324 ;;
1325 -svr4)
1326 os=-sysv4
1327 ;;
1328 -svr3)
1329 os=-sysv3
1330 ;;
1331 -sysvr4)
1332 os=-sysv4
1333 ;;
1334 # This must come after -sysvr4.
1335 -sysv*)
1336 ;;
1337 -ose*)
1338 os=-ose
1339 ;;
1340 -es1800*)
1341 os=-ose
1342 ;;
1343 -xenix)
1344 os=-xenix
1345 ;;
1346 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1347 os=-mint
1348 ;;
1349 -aros*)
1350 os=-aros
1351 ;;
1352 -kaos*)
1353 os=-kaos
1354 ;;
1355 -zvmoe)
1356 os=-zvmoe
1357 ;;
1358 -none)
1359 ;;
1360 *)
1361 # Get rid of the `-' at the beginning of $os.
1362 os=`echo $os | sed 's/[^-]*-//'`
1363 echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
1364 exit 1
1365 ;;
1366 esac
1367 else
1368
1369 # Here we handle the default operating systems that come with various machines.
1370 # The value should be what the vendor currently ships out the door with their
1371 # machine or put another way, the most popular os provided with the machine.
1372
1373 # Note that if you're going to try to match "-MANUFACTURER" here (say,
1374 # "-sun"), then you have to tell the case statement up towards the top
1375 # that MANUFACTURER isn't an operating system. Otherwise, code above
1376 # will signal an error saying that MANUFACTURER isn't an operating
1377 # system, and we'll never get to this point.
1378
1379 case $basic_machine in
1380 score-*)
1381 os=-elf
1382 ;;
1383 spu-*)
1384 os=-elf
1385 ;;
1386 *-acorn)
1387 os=-riscix1.2
1388 ;;
1389 arm*-rebel)
1390 os=-linux
1391 ;;
1392 arm*-semi)
1393 os=-aout
1394 ;;
1395 c4x-* | tic4x-*)
1396 os=-coff
1397 ;;
1398 # This must come before the *-dec entry.
1399 pdp10-*)
1400 os=-tops20
1401 ;;
1402 pdp11-*)
1403 os=-none
1404 ;;
1405 *-dec | vax-*)
1406 os=-ultrix4.2
1407 ;;
1408 m68*-apollo)
1409 os=-domain
1410 ;;
1411 i386-sun)
1412 os=-sunos4.0.2
1413 ;;
1414 m68000-sun)
1415 os=-sunos3
1416 # This also exists in the configure program, but was not the
1417 # default.
1418 # os=-sunos4
1419 ;;
1420 m68*-cisco)
1421 os=-aout
1422 ;;
1423 mep-*)
1424 os=-elf
1425 ;;
1426 mips*-cisco)
1427 os=-elf
1428 ;;
1429 mips*-*)
1430 os=-elf
1431 ;;
1432 or32-*)
1433 os=-coff
1434 ;;
1435 *-tti) # must be before sparc entry or we get the wrong os.
1436 os=-sysv3
1437 ;;
1438 sparc-* | *-sun)
1439 os=-sunos4.1.1
1440 ;;
1441 *-be)
1442 os=-beos
1443 ;;
1444 *-haiku)
1445 os=-haiku
1446 ;;
1447 *-ibm)
1448 os=-aix
1449 ;;
1450 *-knuth)
1451 os=-mmixware
1452 ;;
1453 *-wec)
1454 os=-proelf
1455 ;;
1456 *-winbond)
1457 os=-proelf
1458 ;;
1459 *-oki)
1460 os=-proelf
1461 ;;
1462 *-hp)
1463 os=-hpux
1464 ;;
1465 *-hitachi)
1466 os=-hiux
1467 ;;
1468 i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
1469 os=-sysv
1470 ;;
1471 *-cbm)
1472 os=-amigaos
1473 ;;
1474 *-dg)
1475 os=-dgux
1476 ;;
1477 *-dolphin)
1478 os=-sysv3
1479 ;;
1480 m68k-ccur)
1481 os=-rtu
1482 ;;
1483 m88k-omron*)
1484 os=-luna
1485 ;;
1486 *-next )
1487 os=-nextstep
1488 ;;
1489 *-sequent)
1490 os=-ptx
1491 ;;
1492 *-crds)
1493 os=-unos
1494 ;;
1495 *-ns)
1496 os=-genix
1497 ;;
1498 i370-*)
1499 os=-mvs
1500 ;;
1501 *-next)
1502 os=-nextstep3
1503 ;;
1504 *-gould)
1505 os=-sysv
1506 ;;
1507 *-highlevel)
1508 os=-bsd
1509 ;;
1510 *-encore)
1511 os=-bsd
1512 ;;
1513 *-sgi)
1514 os=-irix
1515 ;;
1516 *-siemens)
1517 os=-sysv4
1518 ;;
1519 *-masscomp)
1520 os=-rtu
1521 ;;
1522 f30[01]-fujitsu | f700-fujitsu)
1523 os=-uxpv
1524 ;;
1525 *-rom68k)
1526 os=-coff
1527 ;;
1528 *-*bug)
1529 os=-coff
1530 ;;
1531 *-apple)
1532 os=-macos
1533 ;;
1534 *-atari*)
1535 os=-mint
1536 ;;
1537 *)
1538 os=-none
1539 ;;
1540 esac
1541 fi
1542
1543 # Here we handle the case where we know the os, and the CPU type, but not the
1544 # manufacturer. We pick the logical manufacturer.
1545 vendor=unknown
1546 case $basic_machine in
1547 *-unknown)
1548 case $os in
1549 -riscix*)
1550 vendor=acorn
1551 ;;
1552 -sunos*)
1553 vendor=sun
1554 ;;
1555 -aix*)
1556 vendor=ibm
1557 ;;
1558 -beos*)
1559 vendor=be
1560 ;;
1561 -hpux*)
1562 vendor=hp
1563 ;;
1564 -mpeix*)
1565 vendor=hp
1566 ;;
1567 -hiux*)
1568 vendor=hitachi
1569 ;;
1570 -unos*)
1571 vendor=crds
1572 ;;
1573 -dgux*)
1574 vendor=dg
1575 ;;
1576 -luna*)
1577 vendor=omron
1578 ;;
1579 -genix*)
1580 vendor=ns
1581 ;;
1582 -mvs* | -opened*)
1583 vendor=ibm
1584 ;;
1585 -os400*)
1586 vendor=ibm
1587 ;;
1588 -ptx*)
1589 vendor=sequent
1590 ;;
1591 -tpf*)
1592 vendor=ibm
1593 ;;
1594 -vxsim* | -vxworks* | -windiss*)
1595 vendor=wrs
1596 ;;
1597 -aux*)
1598 vendor=apple
1599 ;;
1600 -hms*)
1601 vendor=hitachi
1602 ;;
1603 -mpw* | -macos*)
1604 vendor=apple
1605 ;;
1606 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1607 vendor=atari
1608 ;;
1609 -vos*)
1610 vendor=stratus
1611 ;;
1612 esac
1613 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
1614 ;;
1615 esac
1616
1617 echo $basic_machine$os
1618 exit
1619
1620 # Local variables:
1621 # eval: (add-hook 'write-file-hooks 'time-stamp)
1622 # time-stamp-start: "timestamp='"
1623 # time-stamp-format: "%:y-%02m-%02d"
1624 # time-stamp-end: "'"
1625 # End:
+19175
-1824
configure less more
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.59.
2 # Generated by GNU Autoconf 2.61 for virt-viewer 0.0.3.
33 #
4 # Copyright (C) 2003 Free Software Foundation, Inc.
4 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
5 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
56 # This configure script is free software; the Free Software Foundation
67 # gives unlimited permission to copy, distribute and modify it.
78 ## --------------------- ##
89 ## M4sh Initialization. ##
910 ## --------------------- ##
1011
11 # Be Bourne compatible
12 # Be more Bourne compatible
13 DUALCASE=1; export DUALCASE # for MKS sh
1214 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
1315 emulate sh
1416 NULLCMD=:
1517 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
1618 # is contrary to our usage. Disable this feature.
1719 alias -g '${1+"$@"}'='"$@"'
18 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19 set -o posix
20 fi
21 DUALCASE=1; export DUALCASE # for MKS sh
22
23 # Support unset when possible.
24 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25 as_unset=unset
26 else
27 as_unset=false
28 fi
29
30
31 # Work around bugs in pre-3.0 UWIN ksh.
32 $as_unset ENV MAIL MAILPATH
33 PS1='$ '
34 PS2='> '
35 PS4='+ '
36
37 # NLS nuisances.
38 for as_var in \
39 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
40 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41 LC_TELEPHONE LC_TIME
42 do
43 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
44 eval $as_var=C; export $as_var
45 else
46 $as_unset $as_var
47 fi
48 done
49
50 # Required to use basename.
51 if expr a : '\(a\)' >/dev/null 2>&1; then
52 as_expr=expr
53 else
54 as_expr=false
55 fi
56
57 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
58 as_basename=basename
59 else
60 as_basename=false
61 fi
62
63
64 # Name of the executable.
65 as_me=`$as_basename "$0" ||
66 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
67 X"$0" : 'X\(//\)$' \| \
68 X"$0" : 'X\(/\)$' \| \
69 . : '\(.\)' 2>/dev/null ||
70 echo X/"$0" |
71 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
72 /^X\/\(\/\/\)$/{ s//\1/; q; }
73 /^X\/\(\/\).*/{ s//\1/; q; }
74 s/.*/./; q'`
75
76
77 # PATH needs CR, and LINENO needs CR and PATH.
20 setopt NO_GLOB_SUBST
21 else
22 case `(set -o) 2>/dev/null` in
23 *posix*) set -o posix ;;
24 esac
25
26 fi
27
28
29
30
31 # PATH needs CR
7832 # Avoid depending upon Character Ranges.
7933 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8034 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9549 rm -f conf$$.sh
9650 fi
9751
98
99 as_lineno_1=$LINENO
100 as_lineno_2=$LINENO
101 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
102 test "x$as_lineno_1" != "x$as_lineno_2" &&
103 test "x$as_lineno_3" = "x$as_lineno_2" || {
104 # Find who we are. Look in the path if we contain no path at all
105 # relative or not.
106 case $0 in
107 *[\\/]* ) as_myself=$0 ;;
108 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52 # Support unset when possible.
53 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
54 as_unset=unset
55 else
56 as_unset=false
57 fi
58
59
60 # IFS
61 # We need space, tab and new line, in precisely that order. Quoting is
62 # there to prevent editors from complaining about space-tab.
63 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
64 # splitting by setting IFS to empty value.)
65 as_nl='
66 '
67 IFS=" "" $as_nl"
68
69 # Find who we are. Look in the path if we contain no directory separator.
70 case $0 in
71 *[\\/]* ) as_myself=$0 ;;
72 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10973 for as_dir in $PATH
11074 do
11175 IFS=$as_save_IFS
11276 test -z "$as_dir" && as_dir=.
11377 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11478 done
115
116 ;;
117 esac
118 # We did not find ourselves, most probably we were run as `sh COMMAND'
119 # in which case we are not to be found in the path.
120 if test "x$as_myself" = x; then
121 as_myself=$0
79 IFS=$as_save_IFS
80
81 ;;
82 esac
83 # We did not find ourselves, most probably we were run as `sh COMMAND'
84 # in which case we are not to be found in the path.
85 if test "x$as_myself" = x; then
86 as_myself=$0
87 fi
88 if test ! -f "$as_myself"; then
89 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
90 { (exit 1); exit 1; }
91 fi
92
93 # Work around bugs in pre-3.0 UWIN ksh.
94 for as_var in ENV MAIL MAILPATH
95 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
96 done
97 PS1='$ '
98 PS2='> '
99 PS4='+ '
100
101 # NLS nuisances.
102 for as_var in \
103 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
104 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
105 LC_TELEPHONE LC_TIME
106 do
107 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
108 eval $as_var=C; export $as_var
109 else
110 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
122111 fi
123 if test ! -f "$as_myself"; then
124 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
125 { (exit 1); exit 1; }; }
126 fi
127 case $CONFIG_SHELL in
128 '')
112 done
113
114 # Required to use basename.
115 if expr a : '\(a\)' >/dev/null 2>&1 &&
116 test "X`expr 00001 : '.*\(...\)'`" = X001; then
117 as_expr=expr
118 else
119 as_expr=false
120 fi
121
122 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
123 as_basename=basename
124 else
125 as_basename=false
126 fi
127
128
129 # Name of the executable.
130 as_me=`$as_basename -- "$0" ||
131 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
132 X"$0" : 'X\(//\)$' \| \
133 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
134 echo X/"$0" |
135 sed '/^.*\/\([^/][^/]*\)\/*$/{
136 s//\1/
137 q
138 }
139 /^X\/\(\/\/\)$/{
140 s//\1/
141 q
142 }
143 /^X\/\(\/\).*/{
144 s//\1/
145 q
146 }
147 s/.*/./; q'`
148
149 # CDPATH.
150 $as_unset CDPATH
151
152
153 if test "x$CONFIG_SHELL" = x; then
154 if (eval ":") 2>/dev/null; then
155 as_have_required=yes
156 else
157 as_have_required=no
158 fi
159
160 if test $as_have_required = yes && (eval ":
161 (as_func_return () {
162 (exit \$1)
163 }
164 as_func_success () {
165 as_func_return 0
166 }
167 as_func_failure () {
168 as_func_return 1
169 }
170 as_func_ret_success () {
171 return 0
172 }
173 as_func_ret_failure () {
174 return 1
175 }
176
177 exitcode=0
178 if as_func_success; then
179 :
180 else
181 exitcode=1
182 echo as_func_success failed.
183 fi
184
185 if as_func_failure; then
186 exitcode=1
187 echo as_func_failure succeeded.
188 fi
189
190 if as_func_ret_success; then
191 :
192 else
193 exitcode=1
194 echo as_func_ret_success failed.
195 fi
196
197 if as_func_ret_failure; then
198 exitcode=1
199 echo as_func_ret_failure succeeded.
200 fi
201
202 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
203 :
204 else
205 exitcode=1
206 echo positional parameters were not saved.
207 fi
208
209 test \$exitcode = 0) || { (exit 1); exit 1; }
210
211 (
212 as_lineno_1=\$LINENO
213 as_lineno_2=\$LINENO
214 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
215 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
216 ") 2> /dev/null; then
217 :
218 else
219 as_candidate_shells=
129220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
130221 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
131222 do
132223 IFS=$as_save_IFS
133224 test -z "$as_dir" && as_dir=.
134 for as_base in sh bash ksh sh5; do
135 case $as_dir in
225 case $as_dir in
136226 /*)
137 if ("$as_dir/$as_base" -c '
227 for as_base in sh bash ksh sh5; do
228 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
229 done;;
230 esac
231 done
232 IFS=$as_save_IFS
233
234
235 for as_shell in $as_candidate_shells $SHELL; do
236 # Try only shells that exist, to save several forks.
237 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
238 { ("$as_shell") 2> /dev/null <<\_ASEOF
239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240 emulate sh
241 NULLCMD=:
242 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243 # is contrary to our usage. Disable this feature.
244 alias -g '${1+"$@"}'='"$@"'
245 setopt NO_GLOB_SUBST
246 else
247 case `(set -o) 2>/dev/null` in
248 *posix*) set -o posix ;;
249 esac
250
251 fi
252
253
254 :
255 _ASEOF
256 }; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
261 emulate sh
262 NULLCMD=:
263 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
264 # is contrary to our usage. Disable this feature.
265 alias -g '${1+"$@"}'='"$@"'
266 setopt NO_GLOB_SUBST
267 else
268 case `(set -o) 2>/dev/null` in
269 *posix*) set -o posix ;;
270 esac
271
272 fi
273
274
275 :
276 (as_func_return () {
277 (exit $1)
278 }
279 as_func_success () {
280 as_func_return 0
281 }
282 as_func_failure () {
283 as_func_return 1
284 }
285 as_func_ret_success () {
286 return 0
287 }
288 as_func_ret_failure () {
289 return 1
290 }
291
292 exitcode=0
293 if as_func_success; then
294 :
295 else
296 exitcode=1
297 echo as_func_success failed.
298 fi
299
300 if as_func_failure; then
301 exitcode=1
302 echo as_func_failure succeeded.
303 fi
304
305 if as_func_ret_success; then
306 :
307 else
308 exitcode=1
309 echo as_func_ret_success failed.
310 fi
311
312 if as_func_ret_failure; then
313 exitcode=1
314 echo as_func_ret_failure succeeded.
315 fi
316
317 if ( set x; as_func_ret_success y && test x = "$1" ); then
318 :
319 else
320 exitcode=1
321 echo positional parameters were not saved.
322 fi
323
324 test $exitcode = 0) || { (exit 1); exit 1; }
325
326 (
138327 as_lineno_1=$LINENO
139328 as_lineno_2=$LINENO
140 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
141329 test "x$as_lineno_1" != "x$as_lineno_2" &&
142 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
143 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
144 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
145 CONFIG_SHELL=$as_dir/$as_base
146 export CONFIG_SHELL
147 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
148 fi;;
149 esac
150 done
151 done
152 ;;
153 esac
330 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
331
332 _ASEOF
333 }; then
334 break
335 fi
336
337 fi
338
339 done
340
341 if test "x$CONFIG_SHELL" != x; then
342 for as_var in BASH_ENV ENV
343 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
344 done
345 export CONFIG_SHELL
346 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
347 fi
348
349
350 if test $as_have_required = no; then
351 echo This script requires a shell more modern than all the
352 echo shells that I found on your system. Please install a
353 echo modern shell, or manually run the script under such a
354 echo shell if you do have one.
355 { (exit 1); exit 1; }
356 fi
357
358
359 fi
360
361 fi
362
363
364
365 (eval "as_func_return () {
366 (exit \$1)
367 }
368 as_func_success () {
369 as_func_return 0
370 }
371 as_func_failure () {
372 as_func_return 1
373 }
374 as_func_ret_success () {
375 return 0
376 }
377 as_func_ret_failure () {
378 return 1
379 }
380
381 exitcode=0
382 if as_func_success; then
383 :
384 else
385 exitcode=1
386 echo as_func_success failed.
387 fi
388
389 if as_func_failure; then
390 exitcode=1
391 echo as_func_failure succeeded.
392 fi
393
394 if as_func_ret_success; then
395 :
396 else
397 exitcode=1
398 echo as_func_ret_success failed.
399 fi
400
401 if as_func_ret_failure; then
402 exitcode=1
403 echo as_func_ret_failure succeeded.
404 fi
405
406 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
407 :
408 else
409 exitcode=1
410 echo positional parameters were not saved.
411 fi
412
413 test \$exitcode = 0") || {
414 echo No shell found that supports shell functions.
415 echo Please tell autoconf@gnu.org about your system,
416 echo including any error possibly output before this
417 echo message
418 }
419
420
421
422 as_lineno_1=$LINENO
423 as_lineno_2=$LINENO
424 test "x$as_lineno_1" != "x$as_lineno_2" &&
425 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
154426
155427 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
156428 # uniformly replaced by the line number. The first 'sed' inserts a
157 # line-number line before each line; the second 'sed' does the real
158 # work. The second script uses 'N' to pair each line-number line
159 # with the numbered line, and appends trailing '-' during
160 # substitution so that $LINENO is not a special case at line end.
429 # line-number line after each line using $LINENO; the second 'sed'
430 # does the real work. The second script uses 'N' to pair each
431 # line-number line with the line containing $LINENO, and appends
432 # trailing '-' during substitution so that $LINENO is not a special
433 # case at line end.
161434 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
162 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
163 sed '=' <$as_myself |
435 # scripts with optimization help from Paolo Bonzini. Blame Lee
436 # E. McMahon (1931-1989) for sed's syntax. :-)
437 sed -n '
438 p
439 /[$]LINENO/=
440 ' <$as_myself |
164441 sed '
442 s/[$]LINENO.*/&-/
443 t lineno
444 b
445 :lineno
165446 N
166 s,$,-,
167 : loop
168 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
447 :loop
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
169449 t loop
170 s,-$,,
171 s,^['$as_cr_digits']*\n,,
450 s/-\n.*//
172451 ' >$as_me.lineno &&
173 chmod +x $as_me.lineno ||
452 chmod +x "$as_me.lineno" ||
174453 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
175454 { (exit 1); exit 1; }; }
176455
177456 # Don't try to exec as it changes $[0], causing all sort of problems
178457 # (the dirname of $[0] is not the place where we might find the
179 # original and so on. Autoconf is especially sensible to this).
180 . ./$as_me.lineno
458 # original and so on. Autoconf is especially sensitive to this).
459 . "./$as_me.lineno"
181460 # Exit status is that of the last command.
182461 exit
183462 }
184463
185464
186 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
187 *c*,-n*) ECHO_N= ECHO_C='
188 ' ECHO_T=' ' ;;
189 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
190 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
465 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
466 as_dirname=dirname
467 else
468 as_dirname=false
469 fi
470
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in
473 -n*)
474 case `echo 'x\c'` in
475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
476 *) ECHO_C='\c';;
477 esac;;
478 *)
479 ECHO_N='-n';;
191480 esac
192481
193 if expr a : '\(a\)' >/dev/null 2>&1; then
482 if expr a : '\(a\)' >/dev/null 2>&1 &&
483 test "X`expr 00001 : '.*\(...\)'`" = X001; then
194484 as_expr=expr
195485 else
196486 as_expr=false
197487 fi
198488
199489 rm -f conf$$ conf$$.exe conf$$.file
490 if test -d conf$$.dir; then
491 rm -f conf$$.dir/conf$$.file
492 else
493 rm -f conf$$.dir
494 mkdir conf$$.dir
495 fi
200496 echo >conf$$.file
201497 if ln -s conf$$.file conf$$ 2>/dev/null; then
202 # We could just check for DJGPP; but this test a) works b) is more generic
203 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
204 if test -f conf$$.exe; then
205 # Don't use ln at all; we don't have any links
498 as_ln_s='ln -s'
499 # ... but there are two gotchas:
500 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
501 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
502 # In both cases, we have to default to `cp -p'.
503 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
206504 as_ln_s='cp -p'
207 else
208 as_ln_s='ln -s'
209 fi
210505 elif ln conf$$.file conf$$ 2>/dev/null; then
211506 as_ln_s=ln
212507 else
213508 as_ln_s='cp -p'
214509 fi
215 rm -f conf$$ conf$$.exe conf$$.file
510 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
511 rmdir conf$$.dir 2>/dev/null
216512
217513 if mkdir -p . 2>/dev/null; then
218514 as_mkdir_p=:
221517 as_mkdir_p=false
222518 fi
223519
224 as_executable_p="test -f"
520 if test -x / >/dev/null 2>&1; then
521 as_test_x='test -x'
522 else
523 if ls -dL / >/dev/null 2>&1; then
524 as_ls_L_option=L
525 else
526 as_ls_L_option=
527 fi
528 as_test_x='
529 eval sh -c '\''
530 if test -d "$1"; then
531 test -d "$1/.";
532 else
533 case $1 in
534 -*)set "./$1";;
535 esac;
536 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
537 ???[sx]*):;;*)false;;esac;fi
538 '\'' sh
539 '
540 fi
541 as_executable_p=$as_test_x
225542
226543 # Sed expression to map a string onto a valid CPP name.
227544 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230547 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
231548
232549
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS=" $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
550
551
552 # Check that we are running under the correct shell.
553 SHELL=${CONFIG_SHELL-/bin/sh}
554
555 case X$ECHO in
556 X*--fallback-echo)
557 # Remove one level of quotation (which was required for Make).
558 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
559 ;;
560 esac
561
562 echo=${ECHO-echo}
563 if test "X$1" = X--no-reexec; then
564 # Discard the --no-reexec flag, and continue.
565 shift
566 elif test "X$1" = X--fallback-echo; then
567 # Avoid inline document here, it may be left over
568 :
569 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
570 # Yippee, $echo works!
571 :
572 else
573 # Restart under the correct shell.
574 exec $SHELL "$0" --no-reexec ${1+"$@"}
575 fi
576
577 if test "X$1" = X--fallback-echo; then
578 # used as fallback echo
579 shift
580 cat <<EOF
581 $*
582 EOF
583 exit 0
584 fi
585
586 # The HP-UX ksh and POSIX shell print the target directory to stdout
587 # if CDPATH is set.
588 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
589
590 if test -z "$ECHO"; then
591 if test "X${echo_test_string+set}" != Xset; then
592 # find a string as large as possible, as long as the shell can cope with it
593 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
594 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
595 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
596 echo_test_string=`eval $cmd` &&
597 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
598 then
599 break
600 fi
601 done
602 fi
603
604 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
605 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
606 test "X$echo_testing_string" = "X$echo_test_string"; then
607 :
608 else
609 # The Solaris, AIX, and Digital Unix default echo programs unquote
610 # backslashes. This makes it impossible to quote backslashes using
611 # echo "$something" | sed 's/\\/\\\\/g'
612 #
613 # So, first we look for a working echo in the user's PATH.
614
615 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
616 for dir in $PATH /usr/ucb; do
617 IFS="$lt_save_ifs"
618 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
619 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
620 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
621 test "X$echo_testing_string" = "X$echo_test_string"; then
622 echo="$dir/echo"
623 break
624 fi
625 done
626 IFS="$lt_save_ifs"
627
628 if test "X$echo" = Xecho; then
629 # We didn't find a better echo, so look for alternatives.
630 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
631 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
633 # This shell has a builtin print -r that does the trick.
634 echo='print -r'
635 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
636 test "X$CONFIG_SHELL" != X/bin/ksh; then
637 # If we have ksh, try running configure again with it.
638 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
639 export ORIGINAL_CONFIG_SHELL
640 CONFIG_SHELL=/bin/ksh
641 export CONFIG_SHELL
642 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
643 else
644 # Try using printf.
645 echo='printf %s\n'
646 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
647 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
648 test "X$echo_testing_string" = "X$echo_test_string"; then
649 # Cool, printf works
650 :
651 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
652 test "X$echo_testing_string" = 'X\t' &&
653 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
656 export CONFIG_SHELL
657 SHELL="$CONFIG_SHELL"
658 export SHELL
659 echo="$CONFIG_SHELL $0 --fallback-echo"
660 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661 test "X$echo_testing_string" = 'X\t' &&
662 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663 test "X$echo_testing_string" = "X$echo_test_string"; then
664 echo="$CONFIG_SHELL $0 --fallback-echo"
665 else
666 # maybe with a smaller string...
667 prev=:
668
669 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
670 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
671 then
672 break
673 fi
674 prev="$cmd"
675 done
676
677 if test "$prev" != 'sed 50q "$0"'; then
678 echo_test_string=`eval $prev`
679 export echo_test_string
680 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
681 else
682 # Oops. We lost completely, so just stick with echo.
683 echo=echo
684 fi
685 fi
686 fi
687 fi
688 fi
689 fi
690
691 # Copy echo and quote the copy suitably for passing to libtool from
692 # the Makefile, instead of quoting the original, which is used later.
693 ECHO=$echo
694 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
695 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
696 fi
697
698
699
700
701 tagnames=${tagnames+${tagnames},}CXX
702
703 tagnames=${tagnames+${tagnames},}F77
704
705 exec 7<&0 </dev/null 6>&1
242706
243707 # Name of the host.
244708 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245709 # so uname gets run too.
246710 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247711
248 exec 6>&1
249
250712 #
251713 # Initializations.
252714 #
253715 ac_default_prefix=/usr/local
716 ac_clean_files=
254717 ac_config_libobj_dir=.
718 LIBOBJS=
255719 cross_compiling=no
256720 subdirs=
257721 MFLAGS=
258722 MAKEFLAGS=
259723 SHELL=${CONFIG_SHELL-/bin/sh}
260724
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266725 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="virt-viewer.spec.in"
274 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE WARN_CFLAGS PKG_CONFIG ac_pt_PKG_CONFIG LIBXML2_CFLAGS LIBXML2_LIBS LIBVIRT_CFLAGS LIBVIRT_LIBS GTK2_CFLAGS GTK2_LIBS GTKVNC_CFLAGS GTKVNC_LIBS LIBOBJS LTLIBOBJS'
726 PACKAGE_NAME='virt-viewer'
727 PACKAGE_TARNAME='virt-viewer'
728 PACKAGE_VERSION='0.0.3'
729 PACKAGE_STRING='virt-viewer 0.0.3'
730 PACKAGE_BUGREPORT=''
731
732 ac_unique_file="src/main.c"
733 # Factoring default headers for most tests.
734 ac_includes_default="\
735 #include <stdio.h>
736 #ifdef HAVE_SYS_TYPES_H
737 # include <sys/types.h>
738 #endif
739 #ifdef HAVE_SYS_STAT_H
740 # include <sys/stat.h>
741 #endif
742 #ifdef STDC_HEADERS
743 # include <stdlib.h>
744 # include <stddef.h>
745 #else
746 # ifdef HAVE_STDLIB_H
747 # include <stdlib.h>
748 # endif
749 #endif
750 #ifdef HAVE_STRING_H
751 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
752 # include <memory.h>
753 # endif
754 # include <string.h>
755 #endif
756 #ifdef HAVE_STRINGS_H
757 # include <strings.h>
758 #endif
759 #ifdef HAVE_INTTYPES_H
760 # include <inttypes.h>
761 #endif
762 #ifdef HAVE_STDINT_H
763 # include <stdint.h>
764 #endif
765 #ifdef HAVE_UNISTD_H
766 # include <unistd.h>
767 #endif"
768
769 ac_subst_vars='SHELL
770 PATH_SEPARATOR
771 PACKAGE_NAME
772 PACKAGE_TARNAME
773 PACKAGE_VERSION
774 PACKAGE_STRING
775 PACKAGE_BUGREPORT
776 exec_prefix
777 prefix
778 program_transform_name
779 bindir
780 sbindir
781 libexecdir
782 datarootdir
783 datadir
784 sysconfdir
785 sharedstatedir
786 localstatedir
787 includedir
788 oldincludedir
789 docdir
790 infodir
791 htmldir
792 dvidir
793 pdfdir
794 psdir
795 libdir
796 localedir
797 mandir
798 DEFS
799 ECHO_C
800 ECHO_N
801 ECHO_T
802 LIBS
803 build_alias
804 host_alias
805 target_alias
806 INSTALL_PROGRAM
807 INSTALL_SCRIPT
808 INSTALL_DATA
809 am__isrc
810 CYGPATH_W
811 PACKAGE
812 VERSION
813 ACLOCAL
814 AUTOCONF
815 AUTOMAKE
816 AUTOHEADER
817 MAKEINFO
818 install_sh
819 STRIP
820 INSTALL_STRIP_PROGRAM
821 mkdir_p
822 AWK
823 SET_MAKE
824 am__leading_dot
825 AMTAR
826 am__tar
827 am__untar
828 build
829 build_cpu
830 build_vendor
831 build_os
832 host
833 host_cpu
834 host_vendor
835 host_os
836 CC
837 CFLAGS
838 LDFLAGS
839 CPPFLAGS
840 ac_ct_CC
841 EXEEXT
842 OBJEXT
843 DEPDIR
844 am__include
845 am__quote
846 AMDEP_TRUE
847 AMDEP_FALSE
848 AMDEPBACKSLASH
849 CCDEPMODE
850 am__fastdepCC_TRUE
851 am__fastdepCC_FALSE
852 SED
853 GREP
854 EGREP
855 LN_S
856 ECHO
857 AR
858 RANLIB
859 CPP
860 CXX
861 CXXFLAGS
862 ac_ct_CXX
863 CXXDEPMODE
864 am__fastdepCXX_TRUE
865 am__fastdepCXX_FALSE
866 CXXCPP
867 F77
868 FFLAGS
869 ac_ct_F77
870 LIBTOOL
871 WARN_CFLAGS
872 PKG_CONFIG
873 LIBXML2_CFLAGS
874 LIBXML2_LIBS
875 LIBVIRT_CFLAGS
876 LIBVIRT_LIBS
877 GTK2_CFLAGS
878 GTK2_LIBS
879 GTKVNC_CFLAGS
880 GTKVNC_LIBS
881 NSPR_CFLAGS
882 NSPR_LIBS
883 FIREFOX_PLUGIN_CFLAGS
884 FIREFOX_PLUGIN_LIBS
885 MOZILLA_PLUGIN_CFLAGS
886 MOZILLA_PLUGIN_LIBS
887 ENABLE_PLUGIN_TRUE
888 ENABLE_PLUGIN_FALSE
889 LIBOBJS
890 LTLIBOBJS'
275891 ac_subst_files=''
892 ac_precious_vars='build_alias
893 host_alias
894 target_alias
895 CC
896 CFLAGS
897 LDFLAGS
898 LIBS
899 CPPFLAGS
900 CPP
901 CXX
902 CXXFLAGS
903 CCC
904 CXXCPP
905 F77
906 FFLAGS
907 PKG_CONFIG
908 LIBXML2_CFLAGS
909 LIBXML2_LIBS
910 LIBVIRT_CFLAGS
911 LIBVIRT_LIBS
912 GTK2_CFLAGS
913 GTK2_LIBS
914 GTKVNC_CFLAGS
915 GTKVNC_LIBS
916 NSPR_CFLAGS
917 NSPR_LIBS
918 FIREFOX_PLUGIN_CFLAGS
919 FIREFOX_PLUGIN_LIBS
920 MOZILLA_PLUGIN_CFLAGS
921 MOZILLA_PLUGIN_LIBS'
922
276923
277924 # Initialize some variables set by options.
278925 ac_init_help=
299946 # and all the variables that are supposed to be based on exec_prefix
300947 # by default will actually change.
301948 # Use braces instead of parens because sh, perl, etc. also accept them.
949 # (The list follows the same order as the GNU Coding Standards.)
302950 bindir='${exec_prefix}/bin'
303951 sbindir='${exec_prefix}/sbin'
304952 libexecdir='${exec_prefix}/libexec'
305 datadir='${prefix}/share'
953 datarootdir='${prefix}/share'
954 datadir='${datarootdir}'
306955 sysconfdir='${prefix}/etc'
307956 sharedstatedir='${prefix}/com'
308957 localstatedir='${prefix}/var'
309 libdir='${exec_prefix}/lib'
310958 includedir='${prefix}/include'
311959 oldincludedir='/usr/include'
312 infodir='${prefix}/info'
313 mandir='${prefix}/man'
960 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
961 infodir='${datarootdir}/info'
962 htmldir='${docdir}'
963 dvidir='${docdir}'
964 pdfdir='${docdir}'
965 psdir='${docdir}'
966 libdir='${exec_prefix}/lib'
967 localedir='${datarootdir}/locale'
968 mandir='${datarootdir}/man'
314969
315970 ac_prev=
971 ac_dashdash=
316972 for ac_option
317973 do
318974 # If the previous option needs an argument, assign it.
319975 if test -n "$ac_prev"; then
320 eval "$ac_prev=\$ac_option"
976 eval $ac_prev=\$ac_option
321977 ac_prev=
322978 continue
323979 fi
324980
325 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
981 case $ac_option in
982 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
983 *) ac_optarg=yes ;;
984 esac
326985
327986 # Accept the important Cygnus configure options, so we can diagnose typos.
328987
329 case $ac_option in
988 case $ac_dashdash$ac_option in
989 --)
990 ac_dashdash=yes ;;
330991
331992 -bindir | --bindir | --bindi | --bind | --bin | --bi)
332993 ac_prev=bindir ;;
3481009 --config-cache | -C)
3491010 cache_file=config.cache ;;
3501011
351 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
1012 -datadir | --datadir | --datadi | --datad)
3521013 ac_prev=datadir ;;
353 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
354 | --da=*)
1014 -datadir=* | --datadir=* | --datadi=* | --datad=*)
3551015 datadir=$ac_optarg ;;
1016
1017 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1018 | --dataroo | --dataro | --datar)
1019 ac_prev=datarootdir ;;
1020 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1021 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1022 datarootdir=$ac_optarg ;;
3561023
3571024 -disable-* | --disable-*)
3581025 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
3591026 # Reject names that are not valid shell variable names.
360 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1027 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
3611028 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
3621029 { (exit 1); exit 1; }; }
363 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
364 eval "enable_$ac_feature=no" ;;
1030 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1031 eval enable_$ac_feature=no ;;
1032
1033 -docdir | --docdir | --docdi | --doc | --do)
1034 ac_prev=docdir ;;
1035 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1036 docdir=$ac_optarg ;;
1037
1038 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1039 ac_prev=dvidir ;;
1040 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1041 dvidir=$ac_optarg ;;
3651042
3661043 -enable-* | --enable-*)
3671044 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
3681045 # Reject names that are not valid shell variable names.
369 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1046 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
3701047 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
3711048 { (exit 1); exit 1; }; }
372 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
373 case $ac_option in
374 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
375 *) ac_optarg=yes ;;
376 esac
377 eval "enable_$ac_feature='$ac_optarg'" ;;
1049 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1050 eval enable_$ac_feature=\$ac_optarg ;;
3781051
3791052 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
3801053 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
4011074 -host=* | --host=* | --hos=* | --ho=*)
4021075 host_alias=$ac_optarg ;;
4031076
1077 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1078 ac_prev=htmldir ;;
1079 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1080 | --ht=*)
1081 htmldir=$ac_optarg ;;
1082
4041083 -includedir | --includedir | --includedi | --included | --include \
4051084 | --includ | --inclu | --incl | --inc)
4061085 ac_prev=includedir ;;
4251104 | --libexe=* | --libex=* | --libe=*)
4261105 libexecdir=$ac_optarg ;;
4271106
1107 -localedir | --localedir | --localedi | --localed | --locale)
1108 ac_prev=localedir ;;
1109 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1110 localedir=$ac_optarg ;;
1111
4281112 -localstatedir | --localstatedir | --localstatedi | --localstated \
429 | --localstate | --localstat | --localsta | --localst \
430 | --locals | --local | --loca | --loc | --lo)
1113 | --localstate | --localstat | --localsta | --localst | --locals)
4311114 ac_prev=localstatedir ;;
4321115 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
433 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
434 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
1116 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
4351117 localstatedir=$ac_optarg ;;
4361118
4371119 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
4961178 | --progr-tra=* | --program-tr=* | --program-t=*)
4971179 program_transform_name=$ac_optarg ;;
4981180
1181 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1182 ac_prev=pdfdir ;;
1183 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1184 pdfdir=$ac_optarg ;;
1185
1186 -psdir | --psdir | --psdi | --psd | --ps)
1187 ac_prev=psdir ;;
1188 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1189 psdir=$ac_optarg ;;
1190
4991191 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5001192 | -silent | --silent | --silen | --sile | --sil)
5011193 silent=yes ;;
5481240 -with-* | --with-*)
5491241 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
5501242 # Reject names that are not valid shell variable names.
551 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1243 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5521244 { echo "$as_me: error: invalid package name: $ac_package" >&2
5531245 { (exit 1); exit 1; }; }
554 ac_package=`echo $ac_package| sed 's/-/_/g'`
555 case $ac_option in
556 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
557 *) ac_optarg=yes ;;
558 esac
559 eval "with_$ac_package='$ac_optarg'" ;;
1246 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1247 eval with_$ac_package=\$ac_optarg ;;
5601248
5611249 -without-* | --without-*)
5621250 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
5631251 # Reject names that are not valid shell variable names.
564 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1252 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5651253 { echo "$as_me: error: invalid package name: $ac_package" >&2
5661254 { (exit 1); exit 1; }; }
567 ac_package=`echo $ac_package | sed 's/-/_/g'`
568 eval "with_$ac_package=no" ;;
1255 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1256 eval with_$ac_package=no ;;
5691257
5701258 --x)
5711259 # Obsolete; use --with-x.
5961284 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
5971285 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
5981286 { (exit 1); exit 1; }; }
599 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
600 eval "$ac_envvar='$ac_optarg'"
1287 eval $ac_envvar=\$ac_optarg
6011288 export $ac_envvar ;;
6021289
6031290 *)
6171304 { (exit 1); exit 1; }; }
6181305 fi
6191306
620 # Be sure to have absolute paths.
621 for ac_var in exec_prefix prefix
1307 # Be sure to have absolute directory names.
1308 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1309 datadir sysconfdir sharedstatedir localstatedir includedir \
1310 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1311 libdir localedir mandir
6221312 do
623 eval ac_val=$`echo $ac_var`
1313 eval ac_val=\$$ac_var
6241314 case $ac_val in
625 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
626 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
627 { (exit 1); exit 1; }; };;
1315 [\\/$]* | ?:[\\/]* ) continue;;
1316 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
6281317 esac
629 done
630
631 # Be sure to have absolute paths.
632 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
633 localstatedir libdir includedir oldincludedir infodir mandir
634 do
635 eval ac_val=$`echo $ac_var`
636 case $ac_val in
637 [\\/$]* | ?:[\\/]* ) ;;
638 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
639 { (exit 1); exit 1; }; };;
640 esac
1318 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1319 { (exit 1); exit 1; }; }
6411320 done
6421321
6431322 # There might be people who depend on the old broken behavior: `$host'
6641343 test "$silent" = yes && exec 6>/dev/null
6651344
6661345
1346 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1347 ac_ls_di=`ls -di .` &&
1348 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1349 { echo "$as_me: error: Working directory cannot be determined" >&2
1350 { (exit 1); exit 1; }; }
1351 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1352 { echo "$as_me: error: pwd does not report name of working directory" >&2
1353 { (exit 1); exit 1; }; }
1354
1355
6671356 # Find the source files, if location was not specified.
6681357 if test -z "$srcdir"; then
6691358 ac_srcdir_defaulted=yes
670 # Try the directory containing this script, then its parent.
671 ac_confdir=`(dirname "$0") 2>/dev/null ||
1359 # Try the directory containing this script, then the parent directory.
1360 ac_confdir=`$as_dirname -- "$0" ||
6721361 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6731362 X"$0" : 'X\(//\)[^/]' \| \
6741363 X"$0" : 'X\(//\)$' \| \
675 X"$0" : 'X\(/\)' \| \
676 . : '\(.\)' 2>/dev/null ||
1364 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6771365 echo X"$0" |
678 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
679 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
680 /^X\(\/\/\)$/{ s//\1/; q; }
681 /^X\(\/\).*/{ s//\1/; q; }
682 s/.*/./; q'`
1366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1367 s//\1/
1368 q
1369 }
1370 /^X\(\/\/\)[^/].*/{
1371 s//\1/
1372 q
1373 }
1374 /^X\(\/\/\)$/{
1375 s//\1/
1376 q
1377 }
1378 /^X\(\/\).*/{
1379 s//\1/
1380 q
1381 }
1382 s/.*/./; q'`
6831383 srcdir=$ac_confdir
684 if test ! -r $srcdir/$ac_unique_file; then
1384 if test ! -r "$srcdir/$ac_unique_file"; then
6851385 srcdir=..
6861386 fi
6871387 else
6881388 ac_srcdir_defaulted=no
6891389 fi
690 if test ! -r $srcdir/$ac_unique_file; then
691 if test "$ac_srcdir_defaulted" = yes; then
692 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
1390 if test ! -r "$srcdir/$ac_unique_file"; then
1391 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1392 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
6931393 { (exit 1); exit 1; }; }
694 else
695 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1394 fi
1395 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1396 ac_abs_confdir=`(
1397 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
6961398 { (exit 1); exit 1; }; }
697 fi
698 fi
699 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
700 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
701 { (exit 1); exit 1; }; }
702 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
703 ac_env_build_alias_set=${build_alias+set}
704 ac_env_build_alias_value=$build_alias
705 ac_cv_env_build_alias_set=${build_alias+set}
706 ac_cv_env_build_alias_value=$build_alias
707 ac_env_host_alias_set=${host_alias+set}
708 ac_env_host_alias_value=$host_alias
709 ac_cv_env_host_alias_set=${host_alias+set}
710 ac_cv_env_host_alias_value=$host_alias
711 ac_env_target_alias_set=${target_alias+set}
712 ac_env_target_alias_value=$target_alias
713 ac_cv_env_target_alias_set=${target_alias+set}
714 ac_cv_env_target_alias_value=$target_alias
715 ac_env_CC_set=${CC+set}
716 ac_env_CC_value=$CC
717 ac_cv_env_CC_set=${CC+set}
718 ac_cv_env_CC_value=$CC
719 ac_env_CFLAGS_set=${CFLAGS+set}
720 ac_env_CFLAGS_value=$CFLAGS
721 ac_cv_env_CFLAGS_set=${CFLAGS+set}
722 ac_cv_env_CFLAGS_value=$CFLAGS
723 ac_env_LDFLAGS_set=${LDFLAGS+set}
724 ac_env_LDFLAGS_value=$LDFLAGS
725 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
726 ac_cv_env_LDFLAGS_value=$LDFLAGS
727 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
728 ac_env_CPPFLAGS_value=$CPPFLAGS
729 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
730 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
731 ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
732 ac_env_PKG_CONFIG_value=$PKG_CONFIG
733 ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
734 ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
735 ac_env_LIBXML2_CFLAGS_set=${LIBXML2_CFLAGS+set}
736 ac_env_LIBXML2_CFLAGS_value=$LIBXML2_CFLAGS
737 ac_cv_env_LIBXML2_CFLAGS_set=${LIBXML2_CFLAGS+set}
738 ac_cv_env_LIBXML2_CFLAGS_value=$LIBXML2_CFLAGS
739 ac_env_LIBXML2_LIBS_set=${LIBXML2_LIBS+set}
740 ac_env_LIBXML2_LIBS_value=$LIBXML2_LIBS
741 ac_cv_env_LIBXML2_LIBS_set=${LIBXML2_LIBS+set}
742 ac_cv_env_LIBXML2_LIBS_value=$LIBXML2_LIBS
743 ac_env_LIBVIRT_CFLAGS_set=${LIBVIRT_CFLAGS+set}
744 ac_env_LIBVIRT_CFLAGS_value=$LIBVIRT_CFLAGS
745 ac_cv_env_LIBVIRT_CFLAGS_set=${LIBVIRT_CFLAGS+set}
746 ac_cv_env_LIBVIRT_CFLAGS_value=$LIBVIRT_CFLAGS
747 ac_env_LIBVIRT_LIBS_set=${LIBVIRT_LIBS+set}
748 ac_env_LIBVIRT_LIBS_value=$LIBVIRT_LIBS
749 ac_cv_env_LIBVIRT_LIBS_set=${LIBVIRT_LIBS+set}
750 ac_cv_env_LIBVIRT_LIBS_value=$LIBVIRT_LIBS
751 ac_env_GTK2_CFLAGS_set=${GTK2_CFLAGS+set}
752 ac_env_GTK2_CFLAGS_value=$GTK2_CFLAGS
753 ac_cv_env_GTK2_CFLAGS_set=${GTK2_CFLAGS+set}
754 ac_cv_env_GTK2_CFLAGS_value=$GTK2_CFLAGS
755 ac_env_GTK2_LIBS_set=${GTK2_LIBS+set}
756 ac_env_GTK2_LIBS_value=$GTK2_LIBS
757 ac_cv_env_GTK2_LIBS_set=${GTK2_LIBS+set}
758 ac_cv_env_GTK2_LIBS_value=$GTK2_LIBS
759 ac_env_GTKVNC_CFLAGS_set=${GTKVNC_CFLAGS+set}
760 ac_env_GTKVNC_CFLAGS_value=$GTKVNC_CFLAGS
761 ac_cv_env_GTKVNC_CFLAGS_set=${GTKVNC_CFLAGS+set}
762 ac_cv_env_GTKVNC_CFLAGS_value=$GTKVNC_CFLAGS
763 ac_env_GTKVNC_LIBS_set=${GTKVNC_LIBS+set}
764 ac_env_GTKVNC_LIBS_value=$GTKVNC_LIBS
765 ac_cv_env_GTKVNC_LIBS_set=${GTKVNC_LIBS+set}
766 ac_cv_env_GTKVNC_LIBS_value=$GTKVNC_LIBS
1399 pwd)`
1400 # When building in place, set srcdir=.
1401 if test "$ac_abs_confdir" = "$ac_pwd"; then
1402 srcdir=.
1403 fi
1404 # Remove unnecessary trailing slashes from srcdir.
1405 # Double slashes in file names in object file debugging info
1406 # mess up M-x gdb in Emacs.
1407 case $srcdir in
1408 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1409 esac
1410 for ac_var in $ac_precious_vars; do
1411 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1412 eval ac_env_${ac_var}_value=\$${ac_var}
1413 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1414 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1415 done
7671416
7681417 #
7691418 # Report the --help message.
7721421 # Omit some internal or obsolete options to make the list less imposing.
7731422 # This message is too long to be a string in the A/UX 3.1 sh.
7741423 cat <<_ACEOF
775 \`configure' configures this package to adapt to many kinds of systems.
1424 \`configure' configures virt-viewer 0.0.3 to adapt to many kinds of systems.
7761425
7771426 Usage: $0 [OPTION]... [VAR=VALUE]...
7781427
7921441 -n, --no-create do not create output files
7931442 --srcdir=DIR find the sources in DIR [configure dir or \`..']
7941443
795 _ACEOF
796
797 cat <<_ACEOF
7981444 Installation directories:
7991445 --prefix=PREFIX install architecture-independent files in PREFIX
8001446 [$ac_default_prefix]
8121458 --bindir=DIR user executables [EPREFIX/bin]
8131459 --sbindir=DIR system admin executables [EPREFIX/sbin]
8141460 --libexecdir=DIR program executables [EPREFIX/libexec]
815 --datadir=DIR read-only architecture-independent data [PREFIX/share]
8161461 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
8171462 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
8181463 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
8191464 --libdir=DIR object code libraries [EPREFIX/lib]
8201465 --includedir=DIR C header files [PREFIX/include]
8211466 --oldincludedir=DIR C header files for non-gcc [/usr/include]
822 --infodir=DIR info documentation [PREFIX/info]
823 --mandir=DIR man documentation [PREFIX/man]
1467 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1468 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1469 --infodir=DIR info documentation [DATAROOTDIR/info]
1470 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1471 --mandir=DIR man documentation [DATAROOTDIR/man]
1472 --docdir=DIR documentation root [DATAROOTDIR/doc/virt-viewer]
1473 --htmldir=DIR html documentation [DOCDIR]
1474 --dvidir=DIR dvi documentation [DOCDIR]
1475 --pdfdir=DIR pdf documentation [DOCDIR]
1476 --psdir=DIR ps documentation [DOCDIR]
8241477 _ACEOF
8251478
8261479 cat <<\_ACEOF
8291482 --program-prefix=PREFIX prepend PREFIX to installed program names
8301483 --program-suffix=SUFFIX append SUFFIX to installed program names
8311484 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1485
1486 System types:
1487 --build=BUILD configure for building on BUILD [guessed]
1488 --host=HOST cross-compile to build programs to run on HOST [BUILD]
8321489 _ACEOF
8331490 fi
8341491
8351492 if test -n "$ac_init_help"; then
836
1493 case $ac_init_help in
1494 short | recursive ) echo "Configuration of virt-viewer 0.0.3:";;
1495 esac
8371496 cat <<\_ACEOF
8381497
8391498 Optional Features:
8411500 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
8421501 --disable-dependency-tracking speeds up one-time build
8431502 --enable-dependency-tracking do not reject slow dependency extractors
1503 --enable-shared[=PKGS] build shared libraries [default=yes]
1504 --enable-static[=PKGS] build static libraries [default=yes]
1505 --enable-fast-install[=PKGS]
1506 optimize for fast installation [default=yes]
1507 --disable-libtool-lock avoid locking (might break parallel builds)
8441508 --enable-compile-warnings=[no/minimum/yes/maximum/error]
8451509 Turn on compiler warnings
8461510 --enable-iso-c Try to warn if code is not ISO C
1511 --enable-plugin=no/yes enable browser plugin default=no
1512
1513 Optional Packages:
1514 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1515 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1516 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1517 --with-pic try to use only PIC/non-PIC objects [default=use
1518 both]
1519 --with-tags[=TAGS] include additional configurations [automatic]
8471520
8481521 Some influential environment variables:
8491522 CC C compiler command
8501523 CFLAGS C compiler flags
8511524 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
8521525 nonstandard directory <lib dir>
853 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
854 headers in a nonstandard directory <include dir>
1526 LIBS libraries to pass to the linker, e.g. -l<library>
1527 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1528 you have headers in a nonstandard directory <include dir>
1529 CPP C preprocessor
1530 CXX C++ compiler command
1531 CXXFLAGS C++ compiler flags
1532 CXXCPP C++ preprocessor
1533 F77 Fortran 77 compiler command
1534 FFLAGS Fortran 77 compiler flags
8551535 PKG_CONFIG path to pkg-config utility
8561536 LIBXML2_CFLAGS
8571537 C compiler flags for LIBXML2, overriding pkg-config
8661546 GTKVNC_CFLAGS
8671547 C compiler flags for GTKVNC, overriding pkg-config
8681548 GTKVNC_LIBS linker flags for GTKVNC, overriding pkg-config
1549 NSPR_CFLAGS C compiler flags for NSPR, overriding pkg-config
1550 NSPR_LIBS linker flags for NSPR, overriding pkg-config
1551 FIREFOX_PLUGIN_CFLAGS
1552 C compiler flags for FIREFOX_PLUGIN, overriding pkg-config
1553 FIREFOX_PLUGIN_LIBS
1554 linker flags for FIREFOX_PLUGIN, overriding pkg-config
1555 MOZILLA_PLUGIN_CFLAGS
1556 C compiler flags for MOZILLA_PLUGIN, overriding pkg-config
1557 MOZILLA_PLUGIN_LIBS
1558 linker flags for MOZILLA_PLUGIN, overriding pkg-config
8691559
8701560 Use these variables to override the choices made by `configure' or to help
8711561 it to find libraries and programs with nonstandard names/locations.
8721562
8731563 _ACEOF
1564 ac_status=$?
8741565 fi
8751566
8761567 if test "$ac_init_help" = "recursive"; then
8771568 # If there are subdirs, report their specific --help.
878 ac_popdir=`pwd`
8791569 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
880 test -d $ac_dir || continue
1570 test -d "$ac_dir" || continue
8811571 ac_builddir=.
8821572
883 if test "$ac_dir" != .; then
1573 case "$ac_dir" in
1574 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1575 *)
8841576 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
885 # A "../" for each directory in $ac_dir_suffix.
886 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
887 else
888 ac_dir_suffix= ac_top_builddir=
889 fi
1577 # A ".." for each directory in $ac_dir_suffix.
1578 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1579 case $ac_top_builddir_sub in
1580 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1581 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1582 esac ;;
1583 esac
1584 ac_abs_top_builddir=$ac_pwd
1585 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1586 # for backward compatibility:
1587 ac_top_builddir=$ac_top_build_prefix
8901588
8911589 case $srcdir in
892 .) # No --srcdir option. We are building in place.
1590 .) # We are building in place.
8931591 ac_srcdir=.
894 if test -z "$ac_top_builddir"; then
895 ac_top_srcdir=.
896 else
897 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
898 fi ;;
899 [\\/]* | ?:[\\/]* ) # Absolute path.
1592 ac_top_srcdir=$ac_top_builddir_sub
1593 ac_abs_top_srcdir=$ac_pwd ;;
1594 [\\/]* | ?:[\\/]* ) # Absolute name.
9001595 ac_srcdir=$srcdir$ac_dir_suffix;
901 ac_top_srcdir=$srcdir ;;
902 *) # Relative path.
903 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
904 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1596 ac_top_srcdir=$srcdir
1597 ac_abs_top_srcdir=$srcdir ;;
1598 *) # Relative name.
1599 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1600 ac_top_srcdir=$ac_top_build_prefix$srcdir
1601 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9051602 esac
906
907 # Do not use `cd foo && pwd` to compute absolute paths, because
908 # the directories may not exist.
909 case `pwd` in
910 .) ac_abs_builddir="$ac_dir";;
911 *)
912 case "$ac_dir" in
913 .) ac_abs_builddir=`pwd`;;
914 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
915 *) ac_abs_builddir=`pwd`/"$ac_dir";;
916 esac;;
917 esac
918 case $ac_abs_builddir in
919 .) ac_abs_top_builddir=${ac_top_builddir}.;;
920 *)
921 case ${ac_top_builddir}. in
922 .) ac_abs_top_builddir=$ac_abs_builddir;;
923 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
924 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
925 esac;;
926 esac
927 case $ac_abs_builddir in
928 .) ac_abs_srcdir=$ac_srcdir;;
929 *)
930 case $ac_srcdir in
931 .) ac_abs_srcdir=$ac_abs_builddir;;
932 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
933 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
934 esac;;
935 esac
936 case $ac_abs_builddir in
937 .) ac_abs_top_srcdir=$ac_top_srcdir;;
938 *)
939 case $ac_top_srcdir in
940 .) ac_abs_top_srcdir=$ac_abs_builddir;;
941 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
942 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
943 esac;;
944 esac
945
946 cd $ac_dir
947 # Check for guested configure; otherwise get Cygnus style configure.
948 if test -f $ac_srcdir/configure.gnu; then
949 echo
950 $SHELL $ac_srcdir/configure.gnu --help=recursive
951 elif test -f $ac_srcdir/configure; then
952 echo
953 $SHELL $ac_srcdir/configure --help=recursive
954 elif test -f $ac_srcdir/configure.ac ||
955 test -f $ac_srcdir/configure.in; then
956 echo
957 $ac_configure --help
1603 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1604
1605 cd "$ac_dir" || { ac_status=$?; continue; }
1606 # Check for guested configure.
1607 if test -f "$ac_srcdir/configure.gnu"; then
1608 echo &&
1609 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1610 elif test -f "$ac_srcdir/configure"; then
1611 echo &&
1612 $SHELL "$ac_srcdir/configure" --help=recursive
9581613 else
9591614 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
960 fi
961 cd $ac_popdir
1615 fi || ac_status=$?
1616 cd "$ac_pwd" || { ac_status=$?; break; }
9621617 done
9631618 fi
9641619
965 test -n "$ac_init_help" && exit 0
1620 test -n "$ac_init_help" && exit $ac_status
9661621 if $ac_init_version; then
9671622 cat <<\_ACEOF
968
969 Copyright (C) 2003 Free Software Foundation, Inc.
1623 virt-viewer configure 0.0.3
1624 generated by GNU Autoconf 2.61
1625
1626 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1627 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9701628 This configure script is free software; the Free Software Foundation
9711629 gives unlimited permission to copy, distribute and modify it.
9721630 _ACEOF
973 exit 0
974 fi
975 exec 5>config.log
976 cat >&5 <<_ACEOF
1631 exit
1632 fi
1633 cat >config.log <<_ACEOF
9771634 This file contains any messages produced by compilers while
9781635 running configure, to aid debugging if configure makes a mistake.
9791636
980 It was created by $as_me, which was
981 generated by GNU Autoconf 2.59. Invocation command line was
1637 It was created by virt-viewer $as_me 0.0.3, which was
1638 generated by GNU Autoconf 2.61. Invocation command line was
9821639
9831640 $ $0 $@
9841641
9851642 _ACEOF
1643 exec 5>>config.log
9861644 {
9871645 cat <<_ASUNAME
9881646 ## --------- ##
10011659 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
10021660 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
10031661 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1004 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1662 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
10051663 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
10061664 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
10071665 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
10151673 test -z "$as_dir" && as_dir=.
10161674 echo "PATH: $as_dir"
10171675 done
1676 IFS=$as_save_IFS
10181677
10191678 } >&5
10201679
10361695 ac_configure_args=
10371696 ac_configure_args0=
10381697 ac_configure_args1=
1039 ac_sep=
10401698 ac_must_keep_next=false
10411699 for ac_pass in 1 2
10421700 do
10471705 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10481706 | -silent | --silent | --silen | --sile | --sil)
10491707 continue ;;
1050 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1708 *\'*)
10511709 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10521710 esac
10531711 case $ac_pass in
10691727 -* ) ac_must_keep_next=true ;;
10701728 esac
10711729 fi
1072 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1073 # Get rid of the leading space.
1074 ac_sep=" "
1730 ac_configure_args="$ac_configure_args '$ac_arg'"
10751731 ;;
10761732 esac
10771733 done
10821738 # When interrupted or exit'd, cleanup temporary files, and complete
10831739 # config.log. We remove comments because anyway the quotes in there
10841740 # would cause problems or look ugly.
1085 # WARNING: Be sure not to use single quotes in there, as some shells,
1086 # such as our DU 5.0 friend, will then `close' the trap.
1741 # WARNING: Use '\'' to represent an apostrophe within the trap.
1742 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
10871743 trap 'exit_status=$?
10881744 # Save into config.log some information that might help in debugging.
10891745 {
10961752 _ASBOX
10971753 echo
10981754 # The following way of writing the cache mishandles newlines in values,
1099 {
1755 (
1756 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1757 eval ac_val=\$$ac_var
1758 case $ac_val in #(
1759 *${as_nl}*)
1760 case $ac_var in #(
1761 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1762 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1763 esac
1764 case $ac_var in #(
1765 _ | IFS | as_nl) ;; #(
1766 *) $as_unset $ac_var ;;
1767 esac ;;
1768 esac
1769 done
11001770 (set) 2>&1 |
1101 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1102 *ac_space=\ *)
1771 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1772 *${as_nl}ac_space=\ *)
11031773 sed -n \
1104 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1105 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1106 ;;
1774 "s/'\''/'\''\\\\'\'''\''/g;
1775 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1776 ;; #(
11071777 *)
1108 sed -n \
1109 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1110 ;;
1111 esac;
1112 }
1778 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1779 ;;
1780 esac |
1781 sort
1782 )
11131783 echo
11141784
11151785 cat <<\_ASBOX
11201790 echo
11211791 for ac_var in $ac_subst_vars
11221792 do
1123 eval ac_val=$`echo $ac_var`
1124 echo "$ac_var='"'"'$ac_val'"'"'"
1793 eval ac_val=\$$ac_var
1794 case $ac_val in
1795 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1796 esac
1797 echo "$ac_var='\''$ac_val'\''"
11251798 done | sort
11261799 echo
11271800
11281801 if test -n "$ac_subst_files"; then
11291802 cat <<\_ASBOX
1130 ## ------------- ##
1131 ## Output files. ##
1132 ## ------------- ##
1803 ## ------------------- ##
1804 ## File substitutions. ##
1805 ## ------------------- ##
11331806 _ASBOX
11341807 echo
11351808 for ac_var in $ac_subst_files
11361809 do
1137 eval ac_val=$`echo $ac_var`
1138 echo "$ac_var='"'"'$ac_val'"'"'"
1810 eval ac_val=\$$ac_var
1811 case $ac_val in
1812 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1813 esac
1814 echo "$ac_var='\''$ac_val'\''"
11391815 done | sort
11401816 echo
11411817 fi
11471823 ## ----------- ##
11481824 _ASBOX
11491825 echo
1150 sed "/^$/d" confdefs.h | sort
1826 cat confdefs.h
11511827 echo
11521828 fi
11531829 test "$ac_signal" != 0 &&
11541830 echo "$as_me: caught signal $ac_signal"
11551831 echo "$as_me: exit $exit_status"
11561832 } >&5
1157 rm -f core *.core &&
1158 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1833 rm -f core *.core core.conftest.* &&
1834 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
11591835 exit $exit_status
1160 ' 0
1836 ' 0
11611837 for ac_signal in 1 2 13 15; do
11621838 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
11631839 done
11641840 ac_signal=0
11651841
11661842 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1167 rm -rf conftest* confdefs.h
1168 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1169 echo >confdefs.h
1843 rm -f -r conftest* confdefs.h
11701844
11711845 # Predefined preprocessor variables.
11721846
11971871
11981872 # Let the site file select an alternate cache file if it wants to.
11991873 # Prefer explicitly selected file to automatically selected ones.
1200 if test -z "$CONFIG_SITE"; then
1201 if test "x$prefix" != xNONE; then
1202 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1203 else
1204 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1205 fi
1206 fi
1207 for ac_site_file in $CONFIG_SITE; do
1874 if test -n "$CONFIG_SITE"; then
1875 set x "$CONFIG_SITE"
1876 elif test "x$prefix" != xNONE; then
1877 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1878 else
1879 set x "$ac_default_prefix/share/config.site" \
1880 "$ac_default_prefix/etc/config.site"
1881 fi
1882 shift
1883 for ac_site_file
1884 do
12081885 if test -r "$ac_site_file"; then
12091886 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
12101887 echo "$as_me: loading site script $ac_site_file" >&6;}
12201897 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
12211898 echo "$as_me: loading cache $cache_file" >&6;}
12221899 case $cache_file in
1223 [\\/]* | ?:[\\/]* ) . $cache_file;;
1224 *) . ./$cache_file;;
1900 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1901 *) . "./$cache_file";;
12251902 esac
12261903 fi
12271904 else
12331910 # Check that the precious variables saved in the cache have kept the same
12341911 # value.
12351912 ac_cache_corrupted=false
1236 for ac_var in `(set) 2>&1 |
1237 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1913 for ac_var in $ac_precious_vars; do
12381914 eval ac_old_set=\$ac_cv_env_${ac_var}_set
12391915 eval ac_new_set=\$ac_env_${ac_var}_set
1240 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1241 eval ac_new_val="\$ac_env_${ac_var}_value"
1916 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1917 eval ac_new_val=\$ac_env_${ac_var}_value
12421918 case $ac_old_set,$ac_new_set in
12431919 set,)
12441920 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
12631939 # Pass precious variables to config.status.
12641940 if test "$ac_new_set" = set; then
12651941 case $ac_new_val in
1266 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1267 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1942 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
12681943 *) ac_arg=$ac_var=$ac_new_val ;;
12691944 esac
12701945 case " $ac_configure_args " in
12811956 { (exit 1); exit 1; }; }
12821957 fi
12831958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
12841983 ac_ext=c
12851984 ac_cpp='$CPP $CPPFLAGS'
12861985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12891988
12901989
12911990
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308 am__api_version="1.9"
1991 ac_config_headers="$ac_config_headers config.h"
1992
1993 am__api_version='1.10'
1994
13091995 ac_aux_dir=
1310 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1311 if test -f $ac_dir/install-sh; then
1996 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1997 if test -f "$ac_dir/install-sh"; then
13121998 ac_aux_dir=$ac_dir
13131999 ac_install_sh="$ac_aux_dir/install-sh -c"
13142000 break
1315 elif test -f $ac_dir/install.sh; then
2001 elif test -f "$ac_dir/install.sh"; then
13162002 ac_aux_dir=$ac_dir
13172003 ac_install_sh="$ac_aux_dir/install.sh -c"
13182004 break
1319 elif test -f $ac_dir/shtool; then
2005 elif test -f "$ac_dir/shtool"; then
13202006 ac_aux_dir=$ac_dir
13212007 ac_install_sh="$ac_aux_dir/shtool install -c"
13222008 break
13232009 fi
13242010 done
13252011 if test -z "$ac_aux_dir"; then
1326 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1327 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2012 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2013 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
13282014 { (exit 1); exit 1; }; }
13292015 fi
1330 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1331 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1332 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2016
2017 # These three variables are undocumented and unsupported,
2018 # and are intended to be withdrawn in a future Autoconf release.
2019 # They can cause serious problems if a builder's source tree is in a directory
2020 # whose full name contains unusual characters.
2021 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2022 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2023 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2024
13332025
13342026 # Find a good install program. We prefer a C program (faster),
13352027 # so one script is as good as another. But avoid the broken or
13442036 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
13452037 # OS/2's system install, which has a completely different semantic
13462038 # ./install, which can be erroneously created by make from ./install.sh.
1347 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1348 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2039 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2040 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
13492041 if test -z "$INSTALL"; then
13502042 if test "${ac_cv_path_install+set}" = set; then
13512043 echo $ECHO_N "(cached) $ECHO_C" >&6
13672059 # by default.
13682060 for ac_prog in ginstall scoinst install; do
13692061 for ac_exec_ext in '' $ac_executable_extensions; do
1370 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2062 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
13712063 if test $ac_prog = install &&
13722064 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13732065 # AIX install. It has an incompatible calling convention.
13862078 ;;
13872079 esac
13882080 done
2081 IFS=$as_save_IFS
13892082
13902083
13912084 fi
13922085 if test "${ac_cv_path_install+set}" = set; then
13932086 INSTALL=$ac_cv_path_install
13942087 else
1395 # As a last resort, use the slow shell script. We don't cache a
1396 # path for INSTALL within a source directory, because that will
2088 # As a last resort, use the slow shell script. Don't cache a
2089 # value for INSTALL within a source directory, because that will
13972090 # break other packages using the cache if that directory is
1398 # removed, or if the path is relative.
2091 # removed, or if the value is a relative name.
13992092 INSTALL=$ac_install_sh
14002093 fi
14012094 fi
1402 echo "$as_me:$LINENO: result: $INSTALL" >&5
1403 echo "${ECHO_T}$INSTALL" >&6
2095 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2096 echo "${ECHO_T}$INSTALL" >&6; }
14042097
14052098 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14062099 # It thinks the first close brace ends the variable substitution.
14102103
14112104 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14122105
1413 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1414 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2106 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2107 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
14152108 # Just in case
14162109 sleep 1
14172110 echo timestamp > conftest.file
14532146 Check your system clock" >&2;}
14542147 { (exit 1); exit 1; }; }
14552148 fi
1456 echo "$as_me:$LINENO: result: yes" >&5
1457 echo "${ECHO_T}yes" >&6
2149 { echo "$as_me:$LINENO: result: yes" >&5
2150 echo "${ECHO_T}yes" >&6; }
14582151 test "$program_prefix" != NONE &&
1459 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2152 program_transform_name="s&^&$program_prefix&;$program_transform_name"
14602153 # Use a double $ so make ignores it.
14612154 test "$program_suffix" != NONE &&
1462 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2155 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
14632156 # Double any \ or $. echo might interpret backslashes.
14642157 # By default was `s,x,x', remove it if useless.
14652158 cat <<\_ACEOF >conftest.sed
14662159 s/[\\$]/&&/g;s/;s,x,x,$//
14672160 _ACEOF
14682161 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1469 rm conftest.sed
2162 rm -f conftest.sed
14702163
14712164 # expand $ac_aux_dir to an absolute path
14722165 am_aux_dir=`cd $ac_aux_dir && pwd`
14812174 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
14822175 fi
14832176
1484 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1485 # We used to keeping the `.' as first argument, in order to
1486 # allow $(mkdir_p) to be used without argument. As in
1487 # $(mkdir_p) $(somedir)
1488 # where $(somedir) is conditionally defined. However this is wrong
1489 # for two reasons:
1490 # 1. if the package is installed by a user who cannot write `.'
1491 # make install will fail,
1492 # 2. the above comment should most certainly read
1493 # $(mkdir_p) $(DESTDIR)$(somedir)
1494 # so it does not work when $(somedir) is undefined and
1495 # $(DESTDIR) is not.
1496 # To support the latter case, we have to write
1497 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1498 # so the `.' trick is pointless.
1499 mkdir_p='mkdir -p --'
1500 else
1501 # On NextStep and OpenStep, the `mkdir' command does not
1502 # recognize any option. It will interpret all options as
1503 # directories to create, and then abort because `.' already
1504 # exists.
1505 for d in ./-p ./--version;
1506 do
1507 test -d $d && rmdir $d
1508 done
1509 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1510 if test -f "$ac_aux_dir/mkinstalldirs"; then
1511 mkdir_p='$(mkinstalldirs)'
2177 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2178 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2179 if test -z "$MKDIR_P"; then
2180 if test "${ac_cv_path_mkdir+set}" = set; then
2181 echo $ECHO_N "(cached) $ECHO_C" >&6
2182 else
2183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2184 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2185 do
2186 IFS=$as_save_IFS
2187 test -z "$as_dir" && as_dir=.
2188 for ac_prog in mkdir gmkdir; do
2189 for ac_exec_ext in '' $ac_executable_extensions; do
2190 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2191 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2192 'mkdir (GNU coreutils) '* | \
2193 'mkdir (coreutils) '* | \
2194 'mkdir (fileutils) '4.1*)
2195 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2196 break 3;;
2197 esac
2198 done
2199 done
2200 done
2201 IFS=$as_save_IFS
2202
2203 fi
2204
2205 if test "${ac_cv_path_mkdir+set}" = set; then
2206 MKDIR_P="$ac_cv_path_mkdir -p"
15122207 else
1513 mkdir_p='$(install_sh) -d'
2208 # As a last resort, use the slow shell script. Don't cache a
2209 # value for MKDIR_P within a source directory, because that will
2210 # break other packages using the cache if that directory is
2211 # removed, or if the value is a relative name.
2212 test -d ./--version && rmdir ./--version
2213 MKDIR_P="$ac_install_sh -d"
15142214 fi
15152215 fi
2216 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2217 echo "${ECHO_T}$MKDIR_P" >&6; }
2218
2219 mkdir_p="$MKDIR_P"
2220 case $mkdir_p in
2221 [\\/$]* | ?:[\\/]*) ;;
2222 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2223 esac
15162224
15172225 for ac_prog in gawk mawk nawk awk
15182226 do
15192227 # Extract the first word of "$ac_prog", so it can be a program name with args.
15202228 set dummy $ac_prog; ac_word=$2
1521 echo "$as_me:$LINENO: checking for $ac_word" >&5
1522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2229 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15232231 if test "${ac_cv_prog_AWK+set}" = set; then
15242232 echo $ECHO_N "(cached) $ECHO_C" >&6
15252233 else
15322240 IFS=$as_save_IFS
15332241 test -z "$as_dir" && as_dir=.
15342242 for ac_exec_ext in '' $ac_executable_extensions; do
1535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15362244 ac_cv_prog_AWK="$ac_prog"
15372245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15382246 break 2
15392247 fi
15402248 done
15412249 done
2250 IFS=$as_save_IFS
15422251
15432252 fi
15442253 fi
15452254 AWK=$ac_cv_prog_AWK
15462255 if test -n "$AWK"; then
1547 echo "$as_me:$LINENO: result: $AWK" >&5
1548 echo "${ECHO_T}$AWK" >&6
1549 else
1550 echo "$as_me:$LINENO: result: no" >&5
1551 echo "${ECHO_T}no" >&6
1552 fi
2256 { echo "$as_me:$LINENO: result: $AWK" >&5
2257 echo "${ECHO_T}$AWK" >&6; }
2258 else
2259 { echo "$as_me:$LINENO: result: no" >&5
2260 echo "${ECHO_T}no" >&6; }
2261 fi
2262
15532263
15542264 test -n "$AWK" && break
15552265 done
15562266
1557 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1558 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1559 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1560 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2267 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2268 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2269 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2270 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
15612271 echo $ECHO_N "(cached) $ECHO_C" >&6
15622272 else
15632273 cat >conftest.make <<\_ACEOF
2274 SHELL = /bin/sh
15642275 all:
1565 @echo 'ac_maketemp="$(MAKE)"'
2276 @echo '@@@%%%=$(MAKE)=@@@%%%'
15662277 _ACEOF
15672278 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1568 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1569 if test -n "$ac_maketemp"; then
1570 eval ac_cv_prog_make_${ac_make}_set=yes
1571 else
1572 eval ac_cv_prog_make_${ac_make}_set=no
1573 fi
2279 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2280 *@@@%%%=?*=@@@%%%*)
2281 eval ac_cv_prog_make_${ac_make}_set=yes;;
2282 *)
2283 eval ac_cv_prog_make_${ac_make}_set=no;;
2284 esac
15742285 rm -f conftest.make
15752286 fi
1576 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1577 echo "$as_me:$LINENO: result: yes" >&5
1578 echo "${ECHO_T}yes" >&6
2287 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2288 { echo "$as_me:$LINENO: result: yes" >&5
2289 echo "${ECHO_T}yes" >&6; }
15792290 SET_MAKE=
15802291 else
1581 echo "$as_me:$LINENO: result: no" >&5
1582 echo "${ECHO_T}no" >&6
2292 { echo "$as_me:$LINENO: result: no" >&5
2293 echo "${ECHO_T}no" >&6; }
15832294 SET_MAKE="MAKE=${MAKE-make}"
15842295 fi
15852296
15922303 fi
15932304 rmdir .tst 2>/dev/null
15942305
1595 # test to see if srcdir already configured
1596 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1597 test -f $srcdir/config.status; then
1598 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2306 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2307 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2308 # is not polluted with repeated "-I."
2309 am__isrc=' -I$(srcdir)'
2310 # test to see if srcdir already configured
2311 if test -f $srcdir/config.status; then
2312 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
15992313 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
16002314 { (exit 1); exit 1; }; }
2315 fi
16012316 fi
16022317
16032318 # test whether we have cygpath
16112326
16122327
16132328 # Define the identity of the package.
1614 PACKAGE=virt-viewer
1615 VERSION=0.0.2
2329 PACKAGE='virt-viewer'
2330 VERSION='0.0.3'
16162331
16172332
16182333 cat >>confdefs.h <<_ACEOF
16402355
16412356 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
16422357
1643 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2358 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
16442359
16452360 # Installed binaries are usually stripped using `strip' when the user
16462361 # run `make install-strip'. However `strip' might not be the right
16502365 if test -n "$ac_tool_prefix"; then
16512366 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
16522367 set dummy ${ac_tool_prefix}strip; ac_word=$2
1653 echo "$as_me:$LINENO: checking for $ac_word" >&5
1654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2368 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16552370 if test "${ac_cv_prog_STRIP+set}" = set; then
16562371 echo $ECHO_N "(cached) $ECHO_C" >&6
16572372 else
16642379 IFS=$as_save_IFS
16652380 test -z "$as_dir" && as_dir=.
16662381 for ac_exec_ext in '' $ac_executable_extensions; do
1667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16682383 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
16692384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16702385 break 2
16712386 fi
16722387 done
16732388 done
2389 IFS=$as_save_IFS
16742390
16752391 fi
16762392 fi
16772393 STRIP=$ac_cv_prog_STRIP
16782394 if test -n "$STRIP"; then
1679 echo "$as_me:$LINENO: result: $STRIP" >&5
1680 echo "${ECHO_T}$STRIP" >&6
1681 else
1682 echo "$as_me:$LINENO: result: no" >&5
1683 echo "${ECHO_T}no" >&6
1684 fi
2395 { echo "$as_me:$LINENO: result: $STRIP" >&5
2396 echo "${ECHO_T}$STRIP" >&6; }
2397 else
2398 { echo "$as_me:$LINENO: result: no" >&5
2399 echo "${ECHO_T}no" >&6; }
2400 fi
2401
16852402
16862403 fi
16872404 if test -z "$ac_cv_prog_STRIP"; then
16882405 ac_ct_STRIP=$STRIP
16892406 # Extract the first word of "strip", so it can be a program name with args.
16902407 set dummy strip; ac_word=$2
1691 echo "$as_me:$LINENO: checking for $ac_word" >&5
1692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16932410 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
16942411 echo $ECHO_N "(cached) $ECHO_C" >&6
16952412 else
17022419 IFS=$as_save_IFS
17032420 test -z "$as_dir" && as_dir=.
17042421 for ac_exec_ext in '' $ac_executable_extensions; do
1705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17062423 ac_cv_prog_ac_ct_STRIP="strip"
17072424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17082425 break 2
17092426 fi
17102427 done
17112428 done
1712
1713 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2429 IFS=$as_save_IFS
2430
17142431 fi
17152432 fi
17162433 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
17172434 if test -n "$ac_ct_STRIP"; then
1718 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1719 echo "${ECHO_T}$ac_ct_STRIP" >&6
1720 else
1721 echo "$as_me:$LINENO: result: no" >&5
1722 echo "${ECHO_T}no" >&6
1723 fi
1724
1725 STRIP=$ac_ct_STRIP
2435 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2436 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2437 else
2438 { echo "$as_me:$LINENO: result: no" >&5
2439 echo "${ECHO_T}no" >&6; }
2440 fi
2441
2442 if test "x$ac_ct_STRIP" = x; then
2443 STRIP=":"
2444 else
2445 case $cross_compiling:$ac_tool_warned in
2446 yes:)
2447 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2448 whose name does not start with the host triplet. If you think this
2449 configuration is useful to you, please write to autoconf@gnu.org." >&5
2450 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2451 whose name does not start with the host triplet. If you think this
2452 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2453 ac_tool_warned=yes ;;
2454 esac
2455 STRIP=$ac_ct_STRIP
2456 fi
17262457 else
17272458 STRIP="$ac_cv_prog_STRIP"
17282459 fi
17292460
17302461 fi
1731 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2462 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
17322463
17332464 # We need awk for the "check" target. The system "awk" is bad on
17342465 # some platforms.
17402471
17412472
17422473
2474
2475
2476 # Make sure we can run config.sub.
2477 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2478 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2479 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2480 { (exit 1); exit 1; }; }
2481
2482 { echo "$as_me:$LINENO: checking build system type" >&5
2483 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2484 if test "${ac_cv_build+set}" = set; then
2485 echo $ECHO_N "(cached) $ECHO_C" >&6
2486 else
2487 ac_build_alias=$build_alias
2488 test "x$ac_build_alias" = x &&
2489 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2490 test "x$ac_build_alias" = x &&
2491 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2492 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2493 { (exit 1); exit 1; }; }
2494 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2495 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2496 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2497 { (exit 1); exit 1; }; }
2498
2499 fi
2500 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2501 echo "${ECHO_T}$ac_cv_build" >&6; }
2502 case $ac_cv_build in
2503 *-*-*) ;;
2504 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2505 echo "$as_me: error: invalid value of canonical build" >&2;}
2506 { (exit 1); exit 1; }; };;
2507 esac
2508 build=$ac_cv_build
2509 ac_save_IFS=$IFS; IFS='-'
2510 set x $ac_cv_build
2511 shift
2512 build_cpu=$1
2513 build_vendor=$2
2514 shift; shift
2515 # Remember, the first character of IFS is used to create $*,
2516 # except with old shells:
2517 build_os=$*
2518 IFS=$ac_save_IFS
2519 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2520
2521
2522 { echo "$as_me:$LINENO: checking host system type" >&5
2523 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2524 if test "${ac_cv_host+set}" = set; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2526 else
2527 if test "x$host_alias" = x; then
2528 ac_cv_host=$ac_cv_build
2529 else
2530 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2531 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2532 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2533 { (exit 1); exit 1; }; }
2534 fi
2535
2536 fi
2537 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2538 echo "${ECHO_T}$ac_cv_host" >&6; }
2539 case $ac_cv_host in
2540 *-*-*) ;;
2541 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2542 echo "$as_me: error: invalid value of canonical host" >&2;}
2543 { (exit 1); exit 1; }; };;
2544 esac
2545 host=$ac_cv_host
2546 ac_save_IFS=$IFS; IFS='-'
2547 set x $ac_cv_host
2548 shift
2549 host_cpu=$1
2550 host_vendor=$2
2551 shift; shift
2552 # Remember, the first character of IFS is used to create $*,
2553 # except with old shells:
2554 host_os=$*
2555 IFS=$ac_save_IFS
2556 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
17432557
17442558
17452559
17512565 if test -n "$ac_tool_prefix"; then
17522566 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
17532567 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1754 echo "$as_me:$LINENO: checking for $ac_word" >&5
1755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2568 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17562570 if test "${ac_cv_prog_CC+set}" = set; then
17572571 echo $ECHO_N "(cached) $ECHO_C" >&6
17582572 else
17652579 IFS=$as_save_IFS
17662580 test -z "$as_dir" && as_dir=.
17672581 for ac_exec_ext in '' $ac_executable_extensions; do
1768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17692583 ac_cv_prog_CC="${ac_tool_prefix}gcc"
17702584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17712585 break 2
17722586 fi
17732587 done
17742588 done
2589 IFS=$as_save_IFS
17752590
17762591 fi
17772592 fi
17782593 CC=$ac_cv_prog_CC
17792594 if test -n "$CC"; then
1780 echo "$as_me:$LINENO: result: $CC" >&5
1781 echo "${ECHO_T}$CC" >&6
1782 else
1783 echo "$as_me:$LINENO: result: no" >&5
1784 echo "${ECHO_T}no" >&6
1785 fi
2595 { echo "$as_me:$LINENO: result: $CC" >&5
2596 echo "${ECHO_T}$CC" >&6; }
2597 else
2598 { echo "$as_me:$LINENO: result: no" >&5
2599 echo "${ECHO_T}no" >&6; }
2600 fi
2601
17862602
17872603 fi
17882604 if test -z "$ac_cv_prog_CC"; then
17892605 ac_ct_CC=$CC
17902606 # Extract the first word of "gcc", so it can be a program name with args.
17912607 set dummy gcc; ac_word=$2
1792 echo "$as_me:$LINENO: checking for $ac_word" >&5
1793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2608 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17942610 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
17952611 echo $ECHO_N "(cached) $ECHO_C" >&6
17962612 else
18032619 IFS=$as_save_IFS
18042620 test -z "$as_dir" && as_dir=.
18052621 for ac_exec_ext in '' $ac_executable_extensions; do
1806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18072623 ac_cv_prog_ac_ct_CC="gcc"
18082624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18092625 break 2
18102626 fi
18112627 done
18122628 done
2629 IFS=$as_save_IFS
18132630
18142631 fi
18152632 fi
18162633 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18172634 if test -n "$ac_ct_CC"; then
1818 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1819 echo "${ECHO_T}$ac_ct_CC" >&6
1820 else
1821 echo "$as_me:$LINENO: result: no" >&5
1822 echo "${ECHO_T}no" >&6
1823 fi
1824
1825 CC=$ac_ct_CC
2635 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2636 echo "${ECHO_T}$ac_ct_CC" >&6; }
2637 else
2638 { echo "$as_me:$LINENO: result: no" >&5
2639 echo "${ECHO_T}no" >&6; }
2640 fi
2641
2642 if test "x$ac_ct_CC" = x; then
2643 CC=""
2644 else
2645 case $cross_compiling:$ac_tool_warned in
2646 yes:)
2647 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2648 whose name does not start with the host triplet. If you think this
2649 configuration is useful to you, please write to autoconf@gnu.org." >&5
2650 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2651 whose name does not start with the host triplet. If you think this
2652 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2653 ac_tool_warned=yes ;;
2654 esac
2655 CC=$ac_ct_CC
2656 fi
18262657 else
18272658 CC="$ac_cv_prog_CC"
18282659 fi
18292660
18302661 if test -z "$CC"; then
1831 if test -n "$ac_tool_prefix"; then
1832 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2662 if test -n "$ac_tool_prefix"; then
2663 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
18332664 set dummy ${ac_tool_prefix}cc; ac_word=$2
1834 echo "$as_me:$LINENO: checking for $ac_word" >&5
1835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18362667 if test "${ac_cv_prog_CC+set}" = set; then
18372668 echo $ECHO_N "(cached) $ECHO_C" >&6
18382669 else
18452676 IFS=$as_save_IFS
18462677 test -z "$as_dir" && as_dir=.
18472678 for ac_exec_ext in '' $ac_executable_extensions; do
1848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18492680 ac_cv_prog_CC="${ac_tool_prefix}cc"
18502681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18512682 break 2
18522683 fi
18532684 done
18542685 done
2686 IFS=$as_save_IFS
18552687
18562688 fi
18572689 fi
18582690 CC=$ac_cv_prog_CC
18592691 if test -n "$CC"; then
1860 echo "$as_me:$LINENO: result: $CC" >&5
1861 echo "${ECHO_T}$CC" >&6
1862 else
1863 echo "$as_me:$LINENO: result: no" >&5
1864 echo "${ECHO_T}no" >&6
1865 fi
1866
1867 fi
1868 if test -z "$ac_cv_prog_CC"; then
1869 ac_ct_CC=$CC
1870 # Extract the first word of "cc", so it can be a program name with args.
1871 set dummy cc; ac_word=$2
1872 echo "$as_me:$LINENO: checking for $ac_word" >&5
1873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1874 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1875 echo $ECHO_N "(cached) $ECHO_C" >&6
1876 else
1877 if test -n "$ac_ct_CC"; then
1878 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1879 else
1880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1881 for as_dir in $PATH
1882 do
1883 IFS=$as_save_IFS
1884 test -z "$as_dir" && as_dir=.
1885 for ac_exec_ext in '' $ac_executable_extensions; do
1886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1887 ac_cv_prog_ac_ct_CC="cc"
1888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1889 break 2
2692 { echo "$as_me:$LINENO: result: $CC" >&5
2693 echo "${ECHO_T}$CC" >&6; }
2694 else
2695 { echo "$as_me:$LINENO: result: no" >&5
2696 echo "${ECHO_T}no" >&6; }
2697 fi
2698
2699
18902700 fi
1891 done
1892 done
1893
1894 fi
1895 fi
1896 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1897 if test -n "$ac_ct_CC"; then
1898 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1899 echo "${ECHO_T}$ac_ct_CC" >&6
1900 else
1901 echo "$as_me:$LINENO: result: no" >&5
1902 echo "${ECHO_T}no" >&6
1903 fi
1904
1905 CC=$ac_ct_CC
1906 else
1907 CC="$ac_cv_prog_CC"
1908 fi
1909
19102701 fi
19112702 if test -z "$CC"; then
19122703 # Extract the first word of "cc", so it can be a program name with args.
19132704 set dummy cc; ac_word=$2
1914 echo "$as_me:$LINENO: checking for $ac_word" >&5
1915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19162707 if test "${ac_cv_prog_CC+set}" = set; then
19172708 echo $ECHO_N "(cached) $ECHO_C" >&6
19182709 else
19262717 IFS=$as_save_IFS
19272718 test -z "$as_dir" && as_dir=.
19282719 for ac_exec_ext in '' $ac_executable_extensions; do
1929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19302721 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19312722 ac_prog_rejected=yes
19322723 continue
19372728 fi
19382729 done
19392730 done
2731 IFS=$as_save_IFS
19402732
19412733 if test $ac_prog_rejected = yes; then
19422734 # We found a bogon in the path, so make sure we never use it.
19542746 fi
19552747 CC=$ac_cv_prog_CC
19562748 if test -n "$CC"; then
1957 echo "$as_me:$LINENO: result: $CC" >&5
1958 echo "${ECHO_T}$CC" >&6
1959 else
1960 echo "$as_me:$LINENO: result: no" >&5
1961 echo "${ECHO_T}no" >&6
1962 fi
2749 { echo "$as_me:$LINENO: result: $CC" >&5
2750 echo "${ECHO_T}$CC" >&6; }
2751 else
2752 { echo "$as_me:$LINENO: result: no" >&5
2753 echo "${ECHO_T}no" >&6; }
2754 fi
2755
19632756
19642757 fi
19652758 if test -z "$CC"; then
19662759 if test -n "$ac_tool_prefix"; then
1967 for ac_prog in cl
2760 for ac_prog in cl.exe
19682761 do
19692762 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19702763 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1971 echo "$as_me:$LINENO: checking for $ac_word" >&5
1972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19732766 if test "${ac_cv_prog_CC+set}" = set; then
19742767 echo $ECHO_N "(cached) $ECHO_C" >&6
19752768 else
19822775 IFS=$as_save_IFS
19832776 test -z "$as_dir" && as_dir=.
19842777 for ac_exec_ext in '' $ac_executable_extensions; do
1985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19862779 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19872780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19882781 break 2
19892782 fi
19902783 done
19912784 done
2785 IFS=$as_save_IFS
19922786
19932787 fi
19942788 fi
19952789 CC=$ac_cv_prog_CC
19962790 if test -n "$CC"; then
1997 echo "$as_me:$LINENO: result: $CC" >&5
1998 echo "${ECHO_T}$CC" >&6
1999 else
2000 echo "$as_me:$LINENO: result: no" >&5
2001 echo "${ECHO_T}no" >&6
2002 fi
2791 { echo "$as_me:$LINENO: result: $CC" >&5
2792 echo "${ECHO_T}$CC" >&6; }
2793 else
2794 { echo "$as_me:$LINENO: result: no" >&5
2795 echo "${ECHO_T}no" >&6; }
2796 fi
2797
20032798
20042799 test -n "$CC" && break
20052800 done
20062801 fi
20072802 if test -z "$CC"; then
20082803 ac_ct_CC=$CC
2009 for ac_prog in cl
2804 for ac_prog in cl.exe
20102805 do
20112806 # Extract the first word of "$ac_prog", so it can be a program name with args.
20122807 set dummy $ac_prog; ac_word=$2
2013 echo "$as_me:$LINENO: checking for $ac_word" >&5
2014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20152810 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20162811 echo $ECHO_N "(cached) $ECHO_C" >&6
20172812 else
20242819 IFS=$as_save_IFS
20252820 test -z "$as_dir" && as_dir=.
20262821 for ac_exec_ext in '' $ac_executable_extensions; do
2027 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20282823 ac_cv_prog_ac_ct_CC="$ac_prog"
20292824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20302825 break 2
20312826 fi
20322827 done
20332828 done
2829 IFS=$as_save_IFS
20342830
20352831 fi
20362832 fi
20372833 ac_ct_CC=$ac_cv_prog_ac_ct_CC
20382834 if test -n "$ac_ct_CC"; then
2039 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2040 echo "${ECHO_T}$ac_ct_CC" >&6
2041 else
2042 echo "$as_me:$LINENO: result: no" >&5
2043 echo "${ECHO_T}no" >&6
2044 fi
2835 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2836 echo "${ECHO_T}$ac_ct_CC" >&6; }
2837 else
2838 { echo "$as_me:$LINENO: result: no" >&5
2839 echo "${ECHO_T}no" >&6; }
2840 fi
2841
20452842
20462843 test -n "$ac_ct_CC" && break
20472844 done
20482845
2049 CC=$ac_ct_CC
2846 if test "x$ac_ct_CC" = x; then
2847 CC=""
2848 else
2849 case $cross_compiling:$ac_tool_warned in
2850 yes:)
2851 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2852 whose name does not start with the host triplet. If you think this
2853 configuration is useful to you, please write to autoconf@gnu.org." >&5
2854 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2855 whose name does not start with the host triplet. If you think this
2856 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2857 ac_tool_warned=yes ;;
2858 esac
2859 CC=$ac_ct_CC
2860 fi
20502861 fi
20512862
20522863 fi
20592870 { (exit 1); exit 1; }; }
20602871
20612872 # Provide some information about the compiler.
2062 echo "$as_me:$LINENO:" \
2063 "checking for C compiler version" >&5
2873 echo "$as_me:$LINENO: checking for C compiler version" >&5
20642874 ac_compiler=`set X $ac_compile; echo $2`
2065 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2066 (eval $ac_compiler --version </dev/null >&5) 2>&5
2875 { (ac_try="$ac_compiler --version >&5"
2876 case "(($ac_try" in
2877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2878 *) ac_try_echo=$ac_try;;
2879 esac
2880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2881 (eval "$ac_compiler --version >&5") 2>&5
20672882 ac_status=$?
20682883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20692884 (exit $ac_status); }
2070 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2071 (eval $ac_compiler -v </dev/null >&5) 2>&5
2885 { (ac_try="$ac_compiler -v >&5"
2886 case "(($ac_try" in
2887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2888 *) ac_try_echo=$ac_try;;
2889 esac
2890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2891 (eval "$ac_compiler -v >&5") 2>&5
20722892 ac_status=$?
20732893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20742894 (exit $ac_status); }
2075 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2076 (eval $ac_compiler -V </dev/null >&5) 2>&5
2895 { (ac_try="$ac_compiler -V >&5"
2896 case "(($ac_try" in
2897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2898 *) ac_try_echo=$ac_try;;
2899 esac
2900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2901 (eval "$ac_compiler -V >&5") 2>&5
20772902 ac_status=$?
20782903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20792904 (exit $ac_status); }
20982923 # Try to create an executable without -o first, disregard a.out.
20992924 # It will help us diagnose broken compilers, and finding out an intuition
21002925 # of exeext.
2101 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2102 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2926 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2927 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
21032928 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2104 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2105 (eval $ac_link_default) 2>&5
2929 #
2930 # List of possible output files, starting from the most likely.
2931 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2932 # only as a last resort. b.out is created by i960 compilers.
2933 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2934 #
2935 # The IRIX 6 linker writes into existing files which may not be
2936 # executable, retaining their permissions. Remove them first so a
2937 # subsequent execution test works.
2938 ac_rmfiles=
2939 for ac_file in $ac_files
2940 do
2941 case $ac_file in
2942 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2943 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2944 esac
2945 done
2946 rm -f $ac_rmfiles
2947
2948 if { (ac_try="$ac_link_default"
2949 case "(($ac_try" in
2950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951 *) ac_try_echo=$ac_try;;
2952 esac
2953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2954 (eval "$ac_link_default") 2>&5
21062955 ac_status=$?
21072956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082957 (exit $ac_status); }; then
2109 # Find the output, starting from the most likely. This scheme is
2110 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2111 # resort.
2112
2113 # Be careful to initialize this variable, since it used to be cached.
2114 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2115 ac_cv_exeext=
2116 # b.out is created by i960 compilers.
2117 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2958 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2959 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2960 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2961 # so that the user can short-circuit this test for compilers unknown to
2962 # Autoconf.
2963 for ac_file in $ac_files ''
21182964 do
21192965 test -f "$ac_file" || continue
21202966 case $ac_file in
2121 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2122 ;;
2123 conftest.$ac_ext )
2124 # This is the source file.
2967 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
21252968 ;;
21262969 [ab].out )
21272970 # We found the default executable, but exeext='' is most
21282971 # certainly right.
21292972 break;;
21302973 *.* )
2131 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2132 # FIXME: I believe we export ac_cv_exeext for Libtool,
2133 # but it would be cool to find out if it's true. Does anybody
2134 # maintain Libtool? --akim.
2135 export ac_cv_exeext
2974 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2975 then :; else
2976 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2977 fi
2978 # We set ac_cv_exeext here because the later test for it is not
2979 # safe: cross compilers may not add the suffix if given an `-o'
2980 # argument, so we may need to know it at that point already.
2981 # Even if this section looks crufty: it has the advantage of
2982 # actually working.
21362983 break;;
21372984 * )
21382985 break;;
21392986 esac
21402987 done
2141 else
2988 test "$ac_cv_exeext" = no && ac_cv_exeext=
2989
2990 else
2991 ac_file=''
2992 fi
2993
2994 { echo "$as_me:$LINENO: result: $ac_file" >&5
2995 echo "${ECHO_T}$ac_file" >&6; }
2996 if test -z "$ac_file"; then
21422997 echo "$as_me: failed program was:" >&5
21432998 sed 's/^/| /' conftest.$ac_ext >&5
21442999
21503005 fi
21513006
21523007 ac_exeext=$ac_cv_exeext
2153 echo "$as_me:$LINENO: result: $ac_file" >&5
2154 echo "${ECHO_T}$ac_file" >&6
2155
2156 # Check the compiler produces executables we can run. If not, either
3008
3009 # Check that the compiler produces executables we can run. If not, either
21573010 # the compiler is broken, or we cross compile.
2158 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2159 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3011 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3012 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
21603013 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
21613014 # If not cross compiling, check that we can run a simple program.
21623015 if test "$cross_compiling" != yes; then
21633016 if { ac_try='./$ac_file'
2164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2165 (eval $ac_try) 2>&5
3017 { (case "(($ac_try" in
3018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3019 *) ac_try_echo=$ac_try;;
3020 esac
3021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3022 (eval "$ac_try") 2>&5
21663023 ac_status=$?
21673024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21683025 (exit $ac_status); }; }; then
21813038 fi
21823039 fi
21833040 fi
2184 echo "$as_me:$LINENO: result: yes" >&5
2185 echo "${ECHO_T}yes" >&6
3041 { echo "$as_me:$LINENO: result: yes" >&5
3042 echo "${ECHO_T}yes" >&6; }
21863043
21873044 rm -f a.out a.exe conftest$ac_cv_exeext b.out
21883045 ac_clean_files=$ac_clean_files_save
2189 # Check the compiler produces executables we can run. If not, either
3046 # Check that the compiler produces executables we can run. If not, either
21903047 # the compiler is broken, or we cross compile.
2191 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2192 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2193 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2194 echo "${ECHO_T}$cross_compiling" >&6
2195
2196 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2197 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2199 (eval $ac_link) 2>&5
3048 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3049 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3050 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3051 echo "${ECHO_T}$cross_compiling" >&6; }
3052
3053 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3054 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3055 if { (ac_try="$ac_link"
3056 case "(($ac_try" in
3057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058 *) ac_try_echo=$ac_try;;
3059 esac
3060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3061 (eval "$ac_link") 2>&5
22003062 ac_status=$?
22013063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22023064 (exit $ac_status); }; then
22073069 for ac_file in conftest.exe conftest conftest.*; do
22083070 test -f "$ac_file" || continue
22093071 case $ac_file in
2210 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3072 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
22113073 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2212 export ac_cv_exeext
22133074 break;;
22143075 * ) break;;
22153076 esac
22233084 fi
22243085
22253086 rm -f conftest$ac_cv_exeext
2226 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2227 echo "${ECHO_T}$ac_cv_exeext" >&6
3087 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3088 echo "${ECHO_T}$ac_cv_exeext" >&6; }
22283089
22293090 rm -f conftest.$ac_ext
22303091 EXEEXT=$ac_cv_exeext
22313092 ac_exeext=$EXEEXT
2232 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2233 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3093 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3094 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
22343095 if test "${ac_cv_objext+set}" = set; then
22353096 echo $ECHO_N "(cached) $ECHO_C" >&6
22363097 else
22503111 }
22513112 _ACEOF
22523113 rm -f conftest.o conftest.obj
2253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2254 (eval $ac_compile) 2>&5
3114 if { (ac_try="$ac_compile"
3115 case "(($ac_try" in
3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3118 esac
3119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120 (eval "$ac_compile") 2>&5
22553121 ac_status=$?
22563122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22573123 (exit $ac_status); }; then
2258 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3124 for ac_file in conftest.o conftest.obj conftest.*; do
3125 test -f "$ac_file" || continue;
22593126 case $ac_file in
2260 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3127 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
22613128 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
22623129 break;;
22633130 esac
22753142
22763143 rm -f conftest.$ac_cv_objext conftest.$ac_ext
22773144 fi
2278 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2279 echo "${ECHO_T}$ac_cv_objext" >&6
3145 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3146 echo "${ECHO_T}$ac_cv_objext" >&6; }
22803147 OBJEXT=$ac_cv_objext
22813148 ac_objext=$OBJEXT
2282 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2283 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3149 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3150 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
22843151 if test "${ac_cv_c_compiler_gnu+set}" = set; then
22853152 echo $ECHO_N "(cached) $ECHO_C" >&6
22863153 else
23033170 }
23043171 _ACEOF
23053172 rm -f conftest.$ac_objext
2306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307 (eval $ac_compile) 2>conftest.er1
3173 if { (ac_try="$ac_compile"
3174 case "(($ac_try" in
3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3177 esac
3178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3179 (eval "$ac_compile") 2>conftest.er1
23083180 ac_status=$?
23093181 grep -v '^ *+' conftest.er1 >conftest.err
23103182 rm -f conftest.er1
23113183 cat conftest.err >&5
23123184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); } &&
2314 { ac_try='test -z "$ac_c_werror_flag"
2315 || test ! -s conftest.err'
2316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2317 (eval $ac_try) 2>&5
2318 ac_status=$?
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); }; } &&
2321 { ac_try='test -s conftest.$ac_objext'
2322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323 (eval $ac_try) 2>&5
2324 ac_status=$?
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }; }; then
3185 (exit $ac_status); } && {
3186 test -z "$ac_c_werror_flag" ||
3187 test ! -s conftest.err
3188 } && test -s conftest.$ac_objext; then
23273189 ac_compiler_gnu=yes
23283190 else
23293191 echo "$as_me: failed program was:" >&5
23303192 sed 's/^/| /' conftest.$ac_ext >&5
23313193
2332 ac_compiler_gnu=no
2333 fi
2334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3194 ac_compiler_gnu=no
3195 fi
3196
3197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23353198 ac_cv_c_compiler_gnu=$ac_compiler_gnu
23363199
23373200 fi
2338 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2339 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3201 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3202 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
23403203 GCC=`test $ac_compiler_gnu = yes && echo yes`
23413204 ac_test_CFLAGS=${CFLAGS+set}
23423205 ac_save_CFLAGS=$CFLAGS
2343 CFLAGS="-g"
2344 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2345 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3206 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3207 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
23463208 if test "${ac_cv_prog_cc_g+set}" = set; then
23473209 echo $ECHO_N "(cached) $ECHO_C" >&6
23483210 else
2349 cat >conftest.$ac_ext <<_ACEOF
3211 ac_save_c_werror_flag=$ac_c_werror_flag
3212 ac_c_werror_flag=yes
3213 ac_cv_prog_cc_g=no
3214 CFLAGS="-g"
3215 cat >conftest.$ac_ext <<_ACEOF
23503216 /* confdefs.h. */
23513217 _ACEOF
23523218 cat confdefs.h >>conftest.$ac_ext
23623228 }
23633229 _ACEOF
23643230 rm -f conftest.$ac_objext
2365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2366 (eval $ac_compile) 2>conftest.er1
3231 if { (ac_try="$ac_compile"
3232 case "(($ac_try" in
3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234 *) ac_try_echo=$ac_try;;
3235 esac
3236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3237 (eval "$ac_compile") 2>conftest.er1
23673238 ac_status=$?
23683239 grep -v '^ *+' conftest.er1 >conftest.err
23693240 rm -f conftest.er1
23703241 cat conftest.err >&5
23713242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); } &&
2373 { ac_try='test -z "$ac_c_werror_flag"
2374 || test ! -s conftest.err'
2375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2376 (eval $ac_try) 2>&5
2377 ac_status=$?
2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379 (exit $ac_status); }; } &&
2380 { ac_try='test -s conftest.$ac_objext'
2381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382 (eval $ac_try) 2>&5
2383 ac_status=$?
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }; }; then
3243 (exit $ac_status); } && {
3244 test -z "$ac_c_werror_flag" ||
3245 test ! -s conftest.err
3246 } && test -s conftest.$ac_objext; then
23863247 ac_cv_prog_cc_g=yes
23873248 else
23883249 echo "$as_me: failed program was:" >&5
23893250 sed 's/^/| /' conftest.$ac_ext >&5
23903251
2391 ac_cv_prog_cc_g=no
2392 fi
2393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2394 fi
2395 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2396 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3252 CFLAGS=""
3253 cat >conftest.$ac_ext <<_ACEOF
3254 /* confdefs.h. */
3255 _ACEOF
3256 cat confdefs.h >>conftest.$ac_ext
3257 cat >>conftest.$ac_ext <<_ACEOF
3258 /* end confdefs.h. */
3259
3260 int
3261 main ()
3262 {
3263
3264 ;
3265 return 0;
3266 }
3267 _ACEOF
3268 rm -f conftest.$ac_objext
3269 if { (ac_try="$ac_compile"
3270 case "(($ac_try" in
3271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272 *) ac_try_echo=$ac_try;;
3273 esac
3274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3275 (eval "$ac_compile") 2>conftest.er1
3276 ac_status=$?
3277 grep -v '^ *+' conftest.er1 >conftest.err
3278 rm -f conftest.er1
3279 cat conftest.err >&5
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); } && {
3282 test -z "$ac_c_werror_flag" ||
3283 test ! -s conftest.err
3284 } && test -s conftest.$ac_objext; then
3285 :
3286 else
3287 echo "$as_me: failed program was:" >&5
3288 sed 's/^/| /' conftest.$ac_ext >&5
3289
3290 ac_c_werror_flag=$ac_save_c_werror_flag
3291 CFLAGS="-g"
3292 cat >conftest.$ac_ext <<_ACEOF
3293 /* confdefs.h. */
3294 _ACEOF
3295 cat confdefs.h >>conftest.$ac_ext
3296 cat >>conftest.$ac_ext <<_ACEOF
3297 /* end confdefs.h. */
3298
3299 int
3300 main ()
3301 {
3302
3303 ;
3304 return 0;
3305 }
3306 _ACEOF
3307 rm -f conftest.$ac_objext
3308 if { (ac_try="$ac_compile"
3309 case "(($ac_try" in
3310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311 *) ac_try_echo=$ac_try;;
3312 esac
3313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3314 (eval "$ac_compile") 2>conftest.er1
3315 ac_status=$?
3316 grep -v '^ *+' conftest.er1 >conftest.err
3317 rm -f conftest.er1
3318 cat conftest.err >&5
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); } && {
3321 test -z "$ac_c_werror_flag" ||
3322 test ! -s conftest.err
3323 } && test -s conftest.$ac_objext; then
3324 ac_cv_prog_cc_g=yes
3325 else
3326 echo "$as_me: failed program was:" >&5
3327 sed 's/^/| /' conftest.$ac_ext >&5
3328
3329
3330 fi
3331
3332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3333 fi
3334
3335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3336 fi
3337
3338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3339 ac_c_werror_flag=$ac_save_c_werror_flag
3340 fi
3341 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3342 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
23973343 if test "$ac_test_CFLAGS" = set; then
23983344 CFLAGS=$ac_save_CFLAGS
23993345 elif test $ac_cv_prog_cc_g = yes; then
24093355 CFLAGS=
24103356 fi
24113357 fi
2412 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2413 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2414 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3358 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3359 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3360 if test "${ac_cv_prog_cc_c89+set}" = set; then
24153361 echo $ECHO_N "(cached) $ECHO_C" >&6
24163362 else
2417 ac_cv_prog_cc_stdc=no
3363 ac_cv_prog_cc_c89=no
24183364 ac_save_CC=$CC
24193365 cat >conftest.$ac_ext <<_ACEOF
24203366 /* confdefs.h. */
24483394 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
24493395 function prototypes and stuff, but not '\xHH' hex character constants.
24503396 These don't provoke an error unfortunately, instead are silently treated
2451 as 'x'. The following induces an error, until -std1 is added to get
3397 as 'x'. The following induces an error, until -std is added to get
24523398 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
24533399 array size at least. It's necessary to write '\x00'==0 to get something
2454 that's true only with -std1. */
3400 that's true only with -std. */
24553401 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3402
3403 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3404 inside strings and character constants. */
3405 #define FOO(x) 'x'
3406 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
24563407
24573408 int test (int i, double x);
24583409 struct s1 {int (*f) (int a);};
24683419 return 0;
24693420 }
24703421 _ACEOF
2471 # Don't try gcc -ansi; that turns off useful extensions and
2472 # breaks some systems' header files.
2473 # AIX -qlanglvl=ansi
2474 # Ultrix and OSF/1 -std1
2475 # HP-UX 10.20 and later -Ae
2476 # HP-UX older versions -Aa -D_HPUX_SOURCE
2477 # SVR4 -Xc -D__EXTENSIONS__
2478 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3422 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3423 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
24793424 do
24803425 CC="$ac_save_CC $ac_arg"
24813426 rm -f conftest.$ac_objext
2482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2483 (eval $ac_compile) 2>conftest.er1
3427 if { (ac_try="$ac_compile"
3428 case "(($ac_try" in
3429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430 *) ac_try_echo=$ac_try;;
3431 esac
3432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3433 (eval "$ac_compile") 2>conftest.er1
24843434 ac_status=$?
24853435 grep -v '^ *+' conftest.er1 >conftest.err
24863436 rm -f conftest.er1
24873437 cat conftest.err >&5
24883438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); } &&
2490 { ac_try='test -z "$ac_c_werror_flag"
2491 || test ! -s conftest.err'
2492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2493 (eval $ac_try) 2>&5
2494 ac_status=$?
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); }; } &&
2497 { ac_try='test -s conftest.$ac_objext'
2498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2499 (eval $ac_try) 2>&5
2500 ac_status=$?
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); }; }; then
2503 ac_cv_prog_cc_stdc=$ac_arg
2504 break
3439 (exit $ac_status); } && {
3440 test -z "$ac_c_werror_flag" ||
3441 test ! -s conftest.err
3442 } && test -s conftest.$ac_objext; then
3443 ac_cv_prog_cc_c89=$ac_arg
25053444 else
25063445 echo "$as_me: failed program was:" >&5
25073446 sed 's/^/| /' conftest.$ac_ext >&5
25083447
2509 fi
2510 rm -f conftest.err conftest.$ac_objext
3448
3449 fi
3450
3451 rm -f core conftest.err conftest.$ac_objext
3452 test "x$ac_cv_prog_cc_c89" != "xno" && break
25113453 done
2512 rm -f conftest.$ac_ext conftest.$ac_objext
3454 rm -f conftest.$ac_ext
25133455 CC=$ac_save_CC
25143456
25153457 fi
2516
2517 case "x$ac_cv_prog_cc_stdc" in
2518 x|xno)
2519 echo "$as_me:$LINENO: result: none needed" >&5
2520 echo "${ECHO_T}none needed" >&6 ;;
3458 # AC_CACHE_VAL
3459 case "x$ac_cv_prog_cc_c89" in
3460 x)
3461 { echo "$as_me:$LINENO: result: none needed" >&5
3462 echo "${ECHO_T}none needed" >&6; } ;;
3463 xno)
3464 { echo "$as_me:$LINENO: result: unsupported" >&5
3465 echo "${ECHO_T}unsupported" >&6; } ;;
25213466 *)
2522 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2523 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2524 CC="$CC $ac_cv_prog_cc_stdc" ;;
3467 CC="$CC $ac_cv_prog_cc_c89"
3468 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3469 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
25253470 esac
25263471
2527 # Some people use a C++ compiler to compile C. Since we use `exit',
2528 # in C++ we need to declare it. In case someone uses the same compiler
2529 # for both compiling C and C++ we need to have the C++ compiler decide
2530 # the declaration of exit, since it's the most demanding environment.
2531 cat >conftest.$ac_ext <<_ACEOF
2532 #ifndef __cplusplus
2533 choke me
2534 #endif
2535 _ACEOF
2536 rm -f conftest.$ac_objext
2537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2538 (eval $ac_compile) 2>conftest.er1
2539 ac_status=$?
2540 grep -v '^ *+' conftest.er1 >conftest.err
2541 rm -f conftest.er1
2542 cat conftest.err >&5
2543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544 (exit $ac_status); } &&
2545 { ac_try='test -z "$ac_c_werror_flag"
2546 || test ! -s conftest.err'
2547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2548 (eval $ac_try) 2>&5
2549 ac_status=$?
2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551 (exit $ac_status); }; } &&
2552 { ac_try='test -s conftest.$ac_objext'
2553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2554 (eval $ac_try) 2>&5
2555 ac_status=$?
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); }; }; then
2558 for ac_declaration in \
2559 '' \
2560 'extern "C" void std::exit (int) throw (); using std::exit;' \
2561 'extern "C" void std::exit (int); using std::exit;' \
2562 'extern "C" void exit (int) throw ();' \
2563 'extern "C" void exit (int);' \
2564 'void exit (int);'
2565 do
2566 cat >conftest.$ac_ext <<_ACEOF
2567 /* confdefs.h. */
2568 _ACEOF
2569 cat confdefs.h >>conftest.$ac_ext
2570 cat >>conftest.$ac_ext <<_ACEOF
2571 /* end confdefs.h. */
2572 $ac_declaration
2573 #include <stdlib.h>
2574 int
2575 main ()
2576 {
2577 exit (42);
2578 ;
2579 return 0;
2580 }
2581 _ACEOF
2582 rm -f conftest.$ac_objext
2583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2584 (eval $ac_compile) 2>conftest.er1
2585 ac_status=$?
2586 grep -v '^ *+' conftest.er1 >conftest.err
2587 rm -f conftest.er1
2588 cat conftest.err >&5
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); } &&
2591 { ac_try='test -z "$ac_c_werror_flag"
2592 || test ! -s conftest.err'
2593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2594 (eval $ac_try) 2>&5
2595 ac_status=$?
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); }; } &&
2598 { ac_try='test -s conftest.$ac_objext'
2599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2600 (eval $ac_try) 2>&5
2601 ac_status=$?
2602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603 (exit $ac_status); }; }; then
2604 :
2605 else
2606 echo "$as_me: failed program was:" >&5
2607 sed 's/^/| /' conftest.$ac_ext >&5
2608
2609 continue
2610 fi
2611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2612 cat >conftest.$ac_ext <<_ACEOF
2613 /* confdefs.h. */
2614 _ACEOF
2615 cat confdefs.h >>conftest.$ac_ext
2616 cat >>conftest.$ac_ext <<_ACEOF
2617 /* end confdefs.h. */
2618 $ac_declaration
2619 int
2620 main ()
2621 {
2622 exit (42);
2623 ;
2624 return 0;
2625 }
2626 _ACEOF
2627 rm -f conftest.$ac_objext
2628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2629 (eval $ac_compile) 2>conftest.er1
2630 ac_status=$?
2631 grep -v '^ *+' conftest.er1 >conftest.err
2632 rm -f conftest.er1
2633 cat conftest.err >&5
2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635 (exit $ac_status); } &&
2636 { ac_try='test -z "$ac_c_werror_flag"
2637 || test ! -s conftest.err'
2638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639 (eval $ac_try) 2>&5
2640 ac_status=$?
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); }; } &&
2643 { ac_try='test -s conftest.$ac_objext'
2644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2645 (eval $ac_try) 2>&5
2646 ac_status=$?
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }; }; then
2649 break
2650 else
2651 echo "$as_me: failed program was:" >&5
2652 sed 's/^/| /' conftest.$ac_ext >&5
2653
2654 fi
2655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2656 done
2657 rm -f conftest*
2658 if test -n "$ac_declaration"; then
2659 echo '#ifdef __cplusplus' >>confdefs.h
2660 echo $ac_declaration >>confdefs.h
2661 echo '#endif' >>confdefs.h
2662 fi
2663
2664 else
2665 echo "$as_me: failed program was:" >&5
2666 sed 's/^/| /' conftest.$ac_ext >&5
2667
2668 fi
2669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3472
26703473 ac_ext=c
26713474 ac_cpp='$CPP $CPPFLAGS'
26723475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26743477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26753478 DEPDIR="${am__leading_dot}deps"
26763479
2677 ac_config_commands="$ac_config_commands depfiles"
3480 ac_config_commands="$ac_config_commands depfiles"
26783481
26793482
26803483 am_make=${MAKE-make}
26843487 .PHONY: am__doit
26853488 END
26863489 # If we don't find an include directive, just comment out the code.
2687 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2688 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3490 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3491 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
26893492 am__include="#"
26903493 am__quote=
26913494 _am_result=none
27123515 fi
27133516
27143517
2715 echo "$as_me:$LINENO: result: $_am_result" >&5
2716 echo "${ECHO_T}$_am_result" >&6
3518 { echo "$as_me:$LINENO: result: $_am_result" >&5
3519 echo "${ECHO_T}$_am_result" >&6; }
27173520 rm -f confinc confmf
27183521
2719 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3522 # Check whether --enable-dependency-tracking was given.
27203523 if test "${enable_dependency_tracking+set}" = set; then
2721 enableval="$enable_dependency_tracking"
2722
2723 fi;
3524 enableval=$enable_dependency_tracking;
3525 fi
3526
27243527 if test "x$enable_dependency_tracking" != xno; then
27253528 am_depcomp="$ac_aux_dir/depcomp"
27263529 AMDEPBACKSLASH='\'
27273530 fi
2728
2729
2730 if test "x$enable_dependency_tracking" != xno; then
3531 if test "x$enable_dependency_tracking" != xno; then
27313532 AMDEP_TRUE=
27323533 AMDEP_FALSE='#'
27333534 else
27373538
27383539
27393540
2740
27413541 depcc="$CC" am_compiler_list=
27423542
2743 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2744 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3543 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3544 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
27453545 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
27463546 echo $ECHO_N "(cached) $ECHO_C" >&6
27473547 else
28053605 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
28063606 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
28073607 >/dev/null 2>conftest.err &&
3608 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
28083609 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
28093610 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
28103611 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
28303631 fi
28313632
28323633 fi
2833 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2834 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3634 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3635 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
28353636 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
28363637
2837
2838
2839 if
3638 if
28403639 test "x$enable_dependency_tracking" != xno \
28413640 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
28423641 am__fastdepCC_TRUE=
28473646 fi
28483647
28493648
2850
2851
2852
2853
2854 # Check whether --enable-compile-warnings or --disable-compile-warnings was given.
3649 if test "x$CC" != xcc; then
3650 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3651 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3652 else
3653 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3654 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3655 fi
3656 set dummy $CC; ac_cc=`echo $2 |
3657 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3658 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3659 echo $ECHO_N "(cached) $ECHO_C" >&6
3660 else
3661 cat >conftest.$ac_ext <<_ACEOF
3662 /* confdefs.h. */
3663 _ACEOF
3664 cat confdefs.h >>conftest.$ac_ext
3665 cat >>conftest.$ac_ext <<_ACEOF
3666 /* end confdefs.h. */
3667
3668 int
3669 main ()
3670 {
3671
3672 ;
3673 return 0;
3674 }
3675 _ACEOF
3676 # Make sure it works both with $CC and with simple cc.
3677 # We do the test twice because some compilers refuse to overwrite an
3678 # existing .o file with -o, though they will create one.
3679 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3680 rm -f conftest2.*
3681 if { (case "(($ac_try" in
3682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3683 *) ac_try_echo=$ac_try;;
3684 esac
3685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3686 (eval "$ac_try") 2>&5
3687 ac_status=$?
3688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689 (exit $ac_status); } &&
3690 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3692 *) ac_try_echo=$ac_try;;
3693 esac
3694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3695 (eval "$ac_try") 2>&5
3696 ac_status=$?
3697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698 (exit $ac_status); };
3699 then
3700 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3701 if test "x$CC" != xcc; then
3702 # Test first that cc exists at all.
3703 if { ac_try='cc -c conftest.$ac_ext >&5'
3704 { (case "(($ac_try" in
3705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3706 *) ac_try_echo=$ac_try;;
3707 esac
3708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3709 (eval "$ac_try") 2>&5
3710 ac_status=$?
3711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712 (exit $ac_status); }; }; then
3713 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3714 rm -f conftest2.*
3715 if { (case "(($ac_try" in
3716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3717 *) ac_try_echo=$ac_try;;
3718 esac
3719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3720 (eval "$ac_try") 2>&5
3721 ac_status=$?
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); } &&
3724 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3726 *) ac_try_echo=$ac_try;;
3727 esac
3728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3729 (eval "$ac_try") 2>&5
3730 ac_status=$?
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); };
3733 then
3734 # cc works too.
3735 :
3736 else
3737 # cc exists but doesn't like -o.
3738 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3739 fi
3740 fi
3741 fi
3742 else
3743 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3744 fi
3745 rm -f core conftest*
3746
3747 fi
3748 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3749 { echo "$as_me:$LINENO: result: yes" >&5
3750 echo "${ECHO_T}yes" >&6; }
3751 else
3752 { echo "$as_me:$LINENO: result: no" >&5
3753 echo "${ECHO_T}no" >&6; }
3754
3755 cat >>confdefs.h <<\_ACEOF
3756 #define NO_MINUS_C_MINUS_O 1
3757 _ACEOF
3758
3759 fi
3760
3761 # FIXME: we rely on the cache variable name because
3762 # there is no other way.
3763 set dummy $CC
3764 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3765 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3766 # Losing compiler, so override with the script.
3767 # FIXME: It is wrong to rewrite CC.
3768 # But if we don't then we get into trouble of one sort or another.
3769 # A longer-term fix would be to have automake use am__CC in this case,
3770 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3771 CC="$am_aux_dir/compile $CC"
3772 fi
3773
3774
3775 # Check whether --enable-shared was given.
3776 if test "${enable_shared+set}" = set; then
3777 enableval=$enable_shared; p=${PACKAGE-default}
3778 case $enableval in
3779 yes) enable_shared=yes ;;
3780 no) enable_shared=no ;;
3781 *)
3782 enable_shared=no
3783 # Look at the argument we got. We use all the common list separators.
3784 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3785 for pkg in $enableval; do
3786 IFS="$lt_save_ifs"
3787 if test "X$pkg" = "X$p"; then
3788 enable_shared=yes
3789 fi
3790 done
3791 IFS="$lt_save_ifs"
3792 ;;
3793 esac
3794 else
3795 enable_shared=yes
3796 fi
3797
3798
3799 # Check whether --enable-static was given.
3800 if test "${enable_static+set}" = set; then
3801 enableval=$enable_static; p=${PACKAGE-default}
3802 case $enableval in
3803 yes) enable_static=yes ;;
3804 no) enable_static=no ;;
3805 *)
3806 enable_static=no
3807 # Look at the argument we got. We use all the common list separators.
3808 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3809 for pkg in $enableval; do
3810 IFS="$lt_save_ifs"
3811 if test "X$pkg" = "X$p"; then
3812 enable_static=yes
3813 fi
3814 done
3815 IFS="$lt_save_ifs"
3816 ;;
3817 esac
3818 else
3819 enable_static=yes
3820 fi
3821
3822
3823 # Check whether --enable-fast-install was given.
3824 if test "${enable_fast_install+set}" = set; then
3825 enableval=$enable_fast_install; p=${PACKAGE-default}
3826 case $enableval in
3827 yes) enable_fast_install=yes ;;
3828 no) enable_fast_install=no ;;
3829 *)
3830 enable_fast_install=no
3831 # Look at the argument we got. We use all the common list separators.
3832 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3833 for pkg in $enableval; do
3834 IFS="$lt_save_ifs"
3835 if test "X$pkg" = "X$p"; then
3836 enable_fast_install=yes
3837 fi
3838 done
3839 IFS="$lt_save_ifs"
3840 ;;
3841 esac
3842 else
3843 enable_fast_install=yes
3844 fi
3845
3846
3847 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3848 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3849 if test "${lt_cv_path_SED+set}" = set; then
3850 echo $ECHO_N "(cached) $ECHO_C" >&6
3851 else
3852 # Loop through the user's path and test for sed and gsed.
3853 # Then use that list of sed's as ones to test for truncation.
3854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3855 for as_dir in $PATH
3856 do
3857 IFS=$as_save_IFS
3858 test -z "$as_dir" && as_dir=.
3859 for lt_ac_prog in sed gsed; do
3860 for ac_exec_ext in '' $ac_executable_extensions; do
3861 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3862 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3863 fi
3864 done
3865 done
3866 done
3867 IFS=$as_save_IFS
3868 lt_ac_max=0
3869 lt_ac_count=0
3870 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3871 # along with /bin/sed that truncates output.
3872 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3873 test ! -f $lt_ac_sed && continue
3874 cat /dev/null > conftest.in
3875 lt_ac_count=0
3876 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3877 # Check for GNU sed and select it if it is found.
3878 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3879 lt_cv_path_SED=$lt_ac_sed
3880 break
3881 fi
3882 while true; do
3883 cat conftest.in conftest.in >conftest.tmp
3884 mv conftest.tmp conftest.in
3885 cp conftest.in conftest.nl
3886 echo >>conftest.nl
3887 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3888 cmp -s conftest.out conftest.nl || break
3889 # 10000 chars as input seems more than enough
3890 test $lt_ac_count -gt 10 && break
3891 lt_ac_count=`expr $lt_ac_count + 1`
3892 if test $lt_ac_count -gt $lt_ac_max; then
3893 lt_ac_max=$lt_ac_count
3894 lt_cv_path_SED=$lt_ac_sed
3895 fi
3896 done
3897 done
3898
3899 fi
3900
3901 SED=$lt_cv_path_SED
3902
3903 { echo "$as_me:$LINENO: result: $SED" >&5
3904 echo "${ECHO_T}$SED" >&6; }
3905
3906 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3907 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3908 if test "${ac_cv_path_GREP+set}" = set; then
3909 echo $ECHO_N "(cached) $ECHO_C" >&6
3910 else
3911 # Extract the first word of "grep ggrep" to use in msg output
3912 if test -z "$GREP"; then
3913 set dummy grep ggrep; ac_prog_name=$2
3914 if test "${ac_cv_path_GREP+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3916 else
3917 ac_path_GREP_found=false
3918 # Loop through the user's path and test for each of PROGNAME-LIST
3919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3920 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3921 do
3922 IFS=$as_save_IFS
3923 test -z "$as_dir" && as_dir=.
3924 for ac_prog in grep ggrep; do
3925 for ac_exec_ext in '' $ac_executable_extensions; do
3926 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3927 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3928 # Check for GNU ac_path_GREP and select it if it is found.
3929 # Check for GNU $ac_path_GREP
3930 case `"$ac_path_GREP" --version 2>&1` in
3931 *GNU*)
3932 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3933 *)
3934 ac_count=0
3935 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3936 while :
3937 do
3938 cat "conftest.in" "conftest.in" >"conftest.tmp"
3939 mv "conftest.tmp" "conftest.in"
3940 cp "conftest.in" "conftest.nl"
3941 echo 'GREP' >> "conftest.nl"
3942 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3943 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3944 ac_count=`expr $ac_count + 1`
3945 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3946 # Best one so far, save it but keep looking for a better one
3947 ac_cv_path_GREP="$ac_path_GREP"
3948 ac_path_GREP_max=$ac_count
3949 fi
3950 # 10*(2^10) chars as input seems more than enough
3951 test $ac_count -gt 10 && break
3952 done
3953 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3954 esac
3955
3956
3957 $ac_path_GREP_found && break 3
3958 done
3959 done
3960
3961 done
3962 IFS=$as_save_IFS
3963
3964
3965 fi
3966
3967 GREP="$ac_cv_path_GREP"
3968 if test -z "$GREP"; then
3969 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3970 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3971 { (exit 1); exit 1; }; }
3972 fi
3973
3974 else
3975 ac_cv_path_GREP=$GREP
3976 fi
3977
3978
3979 fi
3980 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3981 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3982 GREP="$ac_cv_path_GREP"
3983
3984
3985 { echo "$as_me:$LINENO: checking for egrep" >&5
3986 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3987 if test "${ac_cv_path_EGREP+set}" = set; then
3988 echo $ECHO_N "(cached) $ECHO_C" >&6
3989 else
3990 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3991 then ac_cv_path_EGREP="$GREP -E"
3992 else
3993 # Extract the first word of "egrep" to use in msg output
3994 if test -z "$EGREP"; then
3995 set dummy egrep; ac_prog_name=$2
3996 if test "${ac_cv_path_EGREP+set}" = set; then
3997 echo $ECHO_N "(cached) $ECHO_C" >&6
3998 else
3999 ac_path_EGREP_found=false
4000 # Loop through the user's path and test for each of PROGNAME-LIST
4001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4002 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4003 do
4004 IFS=$as_save_IFS
4005 test -z "$as_dir" && as_dir=.
4006 for ac_prog in egrep; do
4007 for ac_exec_ext in '' $ac_executable_extensions; do
4008 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4009 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4010 # Check for GNU ac_path_EGREP and select it if it is found.
4011 # Check for GNU $ac_path_EGREP
4012 case `"$ac_path_EGREP" --version 2>&1` in
4013 *GNU*)
4014 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4015 *)
4016 ac_count=0
4017 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4018 while :
4019 do
4020 cat "conftest.in" "conftest.in" >"conftest.tmp"
4021 mv "conftest.tmp" "conftest.in"
4022 cp "conftest.in" "conftest.nl"
4023 echo 'EGREP' >> "conftest.nl"
4024 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4025 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4026 ac_count=`expr $ac_count + 1`
4027 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4028 # Best one so far, save it but keep looking for a better one
4029 ac_cv_path_EGREP="$ac_path_EGREP"
4030 ac_path_EGREP_max=$ac_count
4031 fi
4032 # 10*(2^10) chars as input seems more than enough
4033 test $ac_count -gt 10 && break
4034 done
4035 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4036 esac
4037
4038
4039 $ac_path_EGREP_found && break 3
4040 done
4041 done
4042
4043 done
4044 IFS=$as_save_IFS
4045
4046
4047 fi
4048
4049 EGREP="$ac_cv_path_EGREP"
4050 if test -z "$EGREP"; then
4051 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4052 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4053 { (exit 1); exit 1; }; }
4054 fi
4055
4056 else
4057 ac_cv_path_EGREP=$EGREP
4058 fi
4059
4060
4061 fi
4062 fi
4063 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4064 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4065 EGREP="$ac_cv_path_EGREP"
4066
4067
4068
4069 # Check whether --with-gnu-ld was given.
4070 if test "${with_gnu_ld+set}" = set; then
4071 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4072 else
4073 with_gnu_ld=no
4074 fi
4075
4076 ac_prog=ld
4077 if test "$GCC" = yes; then
4078 # Check if gcc -print-prog-name=ld gives a path.
4079 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4080 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4081 case $host in
4082 *-*-mingw*)
4083 # gcc leaves a trailing carriage return which upsets mingw
4084 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4085 *)
4086 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4087 esac
4088 case $ac_prog in
4089 # Accept absolute paths.
4090 [\\/]* | ?:[\\/]*)
4091 re_direlt='/[^/][^/]*/\.\./'
4092 # Canonicalize the pathname of ld
4093 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4094 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4095 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4096 done
4097 test -z "$LD" && LD="$ac_prog"
4098 ;;
4099 "")
4100 # If it fails, then pretend we aren't using GCC.
4101 ac_prog=ld
4102 ;;
4103 *)
4104 # If it is relative, then search for the first ld in PATH.
4105 with_gnu_ld=unknown
4106 ;;
4107 esac
4108 elif test "$with_gnu_ld" = yes; then
4109 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4110 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4111 else
4112 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4113 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4114 fi
4115 if test "${lt_cv_path_LD+set}" = set; then
4116 echo $ECHO_N "(cached) $ECHO_C" >&6
4117 else
4118 if test -z "$LD"; then
4119 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4120 for ac_dir in $PATH; do
4121 IFS="$lt_save_ifs"
4122 test -z "$ac_dir" && ac_dir=.
4123 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4124 lt_cv_path_LD="$ac_dir/$ac_prog"
4125 # Check to see if the program is GNU ld. I'd rather use --version,
4126 # but apparently some variants of GNU ld only accept -v.
4127 # Break only if it was the GNU/non-GNU ld that we prefer.
4128 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4129 *GNU* | *'with BFD'*)
4130 test "$with_gnu_ld" != no && break
4131 ;;
4132 *)
4133 test "$with_gnu_ld" != yes && break
4134 ;;
4135 esac
4136 fi
4137 done
4138 IFS="$lt_save_ifs"
4139 else
4140 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4141 fi
4142 fi
4143
4144 LD="$lt_cv_path_LD"
4145 if test -n "$LD"; then
4146 { echo "$as_me:$LINENO: result: $LD" >&5
4147 echo "${ECHO_T}$LD" >&6; }
4148 else
4149 { echo "$as_me:$LINENO: result: no" >&5
4150 echo "${ECHO_T}no" >&6; }
4151 fi
4152 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4153 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4154 { (exit 1); exit 1; }; }
4155 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4156 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4157 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4158 echo $ECHO_N "(cached) $ECHO_C" >&6
4159 else
4160 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4161 case `$LD -v 2>&1 </dev/null` in
4162 *GNU* | *'with BFD'*)
4163 lt_cv_prog_gnu_ld=yes
4164 ;;
4165 *)
4166 lt_cv_prog_gnu_ld=no
4167 ;;
4168 esac
4169 fi
4170 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4171 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4172 with_gnu_ld=$lt_cv_prog_gnu_ld
4173
4174
4175 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4176 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4177 if test "${lt_cv_ld_reload_flag+set}" = set; then
4178 echo $ECHO_N "(cached) $ECHO_C" >&6
4179 else
4180 lt_cv_ld_reload_flag='-r'
4181 fi
4182 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4183 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4184 reload_flag=$lt_cv_ld_reload_flag
4185 case $reload_flag in
4186 "" | " "*) ;;
4187 *) reload_flag=" $reload_flag" ;;
4188 esac
4189 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4190 case $host_os in
4191 darwin*)
4192 if test "$GCC" = yes; then
4193 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4194 else
4195 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4196 fi
4197 ;;
4198 esac
4199
4200 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4201 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4202 if test "${lt_cv_path_NM+set}" = set; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
4204 else
4205 if test -n "$NM"; then
4206 # Let the user override the test.
4207 lt_cv_path_NM="$NM"
4208 else
4209 lt_nm_to_check="${ac_tool_prefix}nm"
4210 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4211 lt_nm_to_check="$lt_nm_to_check nm"
4212 fi
4213 for lt_tmp_nm in $lt_nm_to_check; do
4214 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4215 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4216 IFS="$lt_save_ifs"
4217 test -z "$ac_dir" && ac_dir=.
4218 tmp_nm="$ac_dir/$lt_tmp_nm"
4219 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4220 # Check to see if the nm accepts a BSD-compat flag.
4221 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4222 # nm: unknown option "B" ignored
4223 # Tru64's nm complains that /dev/null is an invalid object file
4224 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4225 */dev/null* | *'Invalid file or object type'*)
4226 lt_cv_path_NM="$tmp_nm -B"
4227 break
4228 ;;
4229 *)
4230 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4231 */dev/null*)
4232 lt_cv_path_NM="$tmp_nm -p"
4233 break
4234 ;;
4235 *)
4236 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4237 continue # so that we can try to find one that supports BSD flags
4238 ;;
4239 esac
4240 ;;
4241 esac
4242 fi
4243 done
4244 IFS="$lt_save_ifs"
4245 done
4246 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4247 fi
4248 fi
4249 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4250 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4251 NM="$lt_cv_path_NM"
4252
4253 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4254 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4255 LN_S=$as_ln_s
4256 if test "$LN_S" = "ln -s"; then
4257 { echo "$as_me:$LINENO: result: yes" >&5
4258 echo "${ECHO_T}yes" >&6; }
4259 else
4260 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4261 echo "${ECHO_T}no, using $LN_S" >&6; }
4262 fi
4263
4264 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4265 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4266 if test "${lt_cv_deplibs_check_method+set}" = set; then
4267 echo $ECHO_N "(cached) $ECHO_C" >&6
4268 else
4269 lt_cv_file_magic_cmd='$MAGIC_CMD'
4270 lt_cv_file_magic_test_file=
4271 lt_cv_deplibs_check_method='unknown'
4272 # Need to set the preceding variable on all platforms that support
4273 # interlibrary dependencies.
4274 # 'none' -- dependencies not supported.
4275 # `unknown' -- same as none, but documents that we really don't know.
4276 # 'pass_all' -- all dependencies passed with no checks.
4277 # 'test_compile' -- check by making test program.
4278 # 'file_magic [[regex]]' -- check by looking for files in library path
4279 # which responds to the $file_magic_cmd with a given extended regex.
4280 # If you have `file' or equivalent on your system and you're not sure
4281 # whether `pass_all' will *always* work, you probably want this one.
4282
4283 case $host_os in
4284 aix4* | aix5*)
4285 lt_cv_deplibs_check_method=pass_all
4286 ;;
4287
4288 beos*)
4289 lt_cv_deplibs_check_method=pass_all
4290 ;;
4291
4292 bsdi[45]*)
4293 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4294 lt_cv_file_magic_cmd='/usr/bin/file -L'
4295 lt_cv_file_magic_test_file=/shlib/libc.so
4296 ;;
4297
4298 cygwin*)
4299 # func_win32_libid is a shell function defined in ltmain.sh
4300 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4301 lt_cv_file_magic_cmd='func_win32_libid'
4302 ;;
4303
4304 mingw* | pw32*)
4305 # Base MSYS/MinGW do not provide the 'file' command needed by
4306 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4307 # unless we find 'file', for example because we are cross-compiling.
4308 if ( file / ) >/dev/null 2>&1; then
4309 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4310 lt_cv_file_magic_cmd='func_win32_libid'
4311 else
4312 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4313 lt_cv_file_magic_cmd='$OBJDUMP -f'
4314 fi
4315 ;;
4316
4317 darwin* | rhapsody*)
4318 lt_cv_deplibs_check_method=pass_all
4319 ;;
4320
4321 freebsd* | dragonfly*)
4322 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4323 case $host_cpu in
4324 i*86 )
4325 # Not sure whether the presence of OpenBSD here was a mistake.
4326 # Let's accept both of them until this is cleared up.
4327 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4328 lt_cv_file_magic_cmd=/usr/bin/file
4329 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4330 ;;
4331 esac
4332 else
4333 lt_cv_deplibs_check_method=pass_all
4334 fi
4335 ;;
4336
4337 gnu*)
4338 lt_cv_deplibs_check_method=pass_all
4339 ;;
4340
4341 hpux10.20* | hpux11*)
4342 lt_cv_file_magic_cmd=/usr/bin/file
4343 case $host_cpu in
4344 ia64*)
4345 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4346 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4347 ;;
4348 hppa*64*)
4349 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]'
4350 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4351 ;;
4352 *)
4353 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4354 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4355 ;;
4356 esac
4357 ;;
4358
4359 interix[3-9]*)
4360 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4361 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4362 ;;
4363
4364 irix5* | irix6* | nonstopux*)
4365 case $LD in
4366 *-32|*"-32 ") libmagic=32-bit;;
4367 *-n32|*"-n32 ") libmagic=N32;;
4368 *-64|*"-64 ") libmagic=64-bit;;
4369 *) libmagic=never-match;;
4370 esac
4371 lt_cv_deplibs_check_method=pass_all
4372 ;;
4373
4374 # This must be Linux ELF.
4375 linux* | k*bsd*-gnu)
4376 lt_cv_deplibs_check_method=pass_all
4377 ;;
4378
4379 netbsd*)
4380 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4381 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4382 else
4383 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4384 fi
4385 ;;
4386
4387 newos6*)
4388 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4389 lt_cv_file_magic_cmd=/usr/bin/file
4390 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4391 ;;
4392
4393 nto-qnx*)
4394 lt_cv_deplibs_check_method=unknown
4395 ;;
4396
4397 openbsd*)
4398 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4399 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4400 else
4401 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4402 fi
4403 ;;
4404
4405 osf3* | osf4* | osf5*)
4406 lt_cv_deplibs_check_method=pass_all
4407 ;;
4408
4409 rdos*)
4410 lt_cv_deplibs_check_method=pass_all
4411 ;;
4412
4413 solaris*)
4414 lt_cv_deplibs_check_method=pass_all
4415 ;;
4416
4417 sysv4 | sysv4.3*)
4418 case $host_vendor in
4419 motorola)
4420 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]'
4421 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4422 ;;
4423 ncr)
4424 lt_cv_deplibs_check_method=pass_all
4425 ;;
4426 sequent)
4427 lt_cv_file_magic_cmd='/bin/file'
4428 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4429 ;;
4430 sni)
4431 lt_cv_file_magic_cmd='/bin/file'
4432 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4433 lt_cv_file_magic_test_file=/lib/libc.so
4434 ;;
4435 siemens)
4436 lt_cv_deplibs_check_method=pass_all
4437 ;;
4438 pc)
4439 lt_cv_deplibs_check_method=pass_all
4440 ;;
4441 esac
4442 ;;
4443
4444 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4445 lt_cv_deplibs_check_method=pass_all
4446 ;;
4447 esac
4448
4449 fi
4450 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4451 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4452 file_magic_cmd=$lt_cv_file_magic_cmd
4453 deplibs_check_method=$lt_cv_deplibs_check_method
4454 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4455
4456
4457
4458
4459 # If no C compiler was specified, use CC.
4460 LTCC=${LTCC-"$CC"}
4461
4462 # If no C compiler flags were specified, use CFLAGS.
4463 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4464
4465 # Allow CC to be a program name with arguments.
4466 compiler=$CC
4467
4468
4469 # Check whether --enable-libtool-lock was given.
4470 if test "${enable_libtool_lock+set}" = set; then
4471 enableval=$enable_libtool_lock;
4472 fi
4473
4474 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4475
4476 # Some flags need to be propagated to the compiler or linker for good
4477 # libtool support.
4478 case $host in
4479 ia64-*-hpux*)
4480 # Find out which ABI we are using.
4481 echo 'int i;' > conftest.$ac_ext
4482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4483 (eval $ac_compile) 2>&5
4484 ac_status=$?
4485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486 (exit $ac_status); }; then
4487 case `/usr/bin/file conftest.$ac_objext` in
4488 *ELF-32*)
4489 HPUX_IA64_MODE="32"
4490 ;;
4491 *ELF-64*)
4492 HPUX_IA64_MODE="64"
4493 ;;
4494 esac
4495 fi
4496 rm -rf conftest*
4497 ;;
4498 *-*-irix6*)
4499 # Find out which ABI we are using.
4500 echo '#line 4501 "configure"' > conftest.$ac_ext
4501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4502 (eval $ac_compile) 2>&5
4503 ac_status=$?
4504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505 (exit $ac_status); }; then
4506 if test "$lt_cv_prog_gnu_ld" = yes; then
4507 case `/usr/bin/file conftest.$ac_objext` in
4508 *32-bit*)
4509 LD="${LD-ld} -melf32bsmip"
4510 ;;
4511 *N32*)
4512 LD="${LD-ld} -melf32bmipn32"
4513 ;;
4514 *64-bit*)
4515 LD="${LD-ld} -melf64bmip"
4516 ;;
4517 esac
4518 else
4519 case `/usr/bin/file conftest.$ac_objext` in
4520 *32-bit*)
4521 LD="${LD-ld} -32"
4522 ;;
4523 *N32*)
4524 LD="${LD-ld} -n32"
4525 ;;
4526 *64-bit*)
4527 LD="${LD-ld} -64"
4528 ;;
4529 esac
4530 fi
4531 fi
4532 rm -rf conftest*
4533 ;;
4534
4535 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4536 s390*-*linux*|sparc*-*linux*)
4537 # Find out which ABI we are using.
4538 echo 'int i;' > conftest.$ac_ext
4539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4540 (eval $ac_compile) 2>&5
4541 ac_status=$?
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); }; then
4544 case `/usr/bin/file conftest.o` in
4545 *32-bit*)
4546 case $host in
4547 x86_64-*kfreebsd*-gnu)
4548 LD="${LD-ld} -m elf_i386_fbsd"
4549 ;;
4550 x86_64-*linux*)
4551 LD="${LD-ld} -m elf_i386"
4552 ;;
4553 ppc64-*linux*|powerpc64-*linux*)
4554 LD="${LD-ld} -m elf32ppclinux"
4555 ;;
4556 s390x-*linux*)
4557 LD="${LD-ld} -m elf_s390"
4558 ;;
4559 sparc64-*linux*)
4560 LD="${LD-ld} -m elf32_sparc"
4561 ;;
4562 esac
4563 ;;
4564 *64-bit*)
4565 libsuff=64
4566 case $host in
4567 x86_64-*kfreebsd*-gnu)
4568 LD="${LD-ld} -m elf_x86_64_fbsd"
4569 ;;
4570 x86_64-*linux*)
4571 LD="${LD-ld} -m elf_x86_64"
4572 ;;
4573 ppc*-*linux*|powerpc*-*linux*)
4574 LD="${LD-ld} -m elf64ppc"
4575 ;;
4576 s390*-*linux*)
4577 LD="${LD-ld} -m elf64_s390"
4578 ;;
4579 sparc*-*linux*)
4580 LD="${LD-ld} -m elf64_sparc"
4581 ;;
4582 esac
4583 ;;
4584 esac
4585 fi
4586 rm -rf conftest*
4587 ;;
4588
4589 *-*-sco3.2v5*)
4590 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4591 SAVE_CFLAGS="$CFLAGS"
4592 CFLAGS="$CFLAGS -belf"
4593 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4594 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4595 if test "${lt_cv_cc_needs_belf+set}" = set; then
4596 echo $ECHO_N "(cached) $ECHO_C" >&6
4597 else
4598 ac_ext=c
4599 ac_cpp='$CPP $CPPFLAGS'
4600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4603
4604 cat >conftest.$ac_ext <<_ACEOF
4605 /* confdefs.h. */
4606 _ACEOF
4607 cat confdefs.h >>conftest.$ac_ext
4608 cat >>conftest.$ac_ext <<_ACEOF
4609 /* end confdefs.h. */
4610
4611 int
4612 main ()
4613 {
4614
4615 ;
4616 return 0;
4617 }
4618 _ACEOF
4619 rm -f conftest.$ac_objext conftest$ac_exeext
4620 if { (ac_try="$ac_link"
4621 case "(($ac_try" in
4622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4623 *) ac_try_echo=$ac_try;;
4624 esac
4625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4626 (eval "$ac_link") 2>conftest.er1
4627 ac_status=$?
4628 grep -v '^ *+' conftest.er1 >conftest.err
4629 rm -f conftest.er1
4630 cat conftest.err >&5
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); } && {
4633 test -z "$ac_c_werror_flag" ||
4634 test ! -s conftest.err
4635 } && test -s conftest$ac_exeext &&
4636 $as_test_x conftest$ac_exeext; then
4637 lt_cv_cc_needs_belf=yes
4638 else
4639 echo "$as_me: failed program was:" >&5
4640 sed 's/^/| /' conftest.$ac_ext >&5
4641
4642 lt_cv_cc_needs_belf=no
4643 fi
4644
4645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4646 conftest$ac_exeext conftest.$ac_ext
4647 ac_ext=c
4648 ac_cpp='$CPP $CPPFLAGS'
4649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4652
4653 fi
4654 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4655 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4656 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4657 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4658 CFLAGS="$SAVE_CFLAGS"
4659 fi
4660 ;;
4661 sparc*-*solaris*)
4662 # Find out which ABI we are using.
4663 echo 'int i;' > conftest.$ac_ext
4664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4665 (eval $ac_compile) 2>&5
4666 ac_status=$?
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); }; then
4669 case `/usr/bin/file conftest.o` in
4670 *64-bit*)
4671 case $lt_cv_prog_gnu_ld in
4672 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4673 *) LD="${LD-ld} -64" ;;
4674 esac
4675 ;;
4676 esac
4677 fi
4678 rm -rf conftest*
4679 ;;
4680
4681
4682 esac
4683
4684 need_locks="$enable_libtool_lock"
4685
4686
4687 ac_ext=c
4688 ac_cpp='$CPP $CPPFLAGS'
4689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4692 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4693 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4694 # On Suns, sometimes $CPP names a directory.
4695 if test -n "$CPP" && test -d "$CPP"; then
4696 CPP=
4697 fi
4698 if test -z "$CPP"; then
4699 if test "${ac_cv_prog_CPP+set}" = set; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
4701 else
4702 # Double quotes because CPP needs to be expanded
4703 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4704 do
4705 ac_preproc_ok=false
4706 for ac_c_preproc_warn_flag in '' yes
4707 do
4708 # Use a header file that comes with gcc, so configuring glibc
4709 # with a fresh cross-compiler works.
4710 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4711 # <limits.h> exists even on freestanding compilers.
4712 # On the NeXT, cc -E runs the code through the compiler's parser,
4713 # not just through cpp. "Syntax error" is here to catch this case.
4714 cat >conftest.$ac_ext <<_ACEOF
4715 /* confdefs.h. */
4716 _ACEOF
4717 cat confdefs.h >>conftest.$ac_ext
4718 cat >>conftest.$ac_ext <<_ACEOF
4719 /* end confdefs.h. */
4720 #ifdef __STDC__
4721 # include <limits.h>
4722 #else
4723 # include <assert.h>
4724 #endif
4725 Syntax error
4726 _ACEOF
4727 if { (ac_try="$ac_cpp conftest.$ac_ext"
4728 case "(($ac_try" in
4729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4730 *) ac_try_echo=$ac_try;;
4731 esac
4732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4734 ac_status=$?
4735 grep -v '^ *+' conftest.er1 >conftest.err
4736 rm -f conftest.er1
4737 cat conftest.err >&5
4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); } >/dev/null && {
4740 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4741 test ! -s conftest.err
4742 }; then
4743 :
4744 else
4745 echo "$as_me: failed program was:" >&5
4746 sed 's/^/| /' conftest.$ac_ext >&5
4747
4748 # Broken: fails on valid input.
4749 continue
4750 fi
4751
4752 rm -f conftest.err conftest.$ac_ext
4753
4754 # OK, works on sane cases. Now check whether nonexistent headers
4755 # can be detected and how.
4756 cat >conftest.$ac_ext <<_ACEOF
4757 /* confdefs.h. */
4758 _ACEOF
4759 cat confdefs.h >>conftest.$ac_ext
4760 cat >>conftest.$ac_ext <<_ACEOF
4761 /* end confdefs.h. */
4762 #include <ac_nonexistent.h>
4763 _ACEOF
4764 if { (ac_try="$ac_cpp conftest.$ac_ext"
4765 case "(($ac_try" in
4766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4767 *) ac_try_echo=$ac_try;;
4768 esac
4769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4770 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4771 ac_status=$?
4772 grep -v '^ *+' conftest.er1 >conftest.err
4773 rm -f conftest.er1
4774 cat conftest.err >&5
4775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776 (exit $ac_status); } >/dev/null && {
4777 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4778 test ! -s conftest.err
4779 }; then
4780 # Broken: success on invalid input.
4781 continue
4782 else
4783 echo "$as_me: failed program was:" >&5
4784 sed 's/^/| /' conftest.$ac_ext >&5
4785
4786 # Passes both tests.
4787 ac_preproc_ok=:
4788 break
4789 fi
4790
4791 rm -f conftest.err conftest.$ac_ext
4792
4793 done
4794 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4795 rm -f conftest.err conftest.$ac_ext
4796 if $ac_preproc_ok; then
4797 break
4798 fi
4799
4800 done
4801 ac_cv_prog_CPP=$CPP
4802
4803 fi
4804 CPP=$ac_cv_prog_CPP
4805 else
4806 ac_cv_prog_CPP=$CPP
4807 fi
4808 { echo "$as_me:$LINENO: result: $CPP" >&5
4809 echo "${ECHO_T}$CPP" >&6; }
4810 ac_preproc_ok=false
4811 for ac_c_preproc_warn_flag in '' yes
4812 do
4813 # Use a header file that comes with gcc, so configuring glibc
4814 # with a fresh cross-compiler works.
4815 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4816 # <limits.h> exists even on freestanding compilers.
4817 # On the NeXT, cc -E runs the code through the compiler's parser,
4818 # not just through cpp. "Syntax error" is here to catch this case.
4819 cat >conftest.$ac_ext <<_ACEOF
4820 /* confdefs.h. */
4821 _ACEOF
4822 cat confdefs.h >>conftest.$ac_ext
4823 cat >>conftest.$ac_ext <<_ACEOF
4824 /* end confdefs.h. */
4825 #ifdef __STDC__
4826 # include <limits.h>
4827 #else
4828 # include <assert.h>
4829 #endif
4830 Syntax error
4831 _ACEOF
4832 if { (ac_try="$ac_cpp conftest.$ac_ext"
4833 case "(($ac_try" in
4834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4835 *) ac_try_echo=$ac_try;;
4836 esac
4837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4838 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4839 ac_status=$?
4840 grep -v '^ *+' conftest.er1 >conftest.err
4841 rm -f conftest.er1
4842 cat conftest.err >&5
4843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844 (exit $ac_status); } >/dev/null && {
4845 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4846 test ! -s conftest.err
4847 }; then
4848 :
4849 else
4850 echo "$as_me: failed program was:" >&5
4851 sed 's/^/| /' conftest.$ac_ext >&5
4852
4853 # Broken: fails on valid input.
4854 continue
4855 fi
4856
4857 rm -f conftest.err conftest.$ac_ext
4858
4859 # OK, works on sane cases. Now check whether nonexistent headers
4860 # can be detected and how.
4861 cat >conftest.$ac_ext <<_ACEOF
4862 /* confdefs.h. */
4863 _ACEOF
4864 cat confdefs.h >>conftest.$ac_ext
4865 cat >>conftest.$ac_ext <<_ACEOF
4866 /* end confdefs.h. */
4867 #include <ac_nonexistent.h>
4868 _ACEOF
4869 if { (ac_try="$ac_cpp conftest.$ac_ext"
4870 case "(($ac_try" in
4871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4872 *) ac_try_echo=$ac_try;;
4873 esac
4874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4875 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4876 ac_status=$?
4877 grep -v '^ *+' conftest.er1 >conftest.err
4878 rm -f conftest.er1
4879 cat conftest.err >&5
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); } >/dev/null && {
4882 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4883 test ! -s conftest.err
4884 }; then
4885 # Broken: success on invalid input.
4886 continue
4887 else
4888 echo "$as_me: failed program was:" >&5
4889 sed 's/^/| /' conftest.$ac_ext >&5
4890
4891 # Passes both tests.
4892 ac_preproc_ok=:
4893 break
4894 fi
4895
4896 rm -f conftest.err conftest.$ac_ext
4897
4898 done
4899 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4900 rm -f conftest.err conftest.$ac_ext
4901 if $ac_preproc_ok; then
4902 :
4903 else
4904 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4905 See \`config.log' for more details." >&5
4906 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4907 See \`config.log' for more details." >&2;}
4908 { (exit 1); exit 1; }; }
4909 fi
4910
4911 ac_ext=c
4912 ac_cpp='$CPP $CPPFLAGS'
4913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4916
4917
4918 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4919 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4920 if test "${ac_cv_header_stdc+set}" = set; then
4921 echo $ECHO_N "(cached) $ECHO_C" >&6
4922 else
4923 cat >conftest.$ac_ext <<_ACEOF
4924 /* confdefs.h. */
4925 _ACEOF
4926 cat confdefs.h >>conftest.$ac_ext
4927 cat >>conftest.$ac_ext <<_ACEOF
4928 /* end confdefs.h. */
4929 #include <stdlib.h>
4930 #include <stdarg.h>
4931 #include <string.h>
4932 #include <float.h>
4933
4934 int
4935 main ()
4936 {
4937
4938 ;
4939 return 0;
4940 }
4941 _ACEOF
4942 rm -f conftest.$ac_objext
4943 if { (ac_try="$ac_compile"
4944 case "(($ac_try" in
4945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4946 *) ac_try_echo=$ac_try;;
4947 esac
4948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4949 (eval "$ac_compile") 2>conftest.er1
4950 ac_status=$?
4951 grep -v '^ *+' conftest.er1 >conftest.err
4952 rm -f conftest.er1
4953 cat conftest.err >&5
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); } && {
4956 test -z "$ac_c_werror_flag" ||
4957 test ! -s conftest.err
4958 } && test -s conftest.$ac_objext; then
4959 ac_cv_header_stdc=yes
4960 else
4961 echo "$as_me: failed program was:" >&5
4962 sed 's/^/| /' conftest.$ac_ext >&5
4963
4964 ac_cv_header_stdc=no
4965 fi
4966
4967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4968
4969 if test $ac_cv_header_stdc = yes; then
4970 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4971 cat >conftest.$ac_ext <<_ACEOF
4972 /* confdefs.h. */
4973 _ACEOF
4974 cat confdefs.h >>conftest.$ac_ext
4975 cat >>conftest.$ac_ext <<_ACEOF
4976 /* end confdefs.h. */
4977 #include <string.h>
4978
4979 _ACEOF
4980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4981 $EGREP "memchr" >/dev/null 2>&1; then
4982 :
4983 else
4984 ac_cv_header_stdc=no
4985 fi
4986 rm -f conftest*
4987
4988 fi
4989
4990 if test $ac_cv_header_stdc = yes; then
4991 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4992 cat >conftest.$ac_ext <<_ACEOF
4993 /* confdefs.h. */
4994 _ACEOF
4995 cat confdefs.h >>conftest.$ac_ext
4996 cat >>conftest.$ac_ext <<_ACEOF
4997 /* end confdefs.h. */
4998 #include <stdlib.h>
4999
5000 _ACEOF
5001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5002 $EGREP "free" >/dev/null 2>&1; then
5003 :
5004 else
5005 ac_cv_header_stdc=no
5006 fi
5007 rm -f conftest*
5008
5009 fi
5010
5011 if test $ac_cv_header_stdc = yes; then
5012 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5013 if test "$cross_compiling" = yes; then
5014 :
5015 else
5016 cat >conftest.$ac_ext <<_ACEOF
5017 /* confdefs.h. */
5018 _ACEOF
5019 cat confdefs.h >>conftest.$ac_ext
5020 cat >>conftest.$ac_ext <<_ACEOF
5021 /* end confdefs.h. */
5022 #include <ctype.h>
5023 #include <stdlib.h>
5024 #if ((' ' & 0x0FF) == 0x020)
5025 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5026 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5027 #else
5028 # define ISLOWER(c) \
5029 (('a' <= (c) && (c) <= 'i') \
5030 || ('j' <= (c) && (c) <= 'r') \
5031 || ('s' <= (c) && (c) <= 'z'))
5032 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5033 #endif
5034
5035 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5036 int
5037 main ()
5038 {
5039 int i;
5040 for (i = 0; i < 256; i++)
5041 if (XOR (islower (i), ISLOWER (i))
5042 || toupper (i) != TOUPPER (i))
5043 return 2;
5044 return 0;
5045 }
5046 _ACEOF
5047 rm -f conftest$ac_exeext
5048 if { (ac_try="$ac_link"
5049 case "(($ac_try" in
5050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5051 *) ac_try_echo=$ac_try;;
5052 esac
5053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5054 (eval "$ac_link") 2>&5
5055 ac_status=$?
5056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5058 { (case "(($ac_try" in
5059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5060 *) ac_try_echo=$ac_try;;
5061 esac
5062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5063 (eval "$ac_try") 2>&5
5064 ac_status=$?
5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066 (exit $ac_status); }; }; then
5067 :
5068 else
5069 echo "$as_me: program exited with status $ac_status" >&5
5070 echo "$as_me: failed program was:" >&5
5071 sed 's/^/| /' conftest.$ac_ext >&5
5072
5073 ( exit $ac_status )
5074 ac_cv_header_stdc=no
5075 fi
5076 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5077 fi
5078
5079
5080 fi
5081 fi
5082 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5083 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5084 if test $ac_cv_header_stdc = yes; then
5085
5086 cat >>confdefs.h <<\_ACEOF
5087 #define STDC_HEADERS 1
5088 _ACEOF
5089
5090 fi
5091
5092 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5103 inttypes.h stdint.h unistd.h
5104 do
5105 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5106 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5109 echo $ECHO_N "(cached) $ECHO_C" >&6
5110 else
5111 cat >conftest.$ac_ext <<_ACEOF
5112 /* confdefs.h. */
5113 _ACEOF
5114 cat confdefs.h >>conftest.$ac_ext
5115 cat >>conftest.$ac_ext <<_ACEOF
5116 /* end confdefs.h. */
5117 $ac_includes_default
5118
5119 #include <$ac_header>
5120 _ACEOF
5121 rm -f conftest.$ac_objext
5122 if { (ac_try="$ac_compile"
5123 case "(($ac_try" in
5124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5125 *) ac_try_echo=$ac_try;;
5126 esac
5127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5128 (eval "$ac_compile") 2>conftest.er1
5129 ac_status=$?
5130 grep -v '^ *+' conftest.er1 >conftest.err
5131 rm -f conftest.er1
5132 cat conftest.err >&5
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); } && {
5135 test -z "$ac_c_werror_flag" ||
5136 test ! -s conftest.err
5137 } && test -s conftest.$ac_objext; then
5138 eval "$as_ac_Header=yes"
5139 else
5140 echo "$as_me: failed program was:" >&5
5141 sed 's/^/| /' conftest.$ac_ext >&5
5142
5143 eval "$as_ac_Header=no"
5144 fi
5145
5146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5147 fi
5148 ac_res=`eval echo '${'$as_ac_Header'}'`
5149 { echo "$as_me:$LINENO: result: $ac_res" >&5
5150 echo "${ECHO_T}$ac_res" >&6; }
5151 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5152 cat >>confdefs.h <<_ACEOF
5153 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5154 _ACEOF
5155
5156 fi
5157
5158 done
5159
5160
5161
5162 for ac_header in dlfcn.h
5163 do
5164 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5165 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5166 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5167 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5168 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5169 echo $ECHO_N "(cached) $ECHO_C" >&6
5170 fi
5171 ac_res=`eval echo '${'$as_ac_Header'}'`
5172 { echo "$as_me:$LINENO: result: $ac_res" >&5
5173 echo "${ECHO_T}$ac_res" >&6; }
5174 else
5175 # Is the header compilable?
5176 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5177 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5178 cat >conftest.$ac_ext <<_ACEOF
5179 /* confdefs.h. */
5180 _ACEOF
5181 cat confdefs.h >>conftest.$ac_ext
5182 cat >>conftest.$ac_ext <<_ACEOF
5183 /* end confdefs.h. */
5184 $ac_includes_default
5185 #include <$ac_header>
5186 _ACEOF
5187 rm -f conftest.$ac_objext
5188 if { (ac_try="$ac_compile"
5189 case "(($ac_try" in
5190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5191 *) ac_try_echo=$ac_try;;
5192 esac
5193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5194 (eval "$ac_compile") 2>conftest.er1
5195 ac_status=$?
5196 grep -v '^ *+' conftest.er1 >conftest.err
5197 rm -f conftest.er1
5198 cat conftest.err >&5
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); } && {
5201 test -z "$ac_c_werror_flag" ||
5202 test ! -s conftest.err
5203 } && test -s conftest.$ac_objext; then
5204 ac_header_compiler=yes
5205 else
5206 echo "$as_me: failed program was:" >&5
5207 sed 's/^/| /' conftest.$ac_ext >&5
5208
5209 ac_header_compiler=no
5210 fi
5211
5212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5213 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5214 echo "${ECHO_T}$ac_header_compiler" >&6; }
5215
5216 # Is the header present?
5217 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5218 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5219 cat >conftest.$ac_ext <<_ACEOF
5220 /* confdefs.h. */
5221 _ACEOF
5222 cat confdefs.h >>conftest.$ac_ext
5223 cat >>conftest.$ac_ext <<_ACEOF
5224 /* end confdefs.h. */
5225 #include <$ac_header>
5226 _ACEOF
5227 if { (ac_try="$ac_cpp conftest.$ac_ext"
5228 case "(($ac_try" in
5229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5230 *) ac_try_echo=$ac_try;;
5231 esac
5232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5233 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5234 ac_status=$?
5235 grep -v '^ *+' conftest.er1 >conftest.err
5236 rm -f conftest.er1
5237 cat conftest.err >&5
5238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239 (exit $ac_status); } >/dev/null && {
5240 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5241 test ! -s conftest.err
5242 }; then
5243 ac_header_preproc=yes
5244 else
5245 echo "$as_me: failed program was:" >&5
5246 sed 's/^/| /' conftest.$ac_ext >&5
5247
5248 ac_header_preproc=no
5249 fi
5250
5251 rm -f conftest.err conftest.$ac_ext
5252 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5253 echo "${ECHO_T}$ac_header_preproc" >&6; }
5254
5255 # So? What about this header?
5256 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5257 yes:no: )
5258 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5259 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5261 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5262 ac_header_preproc=yes
5263 ;;
5264 no:yes:* )
5265 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5266 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5267 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5268 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5269 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5270 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5271 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5272 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5274 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5275 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5276 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5277
5278 ;;
5279 esac
5280 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5283 echo $ECHO_N "(cached) $ECHO_C" >&6
5284 else
5285 eval "$as_ac_Header=\$ac_header_preproc"
5286 fi
5287 ac_res=`eval echo '${'$as_ac_Header'}'`
5288 { echo "$as_me:$LINENO: result: $ac_res" >&5
5289 echo "${ECHO_T}$ac_res" >&6; }
5290
5291 fi
5292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5293 cat >>confdefs.h <<_ACEOF
5294 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5295 _ACEOF
5296
5297 fi
5298
5299 done
5300
5301 ac_ext=cpp
5302 ac_cpp='$CXXCPP $CPPFLAGS'
5303 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5304 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5305 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5306 if test -z "$CXX"; then
5307 if test -n "$CCC"; then
5308 CXX=$CCC
5309 else
5310 if test -n "$ac_tool_prefix"; then
5311 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5312 do
5313 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5314 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5317 if test "${ac_cv_prog_CXX+set}" = set; then
5318 echo $ECHO_N "(cached) $ECHO_C" >&6
5319 else
5320 if test -n "$CXX"; then
5321 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5322 else
5323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324 for as_dir in $PATH
5325 do
5326 IFS=$as_save_IFS
5327 test -z "$as_dir" && as_dir=.
5328 for ac_exec_ext in '' $ac_executable_extensions; do
5329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5330 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5332 break 2
5333 fi
5334 done
5335 done
5336 IFS=$as_save_IFS
5337
5338 fi
5339 fi
5340 CXX=$ac_cv_prog_CXX
5341 if test -n "$CXX"; then
5342 { echo "$as_me:$LINENO: result: $CXX" >&5
5343 echo "${ECHO_T}$CXX" >&6; }
5344 else
5345 { echo "$as_me:$LINENO: result: no" >&5
5346 echo "${ECHO_T}no" >&6; }
5347 fi
5348
5349
5350 test -n "$CXX" && break
5351 done
5352 fi
5353 if test -z "$CXX"; then
5354 ac_ct_CXX=$CXX
5355 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5356 do
5357 # Extract the first word of "$ac_prog", so it can be a program name with args.
5358 set dummy $ac_prog; ac_word=$2
5359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5361 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5362 echo $ECHO_N "(cached) $ECHO_C" >&6
5363 else
5364 if test -n "$ac_ct_CXX"; then
5365 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5366 else
5367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5368 for as_dir in $PATH
5369 do
5370 IFS=$as_save_IFS
5371 test -z "$as_dir" && as_dir=.
5372 for ac_exec_ext in '' $ac_executable_extensions; do
5373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5374 ac_cv_prog_ac_ct_CXX="$ac_prog"
5375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5376 break 2
5377 fi
5378 done
5379 done
5380 IFS=$as_save_IFS
5381
5382 fi
5383 fi
5384 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5385 if test -n "$ac_ct_CXX"; then
5386 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5387 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5388 else
5389 { echo "$as_me:$LINENO: result: no" >&5
5390 echo "${ECHO_T}no" >&6; }
5391 fi
5392
5393
5394 test -n "$ac_ct_CXX" && break
5395 done
5396
5397 if test "x$ac_ct_CXX" = x; then
5398 CXX="g++"
5399 else
5400 case $cross_compiling:$ac_tool_warned in
5401 yes:)
5402 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5403 whose name does not start with the host triplet. If you think this
5404 configuration is useful to you, please write to autoconf@gnu.org." >&5
5405 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5406 whose name does not start with the host triplet. If you think this
5407 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5408 ac_tool_warned=yes ;;
5409 esac
5410 CXX=$ac_ct_CXX
5411 fi
5412 fi
5413
5414 fi
5415 fi
5416 # Provide some information about the compiler.
5417 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5418 ac_compiler=`set X $ac_compile; echo $2`
5419 { (ac_try="$ac_compiler --version >&5"
5420 case "(($ac_try" in
5421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5422 *) ac_try_echo=$ac_try;;
5423 esac
5424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5425 (eval "$ac_compiler --version >&5") 2>&5
5426 ac_status=$?
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); }
5429 { (ac_try="$ac_compiler -v >&5"
5430 case "(($ac_try" in
5431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5432 *) ac_try_echo=$ac_try;;
5433 esac
5434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5435 (eval "$ac_compiler -v >&5") 2>&5
5436 ac_status=$?
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); }
5439 { (ac_try="$ac_compiler -V >&5"
5440 case "(($ac_try" in
5441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5442 *) ac_try_echo=$ac_try;;
5443 esac
5444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5445 (eval "$ac_compiler -V >&5") 2>&5
5446 ac_status=$?
5447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448 (exit $ac_status); }
5449
5450 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5451 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5452 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5453 echo $ECHO_N "(cached) $ECHO_C" >&6
5454 else
5455 cat >conftest.$ac_ext <<_ACEOF
5456 /* confdefs.h. */
5457 _ACEOF
5458 cat confdefs.h >>conftest.$ac_ext
5459 cat >>conftest.$ac_ext <<_ACEOF
5460 /* end confdefs.h. */
5461
5462 int
5463 main ()
5464 {
5465 #ifndef __GNUC__
5466 choke me
5467 #endif
5468
5469 ;
5470 return 0;
5471 }
5472 _ACEOF
5473 rm -f conftest.$ac_objext
5474 if { (ac_try="$ac_compile"
5475 case "(($ac_try" in
5476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5477 *) ac_try_echo=$ac_try;;
5478 esac
5479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5480 (eval "$ac_compile") 2>conftest.er1
5481 ac_status=$?
5482 grep -v '^ *+' conftest.er1 >conftest.err
5483 rm -f conftest.er1
5484 cat conftest.err >&5
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); } && {
5487 test -z "$ac_cxx_werror_flag" ||
5488 test ! -s conftest.err
5489 } && test -s conftest.$ac_objext; then
5490 ac_compiler_gnu=yes
5491 else
5492 echo "$as_me: failed program was:" >&5
5493 sed 's/^/| /' conftest.$ac_ext >&5
5494
5495 ac_compiler_gnu=no
5496 fi
5497
5498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5499 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5500
5501 fi
5502 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5503 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5504 GXX=`test $ac_compiler_gnu = yes && echo yes`
5505 ac_test_CXXFLAGS=${CXXFLAGS+set}
5506 ac_save_CXXFLAGS=$CXXFLAGS
5507 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5508 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5509 if test "${ac_cv_prog_cxx_g+set}" = set; then
5510 echo $ECHO_N "(cached) $ECHO_C" >&6
5511 else
5512 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5513 ac_cxx_werror_flag=yes
5514 ac_cv_prog_cxx_g=no
5515 CXXFLAGS="-g"
5516 cat >conftest.$ac_ext <<_ACEOF
5517 /* confdefs.h. */
5518 _ACEOF
5519 cat confdefs.h >>conftest.$ac_ext
5520 cat >>conftest.$ac_ext <<_ACEOF
5521 /* end confdefs.h. */
5522
5523 int
5524 main ()
5525 {
5526
5527 ;
5528 return 0;
5529 }
5530 _ACEOF
5531 rm -f conftest.$ac_objext
5532 if { (ac_try="$ac_compile"
5533 case "(($ac_try" in
5534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5535 *) ac_try_echo=$ac_try;;
5536 esac
5537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5538 (eval "$ac_compile") 2>conftest.er1
5539 ac_status=$?
5540 grep -v '^ *+' conftest.er1 >conftest.err
5541 rm -f conftest.er1
5542 cat conftest.err >&5
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); } && {
5545 test -z "$ac_cxx_werror_flag" ||
5546 test ! -s conftest.err
5547 } && test -s conftest.$ac_objext; then
5548 ac_cv_prog_cxx_g=yes
5549 else
5550 echo "$as_me: failed program was:" >&5
5551 sed 's/^/| /' conftest.$ac_ext >&5
5552
5553 CXXFLAGS=""
5554 cat >conftest.$ac_ext <<_ACEOF
5555 /* confdefs.h. */
5556 _ACEOF
5557 cat confdefs.h >>conftest.$ac_ext
5558 cat >>conftest.$ac_ext <<_ACEOF
5559 /* end confdefs.h. */
5560
5561 int
5562 main ()
5563 {
5564
5565 ;
5566 return 0;
5567 }
5568 _ACEOF
5569 rm -f conftest.$ac_objext
5570 if { (ac_try="$ac_compile"
5571 case "(($ac_try" in
5572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5573 *) ac_try_echo=$ac_try;;
5574 esac
5575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5576 (eval "$ac_compile") 2>conftest.er1
5577 ac_status=$?
5578 grep -v '^ *+' conftest.er1 >conftest.err
5579 rm -f conftest.er1
5580 cat conftest.err >&5
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); } && {
5583 test -z "$ac_cxx_werror_flag" ||
5584 test ! -s conftest.err
5585 } && test -s conftest.$ac_objext; then
5586 :
5587 else
5588 echo "$as_me: failed program was:" >&5
5589 sed 's/^/| /' conftest.$ac_ext >&5
5590
5591 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5592 CXXFLAGS="-g"
5593 cat >conftest.$ac_ext <<_ACEOF
5594 /* confdefs.h. */
5595 _ACEOF
5596 cat confdefs.h >>conftest.$ac_ext
5597 cat >>conftest.$ac_ext <<_ACEOF
5598 /* end confdefs.h. */
5599
5600 int
5601 main ()
5602 {
5603
5604 ;
5605 return 0;
5606 }
5607 _ACEOF
5608 rm -f conftest.$ac_objext
5609 if { (ac_try="$ac_compile"
5610 case "(($ac_try" in
5611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5612 *) ac_try_echo=$ac_try;;
5613 esac
5614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5615 (eval "$ac_compile") 2>conftest.er1
5616 ac_status=$?
5617 grep -v '^ *+' conftest.er1 >conftest.err
5618 rm -f conftest.er1
5619 cat conftest.err >&5
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); } && {
5622 test -z "$ac_cxx_werror_flag" ||
5623 test ! -s conftest.err
5624 } && test -s conftest.$ac_objext; then
5625 ac_cv_prog_cxx_g=yes
5626 else
5627 echo "$as_me: failed program was:" >&5
5628 sed 's/^/| /' conftest.$ac_ext >&5
5629
5630
5631 fi
5632
5633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5634 fi
5635
5636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5637 fi
5638
5639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5640 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5641 fi
5642 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5643 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5644 if test "$ac_test_CXXFLAGS" = set; then
5645 CXXFLAGS=$ac_save_CXXFLAGS
5646 elif test $ac_cv_prog_cxx_g = yes; then
5647 if test "$GXX" = yes; then
5648 CXXFLAGS="-g -O2"
5649 else
5650 CXXFLAGS="-g"
5651 fi
5652 else
5653 if test "$GXX" = yes; then
5654 CXXFLAGS="-O2"
5655 else
5656 CXXFLAGS=
5657 fi
5658 fi
5659 ac_ext=cpp
5660 ac_cpp='$CXXCPP $CPPFLAGS'
5661 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5662 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5663 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5664
5665 depcc="$CXX" am_compiler_list=
5666
5667 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5668 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5669 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5670 echo $ECHO_N "(cached) $ECHO_C" >&6
5671 else
5672 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5673 # We make a subdir and do the tests there. Otherwise we can end up
5674 # making bogus files that we don't know about and never remove. For
5675 # instance it was reported that on HP-UX the gcc test will end up
5676 # making a dummy file named `D' -- because `-MD' means `put the output
5677 # in D'.
5678 mkdir conftest.dir
5679 # Copy depcomp to subdir because otherwise we won't find it if we're
5680 # using a relative directory.
5681 cp "$am_depcomp" conftest.dir
5682 cd conftest.dir
5683 # We will build objects and dependencies in a subdirectory because
5684 # it helps to detect inapplicable dependency modes. For instance
5685 # both Tru64's cc and ICC support -MD to output dependencies as a
5686 # side effect of compilation, but ICC will put the dependencies in
5687 # the current directory while Tru64 will put them in the object
5688 # directory.
5689 mkdir sub
5690
5691 am_cv_CXX_dependencies_compiler_type=none
5692 if test "$am_compiler_list" = ""; then
5693 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5694 fi
5695 for depmode in $am_compiler_list; do
5696 # Setup a source with many dependencies, because some compilers
5697 # like to wrap large dependency lists on column 80 (with \), and
5698 # we should not choose a depcomp mode which is confused by this.
5699 #
5700 # We need to recreate these files for each test, as the compiler may
5701 # overwrite some of them when testing with obscure command lines.
5702 # This happens at least with the AIX C compiler.
5703 : > sub/conftest.c
5704 for i in 1 2 3 4 5 6; do
5705 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5706 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5707 # Solaris 8's {/usr,}/bin/sh.
5708 touch sub/conftst$i.h
5709 done
5710 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5711
5712 case $depmode in
5713 nosideeffect)
5714 # after this tag, mechanisms are not by side-effect, so they'll
5715 # only be used when explicitly requested
5716 if test "x$enable_dependency_tracking" = xyes; then
5717 continue
5718 else
5719 break
5720 fi
5721 ;;
5722 none) break ;;
5723 esac
5724 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5725 # mode. It turns out that the SunPro C++ compiler does not properly
5726 # handle `-M -o', and we need to detect this.
5727 if depmode=$depmode \
5728 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5729 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5730 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5731 >/dev/null 2>conftest.err &&
5732 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5733 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5734 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5735 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5736 # icc doesn't choke on unknown options, it will just issue warnings
5737 # or remarks (even with -Werror). So we grep stderr for any message
5738 # that says an option was ignored or not supported.
5739 # When given -MP, icc 7.0 and 7.1 complain thusly:
5740 # icc: Command line warning: ignoring option '-M'; no argument required
5741 # The diagnosis changed in icc 8.0:
5742 # icc: Command line remark: option '-MP' not supported
5743 if (grep 'ignoring option' conftest.err ||
5744 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5745 am_cv_CXX_dependencies_compiler_type=$depmode
5746 break
5747 fi
5748 fi
5749 done
5750
5751 cd ..
5752 rm -rf conftest.dir
5753 else
5754 am_cv_CXX_dependencies_compiler_type=none
5755 fi
5756
5757 fi
5758 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5759 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5760 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5761
5762 if
5763 test "x$enable_dependency_tracking" != xno \
5764 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5765 am__fastdepCXX_TRUE=
5766 am__fastdepCXX_FALSE='#'
5767 else
5768 am__fastdepCXX_TRUE='#'
5769 am__fastdepCXX_FALSE=
5770 fi
5771
5772
5773
5774
5775 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5776 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5777 (test "X$CXX" != "Xg++"))) ; then
5778 ac_ext=cpp
5779 ac_cpp='$CXXCPP $CPPFLAGS'
5780 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5781 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5782 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5783 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5784 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5785 if test -z "$CXXCPP"; then
5786 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5787 echo $ECHO_N "(cached) $ECHO_C" >&6
5788 else
5789 # Double quotes because CXXCPP needs to be expanded
5790 for CXXCPP in "$CXX -E" "/lib/cpp"
5791 do
5792 ac_preproc_ok=false
5793 for ac_cxx_preproc_warn_flag in '' yes
5794 do
5795 # Use a header file that comes with gcc, so configuring glibc
5796 # with a fresh cross-compiler works.
5797 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5798 # <limits.h> exists even on freestanding compilers.
5799 # On the NeXT, cc -E runs the code through the compiler's parser,
5800 # not just through cpp. "Syntax error" is here to catch this case.
5801 cat >conftest.$ac_ext <<_ACEOF
5802 /* confdefs.h. */
5803 _ACEOF
5804 cat confdefs.h >>conftest.$ac_ext
5805 cat >>conftest.$ac_ext <<_ACEOF
5806 /* end confdefs.h. */
5807 #ifdef __STDC__
5808 # include <limits.h>
5809 #else
5810 # include <assert.h>
5811 #endif
5812 Syntax error
5813 _ACEOF
5814 if { (ac_try="$ac_cpp conftest.$ac_ext"
5815 case "(($ac_try" in
5816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5817 *) ac_try_echo=$ac_try;;
5818 esac
5819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5821 ac_status=$?
5822 grep -v '^ *+' conftest.er1 >conftest.err
5823 rm -f conftest.er1
5824 cat conftest.err >&5
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); } >/dev/null && {
5827 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5828 test ! -s conftest.err
5829 }; then
5830 :
5831 else
5832 echo "$as_me: failed program was:" >&5
5833 sed 's/^/| /' conftest.$ac_ext >&5
5834
5835 # Broken: fails on valid input.
5836 continue
5837 fi
5838
5839 rm -f conftest.err conftest.$ac_ext
5840
5841 # OK, works on sane cases. Now check whether nonexistent headers
5842 # can be detected and how.
5843 cat >conftest.$ac_ext <<_ACEOF
5844 /* confdefs.h. */
5845 _ACEOF
5846 cat confdefs.h >>conftest.$ac_ext
5847 cat >>conftest.$ac_ext <<_ACEOF
5848 /* end confdefs.h. */
5849 #include <ac_nonexistent.h>
5850 _ACEOF
5851 if { (ac_try="$ac_cpp conftest.$ac_ext"
5852 case "(($ac_try" in
5853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5854 *) ac_try_echo=$ac_try;;
5855 esac
5856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5857 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5858 ac_status=$?
5859 grep -v '^ *+' conftest.er1 >conftest.err
5860 rm -f conftest.er1
5861 cat conftest.err >&5
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); } >/dev/null && {
5864 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5865 test ! -s conftest.err
5866 }; then
5867 # Broken: success on invalid input.
5868 continue
5869 else
5870 echo "$as_me: failed program was:" >&5
5871 sed 's/^/| /' conftest.$ac_ext >&5
5872
5873 # Passes both tests.
5874 ac_preproc_ok=:
5875 break
5876 fi
5877
5878 rm -f conftest.err conftest.$ac_ext
5879
5880 done
5881 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5882 rm -f conftest.err conftest.$ac_ext
5883 if $ac_preproc_ok; then
5884 break
5885 fi
5886
5887 done
5888 ac_cv_prog_CXXCPP=$CXXCPP
5889
5890 fi
5891 CXXCPP=$ac_cv_prog_CXXCPP
5892 else
5893 ac_cv_prog_CXXCPP=$CXXCPP
5894 fi
5895 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5896 echo "${ECHO_T}$CXXCPP" >&6; }
5897 ac_preproc_ok=false
5898 for ac_cxx_preproc_warn_flag in '' yes
5899 do
5900 # Use a header file that comes with gcc, so configuring glibc
5901 # with a fresh cross-compiler works.
5902 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5903 # <limits.h> exists even on freestanding compilers.
5904 # On the NeXT, cc -E runs the code through the compiler's parser,
5905 # not just through cpp. "Syntax error" is here to catch this case.
5906 cat >conftest.$ac_ext <<_ACEOF
5907 /* confdefs.h. */
5908 _ACEOF
5909 cat confdefs.h >>conftest.$ac_ext
5910 cat >>conftest.$ac_ext <<_ACEOF
5911 /* end confdefs.h. */
5912 #ifdef __STDC__
5913 # include <limits.h>
5914 #else
5915 # include <assert.h>
5916 #endif
5917 Syntax error
5918 _ACEOF
5919 if { (ac_try="$ac_cpp conftest.$ac_ext"
5920 case "(($ac_try" in
5921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5922 *) ac_try_echo=$ac_try;;
5923 esac
5924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5925 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5926 ac_status=$?
5927 grep -v '^ *+' conftest.er1 >conftest.err
5928 rm -f conftest.er1
5929 cat conftest.err >&5
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); } >/dev/null && {
5932 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5933 test ! -s conftest.err
5934 }; then
5935 :
5936 else
5937 echo "$as_me: failed program was:" >&5
5938 sed 's/^/| /' conftest.$ac_ext >&5
5939
5940 # Broken: fails on valid input.
5941 continue
5942 fi
5943
5944 rm -f conftest.err conftest.$ac_ext
5945
5946 # OK, works on sane cases. Now check whether nonexistent headers
5947 # can be detected and how.
5948 cat >conftest.$ac_ext <<_ACEOF
5949 /* confdefs.h. */
5950 _ACEOF
5951 cat confdefs.h >>conftest.$ac_ext
5952 cat >>conftest.$ac_ext <<_ACEOF
5953 /* end confdefs.h. */
5954 #include <ac_nonexistent.h>
5955 _ACEOF
5956 if { (ac_try="$ac_cpp conftest.$ac_ext"
5957 case "(($ac_try" in
5958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5959 *) ac_try_echo=$ac_try;;
5960 esac
5961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5962 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5963 ac_status=$?
5964 grep -v '^ *+' conftest.er1 >conftest.err
5965 rm -f conftest.er1
5966 cat conftest.err >&5
5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 (exit $ac_status); } >/dev/null && {
5969 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5970 test ! -s conftest.err
5971 }; then
5972 # Broken: success on invalid input.
5973 continue
5974 else
5975 echo "$as_me: failed program was:" >&5
5976 sed 's/^/| /' conftest.$ac_ext >&5
5977
5978 # Passes both tests.
5979 ac_preproc_ok=:
5980 break
5981 fi
5982
5983 rm -f conftest.err conftest.$ac_ext
5984
5985 done
5986 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5987 rm -f conftest.err conftest.$ac_ext
5988 if $ac_preproc_ok; then
5989 :
5990 else
5991 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5992 See \`config.log' for more details." >&5
5993 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5994 See \`config.log' for more details." >&2;}
5995 { (exit 1); exit 1; }; }
5996 fi
5997
5998 ac_ext=cpp
5999 ac_cpp='$CXXCPP $CPPFLAGS'
6000 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6001 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6002 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6003
6004 fi
6005
6006
6007 ac_ext=f
6008 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6009 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6010 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6011 if test -n "$ac_tool_prefix"; then
6012 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
6013 do
6014 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6015 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6016 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6018 if test "${ac_cv_prog_F77+set}" = set; then
6019 echo $ECHO_N "(cached) $ECHO_C" >&6
6020 else
6021 if test -n "$F77"; then
6022 ac_cv_prog_F77="$F77" # Let the user override the test.
6023 else
6024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6025 for as_dir in $PATH
6026 do
6027 IFS=$as_save_IFS
6028 test -z "$as_dir" && as_dir=.
6029 for ac_exec_ext in '' $ac_executable_extensions; do
6030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6031 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6033 break 2
6034 fi
6035 done
6036 done
6037 IFS=$as_save_IFS
6038
6039 fi
6040 fi
6041 F77=$ac_cv_prog_F77
6042 if test -n "$F77"; then
6043 { echo "$as_me:$LINENO: result: $F77" >&5
6044 echo "${ECHO_T}$F77" >&6; }
6045 else
6046 { echo "$as_me:$LINENO: result: no" >&5
6047 echo "${ECHO_T}no" >&6; }
6048 fi
6049
6050
6051 test -n "$F77" && break
6052 done
6053 fi
6054 if test -z "$F77"; then
6055 ac_ct_F77=$F77
6056 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
6057 do
6058 # Extract the first word of "$ac_prog", so it can be a program name with args.
6059 set dummy $ac_prog; ac_word=$2
6060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6062 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6063 echo $ECHO_N "(cached) $ECHO_C" >&6
6064 else
6065 if test -n "$ac_ct_F77"; then
6066 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6067 else
6068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6069 for as_dir in $PATH
6070 do
6071 IFS=$as_save_IFS
6072 test -z "$as_dir" && as_dir=.
6073 for ac_exec_ext in '' $ac_executable_extensions; do
6074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6075 ac_cv_prog_ac_ct_F77="$ac_prog"
6076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6077 break 2
6078 fi
6079 done
6080 done
6081 IFS=$as_save_IFS
6082
6083 fi
6084 fi
6085 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6086 if test -n "$ac_ct_F77"; then
6087 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6088 echo "${ECHO_T}$ac_ct_F77" >&6; }
6089 else
6090 { echo "$as_me:$LINENO: result: no" >&5
6091 echo "${ECHO_T}no" >&6; }
6092 fi
6093
6094
6095 test -n "$ac_ct_F77" && break
6096 done
6097
6098 if test "x$ac_ct_F77" = x; then
6099 F77=""
6100 else
6101 case $cross_compiling:$ac_tool_warned in
6102 yes:)
6103 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6104 whose name does not start with the host triplet. If you think this
6105 configuration is useful to you, please write to autoconf@gnu.org." >&5
6106 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6107 whose name does not start with the host triplet. If you think this
6108 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6109 ac_tool_warned=yes ;;
6110 esac
6111 F77=$ac_ct_F77
6112 fi
6113 fi
6114
6115
6116 # Provide some information about the compiler.
6117 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6118 ac_compiler=`set X $ac_compile; echo $2`
6119 { (ac_try="$ac_compiler --version >&5"
6120 case "(($ac_try" in
6121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6122 *) ac_try_echo=$ac_try;;
6123 esac
6124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6125 (eval "$ac_compiler --version >&5") 2>&5
6126 ac_status=$?
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); }
6129 { (ac_try="$ac_compiler -v >&5"
6130 case "(($ac_try" in
6131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6132 *) ac_try_echo=$ac_try;;
6133 esac
6134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6135 (eval "$ac_compiler -v >&5") 2>&5
6136 ac_status=$?
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); }
6139 { (ac_try="$ac_compiler -V >&5"
6140 case "(($ac_try" in
6141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6142 *) ac_try_echo=$ac_try;;
6143 esac
6144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6145 (eval "$ac_compiler -V >&5") 2>&5
6146 ac_status=$?
6147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148 (exit $ac_status); }
6149 rm -f a.out
6150
6151 # If we don't use `.F' as extension, the preprocessor is not run on the
6152 # input file. (Note that this only needs to work for GNU compilers.)
6153 ac_save_ext=$ac_ext
6154 ac_ext=F
6155 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6156 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6157 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6158 echo $ECHO_N "(cached) $ECHO_C" >&6
6159 else
6160 cat >conftest.$ac_ext <<_ACEOF
6161 program main
6162 #ifndef __GNUC__
6163 choke me
6164 #endif
6165
6166 end
6167 _ACEOF
6168 rm -f conftest.$ac_objext
6169 if { (ac_try="$ac_compile"
6170 case "(($ac_try" in
6171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6172 *) ac_try_echo=$ac_try;;
6173 esac
6174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6175 (eval "$ac_compile") 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); } && {
6182 test -z "$ac_f77_werror_flag" ||
6183 test ! -s conftest.err
6184 } && test -s conftest.$ac_objext; then
6185 ac_compiler_gnu=yes
6186 else
6187 echo "$as_me: failed program was:" >&5
6188 sed 's/^/| /' conftest.$ac_ext >&5
6189
6190 ac_compiler_gnu=no
6191 fi
6192
6193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6194 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6195
6196 fi
6197 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6198 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6199 ac_ext=$ac_save_ext
6200 ac_test_FFLAGS=${FFLAGS+set}
6201 ac_save_FFLAGS=$FFLAGS
6202 FFLAGS=
6203 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6204 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6205 if test "${ac_cv_prog_f77_g+set}" = set; then
6206 echo $ECHO_N "(cached) $ECHO_C" >&6
6207 else
6208 FFLAGS=-g
6209 cat >conftest.$ac_ext <<_ACEOF
6210 program main
6211
6212 end
6213 _ACEOF
6214 rm -f conftest.$ac_objext
6215 if { (ac_try="$ac_compile"
6216 case "(($ac_try" in
6217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6218 *) ac_try_echo=$ac_try;;
6219 esac
6220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6221 (eval "$ac_compile") 2>conftest.er1
6222 ac_status=$?
6223 grep -v '^ *+' conftest.er1 >conftest.err
6224 rm -f conftest.er1
6225 cat conftest.err >&5
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); } && {
6228 test -z "$ac_f77_werror_flag" ||
6229 test ! -s conftest.err
6230 } && test -s conftest.$ac_objext; then
6231 ac_cv_prog_f77_g=yes
6232 else
6233 echo "$as_me: failed program was:" >&5
6234 sed 's/^/| /' conftest.$ac_ext >&5
6235
6236 ac_cv_prog_f77_g=no
6237 fi
6238
6239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6240
6241 fi
6242 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6243 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6244 if test "$ac_test_FFLAGS" = set; then
6245 FFLAGS=$ac_save_FFLAGS
6246 elif test $ac_cv_prog_f77_g = yes; then
6247 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6248 FFLAGS="-g -O2"
6249 else
6250 FFLAGS="-g"
6251 fi
6252 else
6253 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6254 FFLAGS="-O2"
6255 else
6256 FFLAGS=
6257 fi
6258 fi
6259
6260 G77=`test $ac_compiler_gnu = yes && echo yes`
6261 ac_ext=c
6262 ac_cpp='$CPP $CPPFLAGS'
6263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6266
6267
6268
6269 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6270
6271 # find the maximum length of command line arguments
6272 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6273 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6274 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6275 echo $ECHO_N "(cached) $ECHO_C" >&6
6276 else
6277 i=0
6278 teststring="ABCD"
6279
6280 case $build_os in
6281 msdosdjgpp*)
6282 # On DJGPP, this test can blow up pretty badly due to problems in libc
6283 # (any single argument exceeding 2000 bytes causes a buffer overrun
6284 # during glob expansion). Even if it were fixed, the result of this
6285 # check would be larger than it should be.
6286 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6287 ;;
6288
6289 gnu*)
6290 # Under GNU Hurd, this test is not required because there is
6291 # no limit to the length of command line arguments.
6292 # Libtool will interpret -1 as no limit whatsoever
6293 lt_cv_sys_max_cmd_len=-1;
6294 ;;
6295
6296 cygwin* | mingw*)
6297 # On Win9x/ME, this test blows up -- it succeeds, but takes
6298 # about 5 minutes as the teststring grows exponentially.
6299 # Worse, since 9x/ME are not pre-emptively multitasking,
6300 # you end up with a "frozen" computer, even though with patience
6301 # the test eventually succeeds (with a max line length of 256k).
6302 # Instead, let's just punt: use the minimum linelength reported by
6303 # all of the supported platforms: 8192 (on NT/2K/XP).
6304 lt_cv_sys_max_cmd_len=8192;
6305 ;;
6306
6307 amigaos*)
6308 # On AmigaOS with pdksh, this test takes hours, literally.
6309 # So we just punt and use a minimum line length of 8192.
6310 lt_cv_sys_max_cmd_len=8192;
6311 ;;
6312
6313 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6314 # This has been around since 386BSD, at least. Likely further.
6315 if test -x /sbin/sysctl; then
6316 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6317 elif test -x /usr/sbin/sysctl; then
6318 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6319 else
6320 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6321 fi
6322 # And add a safety zone
6323 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6324 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6325 ;;
6326
6327 interix*)
6328 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6329 lt_cv_sys_max_cmd_len=196608
6330 ;;
6331
6332 osf*)
6333 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6334 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6335 # nice to cause kernel panics so lets avoid the loop below.
6336 # First set a reasonable default.
6337 lt_cv_sys_max_cmd_len=16384
6338 #
6339 if test -x /sbin/sysconfig; then
6340 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6341 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6342 esac
6343 fi
6344 ;;
6345 sco3.2v5*)
6346 lt_cv_sys_max_cmd_len=102400
6347 ;;
6348 sysv5* | sco5v6* | sysv4.2uw2*)
6349 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6350 if test -n "$kargmax"; then
6351 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6352 else
6353 lt_cv_sys_max_cmd_len=32768
6354 fi
6355 ;;
6356 *)
6357 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6358 if test -n "$lt_cv_sys_max_cmd_len"; then
6359 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6360 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6361 else
6362 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6363 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6364 = "XX$teststring") >/dev/null 2>&1 &&
6365 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6366 lt_cv_sys_max_cmd_len=$new_result &&
6367 test $i != 17 # 1/2 MB should be enough
6368 do
6369 i=`expr $i + 1`
6370 teststring=$teststring$teststring
6371 done
6372 teststring=
6373 # Add a significant safety factor because C++ compilers can tack on massive
6374 # amounts of additional arguments before passing them to the linker.
6375 # It appears as though 1/2 is a usable value.
6376 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6377 fi
6378 ;;
6379 esac
6380
6381 fi
6382
6383 if test -n $lt_cv_sys_max_cmd_len ; then
6384 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6385 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6386 else
6387 { echo "$as_me:$LINENO: result: none" >&5
6388 echo "${ECHO_T}none" >&6; }
6389 fi
6390
6391
6392
6393
6394
6395 # Check for command to grab the raw symbol name followed by C symbol from nm.
6396 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6397 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6398 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6399 echo $ECHO_N "(cached) $ECHO_C" >&6
6400 else
6401
6402 # These are sane defaults that work on at least a few old systems.
6403 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6404
6405 # Character class describing NM global symbol codes.
6406 symcode='[BCDEGRST]'
6407
6408 # Regexp to match symbols that can be accessed directly from C.
6409 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6410
6411 # Transform an extracted symbol line into a proper C declaration
6412 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6413
6414 # Transform an extracted symbol line into symbol name and symbol address
6415 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'"
6416
6417 # Define system-specific variables.
6418 case $host_os in
6419 aix*)
6420 symcode='[BCDT]'
6421 ;;
6422 cygwin* | mingw* | pw32*)
6423 symcode='[ABCDGISTW]'
6424 ;;
6425 hpux*) # Its linker distinguishes data from code symbols
6426 if test "$host_cpu" = ia64; then
6427 symcode='[ABCDEGRST]'
6428 fi
6429 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6430 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'"
6431 ;;
6432 linux* | k*bsd*-gnu)
6433 if test "$host_cpu" = ia64; then
6434 symcode='[ABCDGIRSTW]'
6435 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6436 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'"
6437 fi
6438 ;;
6439 irix* | nonstopux*)
6440 symcode='[BCDEGRST]'
6441 ;;
6442 osf*)
6443 symcode='[BCDEGQRST]'
6444 ;;
6445 solaris*)
6446 symcode='[BDRT]'
6447 ;;
6448 sco3.2v5*)
6449 symcode='[DT]'
6450 ;;
6451 sysv4.2uw2*)
6452 symcode='[DT]'
6453 ;;
6454 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6455 symcode='[ABDT]'
6456 ;;
6457 sysv4)
6458 symcode='[DFNSTU]'
6459 ;;
6460 esac
6461
6462 # Handle CRLF in mingw tool chain
6463 opt_cr=
6464 case $build_os in
6465 mingw*)
6466 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6467 ;;
6468 esac
6469
6470 # If we're using GNU nm, then use its standard symbol codes.
6471 case `$NM -V 2>&1` in
6472 *GNU* | *'with BFD'*)
6473 symcode='[ABCDGIRSTW]' ;;
6474 esac
6475
6476 # Try without a prefix undercore, then with it.
6477 for ac_symprfx in "" "_"; do
6478
6479 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6480 symxfrm="\\1 $ac_symprfx\\2 \\2"
6481
6482 # Write the raw and C identifiers.
6483 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6484
6485 # Check to see that the pipe works correctly.
6486 pipe_works=no
6487
6488 rm -f conftest*
6489 cat > conftest.$ac_ext <<EOF
6490 #ifdef __cplusplus
6491 extern "C" {
6492 #endif
6493 char nm_test_var;
6494 void nm_test_func(){}
6495 #ifdef __cplusplus
6496 }
6497 #endif
6498 int main(){nm_test_var='a';nm_test_func();return(0);}
6499 EOF
6500
6501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6502 (eval $ac_compile) 2>&5
6503 ac_status=$?
6504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505 (exit $ac_status); }; then
6506 # Now try to grab the symbols.
6507 nlist=conftest.nm
6508 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6509 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6510 ac_status=$?
6511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6512 (exit $ac_status); } && test -s "$nlist"; then
6513 # Try sorting and uniquifying the output.
6514 if sort "$nlist" | uniq > "$nlist"T; then
6515 mv -f "$nlist"T "$nlist"
6516 else
6517 rm -f "$nlist"T
6518 fi
6519
6520 # Make sure that we snagged all the symbols we need.
6521 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6522 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6523 cat <<EOF > conftest.$ac_ext
6524 #ifdef __cplusplus
6525 extern "C" {
6526 #endif
6527
6528 EOF
6529 # Now generate the symbol file.
6530 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6531
6532 cat <<EOF >> conftest.$ac_ext
6533 #if defined (__STDC__) && __STDC__
6534 # define lt_ptr_t void *
6535 #else
6536 # define lt_ptr_t char *
6537 # define const
6538 #endif
6539
6540 /* The mapping between symbol names and symbols. */
6541 const struct {
6542 const char *name;
6543 lt_ptr_t address;
6544 }
6545 lt_preloaded_symbols[] =
6546 {
6547 EOF
6548 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6549 cat <<\EOF >> conftest.$ac_ext
6550 {0, (lt_ptr_t) 0}
6551 };
6552
6553 #ifdef __cplusplus
6554 }
6555 #endif
6556 EOF
6557 # Now try linking the two files.
6558 mv conftest.$ac_objext conftstm.$ac_objext
6559 lt_save_LIBS="$LIBS"
6560 lt_save_CFLAGS="$CFLAGS"
6561 LIBS="conftstm.$ac_objext"
6562 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6564 (eval $ac_link) 2>&5
6565 ac_status=$?
6566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6568 pipe_works=yes
6569 fi
6570 LIBS="$lt_save_LIBS"
6571 CFLAGS="$lt_save_CFLAGS"
6572 else
6573 echo "cannot find nm_test_func in $nlist" >&5
6574 fi
6575 else
6576 echo "cannot find nm_test_var in $nlist" >&5
6577 fi
6578 else
6579 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6580 fi
6581 else
6582 echo "$progname: failed program was:" >&5
6583 cat conftest.$ac_ext >&5
6584 fi
6585 rm -f conftest* conftst*
6586
6587 # Do not use the global_symbol_pipe unless it works.
6588 if test "$pipe_works" = yes; then
6589 break
6590 else
6591 lt_cv_sys_global_symbol_pipe=
6592 fi
6593 done
6594
6595 fi
6596
6597 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6598 lt_cv_sys_global_symbol_to_cdecl=
6599 fi
6600 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6601 { echo "$as_me:$LINENO: result: failed" >&5
6602 echo "${ECHO_T}failed" >&6; }
6603 else
6604 { echo "$as_me:$LINENO: result: ok" >&5
6605 echo "${ECHO_T}ok" >&6; }
6606 fi
6607
6608 { echo "$as_me:$LINENO: checking for objdir" >&5
6609 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6610 if test "${lt_cv_objdir+set}" = set; then
6611 echo $ECHO_N "(cached) $ECHO_C" >&6
6612 else
6613 rm -f .libs 2>/dev/null
6614 mkdir .libs 2>/dev/null
6615 if test -d .libs; then
6616 lt_cv_objdir=.libs
6617 else
6618 # MS-DOS does not allow filenames that begin with a dot.
6619 lt_cv_objdir=_libs
6620 fi
6621 rmdir .libs 2>/dev/null
6622 fi
6623 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6624 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6625 objdir=$lt_cv_objdir
6626
6627
6628
6629
6630
6631 case $host_os in
6632 aix3*)
6633 # AIX sometimes has problems with the GCC collect2 program. For some
6634 # reason, if we set the COLLECT_NAMES environment variable, the problems
6635 # vanish in a puff of smoke.
6636 if test "X${COLLECT_NAMES+set}" != Xset; then
6637 COLLECT_NAMES=
6638 export COLLECT_NAMES
6639 fi
6640 ;;
6641 esac
6642
6643 # Sed substitution that helps us do robust quoting. It backslashifies
6644 # metacharacters that are still active within double-quoted strings.
6645 Xsed='sed -e 1s/^X//'
6646 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6647
6648 # Same as above, but do not quote variable references.
6649 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6650
6651 # Sed substitution to delay expansion of an escaped shell variable in a
6652 # double_quote_subst'ed string.
6653 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6654
6655 # Sed substitution to avoid accidental globbing in evaled expressions
6656 no_glob_subst='s/\*/\\\*/g'
6657
6658 # Constants:
6659 rm="rm -f"
6660
6661 # Global variables:
6662 default_ofile=libtool
6663 can_build_shared=yes
6664
6665 # All known linkers require a `.a' archive for static linking (except MSVC,
6666 # which needs '.lib').
6667 libext=a
6668 ltmain="$ac_aux_dir/ltmain.sh"
6669 ofile="$default_ofile"
6670 with_gnu_ld="$lt_cv_prog_gnu_ld"
6671
6672 if test -n "$ac_tool_prefix"; then
6673 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6674 set dummy ${ac_tool_prefix}ar; ac_word=$2
6675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6677 if test "${ac_cv_prog_AR+set}" = set; then
6678 echo $ECHO_N "(cached) $ECHO_C" >&6
6679 else
6680 if test -n "$AR"; then
6681 ac_cv_prog_AR="$AR" # Let the user override the test.
6682 else
6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684 for as_dir in $PATH
6685 do
6686 IFS=$as_save_IFS
6687 test -z "$as_dir" && as_dir=.
6688 for ac_exec_ext in '' $ac_executable_extensions; do
6689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6690 ac_cv_prog_AR="${ac_tool_prefix}ar"
6691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6692 break 2
6693 fi
6694 done
6695 done
6696 IFS=$as_save_IFS
6697
6698 fi
6699 fi
6700 AR=$ac_cv_prog_AR
6701 if test -n "$AR"; then
6702 { echo "$as_me:$LINENO: result: $AR" >&5
6703 echo "${ECHO_T}$AR" >&6; }
6704 else
6705 { echo "$as_me:$LINENO: result: no" >&5
6706 echo "${ECHO_T}no" >&6; }
6707 fi
6708
6709
6710 fi
6711 if test -z "$ac_cv_prog_AR"; then
6712 ac_ct_AR=$AR
6713 # Extract the first word of "ar", so it can be a program name with args.
6714 set dummy ar; ac_word=$2
6715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6717 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6718 echo $ECHO_N "(cached) $ECHO_C" >&6
6719 else
6720 if test -n "$ac_ct_AR"; then
6721 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6722 else
6723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6724 for as_dir in $PATH
6725 do
6726 IFS=$as_save_IFS
6727 test -z "$as_dir" && as_dir=.
6728 for ac_exec_ext in '' $ac_executable_extensions; do
6729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6730 ac_cv_prog_ac_ct_AR="ar"
6731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6732 break 2
6733 fi
6734 done
6735 done
6736 IFS=$as_save_IFS
6737
6738 fi
6739 fi
6740 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6741 if test -n "$ac_ct_AR"; then
6742 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6743 echo "${ECHO_T}$ac_ct_AR" >&6; }
6744 else
6745 { echo "$as_me:$LINENO: result: no" >&5
6746 echo "${ECHO_T}no" >&6; }
6747 fi
6748
6749 if test "x$ac_ct_AR" = x; then
6750 AR="false"
6751 else
6752 case $cross_compiling:$ac_tool_warned in
6753 yes:)
6754 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6755 whose name does not start with the host triplet. If you think this
6756 configuration is useful to you, please write to autoconf@gnu.org." >&5
6757 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6758 whose name does not start with the host triplet. If you think this
6759 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6760 ac_tool_warned=yes ;;
6761 esac
6762 AR=$ac_ct_AR
6763 fi
6764 else
6765 AR="$ac_cv_prog_AR"
6766 fi
6767
6768 if test -n "$ac_tool_prefix"; then
6769 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6770 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6773 if test "${ac_cv_prog_RANLIB+set}" = set; then
6774 echo $ECHO_N "(cached) $ECHO_C" >&6
6775 else
6776 if test -n "$RANLIB"; then
6777 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6778 else
6779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6780 for as_dir in $PATH
6781 do
6782 IFS=$as_save_IFS
6783 test -z "$as_dir" && as_dir=.
6784 for ac_exec_ext in '' $ac_executable_extensions; do
6785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6786 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6788 break 2
6789 fi
6790 done
6791 done
6792 IFS=$as_save_IFS
6793
6794 fi
6795 fi
6796 RANLIB=$ac_cv_prog_RANLIB
6797 if test -n "$RANLIB"; then
6798 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6799 echo "${ECHO_T}$RANLIB" >&6; }
6800 else
6801 { echo "$as_me:$LINENO: result: no" >&5
6802 echo "${ECHO_T}no" >&6; }
6803 fi
6804
6805
6806 fi
6807 if test -z "$ac_cv_prog_RANLIB"; then
6808 ac_ct_RANLIB=$RANLIB
6809 # Extract the first word of "ranlib", so it can be a program name with args.
6810 set dummy ranlib; ac_word=$2
6811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6813 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6814 echo $ECHO_N "(cached) $ECHO_C" >&6
6815 else
6816 if test -n "$ac_ct_RANLIB"; then
6817 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6818 else
6819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820 for as_dir in $PATH
6821 do
6822 IFS=$as_save_IFS
6823 test -z "$as_dir" && as_dir=.
6824 for ac_exec_ext in '' $ac_executable_extensions; do
6825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6826 ac_cv_prog_ac_ct_RANLIB="ranlib"
6827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6828 break 2
6829 fi
6830 done
6831 done
6832 IFS=$as_save_IFS
6833
6834 fi
6835 fi
6836 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6837 if test -n "$ac_ct_RANLIB"; then
6838 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6839 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6840 else
6841 { echo "$as_me:$LINENO: result: no" >&5
6842 echo "${ECHO_T}no" >&6; }
6843 fi
6844
6845 if test "x$ac_ct_RANLIB" = x; then
6846 RANLIB=":"
6847 else
6848 case $cross_compiling:$ac_tool_warned in
6849 yes:)
6850 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6851 whose name does not start with the host triplet. If you think this
6852 configuration is useful to you, please write to autoconf@gnu.org." >&5
6853 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6854 whose name does not start with the host triplet. If you think this
6855 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6856 ac_tool_warned=yes ;;
6857 esac
6858 RANLIB=$ac_ct_RANLIB
6859 fi
6860 else
6861 RANLIB="$ac_cv_prog_RANLIB"
6862 fi
6863
6864 if test -n "$ac_tool_prefix"; then
6865 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6866 set dummy ${ac_tool_prefix}strip; ac_word=$2
6867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6869 if test "${ac_cv_prog_STRIP+set}" = set; then
6870 echo $ECHO_N "(cached) $ECHO_C" >&6
6871 else
6872 if test -n "$STRIP"; then
6873 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6874 else
6875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6876 for as_dir in $PATH
6877 do
6878 IFS=$as_save_IFS
6879 test -z "$as_dir" && as_dir=.
6880 for ac_exec_ext in '' $ac_executable_extensions; do
6881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6882 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6884 break 2
6885 fi
6886 done
6887 done
6888 IFS=$as_save_IFS
6889
6890 fi
6891 fi
6892 STRIP=$ac_cv_prog_STRIP
6893 if test -n "$STRIP"; then
6894 { echo "$as_me:$LINENO: result: $STRIP" >&5
6895 echo "${ECHO_T}$STRIP" >&6; }
6896 else
6897 { echo "$as_me:$LINENO: result: no" >&5
6898 echo "${ECHO_T}no" >&6; }
6899 fi
6900
6901
6902 fi
6903 if test -z "$ac_cv_prog_STRIP"; then
6904 ac_ct_STRIP=$STRIP
6905 # Extract the first word of "strip", so it can be a program name with args.
6906 set dummy strip; ac_word=$2
6907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6909 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6910 echo $ECHO_N "(cached) $ECHO_C" >&6
6911 else
6912 if test -n "$ac_ct_STRIP"; then
6913 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6914 else
6915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6916 for as_dir in $PATH
6917 do
6918 IFS=$as_save_IFS
6919 test -z "$as_dir" && as_dir=.
6920 for ac_exec_ext in '' $ac_executable_extensions; do
6921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6922 ac_cv_prog_ac_ct_STRIP="strip"
6923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6924 break 2
6925 fi
6926 done
6927 done
6928 IFS=$as_save_IFS
6929
6930 fi
6931 fi
6932 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6933 if test -n "$ac_ct_STRIP"; then
6934 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6935 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6936 else
6937 { echo "$as_me:$LINENO: result: no" >&5
6938 echo "${ECHO_T}no" >&6; }
6939 fi
6940
6941 if test "x$ac_ct_STRIP" = x; then
6942 STRIP=":"
6943 else
6944 case $cross_compiling:$ac_tool_warned in
6945 yes:)
6946 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6947 whose name does not start with the host triplet. If you think this
6948 configuration is useful to you, please write to autoconf@gnu.org." >&5
6949 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6950 whose name does not start with the host triplet. If you think this
6951 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6952 ac_tool_warned=yes ;;
6953 esac
6954 STRIP=$ac_ct_STRIP
6955 fi
6956 else
6957 STRIP="$ac_cv_prog_STRIP"
6958 fi
6959
6960
6961 old_CC="$CC"
6962 old_CFLAGS="$CFLAGS"
6963
6964 # Set sane defaults for various variables
6965 test -z "$AR" && AR=ar
6966 test -z "$AR_FLAGS" && AR_FLAGS=cru
6967 test -z "$AS" && AS=as
6968 test -z "$CC" && CC=cc
6969 test -z "$LTCC" && LTCC=$CC
6970 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6971 test -z "$DLLTOOL" && DLLTOOL=dlltool
6972 test -z "$LD" && LD=ld
6973 test -z "$LN_S" && LN_S="ln -s"
6974 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6975 test -z "$NM" && NM=nm
6976 test -z "$SED" && SED=sed
6977 test -z "$OBJDUMP" && OBJDUMP=objdump
6978 test -z "$RANLIB" && RANLIB=:
6979 test -z "$STRIP" && STRIP=:
6980 test -z "$ac_objext" && ac_objext=o
6981
6982 # Determine commands to create old-style static archives.
6983 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6984 old_postinstall_cmds='chmod 644 $oldlib'
6985 old_postuninstall_cmds=
6986
6987 if test -n "$RANLIB"; then
6988 case $host_os in
6989 openbsd*)
6990 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6991 ;;
6992 *)
6993 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6994 ;;
6995 esac
6996 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6997 fi
6998
6999 for cc_temp in $compiler""; do
7000 case $cc_temp in
7001 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7002 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7003 \-*) ;;
7004 *) break;;
7005 esac
7006 done
7007 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7008
7009
7010 # Only perform the check for file, if the check method requires it
7011 case $deplibs_check_method in
7012 file_magic*)
7013 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7014 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7015 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7016 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7017 echo $ECHO_N "(cached) $ECHO_C" >&6
7018 else
7019 case $MAGIC_CMD in
7020 [\\/*] | ?:[\\/]*)
7021 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7022 ;;
7023 *)
7024 lt_save_MAGIC_CMD="$MAGIC_CMD"
7025 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7026 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7027 for ac_dir in $ac_dummy; do
7028 IFS="$lt_save_ifs"
7029 test -z "$ac_dir" && ac_dir=.
7030 if test -f $ac_dir/${ac_tool_prefix}file; then
7031 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7032 if test -n "$file_magic_test_file"; then
7033 case $deplibs_check_method in
7034 "file_magic "*)
7035 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7036 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7037 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7038 $EGREP "$file_magic_regex" > /dev/null; then
7039 :
7040 else
7041 cat <<EOF 1>&2
7042
7043 *** Warning: the command libtool uses to detect shared libraries,
7044 *** $file_magic_cmd, produces output that libtool cannot recognize.
7045 *** The result is that libtool may fail to recognize shared libraries
7046 *** as such. This will affect the creation of libtool libraries that
7047 *** depend on shared libraries, but programs linked with such libtool
7048 *** libraries will work regardless of this problem. Nevertheless, you
7049 *** may want to report the problem to your system manager and/or to
7050 *** bug-libtool@gnu.org
7051
7052 EOF
7053 fi ;;
7054 esac
7055 fi
7056 break
7057 fi
7058 done
7059 IFS="$lt_save_ifs"
7060 MAGIC_CMD="$lt_save_MAGIC_CMD"
7061 ;;
7062 esac
7063 fi
7064
7065 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7066 if test -n "$MAGIC_CMD"; then
7067 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7068 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7069 else
7070 { echo "$as_me:$LINENO: result: no" >&5
7071 echo "${ECHO_T}no" >&6; }
7072 fi
7073
7074 if test -z "$lt_cv_path_MAGIC_CMD"; then
7075 if test -n "$ac_tool_prefix"; then
7076 { echo "$as_me:$LINENO: checking for file" >&5
7077 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7078 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7079 echo $ECHO_N "(cached) $ECHO_C" >&6
7080 else
7081 case $MAGIC_CMD in
7082 [\\/*] | ?:[\\/]*)
7083 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7084 ;;
7085 *)
7086 lt_save_MAGIC_CMD="$MAGIC_CMD"
7087 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7088 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7089 for ac_dir in $ac_dummy; do
7090 IFS="$lt_save_ifs"
7091 test -z "$ac_dir" && ac_dir=.
7092 if test -f $ac_dir/file; then
7093 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7094 if test -n "$file_magic_test_file"; then
7095 case $deplibs_check_method in
7096 "file_magic "*)
7097 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7098 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7099 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7100 $EGREP "$file_magic_regex" > /dev/null; then
7101 :
7102 else
7103 cat <<EOF 1>&2
7104
7105 *** Warning: the command libtool uses to detect shared libraries,
7106 *** $file_magic_cmd, produces output that libtool cannot recognize.
7107 *** The result is that libtool may fail to recognize shared libraries
7108 *** as such. This will affect the creation of libtool libraries that
7109 *** depend on shared libraries, but programs linked with such libtool
7110 *** libraries will work regardless of this problem. Nevertheless, you
7111 *** may want to report the problem to your system manager and/or to
7112 *** bug-libtool@gnu.org
7113
7114 EOF
7115 fi ;;
7116 esac
7117 fi
7118 break
7119 fi
7120 done
7121 IFS="$lt_save_ifs"
7122 MAGIC_CMD="$lt_save_MAGIC_CMD"
7123 ;;
7124 esac
7125 fi
7126
7127 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7128 if test -n "$MAGIC_CMD"; then
7129 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7130 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7131 else
7132 { echo "$as_me:$LINENO: result: no" >&5
7133 echo "${ECHO_T}no" >&6; }
7134 fi
7135
7136 else
7137 MAGIC_CMD=:
7138 fi
7139 fi
7140
7141 fi
7142 ;;
7143 esac
7144
7145 enable_dlopen=no
7146 enable_win32_dll=no
7147
7148 # Check whether --enable-libtool-lock was given.
7149 if test "${enable_libtool_lock+set}" = set; then
7150 enableval=$enable_libtool_lock;
7151 fi
7152
7153 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7154
7155
7156 # Check whether --with-pic was given.
7157 if test "${with_pic+set}" = set; then
7158 withval=$with_pic; pic_mode="$withval"
7159 else
7160 pic_mode=default
7161 fi
7162
7163 test -z "$pic_mode" && pic_mode=default
7164
7165 # Use C for the default configuration in the libtool script
7166 tagname=
7167 lt_save_CC="$CC"
7168 ac_ext=c
7169 ac_cpp='$CPP $CPPFLAGS'
7170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7173
7174
7175 # Source file extension for C test sources.
7176 ac_ext=c
7177
7178 # Object file extension for compiled C test sources.
7179 objext=o
7180 objext=$objext
7181
7182 # Code to be used in simple compile tests
7183 lt_simple_compile_test_code="int some_variable = 0;"
7184
7185 # Code to be used in simple link tests
7186 lt_simple_link_test_code='int main(){return(0);}'
7187
7188
7189 # If no C compiler was specified, use CC.
7190 LTCC=${LTCC-"$CC"}
7191
7192 # If no C compiler flags were specified, use CFLAGS.
7193 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7194
7195 # Allow CC to be a program name with arguments.
7196 compiler=$CC
7197
7198
7199 # save warnings/boilerplate of simple test code
7200 ac_outfile=conftest.$ac_objext
7201 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7202 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7203 _lt_compiler_boilerplate=`cat conftest.err`
7204 $rm conftest*
7205
7206 ac_outfile=conftest.$ac_objext
7207 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7208 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7209 _lt_linker_boilerplate=`cat conftest.err`
7210 $rm conftest*
7211
7212
7213
7214 lt_prog_compiler_no_builtin_flag=
7215
7216 if test "$GCC" = yes; then
7217 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7218
7219
7220 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7221 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7222 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7223 echo $ECHO_N "(cached) $ECHO_C" >&6
7224 else
7225 lt_cv_prog_compiler_rtti_exceptions=no
7226 ac_outfile=conftest.$ac_objext
7227 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7228 lt_compiler_flag="-fno-rtti -fno-exceptions"
7229 # Insert the option either (1) after the last *FLAGS variable, or
7230 # (2) before a word containing "conftest.", or (3) at the end.
7231 # Note that $ac_compile itself does not contain backslashes and begins
7232 # with a dollar sign (not a hyphen), so the echo should work correctly.
7233 # The option is referenced via a variable to avoid confusing sed.
7234 lt_compile=`echo "$ac_compile" | $SED \
7235 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7236 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7237 -e 's:$: $lt_compiler_flag:'`
7238 (eval echo "\"\$as_me:7239: $lt_compile\"" >&5)
7239 (eval "$lt_compile" 2>conftest.err)
7240 ac_status=$?
7241 cat conftest.err >&5
7242 echo "$as_me:7243: \$? = $ac_status" >&5
7243 if (exit $ac_status) && test -s "$ac_outfile"; then
7244 # The compiler can only warn and ignore the option if not recognized
7245 # So say no if there are warnings other than the usual output.
7246 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7247 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7248 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7249 lt_cv_prog_compiler_rtti_exceptions=yes
7250 fi
7251 fi
7252 $rm conftest*
7253
7254 fi
7255 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7256 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7257
7258 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7259 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7260 else
7261 :
7262 fi
7263
7264 fi
7265
7266 lt_prog_compiler_wl=
7267 lt_prog_compiler_pic=
7268 lt_prog_compiler_static=
7269
7270 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7271 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7272
7273 if test "$GCC" = yes; then
7274 lt_prog_compiler_wl='-Wl,'
7275 lt_prog_compiler_static='-static'
7276
7277 case $host_os in
7278 aix*)
7279 # All AIX code is PIC.
7280 if test "$host_cpu" = ia64; then
7281 # AIX 5 now supports IA64 processor
7282 lt_prog_compiler_static='-Bstatic'
7283 fi
7284 ;;
7285
7286 amigaos*)
7287 # FIXME: we need at least 68020 code to build shared libraries, but
7288 # adding the `-m68020' flag to GCC prevents building anything better,
7289 # like `-m68040'.
7290 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7291 ;;
7292
7293 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7294 # PIC is the default for these OSes.
7295 ;;
7296
7297 mingw* | cygwin* | pw32* | os2*)
7298 # This hack is so that the source file can tell whether it is being
7299 # built for inclusion in a dll (and should export symbols for example).
7300 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7301 # (--disable-auto-import) libraries
7302 lt_prog_compiler_pic='-DDLL_EXPORT'
7303 ;;
7304
7305 darwin* | rhapsody*)
7306 # PIC is the default on this platform
7307 # Common symbols not allowed in MH_DYLIB files
7308 lt_prog_compiler_pic='-fno-common'
7309 ;;
7310
7311 interix[3-9]*)
7312 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7313 # Instead, we relocate shared libraries at runtime.
7314 ;;
7315
7316 msdosdjgpp*)
7317 # Just because we use GCC doesn't mean we suddenly get shared libraries
7318 # on systems that don't support them.
7319 lt_prog_compiler_can_build_shared=no
7320 enable_shared=no
7321 ;;
7322
7323 sysv4*MP*)
7324 if test -d /usr/nec; then
7325 lt_prog_compiler_pic=-Kconform_pic
7326 fi
7327 ;;
7328
7329 hpux*)
7330 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7331 # not for PA HP-UX.
7332 case $host_cpu in
7333 hppa*64*|ia64*)
7334 # +Z the default
7335 ;;
7336 *)
7337 lt_prog_compiler_pic='-fPIC'
7338 ;;
7339 esac
7340 ;;
7341
7342 *)
7343 lt_prog_compiler_pic='-fPIC'
7344 ;;
7345 esac
7346 else
7347 # PORTME Check for flag to pass linker flags through the system compiler.
7348 case $host_os in
7349 aix*)
7350 lt_prog_compiler_wl='-Wl,'
7351 if test "$host_cpu" = ia64; then
7352 # AIX 5 now supports IA64 processor
7353 lt_prog_compiler_static='-Bstatic'
7354 else
7355 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7356 fi
7357 ;;
7358 darwin*)
7359 # PIC is the default on this platform
7360 # Common symbols not allowed in MH_DYLIB files
7361 case $cc_basename in
7362 xlc*)
7363 lt_prog_compiler_pic='-qnocommon'
7364 lt_prog_compiler_wl='-Wl,'
7365 ;;
7366 esac
7367 ;;
7368
7369 mingw* | cygwin* | pw32* | os2*)
7370 # This hack is so that the source file can tell whether it is being
7371 # built for inclusion in a dll (and should export symbols for example).
7372 lt_prog_compiler_pic='-DDLL_EXPORT'
7373 ;;
7374
7375 hpux9* | hpux10* | hpux11*)
7376 lt_prog_compiler_wl='-Wl,'
7377 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7378 # not for PA HP-UX.
7379 case $host_cpu in
7380 hppa*64*|ia64*)
7381 # +Z the default
7382 ;;
7383 *)
7384 lt_prog_compiler_pic='+Z'
7385 ;;
7386 esac
7387 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7388 lt_prog_compiler_static='${wl}-a ${wl}archive'
7389 ;;
7390
7391 irix5* | irix6* | nonstopux*)
7392 lt_prog_compiler_wl='-Wl,'
7393 # PIC (with -KPIC) is the default.
7394 lt_prog_compiler_static='-non_shared'
7395 ;;
7396
7397 newsos6)
7398 lt_prog_compiler_pic='-KPIC'
7399 lt_prog_compiler_static='-Bstatic'
7400 ;;
7401
7402 linux* | k*bsd*-gnu)
7403 case $cc_basename in
7404 icc* | ecc*)
7405 lt_prog_compiler_wl='-Wl,'
7406 lt_prog_compiler_pic='-KPIC'
7407 lt_prog_compiler_static='-static'
7408 ;;
7409 pgcc* | pgf77* | pgf90* | pgf95*)
7410 # Portland Group compilers (*not* the Pentium gcc compiler,
7411 # which looks to be a dead project)
7412 lt_prog_compiler_wl='-Wl,'
7413 lt_prog_compiler_pic='-fpic'
7414 lt_prog_compiler_static='-Bstatic'
7415 ;;
7416 ccc*)
7417 lt_prog_compiler_wl='-Wl,'
7418 # All Alpha code is PIC.
7419 lt_prog_compiler_static='-non_shared'
7420 ;;
7421 *)
7422 case `$CC -V 2>&1 | sed 5q` in
7423 *Sun\ C*)
7424 # Sun C 5.9
7425 lt_prog_compiler_pic='-KPIC'
7426 lt_prog_compiler_static='-Bstatic'
7427 lt_prog_compiler_wl='-Wl,'
7428 ;;
7429 *Sun\ F*)
7430 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7431 lt_prog_compiler_pic='-KPIC'
7432 lt_prog_compiler_static='-Bstatic'
7433 lt_prog_compiler_wl=''
7434 ;;
7435 esac
7436 ;;
7437 esac
7438 ;;
7439
7440 osf3* | osf4* | osf5*)
7441 lt_prog_compiler_wl='-Wl,'
7442 # All OSF/1 code is PIC.
7443 lt_prog_compiler_static='-non_shared'
7444 ;;
7445
7446 rdos*)
7447 lt_prog_compiler_static='-non_shared'
7448 ;;
7449
7450 solaris*)
7451 lt_prog_compiler_pic='-KPIC'
7452 lt_prog_compiler_static='-Bstatic'
7453 case $cc_basename in
7454 f77* | f90* | f95*)
7455 lt_prog_compiler_wl='-Qoption ld ';;
7456 *)
7457 lt_prog_compiler_wl='-Wl,';;
7458 esac
7459 ;;
7460
7461 sunos4*)
7462 lt_prog_compiler_wl='-Qoption ld '
7463 lt_prog_compiler_pic='-PIC'
7464 lt_prog_compiler_static='-Bstatic'
7465 ;;
7466
7467 sysv4 | sysv4.2uw2* | sysv4.3*)
7468 lt_prog_compiler_wl='-Wl,'
7469 lt_prog_compiler_pic='-KPIC'
7470 lt_prog_compiler_static='-Bstatic'
7471 ;;
7472
7473 sysv4*MP*)
7474 if test -d /usr/nec ;then
7475 lt_prog_compiler_pic='-Kconform_pic'
7476 lt_prog_compiler_static='-Bstatic'
7477 fi
7478 ;;
7479
7480 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7481 lt_prog_compiler_wl='-Wl,'
7482 lt_prog_compiler_pic='-KPIC'
7483 lt_prog_compiler_static='-Bstatic'
7484 ;;
7485
7486 unicos*)
7487 lt_prog_compiler_wl='-Wl,'
7488 lt_prog_compiler_can_build_shared=no
7489 ;;
7490
7491 uts4*)
7492 lt_prog_compiler_pic='-pic'
7493 lt_prog_compiler_static='-Bstatic'
7494 ;;
7495
7496 *)
7497 lt_prog_compiler_can_build_shared=no
7498 ;;
7499 esac
7500 fi
7501
7502 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7503 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7504
7505 #
7506 # Check to make sure the PIC flag actually works.
7507 #
7508 if test -n "$lt_prog_compiler_pic"; then
7509
7510 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7511 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7512 if test "${lt_prog_compiler_pic_works+set}" = set; then
7513 echo $ECHO_N "(cached) $ECHO_C" >&6
7514 else
7515 lt_prog_compiler_pic_works=no
7516 ac_outfile=conftest.$ac_objext
7517 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7518 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7519 # Insert the option either (1) after the last *FLAGS variable, or
7520 # (2) before a word containing "conftest.", or (3) at the end.
7521 # Note that $ac_compile itself does not contain backslashes and begins
7522 # with a dollar sign (not a hyphen), so the echo should work correctly.
7523 # The option is referenced via a variable to avoid confusing sed.
7524 lt_compile=`echo "$ac_compile" | $SED \
7525 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7526 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7527 -e 's:$: $lt_compiler_flag:'`
7528 (eval echo "\"\$as_me:7529: $lt_compile\"" >&5)
7529 (eval "$lt_compile" 2>conftest.err)
7530 ac_status=$?
7531 cat conftest.err >&5
7532 echo "$as_me:7533: \$? = $ac_status" >&5
7533 if (exit $ac_status) && test -s "$ac_outfile"; then
7534 # The compiler can only warn and ignore the option if not recognized
7535 # So say no if there are warnings other than the usual output.
7536 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7537 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7538 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7539 lt_prog_compiler_pic_works=yes
7540 fi
7541 fi
7542 $rm conftest*
7543
7544 fi
7545 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7546 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7547
7548 if test x"$lt_prog_compiler_pic_works" = xyes; then
7549 case $lt_prog_compiler_pic in
7550 "" | " "*) ;;
7551 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7552 esac
7553 else
7554 lt_prog_compiler_pic=
7555 lt_prog_compiler_can_build_shared=no
7556 fi
7557
7558 fi
7559 case $host_os in
7560 # For platforms which do not support PIC, -DPIC is meaningless:
7561 *djgpp*)
7562 lt_prog_compiler_pic=
7563 ;;
7564 *)
7565 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7566 ;;
7567 esac
7568
7569 #
7570 # Check to make sure the static flag actually works.
7571 #
7572 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7573 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7574 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7575 if test "${lt_prog_compiler_static_works+set}" = set; then
7576 echo $ECHO_N "(cached) $ECHO_C" >&6
7577 else
7578 lt_prog_compiler_static_works=no
7579 save_LDFLAGS="$LDFLAGS"
7580 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7581 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7582 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7583 # The linker can only warn and ignore the option if not recognized
7584 # So say no if there are warnings
7585 if test -s conftest.err; then
7586 # Append any errors to the config.log.
7587 cat conftest.err 1>&5
7588 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7589 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7590 if diff conftest.exp conftest.er2 >/dev/null; then
7591 lt_prog_compiler_static_works=yes
7592 fi
7593 else
7594 lt_prog_compiler_static_works=yes
7595 fi
7596 fi
7597 $rm conftest*
7598 LDFLAGS="$save_LDFLAGS"
7599
7600 fi
7601 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7602 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7603
7604 if test x"$lt_prog_compiler_static_works" = xyes; then
7605 :
7606 else
7607 lt_prog_compiler_static=
7608 fi
7609
7610
7611 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7612 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7613 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7614 echo $ECHO_N "(cached) $ECHO_C" >&6
7615 else
7616 lt_cv_prog_compiler_c_o=no
7617 $rm -r conftest 2>/dev/null
7618 mkdir conftest
7619 cd conftest
7620 mkdir out
7621 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7622
7623 lt_compiler_flag="-o out/conftest2.$ac_objext"
7624 # Insert the option either (1) after the last *FLAGS variable, or
7625 # (2) before a word containing "conftest.", or (3) at the end.
7626 # Note that $ac_compile itself does not contain backslashes and begins
7627 # with a dollar sign (not a hyphen), so the echo should work correctly.
7628 lt_compile=`echo "$ac_compile" | $SED \
7629 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7630 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7631 -e 's:$: $lt_compiler_flag:'`
7632 (eval echo "\"\$as_me:7633: $lt_compile\"" >&5)
7633 (eval "$lt_compile" 2>out/conftest.err)
7634 ac_status=$?
7635 cat out/conftest.err >&5
7636 echo "$as_me:7637: \$? = $ac_status" >&5
7637 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7638 then
7639 # The compiler can only warn and ignore the option if not recognized
7640 # So say no if there are warnings
7641 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7642 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7643 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7644 lt_cv_prog_compiler_c_o=yes
7645 fi
7646 fi
7647 chmod u+w . 2>&5
7648 $rm conftest*
7649 # SGI C++ compiler will create directory out/ii_files/ for
7650 # template instantiation
7651 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7652 $rm out/* && rmdir out
7653 cd ..
7654 rmdir conftest
7655 $rm conftest*
7656
7657 fi
7658 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7659 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7660
7661
7662 hard_links="nottested"
7663 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7664 # do not overwrite the value of need_locks provided by the user
7665 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7666 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7667 hard_links=yes
7668 $rm conftest*
7669 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7670 touch conftest.a
7671 ln conftest.a conftest.b 2>&5 || hard_links=no
7672 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7673 { echo "$as_me:$LINENO: result: $hard_links" >&5
7674 echo "${ECHO_T}$hard_links" >&6; }
7675 if test "$hard_links" = no; then
7676 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7677 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7678 need_locks=warn
7679 fi
7680 else
7681 need_locks=no
7682 fi
7683
7684 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7685 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7686
7687 runpath_var=
7688 allow_undefined_flag=
7689 enable_shared_with_static_runtimes=no
7690 archive_cmds=
7691 archive_expsym_cmds=
7692 old_archive_From_new_cmds=
7693 old_archive_from_expsyms_cmds=
7694 export_dynamic_flag_spec=
7695 whole_archive_flag_spec=
7696 thread_safe_flag_spec=
7697 hardcode_libdir_flag_spec=
7698 hardcode_libdir_flag_spec_ld=
7699 hardcode_libdir_separator=
7700 hardcode_direct=no
7701 hardcode_minus_L=no
7702 hardcode_shlibpath_var=unsupported
7703 link_all_deplibs=unknown
7704 hardcode_automatic=no
7705 module_cmds=
7706 module_expsym_cmds=
7707 always_export_symbols=no
7708 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7709 # include_expsyms should be a list of space-separated symbols to be *always*
7710 # included in the symbol list
7711 include_expsyms=
7712 # exclude_expsyms can be an extended regexp of symbols to exclude
7713 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7714 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7715 # as well as any symbol that contains `d'.
7716 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7717 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7718 # platforms (ab)use it in PIC code, but their linkers get confused if
7719 # the symbol is explicitly referenced. Since portable code cannot
7720 # rely on this symbol name, it's probably fine to never include it in
7721 # preloaded symbol tables.
7722 extract_expsyms_cmds=
7723 # Just being paranoid about ensuring that cc_basename is set.
7724 for cc_temp in $compiler""; do
7725 case $cc_temp in
7726 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7727 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7728 \-*) ;;
7729 *) break;;
7730 esac
7731 done
7732 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7733
7734 case $host_os in
7735 cygwin* | mingw* | pw32*)
7736 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7737 # When not using gcc, we currently assume that we are using
7738 # Microsoft Visual C++.
7739 if test "$GCC" != yes; then
7740 with_gnu_ld=no
7741 fi
7742 ;;
7743 interix*)
7744 # we just hope/assume this is gcc and not c89 (= MSVC++)
7745 with_gnu_ld=yes
7746 ;;
7747 openbsd*)
7748 with_gnu_ld=no
7749 ;;
7750 esac
7751
7752 ld_shlibs=yes
7753 if test "$with_gnu_ld" = yes; then
7754 # If archive_cmds runs LD, not CC, wlarc should be empty
7755 wlarc='${wl}'
7756
7757 # Set some defaults for GNU ld with shared library support. These
7758 # are reset later if shared libraries are not supported. Putting them
7759 # here allows them to be overridden if necessary.
7760 runpath_var=LD_RUN_PATH
7761 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7762 export_dynamic_flag_spec='${wl}--export-dynamic'
7763 # ancient GNU ld didn't support --whole-archive et. al.
7764 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7765 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7766 else
7767 whole_archive_flag_spec=
7768 fi
7769 supports_anon_versioning=no
7770 case `$LD -v 2>/dev/null` in
7771 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7772 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7773 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7774 *\ 2.11.*) ;; # other 2.11 versions
7775 *) supports_anon_versioning=yes ;;
7776 esac
7777
7778 # See if GNU ld supports shared libraries.
7779 case $host_os in
7780 aix3* | aix4* | aix5*)
7781 # On AIX/PPC, the GNU linker is very broken
7782 if test "$host_cpu" != ia64; then
7783 ld_shlibs=no
7784 cat <<EOF 1>&2
7785
7786 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7787 *** to be unable to reliably create shared libraries on AIX.
7788 *** Therefore, libtool is disabling shared libraries support. If you
7789 *** really care for shared libraries, you may want to modify your PATH
7790 *** so that a non-GNU linker is found, and then restart.
7791
7792 EOF
7793 fi
7794 ;;
7795
7796 amigaos*)
7797 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)'
7798 hardcode_libdir_flag_spec='-L$libdir'
7799 hardcode_minus_L=yes
7800
7801 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7802 # that the semantics of dynamic libraries on AmigaOS, at least up
7803 # to version 4, is to share data among multiple programs linked
7804 # with the same dynamic library. Since this doesn't match the
7805 # behavior of shared libraries on other platforms, we can't use
7806 # them.
7807 ld_shlibs=no
7808 ;;
7809
7810 beos*)
7811 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7812 allow_undefined_flag=unsupported
7813 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7814 # support --undefined. This deserves some investigation. FIXME
7815 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7816 else
7817 ld_shlibs=no
7818 fi
7819 ;;
7820
7821 cygwin* | mingw* | pw32*)
7822 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7823 # as there is no search path for DLLs.
7824 hardcode_libdir_flag_spec='-L$libdir'
7825 allow_undefined_flag=unsupported
7826 always_export_symbols=no
7827 enable_shared_with_static_runtimes=yes
7828 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7829
7830 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7831 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7832 # If the export-symbols file already is a .def file (1st line
7833 # is EXPORTS), use it as is; otherwise, prepend...
7834 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7835 cp $export_symbols $output_objdir/$soname.def;
7836 else
7837 echo EXPORTS > $output_objdir/$soname.def;
7838 cat $export_symbols >> $output_objdir/$soname.def;
7839 fi~
7840 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7841 else
7842 ld_shlibs=no
7843 fi
7844 ;;
7845
7846 interix[3-9]*)
7847 hardcode_direct=no
7848 hardcode_shlibpath_var=no
7849 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7850 export_dynamic_flag_spec='${wl}-E'
7851 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7852 # Instead, shared libraries are loaded at an image base (0x10000000 by
7853 # default) and relocated if they conflict, which is a slow very memory
7854 # consuming and fragmenting process. To avoid this, we pick a random,
7855 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7856 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7857 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7858 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7859 ;;
7860
7861 gnu* | linux* | k*bsd*-gnu)
7862 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7863 tmp_addflag=
7864 case $cc_basename,$host_cpu in
7865 pgcc*) # Portland Group C compiler
7866 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7867 tmp_addflag=' $pic_flag'
7868 ;;
7869 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7870 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7871 tmp_addflag=' $pic_flag -Mnomain' ;;
7872 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7873 tmp_addflag=' -i_dynamic' ;;
7874 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7875 tmp_addflag=' -i_dynamic -nofor_main' ;;
7876 ifc* | ifort*) # Intel Fortran compiler
7877 tmp_addflag=' -nofor_main' ;;
7878 esac
7879 case `$CC -V 2>&1 | sed 5q` in
7880 *Sun\ C*) # Sun C 5.9
7881 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7882 tmp_sharedflag='-G' ;;
7883 *Sun\ F*) # Sun Fortran 8.3
7884 tmp_sharedflag='-G' ;;
7885 *)
7886 tmp_sharedflag='-shared' ;;
7887 esac
7888 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7889
7890 if test $supports_anon_versioning = yes; then
7891 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7892 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7893 $echo "local: *; };" >> $output_objdir/$libname.ver~
7894 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7895 fi
7896 else
7897 ld_shlibs=no
7898 fi
7899 ;;
7900
7901 netbsd*)
7902 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7903 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7904 wlarc=
7905 else
7906 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7907 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7908 fi
7909 ;;
7910
7911 solaris*)
7912 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7913 ld_shlibs=no
7914 cat <<EOF 1>&2
7915
7916 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7917 *** create shared libraries on Solaris systems. Therefore, libtool
7918 *** is disabling shared libraries support. We urge you to upgrade GNU
7919 *** binutils to release 2.9.1 or newer. Another option is to modify
7920 *** your PATH or compiler configuration so that the native linker is
7921 *** used, and then restart.
7922
7923 EOF
7924 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7925 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7926 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7927 else
7928 ld_shlibs=no
7929 fi
7930 ;;
7931
7932 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7933 case `$LD -v 2>&1` in
7934 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7935 ld_shlibs=no
7936 cat <<_LT_EOF 1>&2
7937
7938 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7939 *** reliably create shared libraries on SCO systems. Therefore, libtool
7940 *** is disabling shared libraries support. We urge you to upgrade GNU
7941 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7942 *** your PATH or compiler configuration so that the native linker is
7943 *** used, and then restart.
7944
7945 _LT_EOF
7946 ;;
7947 *)
7948 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7949 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7950 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7951 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7952 else
7953 ld_shlibs=no
7954 fi
7955 ;;
7956 esac
7957 ;;
7958
7959 sunos4*)
7960 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7961 wlarc=
7962 hardcode_direct=yes
7963 hardcode_shlibpath_var=no
7964 ;;
7965
7966 *)
7967 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7968 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7969 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7970 else
7971 ld_shlibs=no
7972 fi
7973 ;;
7974 esac
7975
7976 if test "$ld_shlibs" = no; then
7977 runpath_var=
7978 hardcode_libdir_flag_spec=
7979 export_dynamic_flag_spec=
7980 whole_archive_flag_spec=
7981 fi
7982 else
7983 # PORTME fill in a description of your system's linker (not GNU ld)
7984 case $host_os in
7985 aix3*)
7986 allow_undefined_flag=unsupported
7987 always_export_symbols=yes
7988 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'
7989 # Note: this linker hardcodes the directories in LIBPATH if there
7990 # are no directories specified by -L.
7991 hardcode_minus_L=yes
7992 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7993 # Neither direct hardcoding nor static linking is supported with a
7994 # broken collect2.
7995 hardcode_direct=unsupported
7996 fi
7997 ;;
7998
7999 aix4* | aix5*)
8000 if test "$host_cpu" = ia64; then
8001 # On IA64, the linker does run time linking by default, so we don't
8002 # have to do anything special.
8003 aix_use_runtimelinking=no
8004 exp_sym_flag='-Bexport'
8005 no_entry_flag=""
8006 else
8007 # If we're using GNU nm, then we don't want the "-C" option.
8008 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8009 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8010 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'
8011 else
8012 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'
8013 fi
8014 aix_use_runtimelinking=no
8015
8016 # Test if we are trying to use run time linking or normal
8017 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8018 # need to do runtime linking.
8019 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8020 for ld_flag in $LDFLAGS; do
8021 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8022 aix_use_runtimelinking=yes
8023 break
8024 fi
8025 done
8026 ;;
8027 esac
8028
8029 exp_sym_flag='-bexport'
8030 no_entry_flag='-bnoentry'
8031 fi
8032
8033 # When large executables or shared objects are built, AIX ld can
8034 # have problems creating the table of contents. If linking a library
8035 # or program results in "error TOC overflow" add -mminimal-toc to
8036 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8037 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8038
8039 archive_cmds=''
8040 hardcode_direct=yes
8041 hardcode_libdir_separator=':'
8042 link_all_deplibs=yes
8043
8044 if test "$GCC" = yes; then
8045 case $host_os in aix4.[012]|aix4.[012].*)
8046 # We only want to do this on AIX 4.2 and lower, the check
8047 # below for broken collect2 doesn't work under 4.3+
8048 collect2name=`${CC} -print-prog-name=collect2`
8049 if test -f "$collect2name" && \
8050 strings "$collect2name" | grep resolve_lib_name >/dev/null
8051 then
8052 # We have reworked collect2
8053 :
8054 else
8055 # We have old collect2
8056 hardcode_direct=unsupported
8057 # It fails to find uninstalled libraries when the uninstalled
8058 # path is not listed in the libpath. Setting hardcode_minus_L
8059 # to unsupported forces relinking
8060 hardcode_minus_L=yes
8061 hardcode_libdir_flag_spec='-L$libdir'
8062 hardcode_libdir_separator=
8063 fi
8064 ;;
8065 esac
8066 shared_flag='-shared'
8067 if test "$aix_use_runtimelinking" = yes; then
8068 shared_flag="$shared_flag "'${wl}-G'
8069 fi
8070 else
8071 # not using gcc
8072 if test "$host_cpu" = ia64; then
8073 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8074 # chokes on -Wl,-G. The following line is correct:
8075 shared_flag='-G'
8076 else
8077 if test "$aix_use_runtimelinking" = yes; then
8078 shared_flag='${wl}-G'
8079 else
8080 shared_flag='${wl}-bM:SRE'
8081 fi
8082 fi
8083 fi
8084
8085 # It seems that -bexpall does not export symbols beginning with
8086 # underscore (_), so it is better to generate a list of symbols to export.
8087 always_export_symbols=yes
8088 if test "$aix_use_runtimelinking" = yes; then
8089 # Warning - without using the other runtime loading flags (-brtl),
8090 # -berok will link without error, but may produce a broken library.
8091 allow_undefined_flag='-berok'
8092 # Determine the default libpath from the value encoded in an empty executable.
8093 cat >conftest.$ac_ext <<_ACEOF
8094 /* confdefs.h. */
8095 _ACEOF
8096 cat confdefs.h >>conftest.$ac_ext
8097 cat >>conftest.$ac_ext <<_ACEOF
8098 /* end confdefs.h. */
8099
8100 int
8101 main ()
8102 {
8103
8104 ;
8105 return 0;
8106 }
8107 _ACEOF
8108 rm -f conftest.$ac_objext conftest$ac_exeext
8109 if { (ac_try="$ac_link"
8110 case "(($ac_try" in
8111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8112 *) ac_try_echo=$ac_try;;
8113 esac
8114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8115 (eval "$ac_link") 2>conftest.er1
8116 ac_status=$?
8117 grep -v '^ *+' conftest.er1 >conftest.err
8118 rm -f conftest.er1
8119 cat conftest.err >&5
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); } && {
8122 test -z "$ac_c_werror_flag" ||
8123 test ! -s conftest.err
8124 } && test -s conftest$ac_exeext &&
8125 $as_test_x conftest$ac_exeext; then
8126
8127 lt_aix_libpath_sed='
8128 /Import File Strings/,/^$/ {
8129 /^0/ {
8130 s/^0 *\(.*\)$/\1/
8131 p
8132 }
8133 }'
8134 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8135 # Check for a 64-bit object if we didn't find anything.
8136 if test -z "$aix_libpath"; then
8137 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8138 fi
8139 else
8140 echo "$as_me: failed program was:" >&5
8141 sed 's/^/| /' conftest.$ac_ext >&5
8142
8143
8144 fi
8145
8146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8147 conftest$ac_exeext conftest.$ac_ext
8148 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8149
8150 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8151 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8152 else
8153 if test "$host_cpu" = ia64; then
8154 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8155 allow_undefined_flag="-z nodefs"
8156 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8157 else
8158 # Determine the default libpath from the value encoded in an empty executable.
8159 cat >conftest.$ac_ext <<_ACEOF
8160 /* confdefs.h. */
8161 _ACEOF
8162 cat confdefs.h >>conftest.$ac_ext
8163 cat >>conftest.$ac_ext <<_ACEOF
8164 /* end confdefs.h. */
8165
8166 int
8167 main ()
8168 {
8169
8170 ;
8171 return 0;
8172 }
8173 _ACEOF
8174 rm -f conftest.$ac_objext conftest$ac_exeext
8175 if { (ac_try="$ac_link"
8176 case "(($ac_try" in
8177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8178 *) ac_try_echo=$ac_try;;
8179 esac
8180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8181 (eval "$ac_link") 2>conftest.er1
8182 ac_status=$?
8183 grep -v '^ *+' conftest.er1 >conftest.err
8184 rm -f conftest.er1
8185 cat conftest.err >&5
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); } && {
8188 test -z "$ac_c_werror_flag" ||
8189 test ! -s conftest.err
8190 } && test -s conftest$ac_exeext &&
8191 $as_test_x conftest$ac_exeext; then
8192
8193 lt_aix_libpath_sed='
8194 /Import File Strings/,/^$/ {
8195 /^0/ {
8196 s/^0 *\(.*\)$/\1/
8197 p
8198 }
8199 }'
8200 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8201 # Check for a 64-bit object if we didn't find anything.
8202 if test -z "$aix_libpath"; then
8203 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8204 fi
8205 else
8206 echo "$as_me: failed program was:" >&5
8207 sed 's/^/| /' conftest.$ac_ext >&5
8208
8209
8210 fi
8211
8212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8213 conftest$ac_exeext conftest.$ac_ext
8214 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8215
8216 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8217 # Warning - without using the other run time loading flags,
8218 # -berok will link without error, but may produce a broken library.
8219 no_undefined_flag=' ${wl}-bernotok'
8220 allow_undefined_flag=' ${wl}-berok'
8221 # Exported symbols can be pulled into shared objects from archives
8222 whole_archive_flag_spec='$convenience'
8223 archive_cmds_need_lc=yes
8224 # This is similar to how AIX traditionally builds its shared libraries.
8225 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8226 fi
8227 fi
8228 ;;
8229
8230 amigaos*)
8231 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)'
8232 hardcode_libdir_flag_spec='-L$libdir'
8233 hardcode_minus_L=yes
8234 # see comment about different semantics on the GNU ld section
8235 ld_shlibs=no
8236 ;;
8237
8238 bsdi[45]*)
8239 export_dynamic_flag_spec=-rdynamic
8240 ;;
8241
8242 cygwin* | mingw* | pw32*)
8243 # When not using gcc, we currently assume that we are using
8244 # Microsoft Visual C++.
8245 # hardcode_libdir_flag_spec is actually meaningless, as there is
8246 # no search path for DLLs.
8247 hardcode_libdir_flag_spec=' '
8248 allow_undefined_flag=unsupported
8249 # Tell ltmain to make .lib files, not .a files.
8250 libext=lib
8251 # Tell ltmain to make .dll files, not .so files.
8252 shrext_cmds=".dll"
8253 # FIXME: Setting linknames here is a bad hack.
8254 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8255 # The linker will automatically build a .lib file if we build a DLL.
8256 old_archive_From_new_cmds='true'
8257 # FIXME: Should let the user specify the lib program.
8258 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8259 fix_srcfile_path='`cygpath -w "$srcfile"`'
8260 enable_shared_with_static_runtimes=yes
8261 ;;
8262
8263 darwin* | rhapsody*)
8264 case $host_os in
8265 rhapsody* | darwin1.[012])
8266 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8267 ;;
8268 *) # Darwin 1.3 on
8269 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8270 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8271 else
8272 case ${MACOSX_DEPLOYMENT_TARGET} in
8273 10.[012])
8274 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8275 ;;
8276 10.*)
8277 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8278 ;;
8279 esac
8280 fi
8281 ;;
8282 esac
8283 archive_cmds_need_lc=no
8284 hardcode_direct=no
8285 hardcode_automatic=yes
8286 hardcode_shlibpath_var=unsupported
8287 whole_archive_flag_spec=''
8288 link_all_deplibs=yes
8289 if test "$GCC" = yes ; then
8290 output_verbose_link_cmd='echo'
8291 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8292 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8293 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8294 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}'
8295 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}'
8296 else
8297 case $cc_basename in
8298 xlc*)
8299 output_verbose_link_cmd='echo'
8300 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8301 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8302 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8303 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8304 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}'
8305 ;;
8306 *)
8307 ld_shlibs=no
8308 ;;
8309 esac
8310 fi
8311 ;;
8312
8313 dgux*)
8314 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8315 hardcode_libdir_flag_spec='-L$libdir'
8316 hardcode_shlibpath_var=no
8317 ;;
8318
8319 freebsd1*)
8320 ld_shlibs=no
8321 ;;
8322
8323 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8324 # support. Future versions do this automatically, but an explicit c++rt0.o
8325 # does not break anything, and helps significantly (at the cost of a little
8326 # extra space).
8327 freebsd2.2*)
8328 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8329 hardcode_libdir_flag_spec='-R$libdir'
8330 hardcode_direct=yes
8331 hardcode_shlibpath_var=no
8332 ;;
8333
8334 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8335 freebsd2*)
8336 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8337 hardcode_direct=yes
8338 hardcode_minus_L=yes
8339 hardcode_shlibpath_var=no
8340 ;;
8341
8342 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8343 freebsd* | dragonfly*)
8344 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8345 hardcode_libdir_flag_spec='-R$libdir'
8346 hardcode_direct=yes
8347 hardcode_shlibpath_var=no
8348 ;;
8349
8350 hpux9*)
8351 if test "$GCC" = yes; then
8352 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'
8353 else
8354 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'
8355 fi
8356 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8357 hardcode_libdir_separator=:
8358 hardcode_direct=yes
8359
8360 # hardcode_minus_L: Not really in the search PATH,
8361 # but as the default location of the library.
8362 hardcode_minus_L=yes
8363 export_dynamic_flag_spec='${wl}-E'
8364 ;;
8365
8366 hpux10*)
8367 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8368 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8369 else
8370 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8371 fi
8372 if test "$with_gnu_ld" = no; then
8373 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8374 hardcode_libdir_separator=:
8375
8376 hardcode_direct=yes
8377 export_dynamic_flag_spec='${wl}-E'
8378
8379 # hardcode_minus_L: Not really in the search PATH,
8380 # but as the default location of the library.
8381 hardcode_minus_L=yes
8382 fi
8383 ;;
8384
8385 hpux11*)
8386 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8387 case $host_cpu in
8388 hppa*64*)
8389 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8390 ;;
8391 ia64*)
8392 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8393 ;;
8394 *)
8395 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8396 ;;
8397 esac
8398 else
8399 case $host_cpu in
8400 hppa*64*)
8401 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8402 ;;
8403 ia64*)
8404 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8405 ;;
8406 *)
8407 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8408 ;;
8409 esac
8410 fi
8411 if test "$with_gnu_ld" = no; then
8412 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8413 hardcode_libdir_separator=:
8414
8415 case $host_cpu in
8416 hppa*64*|ia64*)
8417 hardcode_libdir_flag_spec_ld='+b $libdir'
8418 hardcode_direct=no
8419 hardcode_shlibpath_var=no
8420 ;;
8421 *)
8422 hardcode_direct=yes
8423 export_dynamic_flag_spec='${wl}-E'
8424
8425 # hardcode_minus_L: Not really in the search PATH,
8426 # but as the default location of the library.
8427 hardcode_minus_L=yes
8428 ;;
8429 esac
8430 fi
8431 ;;
8432
8433 irix5* | irix6* | nonstopux*)
8434 if test "$GCC" = yes; then
8435 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'
8436 else
8437 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'
8438 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8439 fi
8440 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8441 hardcode_libdir_separator=:
8442 link_all_deplibs=yes
8443 ;;
8444
8445 netbsd*)
8446 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8447 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8448 else
8449 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8450 fi
8451 hardcode_libdir_flag_spec='-R$libdir'
8452 hardcode_direct=yes
8453 hardcode_shlibpath_var=no
8454 ;;
8455
8456 newsos6)
8457 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8458 hardcode_direct=yes
8459 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8460 hardcode_libdir_separator=:
8461 hardcode_shlibpath_var=no
8462 ;;
8463
8464 openbsd*)
8465 if test -f /usr/libexec/ld.so; then
8466 hardcode_direct=yes
8467 hardcode_shlibpath_var=no
8468 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8469 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8470 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8471 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8472 export_dynamic_flag_spec='${wl}-E'
8473 else
8474 case $host_os in
8475 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8476 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8477 hardcode_libdir_flag_spec='-R$libdir'
8478 ;;
8479 *)
8480 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8481 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8482 ;;
8483 esac
8484 fi
8485 else
8486 ld_shlibs=no
8487 fi
8488 ;;
8489
8490 os2*)
8491 hardcode_libdir_flag_spec='-L$libdir'
8492 hardcode_minus_L=yes
8493 allow_undefined_flag=unsupported
8494 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'
8495 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8496 ;;
8497
8498 osf3*)
8499 if test "$GCC" = yes; then
8500 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8501 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'
8502 else
8503 allow_undefined_flag=' -expect_unresolved \*'
8504 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'
8505 fi
8506 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8507 hardcode_libdir_separator=:
8508 ;;
8509
8510 osf4* | osf5*) # as osf3* with the addition of -msym flag
8511 if test "$GCC" = yes; then
8512 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8513 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'
8514 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8515 else
8516 allow_undefined_flag=' -expect_unresolved \*'
8517 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'
8518 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8519 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8520
8521 # Both c and cxx compiler support -rpath directly
8522 hardcode_libdir_flag_spec='-rpath $libdir'
8523 fi
8524 hardcode_libdir_separator=:
8525 ;;
8526
8527 solaris*)
8528 no_undefined_flag=' -z text'
8529 if test "$GCC" = yes; then
8530 wlarc='${wl}'
8531 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8532 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8533 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8534 else
8535 wlarc=''
8536 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8537 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8538 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8539 fi
8540 hardcode_libdir_flag_spec='-R$libdir'
8541 hardcode_shlibpath_var=no
8542 case $host_os in
8543 solaris2.[0-5] | solaris2.[0-5].*) ;;
8544 *)
8545 # The compiler driver will combine and reorder linker options,
8546 # but understands `-z linker_flag'. GCC discards it without `$wl',
8547 # but is careful enough not to reorder.
8548 # Supported since Solaris 2.6 (maybe 2.5.1?)
8549 if test "$GCC" = yes; then
8550 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8551 else
8552 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8553 fi
8554 ;;
8555 esac
8556 link_all_deplibs=yes
8557 ;;
8558
8559 sunos4*)
8560 if test "x$host_vendor" = xsequent; then
8561 # Use $CC to link under sequent, because it throws in some extra .o
8562 # files that make .init and .fini sections work.
8563 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8564 else
8565 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8566 fi
8567 hardcode_libdir_flag_spec='-L$libdir'
8568 hardcode_direct=yes
8569 hardcode_minus_L=yes
8570 hardcode_shlibpath_var=no
8571 ;;
8572
8573 sysv4)
8574 case $host_vendor in
8575 sni)
8576 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8577 hardcode_direct=yes # is this really true???
8578 ;;
8579 siemens)
8580 ## LD is ld it makes a PLAMLIB
8581 ## CC just makes a GrossModule.
8582 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8583 reload_cmds='$CC -r -o $output$reload_objs'
8584 hardcode_direct=no
8585 ;;
8586 motorola)
8587 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8588 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8589 ;;
8590 esac
8591 runpath_var='LD_RUN_PATH'
8592 hardcode_shlibpath_var=no
8593 ;;
8594
8595 sysv4.3*)
8596 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8597 hardcode_shlibpath_var=no
8598 export_dynamic_flag_spec='-Bexport'
8599 ;;
8600
8601 sysv4*MP*)
8602 if test -d /usr/nec; then
8603 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8604 hardcode_shlibpath_var=no
8605 runpath_var=LD_RUN_PATH
8606 hardcode_runpath_var=yes
8607 ld_shlibs=yes
8608 fi
8609 ;;
8610
8611 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8612 no_undefined_flag='${wl}-z,text'
8613 archive_cmds_need_lc=no
8614 hardcode_shlibpath_var=no
8615 runpath_var='LD_RUN_PATH'
8616
8617 if test "$GCC" = yes; then
8618 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8619 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8620 else
8621 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8622 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8623 fi
8624 ;;
8625
8626 sysv5* | sco3.2v5* | sco5v6*)
8627 # Note: We can NOT use -z defs as we might desire, because we do not
8628 # link with -lc, and that would cause any symbols used from libc to
8629 # always be unresolved, which means just about no library would
8630 # ever link correctly. If we're not using GNU ld we use -z text
8631 # though, which does catch some bad symbols but isn't as heavy-handed
8632 # as -z defs.
8633 no_undefined_flag='${wl}-z,text'
8634 allow_undefined_flag='${wl}-z,nodefs'
8635 archive_cmds_need_lc=no
8636 hardcode_shlibpath_var=no
8637 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8638 hardcode_libdir_separator=':'
8639 link_all_deplibs=yes
8640 export_dynamic_flag_spec='${wl}-Bexport'
8641 runpath_var='LD_RUN_PATH'
8642
8643 if test "$GCC" = yes; then
8644 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8645 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8646 else
8647 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8648 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8649 fi
8650 ;;
8651
8652 uts4*)
8653 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8654 hardcode_libdir_flag_spec='-L$libdir'
8655 hardcode_shlibpath_var=no
8656 ;;
8657
8658 *)
8659 ld_shlibs=no
8660 ;;
8661 esac
8662 fi
8663
8664 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8665 echo "${ECHO_T}$ld_shlibs" >&6; }
8666 test "$ld_shlibs" = no && can_build_shared=no
8667
8668 #
8669 # Do we need to explicitly link libc?
8670 #
8671 case "x$archive_cmds_need_lc" in
8672 x|xyes)
8673 # Assume -lc should be added
8674 archive_cmds_need_lc=yes
8675
8676 if test "$enable_shared" = yes && test "$GCC" = yes; then
8677 case $archive_cmds in
8678 *'~'*)
8679 # FIXME: we may have to deal with multi-command sequences.
8680 ;;
8681 '$CC '*)
8682 # Test whether the compiler implicitly links with -lc since on some
8683 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8684 # to ld, don't add -lc before -lgcc.
8685 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8686 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8687 $rm conftest*
8688 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8689
8690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8691 (eval $ac_compile) 2>&5
8692 ac_status=$?
8693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694 (exit $ac_status); } 2>conftest.err; then
8695 soname=conftest
8696 lib=conftest
8697 libobjs=conftest.$ac_objext
8698 deplibs=
8699 wl=$lt_prog_compiler_wl
8700 pic_flag=$lt_prog_compiler_pic
8701 compiler_flags=-v
8702 linker_flags=-v
8703 verstring=
8704 output_objdir=.
8705 libname=conftest
8706 lt_save_allow_undefined_flag=$allow_undefined_flag
8707 allow_undefined_flag=
8708 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8709 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8710 ac_status=$?
8711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712 (exit $ac_status); }
8713 then
8714 archive_cmds_need_lc=no
8715 else
8716 archive_cmds_need_lc=yes
8717 fi
8718 allow_undefined_flag=$lt_save_allow_undefined_flag
8719 else
8720 cat conftest.err 1>&5
8721 fi
8722 $rm conftest*
8723 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8724 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8725 ;;
8726 esac
8727 fi
8728 ;;
8729 esac
8730
8731 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8732 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8733 library_names_spec=
8734 libname_spec='lib$name'
8735 soname_spec=
8736 shrext_cmds=".so"
8737 postinstall_cmds=
8738 postuninstall_cmds=
8739 finish_cmds=
8740 finish_eval=
8741 shlibpath_var=
8742 shlibpath_overrides_runpath=unknown
8743 version_type=none
8744 dynamic_linker="$host_os ld.so"
8745 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8746
8747 if test "$GCC" = yes; then
8748 case $host_os in
8749 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8750 *) lt_awk_arg="/^libraries:/" ;;
8751 esac
8752 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8753 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8754 # if the path contains ";" then we assume it to be the separator
8755 # otherwise default to the standard path separator (i.e. ":") - it is
8756 # assumed that no part of a normal pathname contains ";" but that should
8757 # okay in the real world where ";" in dirpaths is itself problematic.
8758 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8759 else
8760 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8761 fi
8762 # Ok, now we have the path, separated by spaces, we can step through it
8763 # and add multilib dir if necessary.
8764 lt_tmp_lt_search_path_spec=
8765 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8766 for lt_sys_path in $lt_search_path_spec; do
8767 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8768 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8769 else
8770 test -d "$lt_sys_path" && \
8771 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8772 fi
8773 done
8774 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8775 BEGIN {RS=" "; FS="/|\n";} {
8776 lt_foo="";
8777 lt_count=0;
8778 for (lt_i = NF; lt_i > 0; lt_i--) {
8779 if ($lt_i != "" && $lt_i != ".") {
8780 if ($lt_i == "..") {
8781 lt_count++;
8782 } else {
8783 if (lt_count == 0) {
8784 lt_foo="/" $lt_i lt_foo;
8785 } else {
8786 lt_count--;
8787 }
8788 }
8789 }
8790 }
8791 if (lt_foo != "") { lt_freq[lt_foo]++; }
8792 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8793 }'`
8794 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8795 else
8796 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8797 fi
8798 need_lib_prefix=unknown
8799 hardcode_into_libs=no
8800
8801 # when you set need_version to no, make sure it does not cause -set_version
8802 # flags to be left without arguments
8803 need_version=unknown
8804
8805 case $host_os in
8806 aix3*)
8807 version_type=linux
8808 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8809 shlibpath_var=LIBPATH
8810
8811 # AIX 3 has no versioning support, so we append a major version to the name.
8812 soname_spec='${libname}${release}${shared_ext}$major'
8813 ;;
8814
8815 aix4* | aix5*)
8816 version_type=linux
8817 need_lib_prefix=no
8818 need_version=no
8819 hardcode_into_libs=yes
8820 if test "$host_cpu" = ia64; then
8821 # AIX 5 supports IA64
8822 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8823 shlibpath_var=LD_LIBRARY_PATH
8824 else
8825 # With GCC up to 2.95.x, collect2 would create an import file
8826 # for dependence libraries. The import file would start with
8827 # the line `#! .'. This would cause the generated library to
8828 # depend on `.', always an invalid library. This was fixed in
8829 # development snapshots of GCC prior to 3.0.
8830 case $host_os in
8831 aix4 | aix4.[01] | aix4.[01].*)
8832 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8833 echo ' yes '
8834 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8835 :
8836 else
8837 can_build_shared=no
8838 fi
8839 ;;
8840 esac
8841 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8842 # soname into executable. Probably we can add versioning support to
8843 # collect2, so additional links can be useful in future.
8844 if test "$aix_use_runtimelinking" = yes; then
8845 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8846 # instead of lib<name>.a to let people know that these are not
8847 # typical AIX shared libraries.
8848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8849 else
8850 # We preserve .a as extension for shared libraries through AIX4.2
8851 # and later when we are not doing run time linking.
8852 library_names_spec='${libname}${release}.a $libname.a'
8853 soname_spec='${libname}${release}${shared_ext}$major'
8854 fi
8855 shlibpath_var=LIBPATH
8856 fi
8857 ;;
8858
8859 amigaos*)
8860 library_names_spec='$libname.ixlibrary $libname.a'
8861 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8862 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'
8863 ;;
8864
8865 beos*)
8866 library_names_spec='${libname}${shared_ext}'
8867 dynamic_linker="$host_os ld.so"
8868 shlibpath_var=LIBRARY_PATH
8869 ;;
8870
8871 bsdi[45]*)
8872 version_type=linux
8873 need_version=no
8874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8875 soname_spec='${libname}${release}${shared_ext}$major'
8876 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8877 shlibpath_var=LD_LIBRARY_PATH
8878 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8879 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8880 # the default ld.so.conf also contains /usr/contrib/lib and
8881 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8882 # libtool to hard-code these into programs
8883 ;;
8884
8885 cygwin* | mingw* | pw32*)
8886 version_type=windows
8887 shrext_cmds=".dll"
8888 need_version=no
8889 need_lib_prefix=no
8890
8891 case $GCC,$host_os in
8892 yes,cygwin* | yes,mingw* | yes,pw32*)
8893 library_names_spec='$libname.dll.a'
8894 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8895 postinstall_cmds='base_file=`basename \${file}`~
8896 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8897 dldir=$destdir/`dirname \$dlpath`~
8898 test -d \$dldir || mkdir -p \$dldir~
8899 $install_prog $dir/$dlname \$dldir/$dlname~
8900 chmod a+x \$dldir/$dlname'
8901 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8902 dlpath=$dir/\$dldll~
8903 $rm \$dlpath'
8904 shlibpath_overrides_runpath=yes
8905
8906 case $host_os in
8907 cygwin*)
8908 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8909 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8910 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8911 ;;
8912 mingw*)
8913 # MinGW DLLs use traditional 'lib' prefix
8914 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8915 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8916 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8917 # It is most probably a Windows format PATH printed by
8918 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8919 # path with ; separators, and with drive letters. We can handle the
8920 # drive letters (cygwin fileutils understands them), so leave them,
8921 # especially as we might pass files found there to a mingw objdump,
8922 # which wouldn't understand a cygwinified path. Ahh.
8923 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8924 else
8925 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8926 fi
8927 ;;
8928 pw32*)
8929 # pw32 DLLs use 'pw' prefix rather than 'lib'
8930 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8931 ;;
8932 esac
8933 ;;
8934
8935 *)
8936 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8937 ;;
8938 esac
8939 dynamic_linker='Win32 ld.exe'
8940 # FIXME: first we should search . and the directory the executable is in
8941 shlibpath_var=PATH
8942 ;;
8943
8944 darwin* | rhapsody*)
8945 dynamic_linker="$host_os dyld"
8946 version_type=darwin
8947 need_lib_prefix=no
8948 need_version=no
8949 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8950 soname_spec='${libname}${release}${major}$shared_ext'
8951 shlibpath_overrides_runpath=yes
8952 shlibpath_var=DYLD_LIBRARY_PATH
8953 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8954
8955 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8956 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8957 ;;
8958
8959 dgux*)
8960 version_type=linux
8961 need_lib_prefix=no
8962 need_version=no
8963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8964 soname_spec='${libname}${release}${shared_ext}$major'
8965 shlibpath_var=LD_LIBRARY_PATH
8966 ;;
8967
8968 freebsd1*)
8969 dynamic_linker=no
8970 ;;
8971
8972 freebsd* | dragonfly*)
8973 # DragonFly does not have aout. When/if they implement a new
8974 # versioning mechanism, adjust this.
8975 if test -x /usr/bin/objformat; then
8976 objformat=`/usr/bin/objformat`
8977 else
8978 case $host_os in
8979 freebsd[123]*) objformat=aout ;;
8980 *) objformat=elf ;;
8981 esac
8982 fi
8983 version_type=freebsd-$objformat
8984 case $version_type in
8985 freebsd-elf*)
8986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8987 need_version=no
8988 need_lib_prefix=no
8989 ;;
8990 freebsd-*)
8991 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8992 need_version=yes
8993 ;;
8994 esac
8995 shlibpath_var=LD_LIBRARY_PATH
8996 case $host_os in
8997 freebsd2*)
8998 shlibpath_overrides_runpath=yes
8999 ;;
9000 freebsd3.[01]* | freebsdelf3.[01]*)
9001 shlibpath_overrides_runpath=yes
9002 hardcode_into_libs=yes
9003 ;;
9004 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9005 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9006 shlibpath_overrides_runpath=no
9007 hardcode_into_libs=yes
9008 ;;
9009 *) # from 4.6 on, and DragonFly
9010 shlibpath_overrides_runpath=yes
9011 hardcode_into_libs=yes
9012 ;;
9013 esac
9014 ;;
9015
9016 gnu*)
9017 version_type=linux
9018 need_lib_prefix=no
9019 need_version=no
9020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9021 soname_spec='${libname}${release}${shared_ext}$major'
9022 shlibpath_var=LD_LIBRARY_PATH
9023 hardcode_into_libs=yes
9024 ;;
9025
9026 hpux9* | hpux10* | hpux11*)
9027 # Give a soname corresponding to the major version so that dld.sl refuses to
9028 # link against other versions.
9029 version_type=sunos
9030 need_lib_prefix=no
9031 need_version=no
9032 case $host_cpu in
9033 ia64*)
9034 shrext_cmds='.so'
9035 hardcode_into_libs=yes
9036 dynamic_linker="$host_os dld.so"
9037 shlibpath_var=LD_LIBRARY_PATH
9038 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9040 soname_spec='${libname}${release}${shared_ext}$major'
9041 if test "X$HPUX_IA64_MODE" = X32; then
9042 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9043 else
9044 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9045 fi
9046 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9047 ;;
9048 hppa*64*)
9049 shrext_cmds='.sl'
9050 hardcode_into_libs=yes
9051 dynamic_linker="$host_os dld.sl"
9052 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9053 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9055 soname_spec='${libname}${release}${shared_ext}$major'
9056 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9057 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9058 ;;
9059 *)
9060 shrext_cmds='.sl'
9061 dynamic_linker="$host_os dld.sl"
9062 shlibpath_var=SHLIB_PATH
9063 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9065 soname_spec='${libname}${release}${shared_ext}$major'
9066 ;;
9067 esac
9068 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9069 postinstall_cmds='chmod 555 $lib'
9070 ;;
9071
9072 interix[3-9]*)
9073 version_type=linux
9074 need_lib_prefix=no
9075 need_version=no
9076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9077 soname_spec='${libname}${release}${shared_ext}$major'
9078 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9079 shlibpath_var=LD_LIBRARY_PATH
9080 shlibpath_overrides_runpath=no
9081 hardcode_into_libs=yes
9082 ;;
9083
9084 irix5* | irix6* | nonstopux*)
9085 case $host_os in
9086 nonstopux*) version_type=nonstopux ;;
9087 *)
9088 if test "$lt_cv_prog_gnu_ld" = yes; then
9089 version_type=linux
9090 else
9091 version_type=irix
9092 fi ;;
9093 esac
9094 need_lib_prefix=no
9095 need_version=no
9096 soname_spec='${libname}${release}${shared_ext}$major'
9097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9098 case $host_os in
9099 irix5* | nonstopux*)
9100 libsuff= shlibsuff=
9101 ;;
9102 *)
9103 case $LD in # libtool.m4 will add one of these switches to LD
9104 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9105 libsuff= shlibsuff= libmagic=32-bit;;
9106 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9107 libsuff=32 shlibsuff=N32 libmagic=N32;;
9108 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9109 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9110 *) libsuff= shlibsuff= libmagic=never-match;;
9111 esac
9112 ;;
9113 esac
9114 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9115 shlibpath_overrides_runpath=no
9116 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9117 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9118 hardcode_into_libs=yes
9119 ;;
9120
9121 # No shared lib support for Linux oldld, aout, or coff.
9122 linux*oldld* | linux*aout* | linux*coff*)
9123 dynamic_linker=no
9124 ;;
9125
9126 # This must be Linux ELF.
9127 linux* | k*bsd*-gnu)
9128 version_type=linux
9129 need_lib_prefix=no
9130 need_version=no
9131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9132 soname_spec='${libname}${release}${shared_ext}$major'
9133 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9134 shlibpath_var=LD_LIBRARY_PATH
9135 shlibpath_overrides_runpath=no
9136 # This implies no fast_install, which is unacceptable.
9137 # Some rework will be needed to allow for fast_install
9138 # before this can be enabled.
9139 hardcode_into_libs=yes
9140 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9141 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9142
9143 # Append ld.so.conf contents to the search path
9144 if test -f /etc/ld.so.conf; then
9145 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9146 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9147 fi
9148
9149 # We used to test for /lib/ld.so.1 and disable shared libraries on
9150 # powerpc, because MkLinux only supported shared libraries with the
9151 # GNU dynamic linker. Since this was broken with cross compilers,
9152 # most powerpc-linux boxes support dynamic linking these days and
9153 # people can always --disable-shared, the test was removed, and we
9154 # assume the GNU/Linux dynamic linker is in use.
9155 dynamic_linker='GNU/Linux ld.so'
9156 ;;
9157
9158 netbsd*)
9159 version_type=sunos
9160 need_lib_prefix=no
9161 need_version=no
9162 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9164 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9165 dynamic_linker='NetBSD (a.out) ld.so'
9166 else
9167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9168 soname_spec='${libname}${release}${shared_ext}$major'
9169 dynamic_linker='NetBSD ld.elf_so'
9170 fi
9171 shlibpath_var=LD_LIBRARY_PATH
9172 shlibpath_overrides_runpath=yes
9173 hardcode_into_libs=yes
9174 ;;
9175
9176 newsos6)
9177 version_type=linux
9178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9179 shlibpath_var=LD_LIBRARY_PATH
9180 shlibpath_overrides_runpath=yes
9181 ;;
9182
9183 nto-qnx*)
9184 version_type=linux
9185 need_lib_prefix=no
9186 need_version=no
9187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9188 soname_spec='${libname}${release}${shared_ext}$major'
9189 shlibpath_var=LD_LIBRARY_PATH
9190 shlibpath_overrides_runpath=yes
9191 ;;
9192
9193 openbsd*)
9194 version_type=sunos
9195 sys_lib_dlsearch_path_spec="/usr/lib"
9196 need_lib_prefix=no
9197 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9198 case $host_os in
9199 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9200 *) need_version=no ;;
9201 esac
9202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9203 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9204 shlibpath_var=LD_LIBRARY_PATH
9205 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9206 case $host_os in
9207 openbsd2.[89] | openbsd2.[89].*)
9208 shlibpath_overrides_runpath=no
9209 ;;
9210 *)
9211 shlibpath_overrides_runpath=yes
9212 ;;
9213 esac
9214 else
9215 shlibpath_overrides_runpath=yes
9216 fi
9217 ;;
9218
9219 os2*)
9220 libname_spec='$name'
9221 shrext_cmds=".dll"
9222 need_lib_prefix=no
9223 library_names_spec='$libname${shared_ext} $libname.a'
9224 dynamic_linker='OS/2 ld.exe'
9225 shlibpath_var=LIBPATH
9226 ;;
9227
9228 osf3* | osf4* | osf5*)
9229 version_type=osf
9230 need_lib_prefix=no
9231 need_version=no
9232 soname_spec='${libname}${release}${shared_ext}$major'
9233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9234 shlibpath_var=LD_LIBRARY_PATH
9235 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9236 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9237 ;;
9238
9239 rdos*)
9240 dynamic_linker=no
9241 ;;
9242
9243 solaris*)
9244 version_type=linux
9245 need_lib_prefix=no
9246 need_version=no
9247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9248 soname_spec='${libname}${release}${shared_ext}$major'
9249 shlibpath_var=LD_LIBRARY_PATH
9250 shlibpath_overrides_runpath=yes
9251 hardcode_into_libs=yes
9252 # ldd complains unless libraries are executable
9253 postinstall_cmds='chmod +x $lib'
9254 ;;
9255
9256 sunos4*)
9257 version_type=sunos
9258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9259 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9260 shlibpath_var=LD_LIBRARY_PATH
9261 shlibpath_overrides_runpath=yes
9262 if test "$with_gnu_ld" = yes; then
9263 need_lib_prefix=no
9264 fi
9265 need_version=yes
9266 ;;
9267
9268 sysv4 | sysv4.3*)
9269 version_type=linux
9270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9271 soname_spec='${libname}${release}${shared_ext}$major'
9272 shlibpath_var=LD_LIBRARY_PATH
9273 case $host_vendor in
9274 sni)
9275 shlibpath_overrides_runpath=no
9276 need_lib_prefix=no
9277 export_dynamic_flag_spec='${wl}-Blargedynsym'
9278 runpath_var=LD_RUN_PATH
9279 ;;
9280 siemens)
9281 need_lib_prefix=no
9282 ;;
9283 motorola)
9284 need_lib_prefix=no
9285 need_version=no
9286 shlibpath_overrides_runpath=no
9287 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9288 ;;
9289 esac
9290 ;;
9291
9292 sysv4*MP*)
9293 if test -d /usr/nec ;then
9294 version_type=linux
9295 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9296 soname_spec='$libname${shared_ext}.$major'
9297 shlibpath_var=LD_LIBRARY_PATH
9298 fi
9299 ;;
9300
9301 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9302 version_type=freebsd-elf
9303 need_lib_prefix=no
9304 need_version=no
9305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9306 soname_spec='${libname}${release}${shared_ext}$major'
9307 shlibpath_var=LD_LIBRARY_PATH
9308 hardcode_into_libs=yes
9309 if test "$with_gnu_ld" = yes; then
9310 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9311 shlibpath_overrides_runpath=no
9312 else
9313 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9314 shlibpath_overrides_runpath=yes
9315 case $host_os in
9316 sco3.2v5*)
9317 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9318 ;;
9319 esac
9320 fi
9321 sys_lib_dlsearch_path_spec='/usr/lib'
9322 ;;
9323
9324 uts4*)
9325 version_type=linux
9326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9327 soname_spec='${libname}${release}${shared_ext}$major'
9328 shlibpath_var=LD_LIBRARY_PATH
9329 ;;
9330
9331 *)
9332 dynamic_linker=no
9333 ;;
9334 esac
9335 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9336 echo "${ECHO_T}$dynamic_linker" >&6; }
9337 test "$dynamic_linker" = no && can_build_shared=no
9338
9339 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9340 if test "$GCC" = yes; then
9341 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9342 fi
9343
9344 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9345 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9346 hardcode_action=
9347 if test -n "$hardcode_libdir_flag_spec" || \
9348 test -n "$runpath_var" || \
9349 test "X$hardcode_automatic" = "Xyes" ; then
9350
9351 # We can hardcode non-existant directories.
9352 if test "$hardcode_direct" != no &&
9353 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9354 # have to relink, otherwise we might link with an installed library
9355 # when we should be linking with a yet-to-be-installed one
9356 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9357 test "$hardcode_minus_L" != no; then
9358 # Linking always hardcodes the temporary library directory.
9359 hardcode_action=relink
9360 else
9361 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9362 hardcode_action=immediate
9363 fi
9364 else
9365 # We cannot hardcode anything, or else we can only hardcode existing
9366 # directories.
9367 hardcode_action=unsupported
9368 fi
9369 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9370 echo "${ECHO_T}$hardcode_action" >&6; }
9371
9372 if test "$hardcode_action" = relink; then
9373 # Fast installation is not supported
9374 enable_fast_install=no
9375 elif test "$shlibpath_overrides_runpath" = yes ||
9376 test "$enable_shared" = no; then
9377 # Fast installation is not necessary
9378 enable_fast_install=needless
9379 fi
9380
9381 striplib=
9382 old_striplib=
9383 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9384 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9385 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9386 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9387 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9388 { echo "$as_me:$LINENO: result: yes" >&5
9389 echo "${ECHO_T}yes" >&6; }
9390 else
9391 # FIXME - insert some real tests, host_os isn't really good enough
9392 case $host_os in
9393 darwin*)
9394 if test -n "$STRIP" ; then
9395 striplib="$STRIP -x"
9396 old_striplib="$STRIP -S"
9397 { echo "$as_me:$LINENO: result: yes" >&5
9398 echo "${ECHO_T}yes" >&6; }
9399 else
9400 { echo "$as_me:$LINENO: result: no" >&5
9401 echo "${ECHO_T}no" >&6; }
9402 fi
9403 ;;
9404 *)
9405 { echo "$as_me:$LINENO: result: no" >&5
9406 echo "${ECHO_T}no" >&6; }
9407 ;;
9408 esac
9409 fi
9410
9411 if test "x$enable_dlopen" != xyes; then
9412 enable_dlopen=unknown
9413 enable_dlopen_self=unknown
9414 enable_dlopen_self_static=unknown
9415 else
9416 lt_cv_dlopen=no
9417 lt_cv_dlopen_libs=
9418
9419 case $host_os in
9420 beos*)
9421 lt_cv_dlopen="load_add_on"
9422 lt_cv_dlopen_libs=
9423 lt_cv_dlopen_self=yes
9424 ;;
9425
9426 mingw* | pw32*)
9427 lt_cv_dlopen="LoadLibrary"
9428 lt_cv_dlopen_libs=
9429 ;;
9430
9431 cygwin*)
9432 lt_cv_dlopen="dlopen"
9433 lt_cv_dlopen_libs=
9434 ;;
9435
9436 darwin*)
9437 # if libdl is installed we need to link against it
9438 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9439 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9440 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9441 echo $ECHO_N "(cached) $ECHO_C" >&6
9442 else
9443 ac_check_lib_save_LIBS=$LIBS
9444 LIBS="-ldl $LIBS"
9445 cat >conftest.$ac_ext <<_ACEOF
9446 /* confdefs.h. */
9447 _ACEOF
9448 cat confdefs.h >>conftest.$ac_ext
9449 cat >>conftest.$ac_ext <<_ACEOF
9450 /* end confdefs.h. */
9451
9452 /* Override any GCC internal prototype to avoid an error.
9453 Use char because int might match the return type of a GCC
9454 builtin and then its argument prototype would still apply. */
9455 #ifdef __cplusplus
9456 extern "C"
9457 #endif
9458 char dlopen ();
9459 int
9460 main ()
9461 {
9462 return dlopen ();
9463 ;
9464 return 0;
9465 }
9466 _ACEOF
9467 rm -f conftest.$ac_objext conftest$ac_exeext
9468 if { (ac_try="$ac_link"
9469 case "(($ac_try" in
9470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9471 *) ac_try_echo=$ac_try;;
9472 esac
9473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9474 (eval "$ac_link") 2>conftest.er1
9475 ac_status=$?
9476 grep -v '^ *+' conftest.er1 >conftest.err
9477 rm -f conftest.er1
9478 cat conftest.err >&5
9479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480 (exit $ac_status); } && {
9481 test -z "$ac_c_werror_flag" ||
9482 test ! -s conftest.err
9483 } && test -s conftest$ac_exeext &&
9484 $as_test_x conftest$ac_exeext; then
9485 ac_cv_lib_dl_dlopen=yes
9486 else
9487 echo "$as_me: failed program was:" >&5
9488 sed 's/^/| /' conftest.$ac_ext >&5
9489
9490 ac_cv_lib_dl_dlopen=no
9491 fi
9492
9493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9494 conftest$ac_exeext conftest.$ac_ext
9495 LIBS=$ac_check_lib_save_LIBS
9496 fi
9497 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9498 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9499 if test $ac_cv_lib_dl_dlopen = yes; then
9500 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9501 else
9502
9503 lt_cv_dlopen="dyld"
9504 lt_cv_dlopen_libs=
9505 lt_cv_dlopen_self=yes
9506
9507 fi
9508
9509 ;;
9510
9511 *)
9512 { echo "$as_me:$LINENO: checking for shl_load" >&5
9513 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9514 if test "${ac_cv_func_shl_load+set}" = set; then
9515 echo $ECHO_N "(cached) $ECHO_C" >&6
9516 else
9517 cat >conftest.$ac_ext <<_ACEOF
9518 /* confdefs.h. */
9519 _ACEOF
9520 cat confdefs.h >>conftest.$ac_ext
9521 cat >>conftest.$ac_ext <<_ACEOF
9522 /* end confdefs.h. */
9523 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9524 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9525 #define shl_load innocuous_shl_load
9526
9527 /* System header to define __stub macros and hopefully few prototypes,
9528 which can conflict with char shl_load (); below.
9529 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9530 <limits.h> exists even on freestanding compilers. */
9531
9532 #ifdef __STDC__
9533 # include <limits.h>
9534 #else
9535 # include <assert.h>
9536 #endif
9537
9538 #undef shl_load
9539
9540 /* Override any GCC internal prototype to avoid an error.
9541 Use char because int might match the return type of a GCC
9542 builtin and then its argument prototype would still apply. */
9543 #ifdef __cplusplus
9544 extern "C"
9545 #endif
9546 char shl_load ();
9547 /* The GNU C library defines this for functions which it implements
9548 to always fail with ENOSYS. Some functions are actually named
9549 something starting with __ and the normal name is an alias. */
9550 #if defined __stub_shl_load || defined __stub___shl_load
9551 choke me
9552 #endif
9553
9554 int
9555 main ()
9556 {
9557 return shl_load ();
9558 ;
9559 return 0;
9560 }
9561 _ACEOF
9562 rm -f conftest.$ac_objext conftest$ac_exeext
9563 if { (ac_try="$ac_link"
9564 case "(($ac_try" in
9565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9566 *) ac_try_echo=$ac_try;;
9567 esac
9568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9569 (eval "$ac_link") 2>conftest.er1
9570 ac_status=$?
9571 grep -v '^ *+' conftest.er1 >conftest.err
9572 rm -f conftest.er1
9573 cat conftest.err >&5
9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); } && {
9576 test -z "$ac_c_werror_flag" ||
9577 test ! -s conftest.err
9578 } && test -s conftest$ac_exeext &&
9579 $as_test_x conftest$ac_exeext; then
9580 ac_cv_func_shl_load=yes
9581 else
9582 echo "$as_me: failed program was:" >&5
9583 sed 's/^/| /' conftest.$ac_ext >&5
9584
9585 ac_cv_func_shl_load=no
9586 fi
9587
9588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9589 conftest$ac_exeext conftest.$ac_ext
9590 fi
9591 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9592 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9593 if test $ac_cv_func_shl_load = yes; then
9594 lt_cv_dlopen="shl_load"
9595 else
9596 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9597 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9598 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9599 echo $ECHO_N "(cached) $ECHO_C" >&6
9600 else
9601 ac_check_lib_save_LIBS=$LIBS
9602 LIBS="-ldld $LIBS"
9603 cat >conftest.$ac_ext <<_ACEOF
9604 /* confdefs.h. */
9605 _ACEOF
9606 cat confdefs.h >>conftest.$ac_ext
9607 cat >>conftest.$ac_ext <<_ACEOF
9608 /* end confdefs.h. */
9609
9610 /* Override any GCC internal prototype to avoid an error.
9611 Use char because int might match the return type of a GCC
9612 builtin and then its argument prototype would still apply. */
9613 #ifdef __cplusplus
9614 extern "C"
9615 #endif
9616 char shl_load ();
9617 int
9618 main ()
9619 {
9620 return shl_load ();
9621 ;
9622 return 0;
9623 }
9624 _ACEOF
9625 rm -f conftest.$ac_objext conftest$ac_exeext
9626 if { (ac_try="$ac_link"
9627 case "(($ac_try" in
9628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9629 *) ac_try_echo=$ac_try;;
9630 esac
9631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9632 (eval "$ac_link") 2>conftest.er1
9633 ac_status=$?
9634 grep -v '^ *+' conftest.er1 >conftest.err
9635 rm -f conftest.er1
9636 cat conftest.err >&5
9637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638 (exit $ac_status); } && {
9639 test -z "$ac_c_werror_flag" ||
9640 test ! -s conftest.err
9641 } && test -s conftest$ac_exeext &&
9642 $as_test_x conftest$ac_exeext; then
9643 ac_cv_lib_dld_shl_load=yes
9644 else
9645 echo "$as_me: failed program was:" >&5
9646 sed 's/^/| /' conftest.$ac_ext >&5
9647
9648 ac_cv_lib_dld_shl_load=no
9649 fi
9650
9651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9652 conftest$ac_exeext conftest.$ac_ext
9653 LIBS=$ac_check_lib_save_LIBS
9654 fi
9655 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9656 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9657 if test $ac_cv_lib_dld_shl_load = yes; then
9658 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9659 else
9660 { echo "$as_me:$LINENO: checking for dlopen" >&5
9661 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9662 if test "${ac_cv_func_dlopen+set}" = set; then
9663 echo $ECHO_N "(cached) $ECHO_C" >&6
9664 else
9665 cat >conftest.$ac_ext <<_ACEOF
9666 /* confdefs.h. */
9667 _ACEOF
9668 cat confdefs.h >>conftest.$ac_ext
9669 cat >>conftest.$ac_ext <<_ACEOF
9670 /* end confdefs.h. */
9671 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9673 #define dlopen innocuous_dlopen
9674
9675 /* System header to define __stub macros and hopefully few prototypes,
9676 which can conflict with char dlopen (); below.
9677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9678 <limits.h> exists even on freestanding compilers. */
9679
9680 #ifdef __STDC__
9681 # include <limits.h>
9682 #else
9683 # include <assert.h>
9684 #endif
9685
9686 #undef dlopen
9687
9688 /* Override any GCC internal prototype to avoid an error.
9689 Use char because int might match the return type of a GCC
9690 builtin and then its argument prototype would still apply. */
9691 #ifdef __cplusplus
9692 extern "C"
9693 #endif
9694 char dlopen ();
9695 /* The GNU C library defines this for functions which it implements
9696 to always fail with ENOSYS. Some functions are actually named
9697 something starting with __ and the normal name is an alias. */
9698 #if defined __stub_dlopen || defined __stub___dlopen
9699 choke me
9700 #endif
9701
9702 int
9703 main ()
9704 {
9705 return dlopen ();
9706 ;
9707 return 0;
9708 }
9709 _ACEOF
9710 rm -f conftest.$ac_objext conftest$ac_exeext
9711 if { (ac_try="$ac_link"
9712 case "(($ac_try" in
9713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9714 *) ac_try_echo=$ac_try;;
9715 esac
9716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9717 (eval "$ac_link") 2>conftest.er1
9718 ac_status=$?
9719 grep -v '^ *+' conftest.er1 >conftest.err
9720 rm -f conftest.er1
9721 cat conftest.err >&5
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); } && {
9724 test -z "$ac_c_werror_flag" ||
9725 test ! -s conftest.err
9726 } && test -s conftest$ac_exeext &&
9727 $as_test_x conftest$ac_exeext; then
9728 ac_cv_func_dlopen=yes
9729 else
9730 echo "$as_me: failed program was:" >&5
9731 sed 's/^/| /' conftest.$ac_ext >&5
9732
9733 ac_cv_func_dlopen=no
9734 fi
9735
9736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9737 conftest$ac_exeext conftest.$ac_ext
9738 fi
9739 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9740 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9741 if test $ac_cv_func_dlopen = yes; then
9742 lt_cv_dlopen="dlopen"
9743 else
9744 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9745 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9746 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9747 echo $ECHO_N "(cached) $ECHO_C" >&6
9748 else
9749 ac_check_lib_save_LIBS=$LIBS
9750 LIBS="-ldl $LIBS"
9751 cat >conftest.$ac_ext <<_ACEOF
9752 /* confdefs.h. */
9753 _ACEOF
9754 cat confdefs.h >>conftest.$ac_ext
9755 cat >>conftest.$ac_ext <<_ACEOF
9756 /* end confdefs.h. */
9757
9758 /* Override any GCC internal prototype to avoid an error.
9759 Use char because int might match the return type of a GCC
9760 builtin and then its argument prototype would still apply. */
9761 #ifdef __cplusplus
9762 extern "C"
9763 #endif
9764 char dlopen ();
9765 int
9766 main ()
9767 {
9768 return dlopen ();
9769 ;
9770 return 0;
9771 }
9772 _ACEOF
9773 rm -f conftest.$ac_objext conftest$ac_exeext
9774 if { (ac_try="$ac_link"
9775 case "(($ac_try" in
9776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9777 *) ac_try_echo=$ac_try;;
9778 esac
9779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9780 (eval "$ac_link") 2>conftest.er1
9781 ac_status=$?
9782 grep -v '^ *+' conftest.er1 >conftest.err
9783 rm -f conftest.er1
9784 cat conftest.err >&5
9785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786 (exit $ac_status); } && {
9787 test -z "$ac_c_werror_flag" ||
9788 test ! -s conftest.err
9789 } && test -s conftest$ac_exeext &&
9790 $as_test_x conftest$ac_exeext; then
9791 ac_cv_lib_dl_dlopen=yes
9792 else
9793 echo "$as_me: failed program was:" >&5
9794 sed 's/^/| /' conftest.$ac_ext >&5
9795
9796 ac_cv_lib_dl_dlopen=no
9797 fi
9798
9799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9800 conftest$ac_exeext conftest.$ac_ext
9801 LIBS=$ac_check_lib_save_LIBS
9802 fi
9803 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9804 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9805 if test $ac_cv_lib_dl_dlopen = yes; then
9806 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9807 else
9808 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9809 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9810 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9811 echo $ECHO_N "(cached) $ECHO_C" >&6
9812 else
9813 ac_check_lib_save_LIBS=$LIBS
9814 LIBS="-lsvld $LIBS"
9815 cat >conftest.$ac_ext <<_ACEOF
9816 /* confdefs.h. */
9817 _ACEOF
9818 cat confdefs.h >>conftest.$ac_ext
9819 cat >>conftest.$ac_ext <<_ACEOF
9820 /* end confdefs.h. */
9821
9822 /* Override any GCC internal prototype to avoid an error.
9823 Use char because int might match the return type of a GCC
9824 builtin and then its argument prototype would still apply. */
9825 #ifdef __cplusplus
9826 extern "C"
9827 #endif
9828 char dlopen ();
9829 int
9830 main ()
9831 {
9832 return dlopen ();
9833 ;
9834 return 0;
9835 }
9836 _ACEOF
9837 rm -f conftest.$ac_objext conftest$ac_exeext
9838 if { (ac_try="$ac_link"
9839 case "(($ac_try" in
9840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9841 *) ac_try_echo=$ac_try;;
9842 esac
9843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9844 (eval "$ac_link") 2>conftest.er1
9845 ac_status=$?
9846 grep -v '^ *+' conftest.er1 >conftest.err
9847 rm -f conftest.er1
9848 cat conftest.err >&5
9849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850 (exit $ac_status); } && {
9851 test -z "$ac_c_werror_flag" ||
9852 test ! -s conftest.err
9853 } && test -s conftest$ac_exeext &&
9854 $as_test_x conftest$ac_exeext; then
9855 ac_cv_lib_svld_dlopen=yes
9856 else
9857 echo "$as_me: failed program was:" >&5
9858 sed 's/^/| /' conftest.$ac_ext >&5
9859
9860 ac_cv_lib_svld_dlopen=no
9861 fi
9862
9863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9864 conftest$ac_exeext conftest.$ac_ext
9865 LIBS=$ac_check_lib_save_LIBS
9866 fi
9867 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9868 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9869 if test $ac_cv_lib_svld_dlopen = yes; then
9870 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9871 else
9872 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9873 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9874 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9875 echo $ECHO_N "(cached) $ECHO_C" >&6
9876 else
9877 ac_check_lib_save_LIBS=$LIBS
9878 LIBS="-ldld $LIBS"
9879 cat >conftest.$ac_ext <<_ACEOF
9880 /* confdefs.h. */
9881 _ACEOF
9882 cat confdefs.h >>conftest.$ac_ext
9883 cat >>conftest.$ac_ext <<_ACEOF
9884 /* end confdefs.h. */
9885
9886 /* Override any GCC internal prototype to avoid an error.
9887 Use char because int might match the return type of a GCC
9888 builtin and then its argument prototype would still apply. */
9889 #ifdef __cplusplus
9890 extern "C"
9891 #endif
9892 char dld_link ();
9893 int
9894 main ()
9895 {
9896 return dld_link ();
9897 ;
9898 return 0;
9899 }
9900 _ACEOF
9901 rm -f conftest.$ac_objext conftest$ac_exeext
9902 if { (ac_try="$ac_link"
9903 case "(($ac_try" in
9904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9905 *) ac_try_echo=$ac_try;;
9906 esac
9907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9908 (eval "$ac_link") 2>conftest.er1
9909 ac_status=$?
9910 grep -v '^ *+' conftest.er1 >conftest.err
9911 rm -f conftest.er1
9912 cat conftest.err >&5
9913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914 (exit $ac_status); } && {
9915 test -z "$ac_c_werror_flag" ||
9916 test ! -s conftest.err
9917 } && test -s conftest$ac_exeext &&
9918 $as_test_x conftest$ac_exeext; then
9919 ac_cv_lib_dld_dld_link=yes
9920 else
9921 echo "$as_me: failed program was:" >&5
9922 sed 's/^/| /' conftest.$ac_ext >&5
9923
9924 ac_cv_lib_dld_dld_link=no
9925 fi
9926
9927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9928 conftest$ac_exeext conftest.$ac_ext
9929 LIBS=$ac_check_lib_save_LIBS
9930 fi
9931 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9932 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9933 if test $ac_cv_lib_dld_dld_link = yes; then
9934 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9935 fi
9936
9937
9938 fi
9939
9940
9941 fi
9942
9943
9944 fi
9945
9946
9947 fi
9948
9949
9950 fi
9951
9952 ;;
9953 esac
9954
9955 if test "x$lt_cv_dlopen" != xno; then
9956 enable_dlopen=yes
9957 else
9958 enable_dlopen=no
9959 fi
9960
9961 case $lt_cv_dlopen in
9962 dlopen)
9963 save_CPPFLAGS="$CPPFLAGS"
9964 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9965
9966 save_LDFLAGS="$LDFLAGS"
9967 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9968
9969 save_LIBS="$LIBS"
9970 LIBS="$lt_cv_dlopen_libs $LIBS"
9971
9972 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9973 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9974 if test "${lt_cv_dlopen_self+set}" = set; then
9975 echo $ECHO_N "(cached) $ECHO_C" >&6
9976 else
9977 if test "$cross_compiling" = yes; then :
9978 lt_cv_dlopen_self=cross
9979 else
9980 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9981 lt_status=$lt_dlunknown
9982 cat > conftest.$ac_ext <<EOF
9983 #line 9984 "configure"
9984 #include "confdefs.h"
9985
9986 #if HAVE_DLFCN_H
9987 #include <dlfcn.h>
9988 #endif
9989
9990 #include <stdio.h>
9991
9992 #ifdef RTLD_GLOBAL
9993 # define LT_DLGLOBAL RTLD_GLOBAL
9994 #else
9995 # ifdef DL_GLOBAL
9996 # define LT_DLGLOBAL DL_GLOBAL
9997 # else
9998 # define LT_DLGLOBAL 0
9999 # endif
10000 #endif
10001
10002 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10003 find out it does not work in some platform. */
10004 #ifndef LT_DLLAZY_OR_NOW
10005 # ifdef RTLD_LAZY
10006 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10007 # else
10008 # ifdef DL_LAZY
10009 # define LT_DLLAZY_OR_NOW DL_LAZY
10010 # else
10011 # ifdef RTLD_NOW
10012 # define LT_DLLAZY_OR_NOW RTLD_NOW
10013 # else
10014 # ifdef DL_NOW
10015 # define LT_DLLAZY_OR_NOW DL_NOW
10016 # else
10017 # define LT_DLLAZY_OR_NOW 0
10018 # endif
10019 # endif
10020 # endif
10021 # endif
10022 #endif
10023
10024 #ifdef __cplusplus
10025 extern "C" void exit (int);
10026 #endif
10027
10028 void fnord() { int i=42;}
10029 int main ()
10030 {
10031 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10032 int status = $lt_dlunknown;
10033
10034 if (self)
10035 {
10036 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10037 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10038 /* dlclose (self); */
10039 }
10040 else
10041 puts (dlerror ());
10042
10043 exit (status);
10044 }
10045 EOF
10046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10047 (eval $ac_link) 2>&5
10048 ac_status=$?
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10051 (./conftest; exit; ) >&5 2>/dev/null
10052 lt_status=$?
10053 case x$lt_status in
10054 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10055 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10056 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10057 esac
10058 else :
10059 # compilation failed
10060 lt_cv_dlopen_self=no
10061 fi
10062 fi
10063 rm -fr conftest*
10064
10065
10066 fi
10067 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10068 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10069
10070 if test "x$lt_cv_dlopen_self" = xyes; then
10071 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10072 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10073 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10074 if test "${lt_cv_dlopen_self_static+set}" = set; then
10075 echo $ECHO_N "(cached) $ECHO_C" >&6
10076 else
10077 if test "$cross_compiling" = yes; then :
10078 lt_cv_dlopen_self_static=cross
10079 else
10080 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10081 lt_status=$lt_dlunknown
10082 cat > conftest.$ac_ext <<EOF
10083 #line 10084 "configure"
10084 #include "confdefs.h"
10085
10086 #if HAVE_DLFCN_H
10087 #include <dlfcn.h>
10088 #endif
10089
10090 #include <stdio.h>
10091
10092 #ifdef RTLD_GLOBAL
10093 # define LT_DLGLOBAL RTLD_GLOBAL
10094 #else
10095 # ifdef DL_GLOBAL
10096 # define LT_DLGLOBAL DL_GLOBAL
10097 # else
10098 # define LT_DLGLOBAL 0
10099 # endif
10100 #endif
10101
10102 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10103 find out it does not work in some platform. */
10104 #ifndef LT_DLLAZY_OR_NOW
10105 # ifdef RTLD_LAZY
10106 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10107 # else
10108 # ifdef DL_LAZY
10109 # define LT_DLLAZY_OR_NOW DL_LAZY
10110 # else
10111 # ifdef RTLD_NOW
10112 # define LT_DLLAZY_OR_NOW RTLD_NOW
10113 # else
10114 # ifdef DL_NOW
10115 # define LT_DLLAZY_OR_NOW DL_NOW
10116 # else
10117 # define LT_DLLAZY_OR_NOW 0
10118 # endif
10119 # endif
10120 # endif
10121 # endif
10122 #endif
10123
10124 #ifdef __cplusplus
10125 extern "C" void exit (int);
10126 #endif
10127
10128 void fnord() { int i=42;}
10129 int main ()
10130 {
10131 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10132 int status = $lt_dlunknown;
10133
10134 if (self)
10135 {
10136 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10137 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10138 /* dlclose (self); */
10139 }
10140 else
10141 puts (dlerror ());
10142
10143 exit (status);
10144 }
10145 EOF
10146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10147 (eval $ac_link) 2>&5
10148 ac_status=$?
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10151 (./conftest; exit; ) >&5 2>/dev/null
10152 lt_status=$?
10153 case x$lt_status in
10154 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10155 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10156 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10157 esac
10158 else :
10159 # compilation failed
10160 lt_cv_dlopen_self_static=no
10161 fi
10162 fi
10163 rm -fr conftest*
10164
10165
10166 fi
10167 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10168 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10169 fi
10170
10171 CPPFLAGS="$save_CPPFLAGS"
10172 LDFLAGS="$save_LDFLAGS"
10173 LIBS="$save_LIBS"
10174 ;;
10175 esac
10176
10177 case $lt_cv_dlopen_self in
10178 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10179 *) enable_dlopen_self=unknown ;;
10180 esac
10181
10182 case $lt_cv_dlopen_self_static in
10183 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10184 *) enable_dlopen_self_static=unknown ;;
10185 esac
10186 fi
10187
10188
10189 # Report which library types will actually be built
10190 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10191 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10192 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10193 echo "${ECHO_T}$can_build_shared" >&6; }
10194
10195 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10196 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10197 test "$can_build_shared" = "no" && enable_shared=no
10198
10199 # On AIX, shared libraries and static libraries use the same namespace, and
10200 # are all built from PIC.
10201 case $host_os in
10202 aix3*)
10203 test "$enable_shared" = yes && enable_static=no
10204 if test -n "$RANLIB"; then
10205 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10206 postinstall_cmds='$RANLIB $lib'
10207 fi
10208 ;;
10209
10210 aix4* | aix5*)
10211 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10212 test "$enable_shared" = yes && enable_static=no
10213 fi
10214 ;;
10215 esac
10216 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10217 echo "${ECHO_T}$enable_shared" >&6; }
10218
10219 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10220 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10221 # Make sure either enable_shared or enable_static is yes.
10222 test "$enable_shared" = yes || enable_static=yes
10223 { echo "$as_me:$LINENO: result: $enable_static" >&5
10224 echo "${ECHO_T}$enable_static" >&6; }
10225
10226 # The else clause should only fire when bootstrapping the
10227 # libtool distribution, otherwise you forgot to ship ltmain.sh
10228 # with your package, and you will get complaints that there are
10229 # no rules to generate ltmain.sh.
10230 if test -f "$ltmain"; then
10231 # See if we are running on zsh, and set the options which allow our commands through
10232 # without removal of \ escapes.
10233 if test -n "${ZSH_VERSION+set}" ; then
10234 setopt NO_GLOB_SUBST
10235 fi
10236 # Now quote all the things that may contain metacharacters while being
10237 # careful not to overquote the AC_SUBSTed values. We take copies of the
10238 # variables and quote the copies for generation of the libtool script.
10239 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10240 SED SHELL STRIP \
10241 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10242 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10243 deplibs_check_method reload_flag reload_cmds need_locks \
10244 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10245 lt_cv_sys_global_symbol_to_c_name_address \
10246 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10247 old_postinstall_cmds old_postuninstall_cmds \
10248 compiler \
10249 CC \
10250 LD \
10251 lt_prog_compiler_wl \
10252 lt_prog_compiler_pic \
10253 lt_prog_compiler_static \
10254 lt_prog_compiler_no_builtin_flag \
10255 export_dynamic_flag_spec \
10256 thread_safe_flag_spec \
10257 whole_archive_flag_spec \
10258 enable_shared_with_static_runtimes \
10259 old_archive_cmds \
10260 old_archive_from_new_cmds \
10261 predep_objects \
10262 postdep_objects \
10263 predeps \
10264 postdeps \
10265 compiler_lib_search_path \
10266 archive_cmds \
10267 archive_expsym_cmds \
10268 postinstall_cmds \
10269 postuninstall_cmds \
10270 old_archive_from_expsyms_cmds \
10271 allow_undefined_flag \
10272 no_undefined_flag \
10273 export_symbols_cmds \
10274 hardcode_libdir_flag_spec \
10275 hardcode_libdir_flag_spec_ld \
10276 hardcode_libdir_separator \
10277 hardcode_automatic \
10278 module_cmds \
10279 module_expsym_cmds \
10280 lt_cv_prog_compiler_c_o \
10281 fix_srcfile_path \
10282 exclude_expsyms \
10283 include_expsyms; do
10284
10285 case $var in
10286 old_archive_cmds | \
10287 old_archive_from_new_cmds | \
10288 archive_cmds | \
10289 archive_expsym_cmds | \
10290 module_cmds | \
10291 module_expsym_cmds | \
10292 old_archive_from_expsyms_cmds | \
10293 export_symbols_cmds | \
10294 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10295 postinstall_cmds | postuninstall_cmds | \
10296 old_postinstall_cmds | old_postuninstall_cmds | \
10297 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10298 # Double-quote double-evaled strings.
10299 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10300 ;;
10301 *)
10302 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10303 ;;
10304 esac
10305 done
10306
10307 case $lt_echo in
10308 *'\$0 --fallback-echo"')
10309 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10310 ;;
10311 esac
10312
10313 cfgfile="${ofile}T"
10314 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10315 $rm -f "$cfgfile"
10316 { echo "$as_me:$LINENO: creating $ofile" >&5
10317 echo "$as_me: creating $ofile" >&6;}
10318
10319 cat <<__EOF__ >> "$cfgfile"
10320 #! $SHELL
10321
10322 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10323 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10324 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10325 #
10326 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10327 # Free Software Foundation, Inc.
10328 #
10329 # This file is part of GNU Libtool:
10330 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10331 #
10332 # This program is free software; you can redistribute it and/or modify
10333 # it under the terms of the GNU General Public License as published by
10334 # the Free Software Foundation; either version 2 of the License, or
10335 # (at your option) any later version.
10336 #
10337 # This program is distributed in the hope that it will be useful, but
10338 # WITHOUT ANY WARRANTY; without even the implied warranty of
10339 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10340 # General Public License for more details.
10341 #
10342 # You should have received a copy of the GNU General Public License
10343 # along with this program; if not, write to the Free Software
10344 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10345 #
10346 # As a special exception to the GNU General Public License, if you
10347 # distribute this file as part of a program that contains a
10348 # configuration script generated by Autoconf, you may include it under
10349 # the same distribution terms that you use for the rest of that program.
10350
10351 # A sed program that does not truncate output.
10352 SED=$lt_SED
10353
10354 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10355 Xsed="$SED -e 1s/^X//"
10356
10357 # The HP-UX ksh and POSIX shell print the target directory to stdout
10358 # if CDPATH is set.
10359 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10360
10361 # The names of the tagged configurations supported by this script.
10362 available_tags=
10363
10364 # ### BEGIN LIBTOOL CONFIG
10365
10366 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10367
10368 # Shell to use when invoking shell scripts.
10369 SHELL=$lt_SHELL
10370
10371 # Whether or not to build shared libraries.
10372 build_libtool_libs=$enable_shared
10373
10374 # Whether or not to build static libraries.
10375 build_old_libs=$enable_static
10376
10377 # Whether or not to add -lc for building shared libraries.
10378 build_libtool_need_lc=$archive_cmds_need_lc
10379
10380 # Whether or not to disallow shared libs when runtime libs are static
10381 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10382
10383 # Whether or not to optimize for fast installation.
10384 fast_install=$enable_fast_install
10385
10386 # The host system.
10387 host_alias=$host_alias
10388 host=$host
10389 host_os=$host_os
10390
10391 # The build system.
10392 build_alias=$build_alias
10393 build=$build
10394 build_os=$build_os
10395
10396 # An echo program that does not interpret backslashes.
10397 echo=$lt_echo
10398
10399 # The archiver.
10400 AR=$lt_AR
10401 AR_FLAGS=$lt_AR_FLAGS
10402
10403 # A C compiler.
10404 LTCC=$lt_LTCC
10405
10406 # LTCC compiler flags.
10407 LTCFLAGS=$lt_LTCFLAGS
10408
10409 # A language-specific compiler.
10410 CC=$lt_compiler
10411
10412 # Is the compiler the GNU C compiler?
10413 with_gcc=$GCC
10414
10415 # An ERE matcher.
10416 EGREP=$lt_EGREP
10417
10418 # The linker used to build libraries.
10419 LD=$lt_LD
10420
10421 # Whether we need hard or soft links.
10422 LN_S=$lt_LN_S
10423
10424 # A BSD-compatible nm program.
10425 NM=$lt_NM
10426
10427 # A symbol stripping program
10428 STRIP=$lt_STRIP
10429
10430 # Used to examine libraries when file_magic_cmd begins "file"
10431 MAGIC_CMD=$MAGIC_CMD
10432
10433 # Used on cygwin: DLL creation program.
10434 DLLTOOL="$DLLTOOL"
10435
10436 # Used on cygwin: object dumper.
10437 OBJDUMP="$OBJDUMP"
10438
10439 # Used on cygwin: assembler.
10440 AS="$AS"
10441
10442 # The name of the directory that contains temporary libtool files.
10443 objdir=$objdir
10444
10445 # How to create reloadable object files.
10446 reload_flag=$lt_reload_flag
10447 reload_cmds=$lt_reload_cmds
10448
10449 # How to pass a linker flag through the compiler.
10450 wl=$lt_lt_prog_compiler_wl
10451
10452 # Object file suffix (normally "o").
10453 objext="$ac_objext"
10454
10455 # Old archive suffix (normally "a").
10456 libext="$libext"
10457
10458 # Shared library suffix (normally ".so").
10459 shrext_cmds='$shrext_cmds'
10460
10461 # Executable file suffix (normally "").
10462 exeext="$exeext"
10463
10464 # Additional compiler flags for building library objects.
10465 pic_flag=$lt_lt_prog_compiler_pic
10466 pic_mode=$pic_mode
10467
10468 # What is the maximum length of a command?
10469 max_cmd_len=$lt_cv_sys_max_cmd_len
10470
10471 # Does compiler simultaneously support -c and -o options?
10472 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10473
10474 # Must we lock files when doing compilation?
10475 need_locks=$lt_need_locks
10476
10477 # Do we need the lib prefix for modules?
10478 need_lib_prefix=$need_lib_prefix
10479
10480 # Do we need a version for libraries?
10481 need_version=$need_version
10482
10483 # Whether dlopen is supported.
10484 dlopen_support=$enable_dlopen
10485
10486 # Whether dlopen of programs is supported.
10487 dlopen_self=$enable_dlopen_self
10488
10489 # Whether dlopen of statically linked programs is supported.
10490 dlopen_self_static=$enable_dlopen_self_static
10491
10492 # Compiler flag to prevent dynamic linking.
10493 link_static_flag=$lt_lt_prog_compiler_static
10494
10495 # Compiler flag to turn off builtin functions.
10496 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10497
10498 # Compiler flag to allow reflexive dlopens.
10499 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10500
10501 # Compiler flag to generate shared objects directly from archives.
10502 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10503
10504 # Compiler flag to generate thread-safe objects.
10505 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10506
10507 # Library versioning type.
10508 version_type=$version_type
10509
10510 # Format of library name prefix.
10511 libname_spec=$lt_libname_spec
10512
10513 # List of archive names. First name is the real one, the rest are links.
10514 # The last name is the one that the linker finds with -lNAME.
10515 library_names_spec=$lt_library_names_spec
10516
10517 # The coded name of the library, if different from the real name.
10518 soname_spec=$lt_soname_spec
10519
10520 # Commands used to build and install an old-style archive.
10521 RANLIB=$lt_RANLIB
10522 old_archive_cmds=$lt_old_archive_cmds
10523 old_postinstall_cmds=$lt_old_postinstall_cmds
10524 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10525
10526 # Create an old-style archive from a shared archive.
10527 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10528
10529 # Create a temporary old-style archive to link instead of a shared archive.
10530 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10531
10532 # Commands used to build and install a shared archive.
10533 archive_cmds=$lt_archive_cmds
10534 archive_expsym_cmds=$lt_archive_expsym_cmds
10535 postinstall_cmds=$lt_postinstall_cmds
10536 postuninstall_cmds=$lt_postuninstall_cmds
10537
10538 # Commands used to build a loadable module (assumed same as above if empty)
10539 module_cmds=$lt_module_cmds
10540 module_expsym_cmds=$lt_module_expsym_cmds
10541
10542 # Commands to strip libraries.
10543 old_striplib=$lt_old_striplib
10544 striplib=$lt_striplib
10545
10546 # Dependencies to place before the objects being linked to create a
10547 # shared library.
10548 predep_objects=$lt_predep_objects
10549
10550 # Dependencies to place after the objects being linked to create a
10551 # shared library.
10552 postdep_objects=$lt_postdep_objects
10553
10554 # Dependencies to place before the objects being linked to create a
10555 # shared library.
10556 predeps=$lt_predeps
10557
10558 # Dependencies to place after the objects being linked to create a
10559 # shared library.
10560 postdeps=$lt_postdeps
10561
10562 # The library search path used internally by the compiler when linking
10563 # a shared library.
10564 compiler_lib_search_path=$lt_compiler_lib_search_path
10565
10566 # Method to check whether dependent libraries are shared objects.
10567 deplibs_check_method=$lt_deplibs_check_method
10568
10569 # Command to use when deplibs_check_method == file_magic.
10570 file_magic_cmd=$lt_file_magic_cmd
10571
10572 # Flag that allows shared libraries with undefined symbols to be built.
10573 allow_undefined_flag=$lt_allow_undefined_flag
10574
10575 # Flag that forces no undefined symbols.
10576 no_undefined_flag=$lt_no_undefined_flag
10577
10578 # Commands used to finish a libtool library installation in a directory.
10579 finish_cmds=$lt_finish_cmds
10580
10581 # Same as above, but a single script fragment to be evaled but not shown.
10582 finish_eval=$lt_finish_eval
10583
10584 # Take the output of nm and produce a listing of raw symbols and C names.
10585 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10586
10587 # Transform the output of nm in a proper C declaration
10588 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10589
10590 # Transform the output of nm in a C name address pair
10591 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10592
10593 # This is the shared library runtime path variable.
10594 runpath_var=$runpath_var
10595
10596 # This is the shared library path variable.
10597 shlibpath_var=$shlibpath_var
10598
10599 # Is shlibpath searched before the hard-coded library search path?
10600 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10601
10602 # How to hardcode a shared library path into an executable.
10603 hardcode_action=$hardcode_action
10604
10605 # Whether we should hardcode library paths into libraries.
10606 hardcode_into_libs=$hardcode_into_libs
10607
10608 # Flag to hardcode \$libdir into a binary during linking.
10609 # This must work even if \$libdir does not exist.
10610 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10611
10612 # If ld is used when linking, flag to hardcode \$libdir into
10613 # a binary during linking. This must work even if \$libdir does
10614 # not exist.
10615 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10616
10617 # Whether we need a single -rpath flag with a separated argument.
10618 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10619
10620 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10621 # resulting binary.
10622 hardcode_direct=$hardcode_direct
10623
10624 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10625 # resulting binary.
10626 hardcode_minus_L=$hardcode_minus_L
10627
10628 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10629 # the resulting binary.
10630 hardcode_shlibpath_var=$hardcode_shlibpath_var
10631
10632 # Set to yes if building a shared library automatically hardcodes DIR into the library
10633 # and all subsequent libraries and executables linked against it.
10634 hardcode_automatic=$hardcode_automatic
10635
10636 # Variables whose values should be saved in libtool wrapper scripts and
10637 # restored at relink time.
10638 variables_saved_for_relink="$variables_saved_for_relink"
10639
10640 # Whether libtool must link a program against all its dependency libraries.
10641 link_all_deplibs=$link_all_deplibs
10642
10643 # Compile-time system search path for libraries
10644 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10645
10646 # Run-time system search path for libraries
10647 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10648
10649 # Fix the shell variable \$srcfile for the compiler.
10650 fix_srcfile_path=$lt_fix_srcfile_path
10651
10652 # Set to yes if exported symbols are required.
10653 always_export_symbols=$always_export_symbols
10654
10655 # The commands to list exported symbols.
10656 export_symbols_cmds=$lt_export_symbols_cmds
10657
10658 # The commands to extract the exported symbol list from a shared archive.
10659 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10660
10661 # Symbols that should not be listed in the preloaded symbols.
10662 exclude_expsyms=$lt_exclude_expsyms
10663
10664 # Symbols that must always be exported.
10665 include_expsyms=$lt_include_expsyms
10666
10667 # ### END LIBTOOL CONFIG
10668
10669 __EOF__
10670
10671
10672 case $host_os in
10673 aix3*)
10674 cat <<\EOF >> "$cfgfile"
10675
10676 # AIX sometimes has problems with the GCC collect2 program. For some
10677 # reason, if we set the COLLECT_NAMES environment variable, the problems
10678 # vanish in a puff of smoke.
10679 if test "X${COLLECT_NAMES+set}" != Xset; then
10680 COLLECT_NAMES=
10681 export COLLECT_NAMES
10682 fi
10683 EOF
10684 ;;
10685 esac
10686
10687 # We use sed instead of cat because bash on DJGPP gets confused if
10688 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10689 # text mode, it properly converts lines to CR/LF. This bash problem
10690 # is reportedly fixed, but why not run on old versions too?
10691 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10692
10693 mv -f "$cfgfile" "$ofile" || \
10694 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10695 chmod +x "$ofile"
10696
10697 else
10698 # If there is no Makefile yet, we rely on a make rule to execute
10699 # `config.status --recheck' to rerun these tests and create the
10700 # libtool script then.
10701 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10702 if test -f "$ltmain_in"; then
10703 test -f Makefile && make "$ltmain"
10704 fi
10705 fi
10706
10707
10708 ac_ext=c
10709 ac_cpp='$CPP $CPPFLAGS'
10710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10713
10714 CC="$lt_save_CC"
10715
10716
10717 # Check whether --with-tags was given.
10718 if test "${with_tags+set}" = set; then
10719 withval=$with_tags; tagnames="$withval"
10720 fi
10721
10722
10723 if test -f "$ltmain" && test -n "$tagnames"; then
10724 if test ! -f "${ofile}"; then
10725 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10726 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10727 fi
10728
10729 if test -z "$LTCC"; then
10730 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10731 if test -z "$LTCC"; then
10732 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10733 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10734 else
10735 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10736 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10737 fi
10738 fi
10739 if test -z "$LTCFLAGS"; then
10740 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10741 fi
10742
10743 # Extract list of available tagged configurations in $ofile.
10744 # Note that this assumes the entire list is on one line.
10745 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10746
10747 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10748 for tagname in $tagnames; do
10749 IFS="$lt_save_ifs"
10750 # Check whether tagname contains only valid characters
10751 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10752 "") ;;
10753 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10754 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10755 { (exit 1); exit 1; }; }
10756 ;;
10757 esac
10758
10759 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10760 then
10761 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10762 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10763 { (exit 1); exit 1; }; }
10764 fi
10765
10766 # Update the list of available tags.
10767 if test -n "$tagname"; then
10768 echo appending configuration tag \"$tagname\" to $ofile
10769
10770 case $tagname in
10771 CXX)
10772 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10773 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10774 (test "X$CXX" != "Xg++"))) ; then
10775 ac_ext=cpp
10776 ac_cpp='$CXXCPP $CPPFLAGS'
10777 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10778 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10779 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10780
10781
10782
10783
10784 archive_cmds_need_lc_CXX=no
10785 allow_undefined_flag_CXX=
10786 always_export_symbols_CXX=no
10787 archive_expsym_cmds_CXX=
10788 export_dynamic_flag_spec_CXX=
10789 hardcode_direct_CXX=no
10790 hardcode_libdir_flag_spec_CXX=
10791 hardcode_libdir_flag_spec_ld_CXX=
10792 hardcode_libdir_separator_CXX=
10793 hardcode_minus_L_CXX=no
10794 hardcode_shlibpath_var_CXX=unsupported
10795 hardcode_automatic_CXX=no
10796 module_cmds_CXX=
10797 module_expsym_cmds_CXX=
10798 link_all_deplibs_CXX=unknown
10799 old_archive_cmds_CXX=$old_archive_cmds
10800 no_undefined_flag_CXX=
10801 whole_archive_flag_spec_CXX=
10802 enable_shared_with_static_runtimes_CXX=no
10803
10804 # Dependencies to place before and after the object being linked:
10805 predep_objects_CXX=
10806 postdep_objects_CXX=
10807 predeps_CXX=
10808 postdeps_CXX=
10809 compiler_lib_search_path_CXX=
10810
10811 # Source file extension for C++ test sources.
10812 ac_ext=cpp
10813
10814 # Object file extension for compiled C++ test sources.
10815 objext=o
10816 objext_CXX=$objext
10817
10818 # Code to be used in simple compile tests
10819 lt_simple_compile_test_code="int some_variable = 0;"
10820
10821 # Code to be used in simple link tests
10822 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10823
10824 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10825
10826 # If no C compiler was specified, use CC.
10827 LTCC=${LTCC-"$CC"}
10828
10829 # If no C compiler flags were specified, use CFLAGS.
10830 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10831
10832 # Allow CC to be a program name with arguments.
10833 compiler=$CC
10834
10835
10836 # save warnings/boilerplate of simple test code
10837 ac_outfile=conftest.$ac_objext
10838 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10839 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10840 _lt_compiler_boilerplate=`cat conftest.err`
10841 $rm conftest*
10842
10843 ac_outfile=conftest.$ac_objext
10844 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10845 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10846 _lt_linker_boilerplate=`cat conftest.err`
10847 $rm conftest*
10848
10849
10850 # Allow CC to be a program name with arguments.
10851 lt_save_CC=$CC
10852 lt_save_LD=$LD
10853 lt_save_GCC=$GCC
10854 GCC=$GXX
10855 lt_save_with_gnu_ld=$with_gnu_ld
10856 lt_save_path_LD=$lt_cv_path_LD
10857 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10858 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10859 else
10860 $as_unset lt_cv_prog_gnu_ld
10861 fi
10862 if test -n "${lt_cv_path_LDCXX+set}"; then
10863 lt_cv_path_LD=$lt_cv_path_LDCXX
10864 else
10865 $as_unset lt_cv_path_LD
10866 fi
10867 test -z "${LDCXX+set}" || LD=$LDCXX
10868 CC=${CXX-"c++"}
10869 compiler=$CC
10870 compiler_CXX=$CC
10871 for cc_temp in $compiler""; do
10872 case $cc_temp in
10873 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10874 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10875 \-*) ;;
10876 *) break;;
10877 esac
10878 done
10879 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10880
10881
10882 # We don't want -fno-exception wen compiling C++ code, so set the
10883 # no_builtin_flag separately
10884 if test "$GXX" = yes; then
10885 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10886 else
10887 lt_prog_compiler_no_builtin_flag_CXX=
10888 fi
10889
10890 if test "$GXX" = yes; then
10891 # Set up default GNU C++ configuration
10892
10893
10894 # Check whether --with-gnu-ld was given.
10895 if test "${with_gnu_ld+set}" = set; then
10896 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10897 else
10898 with_gnu_ld=no
10899 fi
10900
10901 ac_prog=ld
10902 if test "$GCC" = yes; then
10903 # Check if gcc -print-prog-name=ld gives a path.
10904 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10905 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10906 case $host in
10907 *-*-mingw*)
10908 # gcc leaves a trailing carriage return which upsets mingw
10909 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10910 *)
10911 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10912 esac
10913 case $ac_prog in
10914 # Accept absolute paths.
10915 [\\/]* | ?:[\\/]*)
10916 re_direlt='/[^/][^/]*/\.\./'
10917 # Canonicalize the pathname of ld
10918 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10919 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10920 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10921 done
10922 test -z "$LD" && LD="$ac_prog"
10923 ;;
10924 "")
10925 # If it fails, then pretend we aren't using GCC.
10926 ac_prog=ld
10927 ;;
10928 *)
10929 # If it is relative, then search for the first ld in PATH.
10930 with_gnu_ld=unknown
10931 ;;
10932 esac
10933 elif test "$with_gnu_ld" = yes; then
10934 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10935 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10936 else
10937 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10938 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10939 fi
10940 if test "${lt_cv_path_LD+set}" = set; then
10941 echo $ECHO_N "(cached) $ECHO_C" >&6
10942 else
10943 if test -z "$LD"; then
10944 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10945 for ac_dir in $PATH; do
10946 IFS="$lt_save_ifs"
10947 test -z "$ac_dir" && ac_dir=.
10948 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10949 lt_cv_path_LD="$ac_dir/$ac_prog"
10950 # Check to see if the program is GNU ld. I'd rather use --version,
10951 # but apparently some variants of GNU ld only accept -v.
10952 # Break only if it was the GNU/non-GNU ld that we prefer.
10953 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10954 *GNU* | *'with BFD'*)
10955 test "$with_gnu_ld" != no && break
10956 ;;
10957 *)
10958 test "$with_gnu_ld" != yes && break
10959 ;;
10960 esac
10961 fi
10962 done
10963 IFS="$lt_save_ifs"
10964 else
10965 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10966 fi
10967 fi
10968
10969 LD="$lt_cv_path_LD"
10970 if test -n "$LD"; then
10971 { echo "$as_me:$LINENO: result: $LD" >&5
10972 echo "${ECHO_T}$LD" >&6; }
10973 else
10974 { echo "$as_me:$LINENO: result: no" >&5
10975 echo "${ECHO_T}no" >&6; }
10976 fi
10977 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10978 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10979 { (exit 1); exit 1; }; }
10980 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10981 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10982 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10983 echo $ECHO_N "(cached) $ECHO_C" >&6
10984 else
10985 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10986 case `$LD -v 2>&1 </dev/null` in
10987 *GNU* | *'with BFD'*)
10988 lt_cv_prog_gnu_ld=yes
10989 ;;
10990 *)
10991 lt_cv_prog_gnu_ld=no
10992 ;;
10993 esac
10994 fi
10995 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10996 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10997 with_gnu_ld=$lt_cv_prog_gnu_ld
10998
10999
11000
11001 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11002 # archiving commands below assume that GNU ld is being used.
11003 if test "$with_gnu_ld" = yes; then
11004 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11005 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'
11006
11007 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11008 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11009
11010 # If archive_cmds runs LD, not CC, wlarc should be empty
11011 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11012 # investigate it a little bit more. (MM)
11013 wlarc='${wl}'
11014
11015 # ancient GNU ld didn't support --whole-archive et. al.
11016 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11017 grep 'no-whole-archive' > /dev/null; then
11018 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11019 else
11020 whole_archive_flag_spec_CXX=
11021 fi
11022 else
11023 with_gnu_ld=no
11024 wlarc=
11025
11026 # A generic and very simple default shared library creation
11027 # command for GNU C++ for the case where it uses the native
11028 # linker, instead of GNU ld. If possible, this setting should
11029 # overridden to take advantage of the native linker features on
11030 # the platform it is being used on.
11031 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11032 fi
11033
11034 # Commands to make compiler produce verbose output that lists
11035 # what "hidden" libraries, object files and flags are used when
11036 # linking a shared library.
11037 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11038
11039 else
11040 GXX=no
11041 with_gnu_ld=no
11042 wlarc=
11043 fi
11044
11045 # PORTME: fill in a description of your system's C++ link characteristics
11046 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11047 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11048 ld_shlibs_CXX=yes
11049 case $host_os in
11050 aix3*)
11051 # FIXME: insert proper C++ library support
11052 ld_shlibs_CXX=no
11053 ;;
11054 aix4* | aix5*)
11055 if test "$host_cpu" = ia64; then
11056 # On IA64, the linker does run time linking by default, so we don't
11057 # have to do anything special.
11058 aix_use_runtimelinking=no
11059 exp_sym_flag='-Bexport'
11060 no_entry_flag=""
11061 else
11062 aix_use_runtimelinking=no
11063
11064 # Test if we are trying to use run time linking or normal
11065 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11066 # need to do runtime linking.
11067 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11068 for ld_flag in $LDFLAGS; do
11069 case $ld_flag in
11070 *-brtl*)
11071 aix_use_runtimelinking=yes
11072 break
11073 ;;
11074 esac
11075 done
11076 ;;
11077 esac
11078
11079 exp_sym_flag='-bexport'
11080 no_entry_flag='-bnoentry'
11081 fi
11082
11083 # When large executables or shared objects are built, AIX ld can
11084 # have problems creating the table of contents. If linking a library
11085 # or program results in "error TOC overflow" add -mminimal-toc to
11086 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11087 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11088
11089 archive_cmds_CXX=''
11090 hardcode_direct_CXX=yes
11091 hardcode_libdir_separator_CXX=':'
11092 link_all_deplibs_CXX=yes
11093
11094 if test "$GXX" = yes; then
11095 case $host_os in aix4.[012]|aix4.[012].*)
11096 # We only want to do this on AIX 4.2 and lower, the check
11097 # below for broken collect2 doesn't work under 4.3+
11098 collect2name=`${CC} -print-prog-name=collect2`
11099 if test -f "$collect2name" && \
11100 strings "$collect2name" | grep resolve_lib_name >/dev/null
11101 then
11102 # We have reworked collect2
11103 :
11104 else
11105 # We have old collect2
11106 hardcode_direct_CXX=unsupported
11107 # It fails to find uninstalled libraries when the uninstalled
11108 # path is not listed in the libpath. Setting hardcode_minus_L
11109 # to unsupported forces relinking
11110 hardcode_minus_L_CXX=yes
11111 hardcode_libdir_flag_spec_CXX='-L$libdir'
11112 hardcode_libdir_separator_CXX=
11113 fi
11114 ;;
11115 esac
11116 shared_flag='-shared'
11117 if test "$aix_use_runtimelinking" = yes; then
11118 shared_flag="$shared_flag "'${wl}-G'
11119 fi
11120 else
11121 # not using gcc
11122 if test "$host_cpu" = ia64; then
11123 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11124 # chokes on -Wl,-G. The following line is correct:
11125 shared_flag='-G'
11126 else
11127 if test "$aix_use_runtimelinking" = yes; then
11128 shared_flag='${wl}-G'
11129 else
11130 shared_flag='${wl}-bM:SRE'
11131 fi
11132 fi
11133 fi
11134
11135 # It seems that -bexpall does not export symbols beginning with
11136 # underscore (_), so it is better to generate a list of symbols to export.
11137 always_export_symbols_CXX=yes
11138 if test "$aix_use_runtimelinking" = yes; then
11139 # Warning - without using the other runtime loading flags (-brtl),
11140 # -berok will link without error, but may produce a broken library.
11141 allow_undefined_flag_CXX='-berok'
11142 # Determine the default libpath from the value encoded in an empty executable.
11143 cat >conftest.$ac_ext <<_ACEOF
11144 /* confdefs.h. */
11145 _ACEOF
11146 cat confdefs.h >>conftest.$ac_ext
11147 cat >>conftest.$ac_ext <<_ACEOF
11148 /* end confdefs.h. */
11149
11150 int
11151 main ()
11152 {
11153
11154 ;
11155 return 0;
11156 }
11157 _ACEOF
11158 rm -f conftest.$ac_objext conftest$ac_exeext
11159 if { (ac_try="$ac_link"
11160 case "(($ac_try" in
11161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11162 *) ac_try_echo=$ac_try;;
11163 esac
11164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11165 (eval "$ac_link") 2>conftest.er1
11166 ac_status=$?
11167 grep -v '^ *+' conftest.er1 >conftest.err
11168 rm -f conftest.er1
11169 cat conftest.err >&5
11170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171 (exit $ac_status); } && {
11172 test -z "$ac_cxx_werror_flag" ||
11173 test ! -s conftest.err
11174 } && test -s conftest$ac_exeext &&
11175 $as_test_x conftest$ac_exeext; then
11176
11177 lt_aix_libpath_sed='
11178 /Import File Strings/,/^$/ {
11179 /^0/ {
11180 s/^0 *\(.*\)$/\1/
11181 p
11182 }
11183 }'
11184 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11185 # Check for a 64-bit object if we didn't find anything.
11186 if test -z "$aix_libpath"; then
11187 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11188 fi
11189 else
11190 echo "$as_me: failed program was:" >&5
11191 sed 's/^/| /' conftest.$ac_ext >&5
11192
11193
11194 fi
11195
11196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11197 conftest$ac_exeext conftest.$ac_ext
11198 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11199
11200 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11201
11202 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11203 else
11204 if test "$host_cpu" = ia64; then
11205 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11206 allow_undefined_flag_CXX="-z nodefs"
11207 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11208 else
11209 # Determine the default libpath from the value encoded in an empty executable.
11210 cat >conftest.$ac_ext <<_ACEOF
11211 /* confdefs.h. */
11212 _ACEOF
11213 cat confdefs.h >>conftest.$ac_ext
11214 cat >>conftest.$ac_ext <<_ACEOF
11215 /* end confdefs.h. */
11216
11217 int
11218 main ()
11219 {
11220
11221 ;
11222 return 0;
11223 }
11224 _ACEOF
11225 rm -f conftest.$ac_objext conftest$ac_exeext
11226 if { (ac_try="$ac_link"
11227 case "(($ac_try" in
11228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11229 *) ac_try_echo=$ac_try;;
11230 esac
11231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11232 (eval "$ac_link") 2>conftest.er1
11233 ac_status=$?
11234 grep -v '^ *+' conftest.er1 >conftest.err
11235 rm -f conftest.er1
11236 cat conftest.err >&5
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); } && {
11239 test -z "$ac_cxx_werror_flag" ||
11240 test ! -s conftest.err
11241 } && test -s conftest$ac_exeext &&
11242 $as_test_x conftest$ac_exeext; then
11243
11244 lt_aix_libpath_sed='
11245 /Import File Strings/,/^$/ {
11246 /^0/ {
11247 s/^0 *\(.*\)$/\1/
11248 p
11249 }
11250 }'
11251 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11252 # Check for a 64-bit object if we didn't find anything.
11253 if test -z "$aix_libpath"; then
11254 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11255 fi
11256 else
11257 echo "$as_me: failed program was:" >&5
11258 sed 's/^/| /' conftest.$ac_ext >&5
11259
11260
11261 fi
11262
11263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11264 conftest$ac_exeext conftest.$ac_ext
11265 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11266
11267 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11268 # Warning - without using the other run time loading flags,
11269 # -berok will link without error, but may produce a broken library.
11270 no_undefined_flag_CXX=' ${wl}-bernotok'
11271 allow_undefined_flag_CXX=' ${wl}-berok'
11272 # Exported symbols can be pulled into shared objects from archives
11273 whole_archive_flag_spec_CXX='$convenience'
11274 archive_cmds_need_lc_CXX=yes
11275 # This is similar to how AIX traditionally builds its shared libraries.
11276 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11277 fi
11278 fi
11279 ;;
11280
11281 beos*)
11282 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11283 allow_undefined_flag_CXX=unsupported
11284 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11285 # support --undefined. This deserves some investigation. FIXME
11286 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11287 else
11288 ld_shlibs_CXX=no
11289 fi
11290 ;;
11291
11292 chorus*)
11293 case $cc_basename in
11294 *)
11295 # FIXME: insert proper C++ library support
11296 ld_shlibs_CXX=no
11297 ;;
11298 esac
11299 ;;
11300
11301 cygwin* | mingw* | pw32*)
11302 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11303 # as there is no search path for DLLs.
11304 hardcode_libdir_flag_spec_CXX='-L$libdir'
11305 allow_undefined_flag_CXX=unsupported
11306 always_export_symbols_CXX=no
11307 enable_shared_with_static_runtimes_CXX=yes
11308
11309 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11310 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11311 # If the export-symbols file already is a .def file (1st line
11312 # is EXPORTS), use it as is; otherwise, prepend...
11313 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11314 cp $export_symbols $output_objdir/$soname.def;
11315 else
11316 echo EXPORTS > $output_objdir/$soname.def;
11317 cat $export_symbols >> $output_objdir/$soname.def;
11318 fi~
11319 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11320 else
11321 ld_shlibs_CXX=no
11322 fi
11323 ;;
11324 darwin* | rhapsody*)
11325 case $host_os in
11326 rhapsody* | darwin1.[012])
11327 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11328 ;;
11329 *) # Darwin 1.3 on
11330 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11331 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11332 else
11333 case ${MACOSX_DEPLOYMENT_TARGET} in
11334 10.[012])
11335 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11336 ;;
11337 10.*)
11338 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11339 ;;
11340 esac
11341 fi
11342 ;;
11343 esac
11344 archive_cmds_need_lc_CXX=no
11345 hardcode_direct_CXX=no
11346 hardcode_automatic_CXX=yes
11347 hardcode_shlibpath_var_CXX=unsupported
11348 whole_archive_flag_spec_CXX=''
11349 link_all_deplibs_CXX=yes
11350
11351 if test "$GXX" = yes ; then
11352 lt_int_apple_cc_single_mod=no
11353 output_verbose_link_cmd='echo'
11354 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11355 lt_int_apple_cc_single_mod=yes
11356 fi
11357 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11358 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11359 else
11360 archive_cmds_CXX='$CC -r -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'
11361 fi
11362 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11363 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11364 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11365 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}'
11366 else
11367 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -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}'
11368 fi
11369 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}'
11370 else
11371 case $cc_basename in
11372 xlc*)
11373 output_verbose_link_cmd='echo'
11374 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11375 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11376 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11377 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11378 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}'
11379 ;;
11380 *)
11381 ld_shlibs_CXX=no
11382 ;;
11383 esac
11384 fi
11385 ;;
11386
11387 dgux*)
11388 case $cc_basename in
11389 ec++*)
11390 # FIXME: insert proper C++ library support
11391 ld_shlibs_CXX=no
11392 ;;
11393 ghcx*)
11394 # Green Hills C++ Compiler
11395 # FIXME: insert proper C++ library support
11396 ld_shlibs_CXX=no
11397 ;;
11398 *)
11399 # FIXME: insert proper C++ library support
11400 ld_shlibs_CXX=no
11401 ;;
11402 esac
11403 ;;
11404 freebsd[12]*)
11405 # C++ shared libraries reported to be fairly broken before switch to ELF
11406 ld_shlibs_CXX=no
11407 ;;
11408 freebsd-elf*)
11409 archive_cmds_need_lc_CXX=no
11410 ;;
11411 freebsd* | dragonfly*)
11412 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11413 # conventions
11414 ld_shlibs_CXX=yes
11415 ;;
11416 gnu*)
11417 ;;
11418 hpux9*)
11419 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11420 hardcode_libdir_separator_CXX=:
11421 export_dynamic_flag_spec_CXX='${wl}-E'
11422 hardcode_direct_CXX=yes
11423 hardcode_minus_L_CXX=yes # Not in the search PATH,
11424 # but as the default
11425 # location of the library.
11426
11427 case $cc_basename in
11428 CC*)
11429 # FIXME: insert proper C++ library support
11430 ld_shlibs_CXX=no
11431 ;;
11432 aCC*)
11433 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'
11434 # Commands to make compiler produce verbose output that lists
11435 # what "hidden" libraries, object files and flags are used when
11436 # linking a shared library.
11437 #
11438 # There doesn't appear to be a way to prevent this compiler from
11439 # explicitly linking system object files so we need to strip them
11440 # from the output so that they don't get included in the library
11441 # dependencies.
11442 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'
11443 ;;
11444 *)
11445 if test "$GXX" = yes; then
11446 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'
11447 else
11448 # FIXME: insert proper C++ library support
11449 ld_shlibs_CXX=no
11450 fi
11451 ;;
11452 esac
11453 ;;
11454 hpux10*|hpux11*)
11455 if test $with_gnu_ld = no; then
11456 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11457 hardcode_libdir_separator_CXX=:
11458
11459 case $host_cpu in
11460 hppa*64*|ia64*) ;;
11461 *)
11462 export_dynamic_flag_spec_CXX='${wl}-E'
11463 ;;
11464 esac
11465 fi
11466 case $host_cpu in
11467 hppa*64*|ia64*)
11468 hardcode_direct_CXX=no
11469 hardcode_shlibpath_var_CXX=no
11470 ;;
11471 *)
11472 hardcode_direct_CXX=yes
11473 hardcode_minus_L_CXX=yes # Not in the search PATH,
11474 # but as the default
11475 # location of the library.
11476 ;;
11477 esac
11478
11479 case $cc_basename in
11480 CC*)
11481 # FIXME: insert proper C++ library support
11482 ld_shlibs_CXX=no
11483 ;;
11484 aCC*)
11485 case $host_cpu in
11486 hppa*64*)
11487 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11488 ;;
11489 ia64*)
11490 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11491 ;;
11492 *)
11493 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11494 ;;
11495 esac
11496 # Commands to make compiler produce verbose output that lists
11497 # what "hidden" libraries, object files and flags are used when
11498 # linking a shared library.
11499 #
11500 # There doesn't appear to be a way to prevent this compiler from
11501 # explicitly linking system object files so we need to strip them
11502 # from the output so that they don't get included in the library
11503 # dependencies.
11504 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'
11505 ;;
11506 *)
11507 if test "$GXX" = yes; then
11508 if test $with_gnu_ld = no; then
11509 case $host_cpu in
11510 hppa*64*)
11511 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11512 ;;
11513 ia64*)
11514 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11515 ;;
11516 *)
11517 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'
11518 ;;
11519 esac
11520 fi
11521 else
11522 # FIXME: insert proper C++ library support
11523 ld_shlibs_CXX=no
11524 fi
11525 ;;
11526 esac
11527 ;;
11528 interix[3-9]*)
11529 hardcode_direct_CXX=no
11530 hardcode_shlibpath_var_CXX=no
11531 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11532 export_dynamic_flag_spec_CXX='${wl}-E'
11533 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11534 # Instead, shared libraries are loaded at an image base (0x10000000 by
11535 # default) and relocated if they conflict, which is a slow very memory
11536 # consuming and fragmenting process. To avoid this, we pick a random,
11537 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11538 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11539 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11540 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11541 ;;
11542 irix5* | irix6*)
11543 case $cc_basename in
11544 CC*)
11545 # SGI C++
11546 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 ${output_objdir}/so_locations -o $lib'
11547
11548 # Archives containing C++ object files must be created using
11549 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11550 # necessary to make sure instantiated templates are included
11551 # in the archive.
11552 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11553 ;;
11554 *)
11555 if test "$GXX" = yes; then
11556 if test "$with_gnu_ld" = no; then
11557 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}${output_objdir}/so_locations -o $lib'
11558 else
11559 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'
11560 fi
11561 fi
11562 link_all_deplibs_CXX=yes
11563 ;;
11564 esac
11565 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11566 hardcode_libdir_separator_CXX=:
11567 ;;
11568 linux* | k*bsd*-gnu)
11569 case $cc_basename in
11570 KCC*)
11571 # Kuck and Associates, Inc. (KAI) C++ Compiler
11572
11573 # KCC will only create a shared library if the output file
11574 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11575 # to its proper name (with version) after linking.
11576 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'
11577 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'
11578 # Commands to make compiler produce verbose output that lists
11579 # what "hidden" libraries, object files and flags are used when
11580 # linking a shared library.
11581 #
11582 # There doesn't appear to be a way to prevent this compiler from
11583 # explicitly linking system object files so we need to strip them
11584 # from the output so that they don't get included in the library
11585 # dependencies.
11586 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'
11587
11588 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11589 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11590
11591 # Archives containing C++ object files must be created using
11592 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11593 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11594 ;;
11595 icpc*)
11596 # Intel C++
11597 with_gnu_ld=yes
11598 # version 8.0 and above of icpc choke on multiply defined symbols
11599 # if we add $predep_objects and $postdep_objects, however 7.1 and
11600 # earlier do not add the objects themselves.
11601 case `$CC -V 2>&1` in
11602 *"Version 7."*)
11603 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11604 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'
11605 ;;
11606 *) # Version 8.0 or newer
11607 tmp_idyn=
11608 case $host_cpu in
11609 ia64*) tmp_idyn=' -i_dynamic';;
11610 esac
11611 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11612 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11613 ;;
11614 esac
11615 archive_cmds_need_lc_CXX=no
11616 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11617 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11618 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11619 ;;
11620 pgCC*)
11621 # Portland Group C++ compiler
11622 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11623 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11624
11625 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11626 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11627 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11628 ;;
11629 cxx*)
11630 # Compaq C++
11631 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11632 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'
11633
11634 runpath_var=LD_RUN_PATH
11635 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11636 hardcode_libdir_separator_CXX=:
11637
11638 # Commands to make compiler produce verbose output that lists
11639 # what "hidden" libraries, object files and flags are used when
11640 # linking a shared library.
11641 #
11642 # There doesn't appear to be a way to prevent this compiler from
11643 # explicitly linking system object files so we need to strip them
11644 # from the output so that they don't get included in the library
11645 # dependencies.
11646 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'
11647 ;;
11648 *)
11649 case `$CC -V 2>&1 | sed 5q` in
11650 *Sun\ C*)
11651 # Sun C++ 5.9
11652 no_undefined_flag_CXX=' -zdefs'
11653 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11654 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11655 hardcode_libdir_flag_spec_CXX='-R$libdir'
11656 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11657
11658 # Not sure whether something based on
11659 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11660 # would be better.
11661 output_verbose_link_cmd='echo'
11662
11663 # Archives containing C++ object files must be created using
11664 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11665 # necessary to make sure instantiated templates are included
11666 # in the archive.
11667 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11668 ;;
11669 esac
11670 ;;
11671 esac
11672 ;;
11673 lynxos*)
11674 # FIXME: insert proper C++ library support
11675 ld_shlibs_CXX=no
11676 ;;
11677 m88k*)
11678 # FIXME: insert proper C++ library support
11679 ld_shlibs_CXX=no
11680 ;;
11681 mvs*)
11682 case $cc_basename in
11683 cxx*)
11684 # FIXME: insert proper C++ library support
11685 ld_shlibs_CXX=no
11686 ;;
11687 *)
11688 # FIXME: insert proper C++ library support
11689 ld_shlibs_CXX=no
11690 ;;
11691 esac
11692 ;;
11693 netbsd*)
11694 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11695 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11696 wlarc=
11697 hardcode_libdir_flag_spec_CXX='-R$libdir'
11698 hardcode_direct_CXX=yes
11699 hardcode_shlibpath_var_CXX=no
11700 fi
11701 # Workaround some broken pre-1.5 toolchains
11702 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11703 ;;
11704 openbsd2*)
11705 # C++ shared libraries are fairly broken
11706 ld_shlibs_CXX=no
11707 ;;
11708 openbsd*)
11709 if test -f /usr/libexec/ld.so; then
11710 hardcode_direct_CXX=yes
11711 hardcode_shlibpath_var_CXX=no
11712 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11713 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11714 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11715 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11716 export_dynamic_flag_spec_CXX='${wl}-E'
11717 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11718 fi
11719 output_verbose_link_cmd='echo'
11720 else
11721 ld_shlibs_CXX=no
11722 fi
11723 ;;
11724 osf3*)
11725 case $cc_basename in
11726 KCC*)
11727 # Kuck and Associates, Inc. (KAI) C++ Compiler
11728
11729 # KCC will only create a shared library if the output file
11730 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11731 # to its proper name (with version) after linking.
11732 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'
11733
11734 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11735 hardcode_libdir_separator_CXX=:
11736
11737 # Archives containing C++ object files must be created using
11738 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11739 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11740
11741 ;;
11742 RCC*)
11743 # Rational C++ 2.4.1
11744 # FIXME: insert proper C++ library support
11745 ld_shlibs_CXX=no
11746 ;;
11747 cxx*)
11748 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11749 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 ${output_objdir}/so_locations -o $lib'
11750
11751 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11752 hardcode_libdir_separator_CXX=:
11753
11754 # Commands to make compiler produce verbose output that lists
11755 # what "hidden" libraries, object files and flags are used when
11756 # linking a shared library.
11757 #
11758 # There doesn't appear to be a way to prevent this compiler from
11759 # explicitly linking system object files so we need to strip them
11760 # from the output so that they don't get included in the library
11761 # dependencies.
11762 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'
11763 ;;
11764 *)
11765 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11766 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11767 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}${output_objdir}/so_locations -o $lib'
11768
11769 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11770 hardcode_libdir_separator_CXX=:
11771
11772 # Commands to make compiler produce verbose output that lists
11773 # what "hidden" libraries, object files and flags are used when
11774 # linking a shared library.
11775 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11776
11777 else
11778 # FIXME: insert proper C++ library support
11779 ld_shlibs_CXX=no
11780 fi
11781 ;;
11782 esac
11783 ;;
11784 osf4* | osf5*)
11785 case $cc_basename in
11786 KCC*)
11787 # Kuck and Associates, Inc. (KAI) C++ Compiler
11788
11789 # KCC will only create a shared library if the output file
11790 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11791 # to its proper name (with version) after linking.
11792 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'
11793
11794 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11795 hardcode_libdir_separator_CXX=:
11796
11797 # Archives containing C++ object files must be created using
11798 # the KAI C++ compiler.
11799 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11800 ;;
11801 RCC*)
11802 # Rational C++ 2.4.1
11803 # FIXME: insert proper C++ library support
11804 ld_shlibs_CXX=no
11805 ;;
11806 cxx*)
11807 allow_undefined_flag_CXX=' -expect_unresolved \*'
11808 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 ${output_objdir}/so_locations -o $lib'
11809 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11810 echo "-hidden">> $lib.exp~
11811 $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 ${output_objdir}/so_locations -o $lib~
11812 $rm $lib.exp'
11813
11814 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11815 hardcode_libdir_separator_CXX=:
11816
11817 # Commands to make compiler produce verbose output that lists
11818 # what "hidden" libraries, object files and flags are used when
11819 # linking a shared library.
11820 #
11821 # There doesn't appear to be a way to prevent this compiler from
11822 # explicitly linking system object files so we need to strip them
11823 # from the output so that they don't get included in the library
11824 # dependencies.
11825 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'
11826 ;;
11827 *)
11828 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11829 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11830 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}${output_objdir}/so_locations -o $lib'
11831
11832 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11833 hardcode_libdir_separator_CXX=:
11834
11835 # Commands to make compiler produce verbose output that lists
11836 # what "hidden" libraries, object files and flags are used when
11837 # linking a shared library.
11838 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11839
11840 else
11841 # FIXME: insert proper C++ library support
11842 ld_shlibs_CXX=no
11843 fi
11844 ;;
11845 esac
11846 ;;
11847 psos*)
11848 # FIXME: insert proper C++ library support
11849 ld_shlibs_CXX=no
11850 ;;
11851 sunos4*)
11852 case $cc_basename in
11853 CC*)
11854 # Sun C++ 4.x
11855 # FIXME: insert proper C++ library support
11856 ld_shlibs_CXX=no
11857 ;;
11858 lcc*)
11859 # Lucid
11860 # FIXME: insert proper C++ library support
11861 ld_shlibs_CXX=no
11862 ;;
11863 *)
11864 # FIXME: insert proper C++ library support
11865 ld_shlibs_CXX=no
11866 ;;
11867 esac
11868 ;;
11869 solaris*)
11870 case $cc_basename in
11871 CC*)
11872 # Sun C++ 4.2, 5.x and Centerline C++
11873 archive_cmds_need_lc_CXX=yes
11874 no_undefined_flag_CXX=' -zdefs'
11875 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11876 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11877 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11878
11879 hardcode_libdir_flag_spec_CXX='-R$libdir'
11880 hardcode_shlibpath_var_CXX=no
11881 case $host_os in
11882 solaris2.[0-5] | solaris2.[0-5].*) ;;
11883 *)
11884 # The compiler driver will combine and reorder linker options,
11885 # but understands `-z linker_flag'.
11886 # Supported since Solaris 2.6 (maybe 2.5.1?)
11887 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11888 ;;
11889 esac
11890 link_all_deplibs_CXX=yes
11891
11892 output_verbose_link_cmd='echo'
11893
11894 # Archives containing C++ object files must be created using
11895 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11896 # necessary to make sure instantiated templates are included
11897 # in the archive.
11898 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11899 ;;
11900 gcx*)
11901 # Green Hills C++ Compiler
11902 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11903
11904 # The C++ compiler must be used to create the archive.
11905 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11906 ;;
11907 *)
11908 # GNU C++ compiler with Solaris linker
11909 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11910 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11911 if $CC --version | grep -v '^2\.7' > /dev/null; then
11912 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11913 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11914 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11915
11916 # Commands to make compiler produce verbose output that lists
11917 # what "hidden" libraries, object files and flags are used when
11918 # linking a shared library.
11919 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11920 else
11921 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11922 # platform.
11923 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11924 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11925 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11926
11927 # Commands to make compiler produce verbose output that lists
11928 # what "hidden" libraries, object files and flags are used when
11929 # linking a shared library.
11930 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11931 fi
11932
11933 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11934 case $host_os in
11935 solaris2.[0-5] | solaris2.[0-5].*) ;;
11936 *)
11937 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11938 ;;
11939 esac
11940 fi
11941 ;;
11942 esac
11943 ;;
11944 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11945 no_undefined_flag_CXX='${wl}-z,text'
11946 archive_cmds_need_lc_CXX=no
11947 hardcode_shlibpath_var_CXX=no
11948 runpath_var='LD_RUN_PATH'
11949
11950 case $cc_basename in
11951 CC*)
11952 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11953 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11954 ;;
11955 *)
11956 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11957 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11958 ;;
11959 esac
11960 ;;
11961 sysv5* | sco3.2v5* | sco5v6*)
11962 # Note: We can NOT use -z defs as we might desire, because we do not
11963 # link with -lc, and that would cause any symbols used from libc to
11964 # always be unresolved, which means just about no library would
11965 # ever link correctly. If we're not using GNU ld we use -z text
11966 # though, which does catch some bad symbols but isn't as heavy-handed
11967 # as -z defs.
11968 # For security reasons, it is highly recommended that you always
11969 # use absolute paths for naming shared libraries, and exclude the
11970 # DT_RUNPATH tag from executables and libraries. But doing so
11971 # requires that you compile everything twice, which is a pain.
11972 # So that behaviour is only enabled if SCOABSPATH is set to a
11973 # non-empty value in the environment. Most likely only useful for
11974 # creating official distributions of packages.
11975 # This is a hack until libtool officially supports absolute path
11976 # names for shared libraries.
11977 no_undefined_flag_CXX='${wl}-z,text'
11978 allow_undefined_flag_CXX='${wl}-z,nodefs'
11979 archive_cmds_need_lc_CXX=no
11980 hardcode_shlibpath_var_CXX=no
11981 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11982 hardcode_libdir_separator_CXX=':'
11983 link_all_deplibs_CXX=yes
11984 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11985 runpath_var='LD_RUN_PATH'
11986
11987 case $cc_basename in
11988 CC*)
11989 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11990 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11991 ;;
11992 *)
11993 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11994 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11995 ;;
11996 esac
11997 ;;
11998 tandem*)
11999 case $cc_basename in
12000 NCC*)
12001 # NonStop-UX NCC 3.20
12002 # FIXME: insert proper C++ library support
12003 ld_shlibs_CXX=no
12004 ;;
12005 *)
12006 # FIXME: insert proper C++ library support
12007 ld_shlibs_CXX=no
12008 ;;
12009 esac
12010 ;;
12011 vxworks*)
12012 # FIXME: insert proper C++ library support
12013 ld_shlibs_CXX=no
12014 ;;
12015 *)
12016 # FIXME: insert proper C++ library support
12017 ld_shlibs_CXX=no
12018 ;;
12019 esac
12020 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12021 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12022 test "$ld_shlibs_CXX" = no && can_build_shared=no
12023
12024 GCC_CXX="$GXX"
12025 LD_CXX="$LD"
12026
12027
12028 cat > conftest.$ac_ext <<EOF
12029 class Foo
12030 {
12031 public:
12032 Foo (void) { a = 0; }
12033 private:
12034 int a;
12035 };
12036 EOF
12037
12038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12039 (eval $ac_compile) 2>&5
12040 ac_status=$?
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); }; then
12043 # Parse the compiler output and extract the necessary
12044 # objects, libraries and library flags.
12045
12046 # Sentinel used to keep track of whether or not we are before
12047 # the conftest object file.
12048 pre_test_object_deps_done=no
12049
12050 # The `*' in the case matches for architectures that use `case' in
12051 # $output_verbose_cmd can trigger glob expansion during the loop
12052 # eval without this substitution.
12053 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12054
12055 for p in `eval $output_verbose_link_cmd`; do
12056 case $p in
12057
12058 -L* | -R* | -l*)
12059 # Some compilers place space between "-{L,R}" and the path.
12060 # Remove the space.
12061 if test $p = "-L" \
12062 || test $p = "-R"; then
12063 prev=$p
12064 continue
12065 else
12066 prev=
12067 fi
12068
12069 if test "$pre_test_object_deps_done" = no; then
12070 case $p in
12071 -L* | -R*)
12072 # Internal compiler library paths should come after those
12073 # provided the user. The postdeps already come after the
12074 # user supplied libs so there is no need to process them.
12075 if test -z "$compiler_lib_search_path_CXX"; then
12076 compiler_lib_search_path_CXX="${prev}${p}"
12077 else
12078 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12079 fi
12080 ;;
12081 # The "-l" case would never come before the object being
12082 # linked, so don't bother handling this case.
12083 esac
12084 else
12085 if test -z "$postdeps_CXX"; then
12086 postdeps_CXX="${prev}${p}"
12087 else
12088 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12089 fi
12090 fi
12091 ;;
12092
12093 *.$objext)
12094 # This assumes that the test object file only shows up
12095 # once in the compiler output.
12096 if test "$p" = "conftest.$objext"; then
12097 pre_test_object_deps_done=yes
12098 continue
12099 fi
12100
12101 if test "$pre_test_object_deps_done" = no; then
12102 if test -z "$predep_objects_CXX"; then
12103 predep_objects_CXX="$p"
12104 else
12105 predep_objects_CXX="$predep_objects_CXX $p"
12106 fi
12107 else
12108 if test -z "$postdep_objects_CXX"; then
12109 postdep_objects_CXX="$p"
12110 else
12111 postdep_objects_CXX="$postdep_objects_CXX $p"
12112 fi
12113 fi
12114 ;;
12115
12116 *) ;; # Ignore the rest.
12117
12118 esac
12119 done
12120
12121 # Clean up.
12122 rm -f a.out a.exe
12123 else
12124 echo "libtool.m4: error: problem compiling CXX test program"
12125 fi
12126
12127 $rm -f confest.$objext
12128
12129 # PORTME: override above test on systems where it is broken
12130 case $host_os in
12131 interix[3-9]*)
12132 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12133 # hack all around it, let's just trust "g++" to DTRT.
12134 predep_objects_CXX=
12135 postdep_objects_CXX=
12136 postdeps_CXX=
12137 ;;
12138
12139 linux*)
12140 case `$CC -V 2>&1 | sed 5q` in
12141 *Sun\ C*)
12142 # Sun C++ 5.9
12143 #
12144 # The more standards-conforming stlport4 library is
12145 # incompatible with the Cstd library. Avoid specifying
12146 # it if it's in CXXFLAGS. Ignore libCrun as
12147 # -library=stlport4 depends on it.
12148 case " $CXX $CXXFLAGS " in
12149 *" -library=stlport4 "*)
12150 solaris_use_stlport4=yes
12151 ;;
12152 esac
12153 if test "$solaris_use_stlport4" != yes; then
12154 postdeps_CXX='-library=Cstd -library=Crun'
12155 fi
12156 ;;
12157 esac
12158 ;;
12159
12160 solaris*)
12161 case $cc_basename in
12162 CC*)
12163 # The more standards-conforming stlport4 library is
12164 # incompatible with the Cstd library. Avoid specifying
12165 # it if it's in CXXFLAGS. Ignore libCrun as
12166 # -library=stlport4 depends on it.
12167 case " $CXX $CXXFLAGS " in
12168 *" -library=stlport4 "*)
12169 solaris_use_stlport4=yes
12170 ;;
12171 esac
12172
12173 # Adding this requires a known-good setup of shared libraries for
12174 # Sun compiler versions before 5.6, else PIC objects from an old
12175 # archive will be linked into the output, leading to subtle bugs.
12176 if test "$solaris_use_stlport4" != yes; then
12177 postdeps_CXX='-library=Cstd -library=Crun'
12178 fi
12179 ;;
12180 esac
12181 ;;
12182 esac
12183
12184
12185 case " $postdeps_CXX " in
12186 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12187 esac
12188
12189 lt_prog_compiler_wl_CXX=
12190 lt_prog_compiler_pic_CXX=
12191 lt_prog_compiler_static_CXX=
12192
12193 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12194 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12195
12196 # C++ specific cases for pic, static, wl, etc.
12197 if test "$GXX" = yes; then
12198 lt_prog_compiler_wl_CXX='-Wl,'
12199 lt_prog_compiler_static_CXX='-static'
12200
12201 case $host_os in
12202 aix*)
12203 # All AIX code is PIC.
12204 if test "$host_cpu" = ia64; then
12205 # AIX 5 now supports IA64 processor
12206 lt_prog_compiler_static_CXX='-Bstatic'
12207 fi
12208 ;;
12209 amigaos*)
12210 # FIXME: we need at least 68020 code to build shared libraries, but
12211 # adding the `-m68020' flag to GCC prevents building anything better,
12212 # like `-m68040'.
12213 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12214 ;;
12215 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12216 # PIC is the default for these OSes.
12217 ;;
12218 mingw* | cygwin* | os2* | pw32*)
12219 # This hack is so that the source file can tell whether it is being
12220 # built for inclusion in a dll (and should export symbols for example).
12221 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12222 # (--disable-auto-import) libraries
12223 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12224 ;;
12225 darwin* | rhapsody*)
12226 # PIC is the default on this platform
12227 # Common symbols not allowed in MH_DYLIB files
12228 lt_prog_compiler_pic_CXX='-fno-common'
12229 ;;
12230 *djgpp*)
12231 # DJGPP does not support shared libraries at all
12232 lt_prog_compiler_pic_CXX=
12233 ;;
12234 interix[3-9]*)
12235 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12236 # Instead, we relocate shared libraries at runtime.
12237 ;;
12238 sysv4*MP*)
12239 if test -d /usr/nec; then
12240 lt_prog_compiler_pic_CXX=-Kconform_pic
12241 fi
12242 ;;
12243 hpux*)
12244 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12245 # not for PA HP-UX.
12246 case $host_cpu in
12247 hppa*64*|ia64*)
12248 ;;
12249 *)
12250 lt_prog_compiler_pic_CXX='-fPIC'
12251 ;;
12252 esac
12253 ;;
12254 *)
12255 lt_prog_compiler_pic_CXX='-fPIC'
12256 ;;
12257 esac
12258 else
12259 case $host_os in
12260 aix4* | aix5*)
12261 # All AIX code is PIC.
12262 if test "$host_cpu" = ia64; then
12263 # AIX 5 now supports IA64 processor
12264 lt_prog_compiler_static_CXX='-Bstatic'
12265 else
12266 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12267 fi
12268 ;;
12269 chorus*)
12270 case $cc_basename in
12271 cxch68*)
12272 # Green Hills C++ Compiler
12273 # _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"
12274 ;;
12275 esac
12276 ;;
12277 darwin*)
12278 # PIC is the default on this platform
12279 # Common symbols not allowed in MH_DYLIB files
12280 case $cc_basename in
12281 xlc*)
12282 lt_prog_compiler_pic_CXX='-qnocommon'
12283 lt_prog_compiler_wl_CXX='-Wl,'
12284 ;;
12285 esac
12286 ;;
12287 dgux*)
12288 case $cc_basename in
12289 ec++*)
12290 lt_prog_compiler_pic_CXX='-KPIC'
12291 ;;
12292 ghcx*)
12293 # Green Hills C++ Compiler
12294 lt_prog_compiler_pic_CXX='-pic'
12295 ;;
12296 *)
12297 ;;
12298 esac
12299 ;;
12300 freebsd* | dragonfly*)
12301 # FreeBSD uses GNU C++
12302 ;;
12303 hpux9* | hpux10* | hpux11*)
12304 case $cc_basename in
12305 CC*)
12306 lt_prog_compiler_wl_CXX='-Wl,'
12307 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12308 if test "$host_cpu" != ia64; then
12309 lt_prog_compiler_pic_CXX='+Z'
12310 fi
12311 ;;
12312 aCC*)
12313 lt_prog_compiler_wl_CXX='-Wl,'
12314 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12315 case $host_cpu in
12316 hppa*64*|ia64*)
12317 # +Z the default
12318 ;;
12319 *)
12320 lt_prog_compiler_pic_CXX='+Z'
12321 ;;
12322 esac
12323 ;;
12324 *)
12325 ;;
12326 esac
12327 ;;
12328 interix*)
12329 # This is c89, which is MS Visual C++ (no shared libs)
12330 # Anyone wants to do a port?
12331 ;;
12332 irix5* | irix6* | nonstopux*)
12333 case $cc_basename in
12334 CC*)
12335 lt_prog_compiler_wl_CXX='-Wl,'
12336 lt_prog_compiler_static_CXX='-non_shared'
12337 # CC pic flag -KPIC is the default.
12338 ;;
12339 *)
12340 ;;
12341 esac
12342 ;;
12343 linux* | k*bsd*-gnu)
12344 case $cc_basename in
12345 KCC*)
12346 # KAI C++ Compiler
12347 lt_prog_compiler_wl_CXX='--backend -Wl,'
12348 lt_prog_compiler_pic_CXX='-fPIC'
12349 ;;
12350 icpc* | ecpc*)
12351 # Intel C++
12352 lt_prog_compiler_wl_CXX='-Wl,'
12353 lt_prog_compiler_pic_CXX='-KPIC'
12354 lt_prog_compiler_static_CXX='-static'
12355 ;;
12356 pgCC*)
12357 # Portland Group C++ compiler.
12358 lt_prog_compiler_wl_CXX='-Wl,'
12359 lt_prog_compiler_pic_CXX='-fpic'
12360 lt_prog_compiler_static_CXX='-Bstatic'
12361 ;;
12362 cxx*)
12363 # Compaq C++
12364 # Make sure the PIC flag is empty. It appears that all Alpha
12365 # Linux and Compaq Tru64 Unix objects are PIC.
12366 lt_prog_compiler_pic_CXX=
12367 lt_prog_compiler_static_CXX='-non_shared'
12368 ;;
12369 *)
12370 case `$CC -V 2>&1 | sed 5q` in
12371 *Sun\ C*)
12372 # Sun C++ 5.9
12373 lt_prog_compiler_pic_CXX='-KPIC'
12374 lt_prog_compiler_static_CXX='-Bstatic'
12375 lt_prog_compiler_wl_CXX='-Qoption ld '
12376 ;;
12377 esac
12378 ;;
12379 esac
12380 ;;
12381 lynxos*)
12382 ;;
12383 m88k*)
12384 ;;
12385 mvs*)
12386 case $cc_basename in
12387 cxx*)
12388 lt_prog_compiler_pic_CXX='-W c,exportall'
12389 ;;
12390 *)
12391 ;;
12392 esac
12393 ;;
12394 netbsd*)
12395 ;;
12396 osf3* | osf4* | osf5*)
12397 case $cc_basename in
12398 KCC*)
12399 lt_prog_compiler_wl_CXX='--backend -Wl,'
12400 ;;
12401 RCC*)
12402 # Rational C++ 2.4.1
12403 lt_prog_compiler_pic_CXX='-pic'
12404 ;;
12405 cxx*)
12406 # Digital/Compaq C++
12407 lt_prog_compiler_wl_CXX='-Wl,'
12408 # Make sure the PIC flag is empty. It appears that all Alpha
12409 # Linux and Compaq Tru64 Unix objects are PIC.
12410 lt_prog_compiler_pic_CXX=
12411 lt_prog_compiler_static_CXX='-non_shared'
12412 ;;
12413 *)
12414 ;;
12415 esac
12416 ;;
12417 psos*)
12418 ;;
12419 solaris*)
12420 case $cc_basename in
12421 CC*)
12422 # Sun C++ 4.2, 5.x and Centerline C++
12423 lt_prog_compiler_pic_CXX='-KPIC'
12424 lt_prog_compiler_static_CXX='-Bstatic'
12425 lt_prog_compiler_wl_CXX='-Qoption ld '
12426 ;;
12427 gcx*)
12428 # Green Hills C++ Compiler
12429 lt_prog_compiler_pic_CXX='-PIC'
12430 ;;
12431 *)
12432 ;;
12433 esac
12434 ;;
12435 sunos4*)
12436 case $cc_basename in
12437 CC*)
12438 # Sun C++ 4.x
12439 lt_prog_compiler_pic_CXX='-pic'
12440 lt_prog_compiler_static_CXX='-Bstatic'
12441 ;;
12442 lcc*)
12443 # Lucid
12444 lt_prog_compiler_pic_CXX='-pic'
12445 ;;
12446 *)
12447 ;;
12448 esac
12449 ;;
12450 tandem*)
12451 case $cc_basename in
12452 NCC*)
12453 # NonStop-UX NCC 3.20
12454 lt_prog_compiler_pic_CXX='-KPIC'
12455 ;;
12456 *)
12457 ;;
12458 esac
12459 ;;
12460 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12461 case $cc_basename in
12462 CC*)
12463 lt_prog_compiler_wl_CXX='-Wl,'
12464 lt_prog_compiler_pic_CXX='-KPIC'
12465 lt_prog_compiler_static_CXX='-Bstatic'
12466 ;;
12467 esac
12468 ;;
12469 vxworks*)
12470 ;;
12471 *)
12472 lt_prog_compiler_can_build_shared_CXX=no
12473 ;;
12474 esac
12475 fi
12476
12477 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12478 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12479
12480 #
12481 # Check to make sure the PIC flag actually works.
12482 #
12483 if test -n "$lt_prog_compiler_pic_CXX"; then
12484
12485 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12486 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12487 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12488 echo $ECHO_N "(cached) $ECHO_C" >&6
12489 else
12490 lt_prog_compiler_pic_works_CXX=no
12491 ac_outfile=conftest.$ac_objext
12492 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12493 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12494 # Insert the option either (1) after the last *FLAGS variable, or
12495 # (2) before a word containing "conftest.", or (3) at the end.
12496 # Note that $ac_compile itself does not contain backslashes and begins
12497 # with a dollar sign (not a hyphen), so the echo should work correctly.
12498 # The option is referenced via a variable to avoid confusing sed.
12499 lt_compile=`echo "$ac_compile" | $SED \
12500 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12501 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12502 -e 's:$: $lt_compiler_flag:'`
12503 (eval echo "\"\$as_me:12504: $lt_compile\"" >&5)
12504 (eval "$lt_compile" 2>conftest.err)
12505 ac_status=$?
12506 cat conftest.err >&5
12507 echo "$as_me:12508: \$? = $ac_status" >&5
12508 if (exit $ac_status) && test -s "$ac_outfile"; then
12509 # The compiler can only warn and ignore the option if not recognized
12510 # So say no if there are warnings other than the usual output.
12511 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12512 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12513 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12514 lt_prog_compiler_pic_works_CXX=yes
12515 fi
12516 fi
12517 $rm conftest*
12518
12519 fi
12520 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12521 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12522
12523 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12524 case $lt_prog_compiler_pic_CXX in
12525 "" | " "*) ;;
12526 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12527 esac
12528 else
12529 lt_prog_compiler_pic_CXX=
12530 lt_prog_compiler_can_build_shared_CXX=no
12531 fi
12532
12533 fi
12534 case $host_os in
12535 # For platforms which do not support PIC, -DPIC is meaningless:
12536 *djgpp*)
12537 lt_prog_compiler_pic_CXX=
12538 ;;
12539 *)
12540 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12541 ;;
12542 esac
12543
12544 #
12545 # Check to make sure the static flag actually works.
12546 #
12547 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12548 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12549 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12550 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12551 echo $ECHO_N "(cached) $ECHO_C" >&6
12552 else
12553 lt_prog_compiler_static_works_CXX=no
12554 save_LDFLAGS="$LDFLAGS"
12555 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12556 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12557 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12558 # The linker can only warn and ignore the option if not recognized
12559 # So say no if there are warnings
12560 if test -s conftest.err; then
12561 # Append any errors to the config.log.
12562 cat conftest.err 1>&5
12563 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12564 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12565 if diff conftest.exp conftest.er2 >/dev/null; then
12566 lt_prog_compiler_static_works_CXX=yes
12567 fi
12568 else
12569 lt_prog_compiler_static_works_CXX=yes
12570 fi
12571 fi
12572 $rm conftest*
12573 LDFLAGS="$save_LDFLAGS"
12574
12575 fi
12576 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12577 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12578
12579 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12580 :
12581 else
12582 lt_prog_compiler_static_CXX=
12583 fi
12584
12585
12586 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12587 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12588 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12589 echo $ECHO_N "(cached) $ECHO_C" >&6
12590 else
12591 lt_cv_prog_compiler_c_o_CXX=no
12592 $rm -r conftest 2>/dev/null
12593 mkdir conftest
12594 cd conftest
12595 mkdir out
12596 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12597
12598 lt_compiler_flag="-o out/conftest2.$ac_objext"
12599 # Insert the option either (1) after the last *FLAGS variable, or
12600 # (2) before a word containing "conftest.", or (3) at the end.
12601 # Note that $ac_compile itself does not contain backslashes and begins
12602 # with a dollar sign (not a hyphen), so the echo should work correctly.
12603 lt_compile=`echo "$ac_compile" | $SED \
12604 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12605 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12606 -e 's:$: $lt_compiler_flag:'`
12607 (eval echo "\"\$as_me:12608: $lt_compile\"" >&5)
12608 (eval "$lt_compile" 2>out/conftest.err)
12609 ac_status=$?
12610 cat out/conftest.err >&5
12611 echo "$as_me:12612: \$? = $ac_status" >&5
12612 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12613 then
12614 # The compiler can only warn and ignore the option if not recognized
12615 # So say no if there are warnings
12616 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12617 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12618 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12619 lt_cv_prog_compiler_c_o_CXX=yes
12620 fi
12621 fi
12622 chmod u+w . 2>&5
12623 $rm conftest*
12624 # SGI C++ compiler will create directory out/ii_files/ for
12625 # template instantiation
12626 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12627 $rm out/* && rmdir out
12628 cd ..
12629 rmdir conftest
12630 $rm conftest*
12631
12632 fi
12633 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12634 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12635
12636
12637 hard_links="nottested"
12638 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12639 # do not overwrite the value of need_locks provided by the user
12640 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12641 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12642 hard_links=yes
12643 $rm conftest*
12644 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12645 touch conftest.a
12646 ln conftest.a conftest.b 2>&5 || hard_links=no
12647 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12648 { echo "$as_me:$LINENO: result: $hard_links" >&5
12649 echo "${ECHO_T}$hard_links" >&6; }
12650 if test "$hard_links" = no; then
12651 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12652 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12653 need_locks=warn
12654 fi
12655 else
12656 need_locks=no
12657 fi
12658
12659 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12660 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12661
12662 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12663 case $host_os in
12664 aix4* | aix5*)
12665 # If we're using GNU nm, then we don't want the "-C" option.
12666 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12667 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12668 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'
12669 else
12670 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'
12671 fi
12672 ;;
12673 pw32*)
12674 export_symbols_cmds_CXX="$ltdll_cmds"
12675 ;;
12676 cygwin* | mingw*)
12677 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12678 ;;
12679 *)
12680 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12681 ;;
12682 esac
12683
12684 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12685 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12686 test "$ld_shlibs_CXX" = no && can_build_shared=no
12687
12688 #
12689 # Do we need to explicitly link libc?
12690 #
12691 case "x$archive_cmds_need_lc_CXX" in
12692 x|xyes)
12693 # Assume -lc should be added
12694 archive_cmds_need_lc_CXX=yes
12695
12696 if test "$enable_shared" = yes && test "$GCC" = yes; then
12697 case $archive_cmds_CXX in
12698 *'~'*)
12699 # FIXME: we may have to deal with multi-command sequences.
12700 ;;
12701 '$CC '*)
12702 # Test whether the compiler implicitly links with -lc since on some
12703 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12704 # to ld, don't add -lc before -lgcc.
12705 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12706 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12707 $rm conftest*
12708 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12709
12710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12711 (eval $ac_compile) 2>&5
12712 ac_status=$?
12713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714 (exit $ac_status); } 2>conftest.err; then
12715 soname=conftest
12716 lib=conftest
12717 libobjs=conftest.$ac_objext
12718 deplibs=
12719 wl=$lt_prog_compiler_wl_CXX
12720 pic_flag=$lt_prog_compiler_pic_CXX
12721 compiler_flags=-v
12722 linker_flags=-v
12723 verstring=
12724 output_objdir=.
12725 libname=conftest
12726 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12727 allow_undefined_flag_CXX=
12728 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12729 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12730 ac_status=$?
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); }
12733 then
12734 archive_cmds_need_lc_CXX=no
12735 else
12736 archive_cmds_need_lc_CXX=yes
12737 fi
12738 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12739 else
12740 cat conftest.err 1>&5
12741 fi
12742 $rm conftest*
12743 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12744 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12745 ;;
12746 esac
12747 fi
12748 ;;
12749 esac
12750
12751 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12752 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12753 library_names_spec=
12754 libname_spec='lib$name'
12755 soname_spec=
12756 shrext_cmds=".so"
12757 postinstall_cmds=
12758 postuninstall_cmds=
12759 finish_cmds=
12760 finish_eval=
12761 shlibpath_var=
12762 shlibpath_overrides_runpath=unknown
12763 version_type=none
12764 dynamic_linker="$host_os ld.so"
12765 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12766
12767 need_lib_prefix=unknown
12768 hardcode_into_libs=no
12769
12770 # when you set need_version to no, make sure it does not cause -set_version
12771 # flags to be left without arguments
12772 need_version=unknown
12773
12774 case $host_os in
12775 aix3*)
12776 version_type=linux
12777 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12778 shlibpath_var=LIBPATH
12779
12780 # AIX 3 has no versioning support, so we append a major version to the name.
12781 soname_spec='${libname}${release}${shared_ext}$major'
12782 ;;
12783
12784 aix4* | aix5*)
12785 version_type=linux
12786 need_lib_prefix=no
12787 need_version=no
12788 hardcode_into_libs=yes
12789 if test "$host_cpu" = ia64; then
12790 # AIX 5 supports IA64
12791 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12792 shlibpath_var=LD_LIBRARY_PATH
12793 else
12794 # With GCC up to 2.95.x, collect2 would create an import file
12795 # for dependence libraries. The import file would start with
12796 # the line `#! .'. This would cause the generated library to
12797 # depend on `.', always an invalid library. This was fixed in
12798 # development snapshots of GCC prior to 3.0.
12799 case $host_os in
12800 aix4 | aix4.[01] | aix4.[01].*)
12801 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12802 echo ' yes '
12803 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12804 :
12805 else
12806 can_build_shared=no
12807 fi
12808 ;;
12809 esac
12810 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12811 # soname into executable. Probably we can add versioning support to
12812 # collect2, so additional links can be useful in future.
12813 if test "$aix_use_runtimelinking" = yes; then
12814 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12815 # instead of lib<name>.a to let people know that these are not
12816 # typical AIX shared libraries.
12817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12818 else
12819 # We preserve .a as extension for shared libraries through AIX4.2
12820 # and later when we are not doing run time linking.
12821 library_names_spec='${libname}${release}.a $libname.a'
12822 soname_spec='${libname}${release}${shared_ext}$major'
12823 fi
12824 shlibpath_var=LIBPATH
12825 fi
12826 ;;
12827
12828 amigaos*)
12829 library_names_spec='$libname.ixlibrary $libname.a'
12830 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12831 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'
12832 ;;
12833
12834 beos*)
12835 library_names_spec='${libname}${shared_ext}'
12836 dynamic_linker="$host_os ld.so"
12837 shlibpath_var=LIBRARY_PATH
12838 ;;
12839
12840 bsdi[45]*)
12841 version_type=linux
12842 need_version=no
12843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12844 soname_spec='${libname}${release}${shared_ext}$major'
12845 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12846 shlibpath_var=LD_LIBRARY_PATH
12847 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12848 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12849 # the default ld.so.conf also contains /usr/contrib/lib and
12850 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12851 # libtool to hard-code these into programs
12852 ;;
12853
12854 cygwin* | mingw* | pw32*)
12855 version_type=windows
12856 shrext_cmds=".dll"
12857 need_version=no
12858 need_lib_prefix=no
12859
12860 case $GCC,$host_os in
12861 yes,cygwin* | yes,mingw* | yes,pw32*)
12862 library_names_spec='$libname.dll.a'
12863 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12864 postinstall_cmds='base_file=`basename \${file}`~
12865 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12866 dldir=$destdir/`dirname \$dlpath`~
12867 test -d \$dldir || mkdir -p \$dldir~
12868 $install_prog $dir/$dlname \$dldir/$dlname~
12869 chmod a+x \$dldir/$dlname'
12870 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12871 dlpath=$dir/\$dldll~
12872 $rm \$dlpath'
12873 shlibpath_overrides_runpath=yes
12874
12875 case $host_os in
12876 cygwin*)
12877 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12878 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12879 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12880 ;;
12881 mingw*)
12882 # MinGW DLLs use traditional 'lib' prefix
12883 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12884 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12885 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12886 # It is most probably a Windows format PATH printed by
12887 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12888 # path with ; separators, and with drive letters. We can handle the
12889 # drive letters (cygwin fileutils understands them), so leave them,
12890 # especially as we might pass files found there to a mingw objdump,
12891 # which wouldn't understand a cygwinified path. Ahh.
12892 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12893 else
12894 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12895 fi
12896 ;;
12897 pw32*)
12898 # pw32 DLLs use 'pw' prefix rather than 'lib'
12899 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12900 ;;
12901 esac
12902 ;;
12903
12904 *)
12905 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12906 ;;
12907 esac
12908 dynamic_linker='Win32 ld.exe'
12909 # FIXME: first we should search . and the directory the executable is in
12910 shlibpath_var=PATH
12911 ;;
12912
12913 darwin* | rhapsody*)
12914 dynamic_linker="$host_os dyld"
12915 version_type=darwin
12916 need_lib_prefix=no
12917 need_version=no
12918 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12919 soname_spec='${libname}${release}${major}$shared_ext'
12920 shlibpath_overrides_runpath=yes
12921 shlibpath_var=DYLD_LIBRARY_PATH
12922 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12923
12924 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12925 ;;
12926
12927 dgux*)
12928 version_type=linux
12929 need_lib_prefix=no
12930 need_version=no
12931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12932 soname_spec='${libname}${release}${shared_ext}$major'
12933 shlibpath_var=LD_LIBRARY_PATH
12934 ;;
12935
12936 freebsd1*)
12937 dynamic_linker=no
12938 ;;
12939
12940 freebsd* | dragonfly*)
12941 # DragonFly does not have aout. When/if they implement a new
12942 # versioning mechanism, adjust this.
12943 if test -x /usr/bin/objformat; then
12944 objformat=`/usr/bin/objformat`
12945 else
12946 case $host_os in
12947 freebsd[123]*) objformat=aout ;;
12948 *) objformat=elf ;;
12949 esac
12950 fi
12951 version_type=freebsd-$objformat
12952 case $version_type in
12953 freebsd-elf*)
12954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12955 need_version=no
12956 need_lib_prefix=no
12957 ;;
12958 freebsd-*)
12959 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12960 need_version=yes
12961 ;;
12962 esac
12963 shlibpath_var=LD_LIBRARY_PATH
12964 case $host_os in
12965 freebsd2*)
12966 shlibpath_overrides_runpath=yes
12967 ;;
12968 freebsd3.[01]* | freebsdelf3.[01]*)
12969 shlibpath_overrides_runpath=yes
12970 hardcode_into_libs=yes
12971 ;;
12972 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12973 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12974 shlibpath_overrides_runpath=no
12975 hardcode_into_libs=yes
12976 ;;
12977 *) # from 4.6 on, and DragonFly
12978 shlibpath_overrides_runpath=yes
12979 hardcode_into_libs=yes
12980 ;;
12981 esac
12982 ;;
12983
12984 gnu*)
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 hardcode_into_libs=yes
12992 ;;
12993
12994 hpux9* | hpux10* | hpux11*)
12995 # Give a soname corresponding to the major version so that dld.sl refuses to
12996 # link against other versions.
12997 version_type=sunos
12998 need_lib_prefix=no
12999 need_version=no
13000 case $host_cpu in
13001 ia64*)
13002 shrext_cmds='.so'
13003 hardcode_into_libs=yes
13004 dynamic_linker="$host_os dld.so"
13005 shlibpath_var=LD_LIBRARY_PATH
13006 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13008 soname_spec='${libname}${release}${shared_ext}$major'
13009 if test "X$HPUX_IA64_MODE" = X32; then
13010 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13011 else
13012 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13013 fi
13014 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13015 ;;
13016 hppa*64*)
13017 shrext_cmds='.sl'
13018 hardcode_into_libs=yes
13019 dynamic_linker="$host_os dld.sl"
13020 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13021 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13023 soname_spec='${libname}${release}${shared_ext}$major'
13024 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13025 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13026 ;;
13027 *)
13028 shrext_cmds='.sl'
13029 dynamic_linker="$host_os dld.sl"
13030 shlibpath_var=SHLIB_PATH
13031 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13033 soname_spec='${libname}${release}${shared_ext}$major'
13034 ;;
13035 esac
13036 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13037 postinstall_cmds='chmod 555 $lib'
13038 ;;
13039
13040 interix[3-9]*)
13041 version_type=linux
13042 need_lib_prefix=no
13043 need_version=no
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13047 shlibpath_var=LD_LIBRARY_PATH
13048 shlibpath_overrides_runpath=no
13049 hardcode_into_libs=yes
13050 ;;
13051
13052 irix5* | irix6* | nonstopux*)
13053 case $host_os in
13054 nonstopux*) version_type=nonstopux ;;
13055 *)
13056 if test "$lt_cv_prog_gnu_ld" = yes; then
13057 version_type=linux
13058 else
13059 version_type=irix
13060 fi ;;
13061 esac
13062 need_lib_prefix=no
13063 need_version=no
13064 soname_spec='${libname}${release}${shared_ext}$major'
13065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13066 case $host_os in
13067 irix5* | nonstopux*)
13068 libsuff= shlibsuff=
13069 ;;
13070 *)
13071 case $LD in # libtool.m4 will add one of these switches to LD
13072 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13073 libsuff= shlibsuff= libmagic=32-bit;;
13074 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13075 libsuff=32 shlibsuff=N32 libmagic=N32;;
13076 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13077 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13078 *) libsuff= shlibsuff= libmagic=never-match;;
13079 esac
13080 ;;
13081 esac
13082 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13083 shlibpath_overrides_runpath=no
13084 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13085 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13086 hardcode_into_libs=yes
13087 ;;
13088
13089 # No shared lib support for Linux oldld, aout, or coff.
13090 linux*oldld* | linux*aout* | linux*coff*)
13091 dynamic_linker=no
13092 ;;
13093
13094 # This must be Linux ELF.
13095 linux* | k*bsd*-gnu)
13096 version_type=linux
13097 need_lib_prefix=no
13098 need_version=no
13099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13100 soname_spec='${libname}${release}${shared_ext}$major'
13101 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13102 shlibpath_var=LD_LIBRARY_PATH
13103 shlibpath_overrides_runpath=no
13104 # This implies no fast_install, which is unacceptable.
13105 # Some rework will be needed to allow for fast_install
13106 # before this can be enabled.
13107 hardcode_into_libs=yes
13108 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13109 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13110
13111 # Append ld.so.conf contents to the search path
13112 if test -f /etc/ld.so.conf; then
13113 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13114 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13115 fi
13116
13117 # We used to test for /lib/ld.so.1 and disable shared libraries on
13118 # powerpc, because MkLinux only supported shared libraries with the
13119 # GNU dynamic linker. Since this was broken with cross compilers,
13120 # most powerpc-linux boxes support dynamic linking these days and
13121 # people can always --disable-shared, the test was removed, and we
13122 # assume the GNU/Linux dynamic linker is in use.
13123 dynamic_linker='GNU/Linux ld.so'
13124 ;;
13125
13126 netbsd*)
13127 version_type=sunos
13128 need_lib_prefix=no
13129 need_version=no
13130 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13132 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13133 dynamic_linker='NetBSD (a.out) ld.so'
13134 else
13135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13136 soname_spec='${libname}${release}${shared_ext}$major'
13137 dynamic_linker='NetBSD ld.elf_so'
13138 fi
13139 shlibpath_var=LD_LIBRARY_PATH
13140 shlibpath_overrides_runpath=yes
13141 hardcode_into_libs=yes
13142 ;;
13143
13144 newsos6)
13145 version_type=linux
13146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13147 shlibpath_var=LD_LIBRARY_PATH
13148 shlibpath_overrides_runpath=yes
13149 ;;
13150
13151 nto-qnx*)
13152 version_type=linux
13153 need_lib_prefix=no
13154 need_version=no
13155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13156 soname_spec='${libname}${release}${shared_ext}$major'
13157 shlibpath_var=LD_LIBRARY_PATH
13158 shlibpath_overrides_runpath=yes
13159 ;;
13160
13161 openbsd*)
13162 version_type=sunos
13163 sys_lib_dlsearch_path_spec="/usr/lib"
13164 need_lib_prefix=no
13165 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13166 case $host_os in
13167 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13168 *) need_version=no ;;
13169 esac
13170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13171 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13172 shlibpath_var=LD_LIBRARY_PATH
13173 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13174 case $host_os in
13175 openbsd2.[89] | openbsd2.[89].*)
13176 shlibpath_overrides_runpath=no
13177 ;;
13178 *)
13179 shlibpath_overrides_runpath=yes
13180 ;;
13181 esac
13182 else
13183 shlibpath_overrides_runpath=yes
13184 fi
13185 ;;
13186
13187 os2*)
13188 libname_spec='$name'
13189 shrext_cmds=".dll"
13190 need_lib_prefix=no
13191 library_names_spec='$libname${shared_ext} $libname.a'
13192 dynamic_linker='OS/2 ld.exe'
13193 shlibpath_var=LIBPATH
13194 ;;
13195
13196 osf3* | osf4* | osf5*)
13197 version_type=osf
13198 need_lib_prefix=no
13199 need_version=no
13200 soname_spec='${libname}${release}${shared_ext}$major'
13201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13202 shlibpath_var=LD_LIBRARY_PATH
13203 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13204 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13205 ;;
13206
13207 rdos*)
13208 dynamic_linker=no
13209 ;;
13210
13211 solaris*)
13212 version_type=linux
13213 need_lib_prefix=no
13214 need_version=no
13215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13216 soname_spec='${libname}${release}${shared_ext}$major'
13217 shlibpath_var=LD_LIBRARY_PATH
13218 shlibpath_overrides_runpath=yes
13219 hardcode_into_libs=yes
13220 # ldd complains unless libraries are executable
13221 postinstall_cmds='chmod +x $lib'
13222 ;;
13223
13224 sunos4*)
13225 version_type=sunos
13226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13227 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13228 shlibpath_var=LD_LIBRARY_PATH
13229 shlibpath_overrides_runpath=yes
13230 if test "$with_gnu_ld" = yes; then
13231 need_lib_prefix=no
13232 fi
13233 need_version=yes
13234 ;;
13235
13236 sysv4 | sysv4.3*)
13237 version_type=linux
13238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13239 soname_spec='${libname}${release}${shared_ext}$major'
13240 shlibpath_var=LD_LIBRARY_PATH
13241 case $host_vendor in
13242 sni)
13243 shlibpath_overrides_runpath=no
13244 need_lib_prefix=no
13245 export_dynamic_flag_spec='${wl}-Blargedynsym'
13246 runpath_var=LD_RUN_PATH
13247 ;;
13248 siemens)
13249 need_lib_prefix=no
13250 ;;
13251 motorola)
13252 need_lib_prefix=no
13253 need_version=no
13254 shlibpath_overrides_runpath=no
13255 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13256 ;;
13257 esac
13258 ;;
13259
13260 sysv4*MP*)
13261 if test -d /usr/nec ;then
13262 version_type=linux
13263 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13264 soname_spec='$libname${shared_ext}.$major'
13265 shlibpath_var=LD_LIBRARY_PATH
13266 fi
13267 ;;
13268
13269 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13270 version_type=freebsd-elf
13271 need_lib_prefix=no
13272 need_version=no
13273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13274 soname_spec='${libname}${release}${shared_ext}$major'
13275 shlibpath_var=LD_LIBRARY_PATH
13276 hardcode_into_libs=yes
13277 if test "$with_gnu_ld" = yes; then
13278 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13279 shlibpath_overrides_runpath=no
13280 else
13281 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13282 shlibpath_overrides_runpath=yes
13283 case $host_os in
13284 sco3.2v5*)
13285 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13286 ;;
13287 esac
13288 fi
13289 sys_lib_dlsearch_path_spec='/usr/lib'
13290 ;;
13291
13292 uts4*)
13293 version_type=linux
13294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13295 soname_spec='${libname}${release}${shared_ext}$major'
13296 shlibpath_var=LD_LIBRARY_PATH
13297 ;;
13298
13299 *)
13300 dynamic_linker=no
13301 ;;
13302 esac
13303 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13304 echo "${ECHO_T}$dynamic_linker" >&6; }
13305 test "$dynamic_linker" = no && can_build_shared=no
13306
13307 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13308 if test "$GCC" = yes; then
13309 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13310 fi
13311
13312 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13313 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13314 hardcode_action_CXX=
13315 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13316 test -n "$runpath_var_CXX" || \
13317 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13318
13319 # We can hardcode non-existant directories.
13320 if test "$hardcode_direct_CXX" != no &&
13321 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13322 # have to relink, otherwise we might link with an installed library
13323 # when we should be linking with a yet-to-be-installed one
13324 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13325 test "$hardcode_minus_L_CXX" != no; then
13326 # Linking always hardcodes the temporary library directory.
13327 hardcode_action_CXX=relink
13328 else
13329 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13330 hardcode_action_CXX=immediate
13331 fi
13332 else
13333 # We cannot hardcode anything, or else we can only hardcode existing
13334 # directories.
13335 hardcode_action_CXX=unsupported
13336 fi
13337 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13338 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13339
13340 if test "$hardcode_action_CXX" = relink; then
13341 # Fast installation is not supported
13342 enable_fast_install=no
13343 elif test "$shlibpath_overrides_runpath" = yes ||
13344 test "$enable_shared" = no; then
13345 # Fast installation is not necessary
13346 enable_fast_install=needless
13347 fi
13348
13349
13350 # The else clause should only fire when bootstrapping the
13351 # libtool distribution, otherwise you forgot to ship ltmain.sh
13352 # with your package, and you will get complaints that there are
13353 # no rules to generate ltmain.sh.
13354 if test -f "$ltmain"; then
13355 # See if we are running on zsh, and set the options which allow our commands through
13356 # without removal of \ escapes.
13357 if test -n "${ZSH_VERSION+set}" ; then
13358 setopt NO_GLOB_SUBST
13359 fi
13360 # Now quote all the things that may contain metacharacters while being
13361 # careful not to overquote the AC_SUBSTed values. We take copies of the
13362 # variables and quote the copies for generation of the libtool script.
13363 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13364 SED SHELL STRIP \
13365 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13366 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13367 deplibs_check_method reload_flag reload_cmds need_locks \
13368 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13369 lt_cv_sys_global_symbol_to_c_name_address \
13370 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13371 old_postinstall_cmds old_postuninstall_cmds \
13372 compiler_CXX \
13373 CC_CXX \
13374 LD_CXX \
13375 lt_prog_compiler_wl_CXX \
13376 lt_prog_compiler_pic_CXX \
13377 lt_prog_compiler_static_CXX \
13378 lt_prog_compiler_no_builtin_flag_CXX \
13379 export_dynamic_flag_spec_CXX \
13380 thread_safe_flag_spec_CXX \
13381 whole_archive_flag_spec_CXX \
13382 enable_shared_with_static_runtimes_CXX \
13383 old_archive_cmds_CXX \
13384 old_archive_from_new_cmds_CXX \
13385 predep_objects_CXX \
13386 postdep_objects_CXX \
13387 predeps_CXX \
13388 postdeps_CXX \
13389 compiler_lib_search_path_CXX \
13390 archive_cmds_CXX \
13391 archive_expsym_cmds_CXX \
13392 postinstall_cmds_CXX \
13393 postuninstall_cmds_CXX \
13394 old_archive_from_expsyms_cmds_CXX \
13395 allow_undefined_flag_CXX \
13396 no_undefined_flag_CXX \
13397 export_symbols_cmds_CXX \
13398 hardcode_libdir_flag_spec_CXX \
13399 hardcode_libdir_flag_spec_ld_CXX \
13400 hardcode_libdir_separator_CXX \
13401 hardcode_automatic_CXX \
13402 module_cmds_CXX \
13403 module_expsym_cmds_CXX \
13404 lt_cv_prog_compiler_c_o_CXX \
13405 fix_srcfile_path_CXX \
13406 exclude_expsyms_CXX \
13407 include_expsyms_CXX; do
13408
13409 case $var in
13410 old_archive_cmds_CXX | \
13411 old_archive_from_new_cmds_CXX | \
13412 archive_cmds_CXX | \
13413 archive_expsym_cmds_CXX | \
13414 module_cmds_CXX | \
13415 module_expsym_cmds_CXX | \
13416 old_archive_from_expsyms_cmds_CXX | \
13417 export_symbols_cmds_CXX | \
13418 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13419 postinstall_cmds | postuninstall_cmds | \
13420 old_postinstall_cmds | old_postuninstall_cmds | \
13421 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13422 # Double-quote double-evaled strings.
13423 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13424 ;;
13425 *)
13426 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13427 ;;
13428 esac
13429 done
13430
13431 case $lt_echo in
13432 *'\$0 --fallback-echo"')
13433 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13434 ;;
13435 esac
13436
13437 cfgfile="$ofile"
13438
13439 cat <<__EOF__ >> "$cfgfile"
13440 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13441
13442 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13443
13444 # Shell to use when invoking shell scripts.
13445 SHELL=$lt_SHELL
13446
13447 # Whether or not to build shared libraries.
13448 build_libtool_libs=$enable_shared
13449
13450 # Whether or not to build static libraries.
13451 build_old_libs=$enable_static
13452
13453 # Whether or not to add -lc for building shared libraries.
13454 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13455
13456 # Whether or not to disallow shared libs when runtime libs are static
13457 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13458
13459 # Whether or not to optimize for fast installation.
13460 fast_install=$enable_fast_install
13461
13462 # The host system.
13463 host_alias=$host_alias
13464 host=$host
13465 host_os=$host_os
13466
13467 # The build system.
13468 build_alias=$build_alias
13469 build=$build
13470 build_os=$build_os
13471
13472 # An echo program that does not interpret backslashes.
13473 echo=$lt_echo
13474
13475 # The archiver.
13476 AR=$lt_AR
13477 AR_FLAGS=$lt_AR_FLAGS
13478
13479 # A C compiler.
13480 LTCC=$lt_LTCC
13481
13482 # LTCC compiler flags.
13483 LTCFLAGS=$lt_LTCFLAGS
13484
13485 # A language-specific compiler.
13486 CC=$lt_compiler_CXX
13487
13488 # Is the compiler the GNU C compiler?
13489 with_gcc=$GCC_CXX
13490
13491 # An ERE matcher.
13492 EGREP=$lt_EGREP
13493
13494 # The linker used to build libraries.
13495 LD=$lt_LD_CXX
13496
13497 # Whether we need hard or soft links.
13498 LN_S=$lt_LN_S
13499
13500 # A BSD-compatible nm program.
13501 NM=$lt_NM
13502
13503 # A symbol stripping program
13504 STRIP=$lt_STRIP
13505
13506 # Used to examine libraries when file_magic_cmd begins "file"
13507 MAGIC_CMD=$MAGIC_CMD
13508
13509 # Used on cygwin: DLL creation program.
13510 DLLTOOL="$DLLTOOL"
13511
13512 # Used on cygwin: object dumper.
13513 OBJDUMP="$OBJDUMP"
13514
13515 # Used on cygwin: assembler.
13516 AS="$AS"
13517
13518 # The name of the directory that contains temporary libtool files.
13519 objdir=$objdir
13520
13521 # How to create reloadable object files.
13522 reload_flag=$lt_reload_flag
13523 reload_cmds=$lt_reload_cmds
13524
13525 # How to pass a linker flag through the compiler.
13526 wl=$lt_lt_prog_compiler_wl_CXX
13527
13528 # Object file suffix (normally "o").
13529 objext="$ac_objext"
13530
13531 # Old archive suffix (normally "a").
13532 libext="$libext"
13533
13534 # Shared library suffix (normally ".so").
13535 shrext_cmds='$shrext_cmds'
13536
13537 # Executable file suffix (normally "").
13538 exeext="$exeext"
13539
13540 # Additional compiler flags for building library objects.
13541 pic_flag=$lt_lt_prog_compiler_pic_CXX
13542 pic_mode=$pic_mode
13543
13544 # What is the maximum length of a command?
13545 max_cmd_len=$lt_cv_sys_max_cmd_len
13546
13547 # Does compiler simultaneously support -c and -o options?
13548 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13549
13550 # Must we lock files when doing compilation?
13551 need_locks=$lt_need_locks
13552
13553 # Do we need the lib prefix for modules?
13554 need_lib_prefix=$need_lib_prefix
13555
13556 # Do we need a version for libraries?
13557 need_version=$need_version
13558
13559 # Whether dlopen is supported.
13560 dlopen_support=$enable_dlopen
13561
13562 # Whether dlopen of programs is supported.
13563 dlopen_self=$enable_dlopen_self
13564
13565 # Whether dlopen of statically linked programs is supported.
13566 dlopen_self_static=$enable_dlopen_self_static
13567
13568 # Compiler flag to prevent dynamic linking.
13569 link_static_flag=$lt_lt_prog_compiler_static_CXX
13570
13571 # Compiler flag to turn off builtin functions.
13572 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13573
13574 # Compiler flag to allow reflexive dlopens.
13575 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13576
13577 # Compiler flag to generate shared objects directly from archives.
13578 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13579
13580 # Compiler flag to generate thread-safe objects.
13581 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13582
13583 # Library versioning type.
13584 version_type=$version_type
13585
13586 # Format of library name prefix.
13587 libname_spec=$lt_libname_spec
13588
13589 # List of archive names. First name is the real one, the rest are links.
13590 # The last name is the one that the linker finds with -lNAME.
13591 library_names_spec=$lt_library_names_spec
13592
13593 # The coded name of the library, if different from the real name.
13594 soname_spec=$lt_soname_spec
13595
13596 # Commands used to build and install an old-style archive.
13597 RANLIB=$lt_RANLIB
13598 old_archive_cmds=$lt_old_archive_cmds_CXX
13599 old_postinstall_cmds=$lt_old_postinstall_cmds
13600 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13601
13602 # Create an old-style archive from a shared archive.
13603 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13604
13605 # Create a temporary old-style archive to link instead of a shared archive.
13606 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13607
13608 # Commands used to build and install a shared archive.
13609 archive_cmds=$lt_archive_cmds_CXX
13610 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13611 postinstall_cmds=$lt_postinstall_cmds
13612 postuninstall_cmds=$lt_postuninstall_cmds
13613
13614 # Commands used to build a loadable module (assumed same as above if empty)
13615 module_cmds=$lt_module_cmds_CXX
13616 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13617
13618 # Commands to strip libraries.
13619 old_striplib=$lt_old_striplib
13620 striplib=$lt_striplib
13621
13622 # Dependencies to place before the objects being linked to create a
13623 # shared library.
13624 predep_objects=$lt_predep_objects_CXX
13625
13626 # Dependencies to place after the objects being linked to create a
13627 # shared library.
13628 postdep_objects=$lt_postdep_objects_CXX
13629
13630 # Dependencies to place before the objects being linked to create a
13631 # shared library.
13632 predeps=$lt_predeps_CXX
13633
13634 # Dependencies to place after the objects being linked to create a
13635 # shared library.
13636 postdeps=$lt_postdeps_CXX
13637
13638 # The library search path used internally by the compiler when linking
13639 # a shared library.
13640 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13641
13642 # Method to check whether dependent libraries are shared objects.
13643 deplibs_check_method=$lt_deplibs_check_method
13644
13645 # Command to use when deplibs_check_method == file_magic.
13646 file_magic_cmd=$lt_file_magic_cmd
13647
13648 # Flag that allows shared libraries with undefined symbols to be built.
13649 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13650
13651 # Flag that forces no undefined symbols.
13652 no_undefined_flag=$lt_no_undefined_flag_CXX
13653
13654 # Commands used to finish a libtool library installation in a directory.
13655 finish_cmds=$lt_finish_cmds
13656
13657 # Same as above, but a single script fragment to be evaled but not shown.
13658 finish_eval=$lt_finish_eval
13659
13660 # Take the output of nm and produce a listing of raw symbols and C names.
13661 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13662
13663 # Transform the output of nm in a proper C declaration
13664 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13665
13666 # Transform the output of nm in a C name address pair
13667 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13668
13669 # This is the shared library runtime path variable.
13670 runpath_var=$runpath_var
13671
13672 # This is the shared library path variable.
13673 shlibpath_var=$shlibpath_var
13674
13675 # Is shlibpath searched before the hard-coded library search path?
13676 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13677
13678 # How to hardcode a shared library path into an executable.
13679 hardcode_action=$hardcode_action_CXX
13680
13681 # Whether we should hardcode library paths into libraries.
13682 hardcode_into_libs=$hardcode_into_libs
13683
13684 # Flag to hardcode \$libdir into a binary during linking.
13685 # This must work even if \$libdir does not exist.
13686 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13687
13688 # If ld is used when linking, flag to hardcode \$libdir into
13689 # a binary during linking. This must work even if \$libdir does
13690 # not exist.
13691 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13692
13693 # Whether we need a single -rpath flag with a separated argument.
13694 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13695
13696 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13697 # resulting binary.
13698 hardcode_direct=$hardcode_direct_CXX
13699
13700 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13701 # resulting binary.
13702 hardcode_minus_L=$hardcode_minus_L_CXX
13703
13704 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13705 # the resulting binary.
13706 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13707
13708 # Set to yes if building a shared library automatically hardcodes DIR into the library
13709 # and all subsequent libraries and executables linked against it.
13710 hardcode_automatic=$hardcode_automatic_CXX
13711
13712 # Variables whose values should be saved in libtool wrapper scripts and
13713 # restored at relink time.
13714 variables_saved_for_relink="$variables_saved_for_relink"
13715
13716 # Whether libtool must link a program against all its dependency libraries.
13717 link_all_deplibs=$link_all_deplibs_CXX
13718
13719 # Compile-time system search path for libraries
13720 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13721
13722 # Run-time system search path for libraries
13723 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13724
13725 # Fix the shell variable \$srcfile for the compiler.
13726 fix_srcfile_path=$lt_fix_srcfile_path
13727
13728 # Set to yes if exported symbols are required.
13729 always_export_symbols=$always_export_symbols_CXX
13730
13731 # The commands to list exported symbols.
13732 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13733
13734 # The commands to extract the exported symbol list from a shared archive.
13735 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13736
13737 # Symbols that should not be listed in the preloaded symbols.
13738 exclude_expsyms=$lt_exclude_expsyms_CXX
13739
13740 # Symbols that must always be exported.
13741 include_expsyms=$lt_include_expsyms_CXX
13742
13743 # ### END LIBTOOL TAG CONFIG: $tagname
13744
13745 __EOF__
13746
13747
13748 else
13749 # If there is no Makefile yet, we rely on a make rule to execute
13750 # `config.status --recheck' to rerun these tests and create the
13751 # libtool script then.
13752 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13753 if test -f "$ltmain_in"; then
13754 test -f Makefile && make "$ltmain"
13755 fi
13756 fi
13757
13758
13759 ac_ext=c
13760 ac_cpp='$CPP $CPPFLAGS'
13761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13764
13765 CC=$lt_save_CC
13766 LDCXX=$LD
13767 LD=$lt_save_LD
13768 GCC=$lt_save_GCC
13769 with_gnu_ldcxx=$with_gnu_ld
13770 with_gnu_ld=$lt_save_with_gnu_ld
13771 lt_cv_path_LDCXX=$lt_cv_path_LD
13772 lt_cv_path_LD=$lt_save_path_LD
13773 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13774 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13775
13776 else
13777 tagname=""
13778 fi
13779 ;;
13780
13781 F77)
13782 if test -n "$F77" && test "X$F77" != "Xno"; then
13783
13784 ac_ext=f
13785 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13786 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13787 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13788
13789
13790 archive_cmds_need_lc_F77=no
13791 allow_undefined_flag_F77=
13792 always_export_symbols_F77=no
13793 archive_expsym_cmds_F77=
13794 export_dynamic_flag_spec_F77=
13795 hardcode_direct_F77=no
13796 hardcode_libdir_flag_spec_F77=
13797 hardcode_libdir_flag_spec_ld_F77=
13798 hardcode_libdir_separator_F77=
13799 hardcode_minus_L_F77=no
13800 hardcode_automatic_F77=no
13801 module_cmds_F77=
13802 module_expsym_cmds_F77=
13803 link_all_deplibs_F77=unknown
13804 old_archive_cmds_F77=$old_archive_cmds
13805 no_undefined_flag_F77=
13806 whole_archive_flag_spec_F77=
13807 enable_shared_with_static_runtimes_F77=no
13808
13809 # Source file extension for f77 test sources.
13810 ac_ext=f
13811
13812 # Object file extension for compiled f77 test sources.
13813 objext=o
13814 objext_F77=$objext
13815
13816 # Code to be used in simple compile tests
13817 lt_simple_compile_test_code="\
13818 subroutine t
13819 return
13820 end
13821 "
13822
13823 # Code to be used in simple link tests
13824 lt_simple_link_test_code="\
13825 program t
13826 end
13827 "
13828
13829 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13830
13831 # If no C compiler was specified, use CC.
13832 LTCC=${LTCC-"$CC"}
13833
13834 # If no C compiler flags were specified, use CFLAGS.
13835 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13836
13837 # Allow CC to be a program name with arguments.
13838 compiler=$CC
13839
13840
13841 # save warnings/boilerplate of simple test code
13842 ac_outfile=conftest.$ac_objext
13843 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13844 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13845 _lt_compiler_boilerplate=`cat conftest.err`
13846 $rm conftest*
13847
13848 ac_outfile=conftest.$ac_objext
13849 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13850 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13851 _lt_linker_boilerplate=`cat conftest.err`
13852 $rm conftest*
13853
13854
13855 # Allow CC to be a program name with arguments.
13856 lt_save_CC="$CC"
13857 CC=${F77-"f77"}
13858 compiler=$CC
13859 compiler_F77=$CC
13860 for cc_temp in $compiler""; do
13861 case $cc_temp in
13862 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13863 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13864 \-*) ;;
13865 *) break;;
13866 esac
13867 done
13868 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13869
13870
13871 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13872 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13873 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13874 echo "${ECHO_T}$can_build_shared" >&6; }
13875
13876 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13877 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13878 test "$can_build_shared" = "no" && enable_shared=no
13879
13880 # On AIX, shared libraries and static libraries use the same namespace, and
13881 # are all built from PIC.
13882 case $host_os in
13883 aix3*)
13884 test "$enable_shared" = yes && enable_static=no
13885 if test -n "$RANLIB"; then
13886 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13887 postinstall_cmds='$RANLIB $lib'
13888 fi
13889 ;;
13890 aix4* | aix5*)
13891 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13892 test "$enable_shared" = yes && enable_static=no
13893 fi
13894 ;;
13895 esac
13896 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13897 echo "${ECHO_T}$enable_shared" >&6; }
13898
13899 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13900 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13901 # Make sure either enable_shared or enable_static is yes.
13902 test "$enable_shared" = yes || enable_static=yes
13903 { echo "$as_me:$LINENO: result: $enable_static" >&5
13904 echo "${ECHO_T}$enable_static" >&6; }
13905
13906 GCC_F77="$G77"
13907 LD_F77="$LD"
13908
13909 lt_prog_compiler_wl_F77=
13910 lt_prog_compiler_pic_F77=
13911 lt_prog_compiler_static_F77=
13912
13913 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13914 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13915
13916 if test "$GCC" = yes; then
13917 lt_prog_compiler_wl_F77='-Wl,'
13918 lt_prog_compiler_static_F77='-static'
13919
13920 case $host_os in
13921 aix*)
13922 # All AIX code is PIC.
13923 if test "$host_cpu" = ia64; then
13924 # AIX 5 now supports IA64 processor
13925 lt_prog_compiler_static_F77='-Bstatic'
13926 fi
13927 ;;
13928
13929 amigaos*)
13930 # FIXME: we need at least 68020 code to build shared libraries, but
13931 # adding the `-m68020' flag to GCC prevents building anything better,
13932 # like `-m68040'.
13933 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13934 ;;
13935
13936 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13937 # PIC is the default for these OSes.
13938 ;;
13939
13940 mingw* | cygwin* | pw32* | os2*)
13941 # This hack is so that the source file can tell whether it is being
13942 # built for inclusion in a dll (and should export symbols for example).
13943 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13944 # (--disable-auto-import) libraries
13945 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13946 ;;
13947
13948 darwin* | rhapsody*)
13949 # PIC is the default on this platform
13950 # Common symbols not allowed in MH_DYLIB files
13951 lt_prog_compiler_pic_F77='-fno-common'
13952 ;;
13953
13954 interix[3-9]*)
13955 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13956 # Instead, we relocate shared libraries at runtime.
13957 ;;
13958
13959 msdosdjgpp*)
13960 # Just because we use GCC doesn't mean we suddenly get shared libraries
13961 # on systems that don't support them.
13962 lt_prog_compiler_can_build_shared_F77=no
13963 enable_shared=no
13964 ;;
13965
13966 sysv4*MP*)
13967 if test -d /usr/nec; then
13968 lt_prog_compiler_pic_F77=-Kconform_pic
13969 fi
13970 ;;
13971
13972 hpux*)
13973 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13974 # not for PA HP-UX.
13975 case $host_cpu in
13976 hppa*64*|ia64*)
13977 # +Z the default
13978 ;;
13979 *)
13980 lt_prog_compiler_pic_F77='-fPIC'
13981 ;;
13982 esac
13983 ;;
13984
13985 *)
13986 lt_prog_compiler_pic_F77='-fPIC'
13987 ;;
13988 esac
13989 else
13990 # PORTME Check for flag to pass linker flags through the system compiler.
13991 case $host_os in
13992 aix*)
13993 lt_prog_compiler_wl_F77='-Wl,'
13994 if test "$host_cpu" = ia64; then
13995 # AIX 5 now supports IA64 processor
13996 lt_prog_compiler_static_F77='-Bstatic'
13997 else
13998 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13999 fi
14000 ;;
14001 darwin*)
14002 # PIC is the default on this platform
14003 # Common symbols not allowed in MH_DYLIB files
14004 case $cc_basename in
14005 xlc*)
14006 lt_prog_compiler_pic_F77='-qnocommon'
14007 lt_prog_compiler_wl_F77='-Wl,'
14008 ;;
14009 esac
14010 ;;
14011
14012 mingw* | cygwin* | pw32* | os2*)
14013 # This hack is so that the source file can tell whether it is being
14014 # built for inclusion in a dll (and should export symbols for example).
14015 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14016 ;;
14017
14018 hpux9* | hpux10* | hpux11*)
14019 lt_prog_compiler_wl_F77='-Wl,'
14020 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14021 # not for PA HP-UX.
14022 case $host_cpu in
14023 hppa*64*|ia64*)
14024 # +Z the default
14025 ;;
14026 *)
14027 lt_prog_compiler_pic_F77='+Z'
14028 ;;
14029 esac
14030 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14031 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14032 ;;
14033
14034 irix5* | irix6* | nonstopux*)
14035 lt_prog_compiler_wl_F77='-Wl,'
14036 # PIC (with -KPIC) is the default.
14037 lt_prog_compiler_static_F77='-non_shared'
14038 ;;
14039
14040 newsos6)
14041 lt_prog_compiler_pic_F77='-KPIC'
14042 lt_prog_compiler_static_F77='-Bstatic'
14043 ;;
14044
14045 linux* | k*bsd*-gnu)
14046 case $cc_basename in
14047 icc* | ecc*)
14048 lt_prog_compiler_wl_F77='-Wl,'
14049 lt_prog_compiler_pic_F77='-KPIC'
14050 lt_prog_compiler_static_F77='-static'
14051 ;;
14052 pgcc* | pgf77* | pgf90* | pgf95*)
14053 # Portland Group compilers (*not* the Pentium gcc compiler,
14054 # which looks to be a dead project)
14055 lt_prog_compiler_wl_F77='-Wl,'
14056 lt_prog_compiler_pic_F77='-fpic'
14057 lt_prog_compiler_static_F77='-Bstatic'
14058 ;;
14059 ccc*)
14060 lt_prog_compiler_wl_F77='-Wl,'
14061 # All Alpha code is PIC.
14062 lt_prog_compiler_static_F77='-non_shared'
14063 ;;
14064 *)
14065 case `$CC -V 2>&1 | sed 5q` in
14066 *Sun\ C*)
14067 # Sun C 5.9
14068 lt_prog_compiler_pic_F77='-KPIC'
14069 lt_prog_compiler_static_F77='-Bstatic'
14070 lt_prog_compiler_wl_F77='-Wl,'
14071 ;;
14072 *Sun\ F*)
14073 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14074 lt_prog_compiler_pic_F77='-KPIC'
14075 lt_prog_compiler_static_F77='-Bstatic'
14076 lt_prog_compiler_wl_F77=''
14077 ;;
14078 esac
14079 ;;
14080 esac
14081 ;;
14082
14083 osf3* | osf4* | osf5*)
14084 lt_prog_compiler_wl_F77='-Wl,'
14085 # All OSF/1 code is PIC.
14086 lt_prog_compiler_static_F77='-non_shared'
14087 ;;
14088
14089 rdos*)
14090 lt_prog_compiler_static_F77='-non_shared'
14091 ;;
14092
14093 solaris*)
14094 lt_prog_compiler_pic_F77='-KPIC'
14095 lt_prog_compiler_static_F77='-Bstatic'
14096 case $cc_basename in
14097 f77* | f90* | f95*)
14098 lt_prog_compiler_wl_F77='-Qoption ld ';;
14099 *)
14100 lt_prog_compiler_wl_F77='-Wl,';;
14101 esac
14102 ;;
14103
14104 sunos4*)
14105 lt_prog_compiler_wl_F77='-Qoption ld '
14106 lt_prog_compiler_pic_F77='-PIC'
14107 lt_prog_compiler_static_F77='-Bstatic'
14108 ;;
14109
14110 sysv4 | sysv4.2uw2* | sysv4.3*)
14111 lt_prog_compiler_wl_F77='-Wl,'
14112 lt_prog_compiler_pic_F77='-KPIC'
14113 lt_prog_compiler_static_F77='-Bstatic'
14114 ;;
14115
14116 sysv4*MP*)
14117 if test -d /usr/nec ;then
14118 lt_prog_compiler_pic_F77='-Kconform_pic'
14119 lt_prog_compiler_static_F77='-Bstatic'
14120 fi
14121 ;;
14122
14123 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14124 lt_prog_compiler_wl_F77='-Wl,'
14125 lt_prog_compiler_pic_F77='-KPIC'
14126 lt_prog_compiler_static_F77='-Bstatic'
14127 ;;
14128
14129 unicos*)
14130 lt_prog_compiler_wl_F77='-Wl,'
14131 lt_prog_compiler_can_build_shared_F77=no
14132 ;;
14133
14134 uts4*)
14135 lt_prog_compiler_pic_F77='-pic'
14136 lt_prog_compiler_static_F77='-Bstatic'
14137 ;;
14138
14139 *)
14140 lt_prog_compiler_can_build_shared_F77=no
14141 ;;
14142 esac
14143 fi
14144
14145 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14146 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14147
14148 #
14149 # Check to make sure the PIC flag actually works.
14150 #
14151 if test -n "$lt_prog_compiler_pic_F77"; then
14152
14153 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14154 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14155 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14156 echo $ECHO_N "(cached) $ECHO_C" >&6
14157 else
14158 lt_prog_compiler_pic_works_F77=no
14159 ac_outfile=conftest.$ac_objext
14160 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14161 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14162 # Insert the option either (1) after the last *FLAGS variable, or
14163 # (2) before a word containing "conftest.", or (3) at the end.
14164 # Note that $ac_compile itself does not contain backslashes and begins
14165 # with a dollar sign (not a hyphen), so the echo should work correctly.
14166 # The option is referenced via a variable to avoid confusing sed.
14167 lt_compile=`echo "$ac_compile" | $SED \
14168 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14169 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14170 -e 's:$: $lt_compiler_flag:'`
14171 (eval echo "\"\$as_me:14172: $lt_compile\"" >&5)
14172 (eval "$lt_compile" 2>conftest.err)
14173 ac_status=$?
14174 cat conftest.err >&5
14175 echo "$as_me:14176: \$? = $ac_status" >&5
14176 if (exit $ac_status) && test -s "$ac_outfile"; then
14177 # The compiler can only warn and ignore the option if not recognized
14178 # So say no if there are warnings other than the usual output.
14179 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14180 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14181 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14182 lt_prog_compiler_pic_works_F77=yes
14183 fi
14184 fi
14185 $rm conftest*
14186
14187 fi
14188 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14189 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14190
14191 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14192 case $lt_prog_compiler_pic_F77 in
14193 "" | " "*) ;;
14194 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14195 esac
14196 else
14197 lt_prog_compiler_pic_F77=
14198 lt_prog_compiler_can_build_shared_F77=no
14199 fi
14200
14201 fi
14202 case $host_os in
14203 # For platforms which do not support PIC, -DPIC is meaningless:
14204 *djgpp*)
14205 lt_prog_compiler_pic_F77=
14206 ;;
14207 *)
14208 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14209 ;;
14210 esac
14211
14212 #
14213 # Check to make sure the static flag actually works.
14214 #
14215 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14216 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14217 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14218 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14219 echo $ECHO_N "(cached) $ECHO_C" >&6
14220 else
14221 lt_prog_compiler_static_works_F77=no
14222 save_LDFLAGS="$LDFLAGS"
14223 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14224 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14225 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14226 # The linker can only warn and ignore the option if not recognized
14227 # So say no if there are warnings
14228 if test -s conftest.err; then
14229 # Append any errors to the config.log.
14230 cat conftest.err 1>&5
14231 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14232 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14233 if diff conftest.exp conftest.er2 >/dev/null; then
14234 lt_prog_compiler_static_works_F77=yes
14235 fi
14236 else
14237 lt_prog_compiler_static_works_F77=yes
14238 fi
14239 fi
14240 $rm conftest*
14241 LDFLAGS="$save_LDFLAGS"
14242
14243 fi
14244 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14245 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14246
14247 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14248 :
14249 else
14250 lt_prog_compiler_static_F77=
14251 fi
14252
14253
14254 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14255 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14256 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14257 echo $ECHO_N "(cached) $ECHO_C" >&6
14258 else
14259 lt_cv_prog_compiler_c_o_F77=no
14260 $rm -r conftest 2>/dev/null
14261 mkdir conftest
14262 cd conftest
14263 mkdir out
14264 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14265
14266 lt_compiler_flag="-o out/conftest2.$ac_objext"
14267 # Insert the option either (1) after the last *FLAGS variable, or
14268 # (2) before a word containing "conftest.", or (3) at the end.
14269 # Note that $ac_compile itself does not contain backslashes and begins
14270 # with a dollar sign (not a hyphen), so the echo should work correctly.
14271 lt_compile=`echo "$ac_compile" | $SED \
14272 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14273 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14274 -e 's:$: $lt_compiler_flag:'`
14275 (eval echo "\"\$as_me:14276: $lt_compile\"" >&5)
14276 (eval "$lt_compile" 2>out/conftest.err)
14277 ac_status=$?
14278 cat out/conftest.err >&5
14279 echo "$as_me:14280: \$? = $ac_status" >&5
14280 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14281 then
14282 # The compiler can only warn and ignore the option if not recognized
14283 # So say no if there are warnings
14284 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14285 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14286 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14287 lt_cv_prog_compiler_c_o_F77=yes
14288 fi
14289 fi
14290 chmod u+w . 2>&5
14291 $rm conftest*
14292 # SGI C++ compiler will create directory out/ii_files/ for
14293 # template instantiation
14294 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14295 $rm out/* && rmdir out
14296 cd ..
14297 rmdir conftest
14298 $rm conftest*
14299
14300 fi
14301 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14302 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14303
14304
14305 hard_links="nottested"
14306 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14307 # do not overwrite the value of need_locks provided by the user
14308 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14309 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14310 hard_links=yes
14311 $rm conftest*
14312 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14313 touch conftest.a
14314 ln conftest.a conftest.b 2>&5 || hard_links=no
14315 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14316 { echo "$as_me:$LINENO: result: $hard_links" >&5
14317 echo "${ECHO_T}$hard_links" >&6; }
14318 if test "$hard_links" = no; then
14319 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14320 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14321 need_locks=warn
14322 fi
14323 else
14324 need_locks=no
14325 fi
14326
14327 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14328 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14329
14330 runpath_var=
14331 allow_undefined_flag_F77=
14332 enable_shared_with_static_runtimes_F77=no
14333 archive_cmds_F77=
14334 archive_expsym_cmds_F77=
14335 old_archive_From_new_cmds_F77=
14336 old_archive_from_expsyms_cmds_F77=
14337 export_dynamic_flag_spec_F77=
14338 whole_archive_flag_spec_F77=
14339 thread_safe_flag_spec_F77=
14340 hardcode_libdir_flag_spec_F77=
14341 hardcode_libdir_flag_spec_ld_F77=
14342 hardcode_libdir_separator_F77=
14343 hardcode_direct_F77=no
14344 hardcode_minus_L_F77=no
14345 hardcode_shlibpath_var_F77=unsupported
14346 link_all_deplibs_F77=unknown
14347 hardcode_automatic_F77=no
14348 module_cmds_F77=
14349 module_expsym_cmds_F77=
14350 always_export_symbols_F77=no
14351 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14352 # include_expsyms should be a list of space-separated symbols to be *always*
14353 # included in the symbol list
14354 include_expsyms_F77=
14355 # exclude_expsyms can be an extended regexp of symbols to exclude
14356 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14357 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14358 # as well as any symbol that contains `d'.
14359 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14360 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14361 # platforms (ab)use it in PIC code, but their linkers get confused if
14362 # the symbol is explicitly referenced. Since portable code cannot
14363 # rely on this symbol name, it's probably fine to never include it in
14364 # preloaded symbol tables.
14365 extract_expsyms_cmds=
14366 # Just being paranoid about ensuring that cc_basename is set.
14367 for cc_temp in $compiler""; do
14368 case $cc_temp in
14369 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14370 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14371 \-*) ;;
14372 *) break;;
14373 esac
14374 done
14375 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14376
14377 case $host_os in
14378 cygwin* | mingw* | pw32*)
14379 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14380 # When not using gcc, we currently assume that we are using
14381 # Microsoft Visual C++.
14382 if test "$GCC" != yes; then
14383 with_gnu_ld=no
14384 fi
14385 ;;
14386 interix*)
14387 # we just hope/assume this is gcc and not c89 (= MSVC++)
14388 with_gnu_ld=yes
14389 ;;
14390 openbsd*)
14391 with_gnu_ld=no
14392 ;;
14393 esac
14394
14395 ld_shlibs_F77=yes
14396 if test "$with_gnu_ld" = yes; then
14397 # If archive_cmds runs LD, not CC, wlarc should be empty
14398 wlarc='${wl}'
14399
14400 # Set some defaults for GNU ld with shared library support. These
14401 # are reset later if shared libraries are not supported. Putting them
14402 # here allows them to be overridden if necessary.
14403 runpath_var=LD_RUN_PATH
14404 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14405 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14406 # ancient GNU ld didn't support --whole-archive et. al.
14407 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14408 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14409 else
14410 whole_archive_flag_spec_F77=
14411 fi
14412 supports_anon_versioning=no
14413 case `$LD -v 2>/dev/null` in
14414 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14415 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14416 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14417 *\ 2.11.*) ;; # other 2.11 versions
14418 *) supports_anon_versioning=yes ;;
14419 esac
14420
14421 # See if GNU ld supports shared libraries.
14422 case $host_os in
14423 aix3* | aix4* | aix5*)
14424 # On AIX/PPC, the GNU linker is very broken
14425 if test "$host_cpu" != ia64; then
14426 ld_shlibs_F77=no
14427 cat <<EOF 1>&2
14428
14429 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14430 *** to be unable to reliably create shared libraries on AIX.
14431 *** Therefore, libtool is disabling shared libraries support. If you
14432 *** really care for shared libraries, you may want to modify your PATH
14433 *** so that a non-GNU linker is found, and then restart.
14434
14435 EOF
14436 fi
14437 ;;
14438
14439 amigaos*)
14440 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)'
14441 hardcode_libdir_flag_spec_F77='-L$libdir'
14442 hardcode_minus_L_F77=yes
14443
14444 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14445 # that the semantics of dynamic libraries on AmigaOS, at least up
14446 # to version 4, is to share data among multiple programs linked
14447 # with the same dynamic library. Since this doesn't match the
14448 # behavior of shared libraries on other platforms, we can't use
14449 # them.
14450 ld_shlibs_F77=no
14451 ;;
14452
14453 beos*)
14454 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14455 allow_undefined_flag_F77=unsupported
14456 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14457 # support --undefined. This deserves some investigation. FIXME
14458 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14459 else
14460 ld_shlibs_F77=no
14461 fi
14462 ;;
14463
14464 cygwin* | mingw* | pw32*)
14465 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14466 # as there is no search path for DLLs.
14467 hardcode_libdir_flag_spec_F77='-L$libdir'
14468 allow_undefined_flag_F77=unsupported
14469 always_export_symbols_F77=no
14470 enable_shared_with_static_runtimes_F77=yes
14471 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14472
14473 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14474 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14475 # If the export-symbols file already is a .def file (1st line
14476 # is EXPORTS), use it as is; otherwise, prepend...
14477 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14478 cp $export_symbols $output_objdir/$soname.def;
14479 else
14480 echo EXPORTS > $output_objdir/$soname.def;
14481 cat $export_symbols >> $output_objdir/$soname.def;
14482 fi~
14483 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14484 else
14485 ld_shlibs_F77=no
14486 fi
14487 ;;
14488
14489 interix[3-9]*)
14490 hardcode_direct_F77=no
14491 hardcode_shlibpath_var_F77=no
14492 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14493 export_dynamic_flag_spec_F77='${wl}-E'
14494 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14495 # Instead, shared libraries are loaded at an image base (0x10000000 by
14496 # default) and relocated if they conflict, which is a slow very memory
14497 # consuming and fragmenting process. To avoid this, we pick a random,
14498 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14499 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14500 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14501 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14502 ;;
14503
14504 gnu* | linux* | k*bsd*-gnu)
14505 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14506 tmp_addflag=
14507 case $cc_basename,$host_cpu in
14508 pgcc*) # Portland Group C compiler
14509 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14510 tmp_addflag=' $pic_flag'
14511 ;;
14512 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14513 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14514 tmp_addflag=' $pic_flag -Mnomain' ;;
14515 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14516 tmp_addflag=' -i_dynamic' ;;
14517 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14518 tmp_addflag=' -i_dynamic -nofor_main' ;;
14519 ifc* | ifort*) # Intel Fortran compiler
14520 tmp_addflag=' -nofor_main' ;;
14521 esac
14522 case `$CC -V 2>&1 | sed 5q` in
14523 *Sun\ C*) # Sun C 5.9
14524 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14525 tmp_sharedflag='-G' ;;
14526 *Sun\ F*) # Sun Fortran 8.3
14527 tmp_sharedflag='-G' ;;
14528 *)
14529 tmp_sharedflag='-shared' ;;
14530 esac
14531 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14532
14533 if test $supports_anon_versioning = yes; then
14534 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14535 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14536 $echo "local: *; };" >> $output_objdir/$libname.ver~
14537 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14538 fi
14539 else
14540 ld_shlibs_F77=no
14541 fi
14542 ;;
14543
14544 netbsd*)
14545 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14546 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14547 wlarc=
14548 else
14549 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14550 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14551 fi
14552 ;;
14553
14554 solaris*)
14555 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14556 ld_shlibs_F77=no
14557 cat <<EOF 1>&2
14558
14559 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14560 *** create shared libraries on Solaris systems. Therefore, libtool
14561 *** is disabling shared libraries support. We urge you to upgrade GNU
14562 *** binutils to release 2.9.1 or newer. Another option is to modify
14563 *** your PATH or compiler configuration so that the native linker is
14564 *** used, and then restart.
14565
14566 EOF
14567 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14568 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14569 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14570 else
14571 ld_shlibs_F77=no
14572 fi
14573 ;;
14574
14575 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14576 case `$LD -v 2>&1` in
14577 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14578 ld_shlibs_F77=no
14579 cat <<_LT_EOF 1>&2
14580
14581 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14582 *** reliably create shared libraries on SCO systems. Therefore, libtool
14583 *** is disabling shared libraries support. We urge you to upgrade GNU
14584 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14585 *** your PATH or compiler configuration so that the native linker is
14586 *** used, and then restart.
14587
14588 _LT_EOF
14589 ;;
14590 *)
14591 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14592 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14593 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14594 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14595 else
14596 ld_shlibs_F77=no
14597 fi
14598 ;;
14599 esac
14600 ;;
14601
14602 sunos4*)
14603 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14604 wlarc=
14605 hardcode_direct_F77=yes
14606 hardcode_shlibpath_var_F77=no
14607 ;;
14608
14609 *)
14610 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14611 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14612 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14613 else
14614 ld_shlibs_F77=no
14615 fi
14616 ;;
14617 esac
14618
14619 if test "$ld_shlibs_F77" = no; then
14620 runpath_var=
14621 hardcode_libdir_flag_spec_F77=
14622 export_dynamic_flag_spec_F77=
14623 whole_archive_flag_spec_F77=
14624 fi
14625 else
14626 # PORTME fill in a description of your system's linker (not GNU ld)
14627 case $host_os in
14628 aix3*)
14629 allow_undefined_flag_F77=unsupported
14630 always_export_symbols_F77=yes
14631 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'
14632 # Note: this linker hardcodes the directories in LIBPATH if there
14633 # are no directories specified by -L.
14634 hardcode_minus_L_F77=yes
14635 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14636 # Neither direct hardcoding nor static linking is supported with a
14637 # broken collect2.
14638 hardcode_direct_F77=unsupported
14639 fi
14640 ;;
14641
14642 aix4* | aix5*)
14643 if test "$host_cpu" = ia64; then
14644 # On IA64, the linker does run time linking by default, so we don't
14645 # have to do anything special.
14646 aix_use_runtimelinking=no
14647 exp_sym_flag='-Bexport'
14648 no_entry_flag=""
14649 else
14650 # If we're using GNU nm, then we don't want the "-C" option.
14651 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14652 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14653 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'
14654 else
14655 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'
14656 fi
14657 aix_use_runtimelinking=no
14658
14659 # Test if we are trying to use run time linking or normal
14660 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14661 # need to do runtime linking.
14662 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14663 for ld_flag in $LDFLAGS; do
14664 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14665 aix_use_runtimelinking=yes
14666 break
14667 fi
14668 done
14669 ;;
14670 esac
14671
14672 exp_sym_flag='-bexport'
14673 no_entry_flag='-bnoentry'
14674 fi
14675
14676 # When large executables or shared objects are built, AIX ld can
14677 # have problems creating the table of contents. If linking a library
14678 # or program results in "error TOC overflow" add -mminimal-toc to
14679 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14680 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14681
14682 archive_cmds_F77=''
14683 hardcode_direct_F77=yes
14684 hardcode_libdir_separator_F77=':'
14685 link_all_deplibs_F77=yes
14686
14687 if test "$GCC" = yes; then
14688 case $host_os in aix4.[012]|aix4.[012].*)
14689 # We only want to do this on AIX 4.2 and lower, the check
14690 # below for broken collect2 doesn't work under 4.3+
14691 collect2name=`${CC} -print-prog-name=collect2`
14692 if test -f "$collect2name" && \
14693 strings "$collect2name" | grep resolve_lib_name >/dev/null
14694 then
14695 # We have reworked collect2
14696 :
14697 else
14698 # We have old collect2
14699 hardcode_direct_F77=unsupported
14700 # It fails to find uninstalled libraries when the uninstalled
14701 # path is not listed in the libpath. Setting hardcode_minus_L
14702 # to unsupported forces relinking
14703 hardcode_minus_L_F77=yes
14704 hardcode_libdir_flag_spec_F77='-L$libdir'
14705 hardcode_libdir_separator_F77=
14706 fi
14707 ;;
14708 esac
14709 shared_flag='-shared'
14710 if test "$aix_use_runtimelinking" = yes; then
14711 shared_flag="$shared_flag "'${wl}-G'
14712 fi
14713 else
14714 # not using gcc
14715 if test "$host_cpu" = ia64; then
14716 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14717 # chokes on -Wl,-G. The following line is correct:
14718 shared_flag='-G'
14719 else
14720 if test "$aix_use_runtimelinking" = yes; then
14721 shared_flag='${wl}-G'
14722 else
14723 shared_flag='${wl}-bM:SRE'
14724 fi
14725 fi
14726 fi
14727
14728 # It seems that -bexpall does not export symbols beginning with
14729 # underscore (_), so it is better to generate a list of symbols to export.
14730 always_export_symbols_F77=yes
14731 if test "$aix_use_runtimelinking" = yes; then
14732 # Warning - without using the other runtime loading flags (-brtl),
14733 # -berok will link without error, but may produce a broken library.
14734 allow_undefined_flag_F77='-berok'
14735 # Determine the default libpath from the value encoded in an empty executable.
14736 cat >conftest.$ac_ext <<_ACEOF
14737 program main
14738
14739 end
14740 _ACEOF
14741 rm -f conftest.$ac_objext conftest$ac_exeext
14742 if { (ac_try="$ac_link"
14743 case "(($ac_try" in
14744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14745 *) ac_try_echo=$ac_try;;
14746 esac
14747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14748 (eval "$ac_link") 2>conftest.er1
14749 ac_status=$?
14750 grep -v '^ *+' conftest.er1 >conftest.err
14751 rm -f conftest.er1
14752 cat conftest.err >&5
14753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14754 (exit $ac_status); } && {
14755 test -z "$ac_f77_werror_flag" ||
14756 test ! -s conftest.err
14757 } && test -s conftest$ac_exeext &&
14758 $as_test_x conftest$ac_exeext; then
14759
14760 lt_aix_libpath_sed='
14761 /Import File Strings/,/^$/ {
14762 /^0/ {
14763 s/^0 *\(.*\)$/\1/
14764 p
14765 }
14766 }'
14767 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14768 # Check for a 64-bit object if we didn't find anything.
14769 if test -z "$aix_libpath"; then
14770 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14771 fi
14772 else
14773 echo "$as_me: failed program was:" >&5
14774 sed 's/^/| /' conftest.$ac_ext >&5
14775
14776
14777 fi
14778
14779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14780 conftest$ac_exeext conftest.$ac_ext
14781 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14782
14783 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14784 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14785 else
14786 if test "$host_cpu" = ia64; then
14787 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14788 allow_undefined_flag_F77="-z nodefs"
14789 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14790 else
14791 # Determine the default libpath from the value encoded in an empty executable.
14792 cat >conftest.$ac_ext <<_ACEOF
14793 program main
14794
14795 end
14796 _ACEOF
14797 rm -f conftest.$ac_objext conftest$ac_exeext
14798 if { (ac_try="$ac_link"
14799 case "(($ac_try" in
14800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14801 *) ac_try_echo=$ac_try;;
14802 esac
14803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14804 (eval "$ac_link") 2>conftest.er1
14805 ac_status=$?
14806 grep -v '^ *+' conftest.er1 >conftest.err
14807 rm -f conftest.er1
14808 cat conftest.err >&5
14809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810 (exit $ac_status); } && {
14811 test -z "$ac_f77_werror_flag" ||
14812 test ! -s conftest.err
14813 } && test -s conftest$ac_exeext &&
14814 $as_test_x conftest$ac_exeext; then
14815
14816 lt_aix_libpath_sed='
14817 /Import File Strings/,/^$/ {
14818 /^0/ {
14819 s/^0 *\(.*\)$/\1/
14820 p
14821 }
14822 }'
14823 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14824 # Check for a 64-bit object if we didn't find anything.
14825 if test -z "$aix_libpath"; then
14826 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14827 fi
14828 else
14829 echo "$as_me: failed program was:" >&5
14830 sed 's/^/| /' conftest.$ac_ext >&5
14831
14832
14833 fi
14834
14835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14836 conftest$ac_exeext conftest.$ac_ext
14837 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14838
14839 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14840 # Warning - without using the other run time loading flags,
14841 # -berok will link without error, but may produce a broken library.
14842 no_undefined_flag_F77=' ${wl}-bernotok'
14843 allow_undefined_flag_F77=' ${wl}-berok'
14844 # Exported symbols can be pulled into shared objects from archives
14845 whole_archive_flag_spec_F77='$convenience'
14846 archive_cmds_need_lc_F77=yes
14847 # This is similar to how AIX traditionally builds its shared libraries.
14848 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14849 fi
14850 fi
14851 ;;
14852
14853 amigaos*)
14854 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)'
14855 hardcode_libdir_flag_spec_F77='-L$libdir'
14856 hardcode_minus_L_F77=yes
14857 # see comment about different semantics on the GNU ld section
14858 ld_shlibs_F77=no
14859 ;;
14860
14861 bsdi[45]*)
14862 export_dynamic_flag_spec_F77=-rdynamic
14863 ;;
14864
14865 cygwin* | mingw* | pw32*)
14866 # When not using gcc, we currently assume that we are using
14867 # Microsoft Visual C++.
14868 # hardcode_libdir_flag_spec is actually meaningless, as there is
14869 # no search path for DLLs.
14870 hardcode_libdir_flag_spec_F77=' '
14871 allow_undefined_flag_F77=unsupported
14872 # Tell ltmain to make .lib files, not .a files.
14873 libext=lib
14874 # Tell ltmain to make .dll files, not .so files.
14875 shrext_cmds=".dll"
14876 # FIXME: Setting linknames here is a bad hack.
14877 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14878 # The linker will automatically build a .lib file if we build a DLL.
14879 old_archive_From_new_cmds_F77='true'
14880 # FIXME: Should let the user specify the lib program.
14881 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14882 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14883 enable_shared_with_static_runtimes_F77=yes
14884 ;;
14885
14886 darwin* | rhapsody*)
14887 case $host_os in
14888 rhapsody* | darwin1.[012])
14889 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14890 ;;
14891 *) # Darwin 1.3 on
14892 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14893 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14894 else
14895 case ${MACOSX_DEPLOYMENT_TARGET} in
14896 10.[012])
14897 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14898 ;;
14899 10.*)
14900 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14901 ;;
14902 esac
14903 fi
14904 ;;
14905 esac
14906 archive_cmds_need_lc_F77=no
14907 hardcode_direct_F77=no
14908 hardcode_automatic_F77=yes
14909 hardcode_shlibpath_var_F77=unsupported
14910 whole_archive_flag_spec_F77=''
14911 link_all_deplibs_F77=yes
14912 if test "$GCC" = yes ; then
14913 output_verbose_link_cmd='echo'
14914 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14915 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14916 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14917 archive_expsym_cmds_F77='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}'
14918 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}'
14919 else
14920 case $cc_basename in
14921 xlc*)
14922 output_verbose_link_cmd='echo'
14923 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14924 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14925 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14926 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14927 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}'
14928 ;;
14929 *)
14930 ld_shlibs_F77=no
14931 ;;
14932 esac
14933 fi
14934 ;;
14935
14936 dgux*)
14937 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14938 hardcode_libdir_flag_spec_F77='-L$libdir'
14939 hardcode_shlibpath_var_F77=no
14940 ;;
14941
14942 freebsd1*)
14943 ld_shlibs_F77=no
14944 ;;
14945
14946 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14947 # support. Future versions do this automatically, but an explicit c++rt0.o
14948 # does not break anything, and helps significantly (at the cost of a little
14949 # extra space).
14950 freebsd2.2*)
14951 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14952 hardcode_libdir_flag_spec_F77='-R$libdir'
14953 hardcode_direct_F77=yes
14954 hardcode_shlibpath_var_F77=no
14955 ;;
14956
14957 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14958 freebsd2*)
14959 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14960 hardcode_direct_F77=yes
14961 hardcode_minus_L_F77=yes
14962 hardcode_shlibpath_var_F77=no
14963 ;;
14964
14965 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14966 freebsd* | dragonfly*)
14967 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14968 hardcode_libdir_flag_spec_F77='-R$libdir'
14969 hardcode_direct_F77=yes
14970 hardcode_shlibpath_var_F77=no
14971 ;;
14972
14973 hpux9*)
14974 if test "$GCC" = yes; then
14975 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'
14976 else
14977 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'
14978 fi
14979 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14980 hardcode_libdir_separator_F77=:
14981 hardcode_direct_F77=yes
14982
14983 # hardcode_minus_L: Not really in the search PATH,
14984 # but as the default location of the library.
14985 hardcode_minus_L_F77=yes
14986 export_dynamic_flag_spec_F77='${wl}-E'
14987 ;;
14988
14989 hpux10*)
14990 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14991 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14992 else
14993 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14994 fi
14995 if test "$with_gnu_ld" = no; then
14996 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14997 hardcode_libdir_separator_F77=:
14998
14999 hardcode_direct_F77=yes
15000 export_dynamic_flag_spec_F77='${wl}-E'
15001
15002 # hardcode_minus_L: Not really in the search PATH,
15003 # but as the default location of the library.
15004 hardcode_minus_L_F77=yes
15005 fi
15006 ;;
15007
15008 hpux11*)
15009 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15010 case $host_cpu in
15011 hppa*64*)
15012 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15013 ;;
15014 ia64*)
15015 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15016 ;;
15017 *)
15018 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15019 ;;
15020 esac
15021 else
15022 case $host_cpu in
15023 hppa*64*)
15024 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15025 ;;
15026 ia64*)
15027 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15028 ;;
15029 *)
15030 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15031 ;;
15032 esac
15033 fi
15034 if test "$with_gnu_ld" = no; then
15035 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15036 hardcode_libdir_separator_F77=:
15037
15038 case $host_cpu in
15039 hppa*64*|ia64*)
15040 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15041 hardcode_direct_F77=no
15042 hardcode_shlibpath_var_F77=no
15043 ;;
15044 *)
15045 hardcode_direct_F77=yes
15046 export_dynamic_flag_spec_F77='${wl}-E'
15047
15048 # hardcode_minus_L: Not really in the search PATH,
15049 # but as the default location of the library.
15050 hardcode_minus_L_F77=yes
15051 ;;
15052 esac
15053 fi
15054 ;;
15055
15056 irix5* | irix6* | nonstopux*)
15057 if test "$GCC" = yes; then
15058 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'
15059 else
15060 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'
15061 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15062 fi
15063 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15064 hardcode_libdir_separator_F77=:
15065 link_all_deplibs_F77=yes
15066 ;;
15067
15068 netbsd*)
15069 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15070 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15071 else
15072 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15073 fi
15074 hardcode_libdir_flag_spec_F77='-R$libdir'
15075 hardcode_direct_F77=yes
15076 hardcode_shlibpath_var_F77=no
15077 ;;
15078
15079 newsos6)
15080 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15081 hardcode_direct_F77=yes
15082 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15083 hardcode_libdir_separator_F77=:
15084 hardcode_shlibpath_var_F77=no
15085 ;;
15086
15087 openbsd*)
15088 if test -f /usr/libexec/ld.so; then
15089 hardcode_direct_F77=yes
15090 hardcode_shlibpath_var_F77=no
15091 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15092 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15093 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15094 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15095 export_dynamic_flag_spec_F77='${wl}-E'
15096 else
15097 case $host_os in
15098 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15099 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15100 hardcode_libdir_flag_spec_F77='-R$libdir'
15101 ;;
15102 *)
15103 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15104 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15105 ;;
15106 esac
15107 fi
15108 else
15109 ld_shlibs_F77=no
15110 fi
15111 ;;
15112
15113 os2*)
15114 hardcode_libdir_flag_spec_F77='-L$libdir'
15115 hardcode_minus_L_F77=yes
15116 allow_undefined_flag_F77=unsupported
15117 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'
15118 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15119 ;;
15120
15121 osf3*)
15122 if test "$GCC" = yes; then
15123 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15124 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'
15125 else
15126 allow_undefined_flag_F77=' -expect_unresolved \*'
15127 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'
15128 fi
15129 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15130 hardcode_libdir_separator_F77=:
15131 ;;
15132
15133 osf4* | osf5*) # as osf3* with the addition of -msym flag
15134 if test "$GCC" = yes; then
15135 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15136 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'
15137 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15138 else
15139 allow_undefined_flag_F77=' -expect_unresolved \*'
15140 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'
15141 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~
15142 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15143
15144 # Both c and cxx compiler support -rpath directly
15145 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15146 fi
15147 hardcode_libdir_separator_F77=:
15148 ;;
15149
15150 solaris*)
15151 no_undefined_flag_F77=' -z text'
15152 if test "$GCC" = yes; then
15153 wlarc='${wl}'
15154 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15155 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15156 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15157 else
15158 wlarc=''
15159 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15160 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15161 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15162 fi
15163 hardcode_libdir_flag_spec_F77='-R$libdir'
15164 hardcode_shlibpath_var_F77=no
15165 case $host_os in
15166 solaris2.[0-5] | solaris2.[0-5].*) ;;
15167 *)
15168 # The compiler driver will combine and reorder linker options,
15169 # but understands `-z linker_flag'. GCC discards it without `$wl',
15170 # but is careful enough not to reorder.
15171 # Supported since Solaris 2.6 (maybe 2.5.1?)
15172 if test "$GCC" = yes; then
15173 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15174 else
15175 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15176 fi
15177 ;;
15178 esac
15179 link_all_deplibs_F77=yes
15180 ;;
15181
15182 sunos4*)
15183 if test "x$host_vendor" = xsequent; then
15184 # Use $CC to link under sequent, because it throws in some extra .o
15185 # files that make .init and .fini sections work.
15186 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15187 else
15188 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15189 fi
15190 hardcode_libdir_flag_spec_F77='-L$libdir'
15191 hardcode_direct_F77=yes
15192 hardcode_minus_L_F77=yes
15193 hardcode_shlibpath_var_F77=no
15194 ;;
15195
15196 sysv4)
15197 case $host_vendor in
15198 sni)
15199 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15200 hardcode_direct_F77=yes # is this really true???
15201 ;;
15202 siemens)
15203 ## LD is ld it makes a PLAMLIB
15204 ## CC just makes a GrossModule.
15205 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15206 reload_cmds_F77='$CC -r -o $output$reload_objs'
15207 hardcode_direct_F77=no
15208 ;;
15209 motorola)
15210 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15211 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15212 ;;
15213 esac
15214 runpath_var='LD_RUN_PATH'
15215 hardcode_shlibpath_var_F77=no
15216 ;;
15217
15218 sysv4.3*)
15219 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15220 hardcode_shlibpath_var_F77=no
15221 export_dynamic_flag_spec_F77='-Bexport'
15222 ;;
15223
15224 sysv4*MP*)
15225 if test -d /usr/nec; then
15226 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15227 hardcode_shlibpath_var_F77=no
15228 runpath_var=LD_RUN_PATH
15229 hardcode_runpath_var=yes
15230 ld_shlibs_F77=yes
15231 fi
15232 ;;
15233
15234 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15235 no_undefined_flag_F77='${wl}-z,text'
15236 archive_cmds_need_lc_F77=no
15237 hardcode_shlibpath_var_F77=no
15238 runpath_var='LD_RUN_PATH'
15239
15240 if test "$GCC" = yes; then
15241 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15242 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15243 else
15244 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15245 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15246 fi
15247 ;;
15248
15249 sysv5* | sco3.2v5* | sco5v6*)
15250 # Note: We can NOT use -z defs as we might desire, because we do not
15251 # link with -lc, and that would cause any symbols used from libc to
15252 # always be unresolved, which means just about no library would
15253 # ever link correctly. If we're not using GNU ld we use -z text
15254 # though, which does catch some bad symbols but isn't as heavy-handed
15255 # as -z defs.
15256 no_undefined_flag_F77='${wl}-z,text'
15257 allow_undefined_flag_F77='${wl}-z,nodefs'
15258 archive_cmds_need_lc_F77=no
15259 hardcode_shlibpath_var_F77=no
15260 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15261 hardcode_libdir_separator_F77=':'
15262 link_all_deplibs_F77=yes
15263 export_dynamic_flag_spec_F77='${wl}-Bexport'
15264 runpath_var='LD_RUN_PATH'
15265
15266 if test "$GCC" = yes; then
15267 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15268 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15269 else
15270 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15271 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15272 fi
15273 ;;
15274
15275 uts4*)
15276 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15277 hardcode_libdir_flag_spec_F77='-L$libdir'
15278 hardcode_shlibpath_var_F77=no
15279 ;;
15280
15281 *)
15282 ld_shlibs_F77=no
15283 ;;
15284 esac
15285 fi
15286
15287 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15288 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15289 test "$ld_shlibs_F77" = no && can_build_shared=no
15290
15291 #
15292 # Do we need to explicitly link libc?
15293 #
15294 case "x$archive_cmds_need_lc_F77" in
15295 x|xyes)
15296 # Assume -lc should be added
15297 archive_cmds_need_lc_F77=yes
15298
15299 if test "$enable_shared" = yes && test "$GCC" = yes; then
15300 case $archive_cmds_F77 in
15301 *'~'*)
15302 # FIXME: we may have to deal with multi-command sequences.
15303 ;;
15304 '$CC '*)
15305 # Test whether the compiler implicitly links with -lc since on some
15306 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15307 # to ld, don't add -lc before -lgcc.
15308 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15309 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15310 $rm conftest*
15311 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15312
15313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15314 (eval $ac_compile) 2>&5
15315 ac_status=$?
15316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317 (exit $ac_status); } 2>conftest.err; then
15318 soname=conftest
15319 lib=conftest
15320 libobjs=conftest.$ac_objext
15321 deplibs=
15322 wl=$lt_prog_compiler_wl_F77
15323 pic_flag=$lt_prog_compiler_pic_F77
15324 compiler_flags=-v
15325 linker_flags=-v
15326 verstring=
15327 output_objdir=.
15328 libname=conftest
15329 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15330 allow_undefined_flag_F77=
15331 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15332 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15333 ac_status=$?
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); }
15336 then
15337 archive_cmds_need_lc_F77=no
15338 else
15339 archive_cmds_need_lc_F77=yes
15340 fi
15341 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15342 else
15343 cat conftest.err 1>&5
15344 fi
15345 $rm conftest*
15346 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15347 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15348 ;;
15349 esac
15350 fi
15351 ;;
15352 esac
15353
15354 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15355 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15356 library_names_spec=
15357 libname_spec='lib$name'
15358 soname_spec=
15359 shrext_cmds=".so"
15360 postinstall_cmds=
15361 postuninstall_cmds=
15362 finish_cmds=
15363 finish_eval=
15364 shlibpath_var=
15365 shlibpath_overrides_runpath=unknown
15366 version_type=none
15367 dynamic_linker="$host_os ld.so"
15368 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15369
15370 need_lib_prefix=unknown
15371 hardcode_into_libs=no
15372
15373 # when you set need_version to no, make sure it does not cause -set_version
15374 # flags to be left without arguments
15375 need_version=unknown
15376
15377 case $host_os in
15378 aix3*)
15379 version_type=linux
15380 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15381 shlibpath_var=LIBPATH
15382
15383 # AIX 3 has no versioning support, so we append a major version to the name.
15384 soname_spec='${libname}${release}${shared_ext}$major'
15385 ;;
15386
15387 aix4* | aix5*)
15388 version_type=linux
15389 need_lib_prefix=no
15390 need_version=no
15391 hardcode_into_libs=yes
15392 if test "$host_cpu" = ia64; then
15393 # AIX 5 supports IA64
15394 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15395 shlibpath_var=LD_LIBRARY_PATH
15396 else
15397 # With GCC up to 2.95.x, collect2 would create an import file
15398 # for dependence libraries. The import file would start with
15399 # the line `#! .'. This would cause the generated library to
15400 # depend on `.', always an invalid library. This was fixed in
15401 # development snapshots of GCC prior to 3.0.
15402 case $host_os in
15403 aix4 | aix4.[01] | aix4.[01].*)
15404 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15405 echo ' yes '
15406 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15407 :
15408 else
15409 can_build_shared=no
15410 fi
15411 ;;
15412 esac
15413 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15414 # soname into executable. Probably we can add versioning support to
15415 # collect2, so additional links can be useful in future.
15416 if test "$aix_use_runtimelinking" = yes; then
15417 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15418 # instead of lib<name>.a to let people know that these are not
15419 # typical AIX shared libraries.
15420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15421 else
15422 # We preserve .a as extension for shared libraries through AIX4.2
15423 # and later when we are not doing run time linking.
15424 library_names_spec='${libname}${release}.a $libname.a'
15425 soname_spec='${libname}${release}${shared_ext}$major'
15426 fi
15427 shlibpath_var=LIBPATH
15428 fi
15429 ;;
15430
15431 amigaos*)
15432 library_names_spec='$libname.ixlibrary $libname.a'
15433 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15434 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'
15435 ;;
15436
15437 beos*)
15438 library_names_spec='${libname}${shared_ext}'
15439 dynamic_linker="$host_os ld.so"
15440 shlibpath_var=LIBRARY_PATH
15441 ;;
15442
15443 bsdi[45]*)
15444 version_type=linux
15445 need_version=no
15446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15447 soname_spec='${libname}${release}${shared_ext}$major'
15448 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15449 shlibpath_var=LD_LIBRARY_PATH
15450 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15451 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15452 # the default ld.so.conf also contains /usr/contrib/lib and
15453 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15454 # libtool to hard-code these into programs
15455 ;;
15456
15457 cygwin* | mingw* | pw32*)
15458 version_type=windows
15459 shrext_cmds=".dll"
15460 need_version=no
15461 need_lib_prefix=no
15462
15463 case $GCC,$host_os in
15464 yes,cygwin* | yes,mingw* | yes,pw32*)
15465 library_names_spec='$libname.dll.a'
15466 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15467 postinstall_cmds='base_file=`basename \${file}`~
15468 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15469 dldir=$destdir/`dirname \$dlpath`~
15470 test -d \$dldir || mkdir -p \$dldir~
15471 $install_prog $dir/$dlname \$dldir/$dlname~
15472 chmod a+x \$dldir/$dlname'
15473 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15474 dlpath=$dir/\$dldll~
15475 $rm \$dlpath'
15476 shlibpath_overrides_runpath=yes
15477
15478 case $host_os in
15479 cygwin*)
15480 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15481 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15482 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15483 ;;
15484 mingw*)
15485 # MinGW DLLs use traditional 'lib' prefix
15486 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15487 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15488 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15489 # It is most probably a Windows format PATH printed by
15490 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15491 # path with ; separators, and with drive letters. We can handle the
15492 # drive letters (cygwin fileutils understands them), so leave them,
15493 # especially as we might pass files found there to a mingw objdump,
15494 # which wouldn't understand a cygwinified path. Ahh.
15495 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15496 else
15497 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15498 fi
15499 ;;
15500 pw32*)
15501 # pw32 DLLs use 'pw' prefix rather than 'lib'
15502 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15503 ;;
15504 esac
15505 ;;
15506
15507 *)
15508 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15509 ;;
15510 esac
15511 dynamic_linker='Win32 ld.exe'
15512 # FIXME: first we should search . and the directory the executable is in
15513 shlibpath_var=PATH
15514 ;;
15515
15516 darwin* | rhapsody*)
15517 dynamic_linker="$host_os dyld"
15518 version_type=darwin
15519 need_lib_prefix=no
15520 need_version=no
15521 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15522 soname_spec='${libname}${release}${major}$shared_ext'
15523 shlibpath_overrides_runpath=yes
15524 shlibpath_var=DYLD_LIBRARY_PATH
15525 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15526
15527 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15528 ;;
15529
15530 dgux*)
15531 version_type=linux
15532 need_lib_prefix=no
15533 need_version=no
15534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15535 soname_spec='${libname}${release}${shared_ext}$major'
15536 shlibpath_var=LD_LIBRARY_PATH
15537 ;;
15538
15539 freebsd1*)
15540 dynamic_linker=no
15541 ;;
15542
15543 freebsd* | dragonfly*)
15544 # DragonFly does not have aout. When/if they implement a new
15545 # versioning mechanism, adjust this.
15546 if test -x /usr/bin/objformat; then
15547 objformat=`/usr/bin/objformat`
15548 else
15549 case $host_os in
15550 freebsd[123]*) objformat=aout ;;
15551 *) objformat=elf ;;
15552 esac
15553 fi
15554 version_type=freebsd-$objformat
15555 case $version_type in
15556 freebsd-elf*)
15557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15558 need_version=no
15559 need_lib_prefix=no
15560 ;;
15561 freebsd-*)
15562 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15563 need_version=yes
15564 ;;
15565 esac
15566 shlibpath_var=LD_LIBRARY_PATH
15567 case $host_os in
15568 freebsd2*)
15569 shlibpath_overrides_runpath=yes
15570 ;;
15571 freebsd3.[01]* | freebsdelf3.[01]*)
15572 shlibpath_overrides_runpath=yes
15573 hardcode_into_libs=yes
15574 ;;
15575 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15576 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15577 shlibpath_overrides_runpath=no
15578 hardcode_into_libs=yes
15579 ;;
15580 *) # from 4.6 on, and DragonFly
15581 shlibpath_overrides_runpath=yes
15582 hardcode_into_libs=yes
15583 ;;
15584 esac
15585 ;;
15586
15587 gnu*)
15588 version_type=linux
15589 need_lib_prefix=no
15590 need_version=no
15591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15592 soname_spec='${libname}${release}${shared_ext}$major'
15593 shlibpath_var=LD_LIBRARY_PATH
15594 hardcode_into_libs=yes
15595 ;;
15596
15597 hpux9* | hpux10* | hpux11*)
15598 # Give a soname corresponding to the major version so that dld.sl refuses to
15599 # link against other versions.
15600 version_type=sunos
15601 need_lib_prefix=no
15602 need_version=no
15603 case $host_cpu in
15604 ia64*)
15605 shrext_cmds='.so'
15606 hardcode_into_libs=yes
15607 dynamic_linker="$host_os dld.so"
15608 shlibpath_var=LD_LIBRARY_PATH
15609 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15611 soname_spec='${libname}${release}${shared_ext}$major'
15612 if test "X$HPUX_IA64_MODE" = X32; then
15613 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15614 else
15615 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15616 fi
15617 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15618 ;;
15619 hppa*64*)
15620 shrext_cmds='.sl'
15621 hardcode_into_libs=yes
15622 dynamic_linker="$host_os dld.sl"
15623 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15624 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15626 soname_spec='${libname}${release}${shared_ext}$major'
15627 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15628 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15629 ;;
15630 *)
15631 shrext_cmds='.sl'
15632 dynamic_linker="$host_os dld.sl"
15633 shlibpath_var=SHLIB_PATH
15634 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15636 soname_spec='${libname}${release}${shared_ext}$major'
15637 ;;
15638 esac
15639 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15640 postinstall_cmds='chmod 555 $lib'
15641 ;;
15642
15643 interix[3-9]*)
15644 version_type=linux
15645 need_lib_prefix=no
15646 need_version=no
15647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15648 soname_spec='${libname}${release}${shared_ext}$major'
15649 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15650 shlibpath_var=LD_LIBRARY_PATH
15651 shlibpath_overrides_runpath=no
15652 hardcode_into_libs=yes
15653 ;;
15654
15655 irix5* | irix6* | nonstopux*)
15656 case $host_os in
15657 nonstopux*) version_type=nonstopux ;;
15658 *)
15659 if test "$lt_cv_prog_gnu_ld" = yes; then
15660 version_type=linux
15661 else
15662 version_type=irix
15663 fi ;;
15664 esac
15665 need_lib_prefix=no
15666 need_version=no
15667 soname_spec='${libname}${release}${shared_ext}$major'
15668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15669 case $host_os in
15670 irix5* | nonstopux*)
15671 libsuff= shlibsuff=
15672 ;;
15673 *)
15674 case $LD in # libtool.m4 will add one of these switches to LD
15675 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15676 libsuff= shlibsuff= libmagic=32-bit;;
15677 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15678 libsuff=32 shlibsuff=N32 libmagic=N32;;
15679 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15680 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15681 *) libsuff= shlibsuff= libmagic=never-match;;
15682 esac
15683 ;;
15684 esac
15685 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15686 shlibpath_overrides_runpath=no
15687 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15688 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15689 hardcode_into_libs=yes
15690 ;;
15691
15692 # No shared lib support for Linux oldld, aout, or coff.
15693 linux*oldld* | linux*aout* | linux*coff*)
15694 dynamic_linker=no
15695 ;;
15696
15697 # This must be Linux ELF.
15698 linux* | k*bsd*-gnu)
15699 version_type=linux
15700 need_lib_prefix=no
15701 need_version=no
15702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15703 soname_spec='${libname}${release}${shared_ext}$major'
15704 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15705 shlibpath_var=LD_LIBRARY_PATH
15706 shlibpath_overrides_runpath=no
15707 # This implies no fast_install, which is unacceptable.
15708 # Some rework will be needed to allow for fast_install
15709 # before this can be enabled.
15710 hardcode_into_libs=yes
15711 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15712 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15713
15714 # Append ld.so.conf contents to the search path
15715 if test -f /etc/ld.so.conf; then
15716 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15717 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15718 fi
15719
15720 # We used to test for /lib/ld.so.1 and disable shared libraries on
15721 # powerpc, because MkLinux only supported shared libraries with the
15722 # GNU dynamic linker. Since this was broken with cross compilers,
15723 # most powerpc-linux boxes support dynamic linking these days and
15724 # people can always --disable-shared, the test was removed, and we
15725 # assume the GNU/Linux dynamic linker is in use.
15726 dynamic_linker='GNU/Linux ld.so'
15727 ;;
15728
15729 netbsd*)
15730 version_type=sunos
15731 need_lib_prefix=no
15732 need_version=no
15733 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15735 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15736 dynamic_linker='NetBSD (a.out) ld.so'
15737 else
15738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15739 soname_spec='${libname}${release}${shared_ext}$major'
15740 dynamic_linker='NetBSD ld.elf_so'
15741 fi
15742 shlibpath_var=LD_LIBRARY_PATH
15743 shlibpath_overrides_runpath=yes
15744 hardcode_into_libs=yes
15745 ;;
15746
15747 newsos6)
15748 version_type=linux
15749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15750 shlibpath_var=LD_LIBRARY_PATH
15751 shlibpath_overrides_runpath=yes
15752 ;;
15753
15754 nto-qnx*)
15755 version_type=linux
15756 need_lib_prefix=no
15757 need_version=no
15758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15759 soname_spec='${libname}${release}${shared_ext}$major'
15760 shlibpath_var=LD_LIBRARY_PATH
15761 shlibpath_overrides_runpath=yes
15762 ;;
15763
15764 openbsd*)
15765 version_type=sunos
15766 sys_lib_dlsearch_path_spec="/usr/lib"
15767 need_lib_prefix=no
15768 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15769 case $host_os in
15770 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15771 *) need_version=no ;;
15772 esac
15773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15774 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15775 shlibpath_var=LD_LIBRARY_PATH
15776 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15777 case $host_os in
15778 openbsd2.[89] | openbsd2.[89].*)
15779 shlibpath_overrides_runpath=no
15780 ;;
15781 *)
15782 shlibpath_overrides_runpath=yes
15783 ;;
15784 esac
15785 else
15786 shlibpath_overrides_runpath=yes
15787 fi
15788 ;;
15789
15790 os2*)
15791 libname_spec='$name'
15792 shrext_cmds=".dll"
15793 need_lib_prefix=no
15794 library_names_spec='$libname${shared_ext} $libname.a'
15795 dynamic_linker='OS/2 ld.exe'
15796 shlibpath_var=LIBPATH
15797 ;;
15798
15799 osf3* | osf4* | osf5*)
15800 version_type=osf
15801 need_lib_prefix=no
15802 need_version=no
15803 soname_spec='${libname}${release}${shared_ext}$major'
15804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15805 shlibpath_var=LD_LIBRARY_PATH
15806 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15807 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15808 ;;
15809
15810 rdos*)
15811 dynamic_linker=no
15812 ;;
15813
15814 solaris*)
15815 version_type=linux
15816 need_lib_prefix=no
15817 need_version=no
15818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15819 soname_spec='${libname}${release}${shared_ext}$major'
15820 shlibpath_var=LD_LIBRARY_PATH
15821 shlibpath_overrides_runpath=yes
15822 hardcode_into_libs=yes
15823 # ldd complains unless libraries are executable
15824 postinstall_cmds='chmod +x $lib'
15825 ;;
15826
15827 sunos4*)
15828 version_type=sunos
15829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15830 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15831 shlibpath_var=LD_LIBRARY_PATH
15832 shlibpath_overrides_runpath=yes
15833 if test "$with_gnu_ld" = yes; then
15834 need_lib_prefix=no
15835 fi
15836 need_version=yes
15837 ;;
15838
15839 sysv4 | sysv4.3*)
15840 version_type=linux
15841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15842 soname_spec='${libname}${release}${shared_ext}$major'
15843 shlibpath_var=LD_LIBRARY_PATH
15844 case $host_vendor in
15845 sni)
15846 shlibpath_overrides_runpath=no
15847 need_lib_prefix=no
15848 export_dynamic_flag_spec='${wl}-Blargedynsym'
15849 runpath_var=LD_RUN_PATH
15850 ;;
15851 siemens)
15852 need_lib_prefix=no
15853 ;;
15854 motorola)
15855 need_lib_prefix=no
15856 need_version=no
15857 shlibpath_overrides_runpath=no
15858 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15859 ;;
15860 esac
15861 ;;
15862
15863 sysv4*MP*)
15864 if test -d /usr/nec ;then
15865 version_type=linux
15866 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15867 soname_spec='$libname${shared_ext}.$major'
15868 shlibpath_var=LD_LIBRARY_PATH
15869 fi
15870 ;;
15871
15872 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15873 version_type=freebsd-elf
15874 need_lib_prefix=no
15875 need_version=no
15876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15877 soname_spec='${libname}${release}${shared_ext}$major'
15878 shlibpath_var=LD_LIBRARY_PATH
15879 hardcode_into_libs=yes
15880 if test "$with_gnu_ld" = yes; then
15881 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15882 shlibpath_overrides_runpath=no
15883 else
15884 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15885 shlibpath_overrides_runpath=yes
15886 case $host_os in
15887 sco3.2v5*)
15888 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15889 ;;
15890 esac
15891 fi
15892 sys_lib_dlsearch_path_spec='/usr/lib'
15893 ;;
15894
15895 uts4*)
15896 version_type=linux
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 shlibpath_var=LD_LIBRARY_PATH
15900 ;;
15901
15902 *)
15903 dynamic_linker=no
15904 ;;
15905 esac
15906 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15907 echo "${ECHO_T}$dynamic_linker" >&6; }
15908 test "$dynamic_linker" = no && can_build_shared=no
15909
15910 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15911 if test "$GCC" = yes; then
15912 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15913 fi
15914
15915 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15916 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15917 hardcode_action_F77=
15918 if test -n "$hardcode_libdir_flag_spec_F77" || \
15919 test -n "$runpath_var_F77" || \
15920 test "X$hardcode_automatic_F77" = "Xyes" ; then
15921
15922 # We can hardcode non-existant directories.
15923 if test "$hardcode_direct_F77" != no &&
15924 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15925 # have to relink, otherwise we might link with an installed library
15926 # when we should be linking with a yet-to-be-installed one
15927 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15928 test "$hardcode_minus_L_F77" != no; then
15929 # Linking always hardcodes the temporary library directory.
15930 hardcode_action_F77=relink
15931 else
15932 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15933 hardcode_action_F77=immediate
15934 fi
15935 else
15936 # We cannot hardcode anything, or else we can only hardcode existing
15937 # directories.
15938 hardcode_action_F77=unsupported
15939 fi
15940 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15941 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15942
15943 if test "$hardcode_action_F77" = relink; then
15944 # Fast installation is not supported
15945 enable_fast_install=no
15946 elif test "$shlibpath_overrides_runpath" = yes ||
15947 test "$enable_shared" = no; then
15948 # Fast installation is not necessary
15949 enable_fast_install=needless
15950 fi
15951
15952
15953 # The else clause should only fire when bootstrapping the
15954 # libtool distribution, otherwise you forgot to ship ltmain.sh
15955 # with your package, and you will get complaints that there are
15956 # no rules to generate ltmain.sh.
15957 if test -f "$ltmain"; then
15958 # See if we are running on zsh, and set the options which allow our commands through
15959 # without removal of \ escapes.
15960 if test -n "${ZSH_VERSION+set}" ; then
15961 setopt NO_GLOB_SUBST
15962 fi
15963 # Now quote all the things that may contain metacharacters while being
15964 # careful not to overquote the AC_SUBSTed values. We take copies of the
15965 # variables and quote the copies for generation of the libtool script.
15966 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15967 SED SHELL STRIP \
15968 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15969 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15970 deplibs_check_method reload_flag reload_cmds need_locks \
15971 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15972 lt_cv_sys_global_symbol_to_c_name_address \
15973 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15974 old_postinstall_cmds old_postuninstall_cmds \
15975 compiler_F77 \
15976 CC_F77 \
15977 LD_F77 \
15978 lt_prog_compiler_wl_F77 \
15979 lt_prog_compiler_pic_F77 \
15980 lt_prog_compiler_static_F77 \
15981 lt_prog_compiler_no_builtin_flag_F77 \
15982 export_dynamic_flag_spec_F77 \
15983 thread_safe_flag_spec_F77 \
15984 whole_archive_flag_spec_F77 \
15985 enable_shared_with_static_runtimes_F77 \
15986 old_archive_cmds_F77 \
15987 old_archive_from_new_cmds_F77 \
15988 predep_objects_F77 \
15989 postdep_objects_F77 \
15990 predeps_F77 \
15991 postdeps_F77 \
15992 compiler_lib_search_path_F77 \
15993 archive_cmds_F77 \
15994 archive_expsym_cmds_F77 \
15995 postinstall_cmds_F77 \
15996 postuninstall_cmds_F77 \
15997 old_archive_from_expsyms_cmds_F77 \
15998 allow_undefined_flag_F77 \
15999 no_undefined_flag_F77 \
16000 export_symbols_cmds_F77 \
16001 hardcode_libdir_flag_spec_F77 \
16002 hardcode_libdir_flag_spec_ld_F77 \
16003 hardcode_libdir_separator_F77 \
16004 hardcode_automatic_F77 \
16005 module_cmds_F77 \
16006 module_expsym_cmds_F77 \
16007 lt_cv_prog_compiler_c_o_F77 \
16008 fix_srcfile_path_F77 \
16009 exclude_expsyms_F77 \
16010 include_expsyms_F77; do
16011
16012 case $var in
16013 old_archive_cmds_F77 | \
16014 old_archive_from_new_cmds_F77 | \
16015 archive_cmds_F77 | \
16016 archive_expsym_cmds_F77 | \
16017 module_cmds_F77 | \
16018 module_expsym_cmds_F77 | \
16019 old_archive_from_expsyms_cmds_F77 | \
16020 export_symbols_cmds_F77 | \
16021 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16022 postinstall_cmds | postuninstall_cmds | \
16023 old_postinstall_cmds | old_postuninstall_cmds | \
16024 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16025 # Double-quote double-evaled strings.
16026 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16027 ;;
16028 *)
16029 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16030 ;;
16031 esac
16032 done
16033
16034 case $lt_echo in
16035 *'\$0 --fallback-echo"')
16036 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16037 ;;
16038 esac
16039
16040 cfgfile="$ofile"
16041
16042 cat <<__EOF__ >> "$cfgfile"
16043 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16044
16045 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16046
16047 # Shell to use when invoking shell scripts.
16048 SHELL=$lt_SHELL
16049
16050 # Whether or not to build shared libraries.
16051 build_libtool_libs=$enable_shared
16052
16053 # Whether or not to build static libraries.
16054 build_old_libs=$enable_static
16055
16056 # Whether or not to add -lc for building shared libraries.
16057 build_libtool_need_lc=$archive_cmds_need_lc_F77
16058
16059 # Whether or not to disallow shared libs when runtime libs are static
16060 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16061
16062 # Whether or not to optimize for fast installation.
16063 fast_install=$enable_fast_install
16064
16065 # The host system.
16066 host_alias=$host_alias
16067 host=$host
16068 host_os=$host_os
16069
16070 # The build system.
16071 build_alias=$build_alias
16072 build=$build
16073 build_os=$build_os
16074
16075 # An echo program that does not interpret backslashes.
16076 echo=$lt_echo
16077
16078 # The archiver.
16079 AR=$lt_AR
16080 AR_FLAGS=$lt_AR_FLAGS
16081
16082 # A C compiler.
16083 LTCC=$lt_LTCC
16084
16085 # LTCC compiler flags.
16086 LTCFLAGS=$lt_LTCFLAGS
16087
16088 # A language-specific compiler.
16089 CC=$lt_compiler_F77
16090
16091 # Is the compiler the GNU C compiler?
16092 with_gcc=$GCC_F77
16093
16094 # An ERE matcher.
16095 EGREP=$lt_EGREP
16096
16097 # The linker used to build libraries.
16098 LD=$lt_LD_F77
16099
16100 # Whether we need hard or soft links.
16101 LN_S=$lt_LN_S
16102
16103 # A BSD-compatible nm program.
16104 NM=$lt_NM
16105
16106 # A symbol stripping program
16107 STRIP=$lt_STRIP
16108
16109 # Used to examine libraries when file_magic_cmd begins "file"
16110 MAGIC_CMD=$MAGIC_CMD
16111
16112 # Used on cygwin: DLL creation program.
16113 DLLTOOL="$DLLTOOL"
16114
16115 # Used on cygwin: object dumper.
16116 OBJDUMP="$OBJDUMP"
16117
16118 # Used on cygwin: assembler.
16119 AS="$AS"
16120
16121 # The name of the directory that contains temporary libtool files.
16122 objdir=$objdir
16123
16124 # How to create reloadable object files.
16125 reload_flag=$lt_reload_flag
16126 reload_cmds=$lt_reload_cmds
16127
16128 # How to pass a linker flag through the compiler.
16129 wl=$lt_lt_prog_compiler_wl_F77
16130
16131 # Object file suffix (normally "o").
16132 objext="$ac_objext"
16133
16134 # Old archive suffix (normally "a").
16135 libext="$libext"
16136
16137 # Shared library suffix (normally ".so").
16138 shrext_cmds='$shrext_cmds'
16139
16140 # Executable file suffix (normally "").
16141 exeext="$exeext"
16142
16143 # Additional compiler flags for building library objects.
16144 pic_flag=$lt_lt_prog_compiler_pic_F77
16145 pic_mode=$pic_mode
16146
16147 # What is the maximum length of a command?
16148 max_cmd_len=$lt_cv_sys_max_cmd_len
16149
16150 # Does compiler simultaneously support -c and -o options?
16151 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16152
16153 # Must we lock files when doing compilation?
16154 need_locks=$lt_need_locks
16155
16156 # Do we need the lib prefix for modules?
16157 need_lib_prefix=$need_lib_prefix
16158
16159 # Do we need a version for libraries?
16160 need_version=$need_version
16161
16162 # Whether dlopen is supported.
16163 dlopen_support=$enable_dlopen
16164
16165 # Whether dlopen of programs is supported.
16166 dlopen_self=$enable_dlopen_self
16167
16168 # Whether dlopen of statically linked programs is supported.
16169 dlopen_self_static=$enable_dlopen_self_static
16170
16171 # Compiler flag to prevent dynamic linking.
16172 link_static_flag=$lt_lt_prog_compiler_static_F77
16173
16174 # Compiler flag to turn off builtin functions.
16175 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16176
16177 # Compiler flag to allow reflexive dlopens.
16178 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16179
16180 # Compiler flag to generate shared objects directly from archives.
16181 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16182
16183 # Compiler flag to generate thread-safe objects.
16184 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16185
16186 # Library versioning type.
16187 version_type=$version_type
16188
16189 # Format of library name prefix.
16190 libname_spec=$lt_libname_spec
16191
16192 # List of archive names. First name is the real one, the rest are links.
16193 # The last name is the one that the linker finds with -lNAME.
16194 library_names_spec=$lt_library_names_spec
16195
16196 # The coded name of the library, if different from the real name.
16197 soname_spec=$lt_soname_spec
16198
16199 # Commands used to build and install an old-style archive.
16200 RANLIB=$lt_RANLIB
16201 old_archive_cmds=$lt_old_archive_cmds_F77
16202 old_postinstall_cmds=$lt_old_postinstall_cmds
16203 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16204
16205 # Create an old-style archive from a shared archive.
16206 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16207
16208 # Create a temporary old-style archive to link instead of a shared archive.
16209 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16210
16211 # Commands used to build and install a shared archive.
16212 archive_cmds=$lt_archive_cmds_F77
16213 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16214 postinstall_cmds=$lt_postinstall_cmds
16215 postuninstall_cmds=$lt_postuninstall_cmds
16216
16217 # Commands used to build a loadable module (assumed same as above if empty)
16218 module_cmds=$lt_module_cmds_F77
16219 module_expsym_cmds=$lt_module_expsym_cmds_F77
16220
16221 # Commands to strip libraries.
16222 old_striplib=$lt_old_striplib
16223 striplib=$lt_striplib
16224
16225 # Dependencies to place before the objects being linked to create a
16226 # shared library.
16227 predep_objects=$lt_predep_objects_F77
16228
16229 # Dependencies to place after the objects being linked to create a
16230 # shared library.
16231 postdep_objects=$lt_postdep_objects_F77
16232
16233 # Dependencies to place before the objects being linked to create a
16234 # shared library.
16235 predeps=$lt_predeps_F77
16236
16237 # Dependencies to place after the objects being linked to create a
16238 # shared library.
16239 postdeps=$lt_postdeps_F77
16240
16241 # The library search path used internally by the compiler when linking
16242 # a shared library.
16243 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16244
16245 # Method to check whether dependent libraries are shared objects.
16246 deplibs_check_method=$lt_deplibs_check_method
16247
16248 # Command to use when deplibs_check_method == file_magic.
16249 file_magic_cmd=$lt_file_magic_cmd
16250
16251 # Flag that allows shared libraries with undefined symbols to be built.
16252 allow_undefined_flag=$lt_allow_undefined_flag_F77
16253
16254 # Flag that forces no undefined symbols.
16255 no_undefined_flag=$lt_no_undefined_flag_F77
16256
16257 # Commands used to finish a libtool library installation in a directory.
16258 finish_cmds=$lt_finish_cmds
16259
16260 # Same as above, but a single script fragment to be evaled but not shown.
16261 finish_eval=$lt_finish_eval
16262
16263 # Take the output of nm and produce a listing of raw symbols and C names.
16264 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16265
16266 # Transform the output of nm in a proper C declaration
16267 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16268
16269 # Transform the output of nm in a C name address pair
16270 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16271
16272 # This is the shared library runtime path variable.
16273 runpath_var=$runpath_var
16274
16275 # This is the shared library path variable.
16276 shlibpath_var=$shlibpath_var
16277
16278 # Is shlibpath searched before the hard-coded library search path?
16279 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16280
16281 # How to hardcode a shared library path into an executable.
16282 hardcode_action=$hardcode_action_F77
16283
16284 # Whether we should hardcode library paths into libraries.
16285 hardcode_into_libs=$hardcode_into_libs
16286
16287 # Flag to hardcode \$libdir into a binary during linking.
16288 # This must work even if \$libdir does not exist.
16289 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16290
16291 # If ld is used when linking, flag to hardcode \$libdir into
16292 # a binary during linking. This must work even if \$libdir does
16293 # not exist.
16294 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16295
16296 # Whether we need a single -rpath flag with a separated argument.
16297 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16298
16299 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16300 # resulting binary.
16301 hardcode_direct=$hardcode_direct_F77
16302
16303 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16304 # resulting binary.
16305 hardcode_minus_L=$hardcode_minus_L_F77
16306
16307 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16308 # the resulting binary.
16309 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16310
16311 # Set to yes if building a shared library automatically hardcodes DIR into the library
16312 # and all subsequent libraries and executables linked against it.
16313 hardcode_automatic=$hardcode_automatic_F77
16314
16315 # Variables whose values should be saved in libtool wrapper scripts and
16316 # restored at relink time.
16317 variables_saved_for_relink="$variables_saved_for_relink"
16318
16319 # Whether libtool must link a program against all its dependency libraries.
16320 link_all_deplibs=$link_all_deplibs_F77
16321
16322 # Compile-time system search path for libraries
16323 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16324
16325 # Run-time system search path for libraries
16326 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16327
16328 # Fix the shell variable \$srcfile for the compiler.
16329 fix_srcfile_path=$lt_fix_srcfile_path
16330
16331 # Set to yes if exported symbols are required.
16332 always_export_symbols=$always_export_symbols_F77
16333
16334 # The commands to list exported symbols.
16335 export_symbols_cmds=$lt_export_symbols_cmds_F77
16336
16337 # The commands to extract the exported symbol list from a shared archive.
16338 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16339
16340 # Symbols that should not be listed in the preloaded symbols.
16341 exclude_expsyms=$lt_exclude_expsyms_F77
16342
16343 # Symbols that must always be exported.
16344 include_expsyms=$lt_include_expsyms_F77
16345
16346 # ### END LIBTOOL TAG CONFIG: $tagname
16347
16348 __EOF__
16349
16350
16351 else
16352 # If there is no Makefile yet, we rely on a make rule to execute
16353 # `config.status --recheck' to rerun these tests and create the
16354 # libtool script then.
16355 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16356 if test -f "$ltmain_in"; then
16357 test -f Makefile && make "$ltmain"
16358 fi
16359 fi
16360
16361
16362 ac_ext=c
16363 ac_cpp='$CPP $CPPFLAGS'
16364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16367
16368 CC="$lt_save_CC"
16369
16370 else
16371 tagname=""
16372 fi
16373 ;;
16374
16375 GCJ)
16376 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16377
16378
16379 # Source file extension for Java test sources.
16380 ac_ext=java
16381
16382 # Object file extension for compiled Java test sources.
16383 objext=o
16384 objext_GCJ=$objext
16385
16386 # Code to be used in simple compile tests
16387 lt_simple_compile_test_code="class foo {}"
16388
16389 # Code to be used in simple link tests
16390 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16391
16392 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16393
16394 # If no C compiler was specified, use CC.
16395 LTCC=${LTCC-"$CC"}
16396
16397 # If no C compiler flags were specified, use CFLAGS.
16398 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16399
16400 # Allow CC to be a program name with arguments.
16401 compiler=$CC
16402
16403
16404 # save warnings/boilerplate of simple test code
16405 ac_outfile=conftest.$ac_objext
16406 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16407 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16408 _lt_compiler_boilerplate=`cat conftest.err`
16409 $rm conftest*
16410
16411 ac_outfile=conftest.$ac_objext
16412 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16413 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16414 _lt_linker_boilerplate=`cat conftest.err`
16415 $rm conftest*
16416
16417
16418 # Allow CC to be a program name with arguments.
16419 lt_save_CC="$CC"
16420 CC=${GCJ-"gcj"}
16421 compiler=$CC
16422 compiler_GCJ=$CC
16423 for cc_temp in $compiler""; do
16424 case $cc_temp in
16425 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16426 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16427 \-*) ;;
16428 *) break;;
16429 esac
16430 done
16431 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16432
16433
16434 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16435 archive_cmds_need_lc_GCJ=no
16436
16437 old_archive_cmds_GCJ=$old_archive_cmds
16438
16439
16440 lt_prog_compiler_no_builtin_flag_GCJ=
16441
16442 if test "$GCC" = yes; then
16443 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16444
16445
16446 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16447 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16448 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16449 echo $ECHO_N "(cached) $ECHO_C" >&6
16450 else
16451 lt_cv_prog_compiler_rtti_exceptions=no
16452 ac_outfile=conftest.$ac_objext
16453 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16454 lt_compiler_flag="-fno-rtti -fno-exceptions"
16455 # Insert the option either (1) after the last *FLAGS variable, or
16456 # (2) before a word containing "conftest.", or (3) at the end.
16457 # Note that $ac_compile itself does not contain backslashes and begins
16458 # with a dollar sign (not a hyphen), so the echo should work correctly.
16459 # The option is referenced via a variable to avoid confusing sed.
16460 lt_compile=`echo "$ac_compile" | $SED \
16461 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16462 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16463 -e 's:$: $lt_compiler_flag:'`
16464 (eval echo "\"\$as_me:16465: $lt_compile\"" >&5)
16465 (eval "$lt_compile" 2>conftest.err)
16466 ac_status=$?
16467 cat conftest.err >&5
16468 echo "$as_me:16469: \$? = $ac_status" >&5
16469 if (exit $ac_status) && test -s "$ac_outfile"; then
16470 # The compiler can only warn and ignore the option if not recognized
16471 # So say no if there are warnings other than the usual output.
16472 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16473 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16474 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16475 lt_cv_prog_compiler_rtti_exceptions=yes
16476 fi
16477 fi
16478 $rm conftest*
16479
16480 fi
16481 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16482 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16483
16484 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16485 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16486 else
16487 :
16488 fi
16489
16490 fi
16491
16492 lt_prog_compiler_wl_GCJ=
16493 lt_prog_compiler_pic_GCJ=
16494 lt_prog_compiler_static_GCJ=
16495
16496 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16497 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16498
16499 if test "$GCC" = yes; then
16500 lt_prog_compiler_wl_GCJ='-Wl,'
16501 lt_prog_compiler_static_GCJ='-static'
16502
16503 case $host_os in
16504 aix*)
16505 # All AIX code is PIC.
16506 if test "$host_cpu" = ia64; then
16507 # AIX 5 now supports IA64 processor
16508 lt_prog_compiler_static_GCJ='-Bstatic'
16509 fi
16510 ;;
16511
16512 amigaos*)
16513 # FIXME: we need at least 68020 code to build shared libraries, but
16514 # adding the `-m68020' flag to GCC prevents building anything better,
16515 # like `-m68040'.
16516 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16517 ;;
16518
16519 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16520 # PIC is the default for these OSes.
16521 ;;
16522
16523 mingw* | cygwin* | pw32* | os2*)
16524 # This hack is so that the source file can tell whether it is being
16525 # built for inclusion in a dll (and should export symbols for example).
16526 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16527 # (--disable-auto-import) libraries
16528 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16529 ;;
16530
16531 darwin* | rhapsody*)
16532 # PIC is the default on this platform
16533 # Common symbols not allowed in MH_DYLIB files
16534 lt_prog_compiler_pic_GCJ='-fno-common'
16535 ;;
16536
16537 interix[3-9]*)
16538 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16539 # Instead, we relocate shared libraries at runtime.
16540 ;;
16541
16542 msdosdjgpp*)
16543 # Just because we use GCC doesn't mean we suddenly get shared libraries
16544 # on systems that don't support them.
16545 lt_prog_compiler_can_build_shared_GCJ=no
16546 enable_shared=no
16547 ;;
16548
16549 sysv4*MP*)
16550 if test -d /usr/nec; then
16551 lt_prog_compiler_pic_GCJ=-Kconform_pic
16552 fi
16553 ;;
16554
16555 hpux*)
16556 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16557 # not for PA HP-UX.
16558 case $host_cpu in
16559 hppa*64*|ia64*)
16560 # +Z the default
16561 ;;
16562 *)
16563 lt_prog_compiler_pic_GCJ='-fPIC'
16564 ;;
16565 esac
16566 ;;
16567
16568 *)
16569 lt_prog_compiler_pic_GCJ='-fPIC'
16570 ;;
16571 esac
16572 else
16573 # PORTME Check for flag to pass linker flags through the system compiler.
16574 case $host_os in
16575 aix*)
16576 lt_prog_compiler_wl_GCJ='-Wl,'
16577 if test "$host_cpu" = ia64; then
16578 # AIX 5 now supports IA64 processor
16579 lt_prog_compiler_static_GCJ='-Bstatic'
16580 else
16581 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16582 fi
16583 ;;
16584 darwin*)
16585 # PIC is the default on this platform
16586 # Common symbols not allowed in MH_DYLIB files
16587 case $cc_basename in
16588 xlc*)
16589 lt_prog_compiler_pic_GCJ='-qnocommon'
16590 lt_prog_compiler_wl_GCJ='-Wl,'
16591 ;;
16592 esac
16593 ;;
16594
16595 mingw* | cygwin* | pw32* | os2*)
16596 # This hack is so that the source file can tell whether it is being
16597 # built for inclusion in a dll (and should export symbols for example).
16598 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16599 ;;
16600
16601 hpux9* | hpux10* | hpux11*)
16602 lt_prog_compiler_wl_GCJ='-Wl,'
16603 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16604 # not for PA HP-UX.
16605 case $host_cpu in
16606 hppa*64*|ia64*)
16607 # +Z the default
16608 ;;
16609 *)
16610 lt_prog_compiler_pic_GCJ='+Z'
16611 ;;
16612 esac
16613 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16614 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16615 ;;
16616
16617 irix5* | irix6* | nonstopux*)
16618 lt_prog_compiler_wl_GCJ='-Wl,'
16619 # PIC (with -KPIC) is the default.
16620 lt_prog_compiler_static_GCJ='-non_shared'
16621 ;;
16622
16623 newsos6)
16624 lt_prog_compiler_pic_GCJ='-KPIC'
16625 lt_prog_compiler_static_GCJ='-Bstatic'
16626 ;;
16627
16628 linux* | k*bsd*-gnu)
16629 case $cc_basename in
16630 icc* | ecc*)
16631 lt_prog_compiler_wl_GCJ='-Wl,'
16632 lt_prog_compiler_pic_GCJ='-KPIC'
16633 lt_prog_compiler_static_GCJ='-static'
16634 ;;
16635 pgcc* | pgf77* | pgf90* | pgf95*)
16636 # Portland Group compilers (*not* the Pentium gcc compiler,
16637 # which looks to be a dead project)
16638 lt_prog_compiler_wl_GCJ='-Wl,'
16639 lt_prog_compiler_pic_GCJ='-fpic'
16640 lt_prog_compiler_static_GCJ='-Bstatic'
16641 ;;
16642 ccc*)
16643 lt_prog_compiler_wl_GCJ='-Wl,'
16644 # All Alpha code is PIC.
16645 lt_prog_compiler_static_GCJ='-non_shared'
16646 ;;
16647 *)
16648 case `$CC -V 2>&1 | sed 5q` in
16649 *Sun\ C*)
16650 # Sun C 5.9
16651 lt_prog_compiler_pic_GCJ='-KPIC'
16652 lt_prog_compiler_static_GCJ='-Bstatic'
16653 lt_prog_compiler_wl_GCJ='-Wl,'
16654 ;;
16655 *Sun\ F*)
16656 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16657 lt_prog_compiler_pic_GCJ='-KPIC'
16658 lt_prog_compiler_static_GCJ='-Bstatic'
16659 lt_prog_compiler_wl_GCJ=''
16660 ;;
16661 esac
16662 ;;
16663 esac
16664 ;;
16665
16666 osf3* | osf4* | osf5*)
16667 lt_prog_compiler_wl_GCJ='-Wl,'
16668 # All OSF/1 code is PIC.
16669 lt_prog_compiler_static_GCJ='-non_shared'
16670 ;;
16671
16672 rdos*)
16673 lt_prog_compiler_static_GCJ='-non_shared'
16674 ;;
16675
16676 solaris*)
16677 lt_prog_compiler_pic_GCJ='-KPIC'
16678 lt_prog_compiler_static_GCJ='-Bstatic'
16679 case $cc_basename in
16680 f77* | f90* | f95*)
16681 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16682 *)
16683 lt_prog_compiler_wl_GCJ='-Wl,';;
16684 esac
16685 ;;
16686
16687 sunos4*)
16688 lt_prog_compiler_wl_GCJ='-Qoption ld '
16689 lt_prog_compiler_pic_GCJ='-PIC'
16690 lt_prog_compiler_static_GCJ='-Bstatic'
16691 ;;
16692
16693 sysv4 | sysv4.2uw2* | sysv4.3*)
16694 lt_prog_compiler_wl_GCJ='-Wl,'
16695 lt_prog_compiler_pic_GCJ='-KPIC'
16696 lt_prog_compiler_static_GCJ='-Bstatic'
16697 ;;
16698
16699 sysv4*MP*)
16700 if test -d /usr/nec ;then
16701 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16702 lt_prog_compiler_static_GCJ='-Bstatic'
16703 fi
16704 ;;
16705
16706 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16707 lt_prog_compiler_wl_GCJ='-Wl,'
16708 lt_prog_compiler_pic_GCJ='-KPIC'
16709 lt_prog_compiler_static_GCJ='-Bstatic'
16710 ;;
16711
16712 unicos*)
16713 lt_prog_compiler_wl_GCJ='-Wl,'
16714 lt_prog_compiler_can_build_shared_GCJ=no
16715 ;;
16716
16717 uts4*)
16718 lt_prog_compiler_pic_GCJ='-pic'
16719 lt_prog_compiler_static_GCJ='-Bstatic'
16720 ;;
16721
16722 *)
16723 lt_prog_compiler_can_build_shared_GCJ=no
16724 ;;
16725 esac
16726 fi
16727
16728 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16729 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16730
16731 #
16732 # Check to make sure the PIC flag actually works.
16733 #
16734 if test -n "$lt_prog_compiler_pic_GCJ"; then
16735
16736 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16737 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16738 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16739 echo $ECHO_N "(cached) $ECHO_C" >&6
16740 else
16741 lt_prog_compiler_pic_works_GCJ=no
16742 ac_outfile=conftest.$ac_objext
16743 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16744 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16745 # Insert the option either (1) after the last *FLAGS variable, or
16746 # (2) before a word containing "conftest.", or (3) at the end.
16747 # Note that $ac_compile itself does not contain backslashes and begins
16748 # with a dollar sign (not a hyphen), so the echo should work correctly.
16749 # The option is referenced via a variable to avoid confusing sed.
16750 lt_compile=`echo "$ac_compile" | $SED \
16751 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16752 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16753 -e 's:$: $lt_compiler_flag:'`
16754 (eval echo "\"\$as_me:16755: $lt_compile\"" >&5)
16755 (eval "$lt_compile" 2>conftest.err)
16756 ac_status=$?
16757 cat conftest.err >&5
16758 echo "$as_me:16759: \$? = $ac_status" >&5
16759 if (exit $ac_status) && test -s "$ac_outfile"; then
16760 # The compiler can only warn and ignore the option if not recognized
16761 # So say no if there are warnings other than the usual output.
16762 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16763 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16764 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16765 lt_prog_compiler_pic_works_GCJ=yes
16766 fi
16767 fi
16768 $rm conftest*
16769
16770 fi
16771 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16772 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16773
16774 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16775 case $lt_prog_compiler_pic_GCJ in
16776 "" | " "*) ;;
16777 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16778 esac
16779 else
16780 lt_prog_compiler_pic_GCJ=
16781 lt_prog_compiler_can_build_shared_GCJ=no
16782 fi
16783
16784 fi
16785 case $host_os in
16786 # For platforms which do not support PIC, -DPIC is meaningless:
16787 *djgpp*)
16788 lt_prog_compiler_pic_GCJ=
16789 ;;
16790 *)
16791 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16792 ;;
16793 esac
16794
16795 #
16796 # Check to make sure the static flag actually works.
16797 #
16798 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16799 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16800 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16801 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16802 echo $ECHO_N "(cached) $ECHO_C" >&6
16803 else
16804 lt_prog_compiler_static_works_GCJ=no
16805 save_LDFLAGS="$LDFLAGS"
16806 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16807 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16808 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16809 # The linker can only warn and ignore the option if not recognized
16810 # So say no if there are warnings
16811 if test -s conftest.err; then
16812 # Append any errors to the config.log.
16813 cat conftest.err 1>&5
16814 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16815 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16816 if diff conftest.exp conftest.er2 >/dev/null; then
16817 lt_prog_compiler_static_works_GCJ=yes
16818 fi
16819 else
16820 lt_prog_compiler_static_works_GCJ=yes
16821 fi
16822 fi
16823 $rm conftest*
16824 LDFLAGS="$save_LDFLAGS"
16825
16826 fi
16827 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16828 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16829
16830 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16831 :
16832 else
16833 lt_prog_compiler_static_GCJ=
16834 fi
16835
16836
16837 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16838 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16839 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16840 echo $ECHO_N "(cached) $ECHO_C" >&6
16841 else
16842 lt_cv_prog_compiler_c_o_GCJ=no
16843 $rm -r conftest 2>/dev/null
16844 mkdir conftest
16845 cd conftest
16846 mkdir out
16847 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16848
16849 lt_compiler_flag="-o out/conftest2.$ac_objext"
16850 # Insert the option either (1) after the last *FLAGS variable, or
16851 # (2) before a word containing "conftest.", or (3) at the end.
16852 # Note that $ac_compile itself does not contain backslashes and begins
16853 # with a dollar sign (not a hyphen), so the echo should work correctly.
16854 lt_compile=`echo "$ac_compile" | $SED \
16855 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16856 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16857 -e 's:$: $lt_compiler_flag:'`
16858 (eval echo "\"\$as_me:16859: $lt_compile\"" >&5)
16859 (eval "$lt_compile" 2>out/conftest.err)
16860 ac_status=$?
16861 cat out/conftest.err >&5
16862 echo "$as_me:16863: \$? = $ac_status" >&5
16863 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16864 then
16865 # The compiler can only warn and ignore the option if not recognized
16866 # So say no if there are warnings
16867 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16868 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16869 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16870 lt_cv_prog_compiler_c_o_GCJ=yes
16871 fi
16872 fi
16873 chmod u+w . 2>&5
16874 $rm conftest*
16875 # SGI C++ compiler will create directory out/ii_files/ for
16876 # template instantiation
16877 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16878 $rm out/* && rmdir out
16879 cd ..
16880 rmdir conftest
16881 $rm conftest*
16882
16883 fi
16884 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16885 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16886
16887
16888 hard_links="nottested"
16889 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16890 # do not overwrite the value of need_locks provided by the user
16891 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16892 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16893 hard_links=yes
16894 $rm conftest*
16895 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16896 touch conftest.a
16897 ln conftest.a conftest.b 2>&5 || hard_links=no
16898 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16899 { echo "$as_me:$LINENO: result: $hard_links" >&5
16900 echo "${ECHO_T}$hard_links" >&6; }
16901 if test "$hard_links" = no; then
16902 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16903 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16904 need_locks=warn
16905 fi
16906 else
16907 need_locks=no
16908 fi
16909
16910 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16911 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16912
16913 runpath_var=
16914 allow_undefined_flag_GCJ=
16915 enable_shared_with_static_runtimes_GCJ=no
16916 archive_cmds_GCJ=
16917 archive_expsym_cmds_GCJ=
16918 old_archive_From_new_cmds_GCJ=
16919 old_archive_from_expsyms_cmds_GCJ=
16920 export_dynamic_flag_spec_GCJ=
16921 whole_archive_flag_spec_GCJ=
16922 thread_safe_flag_spec_GCJ=
16923 hardcode_libdir_flag_spec_GCJ=
16924 hardcode_libdir_flag_spec_ld_GCJ=
16925 hardcode_libdir_separator_GCJ=
16926 hardcode_direct_GCJ=no
16927 hardcode_minus_L_GCJ=no
16928 hardcode_shlibpath_var_GCJ=unsupported
16929 link_all_deplibs_GCJ=unknown
16930 hardcode_automatic_GCJ=no
16931 module_cmds_GCJ=
16932 module_expsym_cmds_GCJ=
16933 always_export_symbols_GCJ=no
16934 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16935 # include_expsyms should be a list of space-separated symbols to be *always*
16936 # included in the symbol list
16937 include_expsyms_GCJ=
16938 # exclude_expsyms can be an extended regexp of symbols to exclude
16939 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16940 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16941 # as well as any symbol that contains `d'.
16942 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16943 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16944 # platforms (ab)use it in PIC code, but their linkers get confused if
16945 # the symbol is explicitly referenced. Since portable code cannot
16946 # rely on this symbol name, it's probably fine to never include it in
16947 # preloaded symbol tables.
16948 extract_expsyms_cmds=
16949 # Just being paranoid about ensuring that cc_basename is set.
16950 for cc_temp in $compiler""; do
16951 case $cc_temp in
16952 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16953 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16954 \-*) ;;
16955 *) break;;
16956 esac
16957 done
16958 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16959
16960 case $host_os in
16961 cygwin* | mingw* | pw32*)
16962 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16963 # When not using gcc, we currently assume that we are using
16964 # Microsoft Visual C++.
16965 if test "$GCC" != yes; then
16966 with_gnu_ld=no
16967 fi
16968 ;;
16969 interix*)
16970 # we just hope/assume this is gcc and not c89 (= MSVC++)
16971 with_gnu_ld=yes
16972 ;;
16973 openbsd*)
16974 with_gnu_ld=no
16975 ;;
16976 esac
16977
16978 ld_shlibs_GCJ=yes
16979 if test "$with_gnu_ld" = yes; then
16980 # If archive_cmds runs LD, not CC, wlarc should be empty
16981 wlarc='${wl}'
16982
16983 # Set some defaults for GNU ld with shared library support. These
16984 # are reset later if shared libraries are not supported. Putting them
16985 # here allows them to be overridden if necessary.
16986 runpath_var=LD_RUN_PATH
16987 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16988 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16989 # ancient GNU ld didn't support --whole-archive et. al.
16990 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16991 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16992 else
16993 whole_archive_flag_spec_GCJ=
16994 fi
16995 supports_anon_versioning=no
16996 case `$LD -v 2>/dev/null` in
16997 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16998 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16999 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17000 *\ 2.11.*) ;; # other 2.11 versions
17001 *) supports_anon_versioning=yes ;;
17002 esac
17003
17004 # See if GNU ld supports shared libraries.
17005 case $host_os in
17006 aix3* | aix4* | aix5*)
17007 # On AIX/PPC, the GNU linker is very broken
17008 if test "$host_cpu" != ia64; then
17009 ld_shlibs_GCJ=no
17010 cat <<EOF 1>&2
17011
17012 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17013 *** to be unable to reliably create shared libraries on AIX.
17014 *** Therefore, libtool is disabling shared libraries support. If you
17015 *** really care for shared libraries, you may want to modify your PATH
17016 *** so that a non-GNU linker is found, and then restart.
17017
17018 EOF
17019 fi
17020 ;;
17021
17022 amigaos*)
17023 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)'
17024 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17025 hardcode_minus_L_GCJ=yes
17026
17027 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17028 # that the semantics of dynamic libraries on AmigaOS, at least up
17029 # to version 4, is to share data among multiple programs linked
17030 # with the same dynamic library. Since this doesn't match the
17031 # behavior of shared libraries on other platforms, we can't use
17032 # them.
17033 ld_shlibs_GCJ=no
17034 ;;
17035
17036 beos*)
17037 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17038 allow_undefined_flag_GCJ=unsupported
17039 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17040 # support --undefined. This deserves some investigation. FIXME
17041 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17042 else
17043 ld_shlibs_GCJ=no
17044 fi
17045 ;;
17046
17047 cygwin* | mingw* | pw32*)
17048 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17049 # as there is no search path for DLLs.
17050 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17051 allow_undefined_flag_GCJ=unsupported
17052 always_export_symbols_GCJ=no
17053 enable_shared_with_static_runtimes_GCJ=yes
17054 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17055
17056 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17057 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17058 # If the export-symbols file already is a .def file (1st line
17059 # is EXPORTS), use it as is; otherwise, prepend...
17060 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17061 cp $export_symbols $output_objdir/$soname.def;
17062 else
17063 echo EXPORTS > $output_objdir/$soname.def;
17064 cat $export_symbols >> $output_objdir/$soname.def;
17065 fi~
17066 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17067 else
17068 ld_shlibs_GCJ=no
17069 fi
17070 ;;
17071
17072 interix[3-9]*)
17073 hardcode_direct_GCJ=no
17074 hardcode_shlibpath_var_GCJ=no
17075 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17076 export_dynamic_flag_spec_GCJ='${wl}-E'
17077 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17078 # Instead, shared libraries are loaded at an image base (0x10000000 by
17079 # default) and relocated if they conflict, which is a slow very memory
17080 # consuming and fragmenting process. To avoid this, we pick a random,
17081 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17082 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17083 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17084 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17085 ;;
17086
17087 gnu* | linux* | k*bsd*-gnu)
17088 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17089 tmp_addflag=
17090 case $cc_basename,$host_cpu in
17091 pgcc*) # Portland Group C compiler
17092 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17093 tmp_addflag=' $pic_flag'
17094 ;;
17095 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17096 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17097 tmp_addflag=' $pic_flag -Mnomain' ;;
17098 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17099 tmp_addflag=' -i_dynamic' ;;
17100 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17101 tmp_addflag=' -i_dynamic -nofor_main' ;;
17102 ifc* | ifort*) # Intel Fortran compiler
17103 tmp_addflag=' -nofor_main' ;;
17104 esac
17105 case `$CC -V 2>&1 | sed 5q` in
17106 *Sun\ C*) # Sun C 5.9
17107 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17108 tmp_sharedflag='-G' ;;
17109 *Sun\ F*) # Sun Fortran 8.3
17110 tmp_sharedflag='-G' ;;
17111 *)
17112 tmp_sharedflag='-shared' ;;
17113 esac
17114 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17115
17116 if test $supports_anon_versioning = yes; then
17117 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17118 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17119 $echo "local: *; };" >> $output_objdir/$libname.ver~
17120 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17121 fi
17122 else
17123 ld_shlibs_GCJ=no
17124 fi
17125 ;;
17126
17127 netbsd*)
17128 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17129 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17130 wlarc=
17131 else
17132 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17133 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17134 fi
17135 ;;
17136
17137 solaris*)
17138 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17139 ld_shlibs_GCJ=no
17140 cat <<EOF 1>&2
17141
17142 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17143 *** create shared libraries on Solaris systems. Therefore, libtool
17144 *** is disabling shared libraries support. We urge you to upgrade GNU
17145 *** binutils to release 2.9.1 or newer. Another option is to modify
17146 *** your PATH or compiler configuration so that the native linker is
17147 *** used, and then restart.
17148
17149 EOF
17150 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17151 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17152 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17153 else
17154 ld_shlibs_GCJ=no
17155 fi
17156 ;;
17157
17158 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17159 case `$LD -v 2>&1` in
17160 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17161 ld_shlibs_GCJ=no
17162 cat <<_LT_EOF 1>&2
17163
17164 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17165 *** reliably create shared libraries on SCO systems. Therefore, libtool
17166 *** is disabling shared libraries support. We urge you to upgrade GNU
17167 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17168 *** your PATH or compiler configuration so that the native linker is
17169 *** used, and then restart.
17170
17171 _LT_EOF
17172 ;;
17173 *)
17174 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17175 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17176 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17177 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17178 else
17179 ld_shlibs_GCJ=no
17180 fi
17181 ;;
17182 esac
17183 ;;
17184
17185 sunos4*)
17186 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17187 wlarc=
17188 hardcode_direct_GCJ=yes
17189 hardcode_shlibpath_var_GCJ=no
17190 ;;
17191
17192 *)
17193 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17194 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17195 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17196 else
17197 ld_shlibs_GCJ=no
17198 fi
17199 ;;
17200 esac
17201
17202 if test "$ld_shlibs_GCJ" = no; then
17203 runpath_var=
17204 hardcode_libdir_flag_spec_GCJ=
17205 export_dynamic_flag_spec_GCJ=
17206 whole_archive_flag_spec_GCJ=
17207 fi
17208 else
17209 # PORTME fill in a description of your system's linker (not GNU ld)
17210 case $host_os in
17211 aix3*)
17212 allow_undefined_flag_GCJ=unsupported
17213 always_export_symbols_GCJ=yes
17214 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'
17215 # Note: this linker hardcodes the directories in LIBPATH if there
17216 # are no directories specified by -L.
17217 hardcode_minus_L_GCJ=yes
17218 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17219 # Neither direct hardcoding nor static linking is supported with a
17220 # broken collect2.
17221 hardcode_direct_GCJ=unsupported
17222 fi
17223 ;;
17224
17225 aix4* | aix5*)
17226 if test "$host_cpu" = ia64; then
17227 # On IA64, the linker does run time linking by default, so we don't
17228 # have to do anything special.
17229 aix_use_runtimelinking=no
17230 exp_sym_flag='-Bexport'
17231 no_entry_flag=""
17232 else
17233 # If we're using GNU nm, then we don't want the "-C" option.
17234 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17235 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17236 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'
17237 else
17238 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'
17239 fi
17240 aix_use_runtimelinking=no
17241
17242 # Test if we are trying to use run time linking or normal
17243 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17244 # need to do runtime linking.
17245 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17246 for ld_flag in $LDFLAGS; do
17247 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17248 aix_use_runtimelinking=yes
17249 break
17250 fi
17251 done
17252 ;;
17253 esac
17254
17255 exp_sym_flag='-bexport'
17256 no_entry_flag='-bnoentry'
17257 fi
17258
17259 # When large executables or shared objects are built, AIX ld can
17260 # have problems creating the table of contents. If linking a library
17261 # or program results in "error TOC overflow" add -mminimal-toc to
17262 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17263 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17264
17265 archive_cmds_GCJ=''
17266 hardcode_direct_GCJ=yes
17267 hardcode_libdir_separator_GCJ=':'
17268 link_all_deplibs_GCJ=yes
17269
17270 if test "$GCC" = yes; then
17271 case $host_os in aix4.[012]|aix4.[012].*)
17272 # We only want to do this on AIX 4.2 and lower, the check
17273 # below for broken collect2 doesn't work under 4.3+
17274 collect2name=`${CC} -print-prog-name=collect2`
17275 if test -f "$collect2name" && \
17276 strings "$collect2name" | grep resolve_lib_name >/dev/null
17277 then
17278 # We have reworked collect2
17279 :
17280 else
17281 # We have old collect2
17282 hardcode_direct_GCJ=unsupported
17283 # It fails to find uninstalled libraries when the uninstalled
17284 # path is not listed in the libpath. Setting hardcode_minus_L
17285 # to unsupported forces relinking
17286 hardcode_minus_L_GCJ=yes
17287 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17288 hardcode_libdir_separator_GCJ=
17289 fi
17290 ;;
17291 esac
17292 shared_flag='-shared'
17293 if test "$aix_use_runtimelinking" = yes; then
17294 shared_flag="$shared_flag "'${wl}-G'
17295 fi
17296 else
17297 # not using gcc
17298 if test "$host_cpu" = ia64; then
17299 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17300 # chokes on -Wl,-G. The following line is correct:
17301 shared_flag='-G'
17302 else
17303 if test "$aix_use_runtimelinking" = yes; then
17304 shared_flag='${wl}-G'
17305 else
17306 shared_flag='${wl}-bM:SRE'
17307 fi
17308 fi
17309 fi
17310
17311 # It seems that -bexpall does not export symbols beginning with
17312 # underscore (_), so it is better to generate a list of symbols to export.
17313 always_export_symbols_GCJ=yes
17314 if test "$aix_use_runtimelinking" = yes; then
17315 # Warning - without using the other runtime loading flags (-brtl),
17316 # -berok will link without error, but may produce a broken library.
17317 allow_undefined_flag_GCJ='-berok'
17318 # Determine the default libpath from the value encoded in an empty executable.
17319 cat >conftest.$ac_ext <<_ACEOF
17320 /* confdefs.h. */
17321 _ACEOF
17322 cat confdefs.h >>conftest.$ac_ext
17323 cat >>conftest.$ac_ext <<_ACEOF
17324 /* end confdefs.h. */
17325
17326 int
17327 main ()
17328 {
17329
17330 ;
17331 return 0;
17332 }
17333 _ACEOF
17334 rm -f conftest.$ac_objext conftest$ac_exeext
17335 if { (ac_try="$ac_link"
17336 case "(($ac_try" in
17337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17338 *) ac_try_echo=$ac_try;;
17339 esac
17340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17341 (eval "$ac_link") 2>conftest.er1
17342 ac_status=$?
17343 grep -v '^ *+' conftest.er1 >conftest.err
17344 rm -f conftest.er1
17345 cat conftest.err >&5
17346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347 (exit $ac_status); } && {
17348 test -z "$ac_c_werror_flag" ||
17349 test ! -s conftest.err
17350 } && test -s conftest$ac_exeext &&
17351 $as_test_x conftest$ac_exeext; then
17352
17353 lt_aix_libpath_sed='
17354 /Import File Strings/,/^$/ {
17355 /^0/ {
17356 s/^0 *\(.*\)$/\1/
17357 p
17358 }
17359 }'
17360 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17361 # Check for a 64-bit object if we didn't find anything.
17362 if test -z "$aix_libpath"; then
17363 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17364 fi
17365 else
17366 echo "$as_me: failed program was:" >&5
17367 sed 's/^/| /' conftest.$ac_ext >&5
17368
17369
17370 fi
17371
17372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17373 conftest$ac_exeext conftest.$ac_ext
17374 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17375
17376 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17377 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17378 else
17379 if test "$host_cpu" = ia64; then
17380 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17381 allow_undefined_flag_GCJ="-z nodefs"
17382 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17383 else
17384 # Determine the default libpath from the value encoded in an empty executable.
17385 cat >conftest.$ac_ext <<_ACEOF
17386 /* confdefs.h. */
17387 _ACEOF
17388 cat confdefs.h >>conftest.$ac_ext
17389 cat >>conftest.$ac_ext <<_ACEOF
17390 /* end confdefs.h. */
17391
17392 int
17393 main ()
17394 {
17395
17396 ;
17397 return 0;
17398 }
17399 _ACEOF
17400 rm -f conftest.$ac_objext conftest$ac_exeext
17401 if { (ac_try="$ac_link"
17402 case "(($ac_try" in
17403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17404 *) ac_try_echo=$ac_try;;
17405 esac
17406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17407 (eval "$ac_link") 2>conftest.er1
17408 ac_status=$?
17409 grep -v '^ *+' conftest.er1 >conftest.err
17410 rm -f conftest.er1
17411 cat conftest.err >&5
17412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17413 (exit $ac_status); } && {
17414 test -z "$ac_c_werror_flag" ||
17415 test ! -s conftest.err
17416 } && test -s conftest$ac_exeext &&
17417 $as_test_x conftest$ac_exeext; then
17418
17419 lt_aix_libpath_sed='
17420 /Import File Strings/,/^$/ {
17421 /^0/ {
17422 s/^0 *\(.*\)$/\1/
17423 p
17424 }
17425 }'
17426 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17427 # Check for a 64-bit object if we didn't find anything.
17428 if test -z "$aix_libpath"; then
17429 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17430 fi
17431 else
17432 echo "$as_me: failed program was:" >&5
17433 sed 's/^/| /' conftest.$ac_ext >&5
17434
17435
17436 fi
17437
17438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17439 conftest$ac_exeext conftest.$ac_ext
17440 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17441
17442 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17443 # Warning - without using the other run time loading flags,
17444 # -berok will link without error, but may produce a broken library.
17445 no_undefined_flag_GCJ=' ${wl}-bernotok'
17446 allow_undefined_flag_GCJ=' ${wl}-berok'
17447 # Exported symbols can be pulled into shared objects from archives
17448 whole_archive_flag_spec_GCJ='$convenience'
17449 archive_cmds_need_lc_GCJ=yes
17450 # This is similar to how AIX traditionally builds its shared libraries.
17451 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17452 fi
17453 fi
17454 ;;
17455
17456 amigaos*)
17457 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)'
17458 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17459 hardcode_minus_L_GCJ=yes
17460 # see comment about different semantics on the GNU ld section
17461 ld_shlibs_GCJ=no
17462 ;;
17463
17464 bsdi[45]*)
17465 export_dynamic_flag_spec_GCJ=-rdynamic
17466 ;;
17467
17468 cygwin* | mingw* | pw32*)
17469 # When not using gcc, we currently assume that we are using
17470 # Microsoft Visual C++.
17471 # hardcode_libdir_flag_spec is actually meaningless, as there is
17472 # no search path for DLLs.
17473 hardcode_libdir_flag_spec_GCJ=' '
17474 allow_undefined_flag_GCJ=unsupported
17475 # Tell ltmain to make .lib files, not .a files.
17476 libext=lib
17477 # Tell ltmain to make .dll files, not .so files.
17478 shrext_cmds=".dll"
17479 # FIXME: Setting linknames here is a bad hack.
17480 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17481 # The linker will automatically build a .lib file if we build a DLL.
17482 old_archive_From_new_cmds_GCJ='true'
17483 # FIXME: Should let the user specify the lib program.
17484 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17485 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17486 enable_shared_with_static_runtimes_GCJ=yes
17487 ;;
17488
17489 darwin* | rhapsody*)
17490 case $host_os in
17491 rhapsody* | darwin1.[012])
17492 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17493 ;;
17494 *) # Darwin 1.3 on
17495 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17496 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17497 else
17498 case ${MACOSX_DEPLOYMENT_TARGET} in
17499 10.[012])
17500 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17501 ;;
17502 10.*)
17503 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17504 ;;
17505 esac
17506 fi
17507 ;;
17508 esac
17509 archive_cmds_need_lc_GCJ=no
17510 hardcode_direct_GCJ=no
17511 hardcode_automatic_GCJ=yes
17512 hardcode_shlibpath_var_GCJ=unsupported
17513 whole_archive_flag_spec_GCJ=''
17514 link_all_deplibs_GCJ=yes
17515 if test "$GCC" = yes ; then
17516 output_verbose_link_cmd='echo'
17517 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17518 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17519 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17520 archive_expsym_cmds_GCJ='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}'
17521 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}'
17522 else
17523 case $cc_basename in
17524 xlc*)
17525 output_verbose_link_cmd='echo'
17526 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17527 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17528 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17529 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17530 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}'
17531 ;;
17532 *)
17533 ld_shlibs_GCJ=no
17534 ;;
17535 esac
17536 fi
17537 ;;
17538
17539 dgux*)
17540 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17541 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17542 hardcode_shlibpath_var_GCJ=no
17543 ;;
17544
17545 freebsd1*)
17546 ld_shlibs_GCJ=no
17547 ;;
17548
17549 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17550 # support. Future versions do this automatically, but an explicit c++rt0.o
17551 # does not break anything, and helps significantly (at the cost of a little
17552 # extra space).
17553 freebsd2.2*)
17554 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17555 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17556 hardcode_direct_GCJ=yes
17557 hardcode_shlibpath_var_GCJ=no
17558 ;;
17559
17560 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17561 freebsd2*)
17562 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17563 hardcode_direct_GCJ=yes
17564 hardcode_minus_L_GCJ=yes
17565 hardcode_shlibpath_var_GCJ=no
17566 ;;
17567
17568 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17569 freebsd* | dragonfly*)
17570 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17571 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17572 hardcode_direct_GCJ=yes
17573 hardcode_shlibpath_var_GCJ=no
17574 ;;
17575
17576 hpux9*)
17577 if test "$GCC" = yes; then
17578 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'
17579 else
17580 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'
17581 fi
17582 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17583 hardcode_libdir_separator_GCJ=:
17584 hardcode_direct_GCJ=yes
17585
17586 # hardcode_minus_L: Not really in the search PATH,
17587 # but as the default location of the library.
17588 hardcode_minus_L_GCJ=yes
17589 export_dynamic_flag_spec_GCJ='${wl}-E'
17590 ;;
17591
17592 hpux10*)
17593 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17594 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17595 else
17596 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17597 fi
17598 if test "$with_gnu_ld" = no; then
17599 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17600 hardcode_libdir_separator_GCJ=:
17601
17602 hardcode_direct_GCJ=yes
17603 export_dynamic_flag_spec_GCJ='${wl}-E'
17604
17605 # hardcode_minus_L: Not really in the search PATH,
17606 # but as the default location of the library.
17607 hardcode_minus_L_GCJ=yes
17608 fi
17609 ;;
17610
17611 hpux11*)
17612 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17613 case $host_cpu in
17614 hppa*64*)
17615 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17616 ;;
17617 ia64*)
17618 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17619 ;;
17620 *)
17621 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17622 ;;
17623 esac
17624 else
17625 case $host_cpu in
17626 hppa*64*)
17627 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17628 ;;
17629 ia64*)
17630 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17631 ;;
17632 *)
17633 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17634 ;;
17635 esac
17636 fi
17637 if test "$with_gnu_ld" = no; then
17638 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17639 hardcode_libdir_separator_GCJ=:
17640
17641 case $host_cpu in
17642 hppa*64*|ia64*)
17643 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17644 hardcode_direct_GCJ=no
17645 hardcode_shlibpath_var_GCJ=no
17646 ;;
17647 *)
17648 hardcode_direct_GCJ=yes
17649 export_dynamic_flag_spec_GCJ='${wl}-E'
17650
17651 # hardcode_minus_L: Not really in the search PATH,
17652 # but as the default location of the library.
17653 hardcode_minus_L_GCJ=yes
17654 ;;
17655 esac
17656 fi
17657 ;;
17658
17659 irix5* | irix6* | nonstopux*)
17660 if test "$GCC" = yes; then
17661 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'
17662 else
17663 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'
17664 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17665 fi
17666 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17667 hardcode_libdir_separator_GCJ=:
17668 link_all_deplibs_GCJ=yes
17669 ;;
17670
17671 netbsd*)
17672 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17673 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17674 else
17675 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17676 fi
17677 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17678 hardcode_direct_GCJ=yes
17679 hardcode_shlibpath_var_GCJ=no
17680 ;;
17681
17682 newsos6)
17683 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17684 hardcode_direct_GCJ=yes
17685 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17686 hardcode_libdir_separator_GCJ=:
17687 hardcode_shlibpath_var_GCJ=no
17688 ;;
17689
17690 openbsd*)
17691 if test -f /usr/libexec/ld.so; then
17692 hardcode_direct_GCJ=yes
17693 hardcode_shlibpath_var_GCJ=no
17694 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17695 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17696 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17697 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17698 export_dynamic_flag_spec_GCJ='${wl}-E'
17699 else
17700 case $host_os in
17701 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17702 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17703 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17704 ;;
17705 *)
17706 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17707 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17708 ;;
17709 esac
17710 fi
17711 else
17712 ld_shlibs_GCJ=no
17713 fi
17714 ;;
17715
17716 os2*)
17717 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17718 hardcode_minus_L_GCJ=yes
17719 allow_undefined_flag_GCJ=unsupported
17720 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'
17721 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17722 ;;
17723
17724 osf3*)
17725 if test "$GCC" = yes; then
17726 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17727 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'
17728 else
17729 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17730 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'
17731 fi
17732 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17733 hardcode_libdir_separator_GCJ=:
17734 ;;
17735
17736 osf4* | osf5*) # as osf3* with the addition of -msym flag
17737 if test "$GCC" = yes; then
17738 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17739 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'
17740 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17741 else
17742 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17743 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'
17744 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~
17745 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17746
17747 # Both c and cxx compiler support -rpath directly
17748 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17749 fi
17750 hardcode_libdir_separator_GCJ=:
17751 ;;
17752
17753 solaris*)
17754 no_undefined_flag_GCJ=' -z text'
17755 if test "$GCC" = yes; then
17756 wlarc='${wl}'
17757 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17758 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17759 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17760 else
17761 wlarc=''
17762 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17763 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17764 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17765 fi
17766 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17767 hardcode_shlibpath_var_GCJ=no
17768 case $host_os in
17769 solaris2.[0-5] | solaris2.[0-5].*) ;;
17770 *)
17771 # The compiler driver will combine and reorder linker options,
17772 # but understands `-z linker_flag'. GCC discards it without `$wl',
17773 # but is careful enough not to reorder.
17774 # Supported since Solaris 2.6 (maybe 2.5.1?)
17775 if test "$GCC" = yes; then
17776 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17777 else
17778 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17779 fi
17780 ;;
17781 esac
17782 link_all_deplibs_GCJ=yes
17783 ;;
17784
17785 sunos4*)
17786 if test "x$host_vendor" = xsequent; then
17787 # Use $CC to link under sequent, because it throws in some extra .o
17788 # files that make .init and .fini sections work.
17789 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17790 else
17791 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17792 fi
17793 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17794 hardcode_direct_GCJ=yes
17795 hardcode_minus_L_GCJ=yes
17796 hardcode_shlibpath_var_GCJ=no
17797 ;;
17798
17799 sysv4)
17800 case $host_vendor in
17801 sni)
17802 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17803 hardcode_direct_GCJ=yes # is this really true???
17804 ;;
17805 siemens)
17806 ## LD is ld it makes a PLAMLIB
17807 ## CC just makes a GrossModule.
17808 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17809 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17810 hardcode_direct_GCJ=no
17811 ;;
17812 motorola)
17813 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17814 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17815 ;;
17816 esac
17817 runpath_var='LD_RUN_PATH'
17818 hardcode_shlibpath_var_GCJ=no
17819 ;;
17820
17821 sysv4.3*)
17822 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17823 hardcode_shlibpath_var_GCJ=no
17824 export_dynamic_flag_spec_GCJ='-Bexport'
17825 ;;
17826
17827 sysv4*MP*)
17828 if test -d /usr/nec; then
17829 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17830 hardcode_shlibpath_var_GCJ=no
17831 runpath_var=LD_RUN_PATH
17832 hardcode_runpath_var=yes
17833 ld_shlibs_GCJ=yes
17834 fi
17835 ;;
17836
17837 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17838 no_undefined_flag_GCJ='${wl}-z,text'
17839 archive_cmds_need_lc_GCJ=no
17840 hardcode_shlibpath_var_GCJ=no
17841 runpath_var='LD_RUN_PATH'
17842
17843 if test "$GCC" = yes; then
17844 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17845 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17846 else
17847 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17848 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17849 fi
17850 ;;
17851
17852 sysv5* | sco3.2v5* | sco5v6*)
17853 # Note: We can NOT use -z defs as we might desire, because we do not
17854 # link with -lc, and that would cause any symbols used from libc to
17855 # always be unresolved, which means just about no library would
17856 # ever link correctly. If we're not using GNU ld we use -z text
17857 # though, which does catch some bad symbols but isn't as heavy-handed
17858 # as -z defs.
17859 no_undefined_flag_GCJ='${wl}-z,text'
17860 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17861 archive_cmds_need_lc_GCJ=no
17862 hardcode_shlibpath_var_GCJ=no
17863 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17864 hardcode_libdir_separator_GCJ=':'
17865 link_all_deplibs_GCJ=yes
17866 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17867 runpath_var='LD_RUN_PATH'
17868
17869 if test "$GCC" = yes; then
17870 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17871 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17872 else
17873 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17874 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17875 fi
17876 ;;
17877
17878 uts4*)
17879 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17880 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17881 hardcode_shlibpath_var_GCJ=no
17882 ;;
17883
17884 *)
17885 ld_shlibs_GCJ=no
17886 ;;
17887 esac
17888 fi
17889
17890 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17891 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17892 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17893
17894 #
17895 # Do we need to explicitly link libc?
17896 #
17897 case "x$archive_cmds_need_lc_GCJ" in
17898 x|xyes)
17899 # Assume -lc should be added
17900 archive_cmds_need_lc_GCJ=yes
17901
17902 if test "$enable_shared" = yes && test "$GCC" = yes; then
17903 case $archive_cmds_GCJ in
17904 *'~'*)
17905 # FIXME: we may have to deal with multi-command sequences.
17906 ;;
17907 '$CC '*)
17908 # Test whether the compiler implicitly links with -lc since on some
17909 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17910 # to ld, don't add -lc before -lgcc.
17911 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17912 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17913 $rm conftest*
17914 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17915
17916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17917 (eval $ac_compile) 2>&5
17918 ac_status=$?
17919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17920 (exit $ac_status); } 2>conftest.err; then
17921 soname=conftest
17922 lib=conftest
17923 libobjs=conftest.$ac_objext
17924 deplibs=
17925 wl=$lt_prog_compiler_wl_GCJ
17926 pic_flag=$lt_prog_compiler_pic_GCJ
17927 compiler_flags=-v
17928 linker_flags=-v
17929 verstring=
17930 output_objdir=.
17931 libname=conftest
17932 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17933 allow_undefined_flag_GCJ=
17934 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17935 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17936 ac_status=$?
17937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938 (exit $ac_status); }
17939 then
17940 archive_cmds_need_lc_GCJ=no
17941 else
17942 archive_cmds_need_lc_GCJ=yes
17943 fi
17944 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17945 else
17946 cat conftest.err 1>&5
17947 fi
17948 $rm conftest*
17949 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17950 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17951 ;;
17952 esac
17953 fi
17954 ;;
17955 esac
17956
17957 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17958 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17959 library_names_spec=
17960 libname_spec='lib$name'
17961 soname_spec=
17962 shrext_cmds=".so"
17963 postinstall_cmds=
17964 postuninstall_cmds=
17965 finish_cmds=
17966 finish_eval=
17967 shlibpath_var=
17968 shlibpath_overrides_runpath=unknown
17969 version_type=none
17970 dynamic_linker="$host_os ld.so"
17971 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17972
17973 need_lib_prefix=unknown
17974 hardcode_into_libs=no
17975
17976 # when you set need_version to no, make sure it does not cause -set_version
17977 # flags to be left without arguments
17978 need_version=unknown
17979
17980 case $host_os in
17981 aix3*)
17982 version_type=linux
17983 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17984 shlibpath_var=LIBPATH
17985
17986 # AIX 3 has no versioning support, so we append a major version to the name.
17987 soname_spec='${libname}${release}${shared_ext}$major'
17988 ;;
17989
17990 aix4* | aix5*)
17991 version_type=linux
17992 need_lib_prefix=no
17993 need_version=no
17994 hardcode_into_libs=yes
17995 if test "$host_cpu" = ia64; then
17996 # AIX 5 supports IA64
17997 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17998 shlibpath_var=LD_LIBRARY_PATH
17999 else
18000 # With GCC up to 2.95.x, collect2 would create an import file
18001 # for dependence libraries. The import file would start with
18002 # the line `#! .'. This would cause the generated library to
18003 # depend on `.', always an invalid library. This was fixed in
18004 # development snapshots of GCC prior to 3.0.
18005 case $host_os in
18006 aix4 | aix4.[01] | aix4.[01].*)
18007 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18008 echo ' yes '
18009 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18010 :
18011 else
18012 can_build_shared=no
18013 fi
18014 ;;
18015 esac
18016 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18017 # soname into executable. Probably we can add versioning support to
18018 # collect2, so additional links can be useful in future.
18019 if test "$aix_use_runtimelinking" = yes; then
18020 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18021 # instead of lib<name>.a to let people know that these are not
18022 # typical AIX shared libraries.
18023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18024 else
18025 # We preserve .a as extension for shared libraries through AIX4.2
18026 # and later when we are not doing run time linking.
18027 library_names_spec='${libname}${release}.a $libname.a'
18028 soname_spec='${libname}${release}${shared_ext}$major'
18029 fi
18030 shlibpath_var=LIBPATH
18031 fi
18032 ;;
18033
18034 amigaos*)
18035 library_names_spec='$libname.ixlibrary $libname.a'
18036 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18037 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'
18038 ;;
18039
18040 beos*)
18041 library_names_spec='${libname}${shared_ext}'
18042 dynamic_linker="$host_os ld.so"
18043 shlibpath_var=LIBRARY_PATH
18044 ;;
18045
18046 bsdi[45]*)
18047 version_type=linux
18048 need_version=no
18049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18050 soname_spec='${libname}${release}${shared_ext}$major'
18051 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18052 shlibpath_var=LD_LIBRARY_PATH
18053 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18054 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18055 # the default ld.so.conf also contains /usr/contrib/lib and
18056 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18057 # libtool to hard-code these into programs
18058 ;;
18059
18060 cygwin* | mingw* | pw32*)
18061 version_type=windows
18062 shrext_cmds=".dll"
18063 need_version=no
18064 need_lib_prefix=no
18065
18066 case $GCC,$host_os in
18067 yes,cygwin* | yes,mingw* | yes,pw32*)
18068 library_names_spec='$libname.dll.a'
18069 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18070 postinstall_cmds='base_file=`basename \${file}`~
18071 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18072 dldir=$destdir/`dirname \$dlpath`~
18073 test -d \$dldir || mkdir -p \$dldir~
18074 $install_prog $dir/$dlname \$dldir/$dlname~
18075 chmod a+x \$dldir/$dlname'
18076 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18077 dlpath=$dir/\$dldll~
18078 $rm \$dlpath'
18079 shlibpath_overrides_runpath=yes
18080
18081 case $host_os in
18082 cygwin*)
18083 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18084 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18085 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18086 ;;
18087 mingw*)
18088 # MinGW DLLs use traditional 'lib' prefix
18089 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18090 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18091 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18092 # It is most probably a Windows format PATH printed by
18093 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18094 # path with ; separators, and with drive letters. We can handle the
18095 # drive letters (cygwin fileutils understands them), so leave them,
18096 # especially as we might pass files found there to a mingw objdump,
18097 # which wouldn't understand a cygwinified path. Ahh.
18098 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18099 else
18100 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18101 fi
18102 ;;
18103 pw32*)
18104 # pw32 DLLs use 'pw' prefix rather than 'lib'
18105 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18106 ;;
18107 esac
18108 ;;
18109
18110 *)
18111 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18112 ;;
18113 esac
18114 dynamic_linker='Win32 ld.exe'
18115 # FIXME: first we should search . and the directory the executable is in
18116 shlibpath_var=PATH
18117 ;;
18118
18119 darwin* | rhapsody*)
18120 dynamic_linker="$host_os dyld"
18121 version_type=darwin
18122 need_lib_prefix=no
18123 need_version=no
18124 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18125 soname_spec='${libname}${release}${major}$shared_ext'
18126 shlibpath_overrides_runpath=yes
18127 shlibpath_var=DYLD_LIBRARY_PATH
18128 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18129
18130 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18131 ;;
18132
18133 dgux*)
18134 version_type=linux
18135 need_lib_prefix=no
18136 need_version=no
18137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18138 soname_spec='${libname}${release}${shared_ext}$major'
18139 shlibpath_var=LD_LIBRARY_PATH
18140 ;;
18141
18142 freebsd1*)
18143 dynamic_linker=no
18144 ;;
18145
18146 freebsd* | dragonfly*)
18147 # DragonFly does not have aout. When/if they implement a new
18148 # versioning mechanism, adjust this.
18149 if test -x /usr/bin/objformat; then
18150 objformat=`/usr/bin/objformat`
18151 else
18152 case $host_os in
18153 freebsd[123]*) objformat=aout ;;
18154 *) objformat=elf ;;
18155 esac
18156 fi
18157 version_type=freebsd-$objformat
18158 case $version_type in
18159 freebsd-elf*)
18160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18161 need_version=no
18162 need_lib_prefix=no
18163 ;;
18164 freebsd-*)
18165 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18166 need_version=yes
18167 ;;
18168 esac
18169 shlibpath_var=LD_LIBRARY_PATH
18170 case $host_os in
18171 freebsd2*)
18172 shlibpath_overrides_runpath=yes
18173 ;;
18174 freebsd3.[01]* | freebsdelf3.[01]*)
18175 shlibpath_overrides_runpath=yes
18176 hardcode_into_libs=yes
18177 ;;
18178 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18179 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18180 shlibpath_overrides_runpath=no
18181 hardcode_into_libs=yes
18182 ;;
18183 *) # from 4.6 on, and DragonFly
18184 shlibpath_overrides_runpath=yes
18185 hardcode_into_libs=yes
18186 ;;
18187 esac
18188 ;;
18189
18190 gnu*)
18191 version_type=linux
18192 need_lib_prefix=no
18193 need_version=no
18194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18195 soname_spec='${libname}${release}${shared_ext}$major'
18196 shlibpath_var=LD_LIBRARY_PATH
18197 hardcode_into_libs=yes
18198 ;;
18199
18200 hpux9* | hpux10* | hpux11*)
18201 # Give a soname corresponding to the major version so that dld.sl refuses to
18202 # link against other versions.
18203 version_type=sunos
18204 need_lib_prefix=no
18205 need_version=no
18206 case $host_cpu in
18207 ia64*)
18208 shrext_cmds='.so'
18209 hardcode_into_libs=yes
18210 dynamic_linker="$host_os dld.so"
18211 shlibpath_var=LD_LIBRARY_PATH
18212 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18214 soname_spec='${libname}${release}${shared_ext}$major'
18215 if test "X$HPUX_IA64_MODE" = X32; then
18216 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18217 else
18218 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18219 fi
18220 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18221 ;;
18222 hppa*64*)
18223 shrext_cmds='.sl'
18224 hardcode_into_libs=yes
18225 dynamic_linker="$host_os dld.sl"
18226 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18227 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18229 soname_spec='${libname}${release}${shared_ext}$major'
18230 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18231 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18232 ;;
18233 *)
18234 shrext_cmds='.sl'
18235 dynamic_linker="$host_os dld.sl"
18236 shlibpath_var=SHLIB_PATH
18237 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18239 soname_spec='${libname}${release}${shared_ext}$major'
18240 ;;
18241 esac
18242 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18243 postinstall_cmds='chmod 555 $lib'
18244 ;;
18245
18246 interix[3-9]*)
18247 version_type=linux
18248 need_lib_prefix=no
18249 need_version=no
18250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18251 soname_spec='${libname}${release}${shared_ext}$major'
18252 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18253 shlibpath_var=LD_LIBRARY_PATH
18254 shlibpath_overrides_runpath=no
18255 hardcode_into_libs=yes
18256 ;;
18257
18258 irix5* | irix6* | nonstopux*)
18259 case $host_os in
18260 nonstopux*) version_type=nonstopux ;;
18261 *)
18262 if test "$lt_cv_prog_gnu_ld" = yes; then
18263 version_type=linux
18264 else
18265 version_type=irix
18266 fi ;;
18267 esac
18268 need_lib_prefix=no
18269 need_version=no
18270 soname_spec='${libname}${release}${shared_ext}$major'
18271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18272 case $host_os in
18273 irix5* | nonstopux*)
18274 libsuff= shlibsuff=
18275 ;;
18276 *)
18277 case $LD in # libtool.m4 will add one of these switches to LD
18278 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18279 libsuff= shlibsuff= libmagic=32-bit;;
18280 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18281 libsuff=32 shlibsuff=N32 libmagic=N32;;
18282 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18283 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18284 *) libsuff= shlibsuff= libmagic=never-match;;
18285 esac
18286 ;;
18287 esac
18288 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18289 shlibpath_overrides_runpath=no
18290 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18291 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18292 hardcode_into_libs=yes
18293 ;;
18294
18295 # No shared lib support for Linux oldld, aout, or coff.
18296 linux*oldld* | linux*aout* | linux*coff*)
18297 dynamic_linker=no
18298 ;;
18299
18300 # This must be Linux ELF.
18301 linux* | k*bsd*-gnu)
18302 version_type=linux
18303 need_lib_prefix=no
18304 need_version=no
18305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18306 soname_spec='${libname}${release}${shared_ext}$major'
18307 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18308 shlibpath_var=LD_LIBRARY_PATH
18309 shlibpath_overrides_runpath=no
18310 # This implies no fast_install, which is unacceptable.
18311 # Some rework will be needed to allow for fast_install
18312 # before this can be enabled.
18313 hardcode_into_libs=yes
18314 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18315 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18316
18317 # Append ld.so.conf contents to the search path
18318 if test -f /etc/ld.so.conf; then
18319 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18320 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18321 fi
18322
18323 # We used to test for /lib/ld.so.1 and disable shared libraries on
18324 # powerpc, because MkLinux only supported shared libraries with the
18325 # GNU dynamic linker. Since this was broken with cross compilers,
18326 # most powerpc-linux boxes support dynamic linking these days and
18327 # people can always --disable-shared, the test was removed, and we
18328 # assume the GNU/Linux dynamic linker is in use.
18329 dynamic_linker='GNU/Linux ld.so'
18330 ;;
18331
18332 netbsd*)
18333 version_type=sunos
18334 need_lib_prefix=no
18335 need_version=no
18336 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18338 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18339 dynamic_linker='NetBSD (a.out) ld.so'
18340 else
18341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18342 soname_spec='${libname}${release}${shared_ext}$major'
18343 dynamic_linker='NetBSD ld.elf_so'
18344 fi
18345 shlibpath_var=LD_LIBRARY_PATH
18346 shlibpath_overrides_runpath=yes
18347 hardcode_into_libs=yes
18348 ;;
18349
18350 newsos6)
18351 version_type=linux
18352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18353 shlibpath_var=LD_LIBRARY_PATH
18354 shlibpath_overrides_runpath=yes
18355 ;;
18356
18357 nto-qnx*)
18358 version_type=linux
18359 need_lib_prefix=no
18360 need_version=no
18361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18362 soname_spec='${libname}${release}${shared_ext}$major'
18363 shlibpath_var=LD_LIBRARY_PATH
18364 shlibpath_overrides_runpath=yes
18365 ;;
18366
18367 openbsd*)
18368 version_type=sunos
18369 sys_lib_dlsearch_path_spec="/usr/lib"
18370 need_lib_prefix=no
18371 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18372 case $host_os in
18373 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18374 *) need_version=no ;;
18375 esac
18376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18377 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18378 shlibpath_var=LD_LIBRARY_PATH
18379 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18380 case $host_os in
18381 openbsd2.[89] | openbsd2.[89].*)
18382 shlibpath_overrides_runpath=no
18383 ;;
18384 *)
18385 shlibpath_overrides_runpath=yes
18386 ;;
18387 esac
18388 else
18389 shlibpath_overrides_runpath=yes
18390 fi
18391 ;;
18392
18393 os2*)
18394 libname_spec='$name'
18395 shrext_cmds=".dll"
18396 need_lib_prefix=no
18397 library_names_spec='$libname${shared_ext} $libname.a'
18398 dynamic_linker='OS/2 ld.exe'
18399 shlibpath_var=LIBPATH
18400 ;;
18401
18402 osf3* | osf4* | osf5*)
18403 version_type=osf
18404 need_lib_prefix=no
18405 need_version=no
18406 soname_spec='${libname}${release}${shared_ext}$major'
18407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18408 shlibpath_var=LD_LIBRARY_PATH
18409 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18410 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18411 ;;
18412
18413 rdos*)
18414 dynamic_linker=no
18415 ;;
18416
18417 solaris*)
18418 version_type=linux
18419 need_lib_prefix=no
18420 need_version=no
18421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18422 soname_spec='${libname}${release}${shared_ext}$major'
18423 shlibpath_var=LD_LIBRARY_PATH
18424 shlibpath_overrides_runpath=yes
18425 hardcode_into_libs=yes
18426 # ldd complains unless libraries are executable
18427 postinstall_cmds='chmod +x $lib'
18428 ;;
18429
18430 sunos4*)
18431 version_type=sunos
18432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18433 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18434 shlibpath_var=LD_LIBRARY_PATH
18435 shlibpath_overrides_runpath=yes
18436 if test "$with_gnu_ld" = yes; then
18437 need_lib_prefix=no
18438 fi
18439 need_version=yes
18440 ;;
18441
18442 sysv4 | sysv4.3*)
18443 version_type=linux
18444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18445 soname_spec='${libname}${release}${shared_ext}$major'
18446 shlibpath_var=LD_LIBRARY_PATH
18447 case $host_vendor in
18448 sni)
18449 shlibpath_overrides_runpath=no
18450 need_lib_prefix=no
18451 export_dynamic_flag_spec='${wl}-Blargedynsym'
18452 runpath_var=LD_RUN_PATH
18453 ;;
18454 siemens)
18455 need_lib_prefix=no
18456 ;;
18457 motorola)
18458 need_lib_prefix=no
18459 need_version=no
18460 shlibpath_overrides_runpath=no
18461 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18462 ;;
18463 esac
18464 ;;
18465
18466 sysv4*MP*)
18467 if test -d /usr/nec ;then
18468 version_type=linux
18469 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18470 soname_spec='$libname${shared_ext}.$major'
18471 shlibpath_var=LD_LIBRARY_PATH
18472 fi
18473 ;;
18474
18475 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18476 version_type=freebsd-elf
18477 need_lib_prefix=no
18478 need_version=no
18479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18480 soname_spec='${libname}${release}${shared_ext}$major'
18481 shlibpath_var=LD_LIBRARY_PATH
18482 hardcode_into_libs=yes
18483 if test "$with_gnu_ld" = yes; then
18484 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18485 shlibpath_overrides_runpath=no
18486 else
18487 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18488 shlibpath_overrides_runpath=yes
18489 case $host_os in
18490 sco3.2v5*)
18491 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18492 ;;
18493 esac
18494 fi
18495 sys_lib_dlsearch_path_spec='/usr/lib'
18496 ;;
18497
18498 uts4*)
18499 version_type=linux
18500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18501 soname_spec='${libname}${release}${shared_ext}$major'
18502 shlibpath_var=LD_LIBRARY_PATH
18503 ;;
18504
18505 *)
18506 dynamic_linker=no
18507 ;;
18508 esac
18509 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18510 echo "${ECHO_T}$dynamic_linker" >&6; }
18511 test "$dynamic_linker" = no && can_build_shared=no
18512
18513 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18514 if test "$GCC" = yes; then
18515 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18516 fi
18517
18518 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18519 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18520 hardcode_action_GCJ=
18521 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18522 test -n "$runpath_var_GCJ" || \
18523 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18524
18525 # We can hardcode non-existant directories.
18526 if test "$hardcode_direct_GCJ" != no &&
18527 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18528 # have to relink, otherwise we might link with an installed library
18529 # when we should be linking with a yet-to-be-installed one
18530 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18531 test "$hardcode_minus_L_GCJ" != no; then
18532 # Linking always hardcodes the temporary library directory.
18533 hardcode_action_GCJ=relink
18534 else
18535 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18536 hardcode_action_GCJ=immediate
18537 fi
18538 else
18539 # We cannot hardcode anything, or else we can only hardcode existing
18540 # directories.
18541 hardcode_action_GCJ=unsupported
18542 fi
18543 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18544 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18545
18546 if test "$hardcode_action_GCJ" = relink; then
18547 # Fast installation is not supported
18548 enable_fast_install=no
18549 elif test "$shlibpath_overrides_runpath" = yes ||
18550 test "$enable_shared" = no; then
18551 # Fast installation is not necessary
18552 enable_fast_install=needless
18553 fi
18554
18555
18556 # The else clause should only fire when bootstrapping the
18557 # libtool distribution, otherwise you forgot to ship ltmain.sh
18558 # with your package, and you will get complaints that there are
18559 # no rules to generate ltmain.sh.
18560 if test -f "$ltmain"; then
18561 # See if we are running on zsh, and set the options which allow our commands through
18562 # without removal of \ escapes.
18563 if test -n "${ZSH_VERSION+set}" ; then
18564 setopt NO_GLOB_SUBST
18565 fi
18566 # Now quote all the things that may contain metacharacters while being
18567 # careful not to overquote the AC_SUBSTed values. We take copies of the
18568 # variables and quote the copies for generation of the libtool script.
18569 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18570 SED SHELL STRIP \
18571 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18572 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18573 deplibs_check_method reload_flag reload_cmds need_locks \
18574 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18575 lt_cv_sys_global_symbol_to_c_name_address \
18576 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18577 old_postinstall_cmds old_postuninstall_cmds \
18578 compiler_GCJ \
18579 CC_GCJ \
18580 LD_GCJ \
18581 lt_prog_compiler_wl_GCJ \
18582 lt_prog_compiler_pic_GCJ \
18583 lt_prog_compiler_static_GCJ \
18584 lt_prog_compiler_no_builtin_flag_GCJ \
18585 export_dynamic_flag_spec_GCJ \
18586 thread_safe_flag_spec_GCJ \
18587 whole_archive_flag_spec_GCJ \
18588 enable_shared_with_static_runtimes_GCJ \
18589 old_archive_cmds_GCJ \
18590 old_archive_from_new_cmds_GCJ \
18591 predep_objects_GCJ \
18592 postdep_objects_GCJ \
18593 predeps_GCJ \
18594 postdeps_GCJ \
18595 compiler_lib_search_path_GCJ \
18596 archive_cmds_GCJ \
18597 archive_expsym_cmds_GCJ \
18598 postinstall_cmds_GCJ \
18599 postuninstall_cmds_GCJ \
18600 old_archive_from_expsyms_cmds_GCJ \
18601 allow_undefined_flag_GCJ \
18602 no_undefined_flag_GCJ \
18603 export_symbols_cmds_GCJ \
18604 hardcode_libdir_flag_spec_GCJ \
18605 hardcode_libdir_flag_spec_ld_GCJ \
18606 hardcode_libdir_separator_GCJ \
18607 hardcode_automatic_GCJ \
18608 module_cmds_GCJ \
18609 module_expsym_cmds_GCJ \
18610 lt_cv_prog_compiler_c_o_GCJ \
18611 fix_srcfile_path_GCJ \
18612 exclude_expsyms_GCJ \
18613 include_expsyms_GCJ; do
18614
18615 case $var in
18616 old_archive_cmds_GCJ | \
18617 old_archive_from_new_cmds_GCJ | \
18618 archive_cmds_GCJ | \
18619 archive_expsym_cmds_GCJ | \
18620 module_cmds_GCJ | \
18621 module_expsym_cmds_GCJ | \
18622 old_archive_from_expsyms_cmds_GCJ | \
18623 export_symbols_cmds_GCJ | \
18624 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18625 postinstall_cmds | postuninstall_cmds | \
18626 old_postinstall_cmds | old_postuninstall_cmds | \
18627 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18628 # Double-quote double-evaled strings.
18629 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18630 ;;
18631 *)
18632 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18633 ;;
18634 esac
18635 done
18636
18637 case $lt_echo in
18638 *'\$0 --fallback-echo"')
18639 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18640 ;;
18641 esac
18642
18643 cfgfile="$ofile"
18644
18645 cat <<__EOF__ >> "$cfgfile"
18646 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18647
18648 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18649
18650 # Shell to use when invoking shell scripts.
18651 SHELL=$lt_SHELL
18652
18653 # Whether or not to build shared libraries.
18654 build_libtool_libs=$enable_shared
18655
18656 # Whether or not to build static libraries.
18657 build_old_libs=$enable_static
18658
18659 # Whether or not to add -lc for building shared libraries.
18660 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18661
18662 # Whether or not to disallow shared libs when runtime libs are static
18663 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18664
18665 # Whether or not to optimize for fast installation.
18666 fast_install=$enable_fast_install
18667
18668 # The host system.
18669 host_alias=$host_alias
18670 host=$host
18671 host_os=$host_os
18672
18673 # The build system.
18674 build_alias=$build_alias
18675 build=$build
18676 build_os=$build_os
18677
18678 # An echo program that does not interpret backslashes.
18679 echo=$lt_echo
18680
18681 # The archiver.
18682 AR=$lt_AR
18683 AR_FLAGS=$lt_AR_FLAGS
18684
18685 # A C compiler.
18686 LTCC=$lt_LTCC
18687
18688 # LTCC compiler flags.
18689 LTCFLAGS=$lt_LTCFLAGS
18690
18691 # A language-specific compiler.
18692 CC=$lt_compiler_GCJ
18693
18694 # Is the compiler the GNU C compiler?
18695 with_gcc=$GCC_GCJ
18696
18697 # An ERE matcher.
18698 EGREP=$lt_EGREP
18699
18700 # The linker used to build libraries.
18701 LD=$lt_LD_GCJ
18702
18703 # Whether we need hard or soft links.
18704 LN_S=$lt_LN_S
18705
18706 # A BSD-compatible nm program.
18707 NM=$lt_NM
18708
18709 # A symbol stripping program
18710 STRIP=$lt_STRIP
18711
18712 # Used to examine libraries when file_magic_cmd begins "file"
18713 MAGIC_CMD=$MAGIC_CMD
18714
18715 # Used on cygwin: DLL creation program.
18716 DLLTOOL="$DLLTOOL"
18717
18718 # Used on cygwin: object dumper.
18719 OBJDUMP="$OBJDUMP"
18720
18721 # Used on cygwin: assembler.
18722 AS="$AS"
18723
18724 # The name of the directory that contains temporary libtool files.
18725 objdir=$objdir
18726
18727 # How to create reloadable object files.
18728 reload_flag=$lt_reload_flag
18729 reload_cmds=$lt_reload_cmds
18730
18731 # How to pass a linker flag through the compiler.
18732 wl=$lt_lt_prog_compiler_wl_GCJ
18733
18734 # Object file suffix (normally "o").
18735 objext="$ac_objext"
18736
18737 # Old archive suffix (normally "a").
18738 libext="$libext"
18739
18740 # Shared library suffix (normally ".so").
18741 shrext_cmds='$shrext_cmds'
18742
18743 # Executable file suffix (normally "").
18744 exeext="$exeext"
18745
18746 # Additional compiler flags for building library objects.
18747 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18748 pic_mode=$pic_mode
18749
18750 # What is the maximum length of a command?
18751 max_cmd_len=$lt_cv_sys_max_cmd_len
18752
18753 # Does compiler simultaneously support -c and -o options?
18754 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18755
18756 # Must we lock files when doing compilation?
18757 need_locks=$lt_need_locks
18758
18759 # Do we need the lib prefix for modules?
18760 need_lib_prefix=$need_lib_prefix
18761
18762 # Do we need a version for libraries?
18763 need_version=$need_version
18764
18765 # Whether dlopen is supported.
18766 dlopen_support=$enable_dlopen
18767
18768 # Whether dlopen of programs is supported.
18769 dlopen_self=$enable_dlopen_self
18770
18771 # Whether dlopen of statically linked programs is supported.
18772 dlopen_self_static=$enable_dlopen_self_static
18773
18774 # Compiler flag to prevent dynamic linking.
18775 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18776
18777 # Compiler flag to turn off builtin functions.
18778 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18779
18780 # Compiler flag to allow reflexive dlopens.
18781 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18782
18783 # Compiler flag to generate shared objects directly from archives.
18784 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18785
18786 # Compiler flag to generate thread-safe objects.
18787 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18788
18789 # Library versioning type.
18790 version_type=$version_type
18791
18792 # Format of library name prefix.
18793 libname_spec=$lt_libname_spec
18794
18795 # List of archive names. First name is the real one, the rest are links.
18796 # The last name is the one that the linker finds with -lNAME.
18797 library_names_spec=$lt_library_names_spec
18798
18799 # The coded name of the library, if different from the real name.
18800 soname_spec=$lt_soname_spec
18801
18802 # Commands used to build and install an old-style archive.
18803 RANLIB=$lt_RANLIB
18804 old_archive_cmds=$lt_old_archive_cmds_GCJ
18805 old_postinstall_cmds=$lt_old_postinstall_cmds
18806 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18807
18808 # Create an old-style archive from a shared archive.
18809 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18810
18811 # Create a temporary old-style archive to link instead of a shared archive.
18812 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18813
18814 # Commands used to build and install a shared archive.
18815 archive_cmds=$lt_archive_cmds_GCJ
18816 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18817 postinstall_cmds=$lt_postinstall_cmds
18818 postuninstall_cmds=$lt_postuninstall_cmds
18819
18820 # Commands used to build a loadable module (assumed same as above if empty)
18821 module_cmds=$lt_module_cmds_GCJ
18822 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18823
18824 # Commands to strip libraries.
18825 old_striplib=$lt_old_striplib
18826 striplib=$lt_striplib
18827
18828 # Dependencies to place before the objects being linked to create a
18829 # shared library.
18830 predep_objects=$lt_predep_objects_GCJ
18831
18832 # Dependencies to place after the objects being linked to create a
18833 # shared library.
18834 postdep_objects=$lt_postdep_objects_GCJ
18835
18836 # Dependencies to place before the objects being linked to create a
18837 # shared library.
18838 predeps=$lt_predeps_GCJ
18839
18840 # Dependencies to place after the objects being linked to create a
18841 # shared library.
18842 postdeps=$lt_postdeps_GCJ
18843
18844 # The library search path used internally by the compiler when linking
18845 # a shared library.
18846 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18847
18848 # Method to check whether dependent libraries are shared objects.
18849 deplibs_check_method=$lt_deplibs_check_method
18850
18851 # Command to use when deplibs_check_method == file_magic.
18852 file_magic_cmd=$lt_file_magic_cmd
18853
18854 # Flag that allows shared libraries with undefined symbols to be built.
18855 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18856
18857 # Flag that forces no undefined symbols.
18858 no_undefined_flag=$lt_no_undefined_flag_GCJ
18859
18860 # Commands used to finish a libtool library installation in a directory.
18861 finish_cmds=$lt_finish_cmds
18862
18863 # Same as above, but a single script fragment to be evaled but not shown.
18864 finish_eval=$lt_finish_eval
18865
18866 # Take the output of nm and produce a listing of raw symbols and C names.
18867 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18868
18869 # Transform the output of nm in a proper C declaration
18870 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18871
18872 # Transform the output of nm in a C name address pair
18873 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18874
18875 # This is the shared library runtime path variable.
18876 runpath_var=$runpath_var
18877
18878 # This is the shared library path variable.
18879 shlibpath_var=$shlibpath_var
18880
18881 # Is shlibpath searched before the hard-coded library search path?
18882 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18883
18884 # How to hardcode a shared library path into an executable.
18885 hardcode_action=$hardcode_action_GCJ
18886
18887 # Whether we should hardcode library paths into libraries.
18888 hardcode_into_libs=$hardcode_into_libs
18889
18890 # Flag to hardcode \$libdir into a binary during linking.
18891 # This must work even if \$libdir does not exist.
18892 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18893
18894 # If ld is used when linking, flag to hardcode \$libdir into
18895 # a binary during linking. This must work even if \$libdir does
18896 # not exist.
18897 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18898
18899 # Whether we need a single -rpath flag with a separated argument.
18900 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18901
18902 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18903 # resulting binary.
18904 hardcode_direct=$hardcode_direct_GCJ
18905
18906 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18907 # resulting binary.
18908 hardcode_minus_L=$hardcode_minus_L_GCJ
18909
18910 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18911 # the resulting binary.
18912 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18913
18914 # Set to yes if building a shared library automatically hardcodes DIR into the library
18915 # and all subsequent libraries and executables linked against it.
18916 hardcode_automatic=$hardcode_automatic_GCJ
18917
18918 # Variables whose values should be saved in libtool wrapper scripts and
18919 # restored at relink time.
18920 variables_saved_for_relink="$variables_saved_for_relink"
18921
18922 # Whether libtool must link a program against all its dependency libraries.
18923 link_all_deplibs=$link_all_deplibs_GCJ
18924
18925 # Compile-time system search path for libraries
18926 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18927
18928 # Run-time system search path for libraries
18929 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18930
18931 # Fix the shell variable \$srcfile for the compiler.
18932 fix_srcfile_path=$lt_fix_srcfile_path
18933
18934 # Set to yes if exported symbols are required.
18935 always_export_symbols=$always_export_symbols_GCJ
18936
18937 # The commands to list exported symbols.
18938 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18939
18940 # The commands to extract the exported symbol list from a shared archive.
18941 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18942
18943 # Symbols that should not be listed in the preloaded symbols.
18944 exclude_expsyms=$lt_exclude_expsyms_GCJ
18945
18946 # Symbols that must always be exported.
18947 include_expsyms=$lt_include_expsyms_GCJ
18948
18949 # ### END LIBTOOL TAG CONFIG: $tagname
18950
18951 __EOF__
18952
18953
18954 else
18955 # If there is no Makefile yet, we rely on a make rule to execute
18956 # `config.status --recheck' to rerun these tests and create the
18957 # libtool script then.
18958 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18959 if test -f "$ltmain_in"; then
18960 test -f Makefile && make "$ltmain"
18961 fi
18962 fi
18963
18964
18965 ac_ext=c
18966 ac_cpp='$CPP $CPPFLAGS'
18967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18970
18971 CC="$lt_save_CC"
18972
18973 else
18974 tagname=""
18975 fi
18976 ;;
18977
18978 RC)
18979
18980
18981 # Source file extension for RC test sources.
18982 ac_ext=rc
18983
18984 # Object file extension for compiled RC test sources.
18985 objext=o
18986 objext_RC=$objext
18987
18988 # Code to be used in simple compile tests
18989 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18990
18991 # Code to be used in simple link tests
18992 lt_simple_link_test_code="$lt_simple_compile_test_code"
18993
18994 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18995
18996 # If no C compiler was specified, use CC.
18997 LTCC=${LTCC-"$CC"}
18998
18999 # If no C compiler flags were specified, use CFLAGS.
19000 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19001
19002 # Allow CC to be a program name with arguments.
19003 compiler=$CC
19004
19005
19006 # save warnings/boilerplate of simple test code
19007 ac_outfile=conftest.$ac_objext
19008 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19009 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19010 _lt_compiler_boilerplate=`cat conftest.err`
19011 $rm conftest*
19012
19013 ac_outfile=conftest.$ac_objext
19014 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19015 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19016 _lt_linker_boilerplate=`cat conftest.err`
19017 $rm conftest*
19018
19019
19020 # Allow CC to be a program name with arguments.
19021 lt_save_CC="$CC"
19022 CC=${RC-"windres"}
19023 compiler=$CC
19024 compiler_RC=$CC
19025 for cc_temp in $compiler""; do
19026 case $cc_temp in
19027 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19028 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19029 \-*) ;;
19030 *) break;;
19031 esac
19032 done
19033 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19034
19035 lt_cv_prog_compiler_c_o_RC=yes
19036
19037 # The else clause should only fire when bootstrapping the
19038 # libtool distribution, otherwise you forgot to ship ltmain.sh
19039 # with your package, and you will get complaints that there are
19040 # no rules to generate ltmain.sh.
19041 if test -f "$ltmain"; then
19042 # See if we are running on zsh, and set the options which allow our commands through
19043 # without removal of \ escapes.
19044 if test -n "${ZSH_VERSION+set}" ; then
19045 setopt NO_GLOB_SUBST
19046 fi
19047 # Now quote all the things that may contain metacharacters while being
19048 # careful not to overquote the AC_SUBSTed values. We take copies of the
19049 # variables and quote the copies for generation of the libtool script.
19050 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19051 SED SHELL STRIP \
19052 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19053 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19054 deplibs_check_method reload_flag reload_cmds need_locks \
19055 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19056 lt_cv_sys_global_symbol_to_c_name_address \
19057 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19058 old_postinstall_cmds old_postuninstall_cmds \
19059 compiler_RC \
19060 CC_RC \
19061 LD_RC \
19062 lt_prog_compiler_wl_RC \
19063 lt_prog_compiler_pic_RC \
19064 lt_prog_compiler_static_RC \
19065 lt_prog_compiler_no_builtin_flag_RC \
19066 export_dynamic_flag_spec_RC \
19067 thread_safe_flag_spec_RC \
19068 whole_archive_flag_spec_RC \
19069 enable_shared_with_static_runtimes_RC \
19070 old_archive_cmds_RC \
19071 old_archive_from_new_cmds_RC \
19072 predep_objects_RC \
19073 postdep_objects_RC \
19074 predeps_RC \
19075 postdeps_RC \
19076 compiler_lib_search_path_RC \
19077 archive_cmds_RC \
19078 archive_expsym_cmds_RC \
19079 postinstall_cmds_RC \
19080 postuninstall_cmds_RC \
19081 old_archive_from_expsyms_cmds_RC \
19082 allow_undefined_flag_RC \
19083 no_undefined_flag_RC \
19084 export_symbols_cmds_RC \
19085 hardcode_libdir_flag_spec_RC \
19086 hardcode_libdir_flag_spec_ld_RC \
19087 hardcode_libdir_separator_RC \
19088 hardcode_automatic_RC \
19089 module_cmds_RC \
19090 module_expsym_cmds_RC \
19091 lt_cv_prog_compiler_c_o_RC \
19092 fix_srcfile_path_RC \
19093 exclude_expsyms_RC \
19094 include_expsyms_RC; do
19095
19096 case $var in
19097 old_archive_cmds_RC | \
19098 old_archive_from_new_cmds_RC | \
19099 archive_cmds_RC | \
19100 archive_expsym_cmds_RC | \
19101 module_cmds_RC | \
19102 module_expsym_cmds_RC | \
19103 old_archive_from_expsyms_cmds_RC | \
19104 export_symbols_cmds_RC | \
19105 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19106 postinstall_cmds | postuninstall_cmds | \
19107 old_postinstall_cmds | old_postuninstall_cmds | \
19108 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19109 # Double-quote double-evaled strings.
19110 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19111 ;;
19112 *)
19113 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19114 ;;
19115 esac
19116 done
19117
19118 case $lt_echo in
19119 *'\$0 --fallback-echo"')
19120 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19121 ;;
19122 esac
19123
19124 cfgfile="$ofile"
19125
19126 cat <<__EOF__ >> "$cfgfile"
19127 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19128
19129 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19130
19131 # Shell to use when invoking shell scripts.
19132 SHELL=$lt_SHELL
19133
19134 # Whether or not to build shared libraries.
19135 build_libtool_libs=$enable_shared
19136
19137 # Whether or not to build static libraries.
19138 build_old_libs=$enable_static
19139
19140 # Whether or not to add -lc for building shared libraries.
19141 build_libtool_need_lc=$archive_cmds_need_lc_RC
19142
19143 # Whether or not to disallow shared libs when runtime libs are static
19144 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19145
19146 # Whether or not to optimize for fast installation.
19147 fast_install=$enable_fast_install
19148
19149 # The host system.
19150 host_alias=$host_alias
19151 host=$host
19152 host_os=$host_os
19153
19154 # The build system.
19155 build_alias=$build_alias
19156 build=$build
19157 build_os=$build_os
19158
19159 # An echo program that does not interpret backslashes.
19160 echo=$lt_echo
19161
19162 # The archiver.
19163 AR=$lt_AR
19164 AR_FLAGS=$lt_AR_FLAGS
19165
19166 # A C compiler.
19167 LTCC=$lt_LTCC
19168
19169 # LTCC compiler flags.
19170 LTCFLAGS=$lt_LTCFLAGS
19171
19172 # A language-specific compiler.
19173 CC=$lt_compiler_RC
19174
19175 # Is the compiler the GNU C compiler?
19176 with_gcc=$GCC_RC
19177
19178 # An ERE matcher.
19179 EGREP=$lt_EGREP
19180
19181 # The linker used to build libraries.
19182 LD=$lt_LD_RC
19183
19184 # Whether we need hard or soft links.
19185 LN_S=$lt_LN_S
19186
19187 # A BSD-compatible nm program.
19188 NM=$lt_NM
19189
19190 # A symbol stripping program
19191 STRIP=$lt_STRIP
19192
19193 # Used to examine libraries when file_magic_cmd begins "file"
19194 MAGIC_CMD=$MAGIC_CMD
19195
19196 # Used on cygwin: DLL creation program.
19197 DLLTOOL="$DLLTOOL"
19198
19199 # Used on cygwin: object dumper.
19200 OBJDUMP="$OBJDUMP"
19201
19202 # Used on cygwin: assembler.
19203 AS="$AS"
19204
19205 # The name of the directory that contains temporary libtool files.
19206 objdir=$objdir
19207
19208 # How to create reloadable object files.
19209 reload_flag=$lt_reload_flag
19210 reload_cmds=$lt_reload_cmds
19211
19212 # How to pass a linker flag through the compiler.
19213 wl=$lt_lt_prog_compiler_wl_RC
19214
19215 # Object file suffix (normally "o").
19216 objext="$ac_objext"
19217
19218 # Old archive suffix (normally "a").
19219 libext="$libext"
19220
19221 # Shared library suffix (normally ".so").
19222 shrext_cmds='$shrext_cmds'
19223
19224 # Executable file suffix (normally "").
19225 exeext="$exeext"
19226
19227 # Additional compiler flags for building library objects.
19228 pic_flag=$lt_lt_prog_compiler_pic_RC
19229 pic_mode=$pic_mode
19230
19231 # What is the maximum length of a command?
19232 max_cmd_len=$lt_cv_sys_max_cmd_len
19233
19234 # Does compiler simultaneously support -c and -o options?
19235 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19236
19237 # Must we lock files when doing compilation?
19238 need_locks=$lt_need_locks
19239
19240 # Do we need the lib prefix for modules?
19241 need_lib_prefix=$need_lib_prefix
19242
19243 # Do we need a version for libraries?
19244 need_version=$need_version
19245
19246 # Whether dlopen is supported.
19247 dlopen_support=$enable_dlopen
19248
19249 # Whether dlopen of programs is supported.
19250 dlopen_self=$enable_dlopen_self
19251
19252 # Whether dlopen of statically linked programs is supported.
19253 dlopen_self_static=$enable_dlopen_self_static
19254
19255 # Compiler flag to prevent dynamic linking.
19256 link_static_flag=$lt_lt_prog_compiler_static_RC
19257
19258 # Compiler flag to turn off builtin functions.
19259 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19260
19261 # Compiler flag to allow reflexive dlopens.
19262 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19263
19264 # Compiler flag to generate shared objects directly from archives.
19265 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19266
19267 # Compiler flag to generate thread-safe objects.
19268 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19269
19270 # Library versioning type.
19271 version_type=$version_type
19272
19273 # Format of library name prefix.
19274 libname_spec=$lt_libname_spec
19275
19276 # List of archive names. First name is the real one, the rest are links.
19277 # The last name is the one that the linker finds with -lNAME.
19278 library_names_spec=$lt_library_names_spec
19279
19280 # The coded name of the library, if different from the real name.
19281 soname_spec=$lt_soname_spec
19282
19283 # Commands used to build and install an old-style archive.
19284 RANLIB=$lt_RANLIB
19285 old_archive_cmds=$lt_old_archive_cmds_RC
19286 old_postinstall_cmds=$lt_old_postinstall_cmds
19287 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19288
19289 # Create an old-style archive from a shared archive.
19290 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19291
19292 # Create a temporary old-style archive to link instead of a shared archive.
19293 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19294
19295 # Commands used to build and install a shared archive.
19296 archive_cmds=$lt_archive_cmds_RC
19297 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19298 postinstall_cmds=$lt_postinstall_cmds
19299 postuninstall_cmds=$lt_postuninstall_cmds
19300
19301 # Commands used to build a loadable module (assumed same as above if empty)
19302 module_cmds=$lt_module_cmds_RC
19303 module_expsym_cmds=$lt_module_expsym_cmds_RC
19304
19305 # Commands to strip libraries.
19306 old_striplib=$lt_old_striplib
19307 striplib=$lt_striplib
19308
19309 # Dependencies to place before the objects being linked to create a
19310 # shared library.
19311 predep_objects=$lt_predep_objects_RC
19312
19313 # Dependencies to place after the objects being linked to create a
19314 # shared library.
19315 postdep_objects=$lt_postdep_objects_RC
19316
19317 # Dependencies to place before the objects being linked to create a
19318 # shared library.
19319 predeps=$lt_predeps_RC
19320
19321 # Dependencies to place after the objects being linked to create a
19322 # shared library.
19323 postdeps=$lt_postdeps_RC
19324
19325 # The library search path used internally by the compiler when linking
19326 # a shared library.
19327 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19328
19329 # Method to check whether dependent libraries are shared objects.
19330 deplibs_check_method=$lt_deplibs_check_method
19331
19332 # Command to use when deplibs_check_method == file_magic.
19333 file_magic_cmd=$lt_file_magic_cmd
19334
19335 # Flag that allows shared libraries with undefined symbols to be built.
19336 allow_undefined_flag=$lt_allow_undefined_flag_RC
19337
19338 # Flag that forces no undefined symbols.
19339 no_undefined_flag=$lt_no_undefined_flag_RC
19340
19341 # Commands used to finish a libtool library installation in a directory.
19342 finish_cmds=$lt_finish_cmds
19343
19344 # Same as above, but a single script fragment to be evaled but not shown.
19345 finish_eval=$lt_finish_eval
19346
19347 # Take the output of nm and produce a listing of raw symbols and C names.
19348 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19349
19350 # Transform the output of nm in a proper C declaration
19351 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19352
19353 # Transform the output of nm in a C name address pair
19354 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19355
19356 # This is the shared library runtime path variable.
19357 runpath_var=$runpath_var
19358
19359 # This is the shared library path variable.
19360 shlibpath_var=$shlibpath_var
19361
19362 # Is shlibpath searched before the hard-coded library search path?
19363 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19364
19365 # How to hardcode a shared library path into an executable.
19366 hardcode_action=$hardcode_action_RC
19367
19368 # Whether we should hardcode library paths into libraries.
19369 hardcode_into_libs=$hardcode_into_libs
19370
19371 # Flag to hardcode \$libdir into a binary during linking.
19372 # This must work even if \$libdir does not exist.
19373 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19374
19375 # If ld is used when linking, flag to hardcode \$libdir into
19376 # a binary during linking. This must work even if \$libdir does
19377 # not exist.
19378 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19379
19380 # Whether we need a single -rpath flag with a separated argument.
19381 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19382
19383 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19384 # resulting binary.
19385 hardcode_direct=$hardcode_direct_RC
19386
19387 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19388 # resulting binary.
19389 hardcode_minus_L=$hardcode_minus_L_RC
19390
19391 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19392 # the resulting binary.
19393 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19394
19395 # Set to yes if building a shared library automatically hardcodes DIR into the library
19396 # and all subsequent libraries and executables linked against it.
19397 hardcode_automatic=$hardcode_automatic_RC
19398
19399 # Variables whose values should be saved in libtool wrapper scripts and
19400 # restored at relink time.
19401 variables_saved_for_relink="$variables_saved_for_relink"
19402
19403 # Whether libtool must link a program against all its dependency libraries.
19404 link_all_deplibs=$link_all_deplibs_RC
19405
19406 # Compile-time system search path for libraries
19407 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19408
19409 # Run-time system search path for libraries
19410 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19411
19412 # Fix the shell variable \$srcfile for the compiler.
19413 fix_srcfile_path=$lt_fix_srcfile_path
19414
19415 # Set to yes if exported symbols are required.
19416 always_export_symbols=$always_export_symbols_RC
19417
19418 # The commands to list exported symbols.
19419 export_symbols_cmds=$lt_export_symbols_cmds_RC
19420
19421 # The commands to extract the exported symbol list from a shared archive.
19422 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19423
19424 # Symbols that should not be listed in the preloaded symbols.
19425 exclude_expsyms=$lt_exclude_expsyms_RC
19426
19427 # Symbols that must always be exported.
19428 include_expsyms=$lt_include_expsyms_RC
19429
19430 # ### END LIBTOOL TAG CONFIG: $tagname
19431
19432 __EOF__
19433
19434
19435 else
19436 # If there is no Makefile yet, we rely on a make rule to execute
19437 # `config.status --recheck' to rerun these tests and create the
19438 # libtool script then.
19439 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19440 if test -f "$ltmain_in"; then
19441 test -f Makefile && make "$ltmain"
19442 fi
19443 fi
19444
19445
19446 ac_ext=c
19447 ac_cpp='$CPP $CPPFLAGS'
19448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19451
19452 CC="$lt_save_CC"
19453
19454 ;;
19455
19456 *)
19457 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19458 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19459 { (exit 1); exit 1; }; }
19460 ;;
19461 esac
19462
19463 # Append the new tag name to the list of available tags.
19464 if test -n "$tagname" ; then
19465 available_tags="$available_tags $tagname"
19466 fi
19467 fi
19468 done
19469 IFS="$lt_save_ifs"
19470
19471 # Now substitute the updated list of available tags.
19472 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19473 mv "${ofile}T" "$ofile"
19474 chmod +x "$ofile"
19475 else
19476 rm -f "${ofile}T"
19477 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19478 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19479 { (exit 1); exit 1; }; }
19480 fi
19481 fi
19482
19483
19484
19485 # This can be used to rebuild libtool when needed
19486 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19487
19488 # Always use our own libtool.
19489 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19490
19491 # Prevent multiple expansion
19492
19493
19494
19495
19496
19497
19498
19499
19500
19501
19502
19503
19504
19505
19506
19507
19508
19509
19510
19511
19512
19513
19514 cat >>confdefs.h <<\_ACEOF
19515 #define _GNU_SOURCE
19516 _ACEOF
19517
19518
19519
19520
19521 # Check whether --enable-compile-warnings was given.
285519522 if test "${enable_compile_warnings+set}" = set; then
2856 enableval="$enable_compile_warnings"
2857
19523 enableval=$enable_compile_warnings;
285819524 else
285919525 enable_compile_warnings="maximum"
2860 fi;
19526 fi
19527
286119528
286219529 warnCFLAGS=
286319530
287519542 maximum|error)
287619543 try_compiler_flags="$try_compiler_flags -Wall -Wmissing-prototypes -std=c99 -Wnested-externs -Wpointer-arith"
287719544 try_compiler_flags="$try_compiler_flags -Wextra -Wshadow -Wcast-align -Wwrite-strings -Waggregate-return"
2878 try_compiler_flags="$try_compiler_flags -Wstrict-prototypes -Winline -Wredundant-decls -Wno-sign-compare"
19545 # Removed -Wstrict-prototypes to avoid GTK bug
19546 try_compiler_flags="$try_compiler_flags -Winline -Wredundant-decls -Wno-sign-compare"
287919547 if test "$enable_compile_warnings" = "error" ; then
288019548 try_compiler_flags="$try_compiler_flags -Werror"
288119549 fi
289119559 for option in $try_compiler_flags; do
289219560 SAVE_CFLAGS="$CFLAGS"
289319561 CFLAGS="$CFLAGS $option"
2894 echo "$as_me:$LINENO: checking whether gcc understands $option" >&5
2895 echo $ECHO_N "checking whether gcc understands $option... $ECHO_C" >&6
19562 { echo "$as_me:$LINENO: checking whether gcc understands $option" >&5
19563 echo $ECHO_N "checking whether gcc understands $option... $ECHO_C" >&6; }
289619564 cat >conftest.$ac_ext <<_ACEOF
289719565 /* confdefs.h. */
289819566 _ACEOF
290919577 }
291019578 _ACEOF
291119579 rm -f conftest.$ac_objext
2912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2913 (eval $ac_compile) 2>conftest.er1
19580 if { (ac_try="$ac_compile"
19581 case "(($ac_try" in
19582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19583 *) ac_try_echo=$ac_try;;
19584 esac
19585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19586 (eval "$ac_compile") 2>conftest.er1
291419587 ac_status=$?
291519588 grep -v '^ *+' conftest.er1 >conftest.err
291619589 rm -f conftest.er1
291719590 cat conftest.err >&5
291819591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 (exit $ac_status); } &&
2920 { ac_try='test -z "$ac_c_werror_flag"
2921 || test ! -s conftest.err'
2922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2923 (eval $ac_try) 2>&5
2924 ac_status=$?
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); }; } &&
2927 { ac_try='test -s conftest.$ac_objext'
2928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2929 (eval $ac_try) 2>&5
2930 ac_status=$?
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); }; }; then
19592 (exit $ac_status); } && {
19593 test -z "$ac_c_werror_flag" ||
19594 test ! -s conftest.err
19595 } && test -s conftest.$ac_objext; then
293319596 has_option=yes
293419597 else
293519598 echo "$as_me: failed program was:" >&5
293619599 sed 's/^/| /' conftest.$ac_ext >&5
293719600
2938 has_option=no
2939 fi
2940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19601 has_option=no
19602 fi
19603
19604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
294119605 CFLAGS="$SAVE_CFLAGS"
2942 echo "$as_me:$LINENO: result: $has_option" >&5
2943 echo "${ECHO_T}$has_option" >&6
19606 { echo "$as_me:$LINENO: result: $has_option" >&5
19607 echo "${ECHO_T}$has_option" >&6; }
294419608 if test $has_option = yes; then
294519609 compiler_flags="$compiler_flags $option"
294619610 fi
295019614 unset option
295119615 unset try_compiler_flags
295219616
2953 # Check whether --enable-iso-c or --disable-iso-c was given.
19617 # Check whether --enable-iso-c was given.
295419618 if test "${enable_iso_c+set}" = set; then
2955 enableval="$enable_iso_c"
2956
19619 enableval=$enable_iso_c;
295719620 else
295819621 enable_iso_c=no
2959 fi;
2960
2961 echo "$as_me:$LINENO: checking what language compliance flags to pass to the C compiler" >&5
2962 echo $ECHO_N "checking what language compliance flags to pass to the C compiler... $ECHO_C" >&6
19622 fi
19623
19624
19625 { echo "$as_me:$LINENO: checking what language compliance flags to pass to the C compiler" >&5
19626 echo $ECHO_N "checking what language compliance flags to pass to the C compiler... $ECHO_C" >&6; }
296319627 complCFLAGS=
296419628 if test "x$enable_iso_c" != "xno"; then
296519629 if test "x$GCC" = "xyes"; then
297319637 esac
297419638 fi
297519639 fi
2976 echo "$as_me:$LINENO: result: $complCFLAGS" >&5
2977 echo "${ECHO_T}$complCFLAGS" >&6
19640 { echo "$as_me:$LINENO: result: $complCFLAGS" >&5
19641 echo "${ECHO_T}$complCFLAGS" >&6; }
297819642
297919643 WARN_CFLAGS="$compiler_flags $complCFLAGS"
298019644
298619650 if test -n "$ac_tool_prefix"; then
298719651 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
298819652 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
2989 echo "$as_me:$LINENO: checking for $ac_word" >&5
2990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19653 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
299119655 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
299219656 echo $ECHO_N "(cached) $ECHO_C" >&6
299319657 else
300219666 IFS=$as_save_IFS
300319667 test -z "$as_dir" && as_dir=.
300419668 for ac_exec_ext in '' $ac_executable_extensions; do
3005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
300619670 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
300719671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
300819672 break 2
300919673 fi
301019674 done
301119675 done
19676 IFS=$as_save_IFS
301219677
301319678 ;;
301419679 esac
301519680 fi
301619681 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3017
301819682 if test -n "$PKG_CONFIG"; then
3019 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
3020 echo "${ECHO_T}$PKG_CONFIG" >&6
3021 else
3022 echo "$as_me:$LINENO: result: no" >&5
3023 echo "${ECHO_T}no" >&6
3024 fi
19683 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19684 echo "${ECHO_T}$PKG_CONFIG" >&6; }
19685 else
19686 { echo "$as_me:$LINENO: result: no" >&5
19687 echo "${ECHO_T}no" >&6; }
19688 fi
19689
302519690
302619691 fi
302719692 if test -z "$ac_cv_path_PKG_CONFIG"; then
302819693 ac_pt_PKG_CONFIG=$PKG_CONFIG
302919694 # Extract the first word of "pkg-config", so it can be a program name with args.
303019695 set dummy pkg-config; ac_word=$2
3031 echo "$as_me:$LINENO: checking for $ac_word" >&5
3032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19696 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
303319698 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
303419699 echo $ECHO_N "(cached) $ECHO_C" >&6
303519700 else
304419709 IFS=$as_save_IFS
304519710 test -z "$as_dir" && as_dir=.
304619711 for ac_exec_ext in '' $ac_executable_extensions; do
3047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
304819713 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
304919714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
305019715 break 2
305119716 fi
305219717 done
305319718 done
19719 IFS=$as_save_IFS
305419720
305519721 ;;
305619722 esac
305719723 fi
305819724 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3059
306019725 if test -n "$ac_pt_PKG_CONFIG"; then
3061 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
3062 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3063 else
3064 echo "$as_me:$LINENO: result: no" >&5
3065 echo "${ECHO_T}no" >&6
3066 fi
3067
3068 PKG_CONFIG=$ac_pt_PKG_CONFIG
19726 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
19727 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
19728 else
19729 { echo "$as_me:$LINENO: result: no" >&5
19730 echo "${ECHO_T}no" >&6; }
19731 fi
19732
19733 if test "x$ac_pt_PKG_CONFIG" = x; then
19734 PKG_CONFIG=""
19735 else
19736 case $cross_compiling:$ac_tool_warned in
19737 yes:)
19738 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19739 whose name does not start with the host triplet. If you think this
19740 configuration is useful to you, please write to autoconf@gnu.org." >&5
19741 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19742 whose name does not start with the host triplet. If you think this
19743 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19744 ac_tool_warned=yes ;;
19745 esac
19746 PKG_CONFIG=$ac_pt_PKG_CONFIG
19747 fi
306919748 else
307019749 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
307119750 fi
307319752 fi
307419753 if test -n "$PKG_CONFIG"; then
307519754 _pkg_min_version=0.9.0
3076 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
3077 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
19755 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
19756 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
307819757 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3079 echo "$as_me:$LINENO: result: yes" >&5
3080 echo "${ECHO_T}yes" >&6
19758 { echo "$as_me:$LINENO: result: yes" >&5
19759 echo "${ECHO_T}yes" >&6; }
308119760 else
3082 echo "$as_me:$LINENO: result: no" >&5
3083 echo "${ECHO_T}no" >&6
19761 { echo "$as_me:$LINENO: result: no" >&5
19762 echo "${ECHO_T}no" >&6; }
308419763 PKG_CONFIG=""
308519764 fi
308619765
308719766 fi
308819767
308919768 pkg_failed=no
3090 echo "$as_me:$LINENO: checking for LIBXML2" >&5
3091 echo $ECHO_N "checking for LIBXML2... $ECHO_C" >&6
19769 { echo "$as_me:$LINENO: checking for LIBXML2" >&5
19770 echo $ECHO_N "checking for LIBXML2... $ECHO_C" >&6; }
309219771
309319772 if test -n "$PKG_CONFIG"; then
309419773 if test -n "$LIBXML2_CFLAGS"; then
317619855 and LIBXML2_LIBS to avoid the need to call pkg-config.
317719856 See the pkg-config man page for more details.
317819857
3179 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
19858 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
318019859 See \`config.log' for more details." >&5
318119860 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
318219861 is in your PATH or set the PKG_CONFIG environment variable to the full
318619865 and LIBXML2_LIBS to avoid the need to call pkg-config.
318719866 See the pkg-config man page for more details.
318819867
3189 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
19868 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
319019869 See \`config.log' for more details." >&2;}
319119870 { (exit 1); exit 1; }; }
319219871 else
319319872 LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS
319419873 LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS
3195 echo "$as_me:$LINENO: result: yes" >&5
3196 echo "${ECHO_T}yes" >&6
19874 { echo "$as_me:$LINENO: result: yes" >&5
19875 echo "${ECHO_T}yes" >&6; }
319719876 :
319819877 fi
319919878
320019879 pkg_failed=no
3201 echo "$as_me:$LINENO: checking for LIBVIRT" >&5
3202 echo $ECHO_N "checking for LIBVIRT... $ECHO_C" >&6
19880 { echo "$as_me:$LINENO: checking for LIBVIRT" >&5
19881 echo $ECHO_N "checking for LIBVIRT... $ECHO_C" >&6; }
320319882
320419883 if test -n "$PKG_CONFIG"; then
320519884 if test -n "$LIBVIRT_CFLAGS"; then
328719966 and LIBVIRT_LIBS to avoid the need to call pkg-config.
328819967 See the pkg-config man page for more details.
328919968
3290 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
19969 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
329119970 See \`config.log' for more details." >&5
329219971 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
329319972 is in your PATH or set the PKG_CONFIG environment variable to the full
329719976 and LIBVIRT_LIBS to avoid the need to call pkg-config.
329819977 See the pkg-config man page for more details.
329919978
3300 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
19979 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
330119980 See \`config.log' for more details." >&2;}
330219981 { (exit 1); exit 1; }; }
330319982 else
330419983 LIBVIRT_CFLAGS=$pkg_cv_LIBVIRT_CFLAGS
330519984 LIBVIRT_LIBS=$pkg_cv_LIBVIRT_LIBS
3306 echo "$as_me:$LINENO: result: yes" >&5
3307 echo "${ECHO_T}yes" >&6
19985 { echo "$as_me:$LINENO: result: yes" >&5
19986 echo "${ECHO_T}yes" >&6; }
330819987 :
330919988 fi
331019989
331119990 pkg_failed=no
3312 echo "$as_me:$LINENO: checking for GTK2" >&5
3313 echo $ECHO_N "checking for GTK2... $ECHO_C" >&6
19991 { echo "$as_me:$LINENO: checking for GTK2" >&5
19992 echo $ECHO_N "checking for GTK2... $ECHO_C" >&6; }
331419993
331519994 if test -n "$PKG_CONFIG"; then
331619995 if test -n "$GTK2_CFLAGS"; then
339820077 and GTK2_LIBS to avoid the need to call pkg-config.
339920078 See the pkg-config man page for more details.
340020079
3401 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20080 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
340220081 See \`config.log' for more details." >&5
340320082 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
340420083 is in your PATH or set the PKG_CONFIG environment variable to the full
340820087 and GTK2_LIBS to avoid the need to call pkg-config.
340920088 See the pkg-config man page for more details.
341020089
3411 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20090 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
341220091 See \`config.log' for more details." >&2;}
341320092 { (exit 1); exit 1; }; }
341420093 else
341520094 GTK2_CFLAGS=$pkg_cv_GTK2_CFLAGS
341620095 GTK2_LIBS=$pkg_cv_GTK2_LIBS
3417 echo "$as_me:$LINENO: result: yes" >&5
3418 echo "${ECHO_T}yes" >&6
20096 { echo "$as_me:$LINENO: result: yes" >&5
20097 echo "${ECHO_T}yes" >&6; }
341920098 :
342020099 fi
342120100
342220101 pkg_failed=no
3423 echo "$as_me:$LINENO: checking for GTKVNC" >&5
3424 echo $ECHO_N "checking for GTKVNC... $ECHO_C" >&6
20102 { echo "$as_me:$LINENO: checking for GTKVNC" >&5
20103 echo $ECHO_N "checking for GTKVNC... $ECHO_C" >&6; }
342520104
342620105 if test -n "$PKG_CONFIG"; then
342720106 if test -n "$GTKVNC_CFLAGS"; then
350920188 and GTKVNC_LIBS to avoid the need to call pkg-config.
351020189 See the pkg-config man page for more details.
351120190
3512 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20191 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
351320192 See \`config.log' for more details." >&5
351420193 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
351520194 is in your PATH or set the PKG_CONFIG environment variable to the full
351920198 and GTKVNC_LIBS to avoid the need to call pkg-config.
352020199 See the pkg-config man page for more details.
352120200
3522 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20201 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
352320202 See \`config.log' for more details." >&2;}
352420203 { (exit 1); exit 1; }; }
352520204 else
352620205 GTKVNC_CFLAGS=$pkg_cv_GTKVNC_CFLAGS
352720206 GTKVNC_LIBS=$pkg_cv_GTKVNC_LIBS
3528 echo "$as_me:$LINENO: result: yes" >&5
3529 echo "${ECHO_T}yes" >&6
20207 { echo "$as_me:$LINENO: result: yes" >&5
20208 echo "${ECHO_T}yes" >&6; }
353020209 :
353120210 fi
353220211
3533 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile virt-viewer.spec"
20212 NSPR_REQUIRED=4.0.0
20213 FIREFOX_PLUGIN_REQUIRED=1.5.0
20214 MOZILLA_PLUGIN_REQUIRED=1.8
20215 # Check whether --enable-plugin was given.
20216 if test "${enable_plugin+set}" = set; then
20217 enableval=$enable_plugin;
20218 else
20219 enable_plugin=no
20220 fi
20221
20222 if test "x$enable_plugin" = "xyes"; then
20223
20224 pkg_failed=no
20225 { echo "$as_me:$LINENO: checking for NSPR" >&5
20226 echo $ECHO_N "checking for NSPR... $ECHO_C" >&6; }
20227
20228 if test -n "$PKG_CONFIG"; then
20229 if test -n "$NSPR_CFLAGS"; then
20230 pkg_cv_NSPR_CFLAGS="$NSPR_CFLAGS"
20231 else
20232 if test -n "$PKG_CONFIG" && \
20233 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"nspr >= \$NSPR_REQUIRED\"") >&5
20234 ($PKG_CONFIG --exists --print-errors "nspr >= $NSPR_REQUIRED") 2>&5
20235 ac_status=$?
20236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237 (exit $ac_status); }; then
20238 pkg_cv_NSPR_CFLAGS=`$PKG_CONFIG --cflags "nspr >= $NSPR_REQUIRED" 2>/dev/null`
20239 else
20240 pkg_failed=yes
20241 fi
20242 fi
20243 else
20244 pkg_failed=untried
20245 fi
20246 if test -n "$PKG_CONFIG"; then
20247 if test -n "$NSPR_LIBS"; then
20248 pkg_cv_NSPR_LIBS="$NSPR_LIBS"
20249 else
20250 if test -n "$PKG_CONFIG" && \
20251 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"nspr >= \$NSPR_REQUIRED\"") >&5
20252 ($PKG_CONFIG --exists --print-errors "nspr >= $NSPR_REQUIRED") 2>&5
20253 ac_status=$?
20254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20255 (exit $ac_status); }; then
20256 pkg_cv_NSPR_LIBS=`$PKG_CONFIG --libs "nspr >= $NSPR_REQUIRED" 2>/dev/null`
20257 else
20258 pkg_failed=yes
20259 fi
20260 fi
20261 else
20262 pkg_failed=untried
20263 fi
20264
20265
20266
20267 if test $pkg_failed = yes; then
20268
20269 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20270 _pkg_short_errors_supported=yes
20271 else
20272 _pkg_short_errors_supported=no
20273 fi
20274 if test $_pkg_short_errors_supported = yes; then
20275 NSPR_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "nspr >= $NSPR_REQUIRED"`
20276 else
20277 NSPR_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "nspr >= $NSPR_REQUIRED"`
20278 fi
20279 # Put the nasty error message in config.log where it belongs
20280 echo "$NSPR_PKG_ERRORS" >&5
20281
20282 { { echo "$as_me:$LINENO: error: Package requirements (nspr >= $NSPR_REQUIRED) were not met:
20283
20284 $NSPR_PKG_ERRORS
20285
20286 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20287 installed software in a non-standard prefix.
20288
20289 Alternatively, you may set the environment variables NSPR_CFLAGS
20290 and NSPR_LIBS to avoid the need to call pkg-config.
20291 See the pkg-config man page for more details.
20292 " >&5
20293 echo "$as_me: error: Package requirements (nspr >= $NSPR_REQUIRED) were not met:
20294
20295 $NSPR_PKG_ERRORS
20296
20297 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20298 installed software in a non-standard prefix.
20299
20300 Alternatively, you may set the environment variables NSPR_CFLAGS
20301 and NSPR_LIBS to avoid the need to call pkg-config.
20302 See the pkg-config man page for more details.
20303 " >&2;}
20304 { (exit 1); exit 1; }; }
20305 elif test $pkg_failed = untried; then
20306 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
20307 is in your PATH or set the PKG_CONFIG environment variable to the full
20308 path to pkg-config.
20309
20310 Alternatively, you may set the environment variables NSPR_CFLAGS
20311 and NSPR_LIBS to avoid the need to call pkg-config.
20312 See the pkg-config man page for more details.
20313
20314 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20315 See \`config.log' for more details." >&5
20316 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
20317 is in your PATH or set the PKG_CONFIG environment variable to the full
20318 path to pkg-config.
20319
20320 Alternatively, you may set the environment variables NSPR_CFLAGS
20321 and NSPR_LIBS to avoid the need to call pkg-config.
20322 See the pkg-config man page for more details.
20323
20324 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20325 See \`config.log' for more details." >&2;}
20326 { (exit 1); exit 1; }; }
20327 else
20328 NSPR_CFLAGS=$pkg_cv_NSPR_CFLAGS
20329 NSPR_LIBS=$pkg_cv_NSPR_LIBS
20330 { echo "$as_me:$LINENO: result: yes" >&5
20331 echo "${ECHO_T}yes" >&6; }
20332 :
20333 fi
20334
20335 pkg_failed=no
20336 { echo "$as_me:$LINENO: checking for FIREFOX_PLUGIN" >&5
20337 echo $ECHO_N "checking for FIREFOX_PLUGIN... $ECHO_C" >&6; }
20338
20339 if test -n "$PKG_CONFIG"; then
20340 if test -n "$FIREFOX_PLUGIN_CFLAGS"; then
20341 pkg_cv_FIREFOX_PLUGIN_CFLAGS="$FIREFOX_PLUGIN_CFLAGS"
20342 else
20343 if test -n "$PKG_CONFIG" && \
20344 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"firefox-plugin >= \$FIREFOX_PLUGIN_REQUIRED\"") >&5
20345 ($PKG_CONFIG --exists --print-errors "firefox-plugin >= $FIREFOX_PLUGIN_REQUIRED") 2>&5
20346 ac_status=$?
20347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348 (exit $ac_status); }; then
20349 pkg_cv_FIREFOX_PLUGIN_CFLAGS=`$PKG_CONFIG --cflags "firefox-plugin >= $FIREFOX_PLUGIN_REQUIRED" 2>/dev/null`
20350 else
20351 pkg_failed=yes
20352 fi
20353 fi
20354 else
20355 pkg_failed=untried
20356 fi
20357 if test -n "$PKG_CONFIG"; then
20358 if test -n "$FIREFOX_PLUGIN_LIBS"; then
20359 pkg_cv_FIREFOX_PLUGIN_LIBS="$FIREFOX_PLUGIN_LIBS"
20360 else
20361 if test -n "$PKG_CONFIG" && \
20362 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"firefox-plugin >= \$FIREFOX_PLUGIN_REQUIRED\"") >&5
20363 ($PKG_CONFIG --exists --print-errors "firefox-plugin >= $FIREFOX_PLUGIN_REQUIRED") 2>&5
20364 ac_status=$?
20365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20366 (exit $ac_status); }; then
20367 pkg_cv_FIREFOX_PLUGIN_LIBS=`$PKG_CONFIG --libs "firefox-plugin >= $FIREFOX_PLUGIN_REQUIRED" 2>/dev/null`
20368 else
20369 pkg_failed=yes
20370 fi
20371 fi
20372 else
20373 pkg_failed=untried
20374 fi
20375
20376
20377
20378 if test $pkg_failed = yes; then
20379
20380 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20381 _pkg_short_errors_supported=yes
20382 else
20383 _pkg_short_errors_supported=no
20384 fi
20385 if test $_pkg_short_errors_supported = yes; then
20386 FIREFOX_PLUGIN_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "firefox-plugin >= $FIREFOX_PLUGIN_REQUIRED"`
20387 else
20388 FIREFOX_PLUGIN_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "firefox-plugin >= $FIREFOX_PLUGIN_REQUIRED"`
20389 fi
20390 # Put the nasty error message in config.log where it belongs
20391 echo "$FIREFOX_PLUGIN_PKG_ERRORS" >&5
20392
20393 { echo "$as_me:$LINENO: result: no" >&5
20394 echo "${ECHO_T}no" >&6; }
20395
20396
20397 pkg_failed=no
20398 { echo "$as_me:$LINENO: checking for MOZILLA_PLUGIN" >&5
20399 echo $ECHO_N "checking for MOZILLA_PLUGIN... $ECHO_C" >&6; }
20400
20401 if test -n "$PKG_CONFIG"; then
20402 if test -n "$MOZILLA_PLUGIN_CFLAGS"; then
20403 pkg_cv_MOZILLA_PLUGIN_CFLAGS="$MOZILLA_PLUGIN_CFLAGS"
20404 else
20405 if test -n "$PKG_CONFIG" && \
20406 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"mozilla-plugin >= \$MOZILLA_PLUGIN_REQUIRED\"") >&5
20407 ($PKG_CONFIG --exists --print-errors "mozilla-plugin >= $MOZILLA_PLUGIN_REQUIRED") 2>&5
20408 ac_status=$?
20409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410 (exit $ac_status); }; then
20411 pkg_cv_MOZILLA_PLUGIN_CFLAGS=`$PKG_CONFIG --cflags "mozilla-plugin >= $MOZILLA_PLUGIN_REQUIRED" 2>/dev/null`
20412 else
20413 pkg_failed=yes
20414 fi
20415 fi
20416 else
20417 pkg_failed=untried
20418 fi
20419 if test -n "$PKG_CONFIG"; then
20420 if test -n "$MOZILLA_PLUGIN_LIBS"; then
20421 pkg_cv_MOZILLA_PLUGIN_LIBS="$MOZILLA_PLUGIN_LIBS"
20422 else
20423 if test -n "$PKG_CONFIG" && \
20424 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"mozilla-plugin >= \$MOZILLA_PLUGIN_REQUIRED\"") >&5
20425 ($PKG_CONFIG --exists --print-errors "mozilla-plugin >= $MOZILLA_PLUGIN_REQUIRED") 2>&5
20426 ac_status=$?
20427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428 (exit $ac_status); }; then
20429 pkg_cv_MOZILLA_PLUGIN_LIBS=`$PKG_CONFIG --libs "mozilla-plugin >= $MOZILLA_PLUGIN_REQUIRED" 2>/dev/null`
20430 else
20431 pkg_failed=yes
20432 fi
20433 fi
20434 else
20435 pkg_failed=untried
20436 fi
20437
20438
20439
20440 if test $pkg_failed = yes; then
20441
20442 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20443 _pkg_short_errors_supported=yes
20444 else
20445 _pkg_short_errors_supported=no
20446 fi
20447 if test $_pkg_short_errors_supported = yes; then
20448 MOZILLA_PLUGIN_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "mozilla-plugin >= $MOZILLA_PLUGIN_REQUIRED"`
20449 else
20450 MOZILLA_PLUGIN_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-plugin >= $MOZILLA_PLUGIN_REQUIRED"`
20451 fi
20452 # Put the nasty error message in config.log where it belongs
20453 echo "$MOZILLA_PLUGIN_PKG_ERRORS" >&5
20454
20455 { { echo "$as_me:$LINENO: error: Package requirements (mozilla-plugin >= $MOZILLA_PLUGIN_REQUIRED) were not met:
20456
20457 $MOZILLA_PLUGIN_PKG_ERRORS
20458
20459 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20460 installed software in a non-standard prefix.
20461
20462 Alternatively, you may set the environment variables MOZILLA_PLUGIN_CFLAGS
20463 and MOZILLA_PLUGIN_LIBS to avoid the need to call pkg-config.
20464 See the pkg-config man page for more details.
20465 " >&5
20466 echo "$as_me: error: Package requirements (mozilla-plugin >= $MOZILLA_PLUGIN_REQUIRED) were not met:
20467
20468 $MOZILLA_PLUGIN_PKG_ERRORS
20469
20470 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20471 installed software in a non-standard prefix.
20472
20473 Alternatively, you may set the environment variables MOZILLA_PLUGIN_CFLAGS
20474 and MOZILLA_PLUGIN_LIBS to avoid the need to call pkg-config.
20475 See the pkg-config man page for more details.
20476 " >&2;}
20477 { (exit 1); exit 1; }; }
20478 elif test $pkg_failed = untried; then
20479 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
20480 is in your PATH or set the PKG_CONFIG environment variable to the full
20481 path to pkg-config.
20482
20483 Alternatively, you may set the environment variables MOZILLA_PLUGIN_CFLAGS
20484 and MOZILLA_PLUGIN_LIBS to avoid the need to call pkg-config.
20485 See the pkg-config man page for more details.
20486
20487 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20488 See \`config.log' for more details." >&5
20489 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
20490 is in your PATH or set the PKG_CONFIG environment variable to the full
20491 path to pkg-config.
20492
20493 Alternatively, you may set the environment variables MOZILLA_PLUGIN_CFLAGS
20494 and MOZILLA_PLUGIN_LIBS to avoid the need to call pkg-config.
20495 See the pkg-config man page for more details.
20496
20497 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20498 See \`config.log' for more details." >&2;}
20499 { (exit 1); exit 1; }; }
20500 else
20501 MOZILLA_PLUGIN_CFLAGS=$pkg_cv_MOZILLA_PLUGIN_CFLAGS
20502 MOZILLA_PLUGIN_LIBS=$pkg_cv_MOZILLA_PLUGIN_LIBS
20503 { echo "$as_me:$LINENO: result: yes" >&5
20504 echo "${ECHO_T}yes" >&6; }
20505 :
20506 fi
20507 FIREFOX_PLUGIN_CFLAGS="$MOZILLA_PLUGIN_CFLAGS"
20508 FIREFOX_PLUGIN_LIBS="$MOZILLA_PLUGIN_LIBS"
20509
20510 elif test $pkg_failed = untried; then
20511
20512
20513 pkg_failed=no
20514 { echo "$as_me:$LINENO: checking for MOZILLA_PLUGIN" >&5
20515 echo $ECHO_N "checking for MOZILLA_PLUGIN... $ECHO_C" >&6; }
20516
20517 if test -n "$PKG_CONFIG"; then
20518 if test -n "$MOZILLA_PLUGIN_CFLAGS"; then
20519 pkg_cv_MOZILLA_PLUGIN_CFLAGS="$MOZILLA_PLUGIN_CFLAGS"
20520 else
20521 if test -n "$PKG_CONFIG" && \
20522 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"mozilla-plugin >= \$MOZILLA_PLUGIN_REQUIRED\"") >&5
20523 ($PKG_CONFIG --exists --print-errors "mozilla-plugin >= $MOZILLA_PLUGIN_REQUIRED") 2>&5
20524 ac_status=$?
20525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20526 (exit $ac_status); }; then
20527 pkg_cv_MOZILLA_PLUGIN_CFLAGS=`$PKG_CONFIG --cflags "mozilla-plugin >= $MOZILLA_PLUGIN_REQUIRED" 2>/dev/null`
20528 else
20529 pkg_failed=yes
20530 fi
20531 fi
20532 else
20533 pkg_failed=untried
20534 fi
20535 if test -n "$PKG_CONFIG"; then
20536 if test -n "$MOZILLA_PLUGIN_LIBS"; then
20537 pkg_cv_MOZILLA_PLUGIN_LIBS="$MOZILLA_PLUGIN_LIBS"
20538 else
20539 if test -n "$PKG_CONFIG" && \
20540 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"mozilla-plugin >= \$MOZILLA_PLUGIN_REQUIRED\"") >&5
20541 ($PKG_CONFIG --exists --print-errors "mozilla-plugin >= $MOZILLA_PLUGIN_REQUIRED") 2>&5
20542 ac_status=$?
20543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544 (exit $ac_status); }; then
20545 pkg_cv_MOZILLA_PLUGIN_LIBS=`$PKG_CONFIG --libs "mozilla-plugin >= $MOZILLA_PLUGIN_REQUIRED" 2>/dev/null`
20546 else
20547 pkg_failed=yes
20548 fi
20549 fi
20550 else
20551 pkg_failed=untried
20552 fi
20553
20554
20555
20556 if test $pkg_failed = yes; then
20557
20558 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20559 _pkg_short_errors_supported=yes
20560 else
20561 _pkg_short_errors_supported=no
20562 fi
20563 if test $_pkg_short_errors_supported = yes; then
20564 MOZILLA_PLUGIN_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "mozilla-plugin >= $MOZILLA_PLUGIN_REQUIRED"`
20565 else
20566 MOZILLA_PLUGIN_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-plugin >= $MOZILLA_PLUGIN_REQUIRED"`
20567 fi
20568 # Put the nasty error message in config.log where it belongs
20569 echo "$MOZILLA_PLUGIN_PKG_ERRORS" >&5
20570
20571 { { echo "$as_me:$LINENO: error: Package requirements (mozilla-plugin >= $MOZILLA_PLUGIN_REQUIRED) were not met:
20572
20573 $MOZILLA_PLUGIN_PKG_ERRORS
20574
20575 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20576 installed software in a non-standard prefix.
20577
20578 Alternatively, you may set the environment variables MOZILLA_PLUGIN_CFLAGS
20579 and MOZILLA_PLUGIN_LIBS to avoid the need to call pkg-config.
20580 See the pkg-config man page for more details.
20581 " >&5
20582 echo "$as_me: error: Package requirements (mozilla-plugin >= $MOZILLA_PLUGIN_REQUIRED) were not met:
20583
20584 $MOZILLA_PLUGIN_PKG_ERRORS
20585
20586 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20587 installed software in a non-standard prefix.
20588
20589 Alternatively, you may set the environment variables MOZILLA_PLUGIN_CFLAGS
20590 and MOZILLA_PLUGIN_LIBS to avoid the need to call pkg-config.
20591 See the pkg-config man page for more details.
20592 " >&2;}
20593 { (exit 1); exit 1; }; }
20594 elif test $pkg_failed = untried; then
20595 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
20596 is in your PATH or set the PKG_CONFIG environment variable to the full
20597 path to pkg-config.
20598
20599 Alternatively, you may set the environment variables MOZILLA_PLUGIN_CFLAGS
20600 and MOZILLA_PLUGIN_LIBS to avoid the need to call pkg-config.
20601 See the pkg-config man page for more details.
20602
20603 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20604 See \`config.log' for more details." >&5
20605 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
20606 is in your PATH or set the PKG_CONFIG environment variable to the full
20607 path to pkg-config.
20608
20609 Alternatively, you may set the environment variables MOZILLA_PLUGIN_CFLAGS
20610 and MOZILLA_PLUGIN_LIBS to avoid the need to call pkg-config.
20611 See the pkg-config man page for more details.
20612
20613 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20614 See \`config.log' for more details." >&2;}
20615 { (exit 1); exit 1; }; }
20616 else
20617 MOZILLA_PLUGIN_CFLAGS=$pkg_cv_MOZILLA_PLUGIN_CFLAGS
20618 MOZILLA_PLUGIN_LIBS=$pkg_cv_MOZILLA_PLUGIN_LIBS
20619 { echo "$as_me:$LINENO: result: yes" >&5
20620 echo "${ECHO_T}yes" >&6; }
20621 :
20622 fi
20623 FIREFOX_PLUGIN_CFLAGS="$MOZILLA_PLUGIN_CFLAGS"
20624 FIREFOX_PLUGIN_LIBS="$MOZILLA_PLUGIN_LIBS"
20625
20626 else
20627 FIREFOX_PLUGIN_CFLAGS=$pkg_cv_FIREFOX_PLUGIN_CFLAGS
20628 FIREFOX_PLUGIN_LIBS=$pkg_cv_FIREFOX_PLUGIN_LIBS
20629 { echo "$as_me:$LINENO: result: yes" >&5
20630 echo "${ECHO_T}yes" >&6; }
20631 :
20632 fi
20633
20634
20635 fi
20636 if test "x$enable_plugin" = "xyes"; then
20637 ENABLE_PLUGIN_TRUE=
20638 ENABLE_PLUGIN_FALSE='#'
20639 else
20640 ENABLE_PLUGIN_TRUE='#'
20641 ENABLE_PLUGIN_FALSE=
20642 fi
20643
20644
20645 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile plugin/Makefile virt-viewer.spec"
20646
353420647 cat >confcache <<\_ACEOF
353520648 # This file is a shell script that caches the results of configure
353620649 # tests run on this system so they can be shared between configure
354920662
355020663 # The following way of writing the cache mishandles newlines in values,
355120664 # but we know of no workaround that is simple, portable, and efficient.
3552 # So, don't put newlines in cache variables' values.
20665 # So, we kill variables containing newlines.
355320666 # Ultrix sh set writes to stderr and can't be redirected directly,
355420667 # and sets the high bit in the cache file unless we assign to the vars.
3555 {
20668 (
20669 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20670 eval ac_val=\$$ac_var
20671 case $ac_val in #(
20672 *${as_nl}*)
20673 case $ac_var in #(
20674 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20675 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20676 esac
20677 case $ac_var in #(
20678 _ | IFS | as_nl) ;; #(
20679 *) $as_unset $ac_var ;;
20680 esac ;;
20681 esac
20682 done
20683
355620684 (set) 2>&1 |
3557 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3558 *ac_space=\ *)
20685 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20686 *${as_nl}ac_space=\ *)
355920687 # `set' does not quote correctly, so add quotes (double-quote
356020688 # substitution turns \\\\ into \\, and sed turns \\ into \).
356120689 sed -n \
356220690 "s/'/'\\\\''/g;
356320691 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3564 ;;
20692 ;; #(
356520693 *)
356620694 # `set' quotes correctly as required by POSIX, so do not add quotes.
3567 sed -n \
3568 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3569 ;;
3570 esac;
3571 } |
20695 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20696 ;;
20697 esac |
20698 sort
20699 ) |
357220700 sed '
20701 /^ac_cv_env_/b end
357320702 t clear
3574 : clear
20703 :clear
357520704 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
357620705 t end
3577 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3578 : end' >>confcache
3579 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3580 if test -w $cache_file; then
3581 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20706 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20707 :end' >>confcache
20708 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20709 if test -w "$cache_file"; then
20710 test "x$cache_file" != "x/dev/null" &&
20711 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20712 echo "$as_me: updating cache $cache_file" >&6;}
358220713 cat confcache >$cache_file
358320714 else
3584 echo "not updating unwritable cache $cache_file"
20715 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20716 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
358520717 fi
358620718 fi
358720719 rm -f confcache
359020722 # Let make expand exec_prefix.
359120723 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
359220724
3593 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3594 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3595 # trailing colons and then remove the whole line if VPATH becomes empty
3596 # (actually we leave an empty line to preserve line numbers).
3597 if test "x$srcdir" = x.; then
3598 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3599 s/:*\$(srcdir):*/:/;
3600 s/:*\${srcdir}:*/:/;
3601 s/:*@srcdir@:*/:/;
3602 s/^\([^=]*=[ ]*\):*/\1/;
3603 s/:*$//;
3604 s/^[^=]*=[ ]*$//;
3605 }'
3606 fi
3607
3608 # Transform confdefs.h into DEFS.
3609 # Protect against shell expansion while executing Makefile rules.
3610 # Protect against Makefile macro expansion.
3611 #
3612 # If the first sed substitution is executed (which looks for macros that
3613 # take arguments), then we branch to the quote section. Otherwise,
3614 # look for a macro that doesn't take arguments.
3615 cat >confdef2opt.sed <<\_ACEOF
3616 t clear
3617 : clear
3618 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
3619 t quote
3620 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
3621 t quote
3622 d
3623 : quote
3624 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
3625 s,\[,\\&,g
3626 s,\],\\&,g
3627 s,\$,$$,g
3628 p
3629 _ACEOF
3630 # We use echo to avoid assuming a particular line-breaking character.
3631 # The extra dot is to prevent the shell from consuming trailing
3632 # line-breaks from the sub-command output. A line-break within
3633 # single-quotes doesn't work because, if this script is created in a
3634 # platform that uses two characters for line-breaks (e.g., DOS), tr
3635 # would break.
3636 ac_LF_and_DOT=`echo; echo .`
3637 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
3638 rm -f confdef2opt.sed
3639
20725 DEFS=-DHAVE_CONFIG_H
364020726
364120727 ac_libobjs=
364220728 ac_ltlibobjs=
364320729 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
364420730 # 1. Remove the extension, and $U if already installed.
3645 ac_i=`echo "$ac_i" |
3646 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3647 # 2. Add them.
3648 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3649 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20731 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20732 ac_i=`echo "$ac_i" | sed "$ac_script"`
20733 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20734 # will be set to the directory where LIBOBJS objects are built.
20735 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20736 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
365020737 done
365120738 LIBOBJS=$ac_libobjs
365220739
366420751 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
366520752 Usually this means the macro was only invoked conditionally." >&5
366620753 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20754 Usually this means the macro was only invoked conditionally." >&2;}
20755 { (exit 1); exit 1; }; }
20756 fi
20757 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20758 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20759 Usually this means the macro was only invoked conditionally." >&5
20760 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20761 Usually this means the macro was only invoked conditionally." >&2;}
20762 { (exit 1); exit 1; }; }
20763 fi
20764 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
20765 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
20766 Usually this means the macro was only invoked conditionally." >&5
20767 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
366720768 Usually this means the macro was only invoked conditionally." >&2;}
366820769 { (exit 1); exit 1; }; }
366920770 fi
369120792 ## M4sh Initialization. ##
369220793 ## --------------------- ##
369320794
3694 # Be Bourne compatible
20795 # Be more Bourne compatible
20796 DUALCASE=1; export DUALCASE # for MKS sh
369520797 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
369620798 emulate sh
369720799 NULLCMD=:
369820800 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
369920801 # is contrary to our usage. Disable this feature.
370020802 alias -g '${1+"$@"}'='"$@"'
3701 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3702 set -o posix
3703 fi
3704 DUALCASE=1; export DUALCASE # for MKS sh
3705
3706 # Support unset when possible.
3707 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3708 as_unset=unset
3709 else
3710 as_unset=false
3711 fi
3712
3713
3714 # Work around bugs in pre-3.0 UWIN ksh.
3715 $as_unset ENV MAIL MAILPATH
3716 PS1='$ '
3717 PS2='> '
3718 PS4='+ '
3719
3720 # NLS nuisances.
3721 for as_var in \
3722 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3723 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3724 LC_TELEPHONE LC_TIME
3725 do
3726 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3727 eval $as_var=C; export $as_var
3728 else
3729 $as_unset $as_var
3730 fi
3731 done
3732
3733 # Required to use basename.
3734 if expr a : '\(a\)' >/dev/null 2>&1; then
3735 as_expr=expr
3736 else
3737 as_expr=false
3738 fi
3739
3740 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3741 as_basename=basename
3742 else
3743 as_basename=false
3744 fi
3745
3746
3747 # Name of the executable.
3748 as_me=`$as_basename "$0" ||
3749 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3750 X"$0" : 'X\(//\)$' \| \
3751 X"$0" : 'X\(/\)$' \| \
3752 . : '\(.\)' 2>/dev/null ||
3753 echo X/"$0" |
3754 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3755 /^X\/\(\/\/\)$/{ s//\1/; q; }
3756 /^X\/\(\/\).*/{ s//\1/; q; }
3757 s/.*/./; q'`
3758
3759
3760 # PATH needs CR, and LINENO needs CR and PATH.
20803 setopt NO_GLOB_SUBST
20804 else
20805 case `(set -o) 2>/dev/null` in
20806 *posix*) set -o posix ;;
20807 esac
20808
20809 fi
20810
20811
20812
20813
20814 # PATH needs CR
376120815 # Avoid depending upon Character Ranges.
376220816 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
376320817 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
377820832 rm -f conf$$.sh
377920833 fi
378020834
3781
3782 as_lineno_1=$LINENO
3783 as_lineno_2=$LINENO
3784 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3785 test "x$as_lineno_1" != "x$as_lineno_2" &&
3786 test "x$as_lineno_3" = "x$as_lineno_2" || {
3787 # Find who we are. Look in the path if we contain no path at all
3788 # relative or not.
3789 case $0 in
3790 *[\\/]* ) as_myself=$0 ;;
3791 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20835 # Support unset when possible.
20836 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20837 as_unset=unset
20838 else
20839 as_unset=false
20840 fi
20841
20842
20843 # IFS
20844 # We need space, tab and new line, in precisely that order. Quoting is
20845 # there to prevent editors from complaining about space-tab.
20846 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20847 # splitting by setting IFS to empty value.)
20848 as_nl='
20849 '
20850 IFS=" "" $as_nl"
20851
20852 # Find who we are. Look in the path if we contain no directory separator.
20853 case $0 in
20854 *[\\/]* ) as_myself=$0 ;;
20855 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
379220856 for as_dir in $PATH
379320857 do
379420858 IFS=$as_save_IFS
379520859 test -z "$as_dir" && as_dir=.
379620860 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
379720861 done
3798
3799 ;;
3800 esac
3801 # We did not find ourselves, most probably we were run as `sh COMMAND'
3802 # in which case we are not to be found in the path.
3803 if test "x$as_myself" = x; then
3804 as_myself=$0
20862 IFS=$as_save_IFS
20863
20864 ;;
20865 esac
20866 # We did not find ourselves, most probably we were run as `sh COMMAND'
20867 # in which case we are not to be found in the path.
20868 if test "x$as_myself" = x; then
20869 as_myself=$0
20870 fi
20871 if test ! -f "$as_myself"; then
20872 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20873 { (exit 1); exit 1; }
20874 fi
20875
20876 # Work around bugs in pre-3.0 UWIN ksh.
20877 for as_var in ENV MAIL MAILPATH
20878 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20879 done
20880 PS1='$ '
20881 PS2='> '
20882 PS4='+ '
20883
20884 # NLS nuisances.
20885 for as_var in \
20886 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20887 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20888 LC_TELEPHONE LC_TIME
20889 do
20890 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20891 eval $as_var=C; export $as_var
20892 else
20893 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
380520894 fi
3806 if test ! -f "$as_myself"; then
3807 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3808 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3809 { (exit 1); exit 1; }; }
3810 fi
3811 case $CONFIG_SHELL in
3812 '')
3813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3815 do
3816 IFS=$as_save_IFS
3817 test -z "$as_dir" && as_dir=.
3818 for as_base in sh bash ksh sh5; do
3819 case $as_dir in
3820 /*)
3821 if ("$as_dir/$as_base" -c '
20895 done
20896
20897 # Required to use basename.
20898 if expr a : '\(a\)' >/dev/null 2>&1 &&
20899 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20900 as_expr=expr
20901 else
20902 as_expr=false
20903 fi
20904
20905 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20906 as_basename=basename
20907 else
20908 as_basename=false
20909 fi
20910
20911
20912 # Name of the executable.
20913 as_me=`$as_basename -- "$0" ||
20914 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20915 X"$0" : 'X\(//\)$' \| \
20916 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20917 echo X/"$0" |
20918 sed '/^.*\/\([^/][^/]*\)\/*$/{
20919 s//\1/
20920 q
20921 }
20922 /^X\/\(\/\/\)$/{
20923 s//\1/
20924 q
20925 }
20926 /^X\/\(\/\).*/{
20927 s//\1/
20928 q
20929 }
20930 s/.*/./; q'`
20931
20932 # CDPATH.
20933 $as_unset CDPATH
20934
20935
20936
382220937 as_lineno_1=$LINENO
382320938 as_lineno_2=$LINENO
3824 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
382520939 test "x$as_lineno_1" != "x$as_lineno_2" &&
3826 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
3827 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3828 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3829 CONFIG_SHELL=$as_dir/$as_base
3830 export CONFIG_SHELL
3831 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3832 fi;;
3833 esac
3834 done
3835 done
3836 ;;
3837 esac
20940 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
383820941
383920942 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
384020943 # uniformly replaced by the line number. The first 'sed' inserts a
3841 # line-number line before each line; the second 'sed' does the real
3842 # work. The second script uses 'N' to pair each line-number line
3843 # with the numbered line, and appends trailing '-' during
3844 # substitution so that $LINENO is not a special case at line end.
20944 # line-number line after each line using $LINENO; the second 'sed'
20945 # does the real work. The second script uses 'N' to pair each
20946 # line-number line with the line containing $LINENO, and appends
20947 # trailing '-' during substitution so that $LINENO is not a special
20948 # case at line end.
384520949 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3846 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
3847 sed '=' <$as_myself |
20950 # scripts with optimization help from Paolo Bonzini. Blame Lee
20951 # E. McMahon (1931-1989) for sed's syntax. :-)
20952 sed -n '
20953 p
20954 /[$]LINENO/=
20955 ' <$as_myself |
384820956 sed '
20957 s/[$]LINENO.*/&-/
20958 t lineno
20959 b
20960 :lineno
384920961 N
3850 s,$,-,
3851 : loop
3852 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20962 :loop
20963 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
385320964 t loop
3854 s,-$,,
3855 s,^['$as_cr_digits']*\n,,
20965 s/-\n.*//
385620966 ' >$as_me.lineno &&
3857 chmod +x $as_me.lineno ||
3858 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3859 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20967 chmod +x "$as_me.lineno" ||
20968 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
386020969 { (exit 1); exit 1; }; }
386120970
386220971 # Don't try to exec as it changes $[0], causing all sort of problems
386320972 # (the dirname of $[0] is not the place where we might find the
3864 # original and so on. Autoconf is especially sensible to this).
3865 . ./$as_me.lineno
20973 # original and so on. Autoconf is especially sensitive to this).
20974 . "./$as_me.lineno"
386620975 # Exit status is that of the last command.
386720976 exit
386820977 }
386920978
387020979
3871 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3872 *c*,-n*) ECHO_N= ECHO_C='
3873 ' ECHO_T=' ' ;;
3874 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3875 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20980 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20981 as_dirname=dirname
20982 else
20983 as_dirname=false
20984 fi
20985
20986 ECHO_C= ECHO_N= ECHO_T=
20987 case `echo -n x` in
20988 -n*)
20989 case `echo 'x\c'` in
20990 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20991 *) ECHO_C='\c';;
20992 esac;;
20993 *)
20994 ECHO_N='-n';;
387620995 esac
387720996
3878 if expr a : '\(a\)' >/dev/null 2>&1; then
20997 if expr a : '\(a\)' >/dev/null 2>&1 &&
20998 test "X`expr 00001 : '.*\(...\)'`" = X001; then
387920999 as_expr=expr
388021000 else
388121001 as_expr=false
388221002 fi
388321003
388421004 rm -f conf$$ conf$$.exe conf$$.file
21005 if test -d conf$$.dir; then
21006 rm -f conf$$.dir/conf$$.file
21007 else
21008 rm -f conf$$.dir
21009 mkdir conf$$.dir
21010 fi
388521011 echo >conf$$.file
388621012 if ln -s conf$$.file conf$$ 2>/dev/null; then
3887 # We could just check for DJGPP; but this test a) works b) is more generic
3888 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3889 if test -f conf$$.exe; then
3890 # Don't use ln at all; we don't have any links
21013 as_ln_s='ln -s'
21014 # ... but there are two gotchas:
21015 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21016 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21017 # In both cases, we have to default to `cp -p'.
21018 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
389121019 as_ln_s='cp -p'
3892 else
3893 as_ln_s='ln -s'
3894 fi
389521020 elif ln conf$$.file conf$$ 2>/dev/null; then
389621021 as_ln_s=ln
389721022 else
389821023 as_ln_s='cp -p'
389921024 fi
3900 rm -f conf$$ conf$$.exe conf$$.file
21025 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21026 rmdir conf$$.dir 2>/dev/null
390121027
390221028 if mkdir -p . 2>/dev/null; then
390321029 as_mkdir_p=:
390621032 as_mkdir_p=false
390721033 fi
390821034
3909 as_executable_p="test -f"
21035 if test -x / >/dev/null 2>&1; then
21036 as_test_x='test -x'
21037 else
21038 if ls -dL / >/dev/null 2>&1; then
21039 as_ls_L_option=L
21040 else
21041 as_ls_L_option=
21042 fi
21043 as_test_x='
21044 eval sh -c '\''
21045 if test -d "$1"; then
21046 test -d "$1/.";
21047 else
21048 case $1 in
21049 -*)set "./$1";;
21050 esac;
21051 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21052 ???[sx]*):;;*)false;;esac;fi
21053 '\'' sh
21054 '
21055 fi
21056 as_executable_p=$as_test_x
391021057
391121058 # Sed expression to map a string onto a valid CPP name.
391221059 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
391521062 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
391621063
391721064
3918 # IFS
3919 # We need space, tab and new line, in precisely that order.
3920 as_nl='
3921 '
3922 IFS=" $as_nl"
3923
3924 # CDPATH.
3925 $as_unset CDPATH
3926
392721065 exec 6>&1
392821066
3929 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21067 # Save the log message, to keep $[0] and so on meaningful, and to
393021068 # report actual input values of CONFIG_FILES etc. instead of their
3931 # values after options handling. Logging --version etc. is OK.
3932 exec 5>>config.log
3933 {
3934 echo
3935 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3936 ## Running $as_me. ##
3937 _ASBOX
3938 } >&5
3939 cat >&5 <<_CSEOF
3940
3941 This file was extended by $as_me, which was
3942 generated by GNU Autoconf 2.59. Invocation command line was
21069 # values after options handling.
21070 ac_log="
21071 This file was extended by virt-viewer $as_me 0.0.3, which was
21072 generated by GNU Autoconf 2.61. Invocation command line was
394321073
394421074 CONFIG_FILES = $CONFIG_FILES
394521075 CONFIG_HEADERS = $CONFIG_HEADERS
394721077 CONFIG_COMMANDS = $CONFIG_COMMANDS
394821078 $ $0 $@
394921079
3950 _CSEOF
3951 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3952 echo >&5
21080 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21081 "
21082
395321083 _ACEOF
395421084
21085 cat >>$CONFIG_STATUS <<_ACEOF
395521086 # Files that config.status was made for.
3956 if test -n "$ac_config_files"; then
3957 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3958 fi
3959
3960 if test -n "$ac_config_headers"; then
3961 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3962 fi
3963
3964 if test -n "$ac_config_links"; then
3965 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3966 fi
3967
3968 if test -n "$ac_config_commands"; then
3969 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3970 fi
21087 config_files="$ac_config_files"
21088 config_headers="$ac_config_headers"
21089 config_commands="$ac_config_commands"
21090
21091 _ACEOF
397121092
397221093 cat >>$CONFIG_STATUS <<\_ACEOF
3973
397421094 ac_cs_usage="\
397521095 \`$as_me' instantiates files from templates according to the
397621096 current configuration.
397821098 Usage: $0 [OPTIONS] [FILE]...
397921099
398021100 -h, --help print this help, then exit
3981 -V, --version print version number, then exit
21101 -V, --version print version number and configuration settings, then exit
398221102 -q, --quiet do not print progress messages
398321103 -d, --debug don't remove temporary files
398421104 --recheck update $as_me by reconfiguring in the same conditions
398521105 --file=FILE[:TEMPLATE]
398621106 instantiate the configuration file FILE
21107 --header=FILE[:TEMPLATE]
21108 instantiate the configuration header FILE
398721109
398821110 Configuration files:
398921111 $config_files
399021112
21113 Configuration headers:
21114 $config_headers
21115
399121116 Configuration commands:
399221117 $config_commands
399321118
399421119 Report bugs to <bug-autoconf@gnu.org>."
21120
399521121 _ACEOF
3996
399721122 cat >>$CONFIG_STATUS <<_ACEOF
399821123 ac_cs_version="\\
3999 config.status
4000 configured by $0, generated by GNU Autoconf 2.59,
4001 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4002
4003 Copyright (C) 2003 Free Software Foundation, Inc.
21124 virt-viewer config.status 0.0.3
21125 configured by $0, generated by GNU Autoconf 2.61,
21126 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21127
21128 Copyright (C) 2006 Free Software Foundation, Inc.
400421129 This config.status script is free software; the Free Software Foundation
400521130 gives unlimited permission to copy, distribute and modify it."
4006 srcdir=$srcdir
4007 INSTALL="$INSTALL"
21131
21132 ac_pwd='$ac_pwd'
21133 srcdir='$srcdir'
21134 INSTALL='$INSTALL'
21135 MKDIR_P='$MKDIR_P'
400821136 _ACEOF
400921137
401021138 cat >>$CONFIG_STATUS <<\_ACEOF
401521143 do
401621144 case $1 in
401721145 --*=*)
4018 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4019 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21146 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21147 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
402021148 ac_shift=:
402121149 ;;
4022 -*)
21150 *)
402321151 ac_option=$1
402421152 ac_optarg=$2
402521153 ac_shift=shift
402621154 ;;
4027 *) # This is not an option, so the user has probably given explicit
4028 # arguments.
4029 ac_option=$1
4030 ac_need_defaults=false;;
403121155 esac
403221156
403321157 case $ac_option in
403421158 # Handling of the options.
4035 _ACEOF
4036 cat >>$CONFIG_STATUS <<\_ACEOF
403721159 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
403821160 ac_cs_recheck=: ;;
4039 --version | --vers* | -V )
4040 echo "$ac_cs_version"; exit 0 ;;
4041 --he | --h)
4042 # Conflict between --help and --header
4043 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4044 Try \`$0 --help' for more information." >&5
4045 echo "$as_me: error: ambiguous option: $1
4046 Try \`$0 --help' for more information." >&2;}
4047 { (exit 1); exit 1; }; };;
4048 --help | --hel | -h )
4049 echo "$ac_cs_usage"; exit 0 ;;
4050 --debug | --d* | -d )
21161 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21162 echo "$ac_cs_version"; exit ;;
21163 --debug | --debu | --deb | --de | --d | -d )
405121164 debug=: ;;
405221165 --file | --fil | --fi | --f )
405321166 $ac_shift
405721170 $ac_shift
405821171 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
405921172 ac_need_defaults=false;;
21173 --he | --h)
21174 # Conflict between --help and --header
21175 { echo "$as_me: error: ambiguous option: $1
21176 Try \`$0 --help' for more information." >&2
21177 { (exit 1); exit 1; }; };;
21178 --help | --hel | -h )
21179 echo "$ac_cs_usage"; exit ;;
406021180 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
406121181 | -silent | --silent | --silen | --sile | --sil | --si | --s)
406221182 ac_cs_silent=: ;;
406321183
406421184 # This is an error.
4065 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4066 Try \`$0 --help' for more information." >&5
4067 echo "$as_me: error: unrecognized option: $1
4068 Try \`$0 --help' for more information." >&2;}
21185 -*) { echo "$as_me: error: unrecognized option: $1
21186 Try \`$0 --help' for more information." >&2
406921187 { (exit 1); exit 1; }; } ;;
407021188
4071 *) ac_config_targets="$ac_config_targets $1" ;;
21189 *) ac_config_targets="$ac_config_targets $1"
21190 ac_need_defaults=false ;;
407221191
407321192 esac
407421193 shift
408421203 _ACEOF
408521204 cat >>$CONFIG_STATUS <<_ACEOF
408621205 if \$ac_cs_recheck; then
4087 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4088 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21206 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21207 CONFIG_SHELL=$SHELL
21208 export CONFIG_SHELL
21209 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
408921210 fi
409021211
409121212 _ACEOF
4092
21213 cat >>$CONFIG_STATUS <<\_ACEOF
21214 exec 5>>config.log
21215 {
21216 echo
21217 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21218 ## Running $as_me. ##
21219 _ASBOX
21220 echo "$ac_log"
21221 } >&5
21222
21223 _ACEOF
409321224 cat >>$CONFIG_STATUS <<_ACEOF
409421225 #
4095 # INIT-COMMANDS section.
21226 # INIT-COMMANDS
409621227 #
4097
409821228 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
409921229
410021230 _ACEOF
410121231
4102
4103
410421232 cat >>$CONFIG_STATUS <<\_ACEOF
21233
21234 # Handling of arguments.
410521235 for ac_config_target in $ac_config_targets
410621236 do
4107 case "$ac_config_target" in
4108 # Handling of arguments.
4109 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4110 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
4111 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
4112 "virt-viewer.spec" ) CONFIG_FILES="$CONFIG_FILES virt-viewer.spec" ;;
4113 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21237 case $ac_config_target in
21238 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21239 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21240 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21241 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21242 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21243 "plugin/Makefile") CONFIG_FILES="$CONFIG_FILES plugin/Makefile" ;;
21244 "virt-viewer.spec") CONFIG_FILES="$CONFIG_FILES virt-viewer.spec" ;;
21245
411421246 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
411521247 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
411621248 { (exit 1); exit 1; }; };;
411721249 esac
411821250 done
21251
411921252
412021253 # If the user did not use the arguments to specify the items to instantiate,
412121254 # then the envvar interface is used. Set only those that are not.
412321256 # bizarre bug on SunOS 4.1.3.
412421257 if $ac_need_defaults; then
412521258 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21259 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
412621260 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
412721261 fi
412821262
412921263 # Have a temporary directory for convenience. Make it in the build tree
4130 # simply because there is no reason to put it here, and in addition,
21264 # simply because there is no reason against having it here, and in addition,
413121265 # creating and moving files from /tmp can sometimes cause problems.
4132 # Create a temporary directory, and hook for its removal unless debugging.
21266 # Hook for its removal unless debugging.
21267 # Note that there is a small window in which the directory will not be cleaned:
21268 # after its creation but before its name has been assigned to `$tmp'.
413321269 $debug ||
413421270 {
4135 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21271 tmp=
21272 trap 'exit_status=$?
21273 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21274 ' 0
413621275 trap '{ (exit 1); exit 1; }' 1 2 13 15
413721276 }
4138
413921277 # Create a (secure) tmp directory for tmp files.
414021278
414121279 {
4142 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21280 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
414321281 test -n "$tmp" && test -d "$tmp"
414421282 } ||
414521283 {
4146 tmp=./confstat$$-$RANDOM
4147 (umask 077 && mkdir $tmp)
21284 tmp=./conf$$-$RANDOM
21285 (umask 077 && mkdir "$tmp")
414821286 } ||
414921287 {
415021288 echo "$me: cannot create a temporary directory in ." >&2
415121289 { (exit 1); exit 1; }
415221290 }
415321291
4154 _ACEOF
4155
4156 cat >>$CONFIG_STATUS <<_ACEOF
4157
415821292 #
4159 # CONFIG_FILES section.
21293 # Set up the sed scripts for CONFIG_FILES section.
416021294 #
416121295
416221296 # No need to generate the scripts if there are no CONFIG_FILES.
416321297 # This happens for instance when ./config.status config.h
4164 if test -n "\$CONFIG_FILES"; then
4165 # Protect against being on the right side of a sed subst in config.status.
4166 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4167 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4168 s,@SHELL@,$SHELL,;t t
4169 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4170 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4171 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4172 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4173 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4174 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4175 s,@exec_prefix@,$exec_prefix,;t t
4176 s,@prefix@,$prefix,;t t
4177 s,@program_transform_name@,$program_transform_name,;t t
4178 s,@bindir@,$bindir,;t t
4179 s,@sbindir@,$sbindir,;t t
4180 s,@libexecdir@,$libexecdir,;t t
4181 s,@datadir@,$datadir,;t t
4182 s,@sysconfdir@,$sysconfdir,;t t
4183 s,@sharedstatedir@,$sharedstatedir,;t t
4184 s,@localstatedir@,$localstatedir,;t t
4185 s,@libdir@,$libdir,;t t
4186 s,@includedir@,$includedir,;t t
4187 s,@oldincludedir@,$oldincludedir,;t t
4188 s,@infodir@,$infodir,;t t
4189 s,@mandir@,$mandir,;t t
4190 s,@build_alias@,$build_alias,;t t
4191 s,@host_alias@,$host_alias,;t t
4192 s,@target_alias@,$target_alias,;t t
4193 s,@DEFS@,$DEFS,;t t
4194 s,@ECHO_C@,$ECHO_C,;t t
4195 s,@ECHO_N@,$ECHO_N,;t t
4196 s,@ECHO_T@,$ECHO_T,;t t
4197 s,@LIBS@,$LIBS,;t t
4198 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4199 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4200 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4201 s,@CYGPATH_W@,$CYGPATH_W,;t t
4202 s,@PACKAGE@,$PACKAGE,;t t
4203 s,@VERSION@,$VERSION,;t t
4204 s,@ACLOCAL@,$ACLOCAL,;t t
4205 s,@AUTOCONF@,$AUTOCONF,;t t
4206 s,@AUTOMAKE@,$AUTOMAKE,;t t
4207 s,@AUTOHEADER@,$AUTOHEADER,;t t
4208 s,@MAKEINFO@,$MAKEINFO,;t t
4209 s,@install_sh@,$install_sh,;t t
4210 s,@STRIP@,$STRIP,;t t
4211 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
4212 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
4213 s,@mkdir_p@,$mkdir_p,;t t
4214 s,@AWK@,$AWK,;t t
4215 s,@SET_MAKE@,$SET_MAKE,;t t
4216 s,@am__leading_dot@,$am__leading_dot,;t t
4217 s,@AMTAR@,$AMTAR,;t t
4218 s,@am__tar@,$am__tar,;t t
4219 s,@am__untar@,$am__untar,;t t
4220 s,@CC@,$CC,;t t
4221 s,@CFLAGS@,$CFLAGS,;t t
4222 s,@LDFLAGS@,$LDFLAGS,;t t
4223 s,@CPPFLAGS@,$CPPFLAGS,;t t
4224 s,@ac_ct_CC@,$ac_ct_CC,;t t
4225 s,@EXEEXT@,$EXEEXT,;t t
4226 s,@OBJEXT@,$OBJEXT,;t t
4227 s,@DEPDIR@,$DEPDIR,;t t
4228 s,@am__include@,$am__include,;t t
4229 s,@am__quote@,$am__quote,;t t
4230 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
4231 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
4232 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
4233 s,@CCDEPMODE@,$CCDEPMODE,;t t
4234 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
4235 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
4236 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
4237 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
4238 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
4239 s,@LIBXML2_CFLAGS@,$LIBXML2_CFLAGS,;t t
4240 s,@LIBXML2_LIBS@,$LIBXML2_LIBS,;t t
4241 s,@LIBVIRT_CFLAGS@,$LIBVIRT_CFLAGS,;t t
4242 s,@LIBVIRT_LIBS@,$LIBVIRT_LIBS,;t t
4243 s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t
4244 s,@GTK2_LIBS@,$GTK2_LIBS,;t t
4245 s,@GTKVNC_CFLAGS@,$GTKVNC_CFLAGS,;t t
4246 s,@GTKVNC_LIBS@,$GTKVNC_LIBS,;t t
4247 s,@LIBOBJS@,$LIBOBJS,;t t
4248 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4249 CEOF
21298 if test -n "$CONFIG_FILES"; then
425021299
425121300 _ACEOF
425221301
4253 cat >>$CONFIG_STATUS <<\_ACEOF
4254 # Split the substitutions into bite-sized pieces for seds with
4255 # small command number limits, like on Digital OSF/1 and HP-UX.
4256 ac_max_sed_lines=48
4257 ac_sed_frag=1 # Number of current file.
4258 ac_beg=1 # First line for current file.
4259 ac_end=$ac_max_sed_lines # Line after last line for current file.
4260 ac_more_lines=:
4261 ac_sed_cmds=
4262 while $ac_more_lines; do
4263 if test $ac_beg -gt 1; then
4264 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4265 else
4266 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21302
21303
21304 ac_delim='%!_!# '
21305 for ac_last_try in false false false false false :; do
21306 cat >conf$$subs.sed <<_ACEOF
21307 SHELL!$SHELL$ac_delim
21308 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21309 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21310 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21311 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21312 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21313 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21314 exec_prefix!$exec_prefix$ac_delim
21315 prefix!$prefix$ac_delim
21316 program_transform_name!$program_transform_name$ac_delim
21317 bindir!$bindir$ac_delim
21318 sbindir!$sbindir$ac_delim
21319 libexecdir!$libexecdir$ac_delim
21320 datarootdir!$datarootdir$ac_delim
21321 datadir!$datadir$ac_delim
21322 sysconfdir!$sysconfdir$ac_delim
21323 sharedstatedir!$sharedstatedir$ac_delim
21324 localstatedir!$localstatedir$ac_delim
21325 includedir!$includedir$ac_delim
21326 oldincludedir!$oldincludedir$ac_delim
21327 docdir!$docdir$ac_delim
21328 infodir!$infodir$ac_delim
21329 htmldir!$htmldir$ac_delim
21330 dvidir!$dvidir$ac_delim
21331 pdfdir!$pdfdir$ac_delim
21332 psdir!$psdir$ac_delim
21333 libdir!$libdir$ac_delim
21334 localedir!$localedir$ac_delim
21335 mandir!$mandir$ac_delim
21336 DEFS!$DEFS$ac_delim
21337 ECHO_C!$ECHO_C$ac_delim
21338 ECHO_N!$ECHO_N$ac_delim
21339 ECHO_T!$ECHO_T$ac_delim
21340 LIBS!$LIBS$ac_delim
21341 build_alias!$build_alias$ac_delim
21342 host_alias!$host_alias$ac_delim
21343 target_alias!$target_alias$ac_delim
21344 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21345 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21346 INSTALL_DATA!$INSTALL_DATA$ac_delim
21347 am__isrc!$am__isrc$ac_delim
21348 CYGPATH_W!$CYGPATH_W$ac_delim
21349 PACKAGE!$PACKAGE$ac_delim
21350 VERSION!$VERSION$ac_delim
21351 ACLOCAL!$ACLOCAL$ac_delim
21352 AUTOCONF!$AUTOCONF$ac_delim
21353 AUTOMAKE!$AUTOMAKE$ac_delim
21354 AUTOHEADER!$AUTOHEADER$ac_delim
21355 MAKEINFO!$MAKEINFO$ac_delim
21356 install_sh!$install_sh$ac_delim
21357 STRIP!$STRIP$ac_delim
21358 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21359 mkdir_p!$mkdir_p$ac_delim
21360 AWK!$AWK$ac_delim
21361 SET_MAKE!$SET_MAKE$ac_delim
21362 am__leading_dot!$am__leading_dot$ac_delim
21363 AMTAR!$AMTAR$ac_delim
21364 am__tar!$am__tar$ac_delim
21365 am__untar!$am__untar$ac_delim
21366 build!$build$ac_delim
21367 build_cpu!$build_cpu$ac_delim
21368 build_vendor!$build_vendor$ac_delim
21369 build_os!$build_os$ac_delim
21370 host!$host$ac_delim
21371 host_cpu!$host_cpu$ac_delim
21372 host_vendor!$host_vendor$ac_delim
21373 host_os!$host_os$ac_delim
21374 CC!$CC$ac_delim
21375 CFLAGS!$CFLAGS$ac_delim
21376 LDFLAGS!$LDFLAGS$ac_delim
21377 CPPFLAGS!$CPPFLAGS$ac_delim
21378 ac_ct_CC!$ac_ct_CC$ac_delim
21379 EXEEXT!$EXEEXT$ac_delim
21380 OBJEXT!$OBJEXT$ac_delim
21381 DEPDIR!$DEPDIR$ac_delim
21382 am__include!$am__include$ac_delim
21383 am__quote!$am__quote$ac_delim
21384 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21385 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21386 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21387 CCDEPMODE!$CCDEPMODE$ac_delim
21388 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21389 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21390 SED!$SED$ac_delim
21391 GREP!$GREP$ac_delim
21392 EGREP!$EGREP$ac_delim
21393 LN_S!$LN_S$ac_delim
21394 ECHO!$ECHO$ac_delim
21395 AR!$AR$ac_delim
21396 RANLIB!$RANLIB$ac_delim
21397 CPP!$CPP$ac_delim
21398 CXX!$CXX$ac_delim
21399 CXXFLAGS!$CXXFLAGS$ac_delim
21400 ac_ct_CXX!$ac_ct_CXX$ac_delim
21401 CXXDEPMODE!$CXXDEPMODE$ac_delim
21402 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21403 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21404 _ACEOF
21405
21406 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21407 break
21408 elif $ac_last_try; then
21409 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21410 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21411 { (exit 1); exit 1; }; }
21412 else
21413 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21414 fi
21415 done
21416
21417 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21418 if test -n "$ac_eof"; then
21419 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21420 ac_eof=`expr $ac_eof + 1`
21421 fi
21422
21423 cat >>$CONFIG_STATUS <<_ACEOF
21424 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21425 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21426 _ACEOF
21427 sed '
21428 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21429 s/^/s,@/; s/!/@,|#_!!_#|/
21430 :n
21431 t n
21432 s/'"$ac_delim"'$/,g/; t
21433 s/$/\\/; p
21434 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21435 ' >>$CONFIG_STATUS <conf$$subs.sed
21436 rm -f conf$$subs.sed
21437 cat >>$CONFIG_STATUS <<_ACEOF
21438 CEOF$ac_eof
21439 _ACEOF
21440
21441
21442 ac_delim='%!_!# '
21443 for ac_last_try in false false false false false :; do
21444 cat >conf$$subs.sed <<_ACEOF
21445 CXXCPP!$CXXCPP$ac_delim
21446 F77!$F77$ac_delim
21447 FFLAGS!$FFLAGS$ac_delim
21448 ac_ct_F77!$ac_ct_F77$ac_delim
21449 LIBTOOL!$LIBTOOL$ac_delim
21450 WARN_CFLAGS!$WARN_CFLAGS$ac_delim
21451 PKG_CONFIG!$PKG_CONFIG$ac_delim
21452 LIBXML2_CFLAGS!$LIBXML2_CFLAGS$ac_delim
21453 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
21454 LIBVIRT_CFLAGS!$LIBVIRT_CFLAGS$ac_delim
21455 LIBVIRT_LIBS!$LIBVIRT_LIBS$ac_delim
21456 GTK2_CFLAGS!$GTK2_CFLAGS$ac_delim
21457 GTK2_LIBS!$GTK2_LIBS$ac_delim
21458 GTKVNC_CFLAGS!$GTKVNC_CFLAGS$ac_delim
21459 GTKVNC_LIBS!$GTKVNC_LIBS$ac_delim
21460 NSPR_CFLAGS!$NSPR_CFLAGS$ac_delim
21461 NSPR_LIBS!$NSPR_LIBS$ac_delim
21462 FIREFOX_PLUGIN_CFLAGS!$FIREFOX_PLUGIN_CFLAGS$ac_delim
21463 FIREFOX_PLUGIN_LIBS!$FIREFOX_PLUGIN_LIBS$ac_delim
21464 MOZILLA_PLUGIN_CFLAGS!$MOZILLA_PLUGIN_CFLAGS$ac_delim
21465 MOZILLA_PLUGIN_LIBS!$MOZILLA_PLUGIN_LIBS$ac_delim
21466 ENABLE_PLUGIN_TRUE!$ENABLE_PLUGIN_TRUE$ac_delim
21467 ENABLE_PLUGIN_FALSE!$ENABLE_PLUGIN_FALSE$ac_delim
21468 LIBOBJS!$LIBOBJS$ac_delim
21469 LTLIBOBJS!$LTLIBOBJS$ac_delim
21470 _ACEOF
21471
21472 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 25; then
21473 break
21474 elif $ac_last_try; then
21475 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21476 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21477 { (exit 1); exit 1; }; }
21478 else
21479 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21480 fi
21481 done
21482
21483 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21484 if test -n "$ac_eof"; then
21485 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21486 ac_eof=`expr $ac_eof + 1`
21487 fi
21488
21489 cat >>$CONFIG_STATUS <<_ACEOF
21490 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21491 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21492 _ACEOF
21493 sed '
21494 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21495 s/^/s,@/; s/!/@,|#_!!_#|/
21496 :n
21497 t n
21498 s/'"$ac_delim"'$/,g/; t
21499 s/$/\\/; p
21500 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21501 ' >>$CONFIG_STATUS <conf$$subs.sed
21502 rm -f conf$$subs.sed
21503 cat >>$CONFIG_STATUS <<_ACEOF
21504 :end
21505 s/|#_!!_#|//g
21506 CEOF$ac_eof
21507 _ACEOF
21508
21509
21510 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21511 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21512 # trailing colons and then remove the whole line if VPATH becomes empty
21513 # (actually we leave an empty line to preserve line numbers).
21514 if test "x$srcdir" = x.; then
21515 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21516 s/:*\$(srcdir):*/:/
21517 s/:*\${srcdir}:*/:/
21518 s/:*@srcdir@:*/:/
21519 s/^\([^=]*=[ ]*\):*/\1/
21520 s/:*$//
21521 s/^[^=]*=[ ]*$//
21522 }'
21523 fi
21524
21525 cat >>$CONFIG_STATUS <<\_ACEOF
21526 fi # test -n "$CONFIG_FILES"
21527
21528
21529 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21530 do
21531 case $ac_tag in
21532 :[FHLC]) ac_mode=$ac_tag; continue;;
21533 esac
21534 case $ac_mode$ac_tag in
21535 :[FHL]*:*);;
21536 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21537 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21538 { (exit 1); exit 1; }; };;
21539 :[FH]-) ac_tag=-:-;;
21540 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21541 esac
21542 ac_save_IFS=$IFS
21543 IFS=:
21544 set x $ac_tag
21545 IFS=$ac_save_IFS
21546 shift
21547 ac_file=$1
21548 shift
21549
21550 case $ac_mode in
21551 :L) ac_source=$1;;
21552 :[FH])
21553 ac_file_inputs=
21554 for ac_f
21555 do
21556 case $ac_f in
21557 -) ac_f="$tmp/stdin";;
21558 *) # Look for the file first in the build tree, then in the source tree
21559 # (if the path is not absolute). The absolute path cannot be DOS-style,
21560 # because $ac_f cannot contain `:'.
21561 test -f "$ac_f" ||
21562 case $ac_f in
21563 [\\/$]*) false;;
21564 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21565 esac ||
21566 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21567 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21568 { (exit 1); exit 1; }; };;
21569 esac
21570 ac_file_inputs="$ac_file_inputs $ac_f"
21571 done
21572
21573 # Let's still pretend it is `configure' which instantiates (i.e., don't
21574 # use $as_me), people would be surprised to read:
21575 # /* config.h. Generated by config.status. */
21576 configure_input="Generated from "`IFS=:
21577 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21578 if test x"$ac_file" != x-; then
21579 configure_input="$ac_file. $configure_input"
21580 { echo "$as_me:$LINENO: creating $ac_file" >&5
21581 echo "$as_me: creating $ac_file" >&6;}
426721582 fi
4268 if test ! -s $tmp/subs.frag; then
4269 ac_more_lines=false
4270 else
4271 # The purpose of the label and of the branching condition is to
4272 # speed up the sed processing (if there are no `@' at all, there
4273 # is no need to browse any of the substitutions).
4274 # These are the two extra sed commands mentioned above.
4275 (echo ':t
4276 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4277 if test -z "$ac_sed_cmds"; then
4278 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4279 else
4280 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4281 fi
4282 ac_sed_frag=`expr $ac_sed_frag + 1`
4283 ac_beg=$ac_end
4284 ac_end=`expr $ac_end + $ac_max_sed_lines`
4285 fi
4286 done
4287 if test -z "$ac_sed_cmds"; then
4288 ac_sed_cmds=cat
4289 fi
4290 fi # test -n "$CONFIG_FILES"
4291
4292 _ACEOF
4293 cat >>$CONFIG_STATUS <<\_ACEOF
4294 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4295 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4296 case $ac_file in
4297 - | *:- | *:-:* ) # input from stdin
4298 cat >$tmp/stdin
4299 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4300 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4301 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4302 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4303 * ) ac_file_in=$ac_file.in ;;
21583
21584 case $ac_tag in
21585 *:-:* | *:-) cat >"$tmp/stdin";;
21586 esac
21587 ;;
430421588 esac
430521589
4306 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4307 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21590 ac_dir=`$as_dirname -- "$ac_file" ||
430821591 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
430921592 X"$ac_file" : 'X\(//\)[^/]' \| \
431021593 X"$ac_file" : 'X\(//\)$' \| \
4311 X"$ac_file" : 'X\(/\)' \| \
4312 . : '\(.\)' 2>/dev/null ||
21594 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
431321595 echo X"$ac_file" |
4314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4315 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4316 /^X\(\/\/\)$/{ s//\1/; q; }
4317 /^X\(\/\).*/{ s//\1/; q; }
4318 s/.*/./; q'`
4319 { if $as_mkdir_p; then
4320 mkdir -p "$ac_dir"
4321 else
4322 as_dir="$ac_dir"
21596 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21597 s//\1/
21598 q
21599 }
21600 /^X\(\/\/\)[^/].*/{
21601 s//\1/
21602 q
21603 }
21604 /^X\(\/\/\)$/{
21605 s//\1/
21606 q
21607 }
21608 /^X\(\/\).*/{
21609 s//\1/
21610 q
21611 }
21612 s/.*/./; q'`
21613 { as_dir="$ac_dir"
21614 case $as_dir in #(
21615 -*) as_dir=./$as_dir;;
21616 esac
21617 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
432321618 as_dirs=
4324 while test ! -d "$as_dir"; do
4325 as_dirs="$as_dir $as_dirs"
4326 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21619 while :; do
21620 case $as_dir in #(
21621 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21622 *) as_qdir=$as_dir;;
21623 esac
21624 as_dirs="'$as_qdir' $as_dirs"
21625 as_dir=`$as_dirname -- "$as_dir" ||
432721626 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
432821627 X"$as_dir" : 'X\(//\)[^/]' \| \
432921628 X"$as_dir" : 'X\(//\)$' \| \
4330 X"$as_dir" : 'X\(/\)' \| \
4331 . : '\(.\)' 2>/dev/null ||
21629 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
433221630 echo X"$as_dir" |
4333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4334 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4335 /^X\(\/\/\)$/{ s//\1/; q; }
4336 /^X\(\/\).*/{ s//\1/; q; }
4337 s/.*/./; q'`
21631 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21632 s//\1/
21633 q
21634 }
21635 /^X\(\/\/\)[^/].*/{
21636 s//\1/
21637 q
21638 }
21639 /^X\(\/\/\)$/{
21640 s//\1/
21641 q
21642 }
21643 /^X\(\/\).*/{
21644 s//\1/
21645 q
21646 }
21647 s/.*/./; q'`
21648 test -d "$as_dir" && break
433821649 done
4339 test ! -n "$as_dirs" || mkdir $as_dirs
4340 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4341 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21650 test -z "$as_dirs" || eval "mkdir $as_dirs"
21651 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21652 echo "$as_me: error: cannot create directory $as_dir" >&2;}
434221653 { (exit 1); exit 1; }; }; }
4343
434421654 ac_builddir=.
434521655
4346 if test "$ac_dir" != .; then
21656 case "$ac_dir" in
21657 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21658 *)
434721659 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4348 # A "../" for each directory in $ac_dir_suffix.
4349 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4350 else
4351 ac_dir_suffix= ac_top_builddir=
4352 fi
21660 # A ".." for each directory in $ac_dir_suffix.
21661 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21662 case $ac_top_builddir_sub in
21663 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21664 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21665 esac ;;
21666 esac
21667 ac_abs_top_builddir=$ac_pwd
21668 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21669 # for backward compatibility:
21670 ac_top_builddir=$ac_top_build_prefix
435321671
435421672 case $srcdir in
4355 .) # No --srcdir option. We are building in place.
21673 .) # We are building in place.
435621674 ac_srcdir=.
4357 if test -z "$ac_top_builddir"; then
4358 ac_top_srcdir=.
4359 else
4360 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4361 fi ;;
4362 [\\/]* | ?:[\\/]* ) # Absolute path.
21675 ac_top_srcdir=$ac_top_builddir_sub
21676 ac_abs_top_srcdir=$ac_pwd ;;
21677 [\\/]* | ?:[\\/]* ) # Absolute name.
436321678 ac_srcdir=$srcdir$ac_dir_suffix;
4364 ac_top_srcdir=$srcdir ;;
4365 *) # Relative path.
4366 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4367 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21679 ac_top_srcdir=$srcdir
21680 ac_abs_top_srcdir=$srcdir ;;
21681 *) # Relative name.
21682 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21683 ac_top_srcdir=$ac_top_build_prefix$srcdir
21684 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
436821685 esac
4369
4370 # Do not use `cd foo && pwd` to compute absolute paths, because
4371 # the directories may not exist.
4372 case `pwd` in
4373 .) ac_abs_builddir="$ac_dir";;
4374 *)
4375 case "$ac_dir" in
4376 .) ac_abs_builddir=`pwd`;;
4377 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4378 *) ac_abs_builddir=`pwd`/"$ac_dir";;
4379 esac;;
4380 esac
4381 case $ac_abs_builddir in
4382 .) ac_abs_top_builddir=${ac_top_builddir}.;;
4383 *)
4384 case ${ac_top_builddir}. in
4385 .) ac_abs_top_builddir=$ac_abs_builddir;;
4386 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4387 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4388 esac;;
4389 esac
4390 case $ac_abs_builddir in
4391 .) ac_abs_srcdir=$ac_srcdir;;
4392 *)
4393 case $ac_srcdir in
4394 .) ac_abs_srcdir=$ac_abs_builddir;;
4395 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4396 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4397 esac;;
4398 esac
4399 case $ac_abs_builddir in
4400 .) ac_abs_top_srcdir=$ac_top_srcdir;;
4401 *)
4402 case $ac_top_srcdir in
4403 .) ac_abs_top_srcdir=$ac_abs_builddir;;
4404 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4405 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4406 esac;;
4407 esac
4408
21686 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21687
21688
21689 case $ac_mode in
21690 :F)
21691 #
21692 # CONFIG_FILE
21693 #
440921694
441021695 case $INSTALL in
441121696 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4412 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21697 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
441321698 esac
4414
4415 if test x"$ac_file" != x-; then
4416 { echo "$as_me:$LINENO: creating $ac_file" >&5
4417 echo "$as_me: creating $ac_file" >&6;}
4418 rm -f "$ac_file"
4419 fi
4420 # Let's still pretend it is `configure' which instantiates (i.e., don't
4421 # use $as_me), people would be surprised to read:
4422 # /* config.h. Generated by config.status. */
4423 if test x"$ac_file" = x-; then
4424 configure_input=
4425 else
4426 configure_input="$ac_file. "
4427 fi
4428 configure_input=$configure_input"Generated from `echo $ac_file_in |
4429 sed 's,.*/,,'` by configure."
4430
4431 # First look for the input files in the build tree, otherwise in the
4432 # src tree.
4433 ac_file_inputs=`IFS=:
4434 for f in $ac_file_in; do
4435 case $f in
4436 -) echo $tmp/stdin ;;
4437 [\\/$]*)
4438 # Absolute (can't be DOS-style, as IFS=:)
4439 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4440 echo "$as_me: error: cannot find input file: $f" >&2;}
4441 { (exit 1); exit 1; }; }
4442 echo "$f";;
4443 *) # Relative
4444 if test -f "$f"; then
4445 # Build tree
4446 echo "$f"
4447 elif test -f "$srcdir/$f"; then
4448 # Source tree
4449 echo "$srcdir/$f"
4450 else
4451 # /dev/null tree
4452 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4453 echo "$as_me: error: cannot find input file: $f" >&2;}
4454 { (exit 1); exit 1; }; }
4455 fi;;
4456 esac
4457 done` || { (exit 1); exit 1; }
21699 ac_MKDIR_P=$MKDIR_P
21700 case $MKDIR_P in
21701 [\\/$]* | ?:[\\/]* ) ;;
21702 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21703 esac
445821704 _ACEOF
21705
21706 cat >>$CONFIG_STATUS <<\_ACEOF
21707 # If the template does not know about datarootdir, expand it.
21708 # FIXME: This hack should be removed a few years after 2.60.
21709 ac_datarootdir_hack=; ac_datarootdir_seen=
21710
21711 case `sed -n '/datarootdir/ {
21712 p
21713 q
21714 }
21715 /@datadir@/p
21716 /@docdir@/p
21717 /@infodir@/p
21718 /@localedir@/p
21719 /@mandir@/p
21720 ' $ac_file_inputs` in
21721 *datarootdir*) ac_datarootdir_seen=yes;;
21722 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21723 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21724 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21725 _ACEOF
21726 cat >>$CONFIG_STATUS <<_ACEOF
21727 ac_datarootdir_hack='
21728 s&@datadir@&$datadir&g
21729 s&@docdir@&$docdir&g
21730 s&@infodir@&$infodir&g
21731 s&@localedir@&$localedir&g
21732 s&@mandir@&$mandir&g
21733 s&\\\${datarootdir}&$datarootdir&g' ;;
21734 esac
21735 _ACEOF
21736
21737 # Neutralize VPATH when `$srcdir' = `.'.
21738 # Shell code in configure.ac might set extrasub.
21739 # FIXME: do we really want to maintain this feature?
445921740 cat >>$CONFIG_STATUS <<_ACEOF
446021741 sed "$ac_vpsub
446121742 $extrasub
446321744 cat >>$CONFIG_STATUS <<\_ACEOF
446421745 :t
446521746 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4466 s,@configure_input@,$configure_input,;t t
4467 s,@srcdir@,$ac_srcdir,;t t
4468 s,@abs_srcdir@,$ac_abs_srcdir,;t t
4469 s,@top_srcdir@,$ac_top_srcdir,;t t
4470 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4471 s,@builddir@,$ac_builddir,;t t
4472 s,@abs_builddir@,$ac_abs_builddir,;t t
4473 s,@top_builddir@,$ac_top_builddir,;t t
4474 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4475 s,@INSTALL@,$ac_INSTALL,;t t
4476 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4477 rm -f $tmp/stdin
21747 s&@configure_input@&$configure_input&;t t
21748 s&@top_builddir@&$ac_top_builddir_sub&;t t
21749 s&@srcdir@&$ac_srcdir&;t t
21750 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21751 s&@top_srcdir@&$ac_top_srcdir&;t t
21752 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21753 s&@builddir@&$ac_builddir&;t t
21754 s&@abs_builddir@&$ac_abs_builddir&;t t
21755 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21756 s&@INSTALL@&$ac_INSTALL&;t t
21757 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21758 $ac_datarootdir_hack
21759 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21760
21761 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21762 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21763 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21764 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21765 which seems to be undefined. Please make sure it is defined." >&5
21766 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21767 which seems to be undefined. Please make sure it is defined." >&2;}
21768
21769 rm -f "$tmp/stdin"
21770 case $ac_file in
21771 -) cat "$tmp/out"; rm -f "$tmp/out";;
21772 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21773 esac
21774 ;;
21775 :H)
21776 #
21777 # CONFIG_HEADER
21778 #
21779 _ACEOF
21780
21781 # Transform confdefs.h into a sed script `conftest.defines', that
21782 # substitutes the proper values into config.h.in to produce config.h.
21783 rm -f conftest.defines conftest.tail
21784 # First, append a space to every undef/define line, to ease matching.
21785 echo 's/$/ /' >conftest.defines
21786 # Then, protect against being on the right side of a sed subst, or in
21787 # an unquoted here document, in config.status. If some macros were
21788 # called several times there might be several #defines for the same
21789 # symbol, which is useless. But do not sort them, since the last
21790 # AC_DEFINE must be honored.
21791 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21792 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21793 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21794 # PARAMS is the parameter list in the macro definition--in most cases, it's
21795 # just an empty string.
21796 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21797 ac_dB='\\)[ (].*,\\1define\\2'
21798 ac_dC=' '
21799 ac_dD=' ,'
21800
21801 uniq confdefs.h |
21802 sed -n '
21803 t rset
21804 :rset
21805 s/^[ ]*#[ ]*define[ ][ ]*//
21806 t ok
21807 d
21808 :ok
21809 s/[\\&,]/\\&/g
21810 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21811 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21812 ' >>conftest.defines
21813
21814 # Remove the space that was appended to ease matching.
21815 # Then replace #undef with comments. This is necessary, for
21816 # example, in the case of _POSIX_SOURCE, which is predefined and required
21817 # on some systems where configure will not decide to define it.
21818 # (The regexp can be short, since the line contains either #define or #undef.)
21819 echo 's/ $//
21820 s,^[ #]*u.*,/* & */,' >>conftest.defines
21821
21822 # Break up conftest.defines:
21823 ac_max_sed_lines=50
21824
21825 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21826 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21827 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21828 # et cetera.
21829 ac_in='$ac_file_inputs'
21830 ac_out='"$tmp/out1"'
21831 ac_nxt='"$tmp/out2"'
21832
21833 while :
21834 do
21835 # Write a here document:
21836 cat >>$CONFIG_STATUS <<_ACEOF
21837 # First, check the format of the line:
21838 cat >"\$tmp/defines.sed" <<\\CEOF
21839 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21840 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21841 b
21842 :def
21843 _ACEOF
21844 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21845 echo 'CEOF
21846 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21847 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21848 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21849 grep . conftest.tail >/dev/null || break
21850 rm -f conftest.defines
21851 mv conftest.tail conftest.defines
21852 done
21853 rm -f conftest.defines conftest.tail
21854
21855 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21856 cat >>$CONFIG_STATUS <<\_ACEOF
447821857 if test x"$ac_file" != x-; then
4479 mv $tmp/out $ac_file
21858 echo "/* $configure_input */" >"$tmp/config.h"
21859 cat "$ac_result" >>"$tmp/config.h"
21860 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21861 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21862 echo "$as_me: $ac_file is unchanged" >&6;}
21863 else
21864 rm -f $ac_file
21865 mv "$tmp/config.h" $ac_file
21866 fi
448021867 else
4481 cat $tmp/out
4482 rm -f $tmp/out
21868 echo "/* $configure_input */"
21869 cat "$ac_result"
448321870 fi
4484
21871 rm -f "$tmp/out12"
21872 # Compute $ac_file's index in $config_headers.
21873 _am_stamp_count=1
21874 for _am_header in $config_headers :; do
21875 case $_am_header in
21876 $ac_file | $ac_file:* )
21877 break ;;
21878 * )
21879 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21880 esac
448521881 done
4486 _ACEOF
4487 cat >>$CONFIG_STATUS <<\_ACEOF
4488
4489 #
4490 # CONFIG_COMMANDS section.
4491 #
4492 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
4493 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
4494 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
4495 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
4496 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4497 X"$ac_dest" : 'X\(//\)[^/]' \| \
4498 X"$ac_dest" : 'X\(//\)$' \| \
4499 X"$ac_dest" : 'X\(/\)' \| \
4500 . : '\(.\)' 2>/dev/null ||
4501 echo X"$ac_dest" |
4502 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4503 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4504 /^X\(\/\/\)$/{ s//\1/; q; }
4505 /^X\(\/\).*/{ s//\1/; q; }
4506 s/.*/./; q'`
4507 { if $as_mkdir_p; then
4508 mkdir -p "$ac_dir"
4509 else
4510 as_dir="$ac_dir"
4511 as_dirs=
4512 while test ! -d "$as_dir"; do
4513 as_dirs="$as_dir $as_dirs"
4514 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4515 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4516 X"$as_dir" : 'X\(//\)[^/]' \| \
4517 X"$as_dir" : 'X\(//\)$' \| \
4518 X"$as_dir" : 'X\(/\)' \| \
4519 . : '\(.\)' 2>/dev/null ||
4520 echo X"$as_dir" |
4521 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4522 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4523 /^X\(\/\/\)$/{ s//\1/; q; }
4524 /^X\(\/\).*/{ s//\1/; q; }
4525 s/.*/./; q'`
4526 done
4527 test ! -n "$as_dirs" || mkdir $as_dirs
4528 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4529 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4530 { (exit 1); exit 1; }; }; }
4531
4532 ac_builddir=.
4533
4534 if test "$ac_dir" != .; then
4535 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4536 # A "../" for each directory in $ac_dir_suffix.
4537 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4538 else
4539 ac_dir_suffix= ac_top_builddir=
4540 fi
4541
4542 case $srcdir in
4543 .) # No --srcdir option. We are building in place.
4544 ac_srcdir=.
4545 if test -z "$ac_top_builddir"; then
4546 ac_top_srcdir=.
4547 else
4548 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4549 fi ;;
4550 [\\/]* | ?:[\\/]* ) # Absolute path.
4551 ac_srcdir=$srcdir$ac_dir_suffix;
4552 ac_top_srcdir=$srcdir ;;
4553 *) # Relative path.
4554 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4555 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4556 esac
4557
4558 # Do not use `cd foo && pwd` to compute absolute paths, because
4559 # the directories may not exist.
4560 case `pwd` in
4561 .) ac_abs_builddir="$ac_dir";;
4562 *)
4563 case "$ac_dir" in
4564 .) ac_abs_builddir=`pwd`;;
4565 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4566 *) ac_abs_builddir=`pwd`/"$ac_dir";;
4567 esac;;
4568 esac
4569 case $ac_abs_builddir in
4570 .) ac_abs_top_builddir=${ac_top_builddir}.;;
4571 *)
4572 case ${ac_top_builddir}. in
4573 .) ac_abs_top_builddir=$ac_abs_builddir;;
4574 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4575 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4576 esac;;
4577 esac
4578 case $ac_abs_builddir in
4579 .) ac_abs_srcdir=$ac_srcdir;;
4580 *)
4581 case $ac_srcdir in
4582 .) ac_abs_srcdir=$ac_abs_builddir;;
4583 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4584 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4585 esac;;
4586 esac
4587 case $ac_abs_builddir in
4588 .) ac_abs_top_srcdir=$ac_top_srcdir;;
4589 *)
4590 case $ac_top_srcdir in
4591 .) ac_abs_top_srcdir=$ac_abs_builddir;;
4592 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4593 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4594 esac;;
4595 esac
4596
4597
4598 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
4599 echo "$as_me: executing $ac_dest commands" >&6;}
4600 case $ac_dest in
4601 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21882 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
21883 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21884 X$ac_file : 'X\(//\)[^/]' \| \
21885 X$ac_file : 'X\(//\)$' \| \
21886 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
21887 echo X$ac_file |
21888 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21889 s//\1/
21890 q
21891 }
21892 /^X\(\/\/\)[^/].*/{
21893 s//\1/
21894 q
21895 }
21896 /^X\(\/\/\)$/{
21897 s//\1/
21898 q
21899 }
21900 /^X\(\/\).*/{
21901 s//\1/
21902 q
21903 }
21904 s/.*/./; q'`/stamp-h$_am_stamp_count
21905 ;;
21906
21907 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21908 echo "$as_me: executing $ac_file commands" >&6;}
21909 ;;
21910 esac
21911
21912
21913 case $ac_file$ac_mode in
21914 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
460221915 # Strip MF so we end up with the name of the file.
460321916 mf=`echo "$mf" | sed -e 's/:.*$//'`
460421917 # Check whether this is an Automake generated Makefile or not.
460621919 # some people rename them; so instead we look at the file content.
460721920 # Grep'ing the first line is not enough: some people post-process
460821921 # each Makefile.in and add a new line on top of each file to say so.
4609 # So let's grep whole file.
4610 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
4611 dirpart=`(dirname "$mf") 2>/dev/null ||
21922 # Grep'ing the whole file is not good either: AIX grep has a line
21923 # limit of 2048, but all sed's we know have understand at least 4000.
21924 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
21925 dirpart=`$as_dirname -- "$mf" ||
461221926 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
461321927 X"$mf" : 'X\(//\)[^/]' \| \
461421928 X"$mf" : 'X\(//\)$' \| \
4615 X"$mf" : 'X\(/\)' \| \
4616 . : '\(.\)' 2>/dev/null ||
21929 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
461721930 echo X"$mf" |
4618 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4619 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4620 /^X\(\/\/\)$/{ s//\1/; q; }
4621 /^X\(\/\).*/{ s//\1/; q; }
4622 s/.*/./; q'`
21931 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21932 s//\1/
21933 q
21934 }
21935 /^X\(\/\/\)[^/].*/{
21936 s//\1/
21937 q
21938 }
21939 /^X\(\/\/\)$/{
21940 s//\1/
21941 q
21942 }
21943 /^X\(\/\).*/{
21944 s//\1/
21945 q
21946 }
21947 s/.*/./; q'`
462321948 else
462421949 continue
462521950 fi
464121966 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
464221967 # Make sure the directory exists.
464321968 test -f "$dirpart/$file" && continue
4644 fdir=`(dirname "$file") 2>/dev/null ||
21969 fdir=`$as_dirname -- "$file" ||
464521970 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
464621971 X"$file" : 'X\(//\)[^/]' \| \
464721972 X"$file" : 'X\(//\)$' \| \
4648 X"$file" : 'X\(/\)' \| \
4649 . : '\(.\)' 2>/dev/null ||
21973 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
465021974 echo X"$file" |
4651 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4652 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4653 /^X\(\/\/\)$/{ s//\1/; q; }
4654 /^X\(\/\).*/{ s//\1/; q; }
4655 s/.*/./; q'`
4656 { if $as_mkdir_p; then
4657 mkdir -p $dirpart/$fdir
4658 else
4659 as_dir=$dirpart/$fdir
21975 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21976 s//\1/
21977 q
21978 }
21979 /^X\(\/\/\)[^/].*/{
21980 s//\1/
21981 q
21982 }
21983 /^X\(\/\/\)$/{
21984 s//\1/
21985 q
21986 }
21987 /^X\(\/\).*/{
21988 s//\1/
21989 q
21990 }
21991 s/.*/./; q'`
21992 { as_dir=$dirpart/$fdir
21993 case $as_dir in #(
21994 -*) as_dir=./$as_dir;;
21995 esac
21996 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
466021997 as_dirs=
4661 while test ! -d "$as_dir"; do
4662 as_dirs="$as_dir $as_dirs"
4663 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21998 while :; do
21999 case $as_dir in #(
22000 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22001 *) as_qdir=$as_dir;;
22002 esac
22003 as_dirs="'$as_qdir' $as_dirs"
22004 as_dir=`$as_dirname -- "$as_dir" ||
466422005 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
466522006 X"$as_dir" : 'X\(//\)[^/]' \| \
466622007 X"$as_dir" : 'X\(//\)$' \| \
4667 X"$as_dir" : 'X\(/\)' \| \
4668 . : '\(.\)' 2>/dev/null ||
22008 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
466922009 echo X"$as_dir" |
4670 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4671 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4672 /^X\(\/\/\)$/{ s//\1/; q; }
4673 /^X\(\/\).*/{ s//\1/; q; }
4674 s/.*/./; q'`
22010 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22011 s//\1/
22012 q
22013 }
22014 /^X\(\/\/\)[^/].*/{
22015 s//\1/
22016 q
22017 }
22018 /^X\(\/\/\)$/{
22019 s//\1/
22020 q
22021 }
22022 /^X\(\/\).*/{
22023 s//\1/
22024 q
22025 }
22026 s/.*/./; q'`
22027 test -d "$as_dir" && break
467522028 done
4676 test ! -n "$as_dirs" || mkdir $as_dirs
4677 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
4678 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22029 test -z "$as_dirs" || eval "mkdir $as_dirs"
22030 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22031 echo "$as_me: error: cannot create directory $as_dir" >&2;}
467922032 { (exit 1); exit 1; }; }; }
4680
468122033 # echo "creating $dirpart/$file"
468222034 echo '# dummy' > "$dirpart/$file"
468322035 done
468422036 done
468522037 ;;
22038
468622039 esac
4687 done
4688 _ACEOF
4689
4690 cat >>$CONFIG_STATUS <<\_ACEOF
22040 done # for ac_tag
22041
469122042
469222043 { (exit 0); exit 0; }
469322044 _ACEOF
0 AC_INIT(virt-viewer.spec.in)
1 AM_INIT_AUTOMAKE(virt-viewer, 0.0.2)
0
1 AC_INIT(virt-viewer, 0.0.3)
2 AC_CONFIG_SRCDIR(src/main.c)
3 AM_CONFIG_HEADER(config.h)
4 dnl Make automake keep quiet about wildcards & other GNUmake-isms
5 AM_INIT_AUTOMAKE([-Wno-portability])
6 AC_CANONICAL_HOST
27
38 AC_PROG_CC
9 AM_PROG_CC_C_O
10 AC_PROG_LIBTOOL
11
12 AC_DEFINE([_GNU_SOURCE], [], [Enable GNU extensions])
413
514 VIRT_VIEWER_COMPILE_WARNINGS(maximum)
615
918 PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.2.0)
1019 PKG_CHECK_MODULES(GTKVNC, gtk-vnc-1.0 >= 0.0.1)
1120
21 dnl --enable-plugin to enable the browser plugin.
22 NSPR_REQUIRED=4.0.0
23 FIREFOX_PLUGIN_REQUIRED=1.5.0
24 MOZILLA_PLUGIN_REQUIRED=1.8
25 AC_ARG_ENABLE(plugin,
26 [ --enable-plugin=[no/yes] enable browser plugin [default=no]],,
27 enable_plugin=no)
28 if test "x$enable_plugin" = "xyes"; then
29 dnl Check for Netscape Portable Runtime development package.
30 PKG_CHECK_MODULES(NSPR, nspr >= $NSPR_REQUIRED)
31 dnl Check for Firefox plugin package (also includes NSPR cflags/libs).
32 PKG_CHECK_MODULES(FIREFOX_PLUGIN,
33 firefox-plugin >= $FIREFOX_PLUGIN_REQUIRED, ,[
34 PKG_CHECK_MODULES(MOZILLA_PLUGIN,
35 mozilla-plugin >= $MOZILLA_PLUGIN_REQUIRED)
36 FIREFOX_PLUGIN_CFLAGS="$MOZILLA_PLUGIN_CFLAGS"
37 FIREFOX_PLUGIN_LIBS="$MOZILLA_PLUGIN_LIBS"
38 ])
39 AC_SUBST(FIREFOX_PLUGIN_CFLAGS)
40 AC_SUBST(FIREFOX_PLUGIN_LIBS)
41 fi
42 AM_CONDITIONAL(ENABLE_PLUGIN, [test "x$enable_plugin" = "xyes"])
43
1244 AC_OUTPUT(Makefile
1345 src/Makefile
1446 man/Makefile
47 plugin/Makefile
1548 virt-viewer.spec)
00 #! /bin/sh
11 # depcomp - compile a program generating dependencies as side-effects
22
3 scriptversion=2005-07-09.11
4
5 # Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc.
3 scriptversion=2006-10-15.18
4
5 # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006 Free Software
6 # Foundation, Inc.
67
78 # This program is free software; you can redistribute it and/or modify
89 # it under the terms of the GNU General Public License as published by
9091 ## gcc 3 implements dependency tracking that does exactly what
9192 ## we want. Yay! Note: for some reason libtool 1.4 doesn't like
9293 ## it if -MD -MP comes after the -MF stuff. Hmm.
93 "$@" -MT "$object" -MD -MP -MF "$tmpdepfile"
94 ## Unfortunately, FreeBSD c89 acceptance of flags depends upon
95 ## the command line argument order; so add the flags where they
96 ## appear in depend2.am. Note that the slowdown incurred here
97 ## affects only configure: in makefiles, %FASTDEP% shortcuts this.
98 for arg
99 do
100 case $arg in
101 -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
102 *) set fnord "$@" "$arg" ;;
103 esac
104 shift # fnord
105 shift # $arg
106 done
107 "$@"
94108 stat=$?
95109 if test $stat -eq 0; then :
96110 else
275289 rm -f "$tmpdepfile"
276290 ;;
277291
292 hp2)
293 # The "hp" stanza above does not work with aCC (C++) and HP's ia64
294 # compilers, which have integrated preprocessors. The correct option
295 # to use with these is +Maked; it writes dependencies to a file named
296 # 'foo.d', which lands next to the object file, wherever that
297 # happens to be.
298 # Much of this is similar to the tru64 case; see comments there.
299 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
300 test "x$dir" = "x$object" && dir=
301 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
302 if test "$libtool" = yes; then
303 tmpdepfile1=$dir$base.d
304 tmpdepfile2=$dir.libs/$base.d
305 "$@" -Wc,+Maked
306 else
307 tmpdepfile1=$dir$base.d
308 tmpdepfile2=$dir$base.d
309 "$@" +Maked
310 fi
311 stat=$?
312 if test $stat -eq 0; then :
313 else
314 rm -f "$tmpdepfile1" "$tmpdepfile2"
315 exit $stat
316 fi
317
318 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2"
319 do
320 test -f "$tmpdepfile" && break
321 done
322 if test -f "$tmpdepfile"; then
323 sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
324 # Add `dependent.h:' lines.
325 sed -ne '2,${; s/^ *//; s/ \\*$//; s/$/:/; p;}' "$tmpdepfile" >> "$depfile"
326 else
327 echo "#dummy" > "$depfile"
328 fi
329 rm -f "$tmpdepfile" "$tmpdepfile2"
330 ;;
331
278332 tru64)
279333 # The Tru64 compiler uses -MD to generate dependencies as a side
280334 # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
287341
288342 if test "$libtool" = yes; then
289343 # With Tru64 cc, shared objects can also be used to make a
290 # static library. This mecanism is used in libtool 1.4 series to
344 # static library. This mechanism is used in libtool 1.4 series to
291345 # handle both shared and static libraries in a single compilation.
292346 # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
293347 #
294348 # With libtool 1.5 this exception was removed, and libtool now
295349 # generates 2 separate objects for the 2 libraries. These two
296 # compilations output dependencies in in $dir.libs/$base.o.d and
350 # compilations output dependencies in $dir.libs/$base.o.d and
297351 # in $dir$base.o.d. We have to check for both files, because
298352 # one of the two compilations can be disabled. We should prefer
299353 # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
00 #!/bin/sh
11 # install - install a program, script, or datafile
22
3 scriptversion=2005-05-14.22
3 scriptversion=2006-10-14.15
44
55 # This originates from X11R5 (mit/util/scripts/install.sh), which was
66 # later released in X11R6 (xc/config/util/install.sh) with the
3838 # when there is no Makefile.
3939 #
4040 # This script is compatible with the BSD install script, but was written
41 # from scratch. It can only install one file at a time, a restriction
42 # shared with many OS's install programs.
41 # from scratch.
42
43 nl='
44 '
45 IFS=" "" $nl"
4346
4447 # set DOITPROG to echo to test this script
4548
4649 # Don't use :- since 4.3BSD and earlier shells don't like it.
4750 doit="${DOITPROG-}"
48
49 # put in absolute paths if you don't have them in your path; or use env. vars.
51 if test -z "$doit"; then
52 doit_exec=exec
53 else
54 doit_exec=$doit
55 fi
56
57 # Put in absolute file names if you don't have them in your path;
58 # or use environment vars.
5059
5160 mvprog="${MVPROG-mv}"
5261 cpprog="${CPPROG-cp}"
5766 rmprog="${RMPROG-rm}"
5867 mkdirprog="${MKDIRPROG-mkdir}"
5968
60 chmodcmd="$chmodprog 0755"
69 posix_glob=
70 posix_mkdir=
71
72 # Desired mode of installed file.
73 mode=0755
74
75 chmodcmd=$chmodprog
6176 chowncmd=
6277 chgrpcmd=
6378 stripcmd=
94109 CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG
95110 "
96111
97 while test -n "$1"; do
112 while test $# -ne 0; do
98113 case $1 in
99114 -c) shift
100115 continue;;
110125
111126 --help) echo "$usage"; exit $?;;
112127
113 -m) chmodcmd="$chmodprog $2"
114 shift
115 shift
128 -m) mode=$2
129 shift
130 shift
131 case $mode in
132 *' '* | *' '* | *'
133 '* | *'*'* | *'?'* | *'['*)
134 echo "$0: invalid mode: $mode" >&2
135 exit 1;;
136 esac
116137 continue;;
117138
118139 -o) chowncmd="$chownprog $2"
135156
136157 --version) echo "$0 $scriptversion"; exit $?;;
137158
138 *) # When -d is used, all remaining arguments are directories to create.
139 # When -t is used, the destination is already specified.
140 test -n "$dir_arg$dstarg" && break
141 # Otherwise, the last argument is the destination. Remove it from $@.
142 for arg
143 do
144 if test -n "$dstarg"; then
145 # $@ is not empty: it contains at least $arg.
146 set fnord "$@" "$dstarg"
147 shift # fnord
148 fi
149 shift # arg
150 dstarg=$arg
151 done
159 --) shift
152160 break;;
161
162 -*) echo "$0: invalid option: $1" >&2
163 exit 1;;
164
165 *) break;;
153166 esac
154167 done
155168
156 if test -z "$1"; then
169 if test $# -ne 0 && test -z "$dir_arg$dstarg"; then
170 # When -d is used, all remaining arguments are directories to create.
171 # When -t is used, the destination is already specified.
172 # Otherwise, the last argument is the destination. Remove it from $@.
173 for arg
174 do
175 if test -n "$dstarg"; then
176 # $@ is not empty: it contains at least $arg.
177 set fnord "$@" "$dstarg"
178 shift # fnord
179 fi
180 shift # arg
181 dstarg=$arg
182 done
183 fi
184
185 if test $# -eq 0; then
157186 if test -z "$dir_arg"; then
158187 echo "$0: no input file specified." >&2
159188 exit 1
163192 exit 0
164193 fi
165194
195 if test -z "$dir_arg"; then
196 trap '(exit $?); exit' 1 2 13 15
197
198 # Set umask so as not to create temps with too-generous modes.
199 # However, 'strip' requires both read and write access to temps.
200 case $mode in
201 # Optimize common cases.
202 *644) cp_umask=133;;
203 *755) cp_umask=22;;
204
205 *[0-7])
206 if test -z "$stripcmd"; then
207 u_plus_rw=
208 else
209 u_plus_rw='% 200'
210 fi
211 cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
212 *)
213 if test -z "$stripcmd"; then
214 u_plus_rw=
215 else
216 u_plus_rw=,u+rw
217 fi
218 cp_umask=$mode$u_plus_rw;;
219 esac
220 fi
221
166222 for src
167223 do
168224 # Protect names starting with `-'.
172228
173229 if test -n "$dir_arg"; then
174230 dst=$src
175 src=
176
177 if test -d "$dst"; then
178 mkdircmd=:
179 chmodcmd=
180 else
181 mkdircmd=$mkdirprog
182 fi
231 dstdir=$dst
232 test -d "$dstdir"
233 dstdir_status=$?
183234 else
235
184236 # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
185237 # might cause directories to be created, which would be especially bad
186238 # if $src (and thus $dsttmp) contains '*'.
207259 echo "$0: $dstarg: Is a directory" >&2
208260 exit 1
209261 fi
210 dst=$dst/`basename "$src"`
262 dstdir=$dst
263 dst=$dstdir/`basename "$src"`
264 dstdir_status=0
265 else
266 # Prefer dirname, but fall back on a substitute if dirname fails.
267 dstdir=`
268 (dirname "$dst") 2>/dev/null ||
269 expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
270 X"$dst" : 'X\(//\)[^/]' \| \
271 X"$dst" : 'X\(//\)$' \| \
272 X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
273 echo X"$dst" |
274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
275 s//\1/
276 q
277 }
278 /^X\(\/\/\)[^/].*/{
279 s//\1/
280 q
281 }
282 /^X\(\/\/\)$/{
283 s//\1/
284 q
285 }
286 /^X\(\/\).*/{
287 s//\1/
288 q
289 }
290 s/.*/./; q'
291 `
292
293 test -d "$dstdir"
294 dstdir_status=$?
211295 fi
212296 fi
213297
214 # This sed command emulates the dirname command.
215 dstdir=`echo "$dst" | sed -e 's,/*$,,;s,[^/]*$,,;s,/*$,,;s,^$,.,'`
216
217 # Make sure that the destination directory exists.
218
219 # Skip lots of stat calls in the usual case.
220 if test ! -d "$dstdir"; then
221 defaultIFS='
222 '
223 IFS="${IFS-$defaultIFS}"
224
225 oIFS=$IFS
226 # Some sh's can't handle IFS=/ for some reason.
227 IFS='%'
228 set x `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'`
229 shift
230 IFS=$oIFS
231
232 pathcomp=
233
234 while test $# -ne 0 ; do
235 pathcomp=$pathcomp$1
298 obsolete_mkdir_used=false
299
300 if test $dstdir_status != 0; then
301 case $posix_mkdir in
302 '')
303 # Create intermediate dirs using mode 755 as modified by the umask.
304 # This is like FreeBSD 'install' as of 1997-10-28.
305 umask=`umask`
306 case $stripcmd.$umask in
307 # Optimize common cases.
308 *[2367][2367]) mkdir_umask=$umask;;
309 .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
310
311 *[0-7])
312 mkdir_umask=`expr $umask + 22 \
313 - $umask % 100 % 40 + $umask % 20 \
314 - $umask % 10 % 4 + $umask % 2
315 `;;
316 *) mkdir_umask=$umask,go-w;;
317 esac
318
319 # With -d, create the new directory with the user-specified mode.
320 # Otherwise, rely on $mkdir_umask.
321 if test -n "$dir_arg"; then
322 mkdir_mode=-m$mode
323 else
324 mkdir_mode=
325 fi
326
327 posix_mkdir=false
328 case $umask in
329 *[123567][0-7][0-7])
330 # POSIX mkdir -p sets u+wx bits regardless of umask, which
331 # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
332 ;;
333 *)
334 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
335 trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
336
337 if (umask $mkdir_umask &&
338 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
339 then
340 if test -z "$dir_arg" || {
341 # Check for POSIX incompatibilities with -m.
342 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
343 # other-writeable bit of parent directory when it shouldn't.
344 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
345 ls_ld_tmpdir=`ls -ld "$tmpdir"`
346 case $ls_ld_tmpdir in
347 d????-?r-*) different_mode=700;;
348 d????-?--*) different_mode=755;;
349 *) false;;
350 esac &&
351 $mkdirprog -m$different_mode -p -- "$tmpdir" && {
352 ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
353 test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
354 }
355 }
356 then posix_mkdir=:
357 fi
358 rmdir "$tmpdir/d" "$tmpdir"
359 else
360 # Remove any dirs left behind by ancient mkdir implementations.
361 rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
362 fi
363 trap '' 0;;
364 esac;;
365 esac
366
367 if
368 $posix_mkdir && (
369 umask $mkdir_umask &&
370 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
371 )
372 then :
373 else
374
375 # The umask is ridiculous, or mkdir does not conform to POSIX,
376 # or it failed possibly due to a race condition. Create the
377 # directory the slow way, step by step, checking for races as we go.
378
379 case $dstdir in
380 /*) prefix=/ ;;
381 -*) prefix=./ ;;
382 *) prefix= ;;
383 esac
384
385 case $posix_glob in
386 '')
387 if (set -f) 2>/dev/null; then
388 posix_glob=true
389 else
390 posix_glob=false
391 fi ;;
392 esac
393
394 oIFS=$IFS
395 IFS=/
396 $posix_glob && set -f
397 set fnord $dstdir
236398 shift
237 if test ! -d "$pathcomp"; then
238 $mkdirprog "$pathcomp"
239 # mkdir can fail with a `File exist' error in case several
240 # install-sh are creating the directory concurrently. This
241 # is OK.
242 test -d "$pathcomp" || exit
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
243434 fi
244 pathcomp=$pathcomp/
245 done
435 fi
246436 fi
247437
248438 if test -n "$dir_arg"; then
249 $doit $mkdircmd "$dst" \
250 && { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \
251 && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \
252 && { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \
253 && { test -z "$chmodcmd" || $doit $chmodcmd "$dst"; }
254
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
255443 else
256 dstfile=`basename "$dst"`
257444
258445 # Make a couple of temp file names in the proper directory.
259446 dsttmp=$dstdir/_inst.$$_
261448
262449 # Trap to clean up those temp files at exit.
263450 trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
264 trap '(exit $?); exit' 1 2 13 15
265451
266452 # Copy the file name to the temp name.
267 $doit $cpprog "$src" "$dsttmp" &&
453 (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
268454
269455 # and set any options; do chmod last to preserve setuid bits.
270456 #
275461 { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \
276462 && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \
277463 && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \
278 && { test -z "$chmodcmd" || $doit $chmodcmd "$dsttmp"; } &&
464 && { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
279465
280466 # Now rename the file to the real destination.
281 { $doit $mvcmd -f "$dsttmp" "$dstdir/$dstfile" 2>/dev/null \
467 { $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null \
282468 || {
283469 # The rename failed, perhaps because mv can't rename something else
284470 # to itself, or perhaps because mv is so ancient that it does not
290476 # reasons. In this case, the final cleanup might fail but the new
291477 # file should still install successfully.
292478 {
293 if test -f "$dstdir/$dstfile"; then
294 $doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null \
295 || $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \
479 if test -f "$dst"; then
480 $doit $rmcmd -f "$dst" 2>/dev/null \
481 || { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null \
482 && { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }; }\
296483 || {
297 echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2
484 echo "$0: cannot unlink or rename $dst" >&2
298485 (exit 1); exit 1
299486 }
300487 else
303490 } &&
304491
305492 # Now rename the file to the real destination.
306 $doit $mvcmd "$dsttmp" "$dstdir/$dstfile"
493 $doit $mvcmd "$dsttmp" "$dst"
307494 }
308 }
309 fi || { (exit 1); exit 1; }
495 } || exit 1
496
497 trap '' 0
498 fi
310499 done
311
312 # The final little trick to "correctly" pass the exit status to the exit trap.
313 {
314 (exit 0); exit 0
315 }
316500
317501 # Local variables:
318502 # eval: (add-hook 'write-file-hooks 'time-stamp)
0 # ltmain.sh - Provide generalized library-building support services.
1 # NOTE: Changing this file will not affect anything until you rerun configure.
2 #
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
4 # 2007 Free Software Foundation, Inc.
5 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6 #
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2 of the License, or
10 # (at your option) any later version.
11 #
12 # This program is distributed in the hope that it will be useful, but
13 # WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 # General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, write to the Free Software
19 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 #
21 # As a special exception to the GNU General Public License, if you
22 # distribute this file as part of a program that contains a
23 # configuration script generated by Autoconf, you may include it under
24 # the same distribution terms that you use for the rest of that program.
25
26 basename="s,^.*/,,g"
27
28 # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
29 # is ksh but when the shell is invoked as "sh" and the current value of
30 # the _XPG environment variable is not equal to 1 (one), the special
31 # positional parameter $0, within a function call, is the name of the
32 # function.
33 progpath="$0"
34
35 # The name of this program:
36 progname=`echo "$progpath" | $SED $basename`
37 modename="$progname"
38
39 # Global variables:
40 EXIT_SUCCESS=0
41 EXIT_FAILURE=1
42
43 PROGRAM=ltmain.sh
44 PACKAGE=libtool
45 VERSION=1.5.24
46 TIMESTAMP=" (1.1220.2.456 2007/06/24 02:25:32)"
47
48 # Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
49 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
50 emulate sh
51 NULLCMD=:
52 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
53 # is contrary to our usage. Disable this feature.
54 alias -g '${1+"$@"}'='"$@"'
55 setopt NO_GLOB_SUBST
56 else
57 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
58 fi
59 BIN_SH=xpg4; export BIN_SH # for Tru64
60 DUALCASE=1; export DUALCASE # for MKS sh
61
62 # Check that we have a working $echo.
63 if test "X$1" = X--no-reexec; then
64 # Discard the --no-reexec flag, and continue.
65 shift
66 elif test "X$1" = X--fallback-echo; then
67 # Avoid inline document here, it may be left over
68 :
69 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
70 # Yippee, $echo works!
71 :
72 else
73 # Restart under the correct shell, and then maybe $echo will work.
74 exec $SHELL "$progpath" --no-reexec ${1+"$@"}
75 fi
76
77 if test "X$1" = X--fallback-echo; then
78 # used as fallback echo
79 shift
80 cat <<EOF
81 $*
82 EOF
83 exit $EXIT_SUCCESS
84 fi
85
86 default_mode=
87 help="Try \`$progname --help' for more information."
88 magic="%%%MAGIC variable%%%"
89 mkdir="mkdir"
90 mv="mv -f"
91 rm="rm -f"
92
93 # Sed substitution that helps us do robust quoting. It backslashifies
94 # metacharacters that are still active within double-quoted strings.
95 Xsed="${SED}"' -e 1s/^X//'
96 sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
97 # test EBCDIC or ASCII
98 case `echo X|tr X '\101'` in
99 A) # ASCII based system
100 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
101 SP2NL='tr \040 \012'
102 NL2SP='tr \015\012 \040\040'
103 ;;
104 *) # EBCDIC based system
105 SP2NL='tr \100 \n'
106 NL2SP='tr \r\n \100\100'
107 ;;
108 esac
109
110 # NLS nuisances.
111 # Only set LANG and LC_ALL to C if already set.
112 # These must not be set unconditionally because not all systems understand
113 # e.g. LANG=C (notably SCO).
114 # We save the old values to restore during execute mode.
115 for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
116 do
117 eval "if test \"\${$lt_var+set}\" = set; then
118 save_$lt_var=\$$lt_var
119 $lt_var=C
120 export $lt_var
121 fi"
122 done
123
124 # Make sure IFS has a sensible default
125 lt_nl='
126 '
127 IFS=" $lt_nl"
128
129 if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
130 $echo "$modename: not configured to build any kind of library" 1>&2
131 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
132 exit $EXIT_FAILURE
133 fi
134
135 # Global variables.
136 mode=$default_mode
137 nonopt=
138 prev=
139 prevopt=
140 run=
141 show="$echo"
142 show_help=
143 execute_dlfiles=
144 duplicate_deps=no
145 preserve_args=
146 lo2o="s/\\.lo\$/.${objext}/"
147 o2lo="s/\\.${objext}\$/.lo/"
148 extracted_archives=
149 extracted_serial=0
150
151 #####################################
152 # Shell function definitions:
153 # This seems to be the best place for them
154
155 # func_mktempdir [string]
156 # Make a temporary directory that won't clash with other running
157 # libtool processes, and avoids race conditions if possible. If
158 # given, STRING is the basename for that directory.
159 func_mktempdir ()
160 {
161 my_template="${TMPDIR-/tmp}/${1-$progname}"
162
163 if test "$run" = ":"; then
164 # Return a directory name, but don't create it in dry-run mode
165 my_tmpdir="${my_template}-$$"
166 else
167
168 # If mktemp works, use that first and foremost
169 my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
170
171 if test ! -d "$my_tmpdir"; then
172 # Failing that, at least try and use $RANDOM to avoid a race
173 my_tmpdir="${my_template}-${RANDOM-0}$$"
174
175 save_mktempdir_umask=`umask`
176 umask 0077
177 $mkdir "$my_tmpdir"
178 umask $save_mktempdir_umask
179 fi
180
181 # If we're not in dry-run mode, bomb out on failure
182 test -d "$my_tmpdir" || {
183 $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2
184 exit $EXIT_FAILURE
185 }
186 fi
187
188 $echo "X$my_tmpdir" | $Xsed
189 }
190
191
192 # func_win32_libid arg
193 # return the library type of file 'arg'
194 #
195 # Need a lot of goo to handle *both* DLLs and import libs
196 # Has to be a shell function in order to 'eat' the argument
197 # that is supplied when $file_magic_command is called.
198 func_win32_libid ()
199 {
200 win32_libid_type="unknown"
201 win32_fileres=`file -L $1 2>/dev/null`
202 case $win32_fileres in
203 *ar\ archive\ import\ library*) # definitely import
204 win32_libid_type="x86 archive import"
205 ;;
206 *ar\ archive*) # could be an import, or static
207 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
208 $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
209 win32_nmres=`eval $NM -f posix -A $1 | \
210 $SED -n -e '1,100{
211 / I /{
212 s,.*,import,
213 p
214 q
215 }
216 }'`
217 case $win32_nmres in
218 import*) win32_libid_type="x86 archive import";;
219 *) win32_libid_type="x86 archive static";;
220 esac
221 fi
222 ;;
223 *DLL*)
224 win32_libid_type="x86 DLL"
225 ;;
226 *executable*) # but shell scripts are "executable" too...
227 case $win32_fileres in
228 *MS\ Windows\ PE\ Intel*)
229 win32_libid_type="x86 DLL"
230 ;;
231 esac
232 ;;
233 esac
234 $echo $win32_libid_type
235 }
236
237
238 # func_infer_tag arg
239 # Infer tagged configuration to use if any are available and
240 # if one wasn't chosen via the "--tag" command line option.
241 # Only attempt this if the compiler in the base compile
242 # command doesn't match the default compiler.
243 # arg is usually of the form 'gcc ...'
244 func_infer_tag ()
245 {
246 if test -n "$available_tags" && test -z "$tagname"; then
247 CC_quoted=
248 for arg in $CC; do
249 case $arg in
250 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
251 arg="\"$arg\""
252 ;;
253 esac
254 CC_quoted="$CC_quoted $arg"
255 done
256 case $@ in
257 # Blanks in the command may have been stripped by the calling shell,
258 # but not from the CC environment variable when configure was run.
259 " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;;
260 # Blanks at the start of $base_compile will cause this to fail
261 # if we don't check for them as well.
262 *)
263 for z in $available_tags; do
264 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
265 # Evaluate the configuration.
266 eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
267 CC_quoted=
268 for arg in $CC; do
269 # Double-quote args containing other shell metacharacters.
270 case $arg in
271 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
272 arg="\"$arg\""
273 ;;
274 esac
275 CC_quoted="$CC_quoted $arg"
276 done
277 case "$@ " in
278 " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
279 # The compiler in the base compile command matches
280 # the one in the tagged configuration.
281 # Assume this is the tagged configuration we want.
282 tagname=$z
283 break
284 ;;
285 esac
286 fi
287 done
288 # If $tagname still isn't set, then no tagged configuration
289 # was found and let the user know that the "--tag" command
290 # line option must be used.
291 if test -z "$tagname"; then
292 $echo "$modename: unable to infer tagged configuration"
293 $echo "$modename: specify a tag with \`--tag'" 1>&2
294 exit $EXIT_FAILURE
295 # else
296 # $echo "$modename: using $tagname tagged configuration"
297 fi
298 ;;
299 esac
300 fi
301 }
302
303
304 # func_extract_an_archive dir oldlib
305 func_extract_an_archive ()
306 {
307 f_ex_an_ar_dir="$1"; shift
308 f_ex_an_ar_oldlib="$1"
309
310 $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)"
311 $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $?
312 if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
313 :
314 else
315 $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2
316 exit $EXIT_FAILURE
317 fi
318 }
319
320 # func_extract_archives gentop oldlib ...
321 func_extract_archives ()
322 {
323 my_gentop="$1"; shift
324 my_oldlibs=${1+"$@"}
325 my_oldobjs=""
326 my_xlib=""
327 my_xabs=""
328 my_xdir=""
329 my_status=""
330
331 $show "${rm}r $my_gentop"
332 $run ${rm}r "$my_gentop"
333 $show "$mkdir $my_gentop"
334 $run $mkdir "$my_gentop"
335 my_status=$?
336 if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then
337 exit $my_status
338 fi
339
340 for my_xlib in $my_oldlibs; do
341 # Extract the objects.
342 case $my_xlib in
343 [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
344 *) my_xabs=`pwd`"/$my_xlib" ;;
345 esac
346 my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
347 my_xlib_u=$my_xlib
348 while :; do
349 case " $extracted_archives " in
350 *" $my_xlib_u "*)
351 extracted_serial=`expr $extracted_serial + 1`
352 my_xlib_u=lt$extracted_serial-$my_xlib ;;
353 *) break ;;
354 esac
355 done
356 extracted_archives="$extracted_archives $my_xlib_u"
357 my_xdir="$my_gentop/$my_xlib_u"
358
359 $show "${rm}r $my_xdir"
360 $run ${rm}r "$my_xdir"
361 $show "$mkdir $my_xdir"
362 $run $mkdir "$my_xdir"
363 exit_status=$?
364 if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then
365 exit $exit_status
366 fi
367 case $host in
368 *-darwin*)
369 $show "Extracting $my_xabs"
370 # Do not bother doing anything if just a dry run
371 if test -z "$run"; then
372 darwin_orig_dir=`pwd`
373 cd $my_xdir || exit $?
374 darwin_archive=$my_xabs
375 darwin_curdir=`pwd`
376 darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'`
377 darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null`
378 if test -n "$darwin_arches"; then
379 darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'`
380 darwin_arch=
381 $show "$darwin_base_archive has multiple architectures $darwin_arches"
382 for darwin_arch in $darwin_arches ; do
383 mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
384 lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
385 cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
386 func_extract_an_archive "`pwd`" "${darwin_base_archive}"
387 cd "$darwin_curdir"
388 $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
389 done # $darwin_arches
390 ## Okay now we have a bunch of thin objects, gotta fatten them up :)
391 darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP`
392 darwin_file=
393 darwin_files=
394 for darwin_file in $darwin_filelist; do
395 darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
396 lipo -create -output "$darwin_file" $darwin_files
397 done # $darwin_filelist
398 ${rm}r unfat-$$
399 cd "$darwin_orig_dir"
400 else
401 cd "$darwin_orig_dir"
402 func_extract_an_archive "$my_xdir" "$my_xabs"
403 fi # $darwin_arches
404 fi # $run
405 ;;
406 *)
407 func_extract_an_archive "$my_xdir" "$my_xabs"
408 ;;
409 esac
410 my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
411 done
412 func_extract_archives_result="$my_oldobjs"
413 }
414 # End of Shell function definitions
415 #####################################
416
417 # Darwin sucks
418 eval std_shrext=\"$shrext_cmds\"
419
420 disable_libs=no
421
422 # Parse our command line options once, thoroughly.
423 while test "$#" -gt 0
424 do
425 arg="$1"
426 shift
427
428 case $arg in
429 -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
430 *) optarg= ;;
431 esac
432
433 # If the previous option needs an argument, assign it.
434 if test -n "$prev"; then
435 case $prev in
436 execute_dlfiles)
437 execute_dlfiles="$execute_dlfiles $arg"
438 ;;
439 tag)
440 tagname="$arg"
441 preserve_args="${preserve_args}=$arg"
442
443 # Check whether tagname contains only valid characters
444 case $tagname in
445 *[!-_A-Za-z0-9,/]*)
446 $echo "$progname: invalid tag name: $tagname" 1>&2
447 exit $EXIT_FAILURE
448 ;;
449 esac
450
451 case $tagname in
452 CC)
453 # Don't test for the "default" C tag, as we know, it's there, but
454 # not specially marked.
455 ;;
456 *)
457 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then
458 taglist="$taglist $tagname"
459 # Evaluate the configuration.
460 eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`"
461 else
462 $echo "$progname: ignoring unknown tag $tagname" 1>&2
463 fi
464 ;;
465 esac
466 ;;
467 *)
468 eval "$prev=\$arg"
469 ;;
470 esac
471
472 prev=
473 prevopt=
474 continue
475 fi
476
477 # Have we seen a non-optional argument yet?
478 case $arg in
479 --help)
480 show_help=yes
481 ;;
482
483 --version)
484 echo "\
485 $PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP
486
487 Copyright (C) 2007 Free Software Foundation, Inc.
488 This is free software; see the source for copying conditions. There is NO
489 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
490 exit $?
491 ;;
492
493 --config)
494 ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath
495 # Now print the configurations for the tags.
496 for tagname in $taglist; do
497 ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
498 done
499 exit $?
500 ;;
501
502 --debug)
503 $echo "$progname: enabling shell trace mode"
504 set -x
505 preserve_args="$preserve_args $arg"
506 ;;
507
508 --dry-run | -n)
509 run=:
510 ;;
511
512 --features)
513 $echo "host: $host"
514 if test "$build_libtool_libs" = yes; then
515 $echo "enable shared libraries"
516 else
517 $echo "disable shared libraries"
518 fi
519 if test "$build_old_libs" = yes; then
520 $echo "enable static libraries"
521 else
522 $echo "disable static libraries"
523 fi
524 exit $?
525 ;;
526
527 --finish) mode="finish" ;;
528
529 --mode) prevopt="--mode" prev=mode ;;
530 --mode=*) mode="$optarg" ;;
531
532 --preserve-dup-deps) duplicate_deps="yes" ;;
533
534 --quiet | --silent)
535 show=:
536 preserve_args="$preserve_args $arg"
537 ;;
538
539 --tag)
540 prevopt="--tag"
541 prev=tag
542 preserve_args="$preserve_args --tag"
543 ;;
544 --tag=*)
545 set tag "$optarg" ${1+"$@"}
546 shift
547 prev=tag
548 preserve_args="$preserve_args --tag"
549 ;;
550
551 -dlopen)
552 prevopt="-dlopen"
553 prev=execute_dlfiles
554 ;;
555
556 -*)
557 $echo "$modename: unrecognized option \`$arg'" 1>&2
558 $echo "$help" 1>&2
559 exit $EXIT_FAILURE
560 ;;
561
562 *)
563 nonopt="$arg"
564 break
565 ;;
566 esac
567 done
568
569 if test -n "$prevopt"; then
570 $echo "$modename: option \`$prevopt' requires an argument" 1>&2
571 $echo "$help" 1>&2
572 exit $EXIT_FAILURE
573 fi
574
575 case $disable_libs in
576 no)
577 ;;
578 shared)
579 build_libtool_libs=no
580 build_old_libs=yes
581 ;;
582 static)
583 build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
584 ;;
585 esac
586
587 # If this variable is set in any of the actions, the command in it
588 # will be execed at the end. This prevents here-documents from being
589 # left over by shells.
590 exec_cmd=
591
592 if test -z "$show_help"; then
593
594 # Infer the operation mode.
595 if test -z "$mode"; then
596 $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
597 $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2
598 case $nonopt in
599 *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
600 mode=link
601 for arg
602 do
603 case $arg in
604 -c)
605 mode=compile
606 break
607 ;;
608 esac
609 done
610 ;;
611 *db | *dbx | *strace | *truss)
612 mode=execute
613 ;;
614 *install*|cp|mv)
615 mode=install
616 ;;
617 *rm)
618 mode=uninstall
619 ;;
620 *)
621 # If we have no mode, but dlfiles were specified, then do execute mode.
622 test -n "$execute_dlfiles" && mode=execute
623
624 # Just use the default operation mode.
625 if test -z "$mode"; then
626 if test -n "$nonopt"; then
627 $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2
628 else
629 $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2
630 fi
631 fi
632 ;;
633 esac
634 fi
635
636 # Only execute mode is allowed to have -dlopen flags.
637 if test -n "$execute_dlfiles" && test "$mode" != execute; then
638 $echo "$modename: unrecognized option \`-dlopen'" 1>&2
639 $echo "$help" 1>&2
640 exit $EXIT_FAILURE
641 fi
642
643 # Change the help message to a mode-specific one.
644 generic_help="$help"
645 help="Try \`$modename --help --mode=$mode' for more information."
646
647 # These modes are in order of execution frequency so that they run quickly.
648 case $mode in
649 # libtool compile mode
650 compile)
651 modename="$modename: compile"
652 # Get the compilation command and the source file.
653 base_compile=
654 srcfile="$nonopt" # always keep a non-empty value in "srcfile"
655 suppress_opt=yes
656 suppress_output=
657 arg_mode=normal
658 libobj=
659 later=
660
661 for arg
662 do
663 case $arg_mode in
664 arg )
665 # do not "continue". Instead, add this to base_compile
666 lastarg="$arg"
667 arg_mode=normal
668 ;;
669
670 target )
671 libobj="$arg"
672 arg_mode=normal
673 continue
674 ;;
675
676 normal )
677 # Accept any command-line options.
678 case $arg in
679 -o)
680 if test -n "$libobj" ; then
681 $echo "$modename: you cannot specify \`-o' more than once" 1>&2
682 exit $EXIT_FAILURE
683 fi
684 arg_mode=target
685 continue
686 ;;
687
688 -static | -prefer-pic | -prefer-non-pic)
689 later="$later $arg"
690 continue
691 ;;
692
693 -no-suppress)
694 suppress_opt=no
695 continue
696 ;;
697
698 -Xcompiler)
699 arg_mode=arg # the next one goes into the "base_compile" arg list
700 continue # The current "srcfile" will either be retained or
701 ;; # replaced later. I would guess that would be a bug.
702
703 -Wc,*)
704 args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
705 lastarg=
706 save_ifs="$IFS"; IFS=','
707 for arg in $args; do
708 IFS="$save_ifs"
709
710 # Double-quote args containing other shell metacharacters.
711 # Many Bourne shells cannot handle close brackets correctly
712 # in scan sets, so we specify it separately.
713 case $arg in
714 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
715 arg="\"$arg\""
716 ;;
717 esac
718 lastarg="$lastarg $arg"
719 done
720 IFS="$save_ifs"
721 lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
722
723 # Add the arguments to base_compile.
724 base_compile="$base_compile $lastarg"
725 continue
726 ;;
727
728 * )
729 # Accept the current argument as the source file.
730 # The previous "srcfile" becomes the current argument.
731 #
732 lastarg="$srcfile"
733 srcfile="$arg"
734 ;;
735 esac # case $arg
736 ;;
737 esac # case $arg_mode
738
739 # Aesthetically quote the previous argument.
740 lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
741
742 case $lastarg in
743 # Double-quote args containing other shell metacharacters.
744 # Many Bourne shells cannot handle close brackets correctly
745 # in scan sets, and some SunOS ksh mistreat backslash-escaping
746 # in scan sets (worked around with variable expansion),
747 # and furthermore cannot handle '|' '&' '(' ')' in scan sets
748 # at all, so we specify them separately.
749 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
750 lastarg="\"$lastarg\""
751 ;;
752 esac
753
754 base_compile="$base_compile $lastarg"
755 done # for arg
756
757 case $arg_mode in
758 arg)
759 $echo "$modename: you must specify an argument for -Xcompile"
760 exit $EXIT_FAILURE
761 ;;
762 target)
763 $echo "$modename: you must specify a target with \`-o'" 1>&2
764 exit $EXIT_FAILURE
765 ;;
766 *)
767 # Get the name of the library object.
768 [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
769 ;;
770 esac
771
772 # Recognize several different file suffixes.
773 # If the user specifies -o file.o, it is replaced with file.lo
774 xform='[cCFSifmso]'
775 case $libobj in
776 *.ada) xform=ada ;;
777 *.adb) xform=adb ;;
778 *.ads) xform=ads ;;
779 *.asm) xform=asm ;;
780 *.c++) xform=c++ ;;
781 *.cc) xform=cc ;;
782 *.ii) xform=ii ;;
783 *.class) xform=class ;;
784 *.cpp) xform=cpp ;;
785 *.cxx) xform=cxx ;;
786 *.[fF][09]?) xform=[fF][09]. ;;
787 *.for) xform=for ;;
788 *.java) xform=java ;;
789 *.obj) xform=obj ;;
790 esac
791
792 libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
793
794 case $libobj in
795 *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
796 *)
797 $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
798 exit $EXIT_FAILURE
799 ;;
800 esac
801
802 func_infer_tag $base_compile
803
804 for arg in $later; do
805 case $arg in
806 -static)
807 build_old_libs=yes
808 continue
809 ;;
810
811 -prefer-pic)
812 pic_mode=yes
813 continue
814 ;;
815
816 -prefer-non-pic)
817 pic_mode=no
818 continue
819 ;;
820 esac
821 done
822
823 qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"`
824 case $qlibobj in
825 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
826 qlibobj="\"$qlibobj\"" ;;
827 esac
828 test "X$libobj" != "X$qlibobj" \
829 && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \
830 && $echo "$modename: libobj name \`$libobj' may not contain shell special characters."
831 objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
832 xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
833 if test "X$xdir" = "X$obj"; then
834 xdir=
835 else
836 xdir=$xdir/
837 fi
838 lobj=${xdir}$objdir/$objname
839
840 if test -z "$base_compile"; then
841 $echo "$modename: you must specify a compilation command" 1>&2
842 $echo "$help" 1>&2
843 exit $EXIT_FAILURE
844 fi
845
846 # Delete any leftover library objects.
847 if test "$build_old_libs" = yes; then
848 removelist="$obj $lobj $libobj ${libobj}T"
849 else
850 removelist="$lobj $libobj ${libobj}T"
851 fi
852
853 $run $rm $removelist
854 trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
855
856 # On Cygwin there's no "real" PIC flag so we must build both object types
857 case $host_os in
858 cygwin* | mingw* | pw32* | os2*)
859 pic_mode=default
860 ;;
861 esac
862 if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
863 # non-PIC code in shared libraries is not supported
864 pic_mode=default
865 fi
866
867 # Calculate the filename of the output object if compiler does
868 # not support -o with -c
869 if test "$compiler_c_o" = no; then
870 output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
871 lockfile="$output_obj.lock"
872 removelist="$removelist $output_obj $lockfile"
873 trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
874 else
875 output_obj=
876 need_locks=no
877 lockfile=
878 fi
879
880 # Lock this critical section if it is needed
881 # We use this script file to make the link, it avoids creating a new file
882 if test "$need_locks" = yes; then
883 until $run ln "$progpath" "$lockfile" 2>/dev/null; do
884 $show "Waiting for $lockfile to be removed"
885 sleep 2
886 done
887 elif test "$need_locks" = warn; then
888 if test -f "$lockfile"; then
889 $echo "\
890 *** ERROR, $lockfile exists and contains:
891 `cat $lockfile 2>/dev/null`
892
893 This indicates that another process is trying to use the same
894 temporary object file, and libtool could not work around it because
895 your compiler does not support \`-c' and \`-o' together. If you
896 repeat this compilation, it may succeed, by chance, but you had better
897 avoid parallel builds (make -j) in this platform, or get a better
898 compiler."
899
900 $run $rm $removelist
901 exit $EXIT_FAILURE
902 fi
903 $echo "$srcfile" > "$lockfile"
904 fi
905
906 if test -n "$fix_srcfile_path"; then
907 eval srcfile=\"$fix_srcfile_path\"
908 fi
909 qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"`
910 case $qsrcfile in
911 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
912 qsrcfile="\"$qsrcfile\"" ;;
913 esac
914
915 $run $rm "$libobj" "${libobj}T"
916
917 # Create a libtool object file (analogous to a ".la" file),
918 # but don't create it if we're doing a dry run.
919 test -z "$run" && cat > ${libobj}T <<EOF
920 # $libobj - a libtool object file
921 # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
922 #
923 # Please DO NOT delete this file!
924 # It is necessary for linking the library.
925
926 # Name of the PIC object.
927 EOF
928
929 # Only build a PIC object if we are building libtool libraries.
930 if test "$build_libtool_libs" = yes; then
931 # Without this assignment, base_compile gets emptied.
932 fbsd_hideous_sh_bug=$base_compile
933
934 if test "$pic_mode" != no; then
935 command="$base_compile $qsrcfile $pic_flag"
936 else
937 # Don't build PIC code
938 command="$base_compile $qsrcfile"
939 fi
940
941 if test ! -d "${xdir}$objdir"; then
942 $show "$mkdir ${xdir}$objdir"
943 $run $mkdir ${xdir}$objdir
944 exit_status=$?
945 if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then
946 exit $exit_status
947 fi
948 fi
949
950 if test -z "$output_obj"; then
951 # Place PIC objects in $objdir
952 command="$command -o $lobj"
953 fi
954
955 $run $rm "$lobj" "$output_obj"
956
957 $show "$command"
958 if $run eval "$command"; then :
959 else
960 test -n "$output_obj" && $run $rm $removelist
961 exit $EXIT_FAILURE
962 fi
963
964 if test "$need_locks" = warn &&
965 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
966 $echo "\
967 *** ERROR, $lockfile contains:
968 `cat $lockfile 2>/dev/null`
969
970 but it should contain:
971 $srcfile
972
973 This indicates that another process is trying to use the same
974 temporary object file, and libtool could not work around it because
975 your compiler does not support \`-c' and \`-o' together. If you
976 repeat this compilation, it may succeed, by chance, but you had better
977 avoid parallel builds (make -j) in this platform, or get a better
978 compiler."
979
980 $run $rm $removelist
981 exit $EXIT_FAILURE
982 fi
983
984 # Just move the object if needed, then go on to compile the next one
985 if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
986 $show "$mv $output_obj $lobj"
987 if $run $mv $output_obj $lobj; then :
988 else
989 error=$?
990 $run $rm $removelist
991 exit $error
992 fi
993 fi
994
995 # Append the name of the PIC object to the libtool object file.
996 test -z "$run" && cat >> ${libobj}T <<EOF
997 pic_object='$objdir/$objname'
998
999 EOF
1000
1001 # Allow error messages only from the first compilation.
1002 if test "$suppress_opt" = yes; then
1003 suppress_output=' >/dev/null 2>&1'
1004 fi
1005 else
1006 # No PIC object so indicate it doesn't exist in the libtool
1007 # object file.
1008 test -z "$run" && cat >> ${libobj}T <<EOF
1009 pic_object=none
1010
1011 EOF
1012 fi
1013
1014 # Only build a position-dependent object if we build old libraries.
1015 if test "$build_old_libs" = yes; then
1016 if test "$pic_mode" != yes; then
1017 # Don't build PIC code
1018 command="$base_compile $qsrcfile"
1019 else
1020 command="$base_compile $qsrcfile $pic_flag"
1021 fi
1022 if test "$compiler_c_o" = yes; then
1023 command="$command -o $obj"
1024 fi
1025
1026 # Suppress compiler output if we already did a PIC compilation.
1027 command="$command$suppress_output"
1028 $run $rm "$obj" "$output_obj"
1029 $show "$command"
1030 if $run eval "$command"; then :
1031 else
1032 $run $rm $removelist
1033 exit $EXIT_FAILURE
1034 fi
1035
1036 if test "$need_locks" = warn &&
1037 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
1038 $echo "\
1039 *** ERROR, $lockfile contains:
1040 `cat $lockfile 2>/dev/null`
1041
1042 but it should contain:
1043 $srcfile
1044
1045 This indicates that another process is trying to use the same
1046 temporary object file, and libtool could not work around it because
1047 your compiler does not support \`-c' and \`-o' together. If you
1048 repeat this compilation, it may succeed, by chance, but you had better
1049 avoid parallel builds (make -j) in this platform, or get a better
1050 compiler."
1051
1052 $run $rm $removelist
1053 exit $EXIT_FAILURE
1054 fi
1055
1056 # Just move the object if needed
1057 if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
1058 $show "$mv $output_obj $obj"
1059 if $run $mv $output_obj $obj; then :
1060 else
1061 error=$?
1062 $run $rm $removelist
1063 exit $error
1064 fi
1065 fi
1066
1067 # Append the name of the non-PIC object the libtool object file.
1068 # Only append if the libtool object file exists.
1069 test -z "$run" && cat >> ${libobj}T <<EOF
1070 # Name of the non-PIC object.
1071 non_pic_object='$objname'
1072
1073 EOF
1074 else
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.
1079 non_pic_object=none
1080
1081 EOF
1082 fi
1083
1084 $run $mv "${libobj}T" "${libobj}"
1085
1086 # Unlock the critical section if it was locked
1087 if test "$need_locks" != no; then
1088 $run $rm "$lockfile"
1089 fi
1090
1091 exit $EXIT_SUCCESS
1092 ;;
1093
1094 # libtool link mode
1095 link | relink)
1096 modename="$modename: link"
1097 case $host in
1098 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
1099 # It is impossible to link a dll without this setting, and
1100 # we shouldn't force the makefile maintainer to figure out
1101 # which system we are compiling for in order to pass an extra
1102 # flag for every libtool invocation.
1103 # allow_undefined=no
1104
1105 # FIXME: Unfortunately, there are problems with the above when trying
1106 # to make a dll which has undefined symbols, in which case not
1107 # even a static library is built. For now, we need to specify
1108 # -no-undefined on the libtool link line when we can be certain
1109 # that all symbols are satisfied, otherwise we get a static library.
1110 allow_undefined=yes
1111 ;;
1112 *)
1113 allow_undefined=yes
1114 ;;
1115 esac
1116 libtool_args="$nonopt"
1117 base_compile="$nonopt $@"
1118 compile_command="$nonopt"
1119 finalize_command="$nonopt"
1120
1121 compile_rpath=
1122 finalize_rpath=
1123 compile_shlibpath=
1124 finalize_shlibpath=
1125 convenience=
1126 old_convenience=
1127 deplibs=
1128 old_deplibs=
1129 compiler_flags=
1130 linker_flags=
1131 dllsearchpath=
1132 lib_search_path=`pwd`
1133 inst_prefix_dir=
1134
1135 avoid_version=no
1136 dlfiles=
1137 dlprefiles=
1138 dlself=no
1139 export_dynamic=no
1140 export_symbols=
1141 export_symbols_regex=
1142 generated=
1143 libobjs=
1144 ltlibs=
1145 module=no
1146 no_install=no
1147 objs=
1148 non_pic_objects=
1149 notinst_path= # paths that contain not-installed libtool libraries
1150 precious_files_regex=
1151 prefer_static_libs=no
1152 preload=no
1153 prev=
1154 prevarg=
1155 release=
1156 rpath=
1157 xrpath=
1158 perm_rpath=
1159 temp_rpath=
1160 thread_safe=no
1161 vinfo=
1162 vinfo_number=no
1163
1164 func_infer_tag $base_compile
1165
1166 # We need to know -static, to get the right output filenames.
1167 for arg
1168 do
1169 case $arg in
1170 -all-static | -static | -static-libtool-libs)
1171 case $arg in
1172 -all-static)
1173 if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
1174 $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
1175 fi
1176 if test -n "$link_static_flag"; then
1177 dlopen_self=$dlopen_self_static
1178 fi
1179 prefer_static_libs=yes
1180 ;;
1181 -static)
1182 if test -z "$pic_flag" && test -n "$link_static_flag"; then
1183 dlopen_self=$dlopen_self_static
1184 fi
1185 prefer_static_libs=built
1186 ;;
1187 -static-libtool-libs)
1188 if test -z "$pic_flag" && test -n "$link_static_flag"; then
1189 dlopen_self=$dlopen_self_static
1190 fi
1191 prefer_static_libs=yes
1192 ;;
1193 esac
1194 build_libtool_libs=no
1195 build_old_libs=yes
1196 break
1197 ;;
1198 esac
1199 done
1200
1201 # See if our shared archives depend on static archives.
1202 test -n "$old_archive_from_new_cmds" && build_old_libs=yes
1203
1204 # Go through the arguments, transforming them on the way.
1205 while test "$#" -gt 0; do
1206 arg="$1"
1207 shift
1208 case $arg in
1209 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1210 qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
1211 ;;
1212 *) qarg=$arg ;;
1213 esac
1214 libtool_args="$libtool_args $qarg"
1215
1216 # If the previous option needs an argument, assign it.
1217 if test -n "$prev"; then
1218 case $prev in
1219 output)
1220 compile_command="$compile_command @OUTPUT@"
1221 finalize_command="$finalize_command @OUTPUT@"
1222 ;;
1223 esac
1224
1225 case $prev in
1226 dlfiles|dlprefiles)
1227 if test "$preload" = no; then
1228 # Add the symbol object into the linking commands.
1229 compile_command="$compile_command @SYMFILE@"
1230 finalize_command="$finalize_command @SYMFILE@"
1231 preload=yes
1232 fi
1233 case $arg in
1234 *.la | *.lo) ;; # We handle these cases below.
1235 force)
1236 if test "$dlself" = no; then
1237 dlself=needless
1238 export_dynamic=yes
1239 fi
1240 prev=
1241 continue
1242 ;;
1243 self)
1244 if test "$prev" = dlprefiles; then
1245 dlself=yes
1246 elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
1247 dlself=yes
1248 else
1249 dlself=needless
1250 export_dynamic=yes
1251 fi
1252 prev=
1253 continue
1254 ;;
1255 *)
1256 if test "$prev" = dlfiles; then
1257 dlfiles="$dlfiles $arg"
1258 else
1259 dlprefiles="$dlprefiles $arg"
1260 fi
1261 prev=
1262 continue
1263 ;;
1264 esac
1265 ;;
1266 expsyms)
1267 export_symbols="$arg"
1268 if test ! -f "$arg"; then
1269 $echo "$modename: symbol file \`$arg' does not exist"
1270 exit $EXIT_FAILURE
1271 fi
1272 prev=
1273 continue
1274 ;;
1275 expsyms_regex)
1276 export_symbols_regex="$arg"
1277 prev=
1278 continue
1279 ;;
1280 inst_prefix)
1281 inst_prefix_dir="$arg"
1282 prev=
1283 continue
1284 ;;
1285 precious_regex)
1286 precious_files_regex="$arg"
1287 prev=
1288 continue
1289 ;;
1290 release)
1291 release="-$arg"
1292 prev=
1293 continue
1294 ;;
1295 objectlist)
1296 if test -f "$arg"; then
1297 save_arg=$arg
1298 moreargs=
1299 for fil in `cat $save_arg`
1300 do
1301 # moreargs="$moreargs $fil"
1302 arg=$fil
1303 # A libtool-controlled object.
1304
1305 # Check to see that this really is a libtool object.
1306 if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
1307 pic_object=
1308 non_pic_object=
1309
1310 # Read the .lo file
1311 # If there is no directory component, then add one.
1312 case $arg in
1313 */* | *\\*) . $arg ;;
1314 *) . ./$arg ;;
1315 esac
1316
1317 if test -z "$pic_object" || \
1318 test -z "$non_pic_object" ||
1319 test "$pic_object" = none && \
1320 test "$non_pic_object" = none; then
1321 $echo "$modename: cannot find name of object for \`$arg'" 1>&2
1322 exit $EXIT_FAILURE
1323 fi
1324
1325 # Extract subdirectory from the argument.
1326 xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
1327 if test "X$xdir" = "X$arg"; then
1328 xdir=
1329 else
1330 xdir="$xdir/"
1331 fi
1332
1333 if test "$pic_object" != none; then
1334 # Prepend the subdirectory the object is found in.
1335 pic_object="$xdir$pic_object"
1336
1337 if test "$prev" = dlfiles; then
1338 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
1339 dlfiles="$dlfiles $pic_object"
1340 prev=
1341 continue
1342 else
1343 # If libtool objects are unsupported, then we need to preload.
1344 prev=dlprefiles
1345 fi
1346 fi
1347
1348 # CHECK ME: I think I busted this. -Ossama
1349 if test "$prev" = dlprefiles; then
1350 # Preload the old-style object.
1351 dlprefiles="$dlprefiles $pic_object"
1352 prev=
1353 fi
1354
1355 # A PIC object.
1356 libobjs="$libobjs $pic_object"
1357 arg="$pic_object"
1358 fi
1359
1360 # Non-PIC object.
1361 if test "$non_pic_object" != none; then
1362 # Prepend the subdirectory the object is found in.
1363 non_pic_object="$xdir$non_pic_object"
1364
1365 # A standard non-PIC object
1366 non_pic_objects="$non_pic_objects $non_pic_object"
1367 if test -z "$pic_object" || test "$pic_object" = none ; then
1368 arg="$non_pic_object"
1369 fi
1370 else
1371 # If the PIC object exists, use it instead.
1372 # $xdir was prepended to $pic_object above.
1373 non_pic_object="$pic_object"
1374 non_pic_objects="$non_pic_objects $non_pic_object"
1375 fi
1376 else
1377 # Only an error if not doing a dry-run.
1378 if test -z "$run"; then
1379 $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
1380 exit $EXIT_FAILURE
1381 else
1382 # Dry-run case.
1383
1384 # Extract subdirectory from the argument.
1385 xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
1386 if test "X$xdir" = "X$arg"; then
1387 xdir=
1388 else
1389 xdir="$xdir/"
1390 fi
1391
1392 pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
1393 non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
1394 libobjs="$libobjs $pic_object"
1395 non_pic_objects="$non_pic_objects $non_pic_object"
1396 fi
1397 fi
1398 done
1399 else
1400 $echo "$modename: link input file \`$save_arg' does not exist"
1401 exit $EXIT_FAILURE
1402 fi
1403 arg=$save_arg
1404 prev=
1405 continue
1406 ;;
1407 rpath | xrpath)
1408 # We need an absolute path.
1409 case $arg in
1410 [\\/]* | [A-Za-z]:[\\/]*) ;;
1411 *)
1412 $echo "$modename: only absolute run-paths are allowed" 1>&2
1413 exit $EXIT_FAILURE
1414 ;;
1415 esac
1416 if test "$prev" = rpath; then
1417 case "$rpath " in
1418 *" $arg "*) ;;
1419 *) rpath="$rpath $arg" ;;
1420 esac
1421 else
1422 case "$xrpath " in
1423 *" $arg "*) ;;
1424 *) xrpath="$xrpath $arg" ;;
1425 esac
1426 fi
1427 prev=
1428 continue
1429 ;;
1430 xcompiler)
1431 compiler_flags="$compiler_flags $qarg"
1432 prev=
1433 compile_command="$compile_command $qarg"
1434 finalize_command="$finalize_command $qarg"
1435 continue
1436 ;;
1437 xlinker)
1438 linker_flags="$linker_flags $qarg"
1439 compiler_flags="$compiler_flags $wl$qarg"
1440 prev=
1441 compile_command="$compile_command $wl$qarg"
1442 finalize_command="$finalize_command $wl$qarg"
1443 continue
1444 ;;
1445 xcclinker)
1446 linker_flags="$linker_flags $qarg"
1447 compiler_flags="$compiler_flags $qarg"
1448 prev=
1449 compile_command="$compile_command $qarg"
1450 finalize_command="$finalize_command $qarg"
1451 continue
1452 ;;
1453 shrext)
1454 shrext_cmds="$arg"
1455 prev=
1456 continue
1457 ;;
1458 darwin_framework|darwin_framework_skip)
1459 test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg"
1460 compile_command="$compile_command $arg"
1461 finalize_command="$finalize_command $arg"
1462 prev=
1463 continue
1464 ;;
1465 *)
1466 eval "$prev=\"\$arg\""
1467 prev=
1468 continue
1469 ;;
1470 esac
1471 fi # test -n "$prev"
1472
1473 prevarg="$arg"
1474
1475 case $arg in
1476 -all-static)
1477 if test -n "$link_static_flag"; then
1478 compile_command="$compile_command $link_static_flag"
1479 finalize_command="$finalize_command $link_static_flag"
1480 fi
1481 continue
1482 ;;
1483
1484 -allow-undefined)
1485 # FIXME: remove this flag sometime in the future.
1486 $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
1487 continue
1488 ;;
1489
1490 -avoid-version)
1491 avoid_version=yes
1492 continue
1493 ;;
1494
1495 -dlopen)
1496 prev=dlfiles
1497 continue
1498 ;;
1499
1500 -dlpreopen)
1501 prev=dlprefiles
1502 continue
1503 ;;
1504
1505 -export-dynamic)
1506 export_dynamic=yes
1507 continue
1508 ;;
1509
1510 -export-symbols | -export-symbols-regex)
1511 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
1512 $echo "$modename: more than one -exported-symbols argument is not allowed"
1513 exit $EXIT_FAILURE
1514 fi
1515 if test "X$arg" = "X-export-symbols"; then
1516 prev=expsyms
1517 else
1518 prev=expsyms_regex
1519 fi
1520 continue
1521 ;;
1522
1523 -framework|-arch|-isysroot)
1524 case " $CC " in
1525 *" ${arg} ${1} "* | *" ${arg} ${1} "*)
1526 prev=darwin_framework_skip ;;
1527 *) compiler_flags="$compiler_flags $arg"
1528 prev=darwin_framework ;;
1529 esac
1530 compile_command="$compile_command $arg"
1531 finalize_command="$finalize_command $arg"
1532 continue
1533 ;;
1534
1535 -inst-prefix-dir)
1536 prev=inst_prefix
1537 continue
1538 ;;
1539
1540 # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
1541 # so, if we see these flags be careful not to treat them like -L
1542 -L[A-Z][A-Z]*:*)
1543 case $with_gcc/$host in
1544 no/*-*-irix* | /*-*-irix*)
1545 compile_command="$compile_command $arg"
1546 finalize_command="$finalize_command $arg"
1547 ;;
1548 esac
1549 continue
1550 ;;
1551
1552 -L*)
1553 dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
1554 # We need an absolute path.
1555 case $dir in
1556 [\\/]* | [A-Za-z]:[\\/]*) ;;
1557 *)
1558 absdir=`cd "$dir" && pwd`
1559 if test -z "$absdir"; then
1560 $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
1561 absdir="$dir"
1562 notinst_path="$notinst_path $dir"
1563 fi
1564 dir="$absdir"
1565 ;;
1566 esac
1567 case "$deplibs " in
1568 *" -L$dir "*) ;;
1569 *)
1570 deplibs="$deplibs -L$dir"
1571 lib_search_path="$lib_search_path $dir"
1572 ;;
1573 esac
1574 case $host in
1575 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
1576 testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'`
1577 case :$dllsearchpath: in
1578 *":$dir:"*) ;;
1579 *) dllsearchpath="$dllsearchpath:$dir";;
1580 esac
1581 case :$dllsearchpath: in
1582 *":$testbindir:"*) ;;
1583 *) dllsearchpath="$dllsearchpath:$testbindir";;
1584 esac
1585 ;;
1586 esac
1587 continue
1588 ;;
1589
1590 -l*)
1591 if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
1592 case $host in
1593 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*)
1594 # These systems don't actually have a C or math library (as such)
1595 continue
1596 ;;
1597 *-*-os2*)
1598 # These systems don't actually have a C library (as such)
1599 test "X$arg" = "X-lc" && continue
1600 ;;
1601 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
1602 # Do not include libc due to us having libc/libc_r.
1603 test "X$arg" = "X-lc" && continue
1604 ;;
1605 *-*-rhapsody* | *-*-darwin1.[012])
1606 # Rhapsody C and math libraries are in the System framework
1607 deplibs="$deplibs -framework System"
1608 continue
1609 ;;
1610 *-*-sco3.2v5* | *-*-sco5v6*)
1611 # Causes problems with __ctype
1612 test "X$arg" = "X-lc" && continue
1613 ;;
1614 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
1615 # Compiler inserts libc in the correct place for threads to work
1616 test "X$arg" = "X-lc" && continue
1617 ;;
1618 esac
1619 elif test "X$arg" = "X-lc_r"; then
1620 case $host in
1621 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
1622 # Do not include libc_r directly, use -pthread flag.
1623 continue
1624 ;;
1625 esac
1626 fi
1627 deplibs="$deplibs $arg"
1628 continue
1629 ;;
1630
1631 # Tru64 UNIX uses -model [arg] to determine the layout of C++
1632 # classes, name mangling, and exception handling.
1633 -model)
1634 compile_command="$compile_command $arg"
1635 compiler_flags="$compiler_flags $arg"
1636 finalize_command="$finalize_command $arg"
1637 prev=xcompiler
1638 continue
1639 ;;
1640
1641 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
1642 compiler_flags="$compiler_flags $arg"
1643 compile_command="$compile_command $arg"
1644 finalize_command="$finalize_command $arg"
1645 continue
1646 ;;
1647
1648 -module)
1649 module=yes
1650 continue
1651 ;;
1652
1653 # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
1654 # -r[0-9][0-9]* specifies the processor on the SGI compiler
1655 # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
1656 # +DA*, +DD* enable 64-bit mode on the HP compiler
1657 # -q* pass through compiler args for the IBM compiler
1658 # -m* pass through architecture-specific compiler args for GCC
1659 # -m*, -t[45]*, -txscale* pass through architecture-specific
1660 # compiler args for GCC
1661 # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
1662 # -F/path gives path to uninstalled frameworks, gcc on darwin
1663 # @file GCC response files
1664 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
1665 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
1666
1667 # Unknown arguments in both finalize_command and compile_command need
1668 # to be aesthetically quoted because they are evaled later.
1669 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
1670 case $arg in
1671 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1672 arg="\"$arg\""
1673 ;;
1674 esac
1675 compile_command="$compile_command $arg"
1676 finalize_command="$finalize_command $arg"
1677 compiler_flags="$compiler_flags $arg"
1678 continue
1679 ;;
1680
1681 -shrext)
1682 prev=shrext
1683 continue
1684 ;;
1685
1686 -no-fast-install)
1687 fast_install=no
1688 continue
1689 ;;
1690
1691 -no-install)
1692 case $host in
1693 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin*)
1694 # The PATH hackery in wrapper scripts is required on Windows
1695 # and Darwin in order for the loader to find any dlls it needs.
1696 $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
1697 $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
1698 fast_install=no
1699 ;;
1700 *) no_install=yes ;;
1701 esac
1702 continue
1703 ;;
1704
1705 -no-undefined)
1706 allow_undefined=no
1707 continue
1708 ;;
1709
1710 -objectlist)
1711 prev=objectlist
1712 continue
1713 ;;
1714
1715 -o) prev=output ;;
1716
1717 -precious-files-regex)
1718 prev=precious_regex
1719 continue
1720 ;;
1721
1722 -release)
1723 prev=release
1724 continue
1725 ;;
1726
1727 -rpath)
1728 prev=rpath
1729 continue
1730 ;;
1731
1732 -R)
1733 prev=xrpath
1734 continue
1735 ;;
1736
1737 -R*)
1738 dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
1739 # We need an absolute path.
1740 case $dir in
1741 [\\/]* | [A-Za-z]:[\\/]*) ;;
1742 *)
1743 $echo "$modename: only absolute run-paths are allowed" 1>&2
1744 exit $EXIT_FAILURE
1745 ;;
1746 esac
1747 case "$xrpath " in
1748 *" $dir "*) ;;
1749 *) xrpath="$xrpath $dir" ;;
1750 esac
1751 continue
1752 ;;
1753
1754 -static | -static-libtool-libs)
1755 # The effects of -static are defined in a previous loop.
1756 # We used to do the same as -all-static on platforms that
1757 # didn't have a PIC flag, but the assumption that the effects
1758 # would be equivalent was wrong. It would break on at least
1759 # Digital Unix and AIX.
1760 continue
1761 ;;
1762
1763 -thread-safe)
1764 thread_safe=yes
1765 continue
1766 ;;
1767
1768 -version-info)
1769 prev=vinfo
1770 continue
1771 ;;
1772 -version-number)
1773 prev=vinfo
1774 vinfo_number=yes
1775 continue
1776 ;;
1777
1778 -Wc,*)
1779 args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
1780 arg=
1781 save_ifs="$IFS"; IFS=','
1782 for flag in $args; do
1783 IFS="$save_ifs"
1784 case $flag in
1785 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1786 flag="\"$flag\""
1787 ;;
1788 esac
1789 arg="$arg $wl$flag"
1790 compiler_flags="$compiler_flags $flag"
1791 done
1792 IFS="$save_ifs"
1793 arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
1794 ;;
1795
1796 -Wl,*)
1797 args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
1798 arg=
1799 save_ifs="$IFS"; IFS=','
1800 for flag in $args; do
1801 IFS="$save_ifs"
1802 case $flag in
1803 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1804 flag="\"$flag\""
1805 ;;
1806 esac
1807 arg="$arg $wl$flag"
1808 compiler_flags="$compiler_flags $wl$flag"
1809 linker_flags="$linker_flags $flag"
1810 done
1811 IFS="$save_ifs"
1812 arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
1813 ;;
1814
1815 -Xcompiler)
1816 prev=xcompiler
1817 continue
1818 ;;
1819
1820 -Xlinker)
1821 prev=xlinker
1822 continue
1823 ;;
1824
1825 -XCClinker)
1826 prev=xcclinker
1827 continue
1828 ;;
1829
1830 # Some other compiler flag.
1831 -* | +*)
1832 # Unknown arguments in both finalize_command and compile_command need
1833 # to be aesthetically quoted because they are evaled later.
1834 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
1835 case $arg in
1836 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1837 arg="\"$arg\""
1838 ;;
1839 esac
1840 ;;
1841
1842 *.$objext)
1843 # A standard object.
1844 objs="$objs $arg"
1845 ;;
1846
1847 *.lo)
1848 # A libtool-controlled object.
1849
1850 # Check to see that this really is a libtool object.
1851 if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
1852 pic_object=
1853 non_pic_object=
1854
1855 # Read the .lo file
1856 # If there is no directory component, then add one.
1857 case $arg in
1858 */* | *\\*) . $arg ;;
1859 *) . ./$arg ;;
1860 esac
1861
1862 if test -z "$pic_object" || \
1863 test -z "$non_pic_object" ||
1864 test "$pic_object" = none && \
1865 test "$non_pic_object" = none; then
1866 $echo "$modename: cannot find name of object for \`$arg'" 1>&2
1867 exit $EXIT_FAILURE
1868 fi
1869
1870 # Extract subdirectory from the argument.
1871 xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
1872 if test "X$xdir" = "X$arg"; then
1873 xdir=
1874 else
1875 xdir="$xdir/"
1876 fi
1877
1878 if test "$pic_object" != none; then
1879 # Prepend the subdirectory the object is found in.
1880 pic_object="$xdir$pic_object"
1881
1882 if test "$prev" = dlfiles; then
1883 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
1884 dlfiles="$dlfiles $pic_object"
1885 prev=
1886 continue
1887 else
1888 # If libtool objects are unsupported, then we need to preload.
1889 prev=dlprefiles
1890 fi
1891 fi
1892
1893 # CHECK ME: I think I busted this. -Ossama
1894 if test "$prev" = dlprefiles; then
1895 # Preload the old-style object.
1896 dlprefiles="$dlprefiles $pic_object"
1897 prev=
1898 fi
1899
1900 # A PIC object.
1901 libobjs="$libobjs $pic_object"
1902 arg="$pic_object"
1903 fi
1904
1905 # Non-PIC object.
1906 if test "$non_pic_object" != none; then
1907 # Prepend the subdirectory the object is found in.
1908 non_pic_object="$xdir$non_pic_object"
1909
1910 # A standard non-PIC object
1911 non_pic_objects="$non_pic_objects $non_pic_object"
1912 if test -z "$pic_object" || test "$pic_object" = none ; then
1913 arg="$non_pic_object"
1914 fi
1915 else
1916 # If the PIC object exists, use it instead.
1917 # $xdir was prepended to $pic_object above.
1918 non_pic_object="$pic_object"
1919 non_pic_objects="$non_pic_objects $non_pic_object"
1920 fi
1921 else
1922 # Only an error if not doing a dry-run.
1923 if test -z "$run"; then
1924 $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
1925 exit $EXIT_FAILURE
1926 else
1927 # Dry-run case.
1928
1929 # Extract subdirectory from the argument.
1930 xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
1931 if test "X$xdir" = "X$arg"; then
1932 xdir=
1933 else
1934 xdir="$xdir/"
1935 fi
1936
1937 pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
1938 non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
1939 libobjs="$libobjs $pic_object"
1940 non_pic_objects="$non_pic_objects $non_pic_object"
1941 fi
1942 fi
1943 ;;
1944
1945 *.$libext)
1946 # An archive.
1947 deplibs="$deplibs $arg"
1948 old_deplibs="$old_deplibs $arg"
1949 continue
1950 ;;
1951
1952 *.la)
1953 # A libtool-controlled library.
1954
1955 if test "$prev" = dlfiles; then
1956 # This library was specified with -dlopen.
1957 dlfiles="$dlfiles $arg"
1958 prev=
1959 elif test "$prev" = dlprefiles; then
1960 # The library was specified with -dlpreopen.
1961 dlprefiles="$dlprefiles $arg"
1962 prev=
1963 else
1964 deplibs="$deplibs $arg"
1965 fi
1966 continue
1967 ;;
1968
1969 # Some other compiler argument.
1970 *)
1971 # Unknown arguments in both finalize_command and compile_command need
1972 # to be aesthetically quoted because they are evaled later.
1973 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
1974 case $arg in
1975 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1976 arg="\"$arg\""
1977 ;;
1978 esac
1979 ;;
1980 esac # arg
1981
1982 # Now actually substitute the argument into the commands.
1983 if test -n "$arg"; then
1984 compile_command="$compile_command $arg"
1985 finalize_command="$finalize_command $arg"
1986 fi
1987 done # argument parsing loop
1988
1989 if test -n "$prev"; then
1990 $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
1991 $echo "$help" 1>&2
1992 exit $EXIT_FAILURE
1993 fi
1994
1995 if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
1996 eval arg=\"$export_dynamic_flag_spec\"
1997 compile_command="$compile_command $arg"
1998 finalize_command="$finalize_command $arg"
1999 fi
2000
2001 oldlibs=
2002 # calculate the name of the file, without its directory
2003 outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
2004 libobjs_save="$libobjs"
2005
2006 if test -n "$shlibpath_var"; then
2007 # get the directories listed in $shlibpath_var
2008 eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
2009 else
2010 shlib_search_path=
2011 fi
2012 eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
2013 eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
2014
2015 output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
2016 if test "X$output_objdir" = "X$output"; then
2017 output_objdir="$objdir"
2018 else
2019 output_objdir="$output_objdir/$objdir"
2020 fi
2021 # Create the object directory.
2022 if test ! -d "$output_objdir"; then
2023 $show "$mkdir $output_objdir"
2024 $run $mkdir $output_objdir
2025 exit_status=$?
2026 if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then
2027 exit $exit_status
2028 fi
2029 fi
2030
2031 # Determine the type of output
2032 case $output in
2033 "")
2034 $echo "$modename: you must specify an output file" 1>&2
2035 $echo "$help" 1>&2
2036 exit $EXIT_FAILURE
2037 ;;
2038 *.$libext) linkmode=oldlib ;;
2039 *.lo | *.$objext) linkmode=obj ;;
2040 *.la) linkmode=lib ;;
2041 *) linkmode=prog ;; # Anything else should be a program.
2042 esac
2043
2044 case $host in
2045 *cygwin* | *mingw* | *pw32*)
2046 # don't eliminate duplications in $postdeps and $predeps
2047 duplicate_compiler_generated_deps=yes
2048 ;;
2049 *)
2050 duplicate_compiler_generated_deps=$duplicate_deps
2051 ;;
2052 esac
2053 specialdeplibs=
2054
2055 libs=
2056 # Find all interdependent deplibs by searching for libraries
2057 # that are linked more than once (e.g. -la -lb -la)
2058 for deplib in $deplibs; do
2059 if test "X$duplicate_deps" = "Xyes" ; then
2060 case "$libs " in
2061 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
2062 esac
2063 fi
2064 libs="$libs $deplib"
2065 done
2066
2067 if test "$linkmode" = lib; then
2068 libs="$predeps $libs $compiler_lib_search_path $postdeps"
2069
2070 # Compute libraries that are listed more than once in $predeps
2071 # $postdeps and mark them as special (i.e., whose duplicates are
2072 # not to be eliminated).
2073 pre_post_deps=
2074 if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then
2075 for pre_post_dep in $predeps $postdeps; do
2076 case "$pre_post_deps " in
2077 *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
2078 esac
2079 pre_post_deps="$pre_post_deps $pre_post_dep"
2080 done
2081 fi
2082 pre_post_deps=
2083 fi
2084
2085 deplibs=
2086 newdependency_libs=
2087 newlib_search_path=
2088 need_relink=no # whether we're linking any uninstalled libtool libraries
2089 notinst_deplibs= # not-installed libtool libraries
2090 case $linkmode in
2091 lib)
2092 passes="conv link"
2093 for file in $dlfiles $dlprefiles; do
2094 case $file in
2095 *.la) ;;
2096 *)
2097 $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
2098 exit $EXIT_FAILURE
2099 ;;
2100 esac
2101 done
2102 ;;
2103 prog)
2104 compile_deplibs=
2105 finalize_deplibs=
2106 alldeplibs=no
2107 newdlfiles=
2108 newdlprefiles=
2109 passes="conv scan dlopen dlpreopen link"
2110 ;;
2111 *) passes="conv"
2112 ;;
2113 esac
2114 for pass in $passes; do
2115 if test "$linkmode,$pass" = "lib,link" ||
2116 test "$linkmode,$pass" = "prog,scan"; then
2117 libs="$deplibs"
2118 deplibs=
2119 fi
2120 if test "$linkmode" = prog; then
2121 case $pass in
2122 dlopen) libs="$dlfiles" ;;
2123 dlpreopen) libs="$dlprefiles" ;;
2124 link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
2125 esac
2126 fi
2127 if test "$pass" = dlopen; then
2128 # Collect dlpreopened libraries
2129 save_deplibs="$deplibs"
2130 deplibs=
2131 fi
2132 for deplib in $libs; do
2133 lib=
2134 found=no
2135 case $deplib in
2136 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
2137 if test "$linkmode,$pass" = "prog,link"; then
2138 compile_deplibs="$deplib $compile_deplibs"
2139 finalize_deplibs="$deplib $finalize_deplibs"
2140 else
2141 compiler_flags="$compiler_flags $deplib"
2142 fi
2143 continue
2144 ;;
2145 -l*)
2146 if test "$linkmode" != lib && test "$linkmode" != prog; then
2147 $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
2148 continue
2149 fi
2150 name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
2151 for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
2152 for search_ext in .la $std_shrext .so .a; do
2153 # Search the libtool library
2154 lib="$searchdir/lib${name}${search_ext}"
2155 if test -f "$lib"; then
2156 if test "$search_ext" = ".la"; then
2157 found=yes
2158 else
2159 found=no
2160 fi
2161 break 2
2162 fi
2163 done
2164 done
2165 if test "$found" != yes; then
2166 # deplib doesn't seem to be a libtool library
2167 if test "$linkmode,$pass" = "prog,link"; then
2168 compile_deplibs="$deplib $compile_deplibs"
2169 finalize_deplibs="$deplib $finalize_deplibs"
2170 else
2171 deplibs="$deplib $deplibs"
2172 test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
2173 fi
2174 continue
2175 else # deplib is a libtool library
2176 # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
2177 # We need to do some special things here, and not later.
2178 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
2179 case " $predeps $postdeps " in
2180 *" $deplib "*)
2181 if (${SED} -e '2q' $lib |
2182 grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
2183 library_names=
2184 old_library=
2185 case $lib in
2186 */* | *\\*) . $lib ;;
2187 *) . ./$lib ;;
2188 esac
2189 for l in $old_library $library_names; do
2190 ll="$l"
2191 done
2192 if test "X$ll" = "X$old_library" ; then # only static version available
2193 found=no
2194 ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
2195 test "X$ladir" = "X$lib" && ladir="."
2196 lib=$ladir/$old_library
2197 if test "$linkmode,$pass" = "prog,link"; then
2198 compile_deplibs="$deplib $compile_deplibs"
2199 finalize_deplibs="$deplib $finalize_deplibs"
2200 else
2201 deplibs="$deplib $deplibs"
2202 test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
2203 fi
2204 continue
2205 fi
2206 fi
2207 ;;
2208 *) ;;
2209 esac
2210 fi
2211 fi
2212 ;; # -l
2213 -L*)
2214 case $linkmode in
2215 lib)
2216 deplibs="$deplib $deplibs"
2217 test "$pass" = conv && continue
2218 newdependency_libs="$deplib $newdependency_libs"
2219 newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
2220 ;;
2221 prog)
2222 if test "$pass" = conv; then
2223 deplibs="$deplib $deplibs"
2224 continue
2225 fi
2226 if test "$pass" = scan; then
2227 deplibs="$deplib $deplibs"
2228 else
2229 compile_deplibs="$deplib $compile_deplibs"
2230 finalize_deplibs="$deplib $finalize_deplibs"
2231 fi
2232 newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
2233 ;;
2234 *)
2235 $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
2236 ;;
2237 esac # linkmode
2238 continue
2239 ;; # -L
2240 -R*)
2241 if test "$pass" = link; then
2242 dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
2243 # Make sure the xrpath contains only unique directories.
2244 case "$xrpath " in
2245 *" $dir "*) ;;
2246 *) xrpath="$xrpath $dir" ;;
2247 esac
2248 fi
2249 deplibs="$deplib $deplibs"
2250 continue
2251 ;;
2252 *.la) lib="$deplib" ;;
2253 *.$libext)
2254 if test "$pass" = conv; then
2255 deplibs="$deplib $deplibs"
2256 continue
2257 fi
2258 case $linkmode in
2259 lib)
2260 valid_a_lib=no
2261 case $deplibs_check_method in
2262 match_pattern*)
2263 set dummy $deplibs_check_method
2264 match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
2265 if eval $echo \"$deplib\" 2>/dev/null \
2266 | $SED 10q \
2267 | $EGREP "$match_pattern_regex" > /dev/null; then
2268 valid_a_lib=yes
2269 fi
2270 ;;
2271 pass_all)
2272 valid_a_lib=yes
2273 ;;
2274 esac
2275 if test "$valid_a_lib" != yes; then
2276 $echo
2277 $echo "*** Warning: Trying to link with static lib archive $deplib."
2278 $echo "*** I have the capability to make that library automatically link in when"
2279 $echo "*** you link to this library. But I can only do this if you have a"
2280 $echo "*** shared version of the library, which you do not appear to have"
2281 $echo "*** because the file extensions .$libext of this argument makes me believe"
2282 $echo "*** that it is just a static archive that I should not used here."
2283 else
2284 $echo
2285 $echo "*** Warning: Linking the shared library $output against the"
2286 $echo "*** static library $deplib is not portable!"
2287 deplibs="$deplib $deplibs"
2288 fi
2289 continue
2290 ;;
2291 prog)
2292 if test "$pass" != link; then
2293 deplibs="$deplib $deplibs"
2294 else
2295 compile_deplibs="$deplib $compile_deplibs"
2296 finalize_deplibs="$deplib $finalize_deplibs"
2297 fi
2298 continue
2299 ;;
2300 esac # linkmode
2301 ;; # *.$libext
2302 *.lo | *.$objext)
2303 if test "$pass" = conv; then
2304 deplibs="$deplib $deplibs"
2305 elif test "$linkmode" = prog; then
2306 if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
2307 # If there is no dlopen support or we're linking statically,
2308 # we need to preload.
2309 newdlprefiles="$newdlprefiles $deplib"
2310 compile_deplibs="$deplib $compile_deplibs"
2311 finalize_deplibs="$deplib $finalize_deplibs"
2312 else
2313 newdlfiles="$newdlfiles $deplib"
2314 fi
2315 fi
2316 continue
2317 ;;
2318 %DEPLIBS%)
2319 alldeplibs=yes
2320 continue
2321 ;;
2322 esac # case $deplib
2323 if test "$found" = yes || test -f "$lib"; then :
2324 else
2325 $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2
2326 exit $EXIT_FAILURE
2327 fi
2328
2329 # Check to see that this really is a libtool archive.
2330 if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
2331 else
2332 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
2333 exit $EXIT_FAILURE
2334 fi
2335
2336 ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
2337 test "X$ladir" = "X$lib" && ladir="."
2338
2339 dlname=
2340 dlopen=
2341 dlpreopen=
2342 libdir=
2343 library_names=
2344 old_library=
2345 # If the library was installed with an old release of libtool,
2346 # it will not redefine variables installed, or shouldnotlink
2347 installed=yes
2348 shouldnotlink=no
2349 avoidtemprpath=
2350
2351
2352 # Read the .la file
2353 case $lib in
2354 */* | *\\*) . $lib ;;
2355 *) . ./$lib ;;
2356 esac
2357
2358 if test "$linkmode,$pass" = "lib,link" ||
2359 test "$linkmode,$pass" = "prog,scan" ||
2360 { test "$linkmode" != prog && test "$linkmode" != lib; }; then
2361 test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
2362 test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
2363 fi
2364
2365 if test "$pass" = conv; then
2366 # Only check for convenience libraries
2367 deplibs="$lib $deplibs"
2368 if test -z "$libdir"; then
2369 if test -z "$old_library"; then
2370 $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
2371 exit $EXIT_FAILURE
2372 fi
2373 # It is a libtool convenience library, so add in its objects.
2374 convenience="$convenience $ladir/$objdir/$old_library"
2375 old_convenience="$old_convenience $ladir/$objdir/$old_library"
2376 tmp_libs=
2377 for deplib in $dependency_libs; do
2378 deplibs="$deplib $deplibs"
2379 if test "X$duplicate_deps" = "Xyes" ; then
2380 case "$tmp_libs " in
2381 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
2382 esac
2383 fi
2384 tmp_libs="$tmp_libs $deplib"
2385 done
2386 elif test "$linkmode" != prog && test "$linkmode" != lib; then
2387 $echo "$modename: \`$lib' is not a convenience library" 1>&2
2388 exit $EXIT_FAILURE
2389 fi
2390 continue
2391 fi # $pass = conv
2392
2393
2394 # Get the name of the library we link against.
2395 linklib=
2396 for l in $old_library $library_names; do
2397 linklib="$l"
2398 done
2399 if test -z "$linklib"; then
2400 $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
2401 exit $EXIT_FAILURE
2402 fi
2403
2404 # This library was specified with -dlopen.
2405 if test "$pass" = dlopen; then
2406 if test -z "$libdir"; then
2407 $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
2408 exit $EXIT_FAILURE
2409 fi
2410 if test -z "$dlname" ||
2411 test "$dlopen_support" != yes ||
2412 test "$build_libtool_libs" = no; then
2413 # If there is no dlname, no dlopen support or we're linking
2414 # statically, we need to preload. We also need to preload any
2415 # dependent libraries so libltdl's deplib preloader doesn't
2416 # bomb out in the load deplibs phase.
2417 dlprefiles="$dlprefiles $lib $dependency_libs"
2418 else
2419 newdlfiles="$newdlfiles $lib"
2420 fi
2421 continue
2422 fi # $pass = dlopen
2423
2424 # We need an absolute path.
2425 case $ladir in
2426 [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
2427 *)
2428 abs_ladir=`cd "$ladir" && pwd`
2429 if test -z "$abs_ladir"; then
2430 $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2
2431 $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
2432 abs_ladir="$ladir"
2433 fi
2434 ;;
2435 esac
2436 laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
2437
2438 # Find the relevant object directory and library name.
2439 if test "X$installed" = Xyes; then
2440 if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
2441 $echo "$modename: warning: library \`$lib' was moved." 1>&2
2442 dir="$ladir"
2443 absdir="$abs_ladir"
2444 libdir="$abs_ladir"
2445 else
2446 dir="$libdir"
2447 absdir="$libdir"
2448 fi
2449 test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
2450 else
2451 if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
2452 dir="$ladir"
2453 absdir="$abs_ladir"
2454 # Remove this search path later
2455 notinst_path="$notinst_path $abs_ladir"
2456 else
2457 dir="$ladir/$objdir"
2458 absdir="$abs_ladir/$objdir"
2459 # Remove this search path later
2460 notinst_path="$notinst_path $abs_ladir"
2461 fi
2462 fi # $installed = yes
2463 name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
2464
2465 # This library was specified with -dlpreopen.
2466 if test "$pass" = dlpreopen; then
2467 if test -z "$libdir"; then
2468 $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
2469 exit $EXIT_FAILURE
2470 fi
2471 # Prefer using a static library (so that no silly _DYNAMIC symbols
2472 # are required to link).
2473 if test -n "$old_library"; then
2474 newdlprefiles="$newdlprefiles $dir/$old_library"
2475 # Otherwise, use the dlname, so that lt_dlopen finds it.
2476 elif test -n "$dlname"; then
2477 newdlprefiles="$newdlprefiles $dir/$dlname"
2478 else
2479 newdlprefiles="$newdlprefiles $dir/$linklib"
2480 fi
2481 fi # $pass = dlpreopen
2482
2483 if test -z "$libdir"; then
2484 # Link the convenience library
2485 if test "$linkmode" = lib; then
2486 deplibs="$dir/$old_library $deplibs"
2487 elif test "$linkmode,$pass" = "prog,link"; then
2488 compile_deplibs="$dir/$old_library $compile_deplibs"
2489 finalize_deplibs="$dir/$old_library $finalize_deplibs"
2490 else
2491 deplibs="$lib $deplibs" # used for prog,scan pass
2492 fi
2493 continue
2494 fi
2495
2496
2497 if test "$linkmode" = prog && test "$pass" != link; then
2498 newlib_search_path="$newlib_search_path $ladir"
2499 deplibs="$lib $deplibs"
2500
2501 linkalldeplibs=no
2502 if test "$link_all_deplibs" != no || test -z "$library_names" ||
2503 test "$build_libtool_libs" = no; then
2504 linkalldeplibs=yes
2505 fi
2506
2507 tmp_libs=
2508 for deplib in $dependency_libs; do
2509 case $deplib in
2510 -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
2511 esac
2512 # Need to link against all dependency_libs?
2513 if test "$linkalldeplibs" = yes; then
2514 deplibs="$deplib $deplibs"
2515 else
2516 # Need to hardcode shared library paths
2517 # or/and link against static libraries
2518 newdependency_libs="$deplib $newdependency_libs"
2519 fi
2520 if test "X$duplicate_deps" = "Xyes" ; then
2521 case "$tmp_libs " in
2522 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
2523 esac
2524 fi
2525 tmp_libs="$tmp_libs $deplib"
2526 done # for deplib
2527 continue
2528 fi # $linkmode = prog...
2529
2530 if test "$linkmode,$pass" = "prog,link"; then
2531 if test -n "$library_names" &&
2532 { { test "$prefer_static_libs" = no ||
2533 test "$prefer_static_libs,$installed" = "built,yes"; } ||
2534 test -z "$old_library"; }; then
2535 # We need to hardcode the library path
2536 if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
2537 # Make sure the rpath contains only unique directories.
2538 case "$temp_rpath " in
2539 *" $dir "*) ;;
2540 *" $absdir "*) ;;
2541 *) temp_rpath="$temp_rpath $absdir" ;;
2542 esac
2543 fi
2544
2545 # Hardcode the library path.
2546 # Skip directories that are in the system default run-time
2547 # search path.
2548 case " $sys_lib_dlsearch_path " in
2549 *" $absdir "*) ;;
2550 *)
2551 case "$compile_rpath " in
2552 *" $absdir "*) ;;
2553 *) compile_rpath="$compile_rpath $absdir"
2554 esac
2555 ;;
2556 esac
2557 case " $sys_lib_dlsearch_path " in
2558 *" $libdir "*) ;;
2559 *)
2560 case "$finalize_rpath " in
2561 *" $libdir "*) ;;
2562 *) finalize_rpath="$finalize_rpath $libdir"
2563 esac
2564 ;;
2565 esac
2566 fi # $linkmode,$pass = prog,link...
2567
2568 if test "$alldeplibs" = yes &&
2569 { test "$deplibs_check_method" = pass_all ||
2570 { test "$build_libtool_libs" = yes &&
2571 test -n "$library_names"; }; }; then
2572 # We only need to search for static libraries
2573 continue
2574 fi
2575 fi
2576
2577 link_static=no # Whether the deplib will be linked statically
2578 use_static_libs=$prefer_static_libs
2579 if test "$use_static_libs" = built && test "$installed" = yes ; then
2580 use_static_libs=no
2581 fi
2582 if test -n "$library_names" &&
2583 { test "$use_static_libs" = no || test -z "$old_library"; }; then
2584 if test "$installed" = no; then
2585 notinst_deplibs="$notinst_deplibs $lib"
2586 need_relink=yes
2587 fi
2588 # This is a shared library
2589
2590 # Warn about portability, can't link against -module's on
2591 # some systems (darwin)
2592 if test "$shouldnotlink" = yes && test "$pass" = link ; then
2593 $echo
2594 if test "$linkmode" = prog; then
2595 $echo "*** Warning: Linking the executable $output against the loadable module"
2596 else
2597 $echo "*** Warning: Linking the shared library $output against the loadable module"
2598 fi
2599 $echo "*** $linklib is not portable!"
2600 fi
2601 if test "$linkmode" = lib &&
2602 test "$hardcode_into_libs" = yes; then
2603 # Hardcode the library path.
2604 # Skip directories that are in the system default run-time
2605 # search path.
2606 case " $sys_lib_dlsearch_path " in
2607 *" $absdir "*) ;;
2608 *)
2609 case "$compile_rpath " in
2610 *" $absdir "*) ;;
2611 *) compile_rpath="$compile_rpath $absdir"
2612 esac
2613 ;;
2614 esac
2615 case " $sys_lib_dlsearch_path " in
2616 *" $libdir "*) ;;
2617 *)
2618 case "$finalize_rpath " in
2619 *" $libdir "*) ;;
2620 *) finalize_rpath="$finalize_rpath $libdir"
2621 esac
2622 ;;
2623 esac
2624 fi
2625
2626 if test -n "$old_archive_from_expsyms_cmds"; then
2627 # figure out the soname
2628 set dummy $library_names
2629 realname="$2"
2630 shift; shift
2631 libname=`eval \\$echo \"$libname_spec\"`
2632 # use dlname if we got it. it's perfectly good, no?
2633 if test -n "$dlname"; then
2634 soname="$dlname"
2635 elif test -n "$soname_spec"; then
2636 # bleh windows
2637 case $host in
2638 *cygwin* | mingw*)
2639 major=`expr $current - $age`
2640 versuffix="-$major"
2641 ;;
2642 esac
2643 eval soname=\"$soname_spec\"
2644 else
2645 soname="$realname"
2646 fi
2647
2648 # Make a new name for the extract_expsyms_cmds to use
2649 soroot="$soname"
2650 soname=`$echo $soroot | ${SED} -e 's/^.*\///'`
2651 newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
2652
2653 # If the library has no export list, then create one now
2654 if test -f "$output_objdir/$soname-def"; then :
2655 else
2656 $show "extracting exported symbol list from \`$soname'"
2657 save_ifs="$IFS"; IFS='~'
2658 cmds=$extract_expsyms_cmds
2659 for cmd in $cmds; do
2660 IFS="$save_ifs"
2661 eval cmd=\"$cmd\"
2662 $show "$cmd"
2663 $run eval "$cmd" || exit $?
2664 done
2665 IFS="$save_ifs"
2666 fi
2667
2668 # Create $newlib
2669 if test -f "$output_objdir/$newlib"; then :; else
2670 $show "generating import library for \`$soname'"
2671 save_ifs="$IFS"; IFS='~'
2672 cmds=$old_archive_from_expsyms_cmds
2673 for cmd in $cmds; do
2674 IFS="$save_ifs"
2675 eval cmd=\"$cmd\"
2676 $show "$cmd"
2677 $run eval "$cmd" || exit $?
2678 done
2679 IFS="$save_ifs"
2680 fi
2681 # make sure the library variables are pointing to the new library
2682 dir=$output_objdir
2683 linklib=$newlib
2684 fi # test -n "$old_archive_from_expsyms_cmds"
2685
2686 if test "$linkmode" = prog || test "$mode" != relink; then
2687 add_shlibpath=
2688 add_dir=
2689 add=
2690 lib_linked=yes
2691 case $hardcode_action in
2692 immediate | unsupported)
2693 if test "$hardcode_direct" = no; then
2694 add="$dir/$linklib"
2695 case $host in
2696 *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
2697 *-*-sysv4*uw2*) add_dir="-L$dir" ;;
2698 *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
2699 *-*-unixware7*) add_dir="-L$dir" ;;
2700 *-*-darwin* )
2701 # if the lib is a module then we can not link against
2702 # it, someone is ignoring the new warnings I added
2703 if /usr/bin/file -L $add 2> /dev/null |
2704 $EGREP ": [^:]* bundle" >/dev/null ; then
2705 $echo "** Warning, lib $linklib is a module, not a shared library"
2706 if test -z "$old_library" ; then
2707 $echo
2708 $echo "** And there doesn't seem to be a static archive available"
2709 $echo "** The link will probably fail, sorry"
2710 else
2711 add="$dir/$old_library"
2712 fi
2713 fi
2714 esac
2715 elif test "$hardcode_minus_L" = no; then
2716 case $host in
2717 *-*-sunos*) add_shlibpath="$dir" ;;
2718 esac
2719 add_dir="-L$dir"
2720 add="-l$name"
2721 elif test "$hardcode_shlibpath_var" = no; then
2722 add_shlibpath="$dir"
2723 add="-l$name"
2724 else
2725 lib_linked=no
2726 fi
2727 ;;
2728 relink)
2729 if test "$hardcode_direct" = yes; then
2730 add="$dir/$linklib"
2731 elif test "$hardcode_minus_L" = yes; then
2732 add_dir="-L$dir"
2733 # Try looking first in the location we're being installed to.
2734 if test -n "$inst_prefix_dir"; then
2735 case $libdir in
2736 [\\/]*)
2737 add_dir="$add_dir -L$inst_prefix_dir$libdir"
2738 ;;
2739 esac
2740 fi
2741 add="-l$name"
2742 elif test "$hardcode_shlibpath_var" = yes; then
2743 add_shlibpath="$dir"
2744 add="-l$name"
2745 else
2746 lib_linked=no
2747 fi
2748 ;;
2749 *) lib_linked=no ;;
2750 esac
2751
2752 if test "$lib_linked" != yes; then
2753 $echo "$modename: configuration error: unsupported hardcode properties"
2754 exit $EXIT_FAILURE
2755 fi
2756
2757 if test -n "$add_shlibpath"; then
2758 case :$compile_shlibpath: in
2759 *":$add_shlibpath:"*) ;;
2760 *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
2761 esac
2762 fi
2763 if test "$linkmode" = prog; then
2764 test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
2765 test -n "$add" && compile_deplibs="$add $compile_deplibs"
2766 else
2767 test -n "$add_dir" && deplibs="$add_dir $deplibs"
2768 test -n "$add" && deplibs="$add $deplibs"
2769 if test "$hardcode_direct" != yes && \
2770 test "$hardcode_minus_L" != yes && \
2771 test "$hardcode_shlibpath_var" = yes; then
2772 case :$finalize_shlibpath: in
2773 *":$libdir:"*) ;;
2774 *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
2775 esac
2776 fi
2777 fi
2778 fi
2779
2780 if test "$linkmode" = prog || test "$mode" = relink; then
2781 add_shlibpath=
2782 add_dir=
2783 add=
2784 # Finalize command for both is simple: just hardcode it.
2785 if test "$hardcode_direct" = yes; then
2786 add="$libdir/$linklib"
2787 elif test "$hardcode_minus_L" = yes; then
2788 add_dir="-L$libdir"
2789 add="-l$name"
2790 elif test "$hardcode_shlibpath_var" = yes; then
2791 case :$finalize_shlibpath: in
2792 *":$libdir:"*) ;;
2793 *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
2794 esac
2795 add="-l$name"
2796 elif test "$hardcode_automatic" = yes; then
2797 if test -n "$inst_prefix_dir" &&
2798 test -f "$inst_prefix_dir$libdir/$linklib" ; then
2799 add="$inst_prefix_dir$libdir/$linklib"
2800 else
2801 add="$libdir/$linklib"
2802 fi
2803 else
2804 # We cannot seem to hardcode it, guess we'll fake it.
2805 add_dir="-L$libdir"
2806 # Try looking first in the location we're being installed to.
2807 if test -n "$inst_prefix_dir"; then
2808 case $libdir in
2809 [\\/]*)
2810 add_dir="$add_dir -L$inst_prefix_dir$libdir"
2811 ;;
2812 esac
2813 fi
2814 add="-l$name"
2815 fi
2816
2817 if test "$linkmode" = prog; then
2818 test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
2819 test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
2820 else
2821 test -n "$add_dir" && deplibs="$add_dir $deplibs"
2822 test -n "$add" && deplibs="$add $deplibs"
2823 fi
2824 fi
2825 elif test "$linkmode" = prog; then
2826 # Here we assume that one of hardcode_direct or hardcode_minus_L
2827 # is not unsupported. This is valid on all known static and
2828 # shared platforms.
2829 if test "$hardcode_direct" != unsupported; then
2830 test -n "$old_library" && linklib="$old_library"
2831 compile_deplibs="$dir/$linklib $compile_deplibs"
2832 finalize_deplibs="$dir/$linklib $finalize_deplibs"
2833 else
2834 compile_deplibs="-l$name -L$dir $compile_deplibs"
2835 finalize_deplibs="-l$name -L$dir $finalize_deplibs"
2836 fi
2837 elif test "$build_libtool_libs" = yes; then
2838 # Not a shared library
2839 if test "$deplibs_check_method" != pass_all; then
2840 # We're trying link a shared library against a static one
2841 # but the system doesn't support it.
2842
2843 # Just print a warning and add the library to dependency_libs so
2844 # that the program can be linked against the static library.
2845 $echo
2846 $echo "*** Warning: This system can not link to static lib archive $lib."
2847 $echo "*** I have the capability to make that library automatically link in when"
2848 $echo "*** you link to this library. But I can only do this if you have a"
2849 $echo "*** shared version of the library, which you do not appear to have."
2850 if test "$module" = yes; then
2851 $echo "*** But as you try to build a module library, libtool will still create "
2852 $echo "*** a static module, that should work as long as the dlopening application"
2853 $echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
2854 if test -z "$global_symbol_pipe"; then
2855 $echo
2856 $echo "*** However, this would only work if libtool was able to extract symbol"
2857 $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
2858 $echo "*** not find such a program. So, this module is probably useless."
2859 $echo "*** \`nm' from GNU binutils and a full rebuild may help."
2860 fi
2861 if test "$build_old_libs" = no; then
2862 build_libtool_libs=module
2863 build_old_libs=yes
2864 else
2865 build_libtool_libs=no
2866 fi
2867 fi
2868 else
2869 deplibs="$dir/$old_library $deplibs"
2870 link_static=yes
2871 fi
2872 fi # link shared/static library?
2873
2874 if test "$linkmode" = lib; then
2875 if test -n "$dependency_libs" &&
2876 { test "$hardcode_into_libs" != yes ||
2877 test "$build_old_libs" = yes ||
2878 test "$link_static" = yes; }; then
2879 # Extract -R from dependency_libs
2880 temp_deplibs=
2881 for libdir in $dependency_libs; do
2882 case $libdir in
2883 -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
2884 case " $xrpath " in
2885 *" $temp_xrpath "*) ;;
2886 *) xrpath="$xrpath $temp_xrpath";;
2887 esac;;
2888 *) temp_deplibs="$temp_deplibs $libdir";;
2889 esac
2890 done
2891 dependency_libs="$temp_deplibs"
2892 fi
2893
2894 newlib_search_path="$newlib_search_path $absdir"
2895 # Link against this library
2896 test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
2897 # ... and its dependency_libs
2898 tmp_libs=
2899 for deplib in $dependency_libs; do
2900 newdependency_libs="$deplib $newdependency_libs"
2901 if test "X$duplicate_deps" = "Xyes" ; then
2902 case "$tmp_libs " in
2903 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
2904 esac
2905 fi
2906 tmp_libs="$tmp_libs $deplib"
2907 done
2908
2909 if test "$link_all_deplibs" != no; then
2910 # Add the search paths of all dependency libraries
2911 for deplib in $dependency_libs; do
2912 case $deplib in
2913 -L*) path="$deplib" ;;
2914 *.la)
2915 dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
2916 test "X$dir" = "X$deplib" && dir="."
2917 # We need an absolute path.
2918 case $dir in
2919 [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
2920 *)
2921 absdir=`cd "$dir" && pwd`
2922 if test -z "$absdir"; then
2923 $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
2924 absdir="$dir"
2925 fi
2926 ;;
2927 esac
2928 if grep "^installed=no" $deplib > /dev/null; then
2929 path="$absdir/$objdir"
2930 else
2931 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
2932 if test -z "$libdir"; then
2933 $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
2934 exit $EXIT_FAILURE
2935 fi
2936 if test "$absdir" != "$libdir"; then
2937 $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
2938 fi
2939 path="$absdir"
2940 fi
2941 depdepl=
2942 case $host in
2943 *-*-darwin*)
2944 # we do not want to link against static libs,
2945 # but need to link against shared
2946 eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
2947 if test -n "$deplibrary_names" ; then
2948 for tmp in $deplibrary_names ; do
2949 depdepl=$tmp
2950 done
2951 if test -f "$path/$depdepl" ; then
2952 depdepl="$path/$depdepl"
2953 fi
2954 # do not add paths which are already there
2955 case " $newlib_search_path " in
2956 *" $path "*) ;;
2957 *) newlib_search_path="$newlib_search_path $path";;
2958 esac
2959 fi
2960 path=""
2961 ;;
2962 *)
2963 path="-L$path"
2964 ;;
2965 esac
2966 ;;
2967 -l*)
2968 case $host in
2969 *-*-darwin*)
2970 # Again, we only want to link against shared libraries
2971 eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
2972 for tmp in $newlib_search_path ; do
2973 if test -f "$tmp/lib$tmp_libs.dylib" ; then
2974 eval depdepl="$tmp/lib$tmp_libs.dylib"
2975 break
2976 fi
2977 done
2978 path=""
2979 ;;
2980 *) continue ;;
2981 esac
2982 ;;
2983 *) continue ;;
2984 esac
2985 case " $deplibs " in
2986 *" $path "*) ;;
2987 *) deplibs="$path $deplibs" ;;
2988 esac
2989 case " $deplibs " in
2990 *" $depdepl "*) ;;
2991 *) deplibs="$depdepl $deplibs" ;;
2992 esac
2993 done
2994 fi # link_all_deplibs != no
2995 fi # linkmode = lib
2996 done # for deplib in $libs
2997 dependency_libs="$newdependency_libs"
2998 if test "$pass" = dlpreopen; then
2999 # Link the dlpreopened libraries before other libraries
3000 for deplib in $save_deplibs; do
3001 deplibs="$deplib $deplibs"
3002 done
3003 fi
3004 if test "$pass" != dlopen; then
3005 if test "$pass" != conv; then
3006 # Make sure lib_search_path contains only unique directories.
3007 lib_search_path=
3008 for dir in $newlib_search_path; do
3009 case "$lib_search_path " in
3010 *" $dir "*) ;;
3011 *) lib_search_path="$lib_search_path $dir" ;;
3012 esac
3013 done
3014 newlib_search_path=
3015 fi
3016
3017 if test "$linkmode,$pass" != "prog,link"; then
3018 vars="deplibs"
3019 else
3020 vars="compile_deplibs finalize_deplibs"
3021 fi
3022 for var in $vars dependency_libs; do
3023 # Add libraries to $var in reverse order
3024 eval tmp_libs=\"\$$var\"
3025 new_libs=
3026 for deplib in $tmp_libs; do
3027 # FIXME: Pedantically, this is the right thing to do, so
3028 # that some nasty dependency loop isn't accidentally
3029 # broken:
3030 #new_libs="$deplib $new_libs"
3031 # Pragmatically, this seems to cause very few problems in
3032 # practice:
3033 case $deplib in
3034 -L*) new_libs="$deplib $new_libs" ;;
3035 -R*) ;;
3036 *)
3037 # And here is the reason: when a library appears more
3038 # than once as an explicit dependence of a library, or
3039 # is implicitly linked in more than once by the
3040 # compiler, it is considered special, and multiple
3041 # occurrences thereof are not removed. Compare this
3042 # with having the same library being listed as a
3043 # dependency of multiple other libraries: in this case,
3044 # we know (pedantically, we assume) the library does not
3045 # need to be listed more than once, so we keep only the
3046 # last copy. This is not always right, but it is rare
3047 # enough that we require users that really mean to play
3048 # such unportable linking tricks to link the library
3049 # using -Wl,-lname, so that libtool does not consider it
3050 # for duplicate removal.
3051 case " $specialdeplibs " in
3052 *" $deplib "*) new_libs="$deplib $new_libs" ;;
3053 *)
3054 case " $new_libs " in
3055 *" $deplib "*) ;;
3056 *) new_libs="$deplib $new_libs" ;;
3057 esac
3058 ;;
3059 esac
3060 ;;
3061 esac
3062 done
3063 tmp_libs=
3064 for deplib in $new_libs; do
3065 case $deplib in
3066 -L*)
3067 case " $tmp_libs " in
3068 *" $deplib "*) ;;
3069 *) tmp_libs="$tmp_libs $deplib" ;;
3070 esac
3071 ;;
3072 *) tmp_libs="$tmp_libs $deplib" ;;
3073 esac
3074 done
3075 eval $var=\"$tmp_libs\"
3076 done # for var
3077 fi
3078 # Last step: remove runtime libs from dependency_libs
3079 # (they stay in deplibs)
3080 tmp_libs=
3081 for i in $dependency_libs ; do
3082 case " $predeps $postdeps $compiler_lib_search_path " in
3083 *" $i "*)
3084 i=""
3085 ;;
3086 esac
3087 if test -n "$i" ; then
3088 tmp_libs="$tmp_libs $i"
3089 fi
3090 done
3091 dependency_libs=$tmp_libs
3092 done # for pass
3093 if test "$linkmode" = prog; then
3094 dlfiles="$newdlfiles"
3095 dlprefiles="$newdlprefiles"
3096 fi
3097
3098 case $linkmode in
3099 oldlib)
3100 if test -n "$deplibs"; then
3101 $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
3102 fi
3103
3104 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
3105 $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
3106 fi
3107
3108 if test -n "$rpath"; then
3109 $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2
3110 fi
3111
3112 if test -n "$xrpath"; then
3113 $echo "$modename: warning: \`-R' is ignored for archives" 1>&2
3114 fi
3115
3116 if test -n "$vinfo"; then
3117 $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2
3118 fi
3119
3120 if test -n "$release"; then
3121 $echo "$modename: warning: \`-release' is ignored for archives" 1>&2
3122 fi
3123
3124 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
3125 $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
3126 fi
3127
3128 # Now set the variables for building old libraries.
3129 build_libtool_libs=no
3130 oldlibs="$output"
3131 objs="$objs$old_deplibs"
3132 ;;
3133
3134 lib)
3135 # Make sure we only generate libraries of the form `libNAME.la'.
3136 case $outputname in
3137 lib*)
3138 name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
3139 eval shared_ext=\"$shrext_cmds\"
3140 eval libname=\"$libname_spec\"
3141 ;;
3142 *)
3143 if test "$module" = no; then
3144 $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
3145 $echo "$help" 1>&2
3146 exit $EXIT_FAILURE
3147 fi
3148 if test "$need_lib_prefix" != no; then
3149 # Add the "lib" prefix for modules if required
3150 name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
3151 eval shared_ext=\"$shrext_cmds\"
3152 eval libname=\"$libname_spec\"
3153 else
3154 libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
3155 fi
3156 ;;
3157 esac
3158
3159 if test -n "$objs"; then
3160 if test "$deplibs_check_method" != pass_all; then
3161 $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
3162 exit $EXIT_FAILURE
3163 else
3164 $echo
3165 $echo "*** Warning: Linking the shared library $output against the non-libtool"
3166 $echo "*** objects $objs is not portable!"
3167 libobjs="$libobjs $objs"
3168 fi
3169 fi
3170
3171 if test "$dlself" != no; then
3172 $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2
3173 fi
3174
3175 set dummy $rpath
3176 if test "$#" -gt 2; then
3177 $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
3178 fi
3179 install_libdir="$2"
3180
3181 oldlibs=
3182 if test -z "$rpath"; then
3183 if test "$build_libtool_libs" = yes; then
3184 # Building a libtool convenience library.
3185 # Some compilers have problems with a `.al' extension so
3186 # convenience libraries should have the same extension an
3187 # archive normally would.
3188 oldlibs="$output_objdir/$libname.$libext $oldlibs"
3189 build_libtool_libs=convenience
3190 build_old_libs=yes
3191 fi
3192
3193 if test -n "$vinfo"; then
3194 $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2
3195 fi
3196
3197 if test -n "$release"; then
3198 $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2
3199 fi
3200 else
3201
3202 # Parse the version information argument.
3203 save_ifs="$IFS"; IFS=':'
3204 set dummy $vinfo 0 0 0
3205 IFS="$save_ifs"
3206
3207 if test -n "$8"; then
3208 $echo "$modename: too many parameters to \`-version-info'" 1>&2
3209 $echo "$help" 1>&2
3210 exit $EXIT_FAILURE
3211 fi
3212
3213 # convert absolute version numbers to libtool ages
3214 # this retains compatibility with .la files and attempts
3215 # to make the code below a bit more comprehensible
3216
3217 case $vinfo_number in
3218 yes)
3219 number_major="$2"
3220 number_minor="$3"
3221 number_revision="$4"
3222 #
3223 # There are really only two kinds -- those that
3224 # use the current revision as the major version
3225 # and those that subtract age and use age as
3226 # a minor version. But, then there is irix
3227 # which has an extra 1 added just for fun
3228 #
3229 case $version_type in
3230 darwin|linux|osf|windows|none)
3231 current=`expr $number_major + $number_minor`
3232 age="$number_minor"
3233 revision="$number_revision"
3234 ;;
3235 freebsd-aout|freebsd-elf|sunos)
3236 current="$number_major"
3237 revision="$number_minor"
3238 age="0"
3239 ;;
3240 irix|nonstopux)
3241 current=`expr $number_major + $number_minor`
3242 age="$number_minor"
3243 revision="$number_minor"
3244 lt_irix_increment=no
3245 ;;
3246 esac
3247 ;;
3248 no)
3249 current="$2"
3250 revision="$3"
3251 age="$4"
3252 ;;
3253 esac
3254
3255 # Check that each of the things are valid numbers.
3256 case $current in
3257 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]) ;;
3258 *)
3259 $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2
3260 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
3261 exit $EXIT_FAILURE
3262 ;;
3263 esac
3264
3265 case $revision in
3266 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]) ;;
3267 *)
3268 $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2
3269 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
3270 exit $EXIT_FAILURE
3271 ;;
3272 esac
3273
3274 case $age in
3275 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]) ;;
3276 *)
3277 $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2
3278 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
3279 exit $EXIT_FAILURE
3280 ;;
3281 esac
3282
3283 if test "$age" -gt "$current"; then
3284 $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
3285 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
3286 exit $EXIT_FAILURE
3287 fi
3288
3289 # Calculate the version variables.
3290 major=
3291 versuffix=
3292 verstring=
3293 case $version_type in
3294 none) ;;
3295
3296 darwin)
3297 # Like Linux, but with the current version available in
3298 # verstring for coding it into the library header
3299 major=.`expr $current - $age`
3300 versuffix="$major.$age.$revision"
3301 # Darwin ld doesn't like 0 for these options...
3302 minor_current=`expr $current + 1`
3303 xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
3304 verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
3305 ;;
3306
3307 freebsd-aout)
3308 major=".$current"
3309 versuffix=".$current.$revision";
3310 ;;
3311
3312 freebsd-elf)
3313 major=".$current"
3314 versuffix=".$current";
3315 ;;
3316
3317 irix | nonstopux)
3318 if test "X$lt_irix_increment" = "Xno"; then
3319 major=`expr $current - $age`
3320 else
3321 major=`expr $current - $age + 1`
3322 fi
3323 case $version_type in
3324 nonstopux) verstring_prefix=nonstopux ;;
3325 *) verstring_prefix=sgi ;;
3326 esac
3327 verstring="$verstring_prefix$major.$revision"
3328
3329 # Add in all the interfaces that we are compatible with.
3330 loop=$revision
3331 while test "$loop" -ne 0; do
3332 iface=`expr $revision - $loop`
3333 loop=`expr $loop - 1`
3334 verstring="$verstring_prefix$major.$iface:$verstring"
3335 done
3336
3337 # Before this point, $major must not contain `.'.
3338 major=.$major
3339 versuffix="$major.$revision"
3340 ;;
3341
3342 linux)
3343 major=.`expr $current - $age`
3344 versuffix="$major.$age.$revision"
3345 ;;
3346
3347 osf)
3348 major=.`expr $current - $age`
3349 versuffix=".$current.$age.$revision"
3350 verstring="$current.$age.$revision"
3351
3352 # Add in all the interfaces that we are compatible with.
3353 loop=$age
3354 while test "$loop" -ne 0; do
3355 iface=`expr $current - $loop`
3356 loop=`expr $loop - 1`
3357 verstring="$verstring:${iface}.0"
3358 done
3359
3360 # Make executables depend on our current version.
3361 verstring="$verstring:${current}.0"
3362 ;;
3363
3364 sunos)
3365 major=".$current"
3366 versuffix=".$current.$revision"
3367 ;;
3368
3369 windows)
3370 # Use '-' rather than '.', since we only want one
3371 # extension on DOS 8.3 filesystems.
3372 major=`expr $current - $age`
3373 versuffix="-$major"
3374 ;;
3375
3376 *)
3377 $echo "$modename: unknown library version type \`$version_type'" 1>&2
3378 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
3379 exit $EXIT_FAILURE
3380 ;;
3381 esac
3382
3383 # Clear the version info if we defaulted, and they specified a release.
3384 if test -z "$vinfo" && test -n "$release"; then
3385 major=
3386 case $version_type in
3387 darwin)
3388 # we can't check for "0.0" in archive_cmds due to quoting
3389 # problems, so we reset it completely
3390 verstring=
3391 ;;
3392 *)
3393 verstring="0.0"
3394 ;;
3395 esac
3396 if test "$need_version" = no; then
3397 versuffix=
3398 else
3399 versuffix=".0.0"
3400 fi
3401 fi
3402
3403 # Remove version info from name if versioning should be avoided
3404 if test "$avoid_version" = yes && test "$need_version" = no; then
3405 major=
3406 versuffix=
3407 verstring=""
3408 fi
3409
3410 # Check to see if the archive will have undefined symbols.
3411 if test "$allow_undefined" = yes; then
3412 if test "$allow_undefined_flag" = unsupported; then
3413 $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2
3414 build_libtool_libs=no
3415 build_old_libs=yes
3416 fi
3417 else
3418 # Don't allow undefined symbols.
3419 allow_undefined_flag="$no_undefined_flag"
3420 fi
3421 fi
3422
3423 if test "$mode" != relink; then
3424 # Remove our outputs, but don't remove object files since they
3425 # may have been created when compiling PIC objects.
3426 removelist=
3427 tempremovelist=`$echo "$output_objdir/*"`
3428 for p in $tempremovelist; do
3429 case $p in
3430 *.$objext)
3431 ;;
3432 $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
3433 if test "X$precious_files_regex" != "X"; then
3434 if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
3435 then
3436 continue
3437 fi
3438 fi
3439 removelist="$removelist $p"
3440 ;;
3441 *) ;;
3442 esac
3443 done
3444 if test -n "$removelist"; then
3445 $show "${rm}r $removelist"
3446 $run ${rm}r $removelist
3447 fi
3448 fi
3449
3450 # Now set the variables for building old libraries.
3451 if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
3452 oldlibs="$oldlibs $output_objdir/$libname.$libext"
3453
3454 # Transform .lo files to .o files.
3455 oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
3456 fi
3457
3458 # Eliminate all temporary directories.
3459 #for path in $notinst_path; do
3460 # lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
3461 # deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
3462 # dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
3463 #done
3464
3465 if test -n "$xrpath"; then
3466 # If the user specified any rpath flags, then add them.
3467 temp_xrpath=
3468 for libdir in $xrpath; do
3469 temp_xrpath="$temp_xrpath -R$libdir"
3470 case "$finalize_rpath " in
3471 *" $libdir "*) ;;
3472 *) finalize_rpath="$finalize_rpath $libdir" ;;
3473 esac
3474 done
3475 if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
3476 dependency_libs="$temp_xrpath $dependency_libs"
3477 fi
3478 fi
3479
3480 # Make sure dlfiles contains only unique files that won't be dlpreopened
3481 old_dlfiles="$dlfiles"
3482 dlfiles=
3483 for lib in $old_dlfiles; do
3484 case " $dlprefiles $dlfiles " in
3485 *" $lib "*) ;;
3486 *) dlfiles="$dlfiles $lib" ;;
3487 esac
3488 done
3489
3490 # Make sure dlprefiles contains only unique files
3491 old_dlprefiles="$dlprefiles"
3492 dlprefiles=
3493 for lib in $old_dlprefiles; do
3494 case "$dlprefiles " in
3495 *" $lib "*) ;;
3496 *) dlprefiles="$dlprefiles $lib" ;;
3497 esac
3498 done
3499
3500 if test "$build_libtool_libs" = yes; then
3501 if test -n "$rpath"; then
3502 case $host in
3503 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
3504 # these systems don't actually have a c library (as such)!
3505 ;;
3506 *-*-rhapsody* | *-*-darwin1.[012])
3507 # Rhapsody C library is in the System framework
3508 deplibs="$deplibs -framework System"
3509 ;;
3510 *-*-netbsd*)
3511 # Don't link with libc until the a.out ld.so is fixed.
3512 ;;
3513 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
3514 # Do not include libc due to us having libc/libc_r.
3515 ;;
3516 *-*-sco3.2v5* | *-*-sco5v6*)
3517 # Causes problems with __ctype
3518 ;;
3519 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
3520 # Compiler inserts libc in the correct place for threads to work
3521 ;;
3522 *)
3523 # Add libc to deplibs on all other systems if necessary.
3524 if test "$build_libtool_need_lc" = "yes"; then
3525 deplibs="$deplibs -lc"
3526 fi
3527 ;;
3528 esac
3529 fi
3530
3531 # Transform deplibs into only deplibs that can be linked in shared.
3532 name_save=$name
3533 libname_save=$libname
3534 release_save=$release
3535 versuffix_save=$versuffix
3536 major_save=$major
3537 # I'm not sure if I'm treating the release correctly. I think
3538 # release should show up in the -l (ie -lgmp5) so we don't want to
3539 # add it in twice. Is that correct?
3540 release=""
3541 versuffix=""
3542 major=""
3543 newdeplibs=
3544 droppeddeps=no
3545 case $deplibs_check_method in
3546 pass_all)
3547 # Don't check for shared/static. Everything works.
3548 # This might be a little naive. We might want to check
3549 # whether the library exists or not. But this is on
3550 # osf3 & osf4 and I'm not really sure... Just
3551 # implementing what was already the behavior.
3552 newdeplibs=$deplibs
3553 ;;
3554 test_compile)
3555 # This code stresses the "libraries are programs" paradigm to its
3556 # limits. Maybe even breaks it. We compile a program, linking it
3557 # against the deplibs as a proxy for the library. Then we can check
3558 # whether they linked in statically or dynamically with ldd.
3559 $rm conftest.c
3560 cat > conftest.c <<EOF
3561 int main() { return 0; }
3562 EOF
3563 $rm conftest
3564 if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
3565 ldd_output=`ldd conftest`
3566 for i in $deplibs; do
3567 name=`expr $i : '-l\(.*\)'`
3568 # If $name is empty we are operating on a -L argument.
3569 if test "$name" != "" && test "$name" != "0"; then
3570 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3571 case " $predeps $postdeps " in
3572 *" $i "*)
3573 newdeplibs="$newdeplibs $i"
3574 i=""
3575 ;;
3576 esac
3577 fi
3578 if test -n "$i" ; then
3579 libname=`eval \\$echo \"$libname_spec\"`
3580 deplib_matches=`eval \\$echo \"$library_names_spec\"`
3581 set dummy $deplib_matches
3582 deplib_match=$2
3583 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
3584 newdeplibs="$newdeplibs $i"
3585 else
3586 droppeddeps=yes
3587 $echo
3588 $echo "*** Warning: dynamic linker does not accept needed library $i."
3589 $echo "*** I have the capability to make that library automatically link in when"
3590 $echo "*** you link to this library. But I can only do this if you have a"
3591 $echo "*** shared version of the library, which I believe you do not have"
3592 $echo "*** because a test_compile did reveal that the linker did not use it for"
3593 $echo "*** its dynamic dependency list that programs get resolved with at runtime."
3594 fi
3595 fi
3596 else
3597 newdeplibs="$newdeplibs $i"
3598 fi
3599 done
3600 else
3601 # Error occurred in the first compile. Let's try to salvage
3602 # the situation: Compile a separate program for each library.
3603 for i in $deplibs; do
3604 name=`expr $i : '-l\(.*\)'`
3605 # If $name is empty we are operating on a -L argument.
3606 if test "$name" != "" && test "$name" != "0"; then
3607 $rm conftest
3608 if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
3609 ldd_output=`ldd conftest`
3610 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3611 case " $predeps $postdeps " in
3612 *" $i "*)
3613 newdeplibs="$newdeplibs $i"
3614 i=""
3615 ;;
3616 esac
3617 fi
3618 if test -n "$i" ; then
3619 libname=`eval \\$echo \"$libname_spec\"`
3620 deplib_matches=`eval \\$echo \"$library_names_spec\"`
3621 set dummy $deplib_matches
3622 deplib_match=$2
3623 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
3624 newdeplibs="$newdeplibs $i"
3625 else
3626 droppeddeps=yes
3627 $echo
3628 $echo "*** Warning: dynamic linker does not accept needed library $i."
3629 $echo "*** I have the capability to make that library automatically link in when"
3630 $echo "*** you link to this library. But I can only do this if you have a"
3631 $echo "*** shared version of the library, which you do not appear to have"
3632 $echo "*** because a test_compile did reveal that the linker did not use this one"
3633 $echo "*** as a dynamic dependency that programs can get resolved with at runtime."
3634 fi
3635 fi
3636 else
3637 droppeddeps=yes
3638 $echo
3639 $echo "*** Warning! Library $i is needed by this library but I was not able to"
3640 $echo "*** make it link in! You will probably need to install it or some"
3641 $echo "*** library that it depends on before this library will be fully"
3642 $echo "*** functional. Installing it before continuing would be even better."
3643 fi
3644 else
3645 newdeplibs="$newdeplibs $i"
3646 fi
3647 done
3648 fi
3649 ;;
3650 file_magic*)
3651 set dummy $deplibs_check_method
3652 file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
3653 for a_deplib in $deplibs; do
3654 name=`expr $a_deplib : '-l\(.*\)'`
3655 # If $name is empty we are operating on a -L argument.
3656 if test "$name" != "" && test "$name" != "0"; then
3657 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3658 case " $predeps $postdeps " in
3659 *" $a_deplib "*)
3660 newdeplibs="$newdeplibs $a_deplib"
3661 a_deplib=""
3662 ;;
3663 esac
3664 fi
3665 if test -n "$a_deplib" ; then
3666 libname=`eval \\$echo \"$libname_spec\"`
3667 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
3668 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
3669 for potent_lib in $potential_libs; do
3670 # Follow soft links.
3671 if ls -lLd "$potent_lib" 2>/dev/null \
3672 | grep " -> " >/dev/null; then
3673 continue
3674 fi
3675 # The statement above tries to avoid entering an
3676 # endless loop below, in case of cyclic links.
3677 # We might still enter an endless loop, since a link
3678 # loop can be closed while we follow links,
3679 # but so what?
3680 potlib="$potent_lib"
3681 while test -h "$potlib" 2>/dev/null; do
3682 potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
3683 case $potliblink in
3684 [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
3685 *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
3686 esac
3687 done
3688 if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
3689 | ${SED} 10q \
3690 | $EGREP "$file_magic_regex" > /dev/null; then
3691 newdeplibs="$newdeplibs $a_deplib"
3692 a_deplib=""
3693 break 2
3694 fi
3695 done
3696 done
3697 fi
3698 if test -n "$a_deplib" ; then
3699 droppeddeps=yes
3700 $echo
3701 $echo "*** Warning: linker path does not have real file for library $a_deplib."
3702 $echo "*** I have the capability to make that library automatically link in when"
3703 $echo "*** you link to this library. But I can only do this if you have a"
3704 $echo "*** shared version of the library, which you do not appear to have"
3705 $echo "*** because I did check the linker path looking for a file starting"
3706 if test -z "$potlib" ; then
3707 $echo "*** with $libname but no candidates were found. (...for file magic test)"
3708 else
3709 $echo "*** with $libname and none of the candidates passed a file format test"
3710 $echo "*** using a file magic. Last file checked: $potlib"
3711 fi
3712 fi
3713 else
3714 # Add a -L argument.
3715 newdeplibs="$newdeplibs $a_deplib"
3716 fi
3717 done # Gone through all deplibs.
3718 ;;
3719 match_pattern*)
3720 set dummy $deplibs_check_method
3721 match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
3722 for a_deplib in $deplibs; do
3723 name=`expr $a_deplib : '-l\(.*\)'`
3724 # If $name is empty we are operating on a -L argument.
3725 if test -n "$name" && test "$name" != "0"; then
3726 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3727 case " $predeps $postdeps " in
3728 *" $a_deplib "*)
3729 newdeplibs="$newdeplibs $a_deplib"
3730 a_deplib=""
3731 ;;
3732 esac
3733 fi
3734 if test -n "$a_deplib" ; then
3735 libname=`eval \\$echo \"$libname_spec\"`
3736 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
3737 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
3738 for potent_lib in $potential_libs; do
3739 potlib="$potent_lib" # see symlink-check above in file_magic test
3740 if eval $echo \"$potent_lib\" 2>/dev/null \
3741 | ${SED} 10q \
3742 | $EGREP "$match_pattern_regex" > /dev/null; then
3743 newdeplibs="$newdeplibs $a_deplib"
3744 a_deplib=""
3745 break 2
3746 fi
3747 done
3748 done
3749 fi
3750 if test -n "$a_deplib" ; then
3751 droppeddeps=yes
3752 $echo
3753 $echo "*** Warning: linker path does not have real file for library $a_deplib."
3754 $echo "*** I have the capability to make that library automatically link in when"
3755 $echo "*** you link to this library. But I can only do this if you have a"
3756 $echo "*** shared version of the library, which you do not appear to have"
3757 $echo "*** because I did check the linker path looking for a file starting"
3758 if test -z "$potlib" ; then
3759 $echo "*** with $libname but no candidates were found. (...for regex pattern test)"
3760 else
3761 $echo "*** with $libname and none of the candidates passed a file format test"
3762 $echo "*** using a regex pattern. Last file checked: $potlib"
3763 fi
3764 fi
3765 else
3766 # Add a -L argument.
3767 newdeplibs="$newdeplibs $a_deplib"
3768 fi
3769 done # Gone through all deplibs.
3770 ;;
3771 none | unknown | *)
3772 newdeplibs=""
3773 tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
3774 -e 's/ -[LR][^ ]*//g'`
3775 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3776 for i in $predeps $postdeps ; do
3777 # can't use Xsed below, because $i might contain '/'
3778 tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"`
3779 done
3780 fi
3781 if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \
3782 | grep . >/dev/null; then
3783 $echo
3784 if test "X$deplibs_check_method" = "Xnone"; then
3785 $echo "*** Warning: inter-library dependencies are not supported in this platform."
3786 else
3787 $echo "*** Warning: inter-library dependencies are not known to be supported."
3788 fi
3789 $echo "*** All declared inter-library dependencies are being dropped."
3790 droppeddeps=yes
3791 fi
3792 ;;
3793 esac
3794 versuffix=$versuffix_save
3795 major=$major_save
3796 release=$release_save
3797 libname=$libname_save
3798 name=$name_save
3799
3800 case $host in
3801 *-*-rhapsody* | *-*-darwin1.[012])
3802 # On Rhapsody replace the C library is the System framework
3803 newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
3804 ;;
3805 esac
3806
3807 if test "$droppeddeps" = yes; then
3808 if test "$module" = yes; then
3809 $echo
3810 $echo "*** Warning: libtool could not satisfy all declared inter-library"
3811 $echo "*** dependencies of module $libname. Therefore, libtool will create"
3812 $echo "*** a static module, that should work as long as the dlopening"
3813 $echo "*** application is linked with the -dlopen flag."
3814 if test -z "$global_symbol_pipe"; then
3815 $echo
3816 $echo "*** However, this would only work if libtool was able to extract symbol"
3817 $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
3818 $echo "*** not find such a program. So, this module is probably useless."
3819 $echo "*** \`nm' from GNU binutils and a full rebuild may help."
3820 fi
3821 if test "$build_old_libs" = no; then
3822 oldlibs="$output_objdir/$libname.$libext"
3823 build_libtool_libs=module
3824 build_old_libs=yes
3825 else
3826 build_libtool_libs=no
3827 fi
3828 else
3829 $echo "*** The inter-library dependencies that have been dropped here will be"
3830 $echo "*** automatically added whenever a program is linked with this library"
3831 $echo "*** or is declared to -dlopen it."
3832
3833 if test "$allow_undefined" = no; then
3834 $echo
3835 $echo "*** Since this library must not contain undefined symbols,"
3836 $echo "*** because either the platform does not support them or"
3837 $echo "*** it was explicitly requested with -no-undefined,"
3838 $echo "*** libtool will only create a static version of it."
3839 if test "$build_old_libs" = no; then
3840 oldlibs="$output_objdir/$libname.$libext"
3841 build_libtool_libs=module
3842 build_old_libs=yes
3843 else
3844 build_libtool_libs=no
3845 fi
3846 fi
3847 fi
3848 fi
3849 # Done checking deplibs!
3850 deplibs=$newdeplibs
3851 fi
3852
3853
3854 # move library search paths that coincide with paths to not yet
3855 # installed libraries to the beginning of the library search list
3856 new_libs=
3857 for path in $notinst_path; do
3858 case " $new_libs " in
3859 *" -L$path/$objdir "*) ;;
3860 *)
3861 case " $deplibs " in
3862 *" -L$path/$objdir "*)
3863 new_libs="$new_libs -L$path/$objdir" ;;
3864 esac
3865 ;;
3866 esac
3867 done
3868 for deplib in $deplibs; do
3869 case $deplib in
3870 -L*)
3871 case " $new_libs " in
3872 *" $deplib "*) ;;
3873 *) new_libs="$new_libs $deplib" ;;
3874 esac
3875 ;;
3876 *) new_libs="$new_libs $deplib" ;;
3877 esac
3878 done
3879 deplibs="$new_libs"
3880
3881
3882 # All the library-specific variables (install_libdir is set above).
3883 library_names=
3884 old_library=
3885 dlname=
3886
3887 # Test again, we may have decided not to build it any more
3888 if test "$build_libtool_libs" = yes; then
3889 if test "$hardcode_into_libs" = yes; then
3890 # Hardcode the library paths
3891 hardcode_libdirs=
3892 dep_rpath=
3893 rpath="$finalize_rpath"
3894 test "$mode" != relink && rpath="$compile_rpath$rpath"
3895 for libdir in $rpath; do
3896 if test -n "$hardcode_libdir_flag_spec"; then
3897 if test -n "$hardcode_libdir_separator"; then
3898 if test -z "$hardcode_libdirs"; then
3899 hardcode_libdirs="$libdir"
3900 else
3901 # Just accumulate the unique libdirs.
3902 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
3903 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
3904 ;;
3905 *)
3906 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
3907 ;;
3908 esac
3909 fi
3910 else
3911 eval flag=\"$hardcode_libdir_flag_spec\"
3912 dep_rpath="$dep_rpath $flag"
3913 fi
3914 elif test -n "$runpath_var"; then
3915 case "$perm_rpath " in
3916 *" $libdir "*) ;;
3917 *) perm_rpath="$perm_rpath $libdir" ;;
3918 esac
3919 fi
3920 done
3921 # Substitute the hardcoded libdirs into the rpath.
3922 if test -n "$hardcode_libdir_separator" &&
3923 test -n "$hardcode_libdirs"; then
3924 libdir="$hardcode_libdirs"
3925 if test -n "$hardcode_libdir_flag_spec_ld"; then
3926 case $archive_cmds in
3927 *\$LD*) eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" ;;
3928 *) eval dep_rpath=\"$hardcode_libdir_flag_spec\" ;;
3929 esac
3930 else
3931 eval dep_rpath=\"$hardcode_libdir_flag_spec\"
3932 fi
3933 fi
3934 if test -n "$runpath_var" && test -n "$perm_rpath"; then
3935 # We should set the runpath_var.
3936 rpath=
3937 for dir in $perm_rpath; do
3938 rpath="$rpath$dir:"
3939 done
3940 eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
3941 fi
3942 test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
3943 fi
3944
3945 shlibpath="$finalize_shlibpath"
3946 test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
3947 if test -n "$shlibpath"; then
3948 eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
3949 fi
3950
3951 # Get the real and link names of the library.
3952 eval shared_ext=\"$shrext_cmds\"
3953 eval library_names=\"$library_names_spec\"
3954 set dummy $library_names
3955 realname="$2"
3956 shift; shift
3957
3958 if test -n "$soname_spec"; then
3959 eval soname=\"$soname_spec\"
3960 else
3961 soname="$realname"
3962 fi
3963 if test -z "$dlname"; then
3964 dlname=$soname
3965 fi
3966
3967 lib="$output_objdir/$realname"
3968 linknames=
3969 for link
3970 do
3971 linknames="$linknames $link"
3972 done
3973
3974 # Use standard objects if they are pic
3975 test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
3976
3977 # Prepare the list of exported symbols
3978 if test -z "$export_symbols"; then
3979 if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
3980 $show "generating symbol list for \`$libname.la'"
3981 export_symbols="$output_objdir/$libname.exp"
3982 $run $rm $export_symbols
3983 cmds=$export_symbols_cmds
3984 save_ifs="$IFS"; IFS='~'
3985 for cmd in $cmds; do
3986 IFS="$save_ifs"
3987 eval cmd=\"$cmd\"
3988 if len=`expr "X$cmd" : ".*"` &&
3989 test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
3990 $show "$cmd"
3991 $run eval "$cmd" || exit $?
3992 skipped_export=false
3993 else
3994 # The command line is too long to execute in one step.
3995 $show "using reloadable object file for export list..."
3996 skipped_export=:
3997 # Break out early, otherwise skipped_export may be
3998 # set to false by a later but shorter cmd.
3999 break
4000 fi
4001 done
4002 IFS="$save_ifs"
4003 if test -n "$export_symbols_regex"; then
4004 $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
4005 $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
4006 $show "$mv \"${export_symbols}T\" \"$export_symbols\""
4007 $run eval '$mv "${export_symbols}T" "$export_symbols"'
4008 fi
4009 fi
4010 fi
4011
4012 if test -n "$export_symbols" && test -n "$include_expsyms"; then
4013 $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
4014 fi
4015
4016 tmp_deplibs=
4017 for test_deplib in $deplibs; do
4018 case " $convenience " in
4019 *" $test_deplib "*) ;;
4020 *)
4021 tmp_deplibs="$tmp_deplibs $test_deplib"
4022 ;;
4023 esac
4024 done
4025 deplibs="$tmp_deplibs"
4026
4027 if test -n "$convenience"; then
4028 if test -n "$whole_archive_flag_spec"; then
4029 save_libobjs=$libobjs
4030 eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
4031 else
4032 gentop="$output_objdir/${outputname}x"
4033 generated="$generated $gentop"
4034
4035 func_extract_archives $gentop $convenience
4036 libobjs="$libobjs $func_extract_archives_result"
4037 fi
4038 fi
4039
4040 if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
4041 eval flag=\"$thread_safe_flag_spec\"
4042 linker_flags="$linker_flags $flag"
4043 fi
4044
4045 # Make a backup of the uninstalled library when relinking
4046 if test "$mode" = relink; then
4047 $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $?
4048 fi
4049
4050 # Do each of the archive commands.
4051 if test "$module" = yes && test -n "$module_cmds" ; then
4052 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
4053 eval test_cmds=\"$module_expsym_cmds\"
4054 cmds=$module_expsym_cmds
4055 else
4056 eval test_cmds=\"$module_cmds\"
4057 cmds=$module_cmds
4058 fi
4059 else
4060 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
4061 eval test_cmds=\"$archive_expsym_cmds\"
4062 cmds=$archive_expsym_cmds
4063 else
4064 eval test_cmds=\"$archive_cmds\"
4065 cmds=$archive_cmds
4066 fi
4067 fi
4068
4069 if test "X$skipped_export" != "X:" &&
4070 len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
4071 test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
4072 :
4073 else
4074 # The command line is too long to link in one step, link piecewise.
4075 $echo "creating reloadable object files..."
4076
4077 # Save the value of $output and $libobjs because we want to
4078 # use them later. If we have whole_archive_flag_spec, we
4079 # want to use save_libobjs as it was before
4080 # whole_archive_flag_spec was expanded, because we can't
4081 # assume the linker understands whole_archive_flag_spec.
4082 # This may have to be revisited, in case too many
4083 # convenience libraries get linked in and end up exceeding
4084 # the spec.
4085 if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
4086 save_libobjs=$libobjs
4087 fi
4088 save_output=$output
4089 output_la=`$echo "X$output" | $Xsed -e "$basename"`
4090
4091 # Clear the reloadable object creation command queue and
4092 # initialize k to one.
4093 test_cmds=
4094 concat_cmds=
4095 objlist=
4096 delfiles=
4097 last_robj=
4098 k=1
4099 output=$output_objdir/$output_la-${k}.$objext
4100 # Loop over the list of objects to be linked.
4101 for obj in $save_libobjs
4102 do
4103 eval test_cmds=\"$reload_cmds $objlist $last_robj\"
4104 if test "X$objlist" = X ||
4105 { len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
4106 test "$len" -le "$max_cmd_len"; }; then
4107 objlist="$objlist $obj"
4108 else
4109 # The command $test_cmds is almost too long, add a
4110 # command to the queue.
4111 if test "$k" -eq 1 ; then
4112 # The first file doesn't have a previous command to add.
4113 eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
4114 else
4115 # All subsequent reloadable object files will link in
4116 # the last one created.
4117 eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
4118 fi
4119 last_robj=$output_objdir/$output_la-${k}.$objext
4120 k=`expr $k + 1`
4121 output=$output_objdir/$output_la-${k}.$objext
4122 objlist=$obj
4123 len=1
4124 fi
4125 done
4126 # Handle the remaining objects by creating one last
4127 # reloadable object file. All subsequent reloadable object
4128 # files will link in the last one created.
4129 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
4130 eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
4131
4132 if ${skipped_export-false}; then
4133 $show "generating symbol list for \`$libname.la'"
4134 export_symbols="$output_objdir/$libname.exp"
4135 $run $rm $export_symbols
4136 libobjs=$output
4137 # Append the command to create the export file.
4138 eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
4139 fi
4140
4141 # Set up a command to remove the reloadable object files
4142 # after they are used.
4143 i=0
4144 while test "$i" -lt "$k"
4145 do
4146 i=`expr $i + 1`
4147 delfiles="$delfiles $output_objdir/$output_la-${i}.$objext"
4148 done
4149
4150 $echo "creating a temporary reloadable object file: $output"
4151
4152 # Loop through the commands generated above and execute them.
4153 save_ifs="$IFS"; IFS='~'
4154 for cmd in $concat_cmds; do
4155 IFS="$save_ifs"
4156 $show "$cmd"
4157 $run eval "$cmd" || exit $?
4158 done
4159 IFS="$save_ifs"
4160
4161 libobjs=$output
4162 # Restore the value of output.
4163 output=$save_output
4164
4165 if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
4166 eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
4167 fi
4168 # Expand the library linking commands again to reset the
4169 # value of $libobjs for piecewise linking.
4170
4171 # Do each of the archive commands.
4172 if test "$module" = yes && test -n "$module_cmds" ; then
4173 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
4174 cmds=$module_expsym_cmds
4175 else
4176 cmds=$module_cmds
4177 fi
4178 else
4179 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
4180 cmds=$archive_expsym_cmds
4181 else
4182 cmds=$archive_cmds
4183 fi
4184 fi
4185
4186 # Append the command to remove the reloadable object files
4187 # to the just-reset $cmds.
4188 eval cmds=\"\$cmds~\$rm $delfiles\"
4189 fi
4190 save_ifs="$IFS"; IFS='~'
4191 for cmd in $cmds; do
4192 IFS="$save_ifs"
4193 eval cmd=\"$cmd\"
4194 $show "$cmd"
4195 $run eval "$cmd" || {
4196 lt_exit=$?
4197
4198 # Restore the uninstalled library and exit
4199 if test "$mode" = relink; then
4200 $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
4201 fi
4202
4203 exit $lt_exit
4204 }
4205 done
4206 IFS="$save_ifs"
4207
4208 # Restore the uninstalled library and exit
4209 if test "$mode" = relink; then
4210 $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
4211
4212 if test -n "$convenience"; then
4213 if test -z "$whole_archive_flag_spec"; then
4214 $show "${rm}r $gentop"
4215 $run ${rm}r "$gentop"
4216 fi
4217 fi
4218
4219 exit $EXIT_SUCCESS
4220 fi
4221
4222 # Create links to the real library.
4223 for linkname in $linknames; do
4224 if test "$realname" != "$linkname"; then
4225 $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)"
4226 $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $?
4227 fi
4228 done
4229
4230 # If -module or -export-dynamic was specified, set the dlname.
4231 if test "$module" = yes || test "$export_dynamic" = yes; then
4232 # On all known operating systems, these are identical.
4233 dlname="$soname"
4234 fi
4235 fi
4236 ;;
4237
4238 obj)
4239 if test -n "$deplibs"; then
4240 $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
4241 fi
4242
4243 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
4244 $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
4245 fi
4246
4247 if test -n "$rpath"; then
4248 $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2
4249 fi
4250
4251 if test -n "$xrpath"; then
4252 $echo "$modename: warning: \`-R' is ignored for objects" 1>&2
4253 fi
4254
4255 if test -n "$vinfo"; then
4256 $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2
4257 fi
4258
4259 if test -n "$release"; then
4260 $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
4261 fi
4262
4263 case $output in
4264 *.lo)
4265 if test -n "$objs$old_deplibs"; then
4266 $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
4267 exit $EXIT_FAILURE
4268 fi
4269 libobj="$output"
4270 obj=`$echo "X$output" | $Xsed -e "$lo2o"`
4271 ;;
4272 *)
4273 libobj=
4274 obj="$output"
4275 ;;
4276 esac
4277
4278 # Delete the old objects.
4279 $run $rm $obj $libobj
4280
4281 # Objects from convenience libraries. This assumes
4282 # single-version convenience libraries. Whenever we create
4283 # different ones for PIC/non-PIC, this we'll have to duplicate
4284 # the extraction.
4285 reload_conv_objs=
4286 gentop=
4287 # reload_cmds runs $LD directly, so let us get rid of
4288 # -Wl from whole_archive_flag_spec and hope we can get by with
4289 # turning comma into space..
4290 wl=
4291
4292 if test -n "$convenience"; then
4293 if test -n "$whole_archive_flag_spec"; then
4294 eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
4295 reload_conv_objs=$reload_objs\ `$echo "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
4296 else
4297 gentop="$output_objdir/${obj}x"
4298 generated="$generated $gentop"
4299
4300 func_extract_archives $gentop $convenience
4301 reload_conv_objs="$reload_objs $func_extract_archives_result"
4302 fi
4303 fi
4304
4305 # Create the old-style object.
4306 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
4307
4308 output="$obj"
4309 cmds=$reload_cmds
4310 save_ifs="$IFS"; IFS='~'
4311 for cmd in $cmds; do
4312 IFS="$save_ifs"
4313 eval cmd=\"$cmd\"
4314 $show "$cmd"
4315 $run eval "$cmd" || exit $?
4316 done
4317 IFS="$save_ifs"
4318
4319 # Exit if we aren't doing a library object file.
4320 if test -z "$libobj"; then
4321 if test -n "$gentop"; then
4322 $show "${rm}r $gentop"
4323 $run ${rm}r $gentop
4324 fi
4325
4326 exit $EXIT_SUCCESS
4327 fi
4328
4329 if test "$build_libtool_libs" != yes; then
4330 if test -n "$gentop"; then
4331 $show "${rm}r $gentop"
4332 $run ${rm}r $gentop
4333 fi
4334
4335 # Create an invalid libtool object if no PIC, so that we don't
4336 # accidentally link it into a program.
4337 # $show "echo timestamp > $libobj"
4338 # $run eval "echo timestamp > $libobj" || exit $?
4339 exit $EXIT_SUCCESS
4340 fi
4341
4342 if test -n "$pic_flag" || test "$pic_mode" != default; then
4343 # Only do commands if we really have different PIC objects.
4344 reload_objs="$libobjs $reload_conv_objs"
4345 output="$libobj"
4346 cmds=$reload_cmds
4347 save_ifs="$IFS"; IFS='~'
4348 for cmd in $cmds; do
4349 IFS="$save_ifs"
4350 eval cmd=\"$cmd\"
4351 $show "$cmd"
4352 $run eval "$cmd" || exit $?
4353 done
4354 IFS="$save_ifs"
4355 fi
4356
4357 if test -n "$gentop"; then
4358 $show "${rm}r $gentop"
4359 $run ${rm}r $gentop
4360 fi
4361
4362 exit $EXIT_SUCCESS
4363 ;;
4364
4365 prog)
4366 case $host in
4367 *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
4368 esac
4369 if test -n "$vinfo"; then
4370 $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
4371 fi
4372
4373 if test -n "$release"; then
4374 $echo "$modename: warning: \`-release' is ignored for programs" 1>&2
4375 fi
4376
4377 if test "$preload" = yes; then
4378 if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown &&
4379 test "$dlopen_self_static" = unknown; then
4380 $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
4381 fi
4382 fi
4383
4384 case $host in
4385 *-*-rhapsody* | *-*-darwin1.[012])
4386 # On Rhapsody replace the C library is the System framework
4387 compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
4388 finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
4389 ;;
4390 esac
4391
4392 case $host in
4393 *darwin*)
4394 # Don't allow lazy linking, it breaks C++ global constructors
4395 if test "$tagname" = CXX ; then
4396 compile_command="$compile_command ${wl}-bind_at_load"
4397 finalize_command="$finalize_command ${wl}-bind_at_load"
4398 fi
4399 ;;
4400 esac
4401
4402
4403 # move library search paths that coincide with paths to not yet
4404 # installed libraries to the beginning of the library search list
4405 new_libs=
4406 for path in $notinst_path; do
4407 case " $new_libs " in
4408 *" -L$path/$objdir "*) ;;
4409 *)
4410 case " $compile_deplibs " in
4411 *" -L$path/$objdir "*)
4412 new_libs="$new_libs -L$path/$objdir" ;;
4413 esac
4414 ;;
4415 esac
4416 done
4417 for deplib in $compile_deplibs; do
4418 case $deplib in
4419 -L*)
4420 case " $new_libs " in
4421 *" $deplib "*) ;;
4422 *) new_libs="$new_libs $deplib" ;;
4423 esac
4424 ;;
4425 *) new_libs="$new_libs $deplib" ;;
4426 esac
4427 done
4428 compile_deplibs="$new_libs"
4429
4430
4431 compile_command="$compile_command $compile_deplibs"
4432 finalize_command="$finalize_command $finalize_deplibs"
4433
4434 if test -n "$rpath$xrpath"; then
4435 # If the user specified any rpath flags, then add them.
4436 for libdir in $rpath $xrpath; do
4437 # This is the magic to use -rpath.
4438 case "$finalize_rpath " in
4439 *" $libdir "*) ;;
4440 *) finalize_rpath="$finalize_rpath $libdir" ;;
4441 esac
4442 done
4443 fi
4444
4445 # Now hardcode the library paths
4446 rpath=
4447 hardcode_libdirs=
4448 for libdir in $compile_rpath $finalize_rpath; do
4449 if test -n "$hardcode_libdir_flag_spec"; then
4450 if test -n "$hardcode_libdir_separator"; then
4451 if test -z "$hardcode_libdirs"; then
4452 hardcode_libdirs="$libdir"
4453 else
4454 # Just accumulate the unique libdirs.
4455 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
4456 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
4457 ;;
4458 *)
4459 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
4460 ;;
4461 esac
4462 fi
4463 else
4464 eval flag=\"$hardcode_libdir_flag_spec\"
4465 rpath="$rpath $flag"
4466 fi
4467 elif test -n "$runpath_var"; then
4468 case "$perm_rpath " in
4469 *" $libdir "*) ;;
4470 *) perm_rpath="$perm_rpath $libdir" ;;
4471 esac
4472 fi
4473 case $host in
4474 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
4475 testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'`
4476 case :$dllsearchpath: in
4477 *":$libdir:"*) ;;
4478 *) dllsearchpath="$dllsearchpath:$libdir";;
4479 esac
4480 case :$dllsearchpath: in
4481 *":$testbindir:"*) ;;
4482 *) dllsearchpath="$dllsearchpath:$testbindir";;
4483 esac
4484 ;;
4485 esac
4486 done
4487 # Substitute the hardcoded libdirs into the rpath.
4488 if test -n "$hardcode_libdir_separator" &&
4489 test -n "$hardcode_libdirs"; then
4490 libdir="$hardcode_libdirs"
4491 eval rpath=\" $hardcode_libdir_flag_spec\"
4492 fi
4493 compile_rpath="$rpath"
4494
4495 rpath=
4496 hardcode_libdirs=
4497 for libdir in $finalize_rpath; do
4498 if test -n "$hardcode_libdir_flag_spec"; then
4499 if test -n "$hardcode_libdir_separator"; then
4500 if test -z "$hardcode_libdirs"; then
4501 hardcode_libdirs="$libdir"
4502 else
4503 # Just accumulate the unique libdirs.
4504 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
4505 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
4506 ;;
4507 *)
4508 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
4509 ;;
4510 esac
4511 fi
4512 else
4513 eval flag=\"$hardcode_libdir_flag_spec\"
4514 rpath="$rpath $flag"
4515 fi
4516 elif test -n "$runpath_var"; then
4517 case "$finalize_perm_rpath " in
4518 *" $libdir "*) ;;
4519 *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
4520 esac
4521 fi
4522 done
4523 # Substitute the hardcoded libdirs into the rpath.
4524 if test -n "$hardcode_libdir_separator" &&
4525 test -n "$hardcode_libdirs"; then
4526 libdir="$hardcode_libdirs"
4527 eval rpath=\" $hardcode_libdir_flag_spec\"
4528 fi
4529 finalize_rpath="$rpath"
4530
4531 if test -n "$libobjs" && test "$build_old_libs" = yes; then
4532 # Transform all the library objects into standard objects.
4533 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
4534 finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
4535 fi
4536
4537 dlsyms=
4538 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
4539 if test -n "$NM" && test -n "$global_symbol_pipe"; then
4540 dlsyms="${outputname}S.c"
4541 else
4542 $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2
4543 fi
4544 fi
4545
4546 if test -n "$dlsyms"; then
4547 case $dlsyms in
4548 "") ;;
4549 *.c)
4550 # Discover the nlist of each of the dlfiles.
4551 nlist="$output_objdir/${outputname}.nm"
4552
4553 $show "$rm $nlist ${nlist}S ${nlist}T"
4554 $run $rm "$nlist" "${nlist}S" "${nlist}T"
4555
4556 # Parse the name list into a source file.
4557 $show "creating $output_objdir/$dlsyms"
4558
4559 test -z "$run" && $echo > "$output_objdir/$dlsyms" "\
4560 /* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */
4561 /* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */
4562
4563 #ifdef __cplusplus
4564 extern \"C\" {
4565 #endif
4566
4567 /* Prevent the only kind of declaration conflicts we can make. */
4568 #define lt_preloaded_symbols some_other_symbol
4569
4570 /* External symbol declarations for the compiler. */\
4571 "
4572
4573 if test "$dlself" = yes; then
4574 $show "generating symbol list for \`$output'"
4575
4576 test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
4577
4578 # Add our own program objects to the symbol list.
4579 progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
4580 for arg in $progfiles; do
4581 $show "extracting global C symbols from \`$arg'"
4582 $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
4583 done
4584
4585 if test -n "$exclude_expsyms"; then
4586 $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
4587 $run eval '$mv "$nlist"T "$nlist"'
4588 fi
4589
4590 if test -n "$export_symbols_regex"; then
4591 $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
4592 $run eval '$mv "$nlist"T "$nlist"'
4593 fi
4594
4595 # Prepare the list of exported symbols
4596 if test -z "$export_symbols"; then
4597 export_symbols="$output_objdir/$outputname.exp"
4598 $run $rm $export_symbols
4599 $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
4600 case $host in
4601 *cygwin* | *mingw* )
4602 $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
4603 $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
4604 ;;
4605 esac
4606 else
4607 $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
4608 $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
4609 $run eval 'mv "$nlist"T "$nlist"'
4610 case $host in
4611 *cygwin* | *mingw* )
4612 $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
4613 $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
4614 ;;
4615 esac
4616 fi
4617 fi
4618
4619 for arg in $dlprefiles; do
4620 $show "extracting global C symbols from \`$arg'"
4621 name=`$echo "$arg" | ${SED} -e 's%^.*/%%'`
4622 $run eval '$echo ": $name " >> "$nlist"'
4623 $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
4624 done
4625
4626 if test -z "$run"; then
4627 # Make sure we have at least an empty file.
4628 test -f "$nlist" || : > "$nlist"
4629
4630 if test -n "$exclude_expsyms"; then
4631 $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
4632 $mv "$nlist"T "$nlist"
4633 fi
4634
4635 # Try sorting and uniquifying the output.
4636 if grep -v "^: " < "$nlist" |
4637 if sort -k 3 </dev/null >/dev/null 2>&1; then
4638 sort -k 3
4639 else
4640 sort +2
4641 fi |
4642 uniq > "$nlist"S; then
4643 :
4644 else
4645 grep -v "^: " < "$nlist" > "$nlist"S
4646 fi
4647
4648 if test -f "$nlist"S; then
4649 eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
4650 else
4651 $echo '/* NONE */' >> "$output_objdir/$dlsyms"
4652 fi
4653
4654 $echo >> "$output_objdir/$dlsyms" "\
4655
4656 #undef lt_preloaded_symbols
4657
4658 #if defined (__STDC__) && __STDC__
4659 # define lt_ptr void *
4660 #else
4661 # define lt_ptr char *
4662 # define const
4663 #endif
4664
4665 /* The mapping between symbol names and symbols. */
4666 "
4667
4668 case $host in
4669 *cygwin* | *mingw* )
4670 $echo >> "$output_objdir/$dlsyms" "\
4671 /* DATA imports from DLLs on WIN32 can't be const, because
4672 runtime relocations are performed -- see ld's documentation
4673 on pseudo-relocs */
4674 struct {
4675 "
4676 ;;
4677 * )
4678 $echo >> "$output_objdir/$dlsyms" "\
4679 const struct {
4680 "
4681 ;;
4682 esac
4683
4684
4685 $echo >> "$output_objdir/$dlsyms" "\
4686 const char *name;
4687 lt_ptr address;
4688 }
4689 lt_preloaded_symbols[] =
4690 {\
4691 "
4692
4693 eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
4694
4695 $echo >> "$output_objdir/$dlsyms" "\
4696 {0, (lt_ptr) 0}
4697 };
4698
4699 /* This works around a problem in FreeBSD linker */
4700 #ifdef FREEBSD_WORKAROUND
4701 static const void *lt_preloaded_setup() {
4702 return lt_preloaded_symbols;
4703 }
4704 #endif
4705
4706 #ifdef __cplusplus
4707 }
4708 #endif\
4709 "
4710 fi
4711
4712 pic_flag_for_symtable=
4713 case $host in
4714 # compiling the symbol table file with pic_flag works around
4715 # a FreeBSD bug that causes programs to crash when -lm is
4716 # linked before any other PIC object. But we must not use
4717 # pic_flag when linking with -static. The problem exists in
4718 # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
4719 *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
4720 case "$compile_command " in
4721 *" -static "*) ;;
4722 *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";;
4723 esac;;
4724 *-*-hpux*)
4725 case "$compile_command " in
4726 *" -static "*) ;;
4727 *) pic_flag_for_symtable=" $pic_flag";;
4728 esac
4729 esac
4730
4731 # Now compile the dynamic symbol file.
4732 $show "(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
4733 $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
4734
4735 # Clean up the generated files.
4736 $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
4737 $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
4738
4739 # Transform the symbol file into the correct name.
4740 case $host in
4741 *cygwin* | *mingw* )
4742 if test -f "$output_objdir/${outputname}.def" ; then
4743 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
4744 finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
4745 else
4746 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
4747 finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
4748 fi
4749 ;;
4750 * )
4751 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
4752 finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
4753 ;;
4754 esac
4755 ;;
4756 *)
4757 $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
4758 exit $EXIT_FAILURE
4759 ;;
4760 esac
4761 else
4762 # We keep going just in case the user didn't refer to
4763 # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
4764 # really was required.
4765
4766 # Nullify the symbol file.
4767 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
4768 finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
4769 fi
4770
4771 if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
4772 # Replace the output file specification.
4773 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$output"'%g' | $NL2SP`
4774 link_command="$compile_command$compile_rpath"
4775
4776 # We have no uninstalled library dependencies, so finalize right now.
4777 $show "$link_command"
4778 $run eval "$link_command"
4779 exit_status=$?
4780
4781 # Delete the generated files.
4782 if test -n "$dlsyms"; then
4783 $show "$rm $output_objdir/${outputname}S.${objext}"
4784 $run $rm "$output_objdir/${outputname}S.${objext}"
4785 fi
4786
4787 exit $exit_status
4788 fi
4789
4790 if test -n "$shlibpath_var"; then
4791 # We should set the shlibpath_var
4792 rpath=
4793 for dir in $temp_rpath; do
4794 case $dir in
4795 [\\/]* | [A-Za-z]:[\\/]*)
4796 # Absolute path.
4797 rpath="$rpath$dir:"
4798 ;;
4799 *)
4800 # Relative path: add a thisdir entry.
4801 rpath="$rpath\$thisdir/$dir:"
4802 ;;
4803 esac
4804 done
4805 temp_rpath="$rpath"
4806 fi
4807
4808 if test -n "$compile_shlibpath$finalize_shlibpath"; then
4809 compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
4810 fi
4811 if test -n "$finalize_shlibpath"; then
4812 finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
4813 fi
4814
4815 compile_var=
4816 finalize_var=
4817 if test -n "$runpath_var"; then
4818 if test -n "$perm_rpath"; then
4819 # We should set the runpath_var.
4820 rpath=
4821 for dir in $perm_rpath; do
4822 rpath="$rpath$dir:"
4823 done
4824 compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
4825 fi
4826 if test -n "$finalize_perm_rpath"; then
4827 # We should set the runpath_var.
4828 rpath=
4829 for dir in $finalize_perm_rpath; do
4830 rpath="$rpath$dir:"
4831 done
4832 finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
4833 fi
4834 fi
4835
4836 if test "$no_install" = yes; then
4837 # We don't need to create a wrapper script.
4838 link_command="$compile_var$compile_command$compile_rpath"
4839 # Replace the output file specification.
4840 link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
4841 # Delete the old output file.
4842 $run $rm $output
4843 # Link the executable and exit
4844 $show "$link_command"
4845 $run eval "$link_command" || exit $?
4846 exit $EXIT_SUCCESS
4847 fi
4848
4849 if test "$hardcode_action" = relink; then
4850 # Fast installation is not supported
4851 link_command="$compile_var$compile_command$compile_rpath"
4852 relink_command="$finalize_var$finalize_command$finalize_rpath"
4853
4854 $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
4855 $echo "$modename: \`$output' will be relinked during installation" 1>&2
4856 else
4857 if test "$fast_install" != no; then
4858 link_command="$finalize_var$compile_command$finalize_rpath"
4859 if test "$fast_install" = yes; then
4860 relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $SP2NL | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g' | $NL2SP`
4861 else
4862 # fast_install is set to needless
4863 relink_command=
4864 fi
4865 else
4866 link_command="$compile_var$compile_command$compile_rpath"
4867 relink_command="$finalize_var$finalize_command$finalize_rpath"
4868 fi
4869 fi
4870
4871 # Replace the output file specification.
4872 link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
4873
4874 # Delete the old output files.
4875 $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
4876
4877 $show "$link_command"
4878 $run eval "$link_command" || exit $?
4879
4880 # Now create the wrapper script.
4881 $show "creating $output"
4882
4883 # Quote the relink command for shipping.
4884 if test -n "$relink_command"; then
4885 # Preserve any variables that may affect compiler behavior
4886 for var in $variables_saved_for_relink; do
4887 if eval test -z \"\${$var+set}\"; then
4888 relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
4889 elif eval var_value=\$$var; test -z "$var_value"; then
4890 relink_command="$var=; export $var; $relink_command"
4891 else
4892 var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
4893 relink_command="$var=\"$var_value\"; export $var; $relink_command"
4894 fi
4895 done
4896 relink_command="(cd `pwd`; $relink_command)"
4897 relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
4898 fi
4899
4900 # Quote $echo for shipping.
4901 if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then
4902 case $progpath in
4903 [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
4904 *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
4905 esac
4906 qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
4907 else
4908 qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"`
4909 fi
4910
4911 # Only actually do things if our run command is non-null.
4912 if test -z "$run"; then
4913 # win32 will think the script is a binary if it has
4914 # a .exe suffix, so we strip it off here.
4915 case $output in
4916 *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;;
4917 esac
4918 # test for cygwin because mv fails w/o .exe extensions
4919 case $host in
4920 *cygwin*)
4921 exeext=.exe
4922 outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;;
4923 *) exeext= ;;
4924 esac
4925 case $host in
4926 *cygwin* | *mingw* )
4927 output_name=`basename $output`
4928 output_path=`dirname $output`
4929 cwrappersource="$output_path/$objdir/lt-$output_name.c"
4930 cwrapper="$output_path/$output_name.exe"
4931 $rm $cwrappersource $cwrapper
4932 trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
4933
4934 cat > $cwrappersource <<EOF
4935
4936 /* $cwrappersource - temporary wrapper executable for $objdir/$outputname
4937 Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
4938
4939 The $output program cannot be directly executed until all the libtool
4940 libraries that it depends on are installed.
4941
4942 This wrapper executable should never be moved out of the build directory.
4943 If it is, it will not operate correctly.
4944
4945 Currently, it simply execs the wrapper *script* "/bin/sh $output",
4946 but could eventually absorb all of the scripts functionality and
4947 exec $objdir/$outputname directly.
4948 */
4949 EOF
4950 cat >> $cwrappersource<<"EOF"
4951 #include <stdio.h>
4952 #include <stdlib.h>
4953 #include <unistd.h>
4954 #include <malloc.h>
4955 #include <stdarg.h>
4956 #include <assert.h>
4957 #include <string.h>
4958 #include <ctype.h>
4959 #include <sys/stat.h>
4960
4961 #if defined(PATH_MAX)
4962 # define LT_PATHMAX PATH_MAX
4963 #elif defined(MAXPATHLEN)
4964 # define LT_PATHMAX MAXPATHLEN
4965 #else
4966 # define LT_PATHMAX 1024
4967 #endif
4968
4969 #ifndef DIR_SEPARATOR
4970 # define DIR_SEPARATOR '/'
4971 # define PATH_SEPARATOR ':'
4972 #endif
4973
4974 #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
4975 defined (__OS2__)
4976 # define HAVE_DOS_BASED_FILE_SYSTEM
4977 # ifndef DIR_SEPARATOR_2
4978 # define DIR_SEPARATOR_2 '\\'
4979 # endif
4980 # ifndef PATH_SEPARATOR_2
4981 # define PATH_SEPARATOR_2 ';'
4982 # endif
4983 #endif
4984
4985 #ifndef DIR_SEPARATOR_2
4986 # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
4987 #else /* DIR_SEPARATOR_2 */
4988 # define IS_DIR_SEPARATOR(ch) \
4989 (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
4990 #endif /* DIR_SEPARATOR_2 */
4991
4992 #ifndef PATH_SEPARATOR_2
4993 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
4994 #else /* PATH_SEPARATOR_2 */
4995 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
4996 #endif /* PATH_SEPARATOR_2 */
4997
4998 #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
4999 #define XFREE(stale) do { \
5000 if (stale) { free ((void *) stale); stale = 0; } \
5001 } while (0)
5002
5003 /* -DDEBUG is fairly common in CFLAGS. */
5004 #undef DEBUG
5005 #if defined DEBUGWRAPPER
5006 # define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__)
5007 #else
5008 # define DEBUG(format, ...)
5009 #endif
5010
5011 const char *program_name = NULL;
5012
5013 void * xmalloc (size_t num);
5014 char * xstrdup (const char *string);
5015 const char * base_name (const char *name);
5016 char * find_executable(const char *wrapper);
5017 int check_executable(const char *path);
5018 char * strendzap(char *str, const char *pat);
5019 void lt_fatal (const char *message, ...);
5020
5021 int
5022 main (int argc, char *argv[])
5023 {
5024 char **newargz;
5025 int i;
5026
5027 program_name = (char *) xstrdup (base_name (argv[0]));
5028 DEBUG("(main) argv[0] : %s\n",argv[0]);
5029 DEBUG("(main) program_name : %s\n",program_name);
5030 newargz = XMALLOC(char *, argc+2);
5031 EOF
5032
5033 cat >> $cwrappersource <<EOF
5034 newargz[0] = (char *) xstrdup("$SHELL");
5035 EOF
5036
5037 cat >> $cwrappersource <<"EOF"
5038 newargz[1] = find_executable(argv[0]);
5039 if (newargz[1] == NULL)
5040 lt_fatal("Couldn't find %s", argv[0]);
5041 DEBUG("(main) found exe at : %s\n",newargz[1]);
5042 /* we know the script has the same name, without the .exe */
5043 /* so make sure newargz[1] doesn't end in .exe */
5044 strendzap(newargz[1],".exe");
5045 for (i = 1; i < argc; i++)
5046 newargz[i+1] = xstrdup(argv[i]);
5047 newargz[argc+1] = NULL;
5048
5049 for (i=0; i<argc+1; i++)
5050 {
5051 DEBUG("(main) newargz[%d] : %s\n",i,newargz[i]);
5052 ;
5053 }
5054
5055 EOF
5056
5057 case $host_os in
5058 mingw*)
5059 cat >> $cwrappersource <<EOF
5060 execv("$SHELL",(char const **)newargz);
5061 EOF
5062 ;;
5063 *)
5064 cat >> $cwrappersource <<EOF
5065 execv("$SHELL",newargz);
5066 EOF
5067 ;;
5068 esac
5069
5070 cat >> $cwrappersource <<"EOF"
5071 return 127;
5072 }
5073
5074 void *
5075 xmalloc (size_t num)
5076 {
5077 void * p = (void *) malloc (num);
5078 if (!p)
5079 lt_fatal ("Memory exhausted");
5080
5081 return p;
5082 }
5083
5084 char *
5085 xstrdup (const char *string)
5086 {
5087 return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
5088 ;
5089 }
5090
5091 const char *
5092 base_name (const char *name)
5093 {
5094 const char *base;
5095
5096 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
5097 /* Skip over the disk name in MSDOS pathnames. */
5098 if (isalpha ((unsigned char)name[0]) && name[1] == ':')
5099 name += 2;
5100 #endif
5101
5102 for (base = name; *name; name++)
5103 if (IS_DIR_SEPARATOR (*name))
5104 base = name + 1;
5105 return base;
5106 }
5107
5108 int
5109 check_executable(const char * path)
5110 {
5111 struct stat st;
5112
5113 DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!");
5114 if ((!path) || (!*path))
5115 return 0;
5116
5117 if ((stat (path, &st) >= 0) &&
5118 (
5119 /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
5120 #if defined (S_IXOTH)
5121 ((st.st_mode & S_IXOTH) == S_IXOTH) ||
5122 #endif
5123 #if defined (S_IXGRP)
5124 ((st.st_mode & S_IXGRP) == S_IXGRP) ||
5125 #endif
5126 ((st.st_mode & S_IXUSR) == S_IXUSR))
5127 )
5128 return 1;
5129 else
5130 return 0;
5131 }
5132
5133 /* Searches for the full path of the wrapper. Returns
5134 newly allocated full path name if found, NULL otherwise */
5135 char *
5136 find_executable (const char* wrapper)
5137 {
5138 int has_slash = 0;
5139 const char* p;
5140 const char* p_next;
5141 /* static buffer for getcwd */
5142 char tmp[LT_PATHMAX + 1];
5143 int tmp_len;
5144 char* concat_name;
5145
5146 DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!");
5147
5148 if ((wrapper == NULL) || (*wrapper == '\0'))
5149 return NULL;
5150
5151 /* Absolute path? */
5152 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
5153 if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':')
5154 {
5155 concat_name = xstrdup (wrapper);
5156 if (check_executable(concat_name))
5157 return concat_name;
5158 XFREE(concat_name);
5159 }
5160 else
5161 {
5162 #endif
5163 if (IS_DIR_SEPARATOR (wrapper[0]))
5164 {
5165 concat_name = xstrdup (wrapper);
5166 if (check_executable(concat_name))
5167 return concat_name;
5168 XFREE(concat_name);
5169 }
5170 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
5171 }
5172 #endif
5173
5174 for (p = wrapper; *p; p++)
5175 if (*p == '/')
5176 {
5177 has_slash = 1;
5178 break;
5179 }
5180 if (!has_slash)
5181 {
5182 /* no slashes; search PATH */
5183 const char* path = getenv ("PATH");
5184 if (path != NULL)
5185 {
5186 for (p = path; *p; p = p_next)
5187 {
5188 const char* q;
5189 size_t p_len;
5190 for (q = p; *q; q++)
5191 if (IS_PATH_SEPARATOR(*q))
5192 break;
5193 p_len = q - p;
5194 p_next = (*q == '\0' ? q : q + 1);
5195 if (p_len == 0)
5196 {
5197 /* empty path: current directory */
5198 if (getcwd (tmp, LT_PATHMAX) == NULL)
5199 lt_fatal ("getcwd failed");
5200 tmp_len = strlen(tmp);
5201 concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
5202 memcpy (concat_name, tmp, tmp_len);
5203 concat_name[tmp_len] = '/';
5204 strcpy (concat_name + tmp_len + 1, wrapper);
5205 }
5206 else
5207 {
5208 concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1);
5209 memcpy (concat_name, p, p_len);
5210 concat_name[p_len] = '/';
5211 strcpy (concat_name + p_len + 1, wrapper);
5212 }
5213 if (check_executable(concat_name))
5214 return concat_name;
5215 XFREE(concat_name);
5216 }
5217 }
5218 /* not found in PATH; assume curdir */
5219 }
5220 /* Relative path | not found in path: prepend cwd */
5221 if (getcwd (tmp, LT_PATHMAX) == NULL)
5222 lt_fatal ("getcwd failed");
5223 tmp_len = strlen(tmp);
5224 concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
5225 memcpy (concat_name, tmp, tmp_len);
5226 concat_name[tmp_len] = '/';
5227 strcpy (concat_name + tmp_len + 1, wrapper);
5228
5229 if (check_executable(concat_name))
5230 return concat_name;
5231 XFREE(concat_name);
5232 return NULL;
5233 }
5234
5235 char *
5236 strendzap(char *str, const char *pat)
5237 {
5238 size_t len, patlen;
5239
5240 assert(str != NULL);
5241 assert(pat != NULL);
5242
5243 len = strlen(str);
5244 patlen = strlen(pat);
5245
5246 if (patlen <= len)
5247 {
5248 str += len - patlen;
5249 if (strcmp(str, pat) == 0)
5250 *str = '\0';
5251 }
5252 return str;
5253 }
5254
5255 static void
5256 lt_error_core (int exit_status, const char * mode,
5257 const char * message, va_list ap)
5258 {
5259 fprintf (stderr, "%s: %s: ", program_name, mode);
5260 vfprintf (stderr, message, ap);
5261 fprintf (stderr, ".\n");
5262
5263 if (exit_status >= 0)
5264 exit (exit_status);
5265 }
5266
5267 void
5268 lt_fatal (const char *message, ...)
5269 {
5270 va_list ap;
5271 va_start (ap, message);
5272 lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
5273 va_end (ap);
5274 }
5275 EOF
5276 # we should really use a build-platform specific compiler
5277 # here, but OTOH, the wrappers (shell script and this C one)
5278 # are only useful if you want to execute the "real" binary.
5279 # Since the "real" binary is built for $host, then this
5280 # wrapper might as well be built for $host, too.
5281 $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource
5282 ;;
5283 esac
5284 $rm $output
5285 trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
5286
5287 $echo > $output "\
5288 #! $SHELL
5289
5290 # $output - temporary wrapper script for $objdir/$outputname
5291 # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
5292 #
5293 # The $output program cannot be directly executed until all the libtool
5294 # libraries that it depends on are installed.
5295 #
5296 # This wrapper script should never be moved out of the build directory.
5297 # If it is, it will not operate correctly.
5298
5299 # Sed substitution that helps us do robust quoting. It backslashifies
5300 # metacharacters that are still active within double-quoted strings.
5301 Xsed='${SED} -e 1s/^X//'
5302 sed_quote_subst='$sed_quote_subst'
5303
5304 # Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
5305 if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
5306 emulate sh
5307 NULLCMD=:
5308 # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
5309 # is contrary to our usage. Disable this feature.
5310 alias -g '\${1+\"\$@\"}'='\"\$@\"'
5311 setopt NO_GLOB_SUBST
5312 else
5313 case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
5314 fi
5315 BIN_SH=xpg4; export BIN_SH # for Tru64
5316 DUALCASE=1; export DUALCASE # for MKS sh
5317
5318 # The HP-UX ksh and POSIX shell print the target directory to stdout
5319 # if CDPATH is set.
5320 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5321
5322 relink_command=\"$relink_command\"
5323
5324 # This environment variable determines our operation mode.
5325 if test \"\$libtool_install_magic\" = \"$magic\"; then
5326 # install mode needs the following variable:
5327 notinst_deplibs='$notinst_deplibs'
5328 else
5329 # When we are sourced in execute mode, \$file and \$echo are already set.
5330 if test \"\$libtool_execute_magic\" != \"$magic\"; then
5331 echo=\"$qecho\"
5332 file=\"\$0\"
5333 # Make sure echo works.
5334 if test \"X\$1\" = X--no-reexec; then
5335 # Discard the --no-reexec flag, and continue.
5336 shift
5337 elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then
5338 # Yippee, \$echo works!
5339 :
5340 else
5341 # Restart under the correct shell, and then maybe \$echo will work.
5342 exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
5343 fi
5344 fi\
5345 "
5346 $echo >> $output "\
5347
5348 # Find the directory that this script lives in.
5349 thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
5350 test \"x\$thisdir\" = \"x\$file\" && thisdir=.
5351
5352 # Follow symbolic links until we get to the real thisdir.
5353 file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
5354 while test -n \"\$file\"; do
5355 destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
5356
5357 # If there was a directory component, then change thisdir.
5358 if test \"x\$destdir\" != \"x\$file\"; then
5359 case \"\$destdir\" in
5360 [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
5361 *) thisdir=\"\$thisdir/\$destdir\" ;;
5362 esac
5363 fi
5364
5365 file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
5366 file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
5367 done
5368
5369 # Try to get the absolute directory name.
5370 absdir=\`cd \"\$thisdir\" && pwd\`
5371 test -n \"\$absdir\" && thisdir=\"\$absdir\"
5372 "
5373
5374 if test "$fast_install" = yes; then
5375 $echo >> $output "\
5376 program=lt-'$outputname'$exeext
5377 progdir=\"\$thisdir/$objdir\"
5378
5379 if test ! -f \"\$progdir/\$program\" || \\
5380 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
5381 test \"X\$file\" != \"X\$progdir/\$program\"; }; then
5382
5383 file=\"\$\$-\$program\"
5384
5385 if test ! -d \"\$progdir\"; then
5386 $mkdir \"\$progdir\"
5387 else
5388 $rm \"\$progdir/\$file\"
5389 fi"
5390
5391 $echo >> $output "\
5392
5393 # relink executable if necessary
5394 if test -n \"\$relink_command\"; then
5395 if relink_command_output=\`eval \$relink_command 2>&1\`; then :
5396 else
5397 $echo \"\$relink_command_output\" >&2
5398 $rm \"\$progdir/\$file\"
5399 exit $EXIT_FAILURE
5400 fi
5401 fi
5402
5403 $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
5404 { $rm \"\$progdir/\$program\";
5405 $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; }
5406 $rm \"\$progdir/\$file\"
5407 fi"
5408 else
5409 $echo >> $output "\
5410 program='$outputname'
5411 progdir=\"\$thisdir/$objdir\"
5412 "
5413 fi
5414
5415 $echo >> $output "\
5416
5417 if test -f \"\$progdir/\$program\"; then"
5418
5419 # Export our shlibpath_var if we have one.
5420 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
5421 $echo >> $output "\
5422 # Add our own library path to $shlibpath_var
5423 $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
5424
5425 # Some systems cannot cope with colon-terminated $shlibpath_var
5426 # The second colon is a workaround for a bug in BeOS R4 sed
5427 $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
5428
5429 export $shlibpath_var
5430 "
5431 fi
5432
5433 # fixup the dll searchpath if we need to.
5434 if test -n "$dllsearchpath"; then
5435 $echo >> $output "\
5436 # Add the dll search path components to the executable PATH
5437 PATH=$dllsearchpath:\$PATH
5438 "
5439 fi
5440
5441 $echo >> $output "\
5442 if test \"\$libtool_execute_magic\" != \"$magic\"; then
5443 # Run the actual program with our arguments.
5444 "
5445 case $host in
5446 # Backslashes separate directories on plain windows
5447 *-*-mingw | *-*-os2*)
5448 $echo >> $output "\
5449 exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
5450 "
5451 ;;
5452
5453 *)
5454 $echo >> $output "\
5455 exec \"\$progdir/\$program\" \${1+\"\$@\"}
5456 "
5457 ;;
5458 esac
5459 $echo >> $output "\
5460 \$echo \"\$0: cannot exec \$program \$*\"
5461 exit $EXIT_FAILURE
5462 fi
5463 else
5464 # The program doesn't exist.
5465 \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
5466 \$echo \"This script is just a wrapper for \$program.\" 1>&2
5467 $echo \"See the $PACKAGE documentation for more information.\" 1>&2
5468 exit $EXIT_FAILURE
5469 fi
5470 fi\
5471 "
5472 chmod +x $output
5473 fi
5474 exit $EXIT_SUCCESS
5475 ;;
5476 esac
5477
5478 # See if we need to build an old-fashioned archive.
5479 for oldlib in $oldlibs; do
5480
5481 if test "$build_libtool_libs" = convenience; then
5482 oldobjs="$libobjs_save"
5483 addlibs="$convenience"
5484 build_libtool_libs=no
5485 else
5486 if test "$build_libtool_libs" = module; then
5487 oldobjs="$libobjs_save"
5488 build_libtool_libs=no
5489 else
5490 oldobjs="$old_deplibs $non_pic_objects"
5491 fi
5492 addlibs="$old_convenience"
5493 fi
5494
5495 if test -n "$addlibs"; then
5496 gentop="$output_objdir/${outputname}x"
5497 generated="$generated $gentop"
5498
5499 func_extract_archives $gentop $addlibs
5500 oldobjs="$oldobjs $func_extract_archives_result"
5501 fi
5502
5503 # Do each command in the archive commands.
5504 if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
5505 cmds=$old_archive_from_new_cmds
5506 else
5507 # POSIX demands no paths to be encoded in archives. We have
5508 # to avoid creating archives with duplicate basenames if we
5509 # might have to extract them afterwards, e.g., when creating a
5510 # static archive out of a convenience library, or when linking
5511 # the entirety of a libtool archive into another (currently
5512 # not supported by libtool).
5513 if (for obj in $oldobjs
5514 do
5515 $echo "X$obj" | $Xsed -e 's%^.*/%%'
5516 done | sort | sort -uc >/dev/null 2>&1); then
5517 :
5518 else
5519 $echo "copying selected object files to avoid basename conflicts..."
5520
5521 if test -z "$gentop"; then
5522 gentop="$output_objdir/${outputname}x"
5523 generated="$generated $gentop"
5524
5525 $show "${rm}r $gentop"
5526 $run ${rm}r "$gentop"
5527 $show "$mkdir $gentop"
5528 $run $mkdir "$gentop"
5529 exit_status=$?
5530 if test "$exit_status" -ne 0 && test ! -d "$gentop"; then
5531 exit $exit_status
5532 fi
5533 fi
5534
5535 save_oldobjs=$oldobjs
5536 oldobjs=
5537 counter=1
5538 for obj in $save_oldobjs
5539 do
5540 objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
5541 case " $oldobjs " in
5542 " ") oldobjs=$obj ;;
5543 *[\ /]"$objbase "*)
5544 while :; do
5545 # Make sure we don't pick an alternate name that also
5546 # overlaps.
5547 newobj=lt$counter-$objbase
5548 counter=`expr $counter + 1`
5549 case " $oldobjs " in
5550 *[\ /]"$newobj "*) ;;
5551 *) if test ! -f "$gentop/$newobj"; then break; fi ;;
5552 esac
5553 done
5554 $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
5555 $run ln "$obj" "$gentop/$newobj" ||
5556 $run cp "$obj" "$gentop/$newobj"
5557 oldobjs="$oldobjs $gentop/$newobj"
5558 ;;
5559 *) oldobjs="$oldobjs $obj" ;;
5560 esac
5561 done
5562 fi
5563
5564 eval cmds=\"$old_archive_cmds\"
5565
5566 if len=`expr "X$cmds" : ".*"` &&
5567 test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
5568 cmds=$old_archive_cmds
5569 else
5570 # the command line is too long to link in one step, link in parts
5571 $echo "using piecewise archive linking..."
5572 save_RANLIB=$RANLIB
5573 RANLIB=:
5574 objlist=
5575 concat_cmds=
5576 save_oldobjs=$oldobjs
5577
5578 # Is there a better way of finding the last object in the list?
5579 for obj in $save_oldobjs
5580 do
5581 last_oldobj=$obj
5582 done
5583 for obj in $save_oldobjs
5584 do
5585 oldobjs="$objlist $obj"
5586 objlist="$objlist $obj"
5587 eval test_cmds=\"$old_archive_cmds\"
5588 if len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
5589 test "$len" -le "$max_cmd_len"; then
5590 :
5591 else
5592 # the above command should be used before it gets too long
5593 oldobjs=$objlist
5594 if test "$obj" = "$last_oldobj" ; then
5595 RANLIB=$save_RANLIB
5596 fi
5597 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
5598 eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
5599 objlist=
5600 fi
5601 done
5602 RANLIB=$save_RANLIB
5603 oldobjs=$objlist
5604 if test "X$oldobjs" = "X" ; then
5605 eval cmds=\"\$concat_cmds\"
5606 else
5607 eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
5608 fi
5609 fi
5610 fi
5611 save_ifs="$IFS"; IFS='~'
5612 for cmd in $cmds; do
5613 eval cmd=\"$cmd\"
5614 IFS="$save_ifs"
5615 $show "$cmd"
5616 $run eval "$cmd" || exit $?
5617 done
5618 IFS="$save_ifs"
5619 done
5620
5621 if test -n "$generated"; then
5622 $show "${rm}r$generated"
5623 $run ${rm}r$generated
5624 fi
5625
5626 # Now create the libtool archive.
5627 case $output in
5628 *.la)
5629 old_library=
5630 test "$build_old_libs" = yes && old_library="$libname.$libext"
5631 $show "creating $output"
5632
5633 # Preserve any variables that may affect compiler behavior
5634 for var in $variables_saved_for_relink; do
5635 if eval test -z \"\${$var+set}\"; then
5636 relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
5637 elif eval var_value=\$$var; test -z "$var_value"; then
5638 relink_command="$var=; export $var; $relink_command"
5639 else
5640 var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
5641 relink_command="$var=\"$var_value\"; export $var; $relink_command"
5642 fi
5643 done
5644 # Quote the link command for shipping.
5645 relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
5646 relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
5647 if test "$hardcode_automatic" = yes ; then
5648 relink_command=
5649 fi
5650
5651
5652 # Only create the output if not a dry run.
5653 if test -z "$run"; then
5654 for installed in no yes; do
5655 if test "$installed" = yes; then
5656 if test -z "$install_libdir"; then
5657 break
5658 fi
5659 output="$output_objdir/$outputname"i
5660 # Replace all uninstalled libtool libraries with the installed ones
5661 newdependency_libs=
5662 for deplib in $dependency_libs; do
5663 case $deplib in
5664 *.la)
5665 name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
5666 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
5667 if test -z "$libdir"; then
5668 $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
5669 exit $EXIT_FAILURE
5670 fi
5671 newdependency_libs="$newdependency_libs $libdir/$name"
5672 ;;
5673 *) newdependency_libs="$newdependency_libs $deplib" ;;
5674 esac
5675 done
5676 dependency_libs="$newdependency_libs"
5677 newdlfiles=
5678 for lib in $dlfiles; do
5679 name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
5680 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
5681 if test -z "$libdir"; then
5682 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
5683 exit $EXIT_FAILURE
5684 fi
5685 newdlfiles="$newdlfiles $libdir/$name"
5686 done
5687 dlfiles="$newdlfiles"
5688 newdlprefiles=
5689 for lib in $dlprefiles; do
5690 name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
5691 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
5692 if test -z "$libdir"; then
5693 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
5694 exit $EXIT_FAILURE
5695 fi
5696 newdlprefiles="$newdlprefiles $libdir/$name"
5697 done
5698 dlprefiles="$newdlprefiles"
5699 else
5700 newdlfiles=
5701 for lib in $dlfiles; do
5702 case $lib in
5703 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
5704 *) abs=`pwd`"/$lib" ;;
5705 esac
5706 newdlfiles="$newdlfiles $abs"
5707 done
5708 dlfiles="$newdlfiles"
5709 newdlprefiles=
5710 for lib in $dlprefiles; do
5711 case $lib in
5712 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
5713 *) abs=`pwd`"/$lib" ;;
5714 esac
5715 newdlprefiles="$newdlprefiles $abs"
5716 done
5717 dlprefiles="$newdlprefiles"
5718 fi
5719 $rm $output
5720 # place dlname in correct position for cygwin
5721 tdlname=$dlname
5722 case $host,$output,$installed,$module,$dlname in
5723 *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
5724 esac
5725 $echo > $output "\
5726 # $outputname - a libtool library file
5727 # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
5728 #
5729 # Please DO NOT delete this file!
5730 # It is necessary for linking the library.
5731
5732 # The name that we can dlopen(3).
5733 dlname='$tdlname'
5734
5735 # Names of this library.
5736 library_names='$library_names'
5737
5738 # The name of the static archive.
5739 old_library='$old_library'
5740
5741 # Libraries that this one depends upon.
5742 dependency_libs='$dependency_libs'
5743
5744 # Version information for $libname.
5745 current=$current
5746 age=$age
5747 revision=$revision
5748
5749 # Is this an already installed library?
5750 installed=$installed
5751
5752 # Should we warn about portability when linking against -modules?
5753 shouldnotlink=$module
5754
5755 # Files to dlopen/dlpreopen
5756 dlopen='$dlfiles'
5757 dlpreopen='$dlprefiles'
5758
5759 # Directory that this library needs to be installed in:
5760 libdir='$install_libdir'"
5761 if test "$installed" = no && test "$need_relink" = yes; then
5762 $echo >> $output "\
5763 relink_command=\"$relink_command\""
5764 fi
5765 done
5766 fi
5767
5768 # Do a symbolic link so that the libtool archive can be found in
5769 # LD_LIBRARY_PATH before the program is installed.
5770 $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
5771 $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
5772 ;;
5773 esac
5774 exit $EXIT_SUCCESS
5775 ;;
5776
5777 # libtool install mode
5778 install)
5779 modename="$modename: install"
5780
5781 # There may be an optional sh(1) argument at the beginning of
5782 # install_prog (especially on Windows NT).
5783 if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
5784 # Allow the use of GNU shtool's install command.
5785 $echo "X$nonopt" | grep shtool > /dev/null; then
5786 # Aesthetically quote it.
5787 arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
5788 case $arg in
5789 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
5790 arg="\"$arg\""
5791 ;;
5792 esac
5793 install_prog="$arg "
5794 arg="$1"
5795 shift
5796 else
5797 install_prog=
5798 arg=$nonopt
5799 fi
5800
5801 # The real first argument should be the name of the installation program.
5802 # Aesthetically quote it.
5803 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
5804 case $arg in
5805 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
5806 arg="\"$arg\""
5807 ;;
5808 esac
5809 install_prog="$install_prog$arg"
5810
5811 # We need to accept at least all the BSD install flags.
5812 dest=
5813 files=
5814 opts=
5815 prev=
5816 install_type=
5817 isdir=no
5818 stripme=
5819 for arg
5820 do
5821 if test -n "$dest"; then
5822 files="$files $dest"
5823 dest=$arg
5824 continue
5825 fi
5826
5827 case $arg in
5828 -d) isdir=yes ;;
5829 -f)
5830 case " $install_prog " in
5831 *[\\\ /]cp\ *) ;;
5832 *) prev=$arg ;;
5833 esac
5834 ;;
5835 -g | -m | -o) prev=$arg ;;
5836 -s)
5837 stripme=" -s"
5838 continue
5839 ;;
5840 -*)
5841 ;;
5842 *)
5843 # If the previous option needed an argument, then skip it.
5844 if test -n "$prev"; then
5845 prev=
5846 else
5847 dest=$arg
5848 continue
5849 fi
5850 ;;
5851 esac
5852
5853 # Aesthetically quote the argument.
5854 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
5855 case $arg in
5856 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
5857 arg="\"$arg\""
5858 ;;
5859 esac
5860 install_prog="$install_prog $arg"
5861 done
5862
5863 if test -z "$install_prog"; then
5864 $echo "$modename: you must specify an install program" 1>&2
5865 $echo "$help" 1>&2
5866 exit $EXIT_FAILURE
5867 fi
5868
5869 if test -n "$prev"; then
5870 $echo "$modename: the \`$prev' option requires an argument" 1>&2
5871 $echo "$help" 1>&2
5872 exit $EXIT_FAILURE
5873 fi
5874
5875 if test -z "$files"; then
5876 if test -z "$dest"; then
5877 $echo "$modename: no file or destination specified" 1>&2
5878 else
5879 $echo "$modename: you must specify a destination" 1>&2
5880 fi
5881 $echo "$help" 1>&2
5882 exit $EXIT_FAILURE
5883 fi
5884
5885 # Strip any trailing slash from the destination.
5886 dest=`$echo "X$dest" | $Xsed -e 's%/$%%'`
5887
5888 # Check to see that the destination is a directory.
5889 test -d "$dest" && isdir=yes
5890 if test "$isdir" = yes; then
5891 destdir="$dest"
5892 destname=
5893 else
5894 destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'`
5895 test "X$destdir" = "X$dest" && destdir=.
5896 destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'`
5897
5898 # Not a directory, so check to see that there is only one file specified.
5899 set dummy $files
5900 if test "$#" -gt 2; then
5901 $echo "$modename: \`$dest' is not a directory" 1>&2
5902 $echo "$help" 1>&2
5903 exit $EXIT_FAILURE
5904 fi
5905 fi
5906 case $destdir in
5907 [\\/]* | [A-Za-z]:[\\/]*) ;;
5908 *)
5909 for file in $files; do
5910 case $file in
5911 *.lo) ;;
5912 *)
5913 $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
5914 $echo "$help" 1>&2
5915 exit $EXIT_FAILURE
5916 ;;
5917 esac
5918 done
5919 ;;
5920 esac
5921
5922 # This variable tells wrapper scripts just to set variables rather
5923 # than running their programs.
5924 libtool_install_magic="$magic"
5925
5926 staticlibs=
5927 future_libdirs=
5928 current_libdirs=
5929 for file in $files; do
5930
5931 # Do each installation.
5932 case $file in
5933 *.$libext)
5934 # Do the static libraries later.
5935 staticlibs="$staticlibs $file"
5936 ;;
5937
5938 *.la)
5939 # Check to see that this really is a libtool archive.
5940 if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
5941 else
5942 $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
5943 $echo "$help" 1>&2
5944 exit $EXIT_FAILURE
5945 fi
5946
5947 library_names=
5948 old_library=
5949 relink_command=
5950 # If there is no directory component, then add one.
5951 case $file in
5952 */* | *\\*) . $file ;;
5953 *) . ./$file ;;
5954 esac
5955
5956 # Add the libdir to current_libdirs if it is the destination.
5957 if test "X$destdir" = "X$libdir"; then
5958 case "$current_libdirs " in
5959 *" $libdir "*) ;;
5960 *) current_libdirs="$current_libdirs $libdir" ;;
5961 esac
5962 else
5963 # Note the libdir as a future libdir.
5964 case "$future_libdirs " in
5965 *" $libdir "*) ;;
5966 *) future_libdirs="$future_libdirs $libdir" ;;
5967 esac
5968 fi
5969
5970 dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/
5971 test "X$dir" = "X$file/" && dir=
5972 dir="$dir$objdir"
5973
5974 if test -n "$relink_command"; then
5975 # Determine the prefix the user has applied to our future dir.
5976 inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"`
5977
5978 # Don't allow the user to place us outside of our expected
5979 # location b/c this prevents finding dependent libraries that
5980 # are installed to the same prefix.
5981 # At present, this check doesn't affect windows .dll's that
5982 # are installed into $libdir/../bin (currently, that works fine)
5983 # but it's something to keep an eye on.
5984 if test "$inst_prefix_dir" = "$destdir"; then
5985 $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
5986 exit $EXIT_FAILURE
5987 fi
5988
5989 if test -n "$inst_prefix_dir"; then
5990 # Stick the inst_prefix_dir data into the link command.
5991 relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%" | $NL2SP`
5992 else
5993 relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%%" | $NL2SP`
5994 fi
5995
5996 $echo "$modename: warning: relinking \`$file'" 1>&2
5997 $show "$relink_command"
5998 if $run eval "$relink_command"; then :
5999 else
6000 $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
6001 exit $EXIT_FAILURE
6002 fi
6003 fi
6004
6005 # See the names of the shared library.
6006 set dummy $library_names
6007 if test -n "$2"; then
6008 realname="$2"
6009 shift
6010 shift
6011
6012 srcname="$realname"
6013 test -n "$relink_command" && srcname="$realname"T
6014
6015 # Install the shared library and build the symlinks.
6016 $show "$install_prog $dir/$srcname $destdir/$realname"
6017 $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $?
6018 if test -n "$stripme" && test -n "$striplib"; then
6019 $show "$striplib $destdir/$realname"
6020 $run eval "$striplib $destdir/$realname" || exit $?
6021 fi
6022
6023 if test "$#" -gt 0; then
6024 # Delete the old symlinks, and create new ones.
6025 # Try `ln -sf' first, because the `ln' binary might depend on
6026 # the symlink we replace! Solaris /bin/ln does not understand -f,
6027 # so we also need to try rm && ln -s.
6028 for linkname
6029 do
6030 if test "$linkname" != "$realname"; then
6031 $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
6032 $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
6033 fi
6034 done
6035 fi
6036
6037 # Do each command in the postinstall commands.
6038 lib="$destdir/$realname"
6039 cmds=$postinstall_cmds
6040 save_ifs="$IFS"; IFS='~'
6041 for cmd in $cmds; do
6042 IFS="$save_ifs"
6043 eval cmd=\"$cmd\"
6044 $show "$cmd"
6045 $run eval "$cmd" || {
6046 lt_exit=$?
6047
6048 # Restore the uninstalled library and exit
6049 if test "$mode" = relink; then
6050 $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
6051 fi
6052
6053 exit $lt_exit
6054 }
6055 done
6056 IFS="$save_ifs"
6057 fi
6058
6059 # Install the pseudo-library for information purposes.
6060 name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
6061 instname="$dir/$name"i
6062 $show "$install_prog $instname $destdir/$name"
6063 $run eval "$install_prog $instname $destdir/$name" || exit $?
6064
6065 # Maybe install the static library, too.
6066 test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
6067 ;;
6068
6069 *.lo)
6070 # Install (i.e. copy) a libtool object.
6071
6072 # Figure out destination file name, if it wasn't already specified.
6073 if test -n "$destname"; then
6074 destfile="$destdir/$destname"
6075 else
6076 destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
6077 destfile="$destdir/$destfile"
6078 fi
6079
6080 # Deduce the name of the destination old-style object file.
6081 case $destfile in
6082 *.lo)
6083 staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
6084 ;;
6085 *.$objext)
6086 staticdest="$destfile"
6087 destfile=
6088 ;;
6089 *)
6090 $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
6091 $echo "$help" 1>&2
6092 exit $EXIT_FAILURE
6093 ;;
6094 esac
6095
6096 # Install the libtool object if requested.
6097 if test -n "$destfile"; then
6098 $show "$install_prog $file $destfile"
6099 $run eval "$install_prog $file $destfile" || exit $?
6100 fi
6101
6102 # Install the old object if enabled.
6103 if test "$build_old_libs" = yes; then
6104 # Deduce the name of the old-style object file.
6105 staticobj=`$echo "X$file" | $Xsed -e "$lo2o"`
6106
6107 $show "$install_prog $staticobj $staticdest"
6108 $run eval "$install_prog \$staticobj \$staticdest" || exit $?
6109 fi
6110 exit $EXIT_SUCCESS
6111 ;;
6112
6113 *)
6114 # Figure out destination file name, if it wasn't already specified.
6115 if test -n "$destname"; then
6116 destfile="$destdir/$destname"
6117 else
6118 destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
6119 destfile="$destdir/$destfile"
6120 fi
6121
6122 # If the file is missing, and there is a .exe on the end, strip it
6123 # because it is most likely a libtool script we actually want to
6124 # install
6125 stripped_ext=""
6126 case $file in
6127 *.exe)
6128 if test ! -f "$file"; then
6129 file=`$echo $file|${SED} 's,.exe$,,'`
6130 stripped_ext=".exe"
6131 fi
6132 ;;
6133 esac
6134
6135 # Do a test to see if this is really a libtool program.
6136 case $host in
6137 *cygwin*|*mingw*)
6138 wrapper=`$echo $file | ${SED} -e 's,.exe$,,'`
6139 ;;
6140 *)
6141 wrapper=$file
6142 ;;
6143 esac
6144 if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
6145 notinst_deplibs=
6146 relink_command=
6147
6148 # Note that it is not necessary on cygwin/mingw to append a dot to
6149 # foo even if both foo and FILE.exe exist: automatic-append-.exe
6150 # behavior happens only for exec(3), not for open(2)! Also, sourcing
6151 # `FILE.' does not work on cygwin managed mounts.
6152 #
6153 # If there is no directory component, then add one.
6154 case $wrapper in
6155 */* | *\\*) . ${wrapper} ;;
6156 *) . ./${wrapper} ;;
6157 esac
6158
6159 # Check the variables that should have been set.
6160 if test -z "$notinst_deplibs"; then
6161 $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
6162 exit $EXIT_FAILURE
6163 fi
6164
6165 finalize=yes
6166 for lib in $notinst_deplibs; do
6167 # Check to see that each library is installed.
6168 libdir=
6169 if test -f "$lib"; then
6170 # If there is no directory component, then add one.
6171 case $lib in
6172 */* | *\\*) . $lib ;;
6173 *) . ./$lib ;;
6174 esac
6175 fi
6176 libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
6177 if test -n "$libdir" && test ! -f "$libfile"; then
6178 $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
6179 finalize=no
6180 fi
6181 done
6182
6183 relink_command=
6184 # Note that it is not necessary on cygwin/mingw to append a dot to
6185 # foo even if both foo and FILE.exe exist: automatic-append-.exe
6186 # behavior happens only for exec(3), not for open(2)! Also, sourcing
6187 # `FILE.' does not work on cygwin managed mounts.
6188 #
6189 # If there is no directory component, then add one.
6190 case $wrapper in
6191 */* | *\\*) . ${wrapper} ;;
6192 *) . ./${wrapper} ;;
6193 esac
6194
6195 outputname=
6196 if test "$fast_install" = no && test -n "$relink_command"; then
6197 if test "$finalize" = yes && test -z "$run"; then
6198 tmpdir=`func_mktempdir`
6199 file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
6200 outputname="$tmpdir/$file"
6201 # Replace the output file specification.
6202 relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g' | $NL2SP`
6203
6204 $show "$relink_command"
6205 if $run eval "$relink_command"; then :
6206 else
6207 $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
6208 ${rm}r "$tmpdir"
6209 continue
6210 fi
6211 file="$outputname"
6212 else
6213 $echo "$modename: warning: cannot relink \`$file'" 1>&2
6214 fi
6215 else
6216 # Install the binary that we compiled earlier.
6217 file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
6218 fi
6219 fi
6220
6221 # remove .exe since cygwin /usr/bin/install will append another
6222 # one anyway
6223 case $install_prog,$host in
6224 */usr/bin/install*,*cygwin*)
6225 case $file:$destfile in
6226 *.exe:*.exe)
6227 # this is ok
6228 ;;
6229 *.exe:*)
6230 destfile=$destfile.exe
6231 ;;
6232 *:*.exe)
6233 destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'`
6234 ;;
6235 esac
6236 ;;
6237 esac
6238 $show "$install_prog$stripme $file $destfile"
6239 $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
6240 test -n "$outputname" && ${rm}r "$tmpdir"
6241 ;;
6242 esac
6243 done
6244
6245 for file in $staticlibs; do
6246 name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
6247
6248 # Set up the ranlib parameters.
6249 oldlib="$destdir/$name"
6250
6251 $show "$install_prog $file $oldlib"
6252 $run eval "$install_prog \$file \$oldlib" || exit $?
6253
6254 if test -n "$stripme" && test -n "$old_striplib"; then
6255 $show "$old_striplib $oldlib"
6256 $run eval "$old_striplib $oldlib" || exit $?
6257 fi
6258
6259 # Do each command in the postinstall commands.
6260 cmds=$old_postinstall_cmds
6261 save_ifs="$IFS"; IFS='~'
6262 for cmd in $cmds; do
6263 IFS="$save_ifs"
6264 eval cmd=\"$cmd\"
6265 $show "$cmd"
6266 $run eval "$cmd" || exit $?
6267 done
6268 IFS="$save_ifs"
6269 done
6270
6271 if test -n "$future_libdirs"; then
6272 $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2
6273 fi
6274
6275 if test -n "$current_libdirs"; then
6276 # Maybe just do a dry run.
6277 test -n "$run" && current_libdirs=" -n$current_libdirs"
6278 exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
6279 else
6280 exit $EXIT_SUCCESS
6281 fi
6282 ;;
6283
6284 # libtool finish mode
6285 finish)
6286 modename="$modename: finish"
6287 libdirs="$nonopt"
6288 admincmds=
6289
6290 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
6291 for dir
6292 do
6293 libdirs="$libdirs $dir"
6294 done
6295
6296 for libdir in $libdirs; do
6297 if test -n "$finish_cmds"; then
6298 # Do each command in the finish commands.
6299 cmds=$finish_cmds
6300 save_ifs="$IFS"; IFS='~'
6301 for cmd in $cmds; do
6302 IFS="$save_ifs"
6303 eval cmd=\"$cmd\"
6304 $show "$cmd"
6305 $run eval "$cmd" || admincmds="$admincmds
6306 $cmd"
6307 done
6308 IFS="$save_ifs"
6309 fi
6310 if test -n "$finish_eval"; then
6311 # Do the single finish_eval.
6312 eval cmds=\"$finish_eval\"
6313 $run eval "$cmds" || admincmds="$admincmds
6314 $cmds"
6315 fi
6316 done
6317 fi
6318
6319 # Exit here if they wanted silent mode.
6320 test "$show" = : && exit $EXIT_SUCCESS
6321
6322 $echo "X----------------------------------------------------------------------" | $Xsed
6323 $echo "Libraries have been installed in:"
6324 for libdir in $libdirs; do
6325 $echo " $libdir"
6326 done
6327 $echo
6328 $echo "If you ever happen to want to link against installed libraries"
6329 $echo "in a given directory, LIBDIR, you must either use libtool, and"
6330 $echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
6331 $echo "flag during linking and do at least one of the following:"
6332 if test -n "$shlibpath_var"; then
6333 $echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
6334 $echo " during execution"
6335 fi
6336 if test -n "$runpath_var"; then
6337 $echo " - add LIBDIR to the \`$runpath_var' environment variable"
6338 $echo " during linking"
6339 fi
6340 if test -n "$hardcode_libdir_flag_spec"; then
6341 libdir=LIBDIR
6342 eval flag=\"$hardcode_libdir_flag_spec\"
6343
6344 $echo " - use the \`$flag' linker flag"
6345 fi
6346 if test -n "$admincmds"; then
6347 $echo " - have your system administrator run these commands:$admincmds"
6348 fi
6349 if test -f /etc/ld.so.conf; then
6350 $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
6351 fi
6352 $echo
6353 $echo "See any operating system documentation about shared libraries for"
6354 $echo "more information, such as the ld(1) and ld.so(8) manual pages."
6355 $echo "X----------------------------------------------------------------------" | $Xsed
6356 exit $EXIT_SUCCESS
6357 ;;
6358
6359 # libtool execute mode
6360 execute)
6361 modename="$modename: execute"
6362
6363 # The first argument is the command name.
6364 cmd="$nonopt"
6365 if test -z "$cmd"; then
6366 $echo "$modename: you must specify a COMMAND" 1>&2
6367 $echo "$help"
6368 exit $EXIT_FAILURE
6369 fi
6370
6371 # Handle -dlopen flags immediately.
6372 for file in $execute_dlfiles; do
6373 if test ! -f "$file"; then
6374 $echo "$modename: \`$file' is not a file" 1>&2
6375 $echo "$help" 1>&2
6376 exit $EXIT_FAILURE
6377 fi
6378
6379 dir=
6380 case $file in
6381 *.la)
6382 # Check to see that this really is a libtool archive.
6383 if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
6384 else
6385 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
6386 $echo "$help" 1>&2
6387 exit $EXIT_FAILURE
6388 fi
6389
6390 # Read the libtool library.
6391 dlname=
6392 library_names=
6393
6394 # If there is no directory component, then add one.
6395 case $file in
6396 */* | *\\*) . $file ;;
6397 *) . ./$file ;;
6398 esac
6399
6400 # Skip this library if it cannot be dlopened.
6401 if test -z "$dlname"; then
6402 # Warn if it was a shared library.
6403 test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'"
6404 continue
6405 fi
6406
6407 dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
6408 test "X$dir" = "X$file" && dir=.
6409
6410 if test -f "$dir/$objdir/$dlname"; then
6411 dir="$dir/$objdir"
6412 else
6413 if test ! -f "$dir/$dlname"; then
6414 $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
6415 exit $EXIT_FAILURE
6416 fi
6417 fi
6418 ;;
6419
6420 *.lo)
6421 # Just add the directory containing the .lo file.
6422 dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
6423 test "X$dir" = "X$file" && dir=.
6424 ;;
6425
6426 *)
6427 $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2
6428 continue
6429 ;;
6430 esac
6431
6432 # Get the absolute pathname.
6433 absdir=`cd "$dir" && pwd`
6434 test -n "$absdir" && dir="$absdir"
6435
6436 # Now add the directory to shlibpath_var.
6437 if eval "test -z \"\$$shlibpath_var\""; then
6438 eval "$shlibpath_var=\"\$dir\""
6439 else
6440 eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
6441 fi
6442 done
6443
6444 # This variable tells wrapper scripts just to set shlibpath_var
6445 # rather than running their programs.
6446 libtool_execute_magic="$magic"
6447
6448 # Check if any of the arguments is a wrapper script.
6449 args=
6450 for file
6451 do
6452 case $file in
6453 -*) ;;
6454 *)
6455 # Do a test to see if this is really a libtool program.
6456 if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
6457 # If there is no directory component, then add one.
6458 case $file in
6459 */* | *\\*) . $file ;;
6460 *) . ./$file ;;
6461 esac
6462
6463 # Transform arg to wrapped name.
6464 file="$progdir/$program"
6465 fi
6466 ;;
6467 esac
6468 # Quote arguments (to preserve shell metacharacters).
6469 file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"`
6470 args="$args \"$file\""
6471 done
6472
6473 if test -z "$run"; then
6474 if test -n "$shlibpath_var"; then
6475 # Export the shlibpath_var.
6476 eval "export $shlibpath_var"
6477 fi
6478
6479 # Restore saved environment variables
6480 for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
6481 do
6482 eval "if test \"\${save_$lt_var+set}\" = set; then
6483 $lt_var=\$save_$lt_var; export $lt_var
6484 fi"
6485 done
6486
6487 # Now prepare to actually exec the command.
6488 exec_cmd="\$cmd$args"
6489 else
6490 # Display what would be done.
6491 if test -n "$shlibpath_var"; then
6492 eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
6493 $echo "export $shlibpath_var"
6494 fi
6495 $echo "$cmd$args"
6496 exit $EXIT_SUCCESS
6497 fi
6498 ;;
6499
6500 # libtool clean and uninstall mode
6501 clean | uninstall)
6502 modename="$modename: $mode"
6503 rm="$nonopt"
6504 files=
6505 rmforce=
6506 exit_status=0
6507
6508 # This variable tells wrapper scripts just to set variables rather
6509 # than running their programs.
6510 libtool_install_magic="$magic"
6511
6512 for arg
6513 do
6514 case $arg in
6515 -f) rm="$rm $arg"; rmforce=yes ;;
6516 -*) rm="$rm $arg" ;;
6517 *) files="$files $arg" ;;
6518 esac
6519 done
6520
6521 if test -z "$rm"; then
6522 $echo "$modename: you must specify an RM program" 1>&2
6523 $echo "$help" 1>&2
6524 exit $EXIT_FAILURE
6525 fi
6526
6527 rmdirs=
6528
6529 origobjdir="$objdir"
6530 for file in $files; do
6531 dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
6532 if test "X$dir" = "X$file"; then
6533 dir=.
6534 objdir="$origobjdir"
6535 else
6536 objdir="$dir/$origobjdir"
6537 fi
6538 name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
6539 test "$mode" = uninstall && objdir="$dir"
6540
6541 # Remember objdir for removal later, being careful to avoid duplicates
6542 if test "$mode" = clean; then
6543 case " $rmdirs " in
6544 *" $objdir "*) ;;
6545 *) rmdirs="$rmdirs $objdir" ;;
6546 esac
6547 fi
6548
6549 # Don't error if the file doesn't exist and rm -f was used.
6550 if (test -L "$file") >/dev/null 2>&1 \
6551 || (test -h "$file") >/dev/null 2>&1 \
6552 || test -f "$file"; then
6553 :
6554 elif test -d "$file"; then
6555 exit_status=1
6556 continue
6557 elif test "$rmforce" = yes; then
6558 continue
6559 fi
6560
6561 rmfiles="$file"
6562
6563 case $name in
6564 *.la)
6565 # Possibly a libtool archive, so verify it.
6566 if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
6567 . $dir/$name
6568
6569 # Delete the libtool libraries and symlinks.
6570 for n in $library_names; do
6571 rmfiles="$rmfiles $objdir/$n"
6572 done
6573 test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
6574
6575 case "$mode" in
6576 clean)
6577 case " $library_names " in
6578 # " " in the beginning catches empty $dlname
6579 *" $dlname "*) ;;
6580 *) rmfiles="$rmfiles $objdir/$dlname" ;;
6581 esac
6582 test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
6583 ;;
6584 uninstall)
6585 if test -n "$library_names"; then
6586 # Do each command in the postuninstall commands.
6587 cmds=$postuninstall_cmds
6588 save_ifs="$IFS"; IFS='~'
6589 for cmd in $cmds; do
6590 IFS="$save_ifs"
6591 eval cmd=\"$cmd\"
6592 $show "$cmd"
6593 $run eval "$cmd"
6594 if test "$?" -ne 0 && test "$rmforce" != yes; then
6595 exit_status=1
6596 fi
6597 done
6598 IFS="$save_ifs"
6599 fi
6600
6601 if test -n "$old_library"; then
6602 # Do each command in the old_postuninstall commands.
6603 cmds=$old_postuninstall_cmds
6604 save_ifs="$IFS"; IFS='~'
6605 for cmd in $cmds; do
6606 IFS="$save_ifs"
6607 eval cmd=\"$cmd\"
6608 $show "$cmd"
6609 $run eval "$cmd"
6610 if test "$?" -ne 0 && test "$rmforce" != yes; then
6611 exit_status=1
6612 fi
6613 done
6614 IFS="$save_ifs"
6615 fi
6616 # FIXME: should reinstall the best remaining shared library.
6617 ;;
6618 esac
6619 fi
6620 ;;
6621
6622 *.lo)
6623 # Possibly a libtool object, so verify it.
6624 if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
6625
6626 # Read the .lo file
6627 . $dir/$name
6628
6629 # Add PIC object to the list of files to remove.
6630 if test -n "$pic_object" \
6631 && test "$pic_object" != none; then
6632 rmfiles="$rmfiles $dir/$pic_object"
6633 fi
6634
6635 # Add non-PIC object to the list of files to remove.
6636 if test -n "$non_pic_object" \
6637 && test "$non_pic_object" != none; then
6638 rmfiles="$rmfiles $dir/$non_pic_object"
6639 fi
6640 fi
6641 ;;
6642
6643 *)
6644 if test "$mode" = clean ; then
6645 noexename=$name
6646 case $file in
6647 *.exe)
6648 file=`$echo $file|${SED} 's,.exe$,,'`
6649 noexename=`$echo $name|${SED} 's,.exe$,,'`
6650 # $file with .exe has already been added to rmfiles,
6651 # add $file without .exe
6652 rmfiles="$rmfiles $file"
6653 ;;
6654 esac
6655 # Do a test to see if this is a libtool program.
6656 if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
6657 relink_command=
6658 . $dir/$noexename
6659
6660 # note $name still contains .exe if it was in $file originally
6661 # as does the version of $file that was added into $rmfiles
6662 rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
6663 if test "$fast_install" = yes && test -n "$relink_command"; then
6664 rmfiles="$rmfiles $objdir/lt-$name"
6665 fi
6666 if test "X$noexename" != "X$name" ; then
6667 rmfiles="$rmfiles $objdir/lt-${noexename}.c"
6668 fi
6669 fi
6670 fi
6671 ;;
6672 esac
6673 $show "$rm $rmfiles"
6674 $run $rm $rmfiles || exit_status=1
6675 done
6676 objdir="$origobjdir"
6677
6678 # Try to remove the ${objdir}s in the directories where we deleted files
6679 for dir in $rmdirs; do
6680 if test -d "$dir"; then
6681 $show "rmdir $dir"
6682 $run rmdir $dir >/dev/null 2>&1
6683 fi
6684 done
6685
6686 exit $exit_status
6687 ;;
6688
6689 "")
6690 $echo "$modename: you must specify a MODE" 1>&2
6691 $echo "$generic_help" 1>&2
6692 exit $EXIT_FAILURE
6693 ;;
6694 esac
6695
6696 if test -z "$exec_cmd"; then
6697 $echo "$modename: invalid operation mode \`$mode'" 1>&2
6698 $echo "$generic_help" 1>&2
6699 exit $EXIT_FAILURE
6700 fi
6701 fi # test -z "$show_help"
6702
6703 if test -n "$exec_cmd"; then
6704 eval exec $exec_cmd
6705 exit $EXIT_FAILURE
6706 fi
6707
6708 # We need to display help for each of the modes.
6709 case $mode in
6710 "") $echo \
6711 "Usage: $modename [OPTION]... [MODE-ARG]...
6712
6713 Provide generalized library-building support services.
6714
6715 --config show all configuration variables
6716 --debug enable verbose shell tracing
6717 -n, --dry-run display commands without modifying any files
6718 --features display basic configuration information and exit
6719 --finish same as \`--mode=finish'
6720 --help display this help message and exit
6721 --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS]
6722 --quiet same as \`--silent'
6723 --silent don't print informational messages
6724 --tag=TAG use configuration variables from tag TAG
6725 --version print version information
6726
6727 MODE must be one of the following:
6728
6729 clean remove files from the build directory
6730 compile compile a source file into a libtool object
6731 execute automatically set library path, then run a program
6732 finish complete the installation of libtool libraries
6733 install install libraries or executables
6734 link create a library or an executable
6735 uninstall remove libraries from an installed directory
6736
6737 MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for
6738 a more detailed description of MODE.
6739
6740 Report bugs to <bug-libtool@gnu.org>."
6741 exit $EXIT_SUCCESS
6742 ;;
6743
6744 clean)
6745 $echo \
6746 "Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
6747
6748 Remove files from the build directory.
6749
6750 RM is the name of the program to use to delete files associated with each FILE
6751 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
6752 to RM.
6753
6754 If FILE is a libtool library, object or program, all the files associated
6755 with it are deleted. Otherwise, only FILE itself is deleted using RM."
6756 ;;
6757
6758 compile)
6759 $echo \
6760 "Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
6761
6762 Compile a source file into a libtool library object.
6763
6764 This mode accepts the following additional options:
6765
6766 -o OUTPUT-FILE set the output file name to OUTPUT-FILE
6767 -prefer-pic try to building PIC objects only
6768 -prefer-non-pic try to building non-PIC objects only
6769 -static always build a \`.o' file suitable for static linking
6770
6771 COMPILE-COMMAND is a command to be used in creating a \`standard' object file
6772 from the given SOURCEFILE.
6773
6774 The output file name is determined by removing the directory component from
6775 SOURCEFILE, then substituting the C source code suffix \`.c' with the
6776 library object suffix, \`.lo'."
6777 ;;
6778
6779 execute)
6780 $echo \
6781 "Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]...
6782
6783 Automatically set library path, then run a program.
6784
6785 This mode accepts the following additional options:
6786
6787 -dlopen FILE add the directory containing FILE to the library path
6788
6789 This mode sets the library path environment variable according to \`-dlopen'
6790 flags.
6791
6792 If any of the ARGS are libtool executable wrappers, then they are translated
6793 into their corresponding uninstalled binary, and any of their required library
6794 directories are added to the library path.
6795
6796 Then, COMMAND is executed, with ARGS as arguments."
6797 ;;
6798
6799 finish)
6800 $echo \
6801 "Usage: $modename [OPTION]... --mode=finish [LIBDIR]...
6802
6803 Complete the installation of libtool libraries.
6804
6805 Each LIBDIR is a directory that contains libtool libraries.
6806
6807 The commands that this mode executes may require superuser privileges. Use
6808 the \`--dry-run' option if you just want to see what would be executed."
6809 ;;
6810
6811 install)
6812 $echo \
6813 "Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND...
6814
6815 Install executables or libraries.
6816
6817 INSTALL-COMMAND is the installation command. The first component should be
6818 either the \`install' or \`cp' program.
6819
6820 The rest of the components are interpreted as arguments to that command (only
6821 BSD-compatible install options are recognized)."
6822 ;;
6823
6824 link)
6825 $echo \
6826 "Usage: $modename [OPTION]... --mode=link LINK-COMMAND...
6827
6828 Link object files or libraries together to form another library, or to
6829 create an executable program.
6830
6831 LINK-COMMAND is a command using the C compiler that you would use to create
6832 a program from several object files.
6833
6834 The following components of LINK-COMMAND are treated specially:
6835
6836 -all-static do not do any dynamic linking at all
6837 -avoid-version do not add a version suffix if possible
6838 -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
6839 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
6840 -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
6841 -export-symbols SYMFILE
6842 try to export only the symbols listed in SYMFILE
6843 -export-symbols-regex REGEX
6844 try to export only the symbols matching REGEX
6845 -LLIBDIR search LIBDIR for required installed libraries
6846 -lNAME OUTPUT-FILE requires the installed library libNAME
6847 -module build a library that can dlopened
6848 -no-fast-install disable the fast-install mode
6849 -no-install link a not-installable executable
6850 -no-undefined declare that a library does not refer to external symbols
6851 -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
6852 -objectlist FILE Use a list of object files found in FILE to specify objects
6853 -precious-files-regex REGEX
6854 don't remove output files matching REGEX
6855 -release RELEASE specify package release information
6856 -rpath LIBDIR the created library will eventually be installed in LIBDIR
6857 -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
6858 -static do not do any dynamic linking of uninstalled libtool libraries
6859 -static-libtool-libs
6860 do not do any dynamic linking of libtool libraries
6861 -version-info CURRENT[:REVISION[:AGE]]
6862 specify library version info [each variable defaults to 0]
6863
6864 All other options (arguments beginning with \`-') are ignored.
6865
6866 Every other argument is treated as a filename. Files ending in \`.la' are
6867 treated as uninstalled libtool libraries, other files are standard or library
6868 object files.
6869
6870 If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
6871 only library objects (\`.lo' files) may be specified, and \`-rpath' is
6872 required, except when creating a convenience library.
6873
6874 If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
6875 using \`ar' and \`ranlib', or on Windows using \`lib'.
6876
6877 If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
6878 is created, otherwise an executable program is created."
6879 ;;
6880
6881 uninstall)
6882 $echo \
6883 "Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
6884
6885 Remove libraries from an installation directory.
6886
6887 RM is the name of the program to use to delete files associated with each FILE
6888 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
6889 to RM.
6890
6891 If FILE is a libtool library, all the files associated with it are deleted.
6892 Otherwise, only FILE itself is deleted using RM."
6893 ;;
6894
6895 *)
6896 $echo "$modename: invalid operation mode \`$mode'" 1>&2
6897 $echo "$help" 1>&2
6898 exit $EXIT_FAILURE
6899 ;;
6900 esac
6901
6902 $echo
6903 $echo "Try \`$modename --help' for more information about other modes."
6904
6905 exit $?
6906
6907 # The TAGs below are defined such that we never get into a situation
6908 # in which we disable both kinds of libraries. Given conflicting
6909 # choices, we go for a static library, that is the most portable,
6910 # since we can't tell whether shared libraries were disabled because
6911 # the user asked for that or because the platform doesn't support
6912 # them. This is particularly important on AIX, because we don't
6913 # support having both static and shared libraries enabled at the same
6914 # time on that platform, so we default to a shared-only configuration.
6915 # If a disable-shared tag is given, we'll fallback to a static-only
6916 # configuration. But we'll never go from static-only to shared-only.
6917
6918 # ### BEGIN LIBTOOL TAG CONFIG: disable-shared
6919 disable_libs=shared
6920 # ### END LIBTOOL TAG CONFIG: disable-shared
6921
6922 # ### BEGIN LIBTOOL TAG CONFIG: disable-static
6923 disable_libs=static
6924 # ### END LIBTOOL TAG CONFIG: disable-static
6925
6926 # Local Variables:
6927 # mode:shell-script
6928 # sh-indentation:2
6929 # End:
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
0 # Makefile.in generated by automake 1.10 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 Free Software Foundation, Inc.
4 # 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
77 # with or without modifications, as long as this notice is preserved.
1212 # PARTICULAR PURPOSE.
1313
1414 @SET_MAKE@
15 srcdir = @srcdir@
16 top_srcdir = @top_srcdir@
1715 VPATH = @srcdir@
1816 pkgdatadir = $(datadir)/@PACKAGE@
1917 pkglibdir = $(libdir)/@PACKAGE@
2018 pkgincludedir = $(includedir)/@PACKAGE@
21 top_builddir = ..
2219 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 INSTALL = @INSTALL@
2420 install_sh_DATA = $(install_sh) -c -m 644
2521 install_sh_PROGRAM = $(install_sh) -c
2622 install_sh_SCRIPT = $(install_sh) -c
3228 NORMAL_UNINSTALL = :
3329 PRE_UNINSTALL = :
3430 POST_UNINSTALL = :
31 build_triplet = @build@
32 host_triplet = @host@
3533 subdir = man
3634 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
3735 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
4038 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
4139 $(ACLOCAL_M4)
4240 mkinstalldirs = $(install_sh) -d
41 CONFIG_HEADER = $(top_builddir)/config.h
4342 CONFIG_CLEAN_FILES =
4443 SOURCES =
4544 DIST_SOURCES =
4948 MANS = $(man_MANS)
5049 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
5150 ACLOCAL = @ACLOCAL@
52 AMDEP_FALSE = @AMDEP_FALSE@
53 AMDEP_TRUE = @AMDEP_TRUE@
5451 AMTAR = @AMTAR@
52 AR = @AR@
5553 AUTOCONF = @AUTOCONF@
5654 AUTOHEADER = @AUTOHEADER@
5755 AUTOMAKE = @AUTOMAKE@
5957 CC = @CC@
6058 CCDEPMODE = @CCDEPMODE@
6159 CFLAGS = @CFLAGS@
60 CPP = @CPP@
6261 CPPFLAGS = @CPPFLAGS@
62 CXX = @CXX@
63 CXXCPP = @CXXCPP@
64 CXXDEPMODE = @CXXDEPMODE@
65 CXXFLAGS = @CXXFLAGS@
6366 CYGPATH_W = @CYGPATH_W@
6467 DEFS = @DEFS@
6568 DEPDIR = @DEPDIR@
69 ECHO = @ECHO@
6670 ECHO_C = @ECHO_C@
6771 ECHO_N = @ECHO_N@
6872 ECHO_T = @ECHO_T@
73 EGREP = @EGREP@
6974 EXEEXT = @EXEEXT@
75 F77 = @F77@
76 FFLAGS = @FFLAGS@
77 FIREFOX_PLUGIN_CFLAGS = @FIREFOX_PLUGIN_CFLAGS@
78 FIREFOX_PLUGIN_LIBS = @FIREFOX_PLUGIN_LIBS@
79 GREP = @GREP@
7080 GTK2_CFLAGS = @GTK2_CFLAGS@
7181 GTK2_LIBS = @GTK2_LIBS@
7282 GTKVNC_CFLAGS = @GTKVNC_CFLAGS@
7383 GTKVNC_LIBS = @GTKVNC_LIBS@
84 INSTALL = @INSTALL@
7485 INSTALL_DATA = @INSTALL_DATA@
7586 INSTALL_PROGRAM = @INSTALL_PROGRAM@
7687 INSTALL_SCRIPT = @INSTALL_SCRIPT@
7889 LDFLAGS = @LDFLAGS@
7990 LIBOBJS = @LIBOBJS@
8091 LIBS = @LIBS@
92 LIBTOOL = @LIBTOOL@
8193 LIBVIRT_CFLAGS = @LIBVIRT_CFLAGS@
8294 LIBVIRT_LIBS = @LIBVIRT_LIBS@
8395 LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
8496 LIBXML2_LIBS = @LIBXML2_LIBS@
97 LN_S = @LN_S@
8598 LTLIBOBJS = @LTLIBOBJS@
8699 MAKEINFO = @MAKEINFO@
100 MKDIR_P = @MKDIR_P@
101 MOZILLA_PLUGIN_CFLAGS = @MOZILLA_PLUGIN_CFLAGS@
102 MOZILLA_PLUGIN_LIBS = @MOZILLA_PLUGIN_LIBS@
103 NSPR_CFLAGS = @NSPR_CFLAGS@
104 NSPR_LIBS = @NSPR_LIBS@
87105 OBJEXT = @OBJEXT@
88106 PACKAGE = @PACKAGE@
89107 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
93111 PACKAGE_VERSION = @PACKAGE_VERSION@
94112 PATH_SEPARATOR = @PATH_SEPARATOR@
95113 PKG_CONFIG = @PKG_CONFIG@
114 RANLIB = @RANLIB@
115 SED = @SED@
96116 SET_MAKE = @SET_MAKE@
97117 SHELL = @SHELL@
98118 STRIP = @STRIP@
99119 VERSION = @VERSION@
100120 WARN_CFLAGS = @WARN_CFLAGS@
121 abs_builddir = @abs_builddir@
122 abs_srcdir = @abs_srcdir@
123 abs_top_builddir = @abs_top_builddir@
124 abs_top_srcdir = @abs_top_srcdir@
101125 ac_ct_CC = @ac_ct_CC@
102 ac_ct_STRIP = @ac_ct_STRIP@
103 ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@
104 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
105 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
126 ac_ct_CXX = @ac_ct_CXX@
127 ac_ct_F77 = @ac_ct_F77@
106128 am__include = @am__include@
107129 am__leading_dot = @am__leading_dot@
108130 am__quote = @am__quote@
109131 am__tar = @am__tar@
110132 am__untar = @am__untar@
111133 bindir = @bindir@
134 build = @build@
112135 build_alias = @build_alias@
136 build_cpu = @build_cpu@
137 build_os = @build_os@
138 build_vendor = @build_vendor@
139 builddir = @builddir@
113140 datadir = @datadir@
141 datarootdir = @datarootdir@
142 docdir = @docdir@
143 dvidir = @dvidir@
114144 exec_prefix = @exec_prefix@
145 host = @host@
115146 host_alias = @host_alias@
147 host_cpu = @host_cpu@
148 host_os = @host_os@
149 host_vendor = @host_vendor@
150 htmldir = @htmldir@
116151 includedir = @includedir@
117152 infodir = @infodir@
118153 install_sh = @install_sh@
119154 libdir = @libdir@
120155 libexecdir = @libexecdir@
156 localedir = @localedir@
121157 localstatedir = @localstatedir@
122158 mandir = @mandir@
123159 mkdir_p = @mkdir_p@
124160 oldincludedir = @oldincludedir@
161 pdfdir = @pdfdir@
125162 prefix = @prefix@
126163 program_transform_name = @program_transform_name@
164 psdir = @psdir@
127165 sbindir = @sbindir@
128166 sharedstatedir = @sharedstatedir@
167 srcdir = @srcdir@
129168 sysconfdir = @sysconfdir@
130169 target_alias = @target_alias@
170 top_builddir = @top_builddir@
171 top_srcdir = @top_srcdir@
131172 man_MANS = virt-viewer.1
132173 EXTRA_DIST = virt-viewer.pod
133174 all: all-am
162203 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
163204 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
164205 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
165 uninstall-info-am:
206
207 mostlyclean-libtool:
208 -rm -f *.lo
209
210 clean-libtool:
211 -rm -rf .libs _libs
166212 install-man1: $(man1_MANS) $(man_MANS)
167213 @$(NORMAL_INSTALL)
168 test -z "$(man1dir)" || $(mkdir_p) "$(DESTDIR)$(man1dir)"
214 test -z "$(man1dir)" || $(MKDIR_P) "$(DESTDIR)$(man1dir)"
169215 @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \
170216 l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
171217 for i in $$l2; do \
216262
217263
218264 distdir: $(DISTFILES)
219 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
220 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
221 list='$(DISTFILES)'; for file in $$list; do \
222 case $$file in \
223 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
224 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
225 esac; \
265 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
266 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
267 list='$(DISTFILES)'; \
268 dist_files=`for file in $$list; do echo $$file; done | \
269 sed -e "s|^$$srcdirstrip/||;t" \
270 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
271 case $$dist_files in \
272 */*) $(MKDIR_P) `echo "$$dist_files" | \
273 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
274 sort -u` ;; \
275 esac; \
276 for file in $$dist_files; do \
226277 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
227 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
228 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
229 dir="/$$dir"; \
230 $(mkdir_p) "$(distdir)$$dir"; \
231 else \
232 dir=''; \
233 fi; \
234278 if test -d $$d/$$file; then \
279 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
235280 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
236281 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
237282 fi; \
247292 all-am: Makefile $(MANS)
248293 installdirs:
249294 for dir in "$(DESTDIR)$(man1dir)"; do \
250 test -z "$$dir" || $(mkdir_p) "$$dir"; \
295 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
251296 done
252297 install: install-am
253298 install-exec: install-exec-am
275320 @echo "it deletes files that may require special tools to rebuild."
276321 clean: clean-am
277322
278 clean-am: clean-generic mostlyclean-am
323 clean-am: clean-generic clean-libtool mostlyclean-am
279324
280325 distclean: distclean-am
281326 -rm -f Makefile
293338
294339 install-data-am: install-man
295340
341 install-dvi: install-dvi-am
342
296343 install-exec-am:
297344
345 install-html: install-html-am
346
298347 install-info: install-info-am
299348
300349 install-man: install-man1
350
351 install-pdf: install-pdf-am
352
353 install-ps: install-ps-am
301354
302355 installcheck-am:
303356
307360
308361 mostlyclean: mostlyclean-am
309362
310 mostlyclean-am: mostlyclean-generic
363 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
311364
312365 pdf: pdf-am
313366
317370
318371 ps-am:
319372
320 uninstall-am: uninstall-info-am uninstall-man
373 uninstall-am: uninstall-man
321374
322375 uninstall-man: uninstall-man1
323376
324 .PHONY: all all-am check check-am clean clean-generic distclean \
325 distclean-generic distdir dvi dvi-am html html-am info info-am \
326 install install-am install-data install-data-am install-exec \
327 install-exec-am install-info install-info-am install-man \
328 install-man1 install-strip installcheck installcheck-am \
329 installdirs maintainer-clean maintainer-clean-generic \
330 mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
331 uninstall-am uninstall-info-am uninstall-man uninstall-man1
377 .MAKE: install-am install-strip
378
379 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
380 distclean distclean-generic distclean-libtool distdir dvi \
381 dvi-am html html-am info info-am install install-am \
382 install-data install-data-am install-dvi install-dvi-am \
383 install-exec install-exec-am install-html install-html-am \
384 install-info install-info-am install-man install-man1 \
385 install-pdf install-pdf-am install-ps install-ps-am \
386 install-strip installcheck installcheck-am installdirs \
387 maintainer-clean maintainer-clean-generic mostlyclean \
388 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
389 uninstall uninstall-am uninstall-man uninstall-man1
332390
333391
334392 %.1: %.pod
7575
7676 =head1 AUTHOR
7777
78 Writen by Daniel P. Berrange, based on the GTK-VNC example program gvncviewer.
78 Written by Daniel P. Berrange, based on the GTK-VNC example program gvncviewer.
7979
8080 =head1 BUGS
8181
8383
8484 =head1 COPYRIGHT
8585
86 Copright (C) 2007 Red Hat, Inc, and various contributors.
86 Copyright (C) 2007 Red Hat, Inc, and various contributors.
8787 This is free software. You may redistribute copies of it under the terms of the GNU General
8888 Public License C<http://www.gnu.org/licenses/gpl.html>. There is NO WARRANTY, to the extent
8989 permitted by law.
00 #! /bin/sh
11 # Common stub for a few missing GNU programs while installing.
22
3 scriptversion=2005-06-08.21
4
5 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005
3 scriptversion=2006-05-10.23
4
5 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006
66 # Free Software Foundation, Inc.
77 # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
88
3232 fi
3333
3434 run=:
35 sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
36 sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
3537
3638 # In the cases where this matters, `missing' is being run in the
3739 # srcdir already.
4345
4446 msg="missing on your system"
4547
46 case "$1" in
48 case $1 in
4749 --run)
4850 # Try to run requested program, and just exit if it succeeds.
4951 run=
7678 aclocal touch file \`aclocal.m4'
7779 autoconf touch file \`configure'
7880 autoheader touch file \`config.h.in'
81 autom4te touch the output file, or create a stub one
7982 automake touch all \`Makefile.in' files
8083 bison create \`y.tab.[ch]', if possible, from existing .[ch]
8184 flex create \`lex.yy.c', if possible, from existing .c
105108 # Now exit if we have it, but it failed. Also exit now if we
106109 # don't have it and --version was passed (most likely to detect
107110 # the program).
108 case "$1" in
111 case $1 in
109112 lex|yacc)
110113 # Not GNU programs, they don't have --version.
111114 ;;
134137
135138 # If it does not exist, or fails to run (possibly an outdated version),
136139 # try to emulate it.
137 case "$1" in
140 case $1 in
138141 aclocal*)
139142 echo 1>&2 "\
140143 WARNING: \`$1' is $msg. You should only need it if
163166 test -z "$files" && files="config.h"
164167 touch_files=
165168 for f in $files; do
166 case "$f" in
169 case $f in
167170 *:*) touch_files="$touch_files "`echo "$f" |
168171 sed -e 's/^[^:]*://' -e 's/:.*//'`;;
169172 *) touch_files="$touch_files $f.in";;
191194 You can get \`$1' as part of \`Autoconf' from any GNU
192195 archive site."
193196
194 file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`
195 test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`
197 file=`echo "$*" | sed -n "$sed_output"`
198 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
196199 if test -f "$file"; then
197200 touch $file
198201 else
213216 in order for those modifications to take effect. You can get
214217 \`Bison' from any GNU archive site."
215218 rm -f y.tab.c y.tab.h
216 if [ $# -ne 1 ]; then
219 if test $# -ne 1; then
217220 eval LASTARG="\${$#}"
218 case "$LASTARG" in
221 case $LASTARG in
219222 *.y)
220223 SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
221 if [ -f "$SRCFILE" ]; then
224 if test -f "$SRCFILE"; then
222225 cp "$SRCFILE" y.tab.c
223226 fi
224227 SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
225 if [ -f "$SRCFILE" ]; then
228 if test -f "$SRCFILE"; then
226229 cp "$SRCFILE" y.tab.h
227230 fi
228231 ;;
229232 esac
230233 fi
231 if [ ! -f y.tab.h ]; then
234 if test ! -f y.tab.h; then
232235 echo >y.tab.h
233236 fi
234 if [ ! -f y.tab.c ]; then
237 if test ! -f y.tab.c; then
235238 echo 'main() { return 0; }' >y.tab.c
236239 fi
237240 ;;
243246 in order for those modifications to take effect. You can get
244247 \`Flex' from any GNU archive site."
245248 rm -f lex.yy.c
246 if [ $# -ne 1 ]; then
249 if test $# -ne 1; then
247250 eval LASTARG="\${$#}"
248 case "$LASTARG" in
251 case $LASTARG in
249252 *.l)
250253 SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
251 if [ -f "$SRCFILE" ]; then
254 if test -f "$SRCFILE"; then
252255 cp "$SRCFILE" lex.yy.c
253256 fi
254257 ;;
255258 esac
256259 fi
257 if [ ! -f lex.yy.c ]; then
260 if test ! -f lex.yy.c; then
258261 echo 'main() { return 0; }' >lex.yy.c
259262 fi
260263 ;;
266269 \`Help2man' package in order for those modifications to take
267270 effect. You can get \`Help2man' from any GNU archive site."
268271
269 file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
270 if test -z "$file"; then
271 file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`
272 fi
273 if [ -f "$file" ]; then
272 file=`echo "$*" | sed -n "$sed_output"`
273 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
274 if test -f "$file"; then
274275 touch $file
275276 else
276277 test -z "$file" || exec >$file
288289 DU, IRIX). You might want to install the \`Texinfo' package or
289290 the \`GNU make' package. Grab either from any GNU archive site."
290291 # The file to touch is that specified with -o ...
291 file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
292 file=`echo "$*" | sed -n "$sed_output"`
293 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
292294 if test -z "$file"; then
293295 # ... or it is the one specified with @setfilename ...
294296 infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
295 file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $infile`
297 file=`sed -n '
298 /^@setfilename/{
299 s/.* \([^ ]*\) *$/\1/
300 p
301 q
302 }' $infile`
296303 # ... or it is derived from the source name (dir/f.texi becomes f.info)
297304 test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
298305 fi
316323 fi
317324 firstarg="$1"
318325 if shift; then
319 case "$firstarg" in
326 case $firstarg in
320327 *o*)
321328 firstarg=`echo "$firstarg" | sed s/o//`
322329 tar "$firstarg" "$@" && exit 0
323330 ;;
324331 esac
325 case "$firstarg" in
332 case $firstarg in
326333 *h*)
327334 firstarg=`echo "$firstarg" | sed s/h//`
328335 tar "$firstarg" "$@" && exit 0
0 if ENABLE_PLUGIN
1
2 plugindir = $(libdir)/mozilla/plugins
3 plugin_LTLIBRARIES = virt-viewer-plugin.la
4
5 virt_viewer_plugin_la_SOURCES = \
6 ../src/main.c ../src/viewer.h \
7 virt-viewer-plugin.c virt-viewer-plugin.h \
8 npshell.c npunix.c
9 virt_viewer_plugin_la_LIBADD = \
10 @FIREFOX_PLUGIN_LIBS@ \
11 @GTKVNC_LIBS@ @GTK2_LIBS@ @LIBXML2_LIBS@ @LIBVIRT_LIBS@
12 virt_viewer_plugin_la_LDFLAGS = \
13 -module -avoid-version
14 virt_viewer_plugin_la_CFLAGS = \
15 -DPLUGIN=1 -DENABLE_DEBUG=1 -DDEBUG=1 \
16 @FIREFOX_PLUGIN_CFLAGS@ \
17 @GTKVNC_CFLAGS@ @GTK2_CFLAGS@ @LIBXML2_CFLAGS@ @LIBVIRT_CFLAGS@ \
18 @WARN_CFLAGS@ \
19 -I$(top_srcdir)/src
20
21 all-local: virt-viewer-plugin.so
22
23 virt-viewer-plugin.so: virt-viewer-plugin.la
24 cp .libs/virt-viewer-plugin.so $@
25
26 # Only leave the .so file in the plugins directory.
27 install-data-hook:
28 rm -f $(plugindir)/virt-viewer-plugin.a $(plugindir)/virt-viewer-plugin.la
29
30 CLEANFILES = virt-viewer-plugin.so
31
32 endif
0 # Makefile.in generated by automake 1.10 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 VPATH = @srcdir@
17 pkgdatadir = $(datadir)/@PACKAGE@
18 pkglibdir = $(libdir)/@PACKAGE@
19 pkgincludedir = $(includedir)/@PACKAGE@
20 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
21 install_sh_DATA = $(install_sh) -c -m 644
22 install_sh_PROGRAM = $(install_sh) -c
23 install_sh_SCRIPT = $(install_sh) -c
24 INSTALL_HEADER = $(INSTALL_DATA)
25 transform = $(program_transform_name)
26 NORMAL_INSTALL = :
27 PRE_INSTALL = :
28 POST_INSTALL = :
29 NORMAL_UNINSTALL = :
30 PRE_UNINSTALL = :
31 POST_UNINSTALL = :
32 build_triplet = @build@
33 host_triplet = @host@
34 subdir = plugin
35 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
36 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
37 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
38 $(top_srcdir)/configure.ac
39 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
40 $(ACLOCAL_M4)
41 mkinstalldirs = $(install_sh) -d
42 CONFIG_HEADER = $(top_builddir)/config.h
43 CONFIG_CLEAN_FILES =
44 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
45 am__vpath_adj = case $$p in \
46 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
47 *) f=$$p;; \
48 esac;
49 am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
50 am__installdirs = "$(DESTDIR)$(plugindir)"
51 pluginLTLIBRARIES_INSTALL = $(INSTALL)
52 LTLIBRARIES = $(plugin_LTLIBRARIES)
53 virt_viewer_plugin_la_DEPENDENCIES =
54 am__virt_viewer_plugin_la_SOURCES_DIST = ../src/main.c ../src/viewer.h \
55 virt-viewer-plugin.c virt-viewer-plugin.h npshell.c npunix.c
56 @ENABLE_PLUGIN_TRUE@am_virt_viewer_plugin_la_OBJECTS = \
57 @ENABLE_PLUGIN_TRUE@ virt_viewer_plugin_la-main.lo \
58 @ENABLE_PLUGIN_TRUE@ virt_viewer_plugin_la-virt-viewer-plugin.lo \
59 @ENABLE_PLUGIN_TRUE@ virt_viewer_plugin_la-npshell.lo \
60 @ENABLE_PLUGIN_TRUE@ virt_viewer_plugin_la-npunix.lo
61 virt_viewer_plugin_la_OBJECTS = $(am_virt_viewer_plugin_la_OBJECTS)
62 virt_viewer_plugin_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
63 $(LIBTOOLFLAGS) --mode=link $(CCLD) \
64 $(virt_viewer_plugin_la_CFLAGS) $(CFLAGS) \
65 $(virt_viewer_plugin_la_LDFLAGS) $(LDFLAGS) -o $@
66 @ENABLE_PLUGIN_TRUE@am_virt_viewer_plugin_la_rpath = -rpath \
67 @ENABLE_PLUGIN_TRUE@ $(plugindir)
68 DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
69 depcomp = $(SHELL) $(top_srcdir)/depcomp
70 am__depfiles_maybe = depfiles
71 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
72 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
73 LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
74 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
75 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
76 CCLD = $(CC)
77 LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
78 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
79 $(LDFLAGS) -o $@
80 SOURCES = $(virt_viewer_plugin_la_SOURCES)
81 DIST_SOURCES = $(am__virt_viewer_plugin_la_SOURCES_DIST)
82 ETAGS = etags
83 CTAGS = ctags
84 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
85 ACLOCAL = @ACLOCAL@
86 AMTAR = @AMTAR@
87 AR = @AR@
88 AUTOCONF = @AUTOCONF@
89 AUTOHEADER = @AUTOHEADER@
90 AUTOMAKE = @AUTOMAKE@
91 AWK = @AWK@
92 CC = @CC@
93 CCDEPMODE = @CCDEPMODE@
94 CFLAGS = @CFLAGS@
95 CPP = @CPP@
96 CPPFLAGS = @CPPFLAGS@
97 CXX = @CXX@
98 CXXCPP = @CXXCPP@
99 CXXDEPMODE = @CXXDEPMODE@
100 CXXFLAGS = @CXXFLAGS@
101 CYGPATH_W = @CYGPATH_W@
102 DEFS = @DEFS@
103 DEPDIR = @DEPDIR@
104 ECHO = @ECHO@
105 ECHO_C = @ECHO_C@
106 ECHO_N = @ECHO_N@
107 ECHO_T = @ECHO_T@
108 EGREP = @EGREP@
109 EXEEXT = @EXEEXT@
110 F77 = @F77@
111 FFLAGS = @FFLAGS@
112 FIREFOX_PLUGIN_CFLAGS = @FIREFOX_PLUGIN_CFLAGS@
113 FIREFOX_PLUGIN_LIBS = @FIREFOX_PLUGIN_LIBS@
114 GREP = @GREP@
115 GTK2_CFLAGS = @GTK2_CFLAGS@
116 GTK2_LIBS = @GTK2_LIBS@
117 GTKVNC_CFLAGS = @GTKVNC_CFLAGS@
118 GTKVNC_LIBS = @GTKVNC_LIBS@
119 INSTALL = @INSTALL@
120 INSTALL_DATA = @INSTALL_DATA@
121 INSTALL_PROGRAM = @INSTALL_PROGRAM@
122 INSTALL_SCRIPT = @INSTALL_SCRIPT@
123 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
124 LDFLAGS = @LDFLAGS@
125 LIBOBJS = @LIBOBJS@
126 LIBS = @LIBS@
127 LIBTOOL = @LIBTOOL@
128 LIBVIRT_CFLAGS = @LIBVIRT_CFLAGS@
129 LIBVIRT_LIBS = @LIBVIRT_LIBS@
130 LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
131 LIBXML2_LIBS = @LIBXML2_LIBS@
132 LN_S = @LN_S@
133 LTLIBOBJS = @LTLIBOBJS@
134 MAKEINFO = @MAKEINFO@
135 MKDIR_P = @MKDIR_P@
136 MOZILLA_PLUGIN_CFLAGS = @MOZILLA_PLUGIN_CFLAGS@
137 MOZILLA_PLUGIN_LIBS = @MOZILLA_PLUGIN_LIBS@
138 NSPR_CFLAGS = @NSPR_CFLAGS@
139 NSPR_LIBS = @NSPR_LIBS@
140 OBJEXT = @OBJEXT@
141 PACKAGE = @PACKAGE@
142 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
143 PACKAGE_NAME = @PACKAGE_NAME@
144 PACKAGE_STRING = @PACKAGE_STRING@
145 PACKAGE_TARNAME = @PACKAGE_TARNAME@
146 PACKAGE_VERSION = @PACKAGE_VERSION@
147 PATH_SEPARATOR = @PATH_SEPARATOR@
148 PKG_CONFIG = @PKG_CONFIG@
149 RANLIB = @RANLIB@
150 SED = @SED@
151 SET_MAKE = @SET_MAKE@
152 SHELL = @SHELL@
153 STRIP = @STRIP@
154 VERSION = @VERSION@
155 WARN_CFLAGS = @WARN_CFLAGS@
156 abs_builddir = @abs_builddir@
157 abs_srcdir = @abs_srcdir@
158 abs_top_builddir = @abs_top_builddir@
159 abs_top_srcdir = @abs_top_srcdir@
160 ac_ct_CC = @ac_ct_CC@
161 ac_ct_CXX = @ac_ct_CXX@
162 ac_ct_F77 = @ac_ct_F77@
163 am__include = @am__include@
164 am__leading_dot = @am__leading_dot@
165 am__quote = @am__quote@
166 am__tar = @am__tar@
167 am__untar = @am__untar@
168 bindir = @bindir@
169 build = @build@
170 build_alias = @build_alias@
171 build_cpu = @build_cpu@
172 build_os = @build_os@
173 build_vendor = @build_vendor@
174 builddir = @builddir@
175 datadir = @datadir@
176 datarootdir = @datarootdir@
177 docdir = @docdir@
178 dvidir = @dvidir@
179 exec_prefix = @exec_prefix@
180 host = @host@
181 host_alias = @host_alias@
182 host_cpu = @host_cpu@
183 host_os = @host_os@
184 host_vendor = @host_vendor@
185 htmldir = @htmldir@
186 includedir = @includedir@
187 infodir = @infodir@
188 install_sh = @install_sh@
189 libdir = @libdir@
190 libexecdir = @libexecdir@
191 localedir = @localedir@
192 localstatedir = @localstatedir@
193 mandir = @mandir@
194 mkdir_p = @mkdir_p@
195 oldincludedir = @oldincludedir@
196 pdfdir = @pdfdir@
197 prefix = @prefix@
198 program_transform_name = @program_transform_name@
199 psdir = @psdir@
200 sbindir = @sbindir@
201 sharedstatedir = @sharedstatedir@
202 srcdir = @srcdir@
203 sysconfdir = @sysconfdir@
204 target_alias = @target_alias@
205 top_builddir = @top_builddir@
206 top_srcdir = @top_srcdir@
207 @ENABLE_PLUGIN_TRUE@plugindir = $(libdir)/mozilla/plugins
208 @ENABLE_PLUGIN_TRUE@plugin_LTLIBRARIES = virt-viewer-plugin.la
209 @ENABLE_PLUGIN_TRUE@virt_viewer_plugin_la_SOURCES = \
210 @ENABLE_PLUGIN_TRUE@ ../src/main.c ../src/viewer.h \
211 @ENABLE_PLUGIN_TRUE@ virt-viewer-plugin.c virt-viewer-plugin.h \
212 @ENABLE_PLUGIN_TRUE@ npshell.c npunix.c
213
214 @ENABLE_PLUGIN_TRUE@virt_viewer_plugin_la_LIBADD = \
215 @ENABLE_PLUGIN_TRUE@ @FIREFOX_PLUGIN_LIBS@ \
216 @ENABLE_PLUGIN_TRUE@ @GTKVNC_LIBS@ @GTK2_LIBS@ @LIBXML2_LIBS@ @LIBVIRT_LIBS@
217
218 @ENABLE_PLUGIN_TRUE@virt_viewer_plugin_la_LDFLAGS = \
219 @ENABLE_PLUGIN_TRUE@ -module -avoid-version
220
221 @ENABLE_PLUGIN_TRUE@virt_viewer_plugin_la_CFLAGS = \
222 @ENABLE_PLUGIN_TRUE@ -DPLUGIN=1 -DENABLE_DEBUG=1 -DDEBUG=1 \
223 @ENABLE_PLUGIN_TRUE@ @FIREFOX_PLUGIN_CFLAGS@ \
224 @ENABLE_PLUGIN_TRUE@ @GTKVNC_CFLAGS@ @GTK2_CFLAGS@ @LIBXML2_CFLAGS@ @LIBVIRT_CFLAGS@ \
225 @ENABLE_PLUGIN_TRUE@ @WARN_CFLAGS@ \
226 @ENABLE_PLUGIN_TRUE@ -I$(top_srcdir)/src
227
228 @ENABLE_PLUGIN_TRUE@CLEANFILES = virt-viewer-plugin.so
229 all: all-am
230
231 .SUFFIXES:
232 .SUFFIXES: .c .lo .o .obj
233 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
234 @for dep in $?; do \
235 case '$(am__configure_deps)' in \
236 *$$dep*) \
237 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
238 && exit 0; \
239 exit 1;; \
240 esac; \
241 done; \
242 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugin/Makefile'; \
243 cd $(top_srcdir) && \
244 $(AUTOMAKE) --gnu plugin/Makefile
245 .PRECIOUS: Makefile
246 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
247 @case '$?' in \
248 *config.status*) \
249 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
250 *) \
251 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
252 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
253 esac;
254
255 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
256 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
257
258 $(top_srcdir)/configure: $(am__configure_deps)
259 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
260 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
261 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
262 install-pluginLTLIBRARIES: $(plugin_LTLIBRARIES)
263 @$(NORMAL_INSTALL)
264 test -z "$(plugindir)" || $(MKDIR_P) "$(DESTDIR)$(plugindir)"
265 @list='$(plugin_LTLIBRARIES)'; for p in $$list; do \
266 if test -f $$p; then \
267 f=$(am__strip_dir) \
268 echo " $(LIBTOOL) --mode=install $(pluginLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(plugindir)/$$f'"; \
269 $(LIBTOOL) --mode=install $(pluginLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(plugindir)/$$f"; \
270 else :; fi; \
271 done
272
273 uninstall-pluginLTLIBRARIES:
274 @$(NORMAL_UNINSTALL)
275 @list='$(plugin_LTLIBRARIES)'; for p in $$list; do \
276 p=$(am__strip_dir) \
277 echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(plugindir)/$$p'"; \
278 $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(plugindir)/$$p"; \
279 done
280
281 clean-pluginLTLIBRARIES:
282 -test -z "$(plugin_LTLIBRARIES)" || rm -f $(plugin_LTLIBRARIES)
283 @list='$(plugin_LTLIBRARIES)'; for p in $$list; do \
284 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
285 test "$$dir" != "$$p" || dir=.; \
286 echo "rm -f \"$${dir}/so_locations\""; \
287 rm -f "$${dir}/so_locations"; \
288 done
289 virt-viewer-plugin.la: $(virt_viewer_plugin_la_OBJECTS) $(virt_viewer_plugin_la_DEPENDENCIES)
290 $(virt_viewer_plugin_la_LINK) $(am_virt_viewer_plugin_la_rpath) $(virt_viewer_plugin_la_OBJECTS) $(virt_viewer_plugin_la_LIBADD) $(LIBS)
291
292 mostlyclean-compile:
293 -rm -f *.$(OBJEXT)
294
295 distclean-compile:
296 -rm -f *.tab.c
297
298 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/virt_viewer_plugin_la-main.Plo@am__quote@
299 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/virt_viewer_plugin_la-npshell.Plo@am__quote@
300 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/virt_viewer_plugin_la-npunix.Plo@am__quote@
301 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/virt_viewer_plugin_la-virt-viewer-plugin.Plo@am__quote@
302
303 .c.o:
304 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
305 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
306 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
307 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
308 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
309
310 .c.obj:
311 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
312 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
313 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
314 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
315 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
316
317 .c.lo:
318 @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
319 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
320 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
321 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
322 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
323
324 virt_viewer_plugin_la-main.lo: ../src/main.c
325 @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_plugin_la_CFLAGS) $(CFLAGS) -MT virt_viewer_plugin_la-main.lo -MD -MP -MF $(DEPDIR)/virt_viewer_plugin_la-main.Tpo -c -o virt_viewer_plugin_la-main.lo `test -f '../src/main.c' || echo '$(srcdir)/'`../src/main.c
326 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/virt_viewer_plugin_la-main.Tpo $(DEPDIR)/virt_viewer_plugin_la-main.Plo
327 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../src/main.c' object='virt_viewer_plugin_la-main.lo' libtool=yes @AMDEPBACKSLASH@
328 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
329 @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_plugin_la_CFLAGS) $(CFLAGS) -c -o virt_viewer_plugin_la-main.lo `test -f '../src/main.c' || echo '$(srcdir)/'`../src/main.c
330
331 virt_viewer_plugin_la-virt-viewer-plugin.lo: virt-viewer-plugin.c
332 @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_plugin_la_CFLAGS) $(CFLAGS) -MT virt_viewer_plugin_la-virt-viewer-plugin.lo -MD -MP -MF $(DEPDIR)/virt_viewer_plugin_la-virt-viewer-plugin.Tpo -c -o virt_viewer_plugin_la-virt-viewer-plugin.lo `test -f 'virt-viewer-plugin.c' || echo '$(srcdir)/'`virt-viewer-plugin.c
333 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/virt_viewer_plugin_la-virt-viewer-plugin.Tpo $(DEPDIR)/virt_viewer_plugin_la-virt-viewer-plugin.Plo
334 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='virt-viewer-plugin.c' object='virt_viewer_plugin_la-virt-viewer-plugin.lo' libtool=yes @AMDEPBACKSLASH@
335 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
336 @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_plugin_la_CFLAGS) $(CFLAGS) -c -o virt_viewer_plugin_la-virt-viewer-plugin.lo `test -f 'virt-viewer-plugin.c' || echo '$(srcdir)/'`virt-viewer-plugin.c
337
338 virt_viewer_plugin_la-npshell.lo: npshell.c
339 @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_plugin_la_CFLAGS) $(CFLAGS) -MT virt_viewer_plugin_la-npshell.lo -MD -MP -MF $(DEPDIR)/virt_viewer_plugin_la-npshell.Tpo -c -o virt_viewer_plugin_la-npshell.lo `test -f 'npshell.c' || echo '$(srcdir)/'`npshell.c
340 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/virt_viewer_plugin_la-npshell.Tpo $(DEPDIR)/virt_viewer_plugin_la-npshell.Plo
341 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='npshell.c' object='virt_viewer_plugin_la-npshell.lo' libtool=yes @AMDEPBACKSLASH@
342 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
343 @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_plugin_la_CFLAGS) $(CFLAGS) -c -o virt_viewer_plugin_la-npshell.lo `test -f 'npshell.c' || echo '$(srcdir)/'`npshell.c
344
345 virt_viewer_plugin_la-npunix.lo: npunix.c
346 @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_plugin_la_CFLAGS) $(CFLAGS) -MT virt_viewer_plugin_la-npunix.lo -MD -MP -MF $(DEPDIR)/virt_viewer_plugin_la-npunix.Tpo -c -o virt_viewer_plugin_la-npunix.lo `test -f 'npunix.c' || echo '$(srcdir)/'`npunix.c
347 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/virt_viewer_plugin_la-npunix.Tpo $(DEPDIR)/virt_viewer_plugin_la-npunix.Plo
348 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='npunix.c' object='virt_viewer_plugin_la-npunix.lo' libtool=yes @AMDEPBACKSLASH@
349 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
350 @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_plugin_la_CFLAGS) $(CFLAGS) -c -o virt_viewer_plugin_la-npunix.lo `test -f 'npunix.c' || echo '$(srcdir)/'`npunix.c
351
352 mostlyclean-libtool:
353 -rm -f *.lo
354
355 clean-libtool:
356 -rm -rf .libs _libs
357
358 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
359 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
360 unique=`for i in $$list; do \
361 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
362 done | \
363 $(AWK) ' { files[$$0] = 1; } \
364 END { for (i in files) print i; }'`; \
365 mkid -fID $$unique
366 tags: TAGS
367
368 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
369 $(TAGS_FILES) $(LISP)
370 tags=; \
371 here=`pwd`; \
372 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
373 unique=`for i in $$list; do \
374 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
375 done | \
376 $(AWK) ' { files[$$0] = 1; } \
377 END { for (i in files) print i; }'`; \
378 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
379 test -n "$$unique" || unique=$$empty_fix; \
380 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
381 $$tags $$unique; \
382 fi
383 ctags: CTAGS
384 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
385 $(TAGS_FILES) $(LISP)
386 tags=; \
387 here=`pwd`; \
388 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
389 unique=`for i in $$list; do \
390 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
391 done | \
392 $(AWK) ' { files[$$0] = 1; } \
393 END { for (i in files) print i; }'`; \
394 test -z "$(CTAGS_ARGS)$$tags$$unique" \
395 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
396 $$tags $$unique
397
398 GTAGS:
399 here=`$(am__cd) $(top_builddir) && pwd` \
400 && cd $(top_srcdir) \
401 && gtags -i $(GTAGS_ARGS) $$here
402
403 distclean-tags:
404 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
405
406 distdir: $(DISTFILES)
407 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
408 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
409 list='$(DISTFILES)'; \
410 dist_files=`for file in $$list; do echo $$file; done | \
411 sed -e "s|^$$srcdirstrip/||;t" \
412 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
413 case $$dist_files in \
414 */*) $(MKDIR_P) `echo "$$dist_files" | \
415 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
416 sort -u` ;; \
417 esac; \
418 for file in $$dist_files; do \
419 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
420 if test -d $$d/$$file; then \
421 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
422 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
423 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
424 fi; \
425 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
426 else \
427 test -f $(distdir)/$$file \
428 || cp -p $$d/$$file $(distdir)/$$file \
429 || exit 1; \
430 fi; \
431 done
432 check-am: all-am
433 check: check-am
434 @ENABLE_PLUGIN_FALSE@all-local:
435 all-am: Makefile $(LTLIBRARIES) all-local
436 installdirs:
437 for dir in "$(DESTDIR)$(plugindir)"; do \
438 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
439 done
440 install: install-am
441 install-exec: install-exec-am
442 install-data: install-data-am
443 uninstall: uninstall-am
444
445 install-am: all-am
446 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
447
448 installcheck: installcheck-am
449 install-strip:
450 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
451 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
452 `test -z '$(STRIP)' || \
453 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
454 mostlyclean-generic:
455
456 clean-generic:
457 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
458
459 distclean-generic:
460 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
461
462 maintainer-clean-generic:
463 @echo "This command is intended for maintainers to use"
464 @echo "it deletes files that may require special tools to rebuild."
465 @ENABLE_PLUGIN_FALSE@install-data-hook:
466 clean: clean-am
467
468 clean-am: clean-generic clean-libtool clean-pluginLTLIBRARIES \
469 mostlyclean-am
470
471 distclean: distclean-am
472 -rm -rf ./$(DEPDIR)
473 -rm -f Makefile
474 distclean-am: clean-am distclean-compile distclean-generic \
475 distclean-tags
476
477 dvi: dvi-am
478
479 dvi-am:
480
481 html: html-am
482
483 info: info-am
484
485 info-am:
486
487 install-data-am: install-pluginLTLIBRARIES
488 @$(NORMAL_INSTALL)
489 $(MAKE) $(AM_MAKEFLAGS) install-data-hook
490
491 install-dvi: install-dvi-am
492
493 install-exec-am:
494
495 install-html: install-html-am
496
497 install-info: install-info-am
498
499 install-man:
500
501 install-pdf: install-pdf-am
502
503 install-ps: install-ps-am
504
505 installcheck-am:
506
507 maintainer-clean: maintainer-clean-am
508 -rm -rf ./$(DEPDIR)
509 -rm -f Makefile
510 maintainer-clean-am: distclean-am maintainer-clean-generic
511
512 mostlyclean: mostlyclean-am
513
514 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
515 mostlyclean-libtool
516
517 pdf: pdf-am
518
519 pdf-am:
520
521 ps: ps-am
522
523 ps-am:
524
525 uninstall-am: uninstall-pluginLTLIBRARIES
526
527 .MAKE: install-am install-data-am install-strip
528
529 .PHONY: CTAGS GTAGS all all-am all-local check check-am clean \
530 clean-generic clean-libtool clean-pluginLTLIBRARIES ctags \
531 distclean distclean-compile distclean-generic \
532 distclean-libtool distclean-tags distdir dvi dvi-am html \
533 html-am info info-am install install-am install-data \
534 install-data-am install-data-hook install-dvi install-dvi-am \
535 install-exec install-exec-am install-html install-html-am \
536 install-info install-info-am install-man install-pdf \
537 install-pdf-am install-pluginLTLIBRARIES install-ps \
538 install-ps-am install-strip installcheck installcheck-am \
539 installdirs maintainer-clean maintainer-clean-generic \
540 mostlyclean mostlyclean-compile mostlyclean-generic \
541 mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \
542 uninstall-am uninstall-pluginLTLIBRARIES
543
544
545 @ENABLE_PLUGIN_TRUE@all-local: virt-viewer-plugin.so
546
547 @ENABLE_PLUGIN_TRUE@virt-viewer-plugin.so: virt-viewer-plugin.la
548 @ENABLE_PLUGIN_TRUE@ cp .libs/virt-viewer-plugin.so $@
549
550 # Only leave the .so file in the plugins directory.
551 @ENABLE_PLUGIN_TRUE@install-data-hook:
552 @ENABLE_PLUGIN_TRUE@ rm -f $(plugindir)/virt-viewer-plugin.a $(plugindir)/virt-viewer-plugin.la
553 # Tell versions [3.59,3.63) of GNU make to not export all variables.
554 # Otherwise a system limit (for SysV at least) may be exceeded.
555 .NOEXPORT:
0 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
1 *
2 * ***** BEGIN LICENSE BLOCK *****
3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
4 *
5 * The contents of this file are subject to the Mozilla Public License Version
6 * 1.1 (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
8 * http://www.mozilla.org/MPL/
9 *
10 * Software distributed under the License is distributed on an "AS IS" basis,
11 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12 * for the specific language governing rights and limitations under the
13 * License.
14 *
15 * The Original Code is mozilla.org code.
16 *
17 * The Initial Developer of the Original Code is
18 * Netscape Communications Corporation.
19 * Portions created by the Initial Developer are Copyright (C) 1998
20 * the Initial Developer. All Rights Reserved.
21 *
22 * Contributor(s):
23 * Stephen Mak <smak@sun.com>
24 *
25 * Alternatively, the contents of this file may be used under the terms of
26 * either the GNU General Public License Version 2 or later (the "GPL"), or
27 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
28 * in which case the provisions of the GPL or the LGPL are applicable instead
29 * of those above. If you wish to allow use of your version of this file only
30 * under the terms of either the GPL or the LGPL, and not to allow others to
31 * use your version of this file under the terms of the MPL, indicate your
32 * decision by deleting the provisions above and replace them with the notice
33 * and other provisions required by the GPL or the LGPL. If you do not delete
34 * the provisions above, a recipient may use your version of this file under
35 * the terms of any one of the MPL, the GPL or the LGPL.
36 *
37 * ***** END LICENSE BLOCK ***** */
38
39 /*
40 * npshell.c
41 *
42 * Netscape Client Plugin API
43 * - Function that need to be implemented by plugin developers
44 *
45 * This file defines a "shell" plugin that plugin developers can use
46 * as the basis for a real plugin. This shell just provides empty
47 * implementations of all functions that the plugin can implement
48 * that will be called by Netscape (the NPP_xxx methods defined in
49 * npapi.h).
50 *
51 * dp Suresh <dp@netscape.com>
52 * updated 5/1998 <pollmann@netscape.com>
53 * updated 9/2000 <smak@sun.com>
54 *
55 */
56
57
58 /*
59 The contents of this file are subject to the Mozilla Public License
60
61 Version 1.1 (the "License"); you may not use this file except in compliance
62 with the License. You may obtain a copy of the License at http://www.mozilla.org/MPL/
63
64 Software distributed under the License is distributed on an "AS IS" basis,
65 WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
66 the specific language governing rights and limitations under the License.
67
68 The Original Code is stub code that defines the binary interface to a Mozilla
69 plugin.
70
71 The Initial Developer of the Original Code is Mozilla.
72
73 Portions created by Adobe Systems Incorporated are Copyright (C) 2007. All Rights Reserved.
74
75 Contributor(s): Adobe Systems Incorporated.
76 */
77
78 #include <config.h>
79
80 #include <stdio.h>
81 #include <stdlib.h>
82 #include <string.h>
83 #include <strings.h>
84
85 #include <npapi.h>
86 #include <npupp.h>
87
88 #include "virt-viewer-plugin.h"
89
90 /***********************************************************************
91 *
92 * Implementations of plugin API functions
93 *
94 ***********************************************************************/
95
96 char *
97 NPP_GetMIMEDescription(void)
98 {
99 return (char *) MIME_TYPES_HANDLED;
100 }
101
102 NPError
103 NPP_GetValue(NPP instance G_GNUC_UNUSED, NPPVariable variable, void *value)
104 {
105 NPError err = NPERR_NO_ERROR;
106
107 debug ("NPP_GetValue %d", variable);
108
109 switch (variable) {
110 case NPPVpluginNameString:
111 *((const char **)value) = PLUGIN_NAME;
112 break;
113 case NPPVpluginDescriptionString:
114 *((const char **)value) = PLUGIN_DESCRIPTION;
115 break;
116 case NPPVpluginNeedsXEmbed:
117 *((PRBool *)value) = PR_TRUE;
118 break;
119 default:
120 err = NPERR_GENERIC_ERROR;
121 }
122 return err;
123 }
124
125 NPError
126 NPP_Initialize(void)
127 {
128 debug ("NPP_Initialize");
129
130 gtk_init(0, 0);
131
132 return NPERR_NO_ERROR;
133 }
134
135 #ifdef OJI
136 jref
137 NPP_GetJavaClass()
138 {
139 return NULL;
140 }
141 #endif
142
143 void
144 NPP_Shutdown(void)
145 {
146 debug ("NPP_Shutdown");
147 }
148
149 NPError
150 NPP_New(NPMIMEType pluginType G_GNUC_UNUSED,
151 NPP instance,
152 uint16 mode,
153 int16 argc,
154 char* argn[],
155 char* argv[],
156 NPSavedData *saved G_GNUC_UNUSED)
157 {
158 PluginInstance *This;
159 NPError err = NPERR_NO_ERROR;
160 PRBool supportsXEmbed = PR_FALSE;
161 NPNToolkitType toolkit = 0;
162 int i;
163
164 debug ("NPP_New");
165
166 if (instance == NULL)
167 return NPERR_INVALID_INSTANCE_ERROR;
168
169 /* http://developer.mozilla.org/en/docs/XEmbed_Extension_for_Mozilla_Plugins
170 * Check for XEmbed and Gtk toolkit.
171 */
172 err = NPN_GetValue (instance,
173 NPNVSupportsXEmbedBool,
174 (void *)&supportsXEmbed);
175 if (err != NPERR_NO_ERROR || supportsXEmbed != PR_TRUE)
176 return NPERR_INCOMPATIBLE_VERSION_ERROR;
177
178 #if 1
179 err = NPN_GetValue (instance,
180 NPNVToolkit,
181 (void *)&toolkit);
182 if (err != NPERR_NO_ERROR || toolkit != NPNVGtk2)
183 return NPERR_INCOMPATIBLE_VERSION_ERROR;
184 #endif
185
186 instance->pdata = NPN_MemAlloc(sizeof(PluginInstance));
187
188 This = (PluginInstance*) instance->pdata;
189
190 if (This == NULL) {
191 return NPERR_OUT_OF_MEMORY_ERROR;
192 }
193
194 memset(This, 0, sizeof(PluginInstance));
195
196 /* Mode is NP_EMBED, NP_FULL, or NP_BACKGROUND (see npapi.h). */
197 This->mode = mode;
198 This->instance = instance;
199 This->uri = This->name = NULL;
200 This->direct = This->waitvnc = 0;
201
202 /* Read the parameters passed to the plugin. */
203 for (i = 0; i < argc; i++)
204 {
205 if (strcasecmp (argn[i], "uri") == 0)
206 This->uri = strdup (argv[i]);
207 else if (strcasecmp (argn[i], "name") == 0)
208 This->name = strdup (argv[i]);
209 else if (strcasecmp (argn[i], "direct") == 0)
210 This->direct = strcmp (argv[i], "1") == 0;
211 else if (strcasecmp (argn[i], "waitvnc") == 0)
212 This->waitvnc = strcmp (argv[i], "1") == 0;
213 }
214
215 return NPERR_NO_ERROR;
216 }
217
218 NPError
219 NPP_Destroy(NPP instance, NPSavedData** save G_GNUC_UNUSED)
220 {
221 PluginInstance* This;
222
223 debug ("NPP_Destroy");
224
225 if (instance == NULL)
226 return NPERR_INVALID_INSTANCE_ERROR;
227
228 This = (PluginInstance*) instance->pdata;
229
230 if (This != NULL)
231 {
232 (void) VirtViewerDestroyWindow (instance);
233 if (This->uri) free (This->uri);
234 if (This->name) free (This->name);
235 NPN_MemFree(instance->pdata);
236 instance->pdata = NULL;
237 }
238
239 return NPERR_NO_ERROR;
240 }
241
242
243 NPError
244 NPP_SetWindow(NPP instance, NPWindow* window)
245 {
246 debug ("NPP_SetWindow");
247
248 return VirtViewerXSetWindow(instance, window);
249 }
250
251 int32
252 NPP_WriteReady(NPP instance, NPStream *stream)
253 {
254 /*printf("NPP_WriteReady()\n");*/
255 if (instance == NULL)
256 return NPERR_INVALID_INSTANCE_ERROR;
257
258 /* We don't want any data, kill the stream */
259 NPN_DestroyStream(instance, stream, NPRES_DONE);
260
261 /* Number of bytes ready to accept in NPP_Write() */
262 return -1L; /* don't accept any bytes in NPP_Write() */
263 }
264
265 int32
266 NPP_Write(NPP instance, NPStream *stream,
267 int32 offset G_GNUC_UNUSED, int32 len G_GNUC_UNUSED,
268 void *buffer G_GNUC_UNUSED)
269 {
270 /*printf("NPP_Write()\n");*/
271 if (instance == NULL)
272 return NPERR_INVALID_INSTANCE_ERROR;
273
274 /* We don't want any data, kill the stream */
275 NPN_DestroyStream(instance, stream, NPRES_DONE);
276
277 return -1L; /* don't accept any bytes in NPP_Write() */
278 }
279
280 NPError
281 NPP_DestroyStream(NPP instance, NPStream *stream G_GNUC_UNUSED,
282 NPError reason G_GNUC_UNUSED)
283 {
284 /*printf("NPP_DestroyStream()\n");*/
285 if (instance == NULL)
286 return NPERR_INVALID_INSTANCE_ERROR;
287
288 /***** Insert NPP_DestroyStream code here *****\
289 PluginInstance* This;
290 This = (PluginInstance*) instance->pdata;
291 \**********************************************/
292
293 return NPERR_NO_ERROR;
294 }
295
296 void
297 NPP_StreamAsFile(NPP instance G_GNUC_UNUSED, NPStream *stream G_GNUC_UNUSED,
298 const char* fname G_GNUC_UNUSED)
299 {
300 /*printf("NPP_StreamAsFile()\n");*/
301 /***** Insert NPP_StreamAsFile code here *****\
302 PluginInstance* This;
303 if (instance != NULL)
304 This = (PluginInstance*) instance->pdata;
305 \*********************************************/
306 }
307
308 void
309 NPP_URLNotify(NPP instance G_GNUC_UNUSED, const char* url G_GNUC_UNUSED,
310 NPReason reason G_GNUC_UNUSED, void* notifyData G_GNUC_UNUSED)
311 {
312 /*printf("NPP_URLNotify()\n");*/
313 /***** Insert NPP_URLNotify code here *****\
314 PluginInstance* This;
315 if (instance != NULL)
316 This = (PluginInstance*) instance->pdata;
317 \*********************************************/
318 }
319
320
321 void
322 NPP_Print(NPP instance, NPPrint* printInfo)
323 {
324 /*printf("NPP_Print()\n");*/
325 if(printInfo == NULL)
326 return;
327
328 if (instance != NULL) {
329 /***** Insert NPP_Print code here *****\
330 PluginInstance* This = (PluginInstance*) instance->pdata;
331 \**************************************/
332
333 if (printInfo->mode == NP_FULL) {
334 /*
335 * PLUGIN DEVELOPERS:
336 * If your plugin would like to take over
337 * printing completely when it is in full-screen mode,
338 * set printInfo->pluginPrinted to TRUE and print your
339 * plugin as you see fit. If your plugin wants Netscape
340 * to handle printing in this case, set
341 * printInfo->pluginPrinted to FALSE (the default) and
342 * do nothing. If you do want to handle printing
343 * yourself, printOne is true if the print button
344 * (as opposed to the print menu) was clicked.
345 * On the Macintosh, platformPrint is a THPrint; on
346 * Windows, platformPrint is a structure
347 * (defined in npapi.h) containing the printer name, port,
348 * etc.
349 */
350
351 /***** Insert NPP_Print code here *****\
352 void* platformPrint =
353 printInfo->print.fullPrint.platformPrint;
354 NPBool printOne =
355 printInfo->print.fullPrint.printOne;
356 \**************************************/
357
358 /* Do the default*/
359 printInfo->print.fullPrint.pluginPrinted = FALSE;
360 }
361 else { /* If not fullscreen, we must be embedded */
362 /*
363 * PLUGIN DEVELOPERS:
364 * If your plugin is embedded, or is full-screen
365 * but you returned false in pluginPrinted above, NPP_Print
366 * will be called with mode == NP_EMBED. The NPWindow
367 * in the printInfo gives the location and dimensions of
368 * the embedded plugin on the printed page. On the
369 * Macintosh, platformPrint is the printer port; on
370 * Windows, platformPrint is the handle to the printing
371 * device context.
372 */
373
374 /***** Insert NPP_Print code here *****\
375 NPWindow* printWindow =
376 &(printInfo->print.embedPrint.window);
377 void* platformPrint =
378 printInfo->print.embedPrint.platformPrint;
379 \**************************************/
380 }
381 }
382 }
383
384 int16 NPP_HandleEvent(NPP instance, void* event)
385 {
386 /*printf("NPP_HandleEvent()\n");*/
387
388 return VirtViewerXHandleEvent(instance, event);
389 }
0 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
1 *
2 * ***** BEGIN LICENSE BLOCK *****
3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
4 *
5 * The contents of this file are subject to the Mozilla Public License Version
6 * 1.1 (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
8 * http://www.mozilla.org/MPL/
9 *
10 * Software distributed under the License is distributed on an "AS IS" basis,
11 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12 * for the specific language governing rights and limitations under the
13 * License.
14 *
15 * The Original Code is mozilla.org code.
16 *
17 * The Initial Developer of the Original Code is
18 * Netscape Communications Corporation.
19 * Portions created by the Initial Developer are Copyright (C) 1998
20 * the Initial Developer. All Rights Reserved.
21 *
22 * Contributor(s):
23 * Stephen Mak <smak@sun.com>
24 *
25 * Alternatively, the contents of this file may be used under the terms of
26 * either of the GNU General Public License Version 2 or later (the "GPL"),
27 * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
28 * in which case the provisions of the GPL or the LGPL are applicable instead
29 * of those above. If you wish to allow use of your version of this file only
30 * under the terms of either the GPL or the LGPL, and not to allow others to
31 * use your version of this file under the terms of the MPL, indicate your
32 * decision by deleting the provisions above and replace them with the notice
33 * and other provisions required by the GPL or the LGPL. If you do not delete
34 * the provisions above, a recipient may use your version of this file under
35 * the terms of any one of the MPL, the GPL or the LGPL.
36 *
37 * ***** END LICENSE BLOCK ***** */
38
39 /*
40 * npunix.c
41 *
42 * Netscape Client Plugin API
43 * - Wrapper function to interface with the Netscape Navigator
44 *
45 * dp Suresh <dp@netscape.com>
46 *
47 *----------------------------------------------------------------------
48 * PLUGIN DEVELOPERS:
49 * YOU WILL NOT NEED TO EDIT THIS FILE.
50 *----------------------------------------------------------------------
51 */
52
53 #include <config.h>
54
55 #define XP_UNIX 1
56
57 #include <stdio.h>
58 #include <npapi.h>
59 #include <npupp.h>
60
61 #include <glib.h> /* just for G_GNUC_UNUSED */
62
63 /*
64 * Define PLUGIN_TRACE to have the wrapper functions print
65 * messages to stderr whenever they are called.
66 */
67
68 #ifdef PLUGIN_TRACE
69 #include <stdio.h>
70 #define PLUGINDEBUGSTR(msg) fprintf(stderr, "%s\n", msg)
71 #else
72 #define PLUGINDEBUGSTR(msg)
73 #endif
74
75
76 /***********************************************************************
77 *
78 * Globals
79 *
80 ***********************************************************************/
81
82 static NPNetscapeFuncs gNetscapeFuncs; /* Netscape Function table */
83
84
85 /***********************************************************************
86 *
87 * Wrapper functions : plugin calling Netscape Navigator
88 *
89 * These functions let the plugin developer just call the APIs
90 * as documented and defined in npapi.h, without needing to know
91 * about the function table and call macros in npupp.h.
92 *
93 ***********************************************************************/
94
95 void
96 NPN_Version(int* plugin_major, int* plugin_minor,
97 int* netscape_major, int* netscape_minor)
98 {
99 *plugin_major = NP_VERSION_MAJOR;
100 *plugin_minor = NP_VERSION_MINOR;
101
102 /* Major version is in high byte */
103 *netscape_major = gNetscapeFuncs.version >> 8;
104 /* Minor version is in low byte */
105 *netscape_minor = gNetscapeFuncs.version & 0xFF;
106 }
107
108 NPError
109 NPN_GetValue(NPP instance, NPNVariable variable, void *r_value)
110 {
111 return CallNPN_GetValueProc(gNetscapeFuncs.getvalue,
112 instance, variable, r_value);
113 }
114
115 NPError
116 NPN_SetValue(NPP instance, NPPVariable variable, void *value)
117 {
118 return CallNPN_SetValueProc(gNetscapeFuncs.setvalue,
119 instance, variable, value);
120 }
121
122 NPError
123 NPN_GetURL(NPP instance, const char* url, const char* window)
124 {
125 return CallNPN_GetURLProc(gNetscapeFuncs.geturl, instance, url, window);
126 }
127
128 NPError
129 NPN_GetURLNotify(NPP instance, const char* url, const char* window, void* notifyData)
130 {
131 return CallNPN_GetURLNotifyProc(gNetscapeFuncs.geturlnotify, instance, url, window, notifyData);
132 }
133
134 NPError
135 NPN_PostURL(NPP instance, const char* url, const char* window,
136 uint32 len, const char* buf, NPBool file)
137 {
138 return CallNPN_PostURLProc(gNetscapeFuncs.posturl, instance,
139 url, window, len, buf, file);
140 }
141
142 NPError
143 NPN_PostURLNotify(NPP instance, const char* url, const char* window, uint32 len,
144 const char* buf, NPBool file, void* notifyData)
145 {
146 return CallNPN_PostURLNotifyProc(gNetscapeFuncs.posturlnotify,
147 instance, url, window, len, buf, file, notifyData);
148 }
149
150 NPError
151 NPN_RequestRead(NPStream* stream, NPByteRange* rangeList)
152 {
153 return CallNPN_RequestReadProc(gNetscapeFuncs.requestread,
154 stream, rangeList);
155 }
156
157 NPError
158 NPN_NewStream(NPP instance, NPMIMEType type, const char *window,
159 NPStream** stream_ptr)
160 {
161 return CallNPN_NewStreamProc(gNetscapeFuncs.newstream, instance,
162 type, window, stream_ptr);
163 }
164
165 int32
166 NPN_Write(NPP instance, NPStream* stream, int32 len, void* buffer)
167 {
168 return CallNPN_WriteProc(gNetscapeFuncs.write, instance,
169 stream, len, buffer);
170 }
171
172 NPError
173 NPN_DestroyStream(NPP instance, NPStream* stream, NPError reason)
174 {
175 return CallNPN_DestroyStreamProc(gNetscapeFuncs.destroystream,
176 instance, stream, reason);
177 }
178
179 void
180 NPN_Status(NPP instance, const char* message)
181 {
182 CallNPN_StatusProc(gNetscapeFuncs.status, instance, message);
183 }
184
185 const char*
186 NPN_UserAgent(NPP instance)
187 {
188 return CallNPN_UserAgentProc(gNetscapeFuncs.uagent, instance);
189 }
190
191 void*
192 NPN_MemAlloc(uint32 size)
193 {
194 return CallNPN_MemAllocProc(gNetscapeFuncs.memalloc, size);
195 }
196
197 void NPN_MemFree(void* ptr)
198 {
199 CallNPN_MemFreeProc(gNetscapeFuncs.memfree, ptr);
200 }
201
202 uint32 NPN_MemFlush(uint32 size)
203 {
204 return CallNPN_MemFlushProc(gNetscapeFuncs.memflush, size);
205 }
206
207 void NPN_ReloadPlugins(NPBool reloadPages)
208 {
209 CallNPN_ReloadPluginsProc(gNetscapeFuncs.reloadplugins, reloadPages);
210 }
211
212 #ifdef OJI
213 JRIEnv* NPN_GetJavaEnv()
214 {
215 return CallNPN_GetJavaEnvProc(gNetscapeFuncs.getJavaEnv);
216 }
217
218 jref NPN_GetJavaPeer(NPP instance)
219 {
220 return CallNPN_GetJavaPeerProc(gNetscapeFuncs.getJavaPeer,
221 instance);
222 }
223 #endif
224
225 void
226 NPN_InvalidateRect(NPP instance, NPRect *invalidRect)
227 {
228 CallNPN_InvalidateRectProc(gNetscapeFuncs.invalidaterect, instance,
229 invalidRect);
230 }
231
232 void
233 NPN_InvalidateRegion(NPP instance, NPRegion invalidRegion)
234 {
235 CallNPN_InvalidateRegionProc(gNetscapeFuncs.invalidateregion, instance,
236 invalidRegion);
237 }
238
239 void
240 NPN_ForceRedraw(NPP instance)
241 {
242 CallNPN_ForceRedrawProc(gNetscapeFuncs.forceredraw, instance);
243 }
244
245 void NPN_PushPopupsEnabledState(NPP instance, NPBool enabled)
246 {
247 CallNPN_PushPopupsEnabledStateProc(gNetscapeFuncs.pushpopupsenabledstate,
248 instance, enabled);
249 }
250
251 void NPN_PopPopupsEnabledState(NPP instance)
252 {
253 CallNPN_PopPopupsEnabledStateProc(gNetscapeFuncs.poppopupsenabledstate,
254 instance);
255 }
256
257
258
259 /***********************************************************************
260 *
261 * Wrapper functions : Netscape Navigator -> plugin
262 *
263 * These functions let the plugin developer just create the APIs
264 * as documented and defined in npapi.h, without needing to
265 * install those functions in the function table or worry about
266 * setting up globals for 68K plugins.
267 *
268 ***********************************************************************/
269
270 static NPError
271 Private_New(NPMIMEType pluginType, NPP instance, uint16 mode,
272 int16 argc, char* argn[], char* argv[], NPSavedData* saved)
273 {
274 NPError ret;
275 PLUGINDEBUGSTR("New");
276 ret = NPP_New(pluginType, instance, mode, argc, argn, argv, saved);
277 return ret;
278 }
279
280 static NPError
281 Private_Destroy(NPP instance, NPSavedData** save)
282 {
283 PLUGINDEBUGSTR("Destroy");
284 return NPP_Destroy(instance, save);
285 }
286
287 static NPError
288 Private_SetWindow(NPP instance, NPWindow* window)
289 {
290 NPError err;
291 PLUGINDEBUGSTR("SetWindow");
292 err = NPP_SetWindow(instance, window);
293 return err;
294 }
295
296 static NPError
297 Private_NewStream(NPP instance G_GNUC_UNUSED, NPMIMEType type G_GNUC_UNUSED,
298 NPStream* stream G_GNUC_UNUSED,
299 NPBool seekable G_GNUC_UNUSED, uint16* stype G_GNUC_UNUSED)
300 {
301 NPError err = NPERR_NO_ERROR;
302 PLUGINDEBUGSTR("NewStream");
303 /* err = NPP_NewStream(instance, type, stream, seekable, stype);*/
304 return err;
305 }
306
307 static int32
308 Private_WriteReady(NPP instance, NPStream* stream)
309 {
310 unsigned int result;
311 PLUGINDEBUGSTR("WriteReady");
312 result = NPP_WriteReady(instance, stream);
313 return result;
314 }
315
316 static int32
317 Private_Write(NPP instance, NPStream* stream, int32 offset, int32 len,
318 void* buffer)
319 {
320 unsigned int result;
321 PLUGINDEBUGSTR("Write");
322 result = NPP_Write(instance, stream, offset, len, buffer);
323 return result;
324 }
325
326 static void
327 Private_StreamAsFile(NPP instance, NPStream* stream, const char* fname)
328 {
329 PLUGINDEBUGSTR("StreamAsFile");
330 NPP_StreamAsFile(instance, stream, fname);
331 }
332
333
334 static NPError
335 Private_DestroyStream(NPP instance, NPStream* stream, NPError reason)
336 {
337 NPError err;
338 PLUGINDEBUGSTR("DestroyStream");
339 err = NPP_DestroyStream(instance, stream, reason);
340 return err;
341 }
342
343 static void
344 Private_URLNotify(NPP instance, const char* url,
345 NPReason reason, void* notifyData)
346
347 {
348 PLUGINDEBUGSTR("URLNotify");
349 NPP_URLNotify(instance, url, reason, notifyData);
350 }
351
352 static NPError
353 Private_GetValue(void *instance, NPPVariable variable, void *result)
354 {
355 NPError rv = NPP_GetValue(instance, variable, result);
356 return rv;
357 }
358
359 static void
360 Private_Print(NPP instance, NPPrint* platformPrint)
361 {
362 PLUGINDEBUGSTR("Print");
363 NPP_Print(instance, platformPrint);
364 }
365
366 #ifdef OJI
367 static JRIGlobalRef
368 Private_GetJavaClass(void)
369 {
370 jref clazz = NPP_GetJavaClass();
371 if (clazz) {
372 JRIEnv* env = NPN_GetJavaEnv();
373 return JRI_NewGlobalRef(env, clazz);
374 }
375 return NULL;
376 }
377 #endif
378
379 static int16
380 Private_HandleEvent(NPP instance, void* event)
381 {
382 return NPP_HandleEvent(instance, event);
383 }
384
385 /***********************************************************************
386 *
387 * These functions are located automagically by netscape.
388 *
389 ***********************************************************************/
390
391 /*
392 * NP_GetMIMEDescription
393 * - Netscape needs to know about this symbol
394 * - Netscape uses the return value to identify when an object instance
395 * of this plugin should be created.
396 */
397 char *
398 NP_GetMIMEDescription(void)
399 {
400 return NPP_GetMIMEDescription();
401 }
402
403 /*
404 * NP_GetValue [optional]
405 * - Netscape needs to know about this symbol.
406 * - Interfaces with plugin to get values for predefined variables
407 * that the navigator needs.
408 */
409 NPError
410 NP_GetValue(void* future, NPPVariable variable, void *value)
411 {
412 return NPP_GetValue(future, variable, value);
413 }
414
415 /*
416 * NP_Initialize
417 * - Netscape needs to know about this symbol.
418 * - It calls this function after looking up its symbol before it
419 * is about to create the first ever object of this kind.
420 *
421 * PARAMETERS
422 * nsTable - The netscape function table. If developers just use these
423 * wrappers, they dont need to worry about all these function
424 * tables.
425 * RETURN
426 * pluginFuncs
427 * - This functions needs to fill the plugin function table
428 * pluginFuncs and return it. Netscape Navigator plugin
429 * library will use this function table to call the plugin.
430 *
431 */
432 NPError
433 NP_Initialize(NPNetscapeFuncs* nsTable, NPPluginFuncs* pluginFuncs)
434 {
435 NPError err = NPERR_NO_ERROR;
436
437 PLUGINDEBUGSTR("NP_Initialize");
438
439 /* validate input parameters */
440
441 if ((nsTable == NULL) || (pluginFuncs == NULL))
442 err = NPERR_INVALID_FUNCTABLE_ERROR;
443
444 /*
445 * Check the major version passed in Netscape's function table.
446 * We won't load if the major version is newer than what we expect.
447 * Also check that the function tables passed in are big enough for
448 * all the functions we need (they could be bigger, if Netscape added
449 * new APIs, but that's OK with us -- we'll just ignore them).
450 *
451 */
452
453 if (err == NPERR_NO_ERROR) {
454 if ((nsTable->version >> 8) > NP_VERSION_MAJOR)
455 err = NPERR_INCOMPATIBLE_VERSION_ERROR;
456 if (nsTable->size < sizeof(NPNetscapeFuncs))
457 err = NPERR_INVALID_FUNCTABLE_ERROR;
458 if (pluginFuncs->size < sizeof(NPPluginFuncs))
459 err = NPERR_INVALID_FUNCTABLE_ERROR;
460 }
461
462
463 if (err == NPERR_NO_ERROR) {
464 /*
465 * Copy all the fields of Netscape function table into our
466 * copy so we can call back into Netscape later. Note that
467 * we need to copy the fields one by one, rather than assigning
468 * the whole structure, because the Netscape function table
469 * could actually be bigger than what we expect.
470 */
471 gNetscapeFuncs.version = nsTable->version;
472 gNetscapeFuncs.size = nsTable->size;
473 gNetscapeFuncs.posturl = nsTable->posturl;
474 gNetscapeFuncs.geturl = nsTable->geturl;
475 gNetscapeFuncs.geturlnotify = nsTable->geturlnotify;
476 gNetscapeFuncs.requestread = nsTable->requestread;
477 gNetscapeFuncs.newstream = nsTable->newstream;
478 gNetscapeFuncs.write = nsTable->write;
479 gNetscapeFuncs.destroystream = nsTable->destroystream;
480 gNetscapeFuncs.status = nsTable->status;
481 gNetscapeFuncs.uagent = nsTable->uagent;
482 gNetscapeFuncs.memalloc = nsTable->memalloc;
483 gNetscapeFuncs.memfree = nsTable->memfree;
484 gNetscapeFuncs.memflush = nsTable->memflush;
485 gNetscapeFuncs.reloadplugins = nsTable->reloadplugins;
486 #ifdef OJI
487 gNetscapeFuncs.getJavaEnv = nsTable->getJavaEnv;
488 gNetscapeFuncs.getJavaPeer = nsTable->getJavaPeer;
489 #endif
490 gNetscapeFuncs.getvalue = nsTable->getvalue;
491 gNetscapeFuncs.setvalue = nsTable->setvalue;
492 gNetscapeFuncs.pushpopupsenabledstate = nsTable->pushpopupsenabledstate;
493 gNetscapeFuncs.poppopupsenabledstate = nsTable->poppopupsenabledstate;
494
495 /*
496 * Set up the plugin function table that Netscape will use to
497 * call us. Netscape needs to know about our version and size
498 * and have a UniversalProcPointer for every function we
499 * implement.
500 */
501 pluginFuncs->version = (NP_VERSION_MAJOR << 8) + NP_VERSION_MINOR;
502 pluginFuncs->size = sizeof(NPPluginFuncs);
503 pluginFuncs->newp = NewNPP_NewProc(Private_New);
504 pluginFuncs->destroy = NewNPP_DestroyProc(Private_Destroy);
505 pluginFuncs->setwindow = NewNPP_SetWindowProc(Private_SetWindow);
506 pluginFuncs->newstream = NewNPP_NewStreamProc(Private_NewStream);
507 pluginFuncs->destroystream = NewNPP_DestroyStreamProc(Private_DestroyStream);
508 pluginFuncs->asfile = NewNPP_StreamAsFileProc(Private_StreamAsFile);
509 pluginFuncs->writeready = NewNPP_WriteReadyProc(Private_WriteReady);
510 pluginFuncs->write = NewNPP_WriteProc(Private_Write);
511 pluginFuncs->print = NewNPP_PrintProc(Private_Print);
512 pluginFuncs->urlnotify = NewNPP_URLNotifyProc(Private_URLNotify);
513 pluginFuncs->getvalue = NewNPP_GetValueProc(Private_GetValue);
514 pluginFuncs->event = NewNPP_HandleEventProc(Private_HandleEvent);
515 #ifdef OJI
516 pluginFuncs->javaClass = Private_GetJavaClass();
517 #endif
518
519 err = NPP_Initialize();
520 }
521
522 return err;
523 }
524
525 /*
526 * NP_Shutdown [optional]
527 * - Netscape needs to know about this symbol.
528 * - It calls this function after looking up its symbol after
529 * the last object of this kind has been destroyed.
530 *
531 */
532 NPError
533 NP_Shutdown(void)
534 {
535 PLUGINDEBUGSTR("NP_Shutdown");
536 NPP_Shutdown();
537 return NPERR_NO_ERROR;
538 }
0 /*
1 VIRT-VIEWER-PLUGIN
2
3 By Richard W.M. Jones <rjones@redhat.com>
4 Copyright (C) 2008 Red Hat Inc.
5
6 Largely based on DiamondX (http://multimedia.cx/diamondx/), which itself
7 is based on Mozilla sources.
8
9 DiamondX copyright notice:
10
11 Example XEmbed-aware Mozilla browser plugin by Adobe.
12
13 Copyright (c) 2007 Adobe Systems Incorporated
14
15 Permission is hereby granted, free of charge, to any person obtaining
16 a copy of this software and associated documentation files (the
17 "Software"), to deal in the Software without restriction, including
18 without limitation the rights to use, copy, modify, merge, publish,
19 distribute, sublicense, and/or sell copies of the Software, and to
20 permit persons to whom the Software is furnished to do so, subject to
21 the following conditions:
22
23 The above copyright notice and this permission notice shall be
24 included in all copies or substantial portions of the Software.
25
26 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
27 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
28 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
29 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
30 LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
31 OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
32 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
33 */
34
35 #include <config.h>
36
37 #include <stdio.h>
38 #include <stdlib.h>
39 #include <vncdisplay.h>
40
41 #include "virt-viewer-plugin.h"
42
43 static GtkWidget *
44 get_container (void *thisv)
45 {
46 PluginInstance *This = (PluginInstance *) thisv;
47 return This->container;
48 }
49
50 NPError
51 VirtViewerXSetWindow (NPP instance, NPWindow *window)
52 {
53 PluginInstance *This;
54 NPSetWindowCallbackStruct *ws_info;
55 int r;
56
57 if (instance == NULL)
58 return NPERR_INVALID_INSTANCE_ERROR;
59
60 This = (PluginInstance*) instance->pdata;
61
62 debug ("ViewViewerXSetWindow, This=%p", This);
63
64 if (This == NULL)
65 return NPERR_INVALID_INSTANCE_ERROR;
66
67 ws_info = (NPSetWindowCallbackStruct *)window->ws_info;
68
69 /* Mozilla likes to re-run its greatest hits */
70 if (window == This->window &&
71 window->x == This->x &&
72 window->y == This->y &&
73 window->width == This->width &&
74 window->height == This->height) {
75 debug ("virt-viewer-plugin: window re-run; returning");
76 return NPERR_NO_ERROR;
77 }
78
79 This->window = window;
80 This->x = window->x;
81 This->y = window->y;
82 This->width = window->width;
83 This->height = window->height;
84
85 /* Create a GtkPlug container and a Gtk-VNC widget inside it. */
86 This->container = gtk_plug_new ((GdkNativeWindow)(long)window->window);
87
88 /* Make the VNC widget. */
89 if (This->uri && This->name) {
90 debug ("calling viewer_start uri=%s name=%s direct=%d waitvnc=%d container=%p", This->uri, This->name, This->direct, This->waitvnc, This->container);
91 r = viewer_start (This->uri, This->name, This->direct, This->waitvnc, 1,
92 get_container, This, 0);
93 if (r != 0)
94 fprintf (stderr, "viewer_start returned %d != 0\n", r);
95 }
96
97 gtk_widget_show_all (This->container);
98
99 return NPERR_NO_ERROR;
100 }
101
102 NPError
103 VirtViewerDestroyWindow (NPP instance)
104 {
105 PluginInstance *This = (PluginInstance*) instance->pdata;
106
107 debug ("VirtViewerDestroyWindow, This=%p", This);
108
109 if (This && This->container) {
110 gtk_widget_destroy (This->container);
111 This->container = NULL;
112 }
113
114 return NPERR_NO_ERROR;
115 }
116
117 static NPWindow windowlessWindow;
118
119 int16
120 VirtViewerXHandleEvent(NPP instance, void *event)
121 {
122 XGraphicsExposeEvent exposeEvent;
123 XEvent *nsEvent;
124
125 debug ("VirtViewerXHandleEvent");
126
127 nsEvent = (XEvent *) event;
128 exposeEvent = nsEvent->xgraphicsexpose;
129
130 /*printf(" event: x, y, w, h = %d, %d, %d, %d; display @ %p, window/drawable = %d\n",
131 exposeEvent.x,
132 exposeEvent.y,
133 exposeEvent.width,
134 exposeEvent.height,
135 exposeEvent.display,
136 exposeEvent.drawable);*/
137
138 windowlessWindow.window = exposeEvent.display;
139 windowlessWindow.x = exposeEvent.x;
140 windowlessWindow.y = exposeEvent.y;
141 windowlessWindow.width = exposeEvent.width;
142 windowlessWindow.height = exposeEvent.height;
143 windowlessWindow.ws_info = (void *)exposeEvent.drawable;
144
145 NPP_SetWindow(instance, &windowlessWindow);
146
147 return 0;
148 }
0 /*
1 VIRT_VIEWER-PLUGIN
2
3 By Richard W.M. Jones <rjones@redhat.com>
4 Copyright (C) 2008 Red Hat Inc.
5
6 Largely based on DiamondX (http://multimedia.cx/diamondx/), which itself
7 is based on Mozilla sources.
8
9 DiamondX copyright notice:
10
11 Example XEmbed-aware Mozilla browser plugin by Adobe.
12
13 Copyright (c) 2007 Adobe Systems Incorporated
14
15 Permission is hereby granted, free of charge, to any person obtaining
16 a copy of this software and associated documentation files (the
17 "Software"), to deal in the Software without restriction, including
18 without limitation the rights to use, copy, modify, merge, publish,
19 distribute, sublicense, and/or sell copies of the Software, and to
20 permit persons to whom the Software is furnished to do so, subject to
21 the following conditions:
22
23 The above copyright notice and this permission notice shall be
24 included in all copies or substantial portions of the Software.
25
26 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
27 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
28 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
29 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
30 LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
31 OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
32 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
33 */
34
35 #ifndef VIRT_VIEWER_PLUGIN_H
36 #define VIRT_VIEWER_PLUGIN_H
37
38 #include <npapi.h>
39 #include <gtk/gtk.h>
40 #include <X11/Xlib.h>
41 #include "viewer.h"
42
43 #define PLUGIN_NAME "Virt-viewer browser plugin"
44 #define MIME_TYPES_HANDLED "application/x-virt-viewer:virt-viewer:Virt viewer"
45 #define PLUGIN_DESCRIPTION "Virtual machine console viewer plugin"
46
47 typedef struct {
48 uint16 mode;
49 NPWindow *window;
50 int32 x, y;
51 uint32 width, height;
52
53 NPP instance;
54 NPBool pluginsHidden;
55
56 GtkWidget *container;
57
58 char *uri, *name;
59 int direct, waitvnc;
60 } PluginInstance;
61
62 extern NPError VirtViewerXSetWindow (NPP instance, NPWindow* window);
63 extern NPError VirtViewerDestroyWindow (NPP instance);
64 extern int16 VirtViewerXHandleEvent (NPP instance, void* event);
65
66 #ifdef ENABLE_DEBUG
67 static void
68 debug (const char *msg, ...)
69 {
70 va_list args;
71
72 va_start (args, msg);
73 vfprintf (stderr, msg, args);
74 va_end (args);
75 fprintf (stderr, "\n");
76 fflush (stderr);
77 }
78 #else
79 static void debug (const char *msg G_GNUC_UNUSED, ...) { }
80 #endif
81
82 #endif /* VIRT_VIEWER_PLUGIN_H */
00
11 bin_PROGRAMS = virt-viewer
22
3 virt_viewer_SOURCES = main.c
3 virt_viewer_SOURCES = main.c viewer.h
44 virt_viewer_LDADD = @GTKVNC_LIBS@ @GTK2_LIBS@ @LIBXML2_LIBS@ @LIBVIRT_LIBS@
55 virt_viewer_CFLAGS = @GTKVNC_CFLAGS@ @GTK2_CFLAGS@ @LIBXML2_CFLAGS@ @LIBVIRT_CFLAGS@ @WARN_CFLAGS@
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
0 # Makefile.in generated by automake 1.10 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 Free Software Foundation, Inc.
4 # 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
77 # with or without modifications, as long as this notice is preserved.
1313
1414 @SET_MAKE@
1515
16 srcdir = @srcdir@
17 top_srcdir = @top_srcdir@
1816 VPATH = @srcdir@
1917 pkgdatadir = $(datadir)/@PACKAGE@
2018 pkglibdir = $(libdir)/@PACKAGE@
2119 pkgincludedir = $(includedir)/@PACKAGE@
22 top_builddir = ..
2320 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
24 INSTALL = @INSTALL@
2521 install_sh_DATA = $(install_sh) -c -m 644
2622 install_sh_PROGRAM = $(install_sh) -c
2723 install_sh_SCRIPT = $(install_sh) -c
3329 NORMAL_UNINSTALL = :
3430 PRE_UNINSTALL = :
3531 POST_UNINSTALL = :
32 build_triplet = @build@
33 host_triplet = @host@
3634 bin_PROGRAMS = virt-viewer$(EXEEXT)
3735 subdir = src
3836 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
4240 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
4341 $(ACLOCAL_M4)
4442 mkinstalldirs = $(install_sh) -d
43 CONFIG_HEADER = $(top_builddir)/config.h
4544 CONFIG_CLEAN_FILES =
4645 am__installdirs = "$(DESTDIR)$(bindir)"
4746 binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
4948 am_virt_viewer_OBJECTS = virt_viewer-main.$(OBJEXT)
5049 virt_viewer_OBJECTS = $(am_virt_viewer_OBJECTS)
5150 virt_viewer_DEPENDENCIES =
52 DEFAULT_INCLUDES = -I. -I$(srcdir)
51 virt_viewer_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
52 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(virt_viewer_CFLAGS) \
53 $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
54 DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
5355 depcomp = $(SHELL) $(top_srcdir)/depcomp
5456 am__depfiles_maybe = depfiles
5557 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
5658 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
59 LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
60 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
61 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
5762 CCLD = $(CC)
58 LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
63 LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
64 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
65 $(LDFLAGS) -o $@
5966 SOURCES = $(virt_viewer_SOURCES)
6067 DIST_SOURCES = $(virt_viewer_SOURCES)
6168 ETAGS = etags
6269 CTAGS = ctags
6370 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
6471 ACLOCAL = @ACLOCAL@
65 AMDEP_FALSE = @AMDEP_FALSE@
66 AMDEP_TRUE = @AMDEP_TRUE@
6772 AMTAR = @AMTAR@
73 AR = @AR@
6874 AUTOCONF = @AUTOCONF@
6975 AUTOHEADER = @AUTOHEADER@
7076 AUTOMAKE = @AUTOMAKE@
7278 CC = @CC@
7379 CCDEPMODE = @CCDEPMODE@
7480 CFLAGS = @CFLAGS@
81 CPP = @CPP@
7582 CPPFLAGS = @CPPFLAGS@
83 CXX = @CXX@
84 CXXCPP = @CXXCPP@
85 CXXDEPMODE = @CXXDEPMODE@
86 CXXFLAGS = @CXXFLAGS@
7687 CYGPATH_W = @CYGPATH_W@
7788 DEFS = @DEFS@
7889 DEPDIR = @DEPDIR@
90 ECHO = @ECHO@
7991 ECHO_C = @ECHO_C@
8092 ECHO_N = @ECHO_N@
8193 ECHO_T = @ECHO_T@
94 EGREP = @EGREP@
8295 EXEEXT = @EXEEXT@
96 F77 = @F77@
97 FFLAGS = @FFLAGS@
98 FIREFOX_PLUGIN_CFLAGS = @FIREFOX_PLUGIN_CFLAGS@
99 FIREFOX_PLUGIN_LIBS = @FIREFOX_PLUGIN_LIBS@
100 GREP = @GREP@
83101 GTK2_CFLAGS = @GTK2_CFLAGS@
84102 GTK2_LIBS = @GTK2_LIBS@
85103 GTKVNC_CFLAGS = @GTKVNC_CFLAGS@
86104 GTKVNC_LIBS = @GTKVNC_LIBS@
105 INSTALL = @INSTALL@
87106 INSTALL_DATA = @INSTALL_DATA@
88107 INSTALL_PROGRAM = @INSTALL_PROGRAM@
89108 INSTALL_SCRIPT = @INSTALL_SCRIPT@
91110 LDFLAGS = @LDFLAGS@
92111 LIBOBJS = @LIBOBJS@
93112 LIBS = @LIBS@
113 LIBTOOL = @LIBTOOL@
94114 LIBVIRT_CFLAGS = @LIBVIRT_CFLAGS@
95115 LIBVIRT_LIBS = @LIBVIRT_LIBS@
96116 LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
97117 LIBXML2_LIBS = @LIBXML2_LIBS@
118 LN_S = @LN_S@
98119 LTLIBOBJS = @LTLIBOBJS@
99120 MAKEINFO = @MAKEINFO@
121 MKDIR_P = @MKDIR_P@
122 MOZILLA_PLUGIN_CFLAGS = @MOZILLA_PLUGIN_CFLAGS@
123 MOZILLA_PLUGIN_LIBS = @MOZILLA_PLUGIN_LIBS@
124 NSPR_CFLAGS = @NSPR_CFLAGS@
125 NSPR_LIBS = @NSPR_LIBS@
100126 OBJEXT = @OBJEXT@
101127 PACKAGE = @PACKAGE@
102128 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
106132 PACKAGE_VERSION = @PACKAGE_VERSION@
107133 PATH_SEPARATOR = @PATH_SEPARATOR@
108134 PKG_CONFIG = @PKG_CONFIG@
135 RANLIB = @RANLIB@
136 SED = @SED@
109137 SET_MAKE = @SET_MAKE@
110138 SHELL = @SHELL@
111139 STRIP = @STRIP@
112140 VERSION = @VERSION@
113141 WARN_CFLAGS = @WARN_CFLAGS@
142 abs_builddir = @abs_builddir@
143 abs_srcdir = @abs_srcdir@
144 abs_top_builddir = @abs_top_builddir@
145 abs_top_srcdir = @abs_top_srcdir@
114146 ac_ct_CC = @ac_ct_CC@
115 ac_ct_STRIP = @ac_ct_STRIP@
116 ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@
117 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
118 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
147 ac_ct_CXX = @ac_ct_CXX@
148 ac_ct_F77 = @ac_ct_F77@
119149 am__include = @am__include@
120150 am__leading_dot = @am__leading_dot@
121151 am__quote = @am__quote@
122152 am__tar = @am__tar@
123153 am__untar = @am__untar@
124154 bindir = @bindir@
155 build = @build@
125156 build_alias = @build_alias@
157 build_cpu = @build_cpu@
158 build_os = @build_os@
159 build_vendor = @build_vendor@
160 builddir = @builddir@
126161 datadir = @datadir@
162 datarootdir = @datarootdir@
163 docdir = @docdir@
164 dvidir = @dvidir@
127165 exec_prefix = @exec_prefix@
166 host = @host@
128167 host_alias = @host_alias@
168 host_cpu = @host_cpu@
169 host_os = @host_os@
170 host_vendor = @host_vendor@
171 htmldir = @htmldir@
129172 includedir = @includedir@
130173 infodir = @infodir@
131174 install_sh = @install_sh@
132175 libdir = @libdir@
133176 libexecdir = @libexecdir@
177 localedir = @localedir@
134178 localstatedir = @localstatedir@
135179 mandir = @mandir@
136180 mkdir_p = @mkdir_p@
137181 oldincludedir = @oldincludedir@
182 pdfdir = @pdfdir@
138183 prefix = @prefix@
139184 program_transform_name = @program_transform_name@
185 psdir = @psdir@
140186 sbindir = @sbindir@
141187 sharedstatedir = @sharedstatedir@
188 srcdir = @srcdir@
142189 sysconfdir = @sysconfdir@
143190 target_alias = @target_alias@
144 virt_viewer_SOURCES = main.c
191 top_builddir = @top_builddir@
192 top_srcdir = @top_srcdir@
193 virt_viewer_SOURCES = main.c viewer.h
145194 virt_viewer_LDADD = @GTKVNC_LIBS@ @GTK2_LIBS@ @LIBXML2_LIBS@ @LIBVIRT_LIBS@
146195 virt_viewer_CFLAGS = @GTKVNC_CFLAGS@ @GTK2_CFLAGS@ @LIBXML2_CFLAGS@ @LIBVIRT_CFLAGS@ @WARN_CFLAGS@
147196 all: all-am
148197
149198 .SUFFIXES:
150 .SUFFIXES: .c .o .obj
199 .SUFFIXES: .c .lo .o .obj
151200 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
152201 @for dep in $?; do \
153202 case '$(am__configure_deps)' in \
179228 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
180229 install-binPROGRAMS: $(bin_PROGRAMS)
181230 @$(NORMAL_INSTALL)
182 test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
231 test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
183232 @list='$(bin_PROGRAMS)'; for p in $$list; do \
184233 p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
185234 if test -f $$p \
235 || test -f $$p1 \
186236 ; then \
187237 f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
188 echo " $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
189 $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
238 echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
239 $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
190240 else :; fi; \
191241 done
192242
199249 done
200250
201251 clean-binPROGRAMS:
202 -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
252 @list='$(bin_PROGRAMS)'; for p in $$list; do \
253 f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
254 echo " rm -f $$p $$f"; \
255 rm -f $$p $$f ; \
256 done
203257 virt-viewer$(EXEEXT): $(virt_viewer_OBJECTS) $(virt_viewer_DEPENDENCIES)
204258 @rm -f virt-viewer$(EXEEXT)
205 $(LINK) $(virt_viewer_LDFLAGS) $(virt_viewer_OBJECTS) $(virt_viewer_LDADD) $(LIBS)
259 $(virt_viewer_LINK) $(virt_viewer_OBJECTS) $(virt_viewer_LDADD) $(LIBS)
206260
207261 mostlyclean-compile:
208262 -rm -f *.$(OBJEXT)
213267 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/virt_viewer-main.Po@am__quote@
214268
215269 .c.o:
216 @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
217 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
270 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
271 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
218272 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
219273 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
220274 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
221275
222276 .c.obj:
223 @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
224 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
277 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
278 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
225279 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
226280 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
227281 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
228282
283 .c.lo:
284 @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
285 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
286 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
287 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
288 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
289
229290 virt_viewer-main.o: main.c
230 @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_CFLAGS) $(CFLAGS) -MT virt_viewer-main.o -MD -MP -MF "$(DEPDIR)/virt_viewer-main.Tpo" -c -o virt_viewer-main.o `test -f 'main.c' || echo '$(srcdir)/'`main.c; \
231 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/virt_viewer-main.Tpo" "$(DEPDIR)/virt_viewer-main.Po"; else rm -f "$(DEPDIR)/virt_viewer-main.Tpo"; exit 1; fi
291 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_CFLAGS) $(CFLAGS) -MT virt_viewer-main.o -MD -MP -MF $(DEPDIR)/virt_viewer-main.Tpo -c -o virt_viewer-main.o `test -f 'main.c' || echo '$(srcdir)/'`main.c
292 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/virt_viewer-main.Tpo $(DEPDIR)/virt_viewer-main.Po
232293 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='main.c' object='virt_viewer-main.o' libtool=no @AMDEPBACKSLASH@
233294 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
234295 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_CFLAGS) $(CFLAGS) -c -o virt_viewer-main.o `test -f 'main.c' || echo '$(srcdir)/'`main.c
235296
236297 virt_viewer-main.obj: main.c
237 @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_CFLAGS) $(CFLAGS) -MT virt_viewer-main.obj -MD -MP -MF "$(DEPDIR)/virt_viewer-main.Tpo" -c -o virt_viewer-main.obj `if test -f 'main.c'; then $(CYGPATH_W) 'main.c'; else $(CYGPATH_W) '$(srcdir)/main.c'; fi`; \
238 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/virt_viewer-main.Tpo" "$(DEPDIR)/virt_viewer-main.Po"; else rm -f "$(DEPDIR)/virt_viewer-main.Tpo"; exit 1; fi
298 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_CFLAGS) $(CFLAGS) -MT virt_viewer-main.obj -MD -MP -MF $(DEPDIR)/virt_viewer-main.Tpo -c -o virt_viewer-main.obj `if test -f 'main.c'; then $(CYGPATH_W) 'main.c'; else $(CYGPATH_W) '$(srcdir)/main.c'; fi`
299 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/virt_viewer-main.Tpo $(DEPDIR)/virt_viewer-main.Po
239300 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='main.c' object='virt_viewer-main.obj' libtool=no @AMDEPBACKSLASH@
240301 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
241302 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_CFLAGS) $(CFLAGS) -c -o virt_viewer-main.obj `if test -f 'main.c'; then $(CYGPATH_W) 'main.c'; else $(CYGPATH_W) '$(srcdir)/main.c'; fi`
242 uninstall-info-am:
303
304 mostlyclean-libtool:
305 -rm -f *.lo
306
307 clean-libtool:
308 -rm -rf .libs _libs
243309
244310 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
245311 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
290356 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
291357
292358 distdir: $(DISTFILES)
293 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
294 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
295 list='$(DISTFILES)'; for file in $$list; do \
296 case $$file in \
297 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
298 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
299 esac; \
359 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
360 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
361 list='$(DISTFILES)'; \
362 dist_files=`for file in $$list; do echo $$file; done | \
363 sed -e "s|^$$srcdirstrip/||;t" \
364 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
365 case $$dist_files in \
366 */*) $(MKDIR_P) `echo "$$dist_files" | \
367 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
368 sort -u` ;; \
369 esac; \
370 for file in $$dist_files; do \
300371 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
301 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
302 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
303 dir="/$$dir"; \
304 $(mkdir_p) "$(distdir)$$dir"; \
305 else \
306 dir=''; \
307 fi; \
308372 if test -d $$d/$$file; then \
373 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
309374 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
310375 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
311376 fi; \
321386 all-am: Makefile $(PROGRAMS)
322387 installdirs:
323388 for dir in "$(DESTDIR)$(bindir)"; do \
324 test -z "$$dir" || $(mkdir_p) "$$dir"; \
389 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
325390 done
326391 install: install-am
327392 install-exec: install-exec-am
349414 @echo "it deletes files that may require special tools to rebuild."
350415 clean: clean-am
351416
352 clean-am: clean-binPROGRAMS clean-generic mostlyclean-am
417 clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am
353418
354419 distclean: distclean-am
355420 -rm -rf ./$(DEPDIR)
369434
370435 install-data-am:
371436
437 install-dvi: install-dvi-am
438
372439 install-exec-am: install-binPROGRAMS
373440
441 install-html: install-html-am
442
374443 install-info: install-info-am
375444
376445 install-man:
446
447 install-pdf: install-pdf-am
448
449 install-ps: install-ps-am
377450
378451 installcheck-am:
379452
384457
385458 mostlyclean: mostlyclean-am
386459
387 mostlyclean-am: mostlyclean-compile mostlyclean-generic
460 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
461 mostlyclean-libtool
388462
389463 pdf: pdf-am
390464
394468
395469 ps-am:
396470
397 uninstall-am: uninstall-binPROGRAMS uninstall-info-am
471 uninstall-am: uninstall-binPROGRAMS
472
473 .MAKE: install-am install-strip
398474
399475 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
400 clean-generic ctags distclean distclean-compile \
401 distclean-generic distclean-tags distdir dvi dvi-am html \
402 html-am info info-am install install-am install-binPROGRAMS \
403 install-data install-data-am install-exec install-exec-am \
404 install-info install-info-am install-man install-strip \
405 installcheck installcheck-am installdirs maintainer-clean \
406 maintainer-clean-generic mostlyclean mostlyclean-compile \
407 mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \
408 uninstall-am uninstall-binPROGRAMS uninstall-info-am
476 clean-generic clean-libtool ctags distclean distclean-compile \
477 distclean-generic distclean-libtool distclean-tags distdir dvi \
478 dvi-am html html-am info info-am install install-am \
479 install-binPROGRAMS install-data install-data-am install-dvi \
480 install-dvi-am install-exec install-exec-am install-html \
481 install-html-am install-info install-info-am install-man \
482 install-pdf install-pdf-am install-ps install-ps-am \
483 install-strip installcheck installcheck-am installdirs \
484 maintainer-clean maintainer-clean-generic mostlyclean \
485 mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
486 pdf pdf-am ps ps-am tags uninstall uninstall-am \
487 uninstall-binPROGRAMS
409488
410489 # Tell versions [3.59,3.63) of GNU make to not export all variables.
411490 # Otherwise a system limit (for SysV at least) may be exceeded.
1919 * Author: Daniel P. Berrange <berrange@redhat.com>
2020 */
2121
22 #define _GNU_SOURCE
22 #include <config.h>
2323
2424 #include <vncdisplay.h>
2525 #include <gtk/gtk.h>
3434 #include <sys/socket.h>
3535 #include <sys/un.h>
3636
37 #include "viewer.h"
38
3739 // #define DEBUG 1
3840 #ifdef DEBUG
3941 #define DEBUG_LOG(s, ...) fprintf(stderr, (s), ## __VA_ARGS__)
4143 #define DEBUG_LOG(s, ...) do {} while (0)
4244 #endif
4345
46 static char *domname = NULL;
4447 static int verbose = 0;
4548 #define MAX_KEY_COMBO 3
4649 struct keyComboDef {
6568 { { GDK_Print }, 1, "_PrintScreen"},
6669 };
6770
68
69 static void viewer_set_title(VncDisplay *vnc, GtkWidget *window, gboolean grabbed)
70 {
71 const char *name;
71 enum menuNums {
72 FILE_MENU,
73 VIEW_MENU,
74 SEND_KEY_MENU,
75 HELP_MENU,
76 LAST_MENU // sentinel
77 };
78
79 struct menuItem {
80 guint menu;
81 GtkWidget *label;
82 const char *ungrabbed_text;
83 const char *grabbed_text;
84 };
85
86 static struct menuItem menuItems[] = {
87 { FILE_MENU, NULL, "_File", "File" },
88 { VIEW_MENU, NULL, "_View", "View" },
89 { SEND_KEY_MENU, NULL, "_Send Key", "Send Key" },
90 { HELP_MENU, NULL, "_Help", "Help" }
91 };
92
93 static void viewer_set_title(VncDisplay *vnc G_GNUC_UNUSED, GtkWidget *window, gboolean grabbed)
94 {
7295 char title[1024];
7396 const char *subtitle;
7497
77100 else
78101 subtitle = "";
79102
80 name = vnc_display_get_name(VNC_DISPLAY(vnc));
81103 snprintf(title, sizeof(title), "%s%s - Virt Viewer",
82 subtitle, name);
104 subtitle, domname);
83105
84106 gtk_window_set_title(GTK_WINDOW(window), title);
85107 }
86108
87109 static void viewer_grab(GtkWidget *vnc, GtkWidget *window)
88110 {
111 int i;
112
89113 viewer_set_title(VNC_DISPLAY(vnc), window, TRUE);
114
115 for (i = 0 ; i < LAST_MENU; i++) {
116 gtk_label_set_text_with_mnemonic(GTK_LABEL(menuItems[i].label), menuItems[i].grabbed_text);
117 }
90118 }
91119
92120 static void viewer_ungrab(GtkWidget *vnc, GtkWidget *window)
93121 {
122 int i;
123
94124 viewer_set_title(VNC_DISPLAY(vnc), window, FALSE);
125
126 for (i = 0 ; i < LAST_MENU; i++) {
127 gtk_label_set_text_with_mnemonic(GTK_LABEL(menuItems[i].label), menuItems[i].ungrabbed_text);
128 }
95129 }
96130
97131 static void viewer_shutdown(GtkWidget *src G_GNUC_UNUSED, void *dummy G_GNUC_UNUSED, GtkWidget *vnc)
121155 {
122156 DEBUG_LOG("Disconnected from server\n");
123157 gtk_main_quit();
158 }
159
160 static void viewer_fullscreen(GtkWidget *menu, GtkWidget *window)
161 {
162 if (gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(menu))) {
163 gtk_window_fullscreen(GTK_WINDOW(window));
164 } else {
165 gtk_window_unfullscreen(GTK_WINDOW(window));
166 }
167 }
168
169 static void viewer_scalable(GtkWidget *menu, GtkWidget *vnc)
170 {
171 if (gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(menu))) {
172 vnc_display_set_scaling(VNC_DISPLAY(vnc), TRUE);
173 } else {
174 vnc_display_set_scaling(VNC_DISPLAY(vnc), FALSE);
175 }
124176 }
125177
126178 static void viewer_send_key(GtkWidget *menu, GtkWidget *vnc)
232284 continue;
233285 }
234286 entry[row] = gtk_entry_new();
287 if (g_value_get_enum(cred) == VNC_DISPLAY_CREDENTIAL_PASSWORD)
288 gtk_entry_set_visibility(GTK_ENTRY(entry[row]), FALSE);
235289
236290 gtk_table_attach(GTK_TABLE(box), label[i], 0, 1, row, row+1, GTK_SHRINK, GTK_SHRINK, 3, 3);
237291 gtk_table_attach(GTK_TABLE(box), entry[i], 1, 2, row, row+1, GTK_SHRINK, GTK_SHRINK, 3, 3);
314368 gtk_widget_destroy(about);
315369 }
316370
371 static GtkWidget *menu_item_new(int which_menu)
372 {
373 GtkWidget *widget;
374 GtkWidget *label;
375 const char *text;
376
377 text = menuItems[which_menu].ungrabbed_text;
378
379 widget = gtk_menu_item_new();
380 label = g_object_new(GTK_TYPE_ACCEL_LABEL, NULL);
381 gtk_label_set_text_with_mnemonic(GTK_LABEL(label), text);
382 gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5);
383
384 gtk_container_add(GTK_CONTAINER(widget), label);
385 gtk_accel_label_set_accel_widget(GTK_ACCEL_LABEL(label), widget);
386 gtk_widget_show(label);
387
388 menuItems[which_menu].label = label;
389
390 return widget;
391 }
392
317393 static GtkWidget *viewer_build_file_menu(VncDisplay *vnc)
318394 {
319395 GtkWidget *file;
321397 GtkWidget *quit;
322398 GtkWidget *screenshot;
323399
324 file = gtk_menu_item_new_with_mnemonic("_File");
400 file = menu_item_new(FILE_MENU);
325401
326402 filemenu = gtk_menu_new();
327403 gtk_menu_item_set_submenu(GTK_MENU_ITEM(file), filemenu);
340416 return file;
341417 }
342418
419 static GtkWidget *viewer_build_view_menu(VncDisplay *vnc, GtkWidget *window, gboolean composited)
420 {
421 GtkWidget *view;
422 GtkWidget *viewmenu;
423 GtkWidget *fullscreen;
424 GtkWidget *scalable;
425
426 view = menu_item_new(VIEW_MENU);
427
428 viewmenu = gtk_menu_new();
429 gtk_menu_item_set_submenu(GTK_MENU_ITEM(view), viewmenu);
430
431 fullscreen = gtk_check_menu_item_new_with_mnemonic("_Fullscreen");
432 gtk_menu_append(GTK_MENU(viewmenu), fullscreen);
433 g_signal_connect(fullscreen, "toggled", GTK_SIGNAL_FUNC(viewer_fullscreen), window);
434
435 scalable = gtk_check_menu_item_new_with_mnemonic("_Scale display");
436 if (!composited)
437 gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(scalable), TRUE);
438 gtk_menu_append(GTK_MENU(viewmenu), scalable);
439 g_signal_connect(scalable, "toggled", GTK_SIGNAL_FUNC(viewer_scalable), vnc);
440
441 return view;
442 }
443
343444 static GtkWidget *viewer_build_sendkey_menu(VncDisplay *vnc)
344445 {
345446 GtkWidget *sendkey;
346447 GtkWidget *sendkeymenu;
347448 int i;
348449
349 sendkey = gtk_menu_item_new_with_mnemonic("_Send Key");
450 sendkey = menu_item_new(SEND_KEY_MENU);
350451
351452 sendkeymenu = gtk_menu_new();
352453 gtk_menu_item_set_submenu(GTK_MENU_ITEM(sendkey), sendkeymenu);
372473 GtkWidget *helpmenu;
373474 GtkWidget *about;
374475
375 help = gtk_menu_item_new_with_mnemonic("_Help");
476 help = menu_item_new(HELP_MENU);
376477
377478 helpmenu = gtk_menu_new();
378479 gtk_menu_item_set_submenu(GTK_MENU_ITEM(help), helpmenu);
384485 return help;
385486 }
386487
387 static GtkWidget *viewer_build_menu(VncDisplay *vnc)
488 static GtkWidget *viewer_build_menu(VncDisplay *vnc, GtkWidget *window, gboolean composited)
388489 {
389490 GtkWidget *menubar;
390491 GtkWidget *file;
492 GtkWidget *view;
391493 GtkWidget *sendkey;
392494 GtkWidget *help;
393495
394496 menubar = gtk_menu_bar_new();
395497
396498 file = viewer_build_file_menu(vnc);
499 view = viewer_build_view_menu(vnc, window, composited);
397500 sendkey = viewer_build_sendkey_menu(vnc);
398501 help = viewer_build_help_menu();
399502
400503 gtk_menu_bar_append(GTK_MENU_BAR(menubar), file);
504 gtk_menu_bar_append(GTK_MENU_BAR(menubar), view);
401505 gtk_menu_bar_append(GTK_MENU_BAR(menubar), sendkey);
402506 gtk_menu_bar_append(GTK_MENU_BAR(menubar), help);
403507
405509 return menubar;
406510 }
407511
408 static GtkWidget *viewer_build_window(VncDisplay *vnc)
512 static GtkWidget *viewer_build_window(VncDisplay *vnc,
513 GtkWidget *(*get_toplevel)(void *),
514 void *data,
515 int with_menubar)
409516 {
410517 GtkWidget *window;
411518 GtkWidget *menubar;
412519 GtkWidget *layout;
413520
414 window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
415 layout = gtk_vbox_new(FALSE, 3);
416 menubar = viewer_build_menu(vnc);
417
418 gtk_container_add(GTK_CONTAINER(window), layout);
419 gtk_container_add(GTK_CONTAINER(layout), menubar);
420 gtk_container_add(GTK_CONTAINER(layout), GTK_WIDGET(vnc));
421 gtk_window_set_resizable(GTK_WINDOW(window), FALSE);
521 /* In the standalone program, calls viewer_get_toplevel above
522 * to make a window. In the browser plugin this calls a function
523 * in the plugin which returns the GtkPlug that we live inside.
524 * In both cases they are GTK_CONTAINERs and NOT resizable.
525 */
526 window = get_toplevel (data);
527 gtk_window_set_resizable(GTK_WINDOW(window), TRUE);
528
529 if (with_menubar) {
530 layout = gtk_vbox_new(FALSE, 3);
531 menubar = viewer_build_menu(vnc, window, gtk_widget_is_composited(window));
532 gtk_container_add(GTK_CONTAINER(window), layout);
533 gtk_container_add_with_properties(GTK_CONTAINER(layout), menubar, "expand", FALSE, NULL);
534 gtk_container_add_with_properties(GTK_CONTAINER(layout), GTK_WIDGET(vnc), "expand", TRUE, NULL);
535 } else
536 gtk_container_add(GTK_CONTAINER(window), GTK_WIDGET(vnc));
422537
423538 gtk_signal_connect(GTK_OBJECT(vnc), "vnc-pointer-grab",
424539 GTK_SIGNAL_FUNC(viewer_grab), window);
439554 GTK_SIGNAL_FUNC(viewer_credential), NULL);
440555
441556 return window;
442 }
443
444
445 static void viewer_version(FILE *out)
446 {
447 fprintf(out, "%s version %s\n", PACKAGE, VERSION);
448 }
449
450 static void viewer_help(FILE *out, const char *app)
451 {
452 fprintf(out, "\n");
453 fprintf(out, "syntax: %s [OPTIONS] DOMAIN-NAME|ID|UUID\n", app);
454 fprintf(out, "\n");
455 viewer_version(out);
456 fprintf(out, "\n");
457 fprintf(out, "Options:");
458 fprintf(out, " -h, --help display command line help\n");
459 fprintf(out, " -v, --verbose display verbose information\n");
460 fprintf(out, " -V, --version display verion informaton\n");
461 fprintf(out, " -d, --direct direct connection with no automatic tunnels\n");
462 fprintf(out, " -c URI, --connect URI connect to hypervisor URI\n");
463 fprintf(out, " -w, --wait wait for domain to start\n");
464 fprintf(out, "\n");
465557 }
466558
467559 static int viewer_parse_uuid(const char *name, unsigned char *uuid)
682774 return viewer_open_tunnel(cmd);
683775 }
684776
685
686 int main(int argc, char **argv)
777 int
778 viewer_start (const char *uri, const char *name,
779 int direct, int waitvnc, int set_verbose,
780 GtkWidget *(*get_toplevel)(void *), void *data,
781 int with_menubar)
687782 {
688783 GtkWidget *window;
689784 GtkWidget *vnc;
785 virConnectPtr conn = NULL;
786 virDomainPtr dom = NULL;
787 char *host = NULL;
788 char *vncport = NULL;
789 char *transport = NULL;
790 char *user = NULL;
791 const char *tmpname = NULL;
792 int port = 0;
793 int fd = -1;
794
795 verbose = set_verbose;
796
797 conn = virConnectOpenReadOnly(uri);
798 if (!conn) {
799 fprintf(stderr, "unable to connect to libvirt %s\n",
800 uri ? uri : "xen");
801 return 2;
802 }
803
804 do {
805 dom = viewer_lookup_domain(conn, name);
806 if (!dom && !waitvnc) {
807 fprintf(stderr, "unable to lookup domain %s\n", name);
808 return 3;
809 }
810 if (!dom)
811 usleep(500*1000);
812 } while (!dom);
813
814 do {
815 viewer_extract_vnc_graphics(dom, &vncport);
816 if (!vncport && !waitvnc) {
817 fprintf(stderr, "unable to find vnc graphics for %s\n", name);
818 return 4;
819 }
820 if (!vncport)
821 usleep(300*1000);
822 } while (!vncport);
823 tmpname = virDomainGetName(dom);
824 if (tmpname != NULL) {
825 domname = strdup(tmpname);
826 }
827 virDomainFree(dom);
828 virConnectClose(conn);
829
830 if (viewer_extract_host(uri, &host, &transport, &user, &port) < 0) {
831 fprintf(stderr, "unable to determine hostname for URI %s\n", uri);
832 return 5;
833 }
834 DEBUG_LOG("Remote host is %s and transport %s user %s\n", host, transport ? transport : "", user ? user : "");
835
836 if (transport && strcasecmp(transport, "ssh") == 0 && !direct)
837 fd = viewer_open_tunnel_ssh(host, port, user, vncport);
838
839 vnc = vnc_display_new();
840 window = viewer_build_window (VNC_DISPLAY(vnc),
841 get_toplevel, data, with_menubar);
842 gtk_widget_realize(vnc);
843
844 vnc_display_set_keyboard_grab(VNC_DISPLAY(vnc), TRUE);
845 vnc_display_set_pointer_grab(VNC_DISPLAY(vnc), TRUE);
846 if (!gtk_widget_is_composited(window))
847 vnc_display_set_scaling(VNC_DISPLAY(vnc), TRUE);
848
849 if (fd >= 0)
850 vnc_display_open_fd(VNC_DISPLAY(vnc), fd);
851 else
852 vnc_display_open_host(VNC_DISPLAY(vnc), host, vncport);
853
854 return 0;
855 }
856
857 #ifndef PLUGIN
858 /* Standalone program. */
859
860 static GtkWidget *viewer_get_toplevel (void *data G_GNUC_UNUSED)
861 {
862 GtkWidget *window;
863
864 window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
865 gtk_window_set_resizable(GTK_WINDOW(window), FALSE);
866 return window;
867 }
868
869 static void viewer_version(FILE *out)
870 {
871 fprintf(out, "%s version %s\n", PACKAGE, VERSION);
872 }
873
874 static void viewer_help(FILE *out, const char *app)
875 {
876 fprintf(out, "\n");
877 fprintf(out, "syntax: %s [OPTIONS] DOMAIN-NAME|ID|UUID\n", app);
878 fprintf(out, "\n");
879 viewer_version(out);
880 fprintf(out, "\n");
881 fprintf(out, "Options:\n\n");
882 fprintf(out, " -h, --help display command line help\n");
883 fprintf(out, " -v, --verbose display verbose information\n");
884 fprintf(out, " -V, --version display version information\n");
885 fprintf(out, " -d, --direct direct connection with no automatic tunnels\n");
886 fprintf(out, " -c URI, --connect URI connect to hypervisor URI\n");
887 fprintf(out, " -w, --wait wait for domain to start\n");
888 fprintf(out, "\n");
889 }
890
891 int main(int argc, char **argv)
892 {
690893 char *uri = NULL;
894 char *name = NULL;
691895 int opt_ind;
692896 const char *sopts = "hVc:";
693897 static const struct option lopts[] = {
700904 { 0, 0, 0, 0 }
701905 };
702906 int ch;
907 int direct = 0;
703908 int waitvnc = 0;
704 virConnectPtr conn = NULL;
705 virDomainPtr dom = NULL;
706 char *host = NULL;
707 char *vncport = NULL;
708 char *transport = NULL;
709 char *user = NULL;
710 int port = 0;
711 int fd = -1;
712 int direct = 0;
909 int set_verbose = 0;
910 int ret;
713911
714912 while ((ch = getopt_long(argc, argv, sopts, lopts, &opt_ind)) != -1) {
715913 switch (ch) {
720918 viewer_version(stdout);
721919 return 0;
722920 case 'v':
723 verbose = 1;
921 set_verbose = 1;
724922 break;
725923 case 'c':
726924 uri = strdup(optarg);
737935 }
738936 }
739937
740
741938 if (argc != (optind+1)) {
742939 viewer_help(stderr, argv[0]);
743940 return 1;
745942
746943 gtk_init(&argc, &argv);
747944
748 conn = virConnectOpenReadOnly(uri);
749 if (!conn) {
750 fprintf(stderr, "unable to connect to libvirt %s\n",
751 uri ? uri : "xen");
752 return 2;
753 }
754
755 do {
756 dom = viewer_lookup_domain(conn, argv[optind]);
757 if (!dom && !waitvnc) {
758 fprintf(stderr, "unable to lookup domain %s\n", argv[optind]);
759 return 3;
760 }
761 if (!dom)
762 usleep(500*1000);
763 } while (!dom);
764
765 do {
766 viewer_extract_vnc_graphics(dom, &vncport);
767 if (!vncport && !waitvnc) {
768 fprintf(stderr, "unable to find vnc graphics for %s\n", argv[optind]);
769 return 4;
770 }
771 if (!vncport)
772 usleep(300*1000);
773 } while (!vncport);
774 virDomainFree(dom);
775 virConnectClose(conn);
776
777 if (viewer_extract_host(uri, &host, &transport, &user, &port) < 0) {
778 fprintf(stderr, "unable to determine hostname for URI %s\n", uri);
779 return 5;
780 }
781 DEBUG_LOG("Remote host is %s and transport %s user %s\n", host, transport ? transport : "", user ? user : "");
782
783 if (transport && strcasecmp(transport, "ssh") == 0 && !direct)
784 fd = viewer_open_tunnel_ssh(host, port, user, vncport);
785
786 vnc = vnc_display_new();
787 window = viewer_build_window(VNC_DISPLAY(vnc));
788 gtk_widget_realize(vnc);
789
790 vnc_display_set_keyboard_grab(VNC_DISPLAY(vnc), TRUE);
791 vnc_display_set_pointer_grab(VNC_DISPLAY(vnc), TRUE);
792
793 if (fd >= 0)
794 vnc_display_open_fd(VNC_DISPLAY(vnc), fd);
795 else
796 vnc_display_open_host(VNC_DISPLAY(vnc), host, vncport);
945 name = argv[optind];
946 ret = viewer_start (uri, name, direct, waitvnc, set_verbose,
947 viewer_get_toplevel, NULL, 1);
948 if (ret != 0) return ret;
797949
798950 gtk_main();
799951
800952 return 0;
801953 }
954 #endif /* !PLUGIN */
802955
803956 /*
804957 * Local variables:
0 /*
1 * Virt Viewer: A virtual machine console viewer
2 *
3 * Copyright (C) 2007 Red Hat,
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 *
19 * Author: Daniel P. Berrange <berrange@redhat.com>
20 */
21
22 #ifndef VIEWER_H
23 #define VIEWER_H
24
25 extern int viewer_start (const char *uri, const char *name, int direct, int waitvnc, int set_verbose, GtkWidget *(*get_toplevel)(void *), void *data, int with_menubar);
26
27 #endif /* VIEWER_H */
00 # -*- rpm-spec -*-
11
2 # Plugin isn't ready for real world use yet - it needs
3 # a security audit at very least
4 %define _with_plugin %{?with_plugin:1}%{!?with_plugin:0}
5
26 Name: virt-viewer
3 Version: 0.0.2
7 Version: 0.0.3
48 Release: 1%{?dist}%{?extra_release}
59 Summary: Virtual Machine Viewer
6
710 Group: Applications/System
8 License: GPL
11 License: GPLv2+
912 URL: http://virt-manager.org/
1013 Source0: http://virt-manager.org/download/sources/%{name}/%{name}-%{version}.tar.gz
1114 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
15 Requires: openssh-clients
1216
1317 BuildRequires: gtk2-devel
1418 BuildRequires: libvirt-devel
1519 BuildRequires: libxml2-devel
16 BuildRequires: gtk-vnc-devel >= 0.1.0
20 BuildRequires: gtk-vnc-devel >= 0.3.4
1721 BuildRequires: /usr/bin/pod2man
22 %if %{_with_plugin}
23 %if "%{fedora}" > "8"
24 BuildRequires: xulrunner-devel
25 %else
26 BuildRequires: firefox-devel
27 %endif
28 %endif
1829
1930 %description
2031 Virtual Machine Viewer provides a graphical console client for connecting
2132 to virtual machines. It uses the GTK-VNC widget to provide the display,
2233 and libvirt for looking up VNC server details.
2334
35 %if %{_with_plugin}
36 %package plugin
37 Summary: Mozilla plugin for the gtk-vnc library
38 Group: Development/Libraries
39 Requires: %{name} = %{version}
40
41 %description plugin
42 gtk-vnc is a VNC viewer widget for GTK. It is built using coroutines
43 allowing it to be completely asynchronous while remaining single threaded.
44
45 This package provides a web browser plugin for Mozilla compatible
46 browsers.
47 %endif
48
2449 %prep
2550 %setup -q
2651
2752 %build
53 %if %{_with_plugin}
54 %configure --enable-plugin=yes
55 %else
2856 %configure
29 make %{?_smp_mflags}
57 %endif
58 %__make %{?_smp_mflags}
59 %__make %{?_smp_mflags}
3060
3161
3262 %install
3363 rm -rf $RPM_BUILD_ROOT
34 make install DESTDIR=$RPM_BUILD_ROOT
64 %__make install DESTDIR=$RPM_BUILD_ROOT
65 %if %{_with_plugin}
66 rm -f %{buildroot}%{_libdir}/mozilla/plugins/%{name}-plugin.a
67 rm -f %{buildroot}%{_libdir}/mozilla/plugins/%{name}-plugin.la
68 %endif
3569
3670 %clean
3771 rm -rf $RPM_BUILD_ROOT
4276 %{_bindir}/%{name}
4377 %{_mandir}/man1/%{name}*
4478
79 %if %{_with_plugin}
80 %files plugin
81 %defattr(-, root, root)
82 %{_libdir}/mozilla/plugins/%{name}-plugin.so
83 %endif
84
4585 %changelog
86 * Sun Mar 9 2008 Daniel P. Berrange <berrange@redhat.com> - 0.0.3-1
87 - Added optional plugin subRPM
88
4689 * Tue Aug 28 2007 Daniel P. Berrange <berrange@redhat.com> - 0.0.2-1
4790 - Added support for remote console access
4891
00 # -*- rpm-spec -*-
1
2 # Plugin isn't ready for real world use yet - it needs
3 # a security audit at very least
4 %define _with_plugin %{?with_plugin:1}%{!?with_plugin:0}
15
26 Name: @PACKAGE@
37 Version: @VERSION@
48 Release: 1%{?dist}%{?extra_release}
59 Summary: Virtual Machine Viewer
6
710 Group: Applications/System
8 License: GPL
11 License: GPLv2+
912 URL: http://virt-manager.org/
1013 Source0: http://virt-manager.org/download/sources/%{name}/%{name}-%{version}.tar.gz
1114 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
15 Requires: openssh-clients
1216
1317 BuildRequires: gtk2-devel
1418 BuildRequires: libvirt-devel
1519 BuildRequires: libxml2-devel
16 BuildRequires: gtk-vnc-devel >= 0.1.0
20 BuildRequires: gtk-vnc-devel >= 0.3.4
1721 BuildRequires: /usr/bin/pod2man
22 %if %{_with_plugin}
23 %if "%{fedora}" > "8"
24 BuildRequires: xulrunner-devel
25 %else
26 BuildRequires: firefox-devel
27 %endif
28 %endif
1829
1930 %description
2031 Virtual Machine Viewer provides a graphical console client for connecting
2132 to virtual machines. It uses the GTK-VNC widget to provide the display,
2233 and libvirt for looking up VNC server details.
2334
35 %if %{_with_plugin}
36 %package plugin
37 Summary: Mozilla plugin for the gtk-vnc library
38 Group: Development/Libraries
39 Requires: %{name} = %{version}
40
41 %description plugin
42 gtk-vnc is a VNC viewer widget for GTK. It is built using coroutines
43 allowing it to be completely asynchronous while remaining single threaded.
44
45 This package provides a web browser plugin for Mozilla compatible
46 browsers.
47 %endif
48
2449 %prep
2550 %setup -q
2651
2752 %build
53 %if %{_with_plugin}
54 %configure --enable-plugin=yes
55 %else
2856 %configure
29 make %{?_smp_mflags}
57 %endif
58 %__make %{?_smp_mflags}
59 %__make %{?_smp_mflags}
3060
3161
3262 %install
3363 rm -rf $RPM_BUILD_ROOT
34 make install DESTDIR=$RPM_BUILD_ROOT
64 %__make install DESTDIR=$RPM_BUILD_ROOT
65 %if %{_with_plugin}
66 rm -f %{buildroot}%{_libdir}/mozilla/plugins/%{name}-plugin.a
67 rm -f %{buildroot}%{_libdir}/mozilla/plugins/%{name}-plugin.la
68 %endif
3569
3670 %clean
3771 rm -rf $RPM_BUILD_ROOT
4276 %{_bindir}/%{name}
4377 %{_mandir}/man1/%{name}*
4478
79 %if %{_with_plugin}
80 %files plugin
81 %defattr(-, root, root)
82 %{_libdir}/mozilla/plugins/%{name}-plugin.so
83 %endif
84
4585 %changelog
86 * Sun Mar 9 2008 Daniel P. Berrange <berrange@redhat.com> - 0.0.3-1
87 - Added optional plugin subRPM
88
4689 * Tue Aug 28 2007 Daniel P. Berrange <berrange@redhat.com> - 0.0.2-1
4790 - Added support for remote console access
4891